From d27e8f1c8b5310814e46bc55d1ff869b0c62ec67 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期一, 16 九月 2024 10:03:48 +0800
Subject: [PATCH] update

---
 jrj/project/business/Product.list.cpp |   33 ++++++++++++++++++++-------------
 1 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/jrj/project/business/Product.list.cpp b/jrj/project/business/Product.list.cpp
index ca9b3d6..1d26f23 100644
--- a/jrj/project/business/Product.list.cpp
+++ b/jrj/project/business/Product.list.cpp
@@ -652,7 +652,7 @@
 
 		xml x ;
 		xaserverarg arg;
-		arg.setNativePointer(arg.CreateInstance());
+		
 		xstring str = L"<Item update.modify='1' update.delete='1' guid='" + id + L"'/>";
 		arg.AddArg(L"content", str);
 		if (xurl::get(L"/sale/data/ProductLibrary/image/update", arg.GetString(), x) != 1)
@@ -749,8 +749,16 @@
 		KXMLDOMElement e = tv_folder.GetItemData(hItem);
 		//xstring no = e.getAttribute(L"no");
 		//if(no==L"") return 1;
-		xstring guid = e.getAttribute(L"guid");
+		xaserverarg arg;
+		//xstring guid = e.getAttribute(L"guid");
+	
+
+		int row = dw_list.GetNextSelectRow(1);
+		if (row < 1) row = dw_list.GetRow();
+		if (row < 1 || row > dw_list.GetRowCount()) return 0;
+		xstring guid = dw_list.GetItemString(row, L"@guid");
 		if (guid == L"") return 1;
+		arg.AddArg(L"skuid", guid);
 
 		/*
 		if(no==L"NP0000FS" || no==L"UP0000FS")
@@ -758,16 +766,15 @@
 			OpenWindow(L"dev:xpage[PackSchemaMaint.goodslib.vx]");
 		}else
 		{
-			int pr = g_xdoc_product;
+			LPARAM  pr = g_xdoc_product;
 			OpenWindow(L"dev:xpage[ProductLibraryItemMaint.vx]",pr);
 		}
 		*/
 		//KXMLDOMElement ele = g_xdoc_product.getRowElement(L"data/Item", 1);
 		//alert(ele.xml);
-#ifdef shouldfinished
-		int pr = g_xdoc_product;
-		OpenWindow(L"dev:xpage[ProductLibraryItemMaint3.vx]", pr);
-#endif
+
+		OpenWindow(L"dev:xpage[ProductLibraryItemMaint3.vx]", arg);
+#
 		return 1;
 	}
 
@@ -792,7 +799,7 @@
 		xstring guid = e.getAttribute(L"guid");
 		if (guid == L"") return 1;
 		xaserverarg arg;
-		arg.setNativePointer(arg.CreateInstance());
+		
 		arg.AddArg(L"guid", e.getAttribute(L"guid"));
 		if (name == L"个人产品")
 			arg.AddArg(L"FolderID", e.getAttribute(L"guid"));
@@ -925,9 +932,9 @@
 			}
 			content += L"</data>";
 			xaserverarg carg;
-			carg.setNativePointer(carg.CreateInstance());
+			
 			carg.AddArg(L"content", content);
-			OpenWindow(L"dev:xpage[SO.Simulation.Import.vx]", (LPARAM) & carg);
+			OpenWindow(L"dev:xpage[SO.Simulation.Import.vx]",  carg);
 			return 1;
 		}
 		else if (comdid == L"xmEnquiry")
@@ -942,9 +949,9 @@
 			}
 			content += L"</data>";
 			xaserverarg carg;
-			carg.setNativePointer(carg.CreateInstance());
+			
 			carg.AddArg(L"content", content);
-			OpenWindow(L"dev:xpage[Enquiry.Import.vx]", (LPARAM)&carg);
+			OpenWindow(L"dev:xpage[Enquiry.Import.vx]", carg);
 			return 1;
 		}
 		else if (comdid == L"xmPurchar")
@@ -1545,7 +1552,7 @@
 		return 1;
 	}
 
-	int OnImgDBClicked(TEvent * evt, int pr)
+	int OnImgDBClicked(TEvent * evt, LPARAM  pr)
 	{
 		IMGNNMHDR& nmtv = *(IMGNNMHDR*)evt->notify.pnmh;
 		xstring src = nmtv.path;

--
Gitblit v1.9.3