From a4344c9bada0722c6ef7fac5d95f29a110eea0f1 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期一, 21 四月 2025 10:32:05 +0800 Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/mis-prj --- 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