From cab996376fd73d68625301f6af16d2a9010ec5de Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期二, 28 七月 2026 13:31:05 +0800
Subject: [PATCH] update
---
jrj/project/business/VATNotify/list.vatinvoice.cpp | 59 +++++++++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 49 insertions(+), 10 deletions(-)
diff --git a/jrj/project/business/VATNotify/list.vatinvoice.cpp b/jrj/project/business/VATNotify/list.vatinvoice.cpp
index 2051d98..842def3 100644
--- a/jrj/project/business/VATNotify/list.vatinvoice.cpp
+++ b/jrj/project/business/VATNotify/list.vatinvoice.cpp
@@ -52,22 +52,22 @@
return 1;
}
- xstring GetEntityName(int pr)
+ xstring GetEntityName(LPARAM pr)
{
return L"VATInvoice3";
}
- xstring GetEntityIDName(int /*param*/ pr)
+ xstring GetEntityIDName(LPARAM /*param*/ pr)
{
return L"VTAInvoiceID";
}
- xstring GetEntityID(int /*param*/ pr)
+ xstring GetEntityID(LPARAM /*param*/ pr)
{
return dw_list.GetItemString(dw_list.GetRow(),L"VATInvoiceID");
}
- int ViewUpdate(int pr,xstring updateItem,xaserverarg arg)
+ int ViewUpdate(LPARAM pr,xstring updateItem,xaserverarg arg)
{
if( updateItem==L"del")
{
@@ -98,7 +98,7 @@
int h = xcombobox::GetCurSel(evt->command.hCtrl);
if(h > -1)
{
- xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h);
+ xstring txt = (string)xcombobox::GetLBText(evt->command.hCtrl, h);
if(txt==L"增值税票")
{
dw_list.openUrl(L"/sale/view/VATNotify/template/VATInvoice/list");
@@ -140,7 +140,9 @@
if(xcontrol(GetControl(L"cbx_type")).GetText() ==L"未开增值税票" ) return 1;
int row = dw_list.GetRow();
xaserverarg arg;
- xstring VatInvoiceID = dw_list.GetItemString(row,L"VATInvoiceID");
+ xstring VATInvoiceID = dw_list.GetItemString(row,L"VATInvoiceID");
+ arg.AddArg(L"VATInvoiceID", VATInvoiceID);
+
OpenWindow(L"dev:xpage[maint.vatinvoice.vx]", arg);
return 1;
}
@@ -163,6 +165,25 @@
OnRetrieve(DatePicker);
return 1;
}
+ else if (comdid == L"xmPic")
+ {
+ int row2 = dw_list.GetRow();
+ if (row2 < 1) return 1;
+ xstring ID = dw_list.GetGuid(dw_list.GetRow());
+ xaserverarg arg2;
+
+ if (ID.length() <= 0)
+ {
+ return 1;
+ }
+ trace(ID);
+ arg2.AddArg(L"entityid", ID);
+
+
+ OpenWindow(L"dev:xpage[maint.Document.Test.v3.vx]", arg2);
+
+ return 0;
+ }
else if(comdid.find(L"action:",0)>=0)
{
ProcessFlowAction(comdid,1);
@@ -172,11 +193,29 @@
OpenWindow(L"dev:xpage[del.vatinvoice.vx]");
return 1;
}
-
+ else if (comdid == L"SourceRemark") return OnSourceRemark();
return 0;
}
-
+
+ int OnSourceRemark()
+ {
+ xstring name = L"增值税票";
+ KXMLDOMDocument x = ViewObject::RetrieveData(L"/sale/data/TradeFinance3/GetSetUpRemarks", L"Type", name);
+ KXMLDOMNodeList items = x.selectNodes(L"data/Item");
+ KXMLDOMNode t = items.item(0);
+ xstring Content = L"";
+ if (t.selectSingleNode(L"Content"))
+ {
+ Content = t.selectSingleNode(L"Content").text();
+ }
+ xaserverarg arg1;
+
+ arg1.AddArg(L"value", Content);
+ OpenWindow(L"dev:xpage[memo.edit.new.vx]", arg1);
+
+ return 1;
+ }
//命令处理事件
int OnXCommand(TEvent* evt, LPARAM param)
{
@@ -201,7 +240,7 @@
int h = xcombobox::GetCurSel(evt->command.hCtrl);
if(h > -1)
{
- xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h);
+ xstring txt = (string)xcombobox::GetLBText(evt->command.hCtrl, h);
if(txt==L"出运日期")
{
@@ -281,7 +320,7 @@
xml x ;
xaserverarg arg ;
- arg.setNativePointer(arg.CreateInstance());
+
arg.AddArg(L"QueryTxt",xcontrol(GetControl(L"sle_search")).GetText());
arg.AddArg(L"QueryArg",GetQueryArg());
arg.AddArg(L"DatePicker",DatePicker);
--
Gitblit v1.9.3