From 918cf2c844f524641396e72c6ecebcc620c57813 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期五, 18 十月 2024 10:23:34 +0800 Subject: [PATCH] update --- jrj/project/business/Product.list.cpp | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/jrj/project/business/Product.list.cpp b/jrj/project/business/Product.list.cpp index 183d0aa..1d26f23 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") @@ -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; } @@ -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