public string SearchData(string keyword) { List <string> strls = new List <string> { "AABB", "BBCC", "CCDD", "DDAA", "GGEE" }; List <Authority> authorities = authority.GetAuthorities(1); List <string> ls = new List <string>(); foreach (var au in authorities) { ls.Add(au.TreeName + "," + au.id); } string strreturn = JsonConvert.SerializeObject(ls); return(strreturn); }
public string GetAllAuth(int userid) { AuthorityService auser = new AuthorityService(); var authorities = auser.GetAuthorities(userid); return(""); }
private void InitAllAuth() { allauths = authorityService.GetAuthorities(SYSUser.id); nodesTools.ShowTreeView(tree_allauth, allauths, true); }
private void LoadAuthType() { authorities = authorityService.GetAuthorities(SYSUser.id); ShowTreeView(); }