From 2a6901ac7c292e372bb78d654ab777bdc19ee1a5 Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 15 七月 2026 11:21:41 +0800
Subject: [PATCH] update

---
 jrj/project/business/VATNotify/maint.vatinvoice..cpp |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/jrj/project/business/VATNotify/maint.vatinvoice..cpp b/jrj/project/business/VATNotify/maint.vatinvoice..cpp
index 631b1e5..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;
 		}
 		

--
Gitblit v1.9.3