| | |
| | | #include <xcontrol/xdwgrid.hpp> |
| | | #include <xcontrol/xcell.hpp> |
| | | |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | |
| | | |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) DeliveryEdit : public xframe |
| | | { |
| | | public: |
| | | xdwtable dw_1; |
| | | |
| | | vcontrol vc; |
| | | xvcontrol vc; |
| | | xcell dw_cell; |
| | | |
| | | public: |
| | |
| | | |
| | | int OnInit() |
| | | { |
| | | int iArgs = GetParam(); |
| | | int iArgs = GetArg(); |
| | | |
| | | XXmlContentSvr xdoc = new XXmlContentSvr; |
| | | xdoc.setNativePointer(iArgs); |
| | |
| | | bind.bind(dw_1, vc); |
| | | |
| | | xml x; |
| | | x = new xml; |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | x.LoadXml(vc.GetContent()); |
| | | x ; |
| | | |
| | | x.loadXML(vc.GetContent()); |
| | | |
| | | dw_1.Retrieve(x); |
| | | |
| | |
| | | |
| | | int onload() |
| | | { |
| | | SetArg(); |
| | | dw_1 = GetControl(L"dw_1"); |
| | | dw_1.openUrl(L"/sale/view/SaleOrder/template/delivery"); //base.maint.so.tpl/delivery |
| | | dw_1.SetColHeaderHeight(0); |
| | |
| | | dw_cell.setNativePointer(dw_1.QueryItem(L"ixcell")); |
| | | OnAttachEvent(); |
| | | |
| | | if (GetParam())OnInit(); |
| | | if (GetWinParam())OnInit(); |
| | | |
| | | return 1; |
| | | } |