From e5283a4d5114c95a43b0096f562e53a665b0c4e7 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期四, 18 七月 2024 15:57:49 +0800 Subject: [PATCH] update quote --- jrj/project/business/SO/Product.Select.SO.cpp | 23 +++++------------------ 1 files changed, 5 insertions(+), 18 deletions(-) diff --git a/jrj/project/business/SO/Product.Select.SO.cpp b/jrj/project/business/SO/Product.Select.SO.cpp index 7ac9354..42a24f9 100644 --- a/jrj/project/business/SO/Product.Select.SO.cpp +++ b/jrj/project/business/SO/Product.Select.SO.cpp @@ -1198,7 +1198,7 @@ int row = hdr.row; xstring col = hdr.colname; - xstring str = g_xdoc_shoppingcart.getData(0, L"data/Item", row, L"QuoteLineID"); + xstring str = dwc_list.GetItemString(row, L"QuoteLineID"); if (str != L"") str = L"ql:" + str; else if (dwc_list.GetItemString(row, L"SKUNo") != L"") @@ -1225,8 +1225,8 @@ DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh; int row = hdr.row; xstring ls_nos = L"ImportXml:"; - xstring str = g_xdoc_shoppingcart.getData(0, L"data/Item", row, L"SOLineID"); - xstring str1 = g_xdoc_shoppingcart.getData(0, L"data/Item", row, L"EnquiryPriceListID"); + xstring str = dwc_list.GetItemString(row, L"SOLineID"); + xstring str1 =dwc_list.GetItemString(row, L"EnquiryPriceListID"); if (str1 != L"") str += L"el:" + str1; else if (str != L"") @@ -1279,27 +1279,16 @@ dw_list = GetControl(L"dw_list"); dwc_list = GetControl(L"dwc_list"); - xaserverarg arg; + xaserverarg arg = GetArg(); CustomerID = L""; CustomerName = L""; hObject = 0; if (arg) { - hObject = arg.GetArgString(L"HWND"); + hObject = (HWND)arg.GetParam(L"HWND"); CustomerID = arg.GetArgString(L"CustomerID"); } InitialFolder(); - - g_xdoc_product = new xdataset; - g_xdoc_product.Init(); - xbind bindproduct = new xbind; - bindproduct.bindEx(dw_list, g_xdoc_product, L""); - - g_xdoc_shoppingcart = new xdataset; - g_xdoc_shoppingcart.Init(); - - xbind bindcart = new xbind; - bindcart.bindEx(dwc_list, g_xdoc_shoppingcart, L""); dw_list.SetDataObject(ProductLibraryView::GetMaintListForm3(L"").xml()); dw_list = GetControl(L"dw_list"); @@ -1314,8 +1303,6 @@ xs.SetContent(makeHtml(1)); } - //xtreeview::ExpandItem(tv_folder.GetId(), - // xtreeview::GetNextItem(tv_folder.GetId(),xtreeview::GetRootItem(tv_folder.GetId()))); tv_folder.ExpandItem(tv_folder.GetRootItem()); dw_list.SetSelectionMode(3); -- Gitblit v1.9.3