From 429f251b140b74d7e73d78cf1114e366ecf954ea Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期五, 19 七月 2024 13:55:58 +0800
Subject: [PATCH] update

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

diff --git a/jrj/project/business/AP/maint.ap.cpp b/jrj/project/business/AP/maint.ap.cpp
index 02e4f58..ff6ba9e 100644
--- a/jrj/project/business/AP/maint.ap.cpp
+++ b/jrj/project/business/AP/maint.ap.cpp
@@ -13,7 +13,7 @@
 		xstring APType;
 		xdwtable dw_base;
 		xnode	m_agentNode;	//Agent Condition
-		int hObject = 0;
+		HWND hObject = 0;
 	public:
 		MaintAP(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
 	public:
@@ -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);
@@ -115,7 +115,8 @@
 				dw_base.ResetUpdateStatus();
 				updateAdvance();
 				alert(L"保存成功!");
-				SendMessage(hObject, 0x401, L"xmRefresh", 0);
+				
+				SendMessage(hObject, 0x401, (LPARAM)L"xmRefresh", 0);
 				CloseWindow();
 			}
 			else
@@ -225,6 +226,7 @@
 			AttachEvent(L"dw_base", L"DWV_ITEMCHANGED", (FEvent)&MaintAP::OnItemChanged);
 			//获取焦点事件,用于重置工具条
 			AttachEvent(L"WM_SETFOCUS", (FEvent)&MaintAP::OnSetFocus);
+			return 1;
 		}
 
 		int  OnRetrieve()
@@ -249,6 +251,7 @@
 
 		int onload()
 		{
+			SetArg();
 			APID = L"";
 			APType = L"";
 			if (GetWinParam())
@@ -290,7 +293,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