Пример #1
0
 public ActionResult Create(Guid? id, EnumPageState? pageState)
 {
     ViewBag.PageState = GetPageState(id, pageState);
     if (id != null)
     {
         ModelWorkFlowCreate model = new ModelWorkFlowCreate();
         model.WFFlow = bizWFFlow.GetByID<Guid>(id.Value);
         return View(model);
     }
     return View();
 }
Пример #2
0
 public ActionResult Create(ModelWorkFlowCreate model)
 {
     try
     {
         model.Save();
         return Content(WebTools.ScriptCloseDialog(DialogOption.GetDefaultInstance()));
     }
     catch
     {
         Error = "操作失败";
         ViewBag.PageState = PageState;
         return View(model);
     }
 }