| | |
| | | #include <xcontrol/xdwgrid.hpp> |
| | | #include <wobject/xdouble.hpp> |
| | | #include <xcontrol/xlayersheet.hpp> |
| | | #include <xcontrol/xdwpages.hpp> |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | |
| | | class __declspec(dllexport) CompanyMaint : public xframe |
| | | { |
| | | public: |
| | | pagecontrol m_layer; |
| | | xlayersheet m_layer; |
| | | xdwtable dw_detail; |
| | | xdwtable dw_bank; |
| | | xstring m_operate; |
| | |
| | | xstring val, val2; |
| | | xml x; |
| | | |
| | | var xdoc = x; |
| | | auto xdoc = x; |
| | | dw_detail.DwUpdateAllTo(xdoc); |
| | | //val = xdoc.xml ; |
| | | dw_bank.DwUpdateAllTo(xdoc); |
| | | val = xdoc.xml; |
| | | val = xdoc.xml(); |
| | | trace(val); |
| | | xaserverarg args; |
| | | args.setNativePointer(args.CreateInstance()); |
| | |
| | | xutil::RestoreCursor(hIcon); |
| | | dw_detail.ResetUpdateStatus(); |
| | | dw_bank.ResetUpdateStatus(); |
| | | var xdoc2 = x; |
| | | dw_detail.DwUpdateAllTo(xdoc2); |
| | | val = xdoc.xml; |
| | | dw_detail.DwUpdateAllTo(x); |
| | | val = x.xml(); |
| | | trace(val); |
| | | return 1; |
| | | } |
| | |
| | | |
| | | int onload() |
| | | { |
| | | m_layer = new pagecontrol; |
| | | m_layer.setNativePointer(GetControl(L"cTab")); |
| | | m_layer = GetControl(L"cTab"); |
| | | |
| | | dw_detail = new xdwtable; |
| | | dw_detail.setNativePointer(GetControl(L"dw_detail")); |
| | | dw_detail = GetControl(L"dw_detail"); |
| | | dw_detail.openUrl(L"组织架构.vface/template/company/detail"); |
| | | dw_detail.SetColHeaderHeight(0); |
| | | dw_detail.SetRowSelectorWidth(0); |
| | | dw_bank = new xdwtable; |
| | | dw_bank.setNativePointer(GetControl(L"dw_bank")); |
| | | dw_bank = GetControl(L"dw_bank"); |
| | | dw_bank.openUrl(L"组织架构.vface/template/company/bank"); |
| | | |
| | | OnInitial(); |
| | |
| | | OnRetrieve(); |
| | | } |
| | | else { |
| | | xdwtable dw = new xdwtable; |
| | | dw.setNativePointer(dw_detail.FindDwTable(L"CompanyInfo", 0)); |
| | | xdwtable dw = dw_detail.FindDwTable(L"CompanyInfo", 0); |
| | | dw.SetItemString(1, L"Status", L"1"); |
| | | dw.SetItemString(1, L"InternalFlag", L"Y"); |
| | | dw.SetItemString(1, L"Type", L"0"); |
| | |
| | | dw.SetItemDisplayString(1,L"CreatorID",susername); |
| | | dw.SetItemString(1,L"CreateDate",sdate);*/ |
| | | |
| | | dw.setNativePointer(dw_detail.FindDwTable(L"address", 0)); |
| | | dw = dw_detail.FindDwTable(L"address", 0); |
| | | dw.SetItemString(1, L"IdentifyAddressFlag", L"Y"); |
| | | dw.SetItemString(1, L"Status", L"1"); |
| | | dw.setNativePointer(dw_detail.FindDwTable(L"Regist", 0)); |
| | | dw = dw_detail.FindDwTable(L"Regist", 0); |
| | | dw.SetItemString(1, L"IdentifyAddressFlag", L"N"); |
| | | dw.SetItemString(1, L"Status", L"1"); |
| | | |
| | | dw.setNativePointer(dw_bank.FindDwTable(L"item", 0)); |
| | | dw = dw_bank.FindDwTable(L"item", 0); |
| | | if (dw) { |
| | | //KXMLDOMElement ele = dw.GetElement(); |
| | | //trace(ele.xml); |