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

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