Exemplo n.º 1
0
        public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex)
        {
            int num  = 0;
            int num2 = 0;

            return(UserLevel.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2));
        }
Exemplo n.º 2
0
        public static IList <UserLevelInfo> GetCacheUserLevelList()
        {
            IList <UserLevelInfo> list = CacheUtils.Get("JsonLeeCMS_CacheForGetUserLevel") as List <UserLevelInfo>;

            if (list == null)
            {
                list = UserLevel.GetAllList();
                CacheUtils.Insert("JsonLeeCMS_CacheForGetUserLevel", list);
            }
            return(list);
        }
Exemplo n.º 3
0
        public static UserInfo GetUserById(int intUserID)
        {
            UserInfo model = BizBase.dbo.GetModel <UserInfo>("cms_User", "AutoID=" + intUserID.ToString());

            if (model != null)
            {
                model.UserGroup   = UserGroup.GetCacheUserGroupById(model.GroupID);
                model.UserLevel   = UserLevel.GetCacheUserLevelById(model.LevelID);
                model.CustomTable = User.GetCustomContentInfo(intUserID, model.UserGroup.TableName);
            }
            return(model);
        }
Exemplo n.º 4
0
        public static UserLevelInfo GetCacheUserLevelById(int intUserLevelID)
        {
            IList <UserLevelInfo> cacheUserLevelList = UserLevel.GetCacheUserLevelList();
            UserLevelInfo         result;

            if (cacheUserLevelList != null && cacheUserLevelList.Count > 0)
            {
                result = (from p in cacheUserLevelList
                          where p.AutoID.Equals(intUserLevelID)
                          select p).FirstOrDefault <UserLevelInfo>();
            }
            else
            {
                result = null;
            }
            return(result);
        }
Exemplo n.º 5
0
        public static IList <UserLevelInfo> GetList(int intTopCount, string strCondition)
        {
            string strSort = " Sort asc,AutoID desc ";

            return(UserLevel.GetList(intTopCount, strCondition, strSort));
        }
Exemplo n.º 6
0
 public static IList <UserLevelInfo> GetTopNList(int intTopCount, string strSort)
 {
     return(UserLevel.GetList(intTopCount, string.Empty, strSort));
 }
Exemplo n.º 7
0
 public static IList <UserLevelInfo> GetAllList()
 {
     return(UserLevel.GetList(0, string.Empty));
 }
Exemplo n.º 8
0
 public static UserLevelInfo GetTopData()
 {
     return(UserLevel.GetTopData(" Sort ASC,AutoID desc "));
 }
Exemplo n.º 9
0
 public static IList <UserLevelInfo> GetPagerList(int intCurrentPageIndex, int intPageSize, ref int intTotalCount, ref int intTotalPage)
 {
     return(UserLevel.GetPagerList("", "Sort ASC,AutoID DESC", intCurrentPageIndex, intPageSize, ref intTotalCount, ref intTotalPage));
 }
Exemplo n.º 10
0
 public static DataSet GetPagerData(string strFilter, string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(UserLevel.GetPagerData(strFilter, strCondition, " Sort asc,AutoID desc ", intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }
Exemplo n.º 11
0
 public static DataSet GetPagerData(string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(UserLevel.GetPagerData("*", strCondition, intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }