完成流程模板列表

This commit is contained in:
yubaolee
2016-09-14 16:11:46 +08:00
parent 0269a4f194
commit bf1121f24b
19 changed files with 497 additions and 60 deletions

View File

@@ -0,0 +1,45 @@
using System;
using System.Web.Mvc;
using Infrastructure;
using OpenAuth.App;
namespace OpenAuth.Mvc.Controllers
{
public class WorkflowSchemasController : BaseController
{
private WorkflowSchemasManagerApp _app;
public WorkflowSchemasController()
{
_app = AutofacExt.GetFromFac<WorkflowSchemasManagerApp>();
}
public ActionResult Index()
{
return View();
}
public string Load(int pageCurrent = 1, int pageSize = 30)
{
return JsonHelper.Instance.Serialize(_app.Load(pageCurrent, pageSize));
}
[HttpPost]
public string Del(string code)
{
try
{
_app.Del(code);
}
catch (Exception e)
{
BjuiResponse.statusCode = "300";
BjuiResponse.message = e.Message;
}
return JsonHelper.Instance.Serialize(BjuiResponse);
}
}
}