From e09a044ccb0bf15c498da39e5954827456e677e1 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期五, 13 九月 2024 16:25:51 +0800
Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/mis-prj

---
 jrj/project/business/AR/Deduction.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/jrj/project/business/AR/Deduction.cpp b/jrj/project/business/AR/Deduction.cpp
index e335ee7..8a1ad3f 100644
--- a/jrj/project/business/AR/Deduction.cpp
+++ b/jrj/project/business/AR/Deduction.cpp
@@ -150,20 +150,19 @@
 			AttachEvent(L"WM_SETFOCUS", (FEvent)&Deduction::OnSetFocus);
 			AttachEvent(L"dw_list", L"DWV_ROWFOCUSCHANGED", (FEvent)&Deduction::OnRowChanged);
 			AttachEvent(L"dw_list", L"DWV_ITEMCHANGED", (FEvent)&Deduction::OnItemChanged);
+			return 1;
 		}
 
 
 		int  OnRetrieve(xstring InvoiceNo, xstring EntityID)
 		{
 			xml x;
-			
 			xaserverarg arg ;
-			arg.setNativePointer(arg.CreateInstance());
 			arg.AddArg(L"InvoiceNo", InvoiceNo);
-			arg.AddArg(L"InvoiceNoEx", GetControl(L"search").GetText());
+			arg.AddArg(L"InvoiceNoEx", xcontrol(GetControl(L"search")).GetText());
 			arg.AddArg(L"EntityID", EntityID);
 
-			trace(GetControl(L"search").GetText());
+			//trace(GetControl(L"search").GetText());
 			if (getUrl(L"/sale/data/AR/DeductionList", arg.GetString(), x) != 1)
 			{
 				trace(x.text());
@@ -180,6 +179,7 @@
 
 		int onload()
 		{
+			SetArg();
 			dw_list = GetControl(L"dw_list");
 			dw_list.openUrl(L"/sale/view/AR/template/Deduction");
 

--
Gitblit v1.9.3