diff --git a/OpenAuth.App/WorkflowSchemasManagerApp.cs b/OpenAuth.App/WorkflowSchemasManagerApp.cs index e1e02108..13c42136 100644 --- a/OpenAuth.App/WorkflowSchemasManagerApp.cs +++ b/OpenAuth.App/WorkflowSchemasManagerApp.cs @@ -1,4 +1,5 @@ using System.Linq; +using System.Web.Mvc; using Infrastructure; using OpenAuth.App.ViewModel; using OpenAuth.Domain; @@ -28,10 +29,10 @@ namespace OpenAuth.App return result; } - - public void Del(string code) + [HttpPost] + public void Del(string[] codes) { - _repository.Delete(u =>u.Code == code); + _repository.Delete(u =>codes.Contains(u.Code)); } } } \ No newline at end of file diff --git a/OpenAuth.Mvc/BllScripts/processDetail.js b/OpenAuth.Mvc/BllScripts/processDetail.js index 4603a902..4674add0 100644 --- a/OpenAuth.Mvc/BllScripts/processDetail.js +++ b/OpenAuth.Mvc/BllScripts/processDetail.js @@ -43,7 +43,7 @@ $(function () { location.reload(); } else { - $(this).alertmsg('warn', data.Message); + alert(data.Message); } },'json'); }); diff --git a/OpenAuth.Mvc/BllScripts/workflowSchemaManager.js b/OpenAuth.Mvc/BllScripts/workflowSchemaManager.js index ad455684..41078066 100644 --- a/OpenAuth.Mvc/BllScripts/workflowSchemaManager.js +++ b/OpenAuth.Mvc/BllScripts/workflowSchemaManager.js @@ -55,7 +55,7 @@ function del() { var selected = list.getSelectedProperties("Code"); if (selected == null) return; - $.post('/WorkflowSchemas/Delete', + $.post('/WorkflowSchemas/Del', { codes: selected }, function (data) { if (data.Status) { @@ -76,6 +76,7 @@ function edit() { layer.open({ type: 2, + title:selected.Code, skin: 'layui-layer-rim', //加上边框 area: ['800px', '600px'], //宽高 maxmin: true, //开启最大化最小化按钮 diff --git a/OpenAuth.Mvc/Controllers/WorkflowSchemasController.cs b/OpenAuth.Mvc/Controllers/WorkflowSchemasController.cs index 73176b41..4c785b7a 100644 --- a/OpenAuth.Mvc/Controllers/WorkflowSchemasController.cs +++ b/OpenAuth.Mvc/Controllers/WorkflowSchemasController.cs @@ -24,11 +24,11 @@ namespace OpenAuth.Mvc.Controllers } [HttpPost] - public string Del(string code) + public string Del(string[] codes) { try { - _app.Del(code); + _app.Del(codes); } catch (Exception e) {