Esempio n. 1
0
        private void InitCommonData()
        {
            UserInfoService userInfoService = new UserInfoService();

            SYSData.userInfos = userInfoService.GetAllUserinfo(SYSUser.id);

            AuthorityService authorityService = new AuthorityService();
            NodesTools       authNodes        = new NodesTools();
            List <Authority> userauths        = authorityService.GetUserAuth(SYSUser.id.ToString(), "winform");

            var fun = userauths.Where(u => u.AuthTypeName.Contains("功能") || u.AuthTypeName.Contains("模块")).ToList();

            authNodes.ShowTreeView(tree_auth, fun, false);

            var oper = userauths.Where(u => u.AuthTypeName.Contains("编辑")).ToList();

            SYSUser.OperAuth = oper;
        }
Esempio n. 2
0
 private void SelectUser()
 {
     userauths = authorityService.GetUserAuth(txblist_user.Tag.ToString(), "winform");
     nodesTools.ShowTreeView(tree_user, userauths, true);
 }