From fa2de0461cb79df0ba5e736b4aea8bff1056688a Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期五, 13 九月 2024 10:07:40 +0800 Subject: [PATCH] update --- jrj/project/business/VATNotify/simple.maint.vatnotify.cpp | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp b/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp index f60c9b4..f11d770 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; arg.AddArg(L"EntityName", L"VATNotify"); 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; } @@ -369,7 +369,7 @@ { xml x ; - xaserverarg arg = ViewObject::MakeArg(); + xaserverarg arg ; arg.AddArg(L"ClassifyID", ClassifyID); arg.AddArg(L"InvoiceNo", InvoiceNo); arg.AddArg(L"InvoiceExcept", InvoiceNoExcept); @@ -390,7 +390,7 @@ { xml x ; - xaserverarg arg = ViewObject::MakeArg(); + xaserverarg arg ; arg.AddArg(L"ClassifyID", ClassifyID); arg.AddArg(L"InvoiceNo", InvoiceNo); arg.AddArg(L"InvoiceExcept", InvoiceNoExcept); @@ -607,7 +607,7 @@ dw_item.AcceptText(); dw_item.DwUpdateAllToEx(x); - xaserverarg arg = ViewObject::MakeArg(); + xaserverarg arg ; arg.AddArg(L"content", x.xml()); @@ -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) @@ -729,10 +730,9 @@ { KXMLDOMElement e = lst.item(i); docElement.appendChild(e); - e.Release(); + } - docElement.Release(); - lst.Release(); + dw_fob.Retrieve(x1); } else @@ -778,7 +778,7 @@ if (GetWinParam()) { - int pArg = GetArg(); + arg = GetArg(); } else @@ -829,6 +829,7 @@ int onload() { + SetArg(); dw_item = GetControl(L"dw_item"); dw_item.openUrl(L"/sale/view/VATNotify/template/VATNotify/item"); dw_item.SetColumnState(L"InvoiceNo", false); @@ -859,7 +860,7 @@ if (GetWinParam()) { - int pArg = GetArg(); + arg = GetArg(); InvNo = arg.GetArgString(L"invoiceno"); SetWindowText(GetHWND(), InvNo); -- Gitblit v1.9.3