Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 7
0
        public static IList <SettingCategoryInfo> GetList(int intTopCount, string strCondition)
        {
            string strSort = " Sort asc,AutoID desc ";

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