From e430b2716d53a9170e750fe4e579a07a79d0f32b Mon Sep 17 00:00:00 2001 From: yubaolee Date: Fri, 9 Sep 2016 17:51:33 +0800 Subject: [PATCH] delete demo config in web.config --- OpenAuth.Mvc/BllScripts/processDetail.js | 9 +++++++-- OpenAuth.Mvc/Controllers/CommonAppliesController.cs | 4 ++++ OpenAuth.Mvc/Web.config | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/OpenAuth.Mvc/BllScripts/processDetail.js b/OpenAuth.Mvc/BllScripts/processDetail.js index 3838492c..ac8f285b 100644 --- a/OpenAuth.Mvc/BllScripts/processDetail.js +++ b/OpenAuth.Mvc/BllScripts/processDetail.js @@ -38,8 +38,13 @@ $(function () { .on("click", function () { //执行命令 $.post("/CommonApplies/ExeCmd?id=" +$("#processId").val() +"&cmd=" +$(this).val() , function (data) { - BJUI.dialog('refresh', 'detailDlg'); - }); + if (data.statusCode == "200") { + BJUI.dialog('refresh', 'detailDlg'); + } + else { + $(this).alertmsg('warn', data.message); + } + },'json'); }); }); diff --git a/OpenAuth.Mvc/Controllers/CommonAppliesController.cs b/OpenAuth.Mvc/Controllers/CommonAppliesController.cs index ad4ad7f5..a5b544f1 100644 --- a/OpenAuth.Mvc/Controllers/CommonAppliesController.cs +++ b/OpenAuth.Mvc/Controllers/CommonAppliesController.cs @@ -13,6 +13,10 @@ using ProcessStatus = OptimaJet.Workflow.Core.Persistence.ProcessStatus; namespace OpenAuth.Mvc.Controllers { + /// + /// 通用申请流程处理 + /// 李玉宝新增于2016-09-08 19:21:59 + /// public class CommonAppliesController : BaseController { private CommonApplyApp _app; diff --git a/OpenAuth.Mvc/Web.config b/OpenAuth.Mvc/Web.config index 3e39551d..660fe9d4 100644 --- a/OpenAuth.Mvc/Web.config +++ b/OpenAuth.Mvc/Web.config @@ -62,7 +62,7 @@ - +