From 06a9a4b01cda9c380e52eb875d7bb7c1c874954a Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期二, 05 十一月 2024 18:19:31 +0800 Subject: [PATCH] update --- jrj/project/business/AP/APNew3.warizd.cpp | 28 +++++++++++++--------------- 1 files changed, 13 insertions(+), 15 deletions(-) diff --git a/jrj/project/business/AP/APNew3.warizd.cpp b/jrj/project/business/AP/APNew3.warizd.cpp index 5beeecb..d6a2c6f 100644 --- a/jrj/project/business/AP/APNew3.warizd.cpp +++ b/jrj/project/business/AP/APNew3.warizd.cpp @@ -2,6 +2,7 @@ #include <xcontrol/xtreeview.hpp> #include <xcontrol/xdwgrid.hpp> #include <wobject/xdouble.hpp> +#include <xcontrol/xlayersheet.hpp> #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" #include "viewobject/view.base.hpp" @@ -352,7 +353,7 @@ index++; if (index == 1) { - GetControl(L"sle_filter").SetText(L""); + xcontrol(GetControl(L"sle_filter")).SetText(L""); xstring str = L""; if (str != searchStr) { @@ -379,7 +380,7 @@ else if (comdid == L"xmFilter") return OnFilter(); else if (comdid == L"xmQuery") { - + index = m_layer.GetSheetIndex(); index++; OnRetrieve(); @@ -430,8 +431,8 @@ int row = hdr.row; OnPrepayRetrieve(row, bstart); - xml x = ViewObject::RetrieveData( L"/sale/data/AP/list/invoice/supplier", L"InvoiceNo", dw_1.GetItemString(row, L"InvoiceNo"), - "SupplierID", dw_1.GetItemString(row, L"SupplierID")); + xml x = ViewObject::RetrieveData(GetServerUrl(), L"/sale/data/AP/list/invoice/supplier", L"InvoiceNo", dw_1.GetItemString(row, L"InvoiceNo"), + L"SupplierID", dw_1.GetItemString(row, L"SupplierID")); if (x) dw_101.Retrieve(x); dw_2.Redraw(); @@ -460,7 +461,7 @@ if (NInvoiceNo != InvoiceNo) { hdr.mask = DMS_CSSSTYLE; - hdr.cssstyle = L"color:#ff0000"; + hdr.pCssStyle = (LPTSTR)L"color:#ff0000"; } } return 1; @@ -548,13 +549,9 @@ KXMLDOMElement e = lst.item(i); docElement.appendChild(e); KXMLDOMElement fe = x1.createElement(L"FilterColumn"); - fe.text = filterStr; + fe.settext(filterStr); e.appendChild(fe); - fe.Release(); - e.Release(); } - docElement.Release(); - lst.Release(); dw_2.Retrieve(x1); } else @@ -575,14 +572,14 @@ xaserverarg arg; - arg.AddArg(L"QueryTxt", GetControl(L"sle_search").GetText()); + arg.AddArg(L"QueryTxt", xcontrol(GetControl(L"sle_search")).GetText()); xcombobox cbx_type = GetControl(L"cbx_ship"); - int h = xcombobox::GetCurSel(cbx_type.GetHWND()); + int h = cbx_type.GetCurSel(); if (h < 0) return 1; - xstring str = xcombobox::GetItemData(cbx_type.GetHWND()); + xstring str = (string)cbx_type.GetItemData(h); arg.AddArg(L"ShipDays", str); - trace(str); + if (getUrl(L"/sale/data/AP/list101", arg.GetString(), x) != 1) { trace(x.text()); @@ -591,6 +588,7 @@ } else { + dw_1.Retrieve(x); dw_1.Redraw(); } @@ -601,7 +599,7 @@ int OnFilter() { - xstring str = GetControl(L"sle_filter").GetText(); + xstring str = xcontrol(GetControl(L"sle_filter")).GetText(); if (str != searchStr) { searchStr = str; -- Gitblit v1.9.3