コード例 #1
0
        public static int PageCount(int pageSize)
        {
            int a = ProCategoryService.PageCount();

            if (a % pageSize == 0)
            {
                return(a / pageSize);
            }
            else
            {
                return(a / pageSize + 1);
            }
        }
コード例 #2
0
ファイル: ProCategoryManager.cs プロジェクト: dawdaw-code/-
 public static PageList GetQuery(int pageIndex, int pageSize, ProductCategory pc)
 {
     return(ProCategoryService.GetQuery(pageIndex, pageSize, pc));
 }
コード例 #3
0
ファイル: ProCategoryManager.cs プロジェクト: dawdaw-code/-
 public static int DelCategory(ProductCategory pc)
 {
     return(ProCategoryService.DelCategory(pc));
 }