public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex) { int num = 0; int num2 = 0; return(UserLevel.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2)); }
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); }
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); }
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); }
public static IList <UserLevelInfo> GetList(int intTopCount, string strCondition) { string strSort = " Sort asc,AutoID desc "; return(UserLevel.GetList(intTopCount, strCondition, strSort)); }
public static IList <UserLevelInfo> GetTopNList(int intTopCount, string strSort) { return(UserLevel.GetList(intTopCount, string.Empty, strSort)); }
public static IList <UserLevelInfo> GetAllList() { return(UserLevel.GetList(0, string.Empty)); }
public static UserLevelInfo GetTopData() { return(UserLevel.GetTopData(" Sort ASC,AutoID desc ")); }
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)); }
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)); }
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)); }