| | |
| | | #include <xcontrol/xlayersheet.hpp> |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "vbusiness/vframe/maint.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | #include <xcontrol/xcell.hpp>> |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) CustomerMarketMaint : public xframe |
| | | class __declspec(dllexport) CustomerMarketMaint : public maint |
| | | { |
| | | public: |
| | | KXMLDOMDocument m_configDoc; |
| | |
| | | xstring ContactID; |
| | | xdwtable dw_base; |
| | | xcell dw_cell; |
| | | xstring m_EntityID = L""; |
| | | public: |
| | | CustomerMarketMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} |
| | | CustomerMarketMaint(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {} |
| | | public: |
| | | static CustomerMarketMaint* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | | CustomerMarketMaint* pWin = new CustomerMarketMaint(implPtr, (HWND)hWnd); |
| | | return pWin; |
| | | } |
| | | int alert(xstring str) |
| | | { |
| | | //win::MessageBox(GetHWND(),str,L"提示22:",0); |
| | | TApp::alert(this, str); |
| | | return 0; |
| | | } |
| | | int ViewUpdate(param pr, xstring updateItem, xaserverarg arg) |
| | | |
| | | int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) |
| | | { |
| | | if (updateItem == L"update") |
| | | { |
| | |
| | | return 1; |
| | | } |
| | | } |
| | | xstring GetEntityData(param pr) |
| | | xstring GetEntityData(LPARAM pr) |
| | | { |
| | | xml x; |
| | | |
| | |
| | | } |
| | | int onload() |
| | | { |
| | | SetArg(); |
| | | maint::onload(); |
| | | dw_base = new xdwtable; |
| | | dw_base.setNativePointer(GetControl(L"dw_base")); |
| | | dw_base = GetControl(L"dw_base"); |
| | | if (!maint::m_EntityID) |
| | | { |
| | | //xstring suserid = TApp::GetUserInfo().id; |
| | | //xstring suserid = publiccode::GetUser().id; |
| | | xstring suserid = xaserver::GetUserId(); |
| | | xstring susername = TApp::GetUserInfo().name; |
| | | xstring sdate = TApp::GetCurDate(); |
| | | xstring susername = publiccode::GetUser().name; |
| | | xstring sdate = publiccode::GetCurrentDate(); |
| | | dw_base.SetItemString(dw_base.GetRow(), L"CreatorID", suserid);//Party |
| | | dw_base.SetItemDisplayString(dw_base.GetRow(), L"CreatorID", susername); |
| | | dw_base.SetItemString(dw_base.GetRow(), L"CreateDate", sdate); |
| | |
| | | if (xaserver::ExecXQuery(L"", L"[OrgInfo.xq]", arg.GetString(), x) != 1) |
| | | { |
| | | trace(x.xml()); |
| | | return nil; |
| | | return 0; |
| | | } |
| | | //alert(x.xml()); |
| | | KXMLDOMElement e = x.documentElement(); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | int onloaded() |
| | | { |
| | | return maint::onloaded(); |
| | | } |
| | | }; |