Beispiel #1
0
        public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex)
        {
            int num  = 0;
            int num2 = 0;

            return(SettingCategory.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2));
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 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));
 }
Beispiel #5
0
 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));
 }
Beispiel #6
0
 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));
 }
Beispiel #7
0
        public static IList <SettingCategoryInfo> GetList(int intTopCount, string strCondition)
        {
            string strSort = " Sort asc,AutoID desc ";

            return(SettingCategory.GetList(intTopCount, strCondition, strSort));
        }
Beispiel #8
0
 public static IList <SettingCategoryInfo> GetTopNList(int intTopCount, string strSort)
 {
     return(SettingCategory.GetList(intTopCount, string.Empty, strSort));
 }
Beispiel #9
0
 public static IList <SettingCategoryInfo> GetAllList()
 {
     return(SettingCategory.GetList(0, string.Empty));
 }
Beispiel #10
0
 public static SettingCategoryInfo GetTopData()
 {
     return(SettingCategory.GetTopData(" Sort ASC,AutoID desc "));
 }