// 获取菜单树的值 public static string GetTreeValue(string employeeID, Dictionary <string, int> selectedIDs) { List <string> allUsers = new List <string>(); allUsers = GenesysBLL.Proc_GetCfgAdmin().Select(item => item.employee_id).ToList(); if (!string.IsNullOrEmpty(employeeID)) { allUsers = allUsers.FindAll(id => id.IndexOf(employeeID, StringComparison.CurrentCultureIgnoreCase) != -1); } string root = "所有用户"; if (root == null) { return(string.Empty); } JSONTree tree = new JSONTree(root, root); string parent = null; foreach (string eid in allUsers) { parent = root; int checkedSign = 0; if (selectedIDs.ContainsKey(eid)) { checkedSign = selectedIDs[eid]; } tree.Root.AppendNode(parent, eid, eid, eid, true, true, checkedSign); } return(tree.ToString()); }
public static List <SoftPhone.Entity.Genesys.cfg.Proc_GetCfgAdmin_Result> Proc_GetCfgAdmin() { return(GenesysBLL.Proc_GetCfgAdmin().ToList()); }
//获取管理人员 public static List <string> GetCfgAdminList() { return(GenesysBLL.Proc_GetCfgAdmin().Select(x => x.employee_id).ToList()); }