From a4d2315ee4ca3f6177b4fb2526bed2feff3d89be Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 22 十月 2025 16:52:58 +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