mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 14:04:41 +08:00
delete workflow
This commit is contained in:
parent
b1ee459c9e
commit
c12466e8f3
@ -1,4 +1,5 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Web.Mvc;
|
||||||
using Infrastructure;
|
using Infrastructure;
|
||||||
using OpenAuth.App.ViewModel;
|
using OpenAuth.App.ViewModel;
|
||||||
using OpenAuth.Domain;
|
using OpenAuth.Domain;
|
||||||
@ -28,10 +29,10 @@ namespace OpenAuth.App
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
[HttpPost]
|
||||||
public void Del(string code)
|
public void Del(string[] codes)
|
||||||
{
|
{
|
||||||
_repository.Delete(u =>u.Code == code);
|
_repository.Delete(u =>codes.Contains(u.Code));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -43,7 +43,7 @@ $(function () {
|
|||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(this).alertmsg('warn', data.Message);
|
alert(data.Message);
|
||||||
}
|
}
|
||||||
},'json');
|
},'json');
|
||||||
});
|
});
|
||||||
|
@ -55,7 +55,7 @@ function del() {
|
|||||||
var selected = list.getSelectedProperties("Code");
|
var selected = list.getSelectedProperties("Code");
|
||||||
if (selected == null) return;
|
if (selected == null) return;
|
||||||
|
|
||||||
$.post('/WorkflowSchemas/Delete',
|
$.post('/WorkflowSchemas/Del',
|
||||||
{ codes: selected },
|
{ codes: selected },
|
||||||
function (data) {
|
function (data) {
|
||||||
if (data.Status) {
|
if (data.Status) {
|
||||||
@ -76,6 +76,7 @@ function edit() {
|
|||||||
|
|
||||||
layer.open({
|
layer.open({
|
||||||
type: 2,
|
type: 2,
|
||||||
|
title:selected.Code,
|
||||||
skin: 'layui-layer-rim', //加上边框
|
skin: 'layui-layer-rim', //加上边框
|
||||||
area: ['800px', '600px'], //宽高
|
area: ['800px', '600px'], //宽高
|
||||||
maxmin: true, //开启最大化最小化按钮
|
maxmin: true, //开启最大化最小化按钮
|
||||||
|
@ -24,11 +24,11 @@ namespace OpenAuth.Mvc.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public string Del(string code)
|
public string Del(string[] codes)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_app.Del(code);
|
_app.Del(codes);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user