From 75c79a8f48b19a40b1a86b7206fbb5302c947567 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期五, 18 十月 2024 13:56:17 +0800
Subject: [PATCH] update

---
 jrj/project/business/Quote/QuoteFilePurch2Select.cpp |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/jrj/project/business/Quote/QuoteFilePurch2Select.cpp b/jrj/project/business/Quote/QuoteFilePurch2Select.cpp
index 702a620..608928a 100644
--- a/jrj/project/business/Quote/QuoteFilePurch2Select.cpp
+++ b/jrj/project/business/Quote/QuoteFilePurch2Select.cpp
@@ -74,6 +74,21 @@
 		return 1;
 	}
 
+	xstring GetReason(LPARAM pr)
+	{
+		xaserverarg arg;
+		arg.AddArg(L"EntityID", GetEntityID(2),L"xs:string");
+		openUrl(L"/sale/view/workflow.view/xpage/chkdlg_vd", &arg);	//---openUrl("/sale/view/workflow.view/xpage/chkdlg", arg);								
+		string comdid = arg.GetArgString(L"comdid");
+		if (comdid == L"xmOK")
+		{
+			string value = arg.GetArgString(L"content");
+			if (value == L"")value = L".";
+			return value;
+		}
+		return L"";
+	}
+
 	//命令发布函数
 	int OnCmdDispatch(xstring comdid)
 	{
@@ -85,7 +100,10 @@
 				xstring TaskID = dw_process.GetItemString(row, L"taskid");
 				if (GetWinParam())
 				{
+					xstring reason = GetReason(0);
+					if (reason == L"")return 1;
 					xaserverarg arg = GetArg();
+					arg.AddArg(L"Reason", reason);
 					arg.AddArg(L"TaskID", TaskID);
 					CloseWindow();
 					return 1;

--
Gitblit v1.9.3