From 7f45e69221d65ec15b0684680c85fb7ed28169f3 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期一, 08 七月 2024 17:09:04 +0800 Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/mis-prj --- jrj/project/business/VATNotify/list.vatnotify.cpp | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/jrj/project/business/VATNotify/list.vatnotify.cpp b/jrj/project/business/VATNotify/list.vatnotify.cpp index 28986e4..1a5f094 100644 --- a/jrj/project/business/VATNotify/list.vatnotify.cpp +++ b/jrj/project/business/VATNotify/list.vatnotify.cpp @@ -90,7 +90,7 @@ int OnPrint() { - xaserverarg arg; + xaserverarg& arg = *new xaserverarg; arg.AddArg(L"EntityName", L"VATNotify"); arg.AddArg(L"EntityID", L"", L""); @@ -110,13 +110,13 @@ arg.AddArg(L"VATNotifyID", L""); trace(InvoiceNo + L"==1" + NInvoiceNoEx + L"==2" + SupplierID + L"==3" + dw_list.GetGuid(dw_list.GetRow())); - 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"); arg.AddArg(L"EntityID", L"", L""); @@ -136,7 +136,7 @@ arg.AddArg(L"VATNotifyID", dw_list.GetGuid(dw_list.GetRow())); trace(L"=====L" + InvoiceNo + L"=====L" + SupplierID + L"=====L" + dw_list.GetGuid(dw_list.GetRow())); - openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", p); + openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); return 1; } @@ -169,7 +169,7 @@ arg.AddArg(L"SupplierID", supplierID); arg.AddArg(L"CName", cname); - OpenWindow(L"dev:xpage[maint.papercard.vatnotify.vx]", p); + OpenWindow(L"dev:xpage[maint.papercard.vatnotify.vx]", arg); return 1; } @@ -239,7 +239,7 @@ } else if (comdid == L"find") { - m_QueryTxt = GetControl(L"txt").GetText(); + m_QueryTxt = xcontrol(GetControl(L"txt")).GetText(); return OnRetrieve(DatePicker); } else if (comdid == L"xmRefresh") @@ -278,6 +278,7 @@ AttachEvent(L"WM_SETFOCUS", (FEvent)&listvatnotifyWin::OnSetFocus); AttachEvent(L"dw_list", L"DWV_CLICKED", (FEvent)&listvatnotifyWin::OnDWClick); AttachEvent(L"cbx_state", L"CBN_SELCHANGE", (FEvent)&listvatnotifyWin::OnDatePicker); + return 1; } int OnDatePicker(TEvent* evt, int lParam) -- Gitblit v1.9.3