From a4d2315ee4ca3f6177b4fb2526bed2feff3d89be Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 22 十月 2025 16:52:58 +0800
Subject: [PATCH] update
---
jrj/project/business/BasicCode/SKUItem.select.cpp | 56 ++++++++++++++++++++++++++++----------------------------
1 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/jrj/project/business/BasicCode/SKUItem.select.cpp b/jrj/project/business/BasicCode/SKUItem.select.cpp
index 273a52a..0388d00 100644
--- a/jrj/project/business/BasicCode/SKUItem.select.cpp
+++ b/jrj/project/business/BasicCode/SKUItem.select.cpp
@@ -6,22 +6,22 @@
about SKUItemImport
[
field:
- xdwgrid__ dw_list;
- treeview__ tv_1;
- xdwtable__ dw_maint;
+ xdwgrid dw_list;
+ treeview tv_1;
+ xdwtable dw_maint;
method:
[
- string jxParam(string p, string n)
+ xstring jxParam(xstring p, xstring n)
{
- if(p != "")
+ if(p != L"")
{
int i = 1;
- while (p.find("=",0)>0)
+ while (p.find(L"=",0)>0)
{
- string name = p.mid(0, p.find("=",0));
- string value = p.mid(p.find("=",0) + 1, p.find("=",0) - 1);
+ xstring name = p.mid(0, p.find(L"=",0));
+ xstring value = p.mid(p.find(L"=",0) + 1, p.find(L"=",0) - 1);
return ""+value;
i += 1;
}
@@ -48,13 +48,13 @@
int OnOk()
{
- xdwtable__ dw = new xdwtable__;
- dw.setNativePointer(dw_maint.FindDwTable("Item",0));
+ xdwtable dw = new xdwtable;
+ dw.setNativePointer(dw_maint.FindDwTable(L"Item",0));
int row = SKUItem::dw_list.GetNextSelectRow(1);
if (row<1)
{
- alert("请选择项目名称!");
+ alert(L"请选择项目名称!");
return 1;
}
@@ -62,18 +62,18 @@
{
msxml::IXMLDOMElement e =SKUItem::dw_list.GetRowElement(row);
- string ItemName = e.selectSingleNode("ItemName").text+"";
+ xstring ItemName = e.selectSingleNode(L"ItemName").text+L"";
//trace(ItemName);
- if(dw.GetItemString(1,"ItemName")=="")
+ if(dw.GetItemString(1,L"ItemName")==L"")
{
- dw.SetItemString(1,"SeqNo","1");
- dw.ItemChangeTo(1,"ItemName",ItemName);
+ dw.SetItemString(1,L"SeqNo",L"1");
+ dw.ItemChangeTo(1,L"ItemName",ItemName);
}
else
{
int n=dw.InsertRow(0);
- dw.SetItemString(n,"SeqNo",n.ToString());
- dw.ItemChangeTo(n,"ItemName",ItemName);
+ dw.SetItemString(n,L"SeqNo",n.ToString());
+ dw.ItemChangeTo(n,L"ItemName",ItemName);
}
row = SKUItem::dw_list.GetNextSelectRow(row +1);
}
@@ -92,13 +92,13 @@
return 1;
}
- int OnCmdDispatch(string comdid)
+ int OnCmdDispatch(xstring comdid)
{
- if (comdid=="SelectAll") OnSelectAll();
- else if (comdid=="SelectNo") OnSelectNo();
- else if (comdid=="cb_import") OnOk();
- else if (comdid=="cb_close") OnCancel();
- //else if (comdid=="query") GridSearch();
+ if (comdid==L"SelectAll") OnSelectAll();
+ else if (comdid==L"SelectNo") OnSelectNo();
+ else if (comdid==L"cb_import") OnOk();
+ else if (comdid==L"cb_close") OnCancel();
+ //else if (comdid==L"query") GridSearch();
return 0;
}
@@ -111,15 +111,15 @@
{
if (GetParam())
{
- xaserverarg__ arg1=GetParam();
- dw_maint = new xdwtable__;
- dw_maint.setNativePointer(arg1.GetArgString("dw_maint").toInt());
+ xaserverarg arg1=GetParam();
+ dw_maint = new xdwtable;
+ dw_maint.setNativePointer(arg1.GetArgString(L"dw_maint").toInt());
}
SKUItem::onload();
SKUItem::dw_list.SetSelectionMode(3); //3
SKUItem::dw_list.SetReadOnly(true);
- AttachEvent("WM_XCOMMAND",OnXCommand);
- AttachEvent("dw_list","DWV_DOUBLECLICKED",OnDoubleClicked);//行双击
+ AttachEvent(L"WM_XCOMMAND",OnXCommand);
+ AttachEvent(L"dw_list",L"DWV_DOUBLECLICKED",OnDoubleClicked);//行双击
}
]
]
--
Gitblit v1.9.3