From f6572c39eb697b2a0fe9d4f4c46c605c72428dfa Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期五, 16 八月 2024 15:35:47 +0800
Subject: [PATCH] update

---
 jrj/project/business/SO/delivery.base.maint.so.cpp |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/jrj/project/business/SO/delivery.base.maint.so.cpp b/jrj/project/business/SO/delivery.base.maint.so.cpp
index b674738..a464f22 100644
--- a/jrj/project/business/SO/delivery.base.maint.so.cpp
+++ b/jrj/project/business/SO/delivery.base.maint.so.cpp
@@ -3,18 +3,17 @@
 #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:
@@ -145,7 +144,7 @@
 
 		int OnInit()
 		{
-			int iArgs = GetParam();
+			int iArgs = GetArg();
 
 			XXmlContentSvr xdoc = new XXmlContentSvr;
 			xdoc.setNativePointer(iArgs);
@@ -156,9 +155,9 @@
 			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);
 
@@ -174,6 +173,7 @@
 
 		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);
@@ -184,7 +184,7 @@
 			dw_cell.setNativePointer(dw_1.QueryItem(L"ixcell"));
 			OnAttachEvent();
 
-			if (GetParam())OnInit();
+			if (GetWinParam())OnInit();
 
 			return 1;
 		}

--
Gitblit v1.9.3