From c73702d600ef2d0843ec7e3ace65f8c63c6905c2 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期二, 16 七月 2024 15:21:53 +0800
Subject: [PATCH] update
---
jrj/project/business/BasicCode/CartermList.cpp | 82 ++++++++++++++++++++--------------------
1 files changed, 41 insertions(+), 41 deletions(-)
diff --git a/jrj/project/business/BasicCode/CartermList.cpp b/jrj/project/business/BasicCode/CartermList.cpp
index 0e5c1d0..c09b17a 100644
--- a/jrj/project/business/BasicCode/CartermList.cpp
+++ b/jrj/project/business/BasicCode/CartermList.cpp
@@ -10,7 +10,7 @@
field:
[
xdwpages__ dw_pages;
- string m_QueryTxt;
+ xstring m_QueryTxt;
msxml::IXMLDOMDocument m_configDoc;
static int dw_hWnd;
]
@@ -18,15 +18,15 @@
method:
[
- int alert(string str)
+ int alert(xstring str)
{
- //win__::MessageBox(this.GetHWND(),str,"提示22:",0);
+ //win__::MessageBox(this.GetHWND(),str,L"提示22:",0);
TApp::alert(this,str);
return 0;
}
- string GetGuid(){
+ xstring GetGuid(){
return TApp::GetGuid();
}
int OnAddrow()
@@ -34,29 +34,29 @@
this.dw_list.InsertRow(0);
int rows = this.dw_list.GetRowCount();
this.dw_list.SetRow(rows);
- this.dw_list.SetItemString(rows,"PartyID",GetGuid());
- this.dw_list.SetItemString(rows,"ContactID",GetGuid());
- this.dw_list.SetItemString(rows,"PAStatus","1");
- this.dw_list.SetItemString(rows,"PStatus","1");
- this.dw_list.SetItemString(rows,"PCStatus","1");
- this.dw_list.SetItemString(rows,"Type","7");
+ this.dw_list.SetItemString(rows,L"PartyID",GetGuid());
+ this.dw_list.SetItemString(rows,L"ContactID",GetGuid());
+ this.dw_list.SetItemString(rows,L"PAStatus",L"1");
+ this.dw_list.SetItemString(rows,L"PStatus",L"1");
+ this.dw_list.SetItemString(rows,L"PCStatus",L"1");
+ this.dw_list.SetItemString(rows,L"Type",L"7");
}
int OnInsertRow()
{
int row = this.dw_list.GetRow();
if(row<1 || row>this.dw_list.GetRowCount()) return 0;
this.dw_list.InsertRow(row);
- this.dw_list.SetItemString(row,"PartyID",GetGuid());
- this.dw_list.SetItemString(row,"ContactID",GetGuid());
- this.dw_list.SetItemString(row,"PAStatus","1");
- this.dw_list.SetItemString(row,"PStatus","1");
- this.dw_list.SetItemString(row,"PCStatus","1");
- this.dw_list.SetItemString(row,"Type","7");
+ this.dw_list.SetItemString(row,L"PartyID",GetGuid());
+ this.dw_list.SetItemString(row,L"ContactID",GetGuid());
+ this.dw_list.SetItemString(row,L"PAStatus",L"1");
+ this.dw_list.SetItemString(row,L"PStatus",L"1");
+ this.dw_list.SetItemString(row,L"PCStatus",L"1");
+ this.dw_list.SetItemString(row,L"Type",L"7");
}
- int ViewUpdate(param pr,string updateItem,xaserverarg__ arg)
+ int ViewUpdate(param pr,xstring updateItem,xaserverarg__ arg)
{
- if( updateItem=="del")
+ if( updateItem==L"del")
{
int DelRow = this.dw_list.GetRow();
this.dw_list.DeleteRow(DelRow);
@@ -79,19 +79,19 @@
int OnSave()
{
- /*string no = this.dw_list.GetItemString(1,"CarTermNo");
- if(no==""){
- alert("请输入车队编码!");
+ /*xstring no = this.dw_list.GetItemString(1,L"CarTermNo");
+ if(no==L""){
+ alert(L"请输入车队编码!");
return -1;
}
- string SName = this.dw_list.GetItemString(1,"Name");
- if(SName==""){
- alert("请输入车队名称!");
+ xstring SName = this.dw_list.GetItemString(1,L"Name");
+ if(SName==L""){
+ alert(L"请输入车队名称!");
return -1;
}
- string ContacterName = this.dw_list.GetItemString(1,"ContacterName");
- if(ContacterName==""){
- alert("请输入联系人名称!");
+ xstring ContacterName = this.dw_list.GetItemString(1,L"ContacterName");
+ if(ContacterName==L""){
+ alert(L"请输入联系人名称!");
return -1;
} */
xml__ x=new xml__;
@@ -101,40 +101,40 @@
trace(x.GetXml());
xaserverarg__ arg=new xaserverarg__;
arg.setNativePointer(arg.CreateInstance());
- arg.AddArg("content",x.GetXml());
- arg.AddArg("dbmap","CarTerm.dbmap");
- if (getUrl("/sale/data/CarTerm/entity/carterm/save",arg.GetString(),x) != 1)
+ arg.AddArg(L"content",x.GetXml());
+ arg.AddArg(L"dbmap",L"CarTerm.dbmap");
+ if (getUrl(L"/sale/data/CarTerm/entity/carterm/save",arg.GetString(),x) != 1)
{
- trace("error:"+x.GetXml());
- alert("保存失败!");
+ trace(L"error:"+x.GetXml());
+ alert(L"保存失败!");
return 0;
}
else
{
trace(x.GetXml());
- if(x.GetXmlDoc().selectSingleNode("error"))
+ if(x.GetXmlDoc().selectSingleNode(L"error"))
{
- alert("保存出错2!");
+ alert(L"保存出错2!");
return 0;
}
- alert("保存成功!");
+ alert(L"保存成功!");
this.dw_list.ResetUpdateStatus();
}
this.dw_list.Redraw();
return 0;
}
- int OnCmdDispatch(string comdid)
+ int OnCmdDispatch(xstring comdid)
{
- if(comdid.find("action:bill.row.add",0)>=0) {
+ if(comdid.find(L"action:bill.row.add",0)>=0) {
OnAddrow();
}
- else if(comdid.find("bill.row.insert",0)>=0) {
+ else if(comdid.find(L"bill.row.insert",0)>=0) {
OnInsertRow();
}
- else if(comdid.find("bill.row.delete",0)>=0) {
+ else if(comdid.find(L"bill.row.delete",0)>=0) {
OnDeleteRow();
}
- else if(comdid.find("bill.save",0)>=0) {
+ else if(comdid.find(L"bill.save",0)>=0) {
trace(1);
OnSave();
}
@@ -148,7 +148,7 @@
int OnAttachEvent()
{
- AttachEvent("WM_XCOMMAND",OnXCommand);
+ AttachEvent(L"WM_XCOMMAND",OnXCommand);
return 0;
}
--
Gitblit v1.9.3