From 8c81832b427aced9508265f8bd804f1e66c2059b Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期五, 20 九月 2024 12:18:37 +0800
Subject: [PATCH] update

---
 jrj/project/business/SO/Apply.SOItem.cpp |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/jrj/project/business/SO/Apply.SOItem.cpp b/jrj/project/business/SO/Apply.SOItem.cpp
index f813db0..0ff6da3 100644
--- a/jrj/project/business/SO/Apply.SOItem.cpp
+++ b/jrj/project/business/SO/Apply.SOItem.cpp
@@ -50,7 +50,7 @@
 			while (ll_row > 0 && ll_row <= dw_list.GetRowCount())
 			{
 				xstring id = dw_list.GetGuid(ll_row);
-				if (EntityIDList == L"") EntityIDList = id; else EntityIDList += L",L" + id;
+				if (EntityIDList == L"") EntityIDList = id; else EntityIDList += L"," + id;
 				ll_row = dw_list.GetNextSelectRow(ll_row + 1);
 			}
 			if (EntityIDList != L"") arg.AddArg(L"EntityID", EntityIDList);
@@ -58,19 +58,19 @@
 			return 1;
 		}
 
-		xstring GetEntityName(int pr)
+		xstring GetEntityName(LPARAM pr)
 		{
 			return L"SaleItem3";
 		}
 
-		xstring GetEntityID(int pr)
+		xstring GetEntityID(LPARAM pr)
 		{
 			int row = dw_list.GetRow();
 			xstring id = dw_list.GetGuid(row);
 			return id;
 		}
 
-		int ViewUpdate(int pr, xstring updateItem, xaserverarg  arg)
+		int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg  arg)
 		{
 			if (updateItem == L"del")
 			{
@@ -119,7 +119,7 @@
 			{
 				xaserverarg arg = new xaserverarg;
 				arg.setNativePointer(arg.CreateInstance());
-				xml x = new xml;
+				xml x ;
 				x.setNativePointer(x.CreateInstance());
 
 				arg.AddArg(L"FlowID",L"1A83D53D-DD12-4FDB-A274-FA8D5982AB53");
@@ -171,7 +171,7 @@
 					if (skunos == L"")
 						skunos = dw_list.GetItemString(i, L"SKUNo");
 					else
-						skunos += L",L" + dw_list.GetItemString(i, L"SKUNo");
+						skunos += L"," + dw_list.GetItemString(i, L"SKUNo");
 				}
 			}
 			xaserverarg arg ;
@@ -243,8 +243,8 @@
 		int  OnRetrieve()
 		{
 			xml x;
-			
-			xaserverarg arg;
+			xaserverarg arg=GetArg();
+
 			arg.AddArg(L"id", arg.GetArgString(L"EntityNo"));
 			if (getUrl(L"/sale/data/SaleOrder/maint/item", arg.GetString(), x) != 1)
 			{
@@ -264,6 +264,8 @@
 
 		int onload()
 		{
+			
+
 			dw_list = GetControl(L"dw_list");
 			dw_list.openUrl(L"/sale/view/SaleOrder/template/item");
 			dw_list.SetReadOnly(true);
@@ -279,6 +281,8 @@
 			dw_list.SetColumnState(L"Submitter", false);
 			dw_list.SetColumnState(L"ScheduleShipDate", false);
 			OnAttachEvent();
+
+			SetArg();
 			OnRetrieve();
 
 			return 1;

--
Gitblit v1.9.3