增加流程状态转换列表

This commit is contained in:
yubaolee
2016-09-07 11:11:34 +08:00
parent 96e8eec1e7
commit 0c82f7b8c3
20 changed files with 499 additions and 38 deletions

View File

@@ -39,6 +39,8 @@ namespace OpenAuth.Mvc.Controllers
{
apply.UserId = AuthUtil.GetCurrentUser().User.Id;
_app.AddOrUpdate(apply);
CreateWorkflowIfNotExists(apply.Id);
}
catch (Exception ex)
{
@@ -53,7 +55,6 @@ namespace OpenAuth.Mvc.Controllers
try
{
GoodsApplyVM apply = _app.Get(id);
CreateWorkflowIfNotExists(id);
apply.Commands = GetCommands(id);
return View(apply);
}
@@ -160,5 +161,6 @@ namespace OpenAuth.Mvc.Controllers
WorkflowInit.Runtime.ExecuteCommand(id, currentUser, currentUser, command);
}
}
}