|  |  | 
 |  |  | #include <wobject/xstring.hpp> | 
 |  |  | #include <xcontrol/xtreeview.hpp> | 
 |  |  | #include <xcontrol/xdwgrid.hpp> | 
 |  |  | #include <xcontrol/xdwtable.hpp> | 
 |  |  | #include <wobject/xdouble.hpp> | 
 |  |  | #include <xcontrol/xlayersheet.hpp> | 
 |  |  | #include <xcontrol/xcell.hpp> | 
 |  |  |  | 
 |  |  | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" | 
 |  |  | #include "viewobject/view.base.hpp" | 
 |  |  | #include "vbusiness/vframe/maint.vframe.vbusiness.hpp" | 
 |  |  | #include <xcontrol/xlayersheet.hpp> | 
 |  |  |  | 
 |  |  | using xml = KXMLDOMDocument; | 
 |  |  | class  __declspec(dllexport) PaymentTermEdit : public xframe | 
 |  |  | class  __declspec(dllexport) PaymentTermEdit : public maint | 
 |  |  | { | 
 |  |  | public: | 
 |  |  |    xdwtable dw_base; | 
 |  |  | 
 |  |  |    xcell dw_cell; | 
 |  |  |    xstring sCryno; | 
 |  |  | public: | 
 |  |  |    PaymentTermEdit(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} | 
 |  |  |    PaymentTermEdit(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {} | 
 |  |  | public: | 
 |  |  |    static PaymentTermEdit* CreateInstance(void* implPtr, void* hWnd) | 
 |  |  |    { | 
 |  |  | 
 |  |  |       //maint::onload(); | 
 |  |  |       //maint::onloaded(); | 
 |  |  |       dw_base = GetControl(L"dw_base"); | 
 |  |  |       dw_cell = new xcell; | 
 |  |  |       dw_cell.setNativePointer(dw_base.QueryItem(L"ixcell")); | 
 |  |  |       dw_base.openUrl(L"/sale/view/Payment/template/Payment/maint"); | 
 |  |  |       dw_cell = dw_base.QueryItem(L"ixcell"); | 
 |  |  |       //alert(L"1233"); | 
 |  |  |       OnRetrieve(); | 
 |  |  |       OnAttachEvent(); | 
 |  |  |       //dw_base = GetControl(L"dw_base"); | 
 |  |  | 		 | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  |     | 
 |  |  |    int onloaded() |