public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex) { int num = 0; int num2 = 0; return(SettingCategory.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2)); }
public static bool ExistsSettingCateByName(string strCateName) { IList <SettingCategoryInfo> cacheSettingCategoryList = SettingCategory.GetCacheSettingCategoryList(); bool result; if (cacheSettingCategoryList != null && cacheSettingCategoryList.Count > 0) { result = ((from p in cacheSettingCategoryList where p.CateName == strCateName select p).FirstOrDefault <SettingCategoryInfo>() != null); } else { result = false; } return(result); }
public static SettingCategoryInfo GetCacheSettingCategory(int intCateID) { IList <SettingCategoryInfo> cacheSettingCategoryList = SettingCategory.GetCacheSettingCategoryList(); SettingCategoryInfo result; if (cacheSettingCategoryList != null && cacheSettingCategoryList.Count > 0) { result = (from p in cacheSettingCategoryList where p.AutoID.Equals(intCateID) select p).FirstOrDefault <SettingCategoryInfo>(); } else { result = null; } return(result); }
public static IList <SettingCategoryInfo> GetPagerList(int intCurrentPageIndex, int intPageSize, ref int intTotalCount, ref int intTotalPage) { return(SettingCategory.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(SettingCategory.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(SettingCategory.GetPagerData("*", strCondition, intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage)); }
public static IList <SettingCategoryInfo> GetList(int intTopCount, string strCondition) { string strSort = " Sort asc,AutoID desc "; return(SettingCategory.GetList(intTopCount, strCondition, strSort)); }
public static IList <SettingCategoryInfo> GetTopNList(int intTopCount, string strSort) { return(SettingCategory.GetList(intTopCount, string.Empty, strSort)); }
public static IList <SettingCategoryInfo> GetAllList() { return(SettingCategory.GetList(0, string.Empty)); }
public static SettingCategoryInfo GetTopData() { return(SettingCategory.GetTopData(" Sort ASC,AutoID desc ")); }