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/SO3.list.cpp |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/jrj/project/business/SO3.list.cpp b/jrj/project/business/SO3.list.cpp
index 6056ff2..b4a4a97 100644
--- a/jrj/project/business/SO3.list.cpp
+++ b/jrj/project/business/SO3.list.cpp
@@ -134,8 +134,8 @@
 			int row = dw_list.GetRow();
 			if (row < 1) return 1;
 			KXMLDOMElement ele = dw_list.GetRowElement(row);
-			string id = GetEntityIDName(1);
-			string entity = ele.selectSingleNode(id).text();
+			xstring id = GetEntityIDName(1);
+			xstring entity = ele.selectSingleNode(id).text();
 			//trace(entity);
 			SetAgent(L"list", entity);
 			if (arg.GetArgString(L"state") != L"")
@@ -143,8 +143,8 @@
 				dw_list.SetItemString(row, L"ApplyStatus", arg.GetArgString(L"state"));
 			if (arg.GetArgString(L"billstatus") != L"")
 			{
-				string billstatus = arg.GetArgString(L"billstatus");
-				string statusName = GetBillStatusName(billstatus);
+				xstring billstatus = arg.GetArgString(L"billstatus");
+				xstring statusName = GetBillStatusName(billstatus);
 				dw_list.SetItemString(row, L"ApprovalStatus", billstatus);
 				dw_list.SetItemDisplayString(row, L"ApprovalStatus", statusName);
 			}
@@ -285,12 +285,12 @@
 		return 1;
 	}
 
-	int PreOnCmdDispatch(string comdid)
+	int PreOnCmdDispatch(xstring comdid)
 	{
 		if (comdid == L"action:bill.new")
 		{
-			string s = publiccode::GetUser().id;
-			string no = publiccode::GetUser().no;
+			xstring s = publiccode::GetUser().id;
+			xstring no = publiccode::GetUser().no;
 			if (no != L"00303" && no != L"admin")
 			{
 				KXMLDOMDocument supplier_x = ViewObject::RetrieveData(GetServerUrl(),L"/sale/data/SupplierV3/entity/FindBySaleType", L"id", s);
@@ -306,7 +306,7 @@
 		}
 		if (comdid == L"action:bill.annex")
 		{
-			string deptname = publiccode::GetUser().deptname;
+			xstring deptname = publiccode::GetUser().deptname;
 			if (deptname == L"采购部")
 			{
 				return 1;
@@ -359,7 +359,7 @@
 		{
 			Content = t.selectSingleNode(L"Content").text();
 		}
-		xaserverarg& arg = *new xaserverarg;
+		xaserverarg arg;
 		arg.AddArg(L"value", Content);
 		OpenWindow(L"dev:xpage[memo.edit.new.vx]", arg);
 
@@ -505,7 +505,7 @@
 		{
 			arg.AddArg(L"CustomerID", e.getAttribute(L"id"));
 			xstring name = e.getAttribute(L"name");
-			if (name.find(L"(L") >= 0) name = name.left(name.find(L"(L"));
+			if (name.find(L"(") >= 0) name = name.left(name.find(L"("));
 			arg.AddArg(L"CustomerName", name);
 		}
 		return 1;

--
Gitblit v1.9.3