From ee4e31fcf57b43d6324632ce193d239b8cdf3a87 Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期五, 17 七月 2026 11:11:14 +0800
Subject: [PATCH] update
---
jrj/project/business/VATNotify/maint.vatinvoice..cpp | 29 ++++++++++++++++++++++++++++-
1 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/jrj/project/business/VATNotify/maint.vatinvoice..cpp b/jrj/project/business/VATNotify/maint.vatinvoice..cpp
index a72a604..dbbd742 100644
--- a/jrj/project/business/VATNotify/maint.vatinvoice..cpp
+++ b/jrj/project/business/VATNotify/maint.vatinvoice..cpp
@@ -319,7 +319,32 @@
}
return 1;
}
-
+
+ int OnItemClick(TEvent* evt, LPARAM p)
+ {
+ DWNMHDR& hdr1 = *(DWNMHDR*)evt->notify.pnmh;
+ xstring colname = hdr1.colname;
+
+ DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh;
+ xstring value = hdr.data;
+
+ xaserverarg arg;
+
+
+ if (value == L"附件上传")
+ {
+ if (dw_base.GetGuid(1) == L"")
+ {
+ alert(L"请先保存,在添加附件!");
+ return 0;
+ }
+ arg.AddArg(L"entityid", dw_base.GetGuid(1));
+
+ OpenWindow(L"dev:xpage[maint.Document.Test.v3.vx]", arg);
+ }
+
+ return 1;
+ }
int OnAttachEvent()
{
//绑定工具条点击事件
@@ -328,6 +353,7 @@
AttachEvent(L"WM_SETFOCUS", (FEvent)&MaintVATInvoice::OnSetFocus);
AttachEvent(L"dw_list",L"DWV_ITEMCHANGED", (FEvent)&MaintVATInvoice::OnItemChanged);
AttachEvent(L"dw_base",L"DWV_ITEMCHANGED", (FEvent)&MaintVATInvoice::OnItemChangedTwo);
+ AttachEvent(L"dw_base", L"DWV_CLICKED", (FEvent)&MaintVATInvoice::OnItemClick);
return 1;
}
@@ -381,6 +407,7 @@
{
xaserverarg arg = GetArg();
VATInvoiceID = arg.GetArgString(L"VATInvoiceID");
+
}
--
Gitblit v1.9.3