From 7f865f1e7ed7e67e6c0e5e8df6f1d528c23de0dd Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期五, 05 七月 2024 15:08:52 +0800
Subject: [PATCH] updare

---
 jrj/project/business/VATNotify/simple.maint.vatnotify.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp b/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp
index f60c9b4..c137345 100644
--- a/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp
+++ b/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp
@@ -63,7 +63,7 @@
 
 		int OnPrint()
 		{
-			xaserverarg arg;
+			xaserverarg& arg = *new xaserverarg;
 			
 			arg.AddArg(L"EntityName", L"VATNotify");
 			arg.AddArg(L"EntityID", L"", L"");
@@ -74,13 +74,13 @@
 			arg.AddArg(L"SupplierID", SupplierID);
 			arg.AddArg(L"VATNotifyID", L"");
 			
-			openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg);
+			openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg);
 			return 1;
 		}
 
 		int OnPrintItem()
 		{
-			xaserverarg arg;
+			xaserverarg& arg = *new xaserverarg;
 			
 			arg.AddArg(L"EntityName", L"VATNotify", L"");
 			arg.AddArg(L"EntityID", L"", L"");
@@ -92,7 +92,7 @@
 			arg.AddArg(L"VATNotifyID", dw_item.GetGuid(dw_item.GetRow()));
 			trace(InvoiceNo + L"====L" + dw_item.GetGuid(dw_item.GetRow()));
 			
-			openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", p);
+			openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg);
 			return 1;
 		}
 
@@ -685,6 +685,7 @@
 			AttachEvent(L"dw_item", L"DWV_ROWFOCUSCHANGED", (FEvent)&simplemaintvatnotifyWin::OnRowChanged);
 			AttachEvent(L"dw_item", L"DWV_ASKDATA", (FEvent)&simplemaintvatnotifyWin::OnAskDataItem);
 			AttachCloseWindow();
+			return 1;
 		}
 
 		int RetrieveFob(xstring InvoiceNo, bool start = false)

--
Gitblit v1.9.3