public JsonResult LoadTreeData(string FunctionType, string FunctionID, string FunctionCode = "") { FunctionType = FunctionType ?? FunctionNodeType.Function.ToString(); AbstractPortalTreeHandler handler = CreateHandler(FunctionType); object treeObj = handler.CreatePortalTree(FunctionID, FunctionCode); return(Json(treeObj, JsonRequestBehavior.AllowGet)); }
public JsonResult CreateHandler() { return(this.ExecuteFunctionRun(() => { AbstractPortalTreeHandler handler = this.CreateHandler(this); //object treeObj = handler.CreatePortalTree(this.FunctionID, this.FunctionCode); object treeObj = handler.CreatePortalTree(this.FunctionID, FunctionNode.AdminRootCode); return Json(treeObj, JsonRequestBehavior.AllowGet); })); }
public JsonResult CreateWorkflowTree(string FunctionID, string FunctionCode, string FunctionType, string ContainDraft = "false", string IsBizObjectMode = "false", string IsSharedPacket = "false") { return(ExecuteFunctionRun(() => { FunctionType = FunctionType ?? FunctionNodeType.ProcessModel.ToString(); FunctionID = FunctionID ?? ""; AbstractPortalTreeHandler handler = CreateHandler(FunctionType, ContainDraft, IsBizObjectMode, IsSharedPacket); object treeObj = handler.CreatePortalTree(FunctionID, FunctionCode); return Json(treeObj, JsonRequestBehavior.AllowGet); })); }
public JsonResult LoadTreeData(string FunctionType, string FunctionID, string FunctionCode = "", string OwnSchemaCode = "") { return(ExecuteFunctionRun(() => { FunctionType = FunctionType ?? FunctionNodeType.Function.ToString(); AbstractPortalTreeHandler handler = CreateHandler(FunctionType); object treeObj = null; if (!string.IsNullOrEmpty(OwnSchemaCode)) { treeObj = handler.CreatePortalTree(FunctionID, FunctionCode, OwnSchemaCode); } else { treeObj = handler.CreatePortalTree(FunctionID, FunctionCode); } return Json(treeObj, JsonRequestBehavior.AllowGet); }, string.Empty)); }
public JsonResult GetDepolyTree() { return(ExecuteFunctionRun(() => { ActionResult result = new ActionResult(); AbstractPortalTreeHandler handler = CreateHandler(this, FunctionNodeType.Function); List <PortalTreeNode> root = handler.CreatePortalTree("", FunctionNode.AdminRootCode) as List <PortalTreeNode>; if (root != null) { foreach (PortalTreeNode node in root) { node.NeedDeploy = true; SetChildTreeNode(this, node); } } result.Extend = new { Rows = root }; return Json(result.Extend, JsonRequestBehavior.AllowGet); })); }