From c0e55e3e5cf60552374593f7053b7d0aa1f93f48 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期二, 17 十二月 2024 12:53:05 +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..ea80727 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);								
+		xstring comdid = arg.GetArgString(L"comdid");
+		if (comdid == L"xmOK")
+		{
+			xstring 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