Example #1
0
        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);
        }
Example #2
0
        public string GetAllAuth(int userid)
        {
            AuthorityService auser = new AuthorityService();
            var authorities        = auser.GetAuthorities(userid);

            return("");
        }
Example #3
0
 private void InitAllAuth()
 {
     allauths = authorityService.GetAuthorities(SYSUser.id);
     nodesTools.ShowTreeView(tree_allauth, allauths, true);
 }
Example #4
0
 private void LoadAuthType()
 {
     authorities = authorityService.GetAuthorities(SYSUser.id);
     ShowTreeView();
 }