From 6a4764ee747fff45d89ef48f98873d6409e4f85e Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期二, 16 七月 2024 17:22:23 +0800 Subject: [PATCH] update --- jrj/project/business/BasicCode/SKUTemplate.select.cpp | 56 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 28 insertions(+), 28 deletions(-) diff --git a/jrj/project/business/BasicCode/SKUTemplate.select.cpp b/jrj/project/business/BasicCode/SKUTemplate.select.cpp index fd1794c..35a9e24 100644 --- a/jrj/project/business/BasicCode/SKUTemplate.select.cpp +++ b/jrj/project/business/BasicCode/SKUTemplate.select.cpp @@ -6,22 +6,22 @@ about SKUTemplateImport [ field: - xdwgrid__ dw_list; - xdwtable__ dw_other; - xdwtable__ dw_prop; + xdwgrid dw_list; + xdwtable dw_other; + xdwtable dw_prop; 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"=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"=L",0)); + xstring value = p.mid(p.find(L"=L",0) + 1, p.find(L"=L",0) - 1); return ""+value; i += 1; } @@ -47,25 +47,25 @@ int OnOk() { - dw_other.openUrl("/sale/view/CustomerGoods/template/CustomerGoods/itemother"); + dw_other.openUrl(L"/sale/view/CustomerGoods/template/CustomerGoods/itemother"); dw_other.SetColHeaderHeight(0); dw_other.SetRowSelectorWidth(0); int row = SKUTemplate::dw_list.GetNextSelectRow(1); if (row<1) { - alert("请选择模板!"); + alert(L"请选择模板!"); return 1; } msxml::IXMLDOMElement e =SKUTemplate::dw_list.GetRowElement(row); - string TemplateContent = e.selectSingleNode("TemplateContent").text+""; - string TemplateID = e.selectSingleNode("TemplateID").text+""; + xstring TemplateContent = e.selectSingleNode(L"TemplateContent").text+L""; + xstring TemplateID = e.selectSingleNode(L"TemplateID").text+L""; //trace(ItemName); - xml__ x = new xml__; + xml x = new xml; x.setNativePointer(x.CreateInstance()); x.LoadXml(TemplateContent); dw_other.Retrieve(x); - dw_prop.SetItemString(1,"TemplateID",TemplateID); + dw_prop.SetItemString(1,L"TemplateID",TemplateID); CloseWindow(); return 1; } @@ -81,13 +81,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; } @@ -101,19 +101,19 @@ if (GetParam()) { int iArgs = GetParam(); - xaserverarg__ arg1 = new xaserverarg__; + xaserverarg arg1 = new xaserverarg; arg1.setNativePointer(iArgs); - dw_other = new xdwtable__; - dw_other.setNativePointer(arg1.GetArgString("dw_other").toInt()); - dw_prop = new xdwtable__; - dw_prop.setNativePointer(arg1.GetArgString("dw_prop").toInt()); + dw_other = new xdwtable; + dw_other.setNativePointer(arg1.GetArgString(L"dw_other").toInt()); + dw_prop = new xdwtable; + dw_prop.setNativePointer(arg1.GetArgString(L"dw_prop").toInt()); } - //trace(dw_other.__nativept); + //trace(dw_other.nativept); SKUTemplate::onload(); SKUTemplate::dw_list.SetSelectionMode(1); //3 SKUTemplate::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