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/VATNotify/maint.papercard.vatnotify.cpp |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/jrj/project/business/VATNotify/maint.papercard.vatnotify.cpp b/jrj/project/business/VATNotify/maint.papercard.vatnotify.cpp
index 632263a..da9511c 100644
--- a/jrj/project/business/VATNotify/maint.papercard.vatnotify.cpp
+++ b/jrj/project/business/VATNotify/maint.papercard.vatnotify.cpp
@@ -56,25 +56,25 @@
 
 		int OnPrint()
 		{
-			xaserverarg& arg = *new xaserverarg;
+			xaserverarg arg;
 			
 			arg.AddArg(L"EntityName", L"VATNotify", L"");
 			arg.AddArg(L"EntityID", L"", L"");
 			arg.AddArg(L"EntityNo", dw_item.GetItemString(1, L"InvoiceNo"), 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 = *new xaserverarg;
+			xaserverarg arg ;
 			
 			arg.AddArg(L"EntityName", L"VATNotify", L"");
 			arg.AddArg(L"EntityID", L"", L"");
 			arg.AddArg(L"EntityNo", dw_item.GetItemString(1, L"InvoiceNo"), L"");
 			
-			openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg);
+			openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg);
 			return 1;
 		}
 
@@ -689,7 +689,7 @@
 
 			if (GetWinParam())
 			{
-				int pArg = GetArg();
+				arg = GetArg();
 			
 			}
 			else
@@ -728,7 +728,7 @@
 			if (x == L"userInvoiceNo") //下拉
 			{
 				xstring sInvoiceNo = dw_item.GetItemString(row, L"NInvoiceNo");
-				hdr.data = sInvoiceNo;
+				hdr.data = sInvoiceNo.c_str(true);
 			}
 
 			return 1;
@@ -763,7 +763,7 @@
 
 			if (GetWinParam())
 			{
-				int pArg = GetArg();
+				arg = GetArg();
 				
 				InvNo = arg.GetArgString(L"invoiceno");
 				SetWindowText(GetHWND(), InvNo);

--
Gitblit v1.9.3