public ActionResult SetNodeLayout(Guid id, Guid layoutID) { LayoutManager.SetLayoutOfFlowNode(id, layoutID); Guid flowID = FlowNodeManager.GetDbRecord(id).WorkflowID; return(RedirectToAction("NodeListOfFlow", new { id = flowID })); }
public ActionResult SetNodeLayout(Guid id) { ViewBag.nodeID = id; ViewBag.flowID = FlowNodeManager.GetDbRecord(id).WorkflowID; ViewBag.layoutID = LayoutManager.GetLayoutOfFlowNode(id).ToString(); ViewBag.layouts = LayoutManager.GetAllDbRecords(); return(PartialView()); }
void Start() { m_animator = gameObject.GetComponent <Animator>(); m_button = gameObject.GetComponent <Button>(); m_flowManager = GameObject.Find("FlowManager").GetComponent <FlowNodeManager>(); if (!m_button.interactable) { m_animator.Play("Disabled"); } }
public ActionResult FlowChart(int id) { var inst = FlowInstanceManager.GetDbRecord(id); var node = FlowNodeManager.GetDbRecord(inst.CurrentNodeID); ViewBag.id = id; ViewBag.nodeName = node.Name; ViewBag.instName = inst.Name; return(View()); }
public ActionResult SetNodeRoles(Guid id) { var node = FlowNodeManager.GetDbRecord(id); var roles = System.Web.Security.Roles.GetAllRoles(); var users = roles.SelectMany(r => System.Web.Security.Roles.GetUsersInRole(r)).Distinct().ToList(); ViewBag.node = node; ViewBag.roles = roles; ViewBag.users = users; return(View()); }
public ActionResult StepJump(int id) { var inst = FlowInstanceManager.GetDbRecord(id); var node = FlowNodeManager.GetDbRecord(inst.CurrentNodeID); switch (node.Name) { case "窗口接件": return(RedirectToAction("Step1", new { id = id })); case "审核申请材料": return(RedirectToAction("Step2", new { id = id })); case "补正材料": return(RedirectToAction("Step3", new { id = id })); case "出具不予受理决定书": return(RedirectToAction("Step4", new { id = id })); case "审核是否符合地块控制": return(RedirectToAction("Step5", new { id = id })); case "准备申请单元控制": return(RedirectToAction("Step6", new { id = id })); case "输出规划条件": return(RedirectToAction("Step7", new { id = id })); case "科长审批": return(RedirectToAction("Step8", new { id = id })); case "会审": return(RedirectToAction("Step9", new { id = id })); case "局长审批": return(RedirectToAction("Step10", new { id = id })); case "整理规划条件": return(RedirectToAction("Step11", new { id = id })); case "窗口出具准予行政许可决定书与规划条件": return(RedirectToAction("Step12", new { id = id })); case "出具不予行政许可决定书": return(RedirectToAction("Step13", new { id = id })); case "出具受理通知书": return(RedirectToAction("Step14", new { id = id })); default: return(RedirectToAction("FlowEnd", new { id = id })); } }
public ActionResult FlowStep(int id) { var inst = FlowInstanceManager.GetDbRecord(id); var flow = WorkflowManager.GetDbRecord(inst.WorkflowID); var node = FlowNodeManager.GetDbRecord(inst.CurrentNodeID); bool allowed = FlowNodeManager.IsUserAllowed(inst.CurrentNodeID, WebSecurity.CurrentUserName); bool completed = inst.Completed; int formInstID = FormManager.GetFormInstanceOfFlowInstance(id); var layoutID = LayoutManager.GetLayoutOfFlowNode(inst.CurrentNodeID); ViewBag.inst = inst; ViewBag.flow = flow; ViewBag.node = node; ViewBag.allowed = allowed; ViewBag.completed = completed; ViewBag.formInstID = formInstID; ViewBag.hasLayout = layoutID != null; return(View()); }
public ActionResult FlowStepJump(int id) { var inst = FlowInstanceManager.GetDbRecord(id); bool allowed = FlowNodeManager.IsUserAllowed(inst.CurrentNodeID, WebSecurity.CurrentUserName); if (!allowed) { return(RedirectToAction("TodoList", "Workflow")); } //if (inst.WorkflowID == Guid.Parse(UPlanWeb.Models.UPlanDb.WorkflowID_Project)) //{ // return RedirectToAction("StepJump", "ProjectFlow", new { id = id }); //} //else if (inst.WorkflowID == Guid.Parse(UPlanWeb.Models.UPlanDb.WorkflowID_UnitMutate)) //{ // return RedirectToAction("Page", "UnitMutateFlow", new { id = id }); //} return(RedirectToAction("StepJump", string.Format("Flow{0}", inst.WorkflowID.ToString().Replace("-", "_")), new { id = id })); //return RedirectToAction("FlowStep", new { id = id }); }
public ActionResult SetNodeRoles(Guid id, string submit, string role, string user) { if (submit == "添加用户") { FlowNodeManager.AddUser(id, user); } else if (submit == "删除用户") { FlowNodeManager.DeleteUser(id, user); } else if (submit == "添加角色") { FlowNodeManager.AddRole(id, role); } else if (submit == "删除角色") { FlowNodeManager.DeleteRole(id, role); } return(RedirectToAction("SetNodeRoles")); }
public ActionResult DeleteUser(Guid id, string user) { FlowNodeManager.DeleteUser(id, user); return(RedirectToAction("SetNodeRoles", new { id = id })); }
public ActionResult DeleteRole(Guid id, string role) { FlowNodeManager.DeleteRole(id, role); return(RedirectToAction("SetNodeRoles", new { id = id })); }