Beispiel #1
0
        /// <summary>
        /// 获取用户角色列表
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        public List <ITC_Roles_M> GetUserRoles(string userid)
        {
            ITC_Roles rol = new ITC_Roles();

            string where = string.Format("Role_ID in (select Role_ID from ITC_UserRoles where User_ID='{0}' and Role_Status=0) and Role_Status=0", userid);
            return(rol.GetList(where));
        }
Beispiel #2
0
        /// <summary>
        /// 获取用户操作权限
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        public List <ITC_RoleOperator_M> GetUserRoleOperater(string userid)
        {
            ITC_Roles rol = new ITC_Roles();

            return(rol.GetRoleOperater(GetUserRoles(userid)));
        }