From b8b0912fb9385f08c55e7055f37564c21e98fa50 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期一, 05 八月 2024 09:07:01 +0800 Subject: [PATCH] update --- jrj/project/business/AR/ExchageFile.cpp | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/jrj/project/business/AR/ExchageFile.cpp b/jrj/project/business/AR/ExchageFile.cpp index 34ba750..32df8f3 100644 --- a/jrj/project/business/AR/ExchageFile.cpp +++ b/jrj/project/business/AR/ExchageFile.cpp @@ -1,6 +1,8 @@ #include <wobject/xstring.hpp> #include <xcontrol/xtreeview.hpp> #include <xcontrol/xdwgrid.hpp> +#include <xcontrol/xcell.hpp> +#include <adt/xarray.hpp> #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" #include "viewobject/view.base.hpp" @@ -72,7 +74,7 @@ const xstring data; int anchorrow; int anchorcol;*/ - if (hdr.currentcol == 1 && hdr.data != L"") + if (hdr.col == 1 && hdr.data != L"") { //dw_exchangefile.SetItemString(hdr.currentrow,hdr.currentcol, L""); } @@ -138,7 +140,6 @@ xml x; xaserverarg arg ; - arg.setNativePointer(arg.CreateInstance()); arg.AddArg(L"head", head); //alert(head); if (getUrl(L"/sale/data/AR/match/bank", arg.GetString(), x) != 1)return 1; @@ -151,8 +152,8 @@ KXMLDOMNodeList items = n.selectNodes(L"Item"); int len = items.length(); - IntegerArray indexs = IntegerArray::make(); - StringArray columns = StringArray::make(); + xarray<int> indexs; + xarray<xstring> columns; xstring bank = n.selectSingleNode(L"@name").text(); for (int i = 0; i < len; i++) { @@ -232,13 +233,13 @@ if (n1) { //alert(n1.xml); - if (n1.selectSingleNode(L"DataColumn"))dw_exch.SetItemString(curRow, columns.item(k), n1.selectSingleNode(L"DataColumn").text()); - if (n1.selectSingleNode(L"DataColumn/@_displaystring"))dw_exch.SetItemDisplayString(curRow, columns.item(k), n1.selectSingleNode(L"DataColumn/@_displaystring").text()); + if (n1.selectSingleNode(L"DataColumn"))dw_exch.SetItemString(curRow, columns.item(k).c_str(), n1.selectSingleNode(L"DataColumn").text()); + if (n1.selectSingleNode(L"DataColumn/@_displaystring"))dw_exch.SetItemDisplayString(curRow, columns.item(k).c_str(), n1.selectSingleNode(L"DataColumn/@_displaystring").text()); } } } else - dw_exch.SetItemString(curRow, columns.item(k), val); + dw_exch.SetItemString(curRow, columns.item(k).c_str(), val); } } xutil::RestoreCursor(hCursor); @@ -372,7 +373,7 @@ int SendCtrlCmd(xcontrol xc, xstring cmd) { - SendMessage(xc.GetId(), 0x401, cmd, 0); + SendMessage(xc.GetHWND(), 0x401, (WPARAM)cmd.c_str(), 0); return 1; } -- Gitblit v1.9.3