/// <summary> /// 绑定界面树状结构 /// </summary> /// <param name="dtTree"></param> public void ExeBindTree(DataTable dtTree) { this.treeArea.Nodes.Clear(); ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = "0"; node.Text = "全部"; node.IconUrl = "~/Icons/package.png"; node.AutoPostBack = true; node.Expanded = true; node.EnablePostBack = true; if (dtTree != null && dtTree.Rows.Count != 0) { foreach (DataRow dr in dtTree.Rows) { if (dr["PARENT_ID"].ToString() == string.Empty) { ExtAspNet.TreeNode nodeChild = new ExtAspNet.TreeNode(); nodeChild.NodeID = dr["AREA_ID"].ToString(); nodeChild.Text = dr["AREA_NAME"].ToString(); //node.IconUrl = nodeChild.Expanded = true; nodeChild.EnablePostBack = true; nodeChild.AutoPostBack = true; CreateTree(dr["AREA_ID"].ToString(), nodeChild, dtTree); node.Nodes.Add(nodeChild); } } } this.treeArea.Nodes.Add(node); }
protected void btnSave_Click(object sender, EventArgs e) { editSupArgs.UserId = Request.QueryString["EditSuperviseID"]; editSupArgs.UserNo = txtUserNo.Text; editSupArgs.UserName = txtUserName.Text; editSupArgs.OrganId = Session["SelectedOrganIdSupersiveEdit"].ToString(); editSupArgs.RoleId = ViewState["RoleId"].ToString(); ExtAspNet.TreeNode nodeCollection = treePower.Nodes[0]; foreach (ExtAspNet.TreeNode node in nodeCollection.Nodes) { // 如果当前节点有叶节点 if (node.Nodes.Count > 0) { // 循环叶节点 for (int i = 0; i < node.Nodes.Count; i++) { // 如果当前叶节点已勾选 if (node.Nodes[i].Checked) { // 如果是第一个叶节点时,记录此叶节点的根节点(根节点只需记录一次) if (i == 0) { editSupArgs.ListFunction.Add(node.NodeID); } // 记录这个已勾选的叶节点 editSupArgs.ListFunction.Add(node.Nodes[i].NodeID); } } } } editSupArgs.LoginUser = (DataTable)Session["User"]; OnSave(null, editSupArgs); }
/// <summary> /// 创建树节点 /// </summary> /// <param name="parent">父编码</param> /// <param name="pnode">节点</param> /// <param name="data">全部功能</param> /// <param name="dtFun">该用户所拥有功能</param> public void CreateColumnTree(string parent, ExtAspNet.TreeNode pnode, DataTable data, DataTable dtFun) { foreach (DataRow dr in data.Rows) { if (dr["PARENT_ID"].ToString() == parent) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = dr["DEPT_ID"].ToString(); node.Text = dr["DEPT_NAME"].ToString(); foreach (DataRow drf in dtFun.Rows) { if (dr["DEPT_ID"].ToString() == drf["DEPT_ID"].ToString()) { node.Checked = true; node.Expanded = true; pnode.Expanded = true; } } node.EnableCheckBox = true; node.AutoPostBack = true; CreateColumnTree(dr["DEPT_ID"].ToString(), node, data, dtFun); pnode.Nodes.Add(node); } } }
private void LoadDataMain() { menu m = menu.Root; if (m == null || m.Childs == null || m.Childs.Count < 1) { return; } m = m.Childs[0]; if (m == null) { return; } EntityList <menu> list = Administrator.Current.Role.GetMySubMenus(m.ID); if ((list != null) && (list.Count > 0)) { foreach (menu item in list) { ExtAspNet.TreeNode tn = new ExtAspNet.TreeNode(); tn.Text = item.Name; tn.Expanded = true; tn.Leaf = false; treeMenu.Nodes.Add(tn); //循环得到父节点的子节点 ResolveSubTree(item, tn); } } }
/// <summary> /// 绑定界面树状结构 /// </summary> /// <param name="dtTree"></param> public void InitTree(DataTable dtTree, string mainField, string parentField, string textField) { B_Tree.Nodes.Clear(); ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = "0"; node.Text = "全部"; node.IconUrl = "~/Icons/package.png"; node.AutoPostBack = true; node.Expanded = true; node.EnableCheckBox = true; if (dtTree != null && dtTree.Rows.Count != 0) { foreach (DataRow dr in dtTree.Rows) { if (dr[parentField].ToString() == string.Empty) { ExtAspNet.TreeNode nodeChild = new ExtAspNet.TreeNode(); nodeChild.NodeID = dr[mainField].ToString(); nodeChild.Text = dr[textField].ToString(); //node.IconUrl = nodeChild.EnableCheckBox = true; nodeChild.Expanded = true; nodeChild.AutoPostBack = true; CreateTree(dr[mainField].ToString(), nodeChild, dtTree, mainField, parentField, textField); node.Nodes.Add(nodeChild); } } } B_Tree.Nodes.Add(node); }
protected void btnSave_Click(object sender, EventArgs e) { addRoleArgs.RoleName = txtRoleName.Text; ExtAspNet.TreeNode nodeCollection = treePower.Nodes[0]; foreach (ExtAspNet.TreeNode node in nodeCollection.Nodes) { // 如果当前节点有叶节点 if (node.Nodes.Count > 0) { // 循环叶节点 for (int i = 0; i < node.Nodes.Count; i++) { // 如果当前叶节点已勾选 if (node.Nodes[i].Checked) { // 如果是第一个叶节点时,记录此叶节点的根节点(根节点只需记录一次) if (i == 0) { addRoleArgs.ListFunction.Add(node.NodeID); } // 记录这个已勾选的叶节点 addRoleArgs.ListFunction.Add(node.Nodes[i].NodeID); } } } } addRoleArgs.User = (DataTable)Session["User"]; OnSave(null, addRoleArgs); }
private void ResolveSubTree(menu entity, ExtAspNet.TreeNode treeNode) { EntityList <menu> list = Administrator.Current.Role.GetMySubMenus(entity.ID); if ((list != null) && (list.Count > 0)) { foreach (NewLife.CommonEntity.Menu item in list) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.Text = item.Name; node.Expanded = true; if ((item.Url != null) && (item.Url != "")) { node.Leaf = true; node.NavigateUrl = item.Url; } else { node.Leaf = false; } treeNode.Nodes.Add(node); //循环得到父节点的子节点 ResolveSubTree(item, node); } } }
public void InitTree(DataTable data) { this.tree_Main.Nodes.Clear(); ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); //node.NodeID = "1"; //node.Text = "全部"; //node.IconUrl = "~/Icons/package.png"; //node.EnablePostBack = true; //node.Expanded = true; //this.tree_Main.Nodes.Add(node); if (data != null && data.Rows.Count != 0) { foreach (DataRow dr in data.Rows) { if (dr["PARENT_ID"].ToString() == string.Empty) { node = new ExtAspNet.TreeNode(); node.NodeID = dr["DEPT_ID"].ToString(); node.Text = dr["DEPT_NAME"].ToString(); //node.IconUrl = "~/Icons/group.png"; node.Expanded = true; node.EnablePostBack = true; CreateTree(dr["DEPT_ID"].ToString(), node, data); this.tree_Main.Nodes.Add(node); } } } }
/// <summary> /// 展开特定的节点 /// </summary> /// <param name="NodeIds"></param> /// <param name="Node"></param> private void ExpandNodes(string[] NodeIds, ExtAspNet.TreeNode Node) { foreach (ExtAspNet.TreeNode node in Node.Nodes) { if (NodeIds.Contains <string>(node.NodeID)) { node.Expanded = true; ExpandNodes(NodeIds, node); } } }
/// <summary> /// 创建菜单 /// </summary> /// <param name="tree">对应菜单树</param> /// <param name="ap">对应菜单选项卡</param> /// <param name="title">菜单名称</param> /// <param name="iconUrl">图标路径</param> /// <param name="navigateUrl">导航路径</param> private void CreateTree(string nodeId, Tree tree, AccordionPane ap, string title, string iconUrl, string navigateUrl) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = nodeId; node.Text = title; node.IconUrl = iconUrl; node.NavigateUrl = navigateUrl; tree.Nodes.Add(node); ap.Hidden = false; ap.Expanded = false; ap.Expanded = true; }
// 保存事件 protected void btnSave_Click(object sender, EventArgs e) { addSuperArgs.UserNo = txtUserNo.Text; addSuperArgs.UserName = txtUserName.Text; addSuperArgs.User = (DataTable)Session["User"]; // 超级管理员 if (chkSupperMan.Checked) { addSuperArgs.OrganId = ""; addSuperArgs.UserType = "1"; addSuperArgs.RoleType = "0"; addSuperArgs.IsCheckSupper = true; } // 普通管理员 else { if (txtOrganName.Text == "") { Alert.Show("组织不能为空!"); txtOrganName.Required = true; txtOrganName.ShowRedStar = true; return; } addSuperArgs.OrganId = Session["SelectedOrganIdSuperviseAdd"].ToString(); addSuperArgs.UserType = "2"; addSuperArgs.RoleType = "1"; ExtAspNet.TreeNode nodeCollection = treeRole.Nodes[0]; foreach (ExtAspNet.TreeNode node in nodeCollection.Nodes) { // 如果当前节点有叶节点 if (node.Nodes.Count > 0) { // 循环叶节点 for (int i = 0; i < node.Nodes.Count; i++) { // 如果当前叶节点已勾选 if (node.Nodes[i].Checked) { // 如果是第一个叶节点时,记录此叶节点的根节点(根节点只需记录一次) if (i == 0) { addSuperArgs.ListFunction.Add(node.NodeID); } // 记录这个已勾选的叶节点 addSuperArgs.ListFunction.Add(node.Nodes[i].NodeID); } } } } } OnSave(null, addSuperArgs); }
/// <summary> /// 递归获得树状结构已选节点ID /// </summary> /// <param name="list"></param> /// <param name="Node"></param> /// <returns></returns> private List <string> GetTreeSelectID(List <string> list, ExtAspNet.TreeNode Node) { for (int i = 0; i < Node.Nodes.Count; i++) { // 如果当前叶节点已勾选 if (Node.Nodes[i].Checked) { list.Add(Node.Nodes[i].NodeID); // 记录这个已勾选的叶节点 } GetTreeSelectID(list, Node.Nodes[i]); } return(list); }
/// <summary> /// 创建树节点 /// </summary> /// <param name="parent">父编码</param> /// <param name="pnode">节点</param> /// <param name="featList">数据</param> public void CreateTree(string parent, ExtAspNet.TreeNode pnode, DataTable data) { foreach (DataRow dr in data.Rows) { if (dr["PARENTID"].ToString() == parent) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = dr["ID"].ToString(); node.Text = dr["NAME"].ToString(); node.EnablePostBack = true; CreateTree(dr["ID"].ToString(), node, data); pnode.Nodes.Add(node); } } }
/// <summary> /// 创建树节点 /// </summary> /// <param name="parent">父编码</param> /// <param name="pnode">节点</param> /// <param name="featList">数据</param> public void CreateTree(string parent, ExtAspNet.TreeNode pnode, DataTable data, string mainField, string parentField, string textField) { foreach (DataRow dr in data.Rows) { if (dr[parentField].ToString() == parent) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = dr[mainField].ToString(); node.Text = dr[textField].ToString(); node.EnableCheckBox = true; node.AutoPostBack = true; CreateTree(dr[mainField].ToString(), node, data, mainField, parentField, textField); pnode.Nodes.Add(node); } } }
/// <summary> /// 创建树节点 /// </summary> /// <param name="parent">父编码</param> /// <param name="pnode">节点</param> /// <param name="featList">数据</param> public void CreateTree(string parent, ExtAspNet.TreeNode pnode, DataTable data) { foreach (DataRow dr in data.Rows) { if (dr["PARENT_ID"].ToString() == parent) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = dr["DEPT_ID"].ToString(); node.Text = dr["DEPT_NAME"].ToString(); //node.IconUrl = "~/Icons/group.png"; node.EnablePostBack = true; node.EnableCheckBox = true; CreateTree(dr["DEPT_ID"].ToString(), node, data); pnode.Nodes.Add(node); } } }
/// <summary> /// 创建树节点 /// </summary> /// <param name="parent">父编码</param> /// <param name="pnode">节点</param> /// <param name="featList">数据</param> public void CreateTree(string parent, ExtAspNet.TreeNode pnode, DataTable data) { foreach (DataRow dr in data.Rows) { if (dr["PARENT_ID"].ToString() == parent) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = dr["COLUMN_TREE_ID"].ToString(); node.Text = dr["COLUMN_TREE_NAME"].ToString(); node.ToolTip = dr["COLUMN_DESCRIPTION"].ToString(); //node.IconUrl = "~/Icons/group.png"; //node.Expanded = true; node.EnablePostBack = true; CreateTree(dr["COLUMN_TREE_ID"].ToString(), node, data); pnode.Nodes.Add(node); } } }
private void InitTree(string username) { DataTable dt = rolePowerManager.SelectPowersByUID(((UserInfo)Session["user"]).UID); DataView dv = new DataView(dt); dv.RowFilter = "prarentId=0"; foreach (DataRowView drv in dv) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.Target = "main"; node.Text = drv["PowerName"].ToString(); node.ToolTip = drv["PowerId"].ToString(); node.Expanded = true; treeMenu.Nodes.Add(node); AddReplies(dt, node); } }
/// <summary> /// 创建树节点 /// </summary> /// <param name="parent">父编码</param> /// <param name="pnode">节点</param> /// <param name="featList">数据</param> public void CreateTree(string parent, ExtAspNet.TreeNode pnode, DataTable data) { foreach (DataRow dr in data.Rows) { if (dr["PARENT_ID"].ToString() == parent) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = dr["COLUMN_TREE_ID"].ToString(); node.Text = dr["COLUMN_TREE_NAME"].ToString(); if (dr["ISHAVECOMPENTENCE"].ToString() == "0") { node.Enabled = false; } //node.IconUrl = "~/Icons/group.png"; node.EnablePostBack = true; CreateTree(dr["COLUMN_TREE_ID"].ToString(), node, data); pnode.Nodes.Add(node); } } }
/// <summary> /// 绑定界面树状结构 /// </summary> /// <param name="dtTree"></param> /// <param name="dtFun">角色所拥有权限</param> public void ExeBindTree(DataTable dtTree, DataTable dtFun) { this.treePower.Nodes.Clear(); ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = "0"; node.Text = "全部"; node.IconUrl = "~/Icons/package.png"; node.AutoPostBack = true; node.Expanded = true; node.EnableCheckBox = true; if (dtTree != null && dtTree.Rows.Count != 0) { foreach (DataRow dr in dtTree.Rows) { if (dr["PARENT_ID"].ToString() == string.Empty) { ExtAspNet.TreeNode nodeChild = new ExtAspNet.TreeNode(); nodeChild.NodeID = dr["FUNCTION_ID"].ToString(); nodeChild.Text = dr["FUNCTION_NAME"].ToString(); //node.IconUrl = nodeChild.EnableCheckBox = true; nodeChild.Expanded = true; nodeChild.AutoPostBack = true; foreach (DataRow drf in dtFun.Rows) { if (dr["function_id"].ToString() == drf["function_id"].ToString()) { nodeChild.Checked = true; } } CreateTree(dr["FUNCTION_ID"].ToString(), nodeChild, dtTree, dtFun); node.Nodes.Add(nodeChild); } } } this.treePower.Nodes.Add(node); }
public void ExeBindMenu(System.Data.DataTable dtMenu, DataTable dtFun) { this.treeMenu.Nodes.Clear(); ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.NodeID = "0"; node.Text = "功能菜单"; node.IconUrl = "~/Icons/package.png"; node.AutoPostBack = true; node.Expanded = true; node.EnableCheckBox = true; if (dtMenu != null && dtMenu.Rows.Count != 0) { foreach (DataRow dr in dtMenu.Rows) { if (dr["PARENT_ID"].ToString() == string.Empty) { ExtAspNet.TreeNode nodeChild = new ExtAspNet.TreeNode(); nodeChild.NodeID = dr["MENU_ID"].ToString(); nodeChild.Text = dr["MENU_NAME"].ToString(); //node.IconUrl = nodeChild.EnableCheckBox = true; nodeChild.Expanded = true; nodeChild.AutoPostBack = true; foreach (DataRow drf in dtFun.Rows) { if (dr["MENU_ID"].ToString() == drf["MENU_ID"].ToString()) { nodeChild.Checked = true; } } CreateMenuTree(dr["MENU_ID"].ToString(), nodeChild, dtMenu, dtFun); node.Nodes.Add(nodeChild); } } } this.treeMenu.Nodes.Add(node); }
/// <summary> /// 绑定tree /// </summary> /// <param name="tree"></param> /// <param name="dtColumn"></param> /// <param name="dtFun">勾选的</param> public void ExeBindColumn(ExtAspNet.Tree tree, System.Data.DataTable dtColumn, DataTable dtFun) { tree.Nodes.Clear(); //ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); //node.NodeID = "0"; //node.Text = "全部"; //node.IconUrl = "~/Icons/package.png"; //node.AutoPostBack = true; //node.Expanded = true; //node.EnableCheckBox = true; if (dtColumn != null && dtColumn.Rows.Count != 0) { foreach (DataRow dr in dtColumn.Rows) { if (dr["PARENT_ID"].ToString() == string.Empty) { ExtAspNet.TreeNode nodeChild = new ExtAspNet.TreeNode(); nodeChild.NodeID = dr["DEPT_ID"].ToString(); nodeChild.Text = dr["DEPT_NAME"].ToString(); //node.IconUrl = nodeChild.EnableCheckBox = true; nodeChild.Expanded = true; nodeChild.AutoPostBack = true; foreach (DataRow drf in dtFun.Rows) { if (dr["DEPT_ID"].ToString() == drf["DEPT_ID"].ToString()) { nodeChild.Checked = true; nodeChild.Expanded = true; } } CreateColumnTree(dr["DEPT_ID"].ToString(), nodeChild, dtColumn, dtFun); tree.Nodes.Add(nodeChild); } } } }
private void LoadDataMain() { menu m = menu.Root; if (m == null || m.Childs == null || m.Childs.Count < 1) return; m = m.Childs[0]; if (m == null) return; EntityList<menu> list = Administrator.Current.Role.GetMySubMenus(m.ID); if ((list != null) && (list.Count > 0)) { foreach (menu item in list) { ExtAspNet.TreeNode tn = new ExtAspNet.TreeNode(); tn.Text = item.Name; tn.Expanded = true; tn.Leaf = false; treeMenu.Nodes.Add(tn); //循环得到父节点的子节点 ResolveSubTree(item, tn); } } }
/// <summary> /// 递归获得树状结构已选节点ID /// </summary> /// <param name="list"></param> /// <param name="Node"></param> /// <returns></returns> private List <string> GetTreeSelectID(List <string> list, ExtAspNet.TreeNode Node) { bool isAddParent = false; for (int i = 0; i < Node.Nodes.Count; i++) { // 如果当前叶节点已勾选 if (Node.Nodes[i].Checked) { if (isAddParent == false) { if (!list.Contains(Node.NodeID)) { list.Add(Node.NodeID); } isAddParent = true; } list.Add(Node.Nodes[i].NodeID); // 记录这个已勾选的叶节点 } GetTreeSelectID(list, Node.Nodes[i]); } return(list); }
private void AddReplies(DataTable dt, ExtAspNet.TreeNode node) { DataView dv = new DataView(dt); dv.RowFilter = "prarentId=" + node.ToolTip; foreach (DataRowView row in dv) { ExtAspNet.TreeNode replyNode = new ExtAspNet.TreeNode(); replyNode.IconUrl = "~/images/tree_12.gif"; replyNode.OnClientClick = string.Format("addTestTab('{0}','{1}');return false;", row["UrL"].ToString(), row["PowerName"].ToString()); replyNode.Target = "main"; replyNode.Text = row["PowerName"].ToString(); replyNode.ToolTip = row["PowerId"].ToString(); //replyNode.NavigateUrl =row["UrL"].ToString(); replyNode.Expanded = true; node.Nodes.Add(replyNode); AddReplies(dt, replyNode);//子节点的子节点 } }
/// <summary> /// 构造函数 /// </summary> /// <param name="node">树节点</param> /// <param name="isChecked">是否选中</param> public TreeCheckEventArgs(TreeNode node, bool isChecked) { _node = node; _nodeID = node.NodeID; _checked = isChecked; }
/// <summary> /// 构造函数 /// </summary> /// <param name="node">树节点</param> /// <param name="commandName">命令名称</param> /// <param name="commandArgument">命令参数</param> public TreeCommandEventArgs(TreeNode node, string commandName, string commandArgument) { _node = node; _nodeID = node.NodeID; _commandName = commandName; _commandArgument = commandArgument; }
/// <summary> /// 构造函数 /// </summary> /// <param name="node">树节点</param> public TreeExpandEventArgs(TreeNode node) { _node = node; _nodeID = node.NodeID; }
private void ResolveSubTree(menu entity, ExtAspNet.TreeNode treeNode) { EntityList<menu> list = Administrator.Current.Role.GetMySubMenus(entity.ID); if ((list != null) && (list.Count > 0)) { foreach (NewLife.CommonEntity.Menu item in list) { ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); node.Text = item.Name; node.Expanded = true; if ((item.Url != null) && (item.Url != "")) { node.Leaf = true; node.NavigateUrl = item.Url; } else { node.Leaf = false; } treeNode.Nodes.Add(node); //循环得到父节点的子节点 ResolveSubTree(item, node); } } }
// 菜单加载 protected void ren_Left_Init(object sender, EventArgs e) { DataTable dtUser = (DataTable)Session["User"]; if (dtUser != null) { if (dtUser.Rows.Count > 0) { defaultArgs.LoginUserId = dtUser.Rows[0]["user_id"].ToString(); OnQueryFunctionByUserId(null, defaultArgs); DataTable dtFun = defaultArgs.UserFunction; ExtAspNet.TreeNode node = new ExtAspNet.TreeNode(); if (dtFun != null && dtFun.Rows.Count > 0) { tree_MBasic.Nodes.Clear(); tree_MBusiness.Nodes.Clear(); tree_MArticle.Nodes.Clear(); tree_MInfo.Nodes.Clear(); tree_MGoods.Nodes.Clear(); tree_MDept.Nodes.Clear(); tree_MUser.Nodes.Clear(); tree_MSystem.Nodes.Clear(); tree_Suppter.Nodes.Clear(); for (int i = 0; i < dtFun.Rows.Count; i++) { switch (dtFun.Rows[i]["function_id"].ToString()) { // 单位 case "1": break; // 新增单位 case "21": CreateTree("2_1", tree_MBasic, ap_MBasic, "新增单位", "Icons/world_connect.png", "UI/Unit/AddUnit.aspx"); break; // 单位管理 case "22": CreateTree("2_2", tree_MBasic, ap_MBasic, "单位管理", "Icons/textfield_key.png", "UI/Unit/UnitSelect.aspx"); break; // 行政处罚 case "2": break; // 执行监督 case "23": CreateTree("2_3", tree_MBusiness, ap_MBusiness, "执行监督", "Icons/world_connect.png", "UI/Supervise/ExeCheck.aspx"); break; // 执行任务 case "24": CreateTree("2_4", tree_MBusiness, ap_MBusiness, "执行任务", "Icons/textfield_key.png", "UI/ExeTask/ExeTask.aspx"); break; // 监督记录 case "25": CreateTree("2_5", tree_MBusiness, ap_MBusiness, "监督记录", "Icons/world_connect.png", "UI/QueryCheckTask/QueryCheck.aspx"); break; // 任务记录 case "26": CreateTree("2_6", tree_MBusiness, ap_MBusiness, "任务记录", "Icons/textfield_key.png", "UI/QueryCheckTask/QueryExeTask.aspx"); break; // 模版 case "3": break; // 新增模版 case "27": CreateTree("2_7", tree_MArticle, ap_MArticle, "新增模版", "Icons/world_connect.png", "UI/Template/AddTemplate.aspx"); break; // 模版管理 case "28": CreateTree("2_8", tree_MArticle, ap_MArticle, "模版管理", "Icons/textfield_key.png", "UI/Template/TemplateManage.aspx"); break; // 任务 case "4": break; // 任务下达 case "29": CreateTree("2_9", tree_MInfo, ap_MInfo, "任务下达", "Icons/build.png", "UI/Task/PublishTask.aspx"); break; // 任务查询 case "30": CreateTree("3_0", tree_MInfo, ap_MInfo, "任务查询", "Icons/brick_magnify.png", "UI/Task/QueryTask.aspx"); break; // 题目 case "5": break; // 新增题目 case "31": CreateTree("3_1", tree_MGoods, ap_MGoods, "新增题目", "Icons/textfield_key.png", "UI/CheckTitle/AddCheckTitle.aspx"); break; // 题目管理 case "32": CreateTree("3_2", tree_MGoods, ap_MGoods, "题目管理", "Icons/textfield_key.png", "UI/CheckTitle/CheckTitleSelect.aspx"); break; // 部门 case "7": break; // 新增部门 case "36": CreateTree("3_6", tree_MDept, ap_MDept, "新增部门", "Icons/textfield_key.png", "UI/Dept/AddDept.aspx"); break; // 部门查询 case "37": CreateTree("3_7", tree_MDept, ap_MDept, "部门查询", "Icons/textfield_key.png", "UI/Dept/QueryDept.aspx"); break; //法律法规 case "8": break; // 查看法律法规 case "41": CreateTree("4_1", tree_MUser, ap_MUser, "查看法律法规", "Icons/textfield_key.png", "UI/Low/Low.aspx"); break; // 上传法律法规 case "42": CreateTree("4_2", tree_MUser, ap_MUser, "上传法律法规", "Icons/textfield_key.png", "UI/Low/UpLoadLowFile.aspx"); break; // 系统设置 case "9": break; // 角色管理 case "45": CreateTree("4_5", tree_MSystem, ap_MSystem, "角色管理", "Icons/key.png", "UI/Role/QueryRole.aspx"); break; case "46": CreateTree("4_6", tree_MSystem, ap_MSystem, "人员管理", "Icons/group.png", "UI/User/QueryUser.aspx"); break; // 超级设置 case "10": break; // 组织管理 case "43": CreateTree("4_3", tree_Suppter, ap_Suppter, "组织管理", "Icons/chart_organisation.png", "UI/Organ/QueryOrgan.aspx"); break; // 用户管理 case "44": CreateTree("4_4", tree_Suppter, ap_Suppter, "用户管理", "Icons/user_suit.png", "UI/User/QuerySupervise.aspx"); break; } } } } } }