From f6735038d5b5cdaba4411bd232d4aa446d9f66b4 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期二, 22 四月 2025 15:37:56 +0800
Subject: [PATCH] update

---
 jrj/project/business/AP/maint.ap.cpp |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/jrj/project/business/AP/maint.ap.cpp b/jrj/project/business/AP/maint.ap.cpp
index 3c173ed..2c3462a 100644
--- a/jrj/project/business/AP/maint.ap.cpp
+++ b/jrj/project/business/AP/maint.ap.cpp
@@ -58,9 +58,9 @@
 			xstring ChargeOffDate = dw_base.GetItemString(1, L"APDate");
 			xstring PayedAmount = dw_base.GetItemString(1, L"PayedAmount");
 			xstring val = L"<data><PO><item guid='" + AdvanceID + L"' update.modify='1'>" +
-				"<ChargeOffState update.modify='1'>" + ChargeOffState + L"</ChargeOffState>" +
-				"<ChargeOffMoney update.modify='1'>" + PayedAmount + L"</ChargeOffMoney>" +
-				"<ChargeOffDate update.modify='1'>" + ChargeOffDate + L"</ChargeOffDate></item></PO></data>";
+				L"<ChargeOffState update.modify='1'>" + ChargeOffState + L"</ChargeOffState>" +
+				L"<ChargeOffMoney update.modify='1'>" + PayedAmount + L"</ChargeOffMoney>" +
+				L"<ChargeOffDate update.modify='1'>" + ChargeOffDate + L"</ChargeOffDate></item></PO></data>";
 			xaserverarg arg;
 			
 			arg.AddArg(L"content", val);
@@ -96,13 +96,12 @@
 				}
 			}
 
-			
+			x.Reset();
 			dw_base.AcceptText();
 			dw_base.DwUpdateAllTo(x);
 			xaserverarg arg;
 			
 			arg.AddArg(L"content", x.xml());
-
 			if (xurl::get(L"/sale/data/AP/update", arg.GetString(), x) != 1)
 			{
 				xstring error = x.text();
@@ -251,6 +250,7 @@
 
 		int onload()
 		{
+			SetArg();
 			APID = L"";
 			APType = L"";
 			if (GetWinParam())
@@ -292,7 +292,7 @@
 			{
 				xstring col = dw_base.GetColumnName(m);
 				if (col == L"OrgName" || col == L"APNo")
-					dw_base.SetColumnProp(col, L"cellprotect", L"1");
+					dw_base.SetColumnProp(col.c_str(), L"cellprotect", L"1");
 			}
 			return 1;
 		}

--
Gitblit v1.9.3