From fa2de0461cb79df0ba5e736b4aea8bff1056688a Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期五, 13 九月 2024 10:07:40 +0800
Subject: [PATCH] update

---
 jrj/project/business/Product.list.cpp |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/jrj/project/business/Product.list.cpp b/jrj/project/business/Product.list.cpp
index 183d0aa..4dd240e 100644
--- a/jrj/project/business/Product.list.cpp
+++ b/jrj/project/business/Product.list.cpp
@@ -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")
@@ -764,10 +772,9 @@
 		*/
 		//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;
 	}
 

--
Gitblit v1.9.3