Пример #1
0
        /// <summary>
        /// 获取用户角色
        /// </summary>
        /// <param name="grid"></param>
        /// <returns></returns>
        public LigerGrid UserRoleGrid(string systemName, LigerGrid grid)
        {
            QueryUser query = new QueryUser();

            query.ligerGrid  = grid;
            query.systemName = systemName;
            grid             = QueryTableHelper.QueryTable <CasUserEntity>(query.GetUserRoleSQL(), grid);
            return(grid);
        }
        public LigerGrid RoleAddGrid(string systemName, LigerGrid grid)
        {
            SecRoleQuery query = new SecRoleQuery();

            query.ligerGrid  = grid;
            query.systemName = systemName;
            grid             = QueryTableHelper.QueryTable <SecRoleEntity>(query.RoleAddSQL(), grid);
            return(grid);
        }