using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CY.Infrastructure.Query
{
///
/// 分页类
///
public class Pagination
{
///
/// 当前页码
///
public int PageIndex { get; set; }
///
/// 每页记录数
///
public int PageSize { get; set; }
///
/// 总页数
///
public int PageCount { get; set; }
///
/// 总记录数
///
public int RecordCount { get; set; }
public decimal? heji1 { get; set; }
public decimal? heji2 { get; set; }
public decimal? heji3 { get; set; }
///
/// 创建一个新的分页对象
///
public Pagination() { }
///
/// 初始化构造
///
/// 每页显示行数(必填)
/// 当前页数(默认为1)
public Pagination(int pageSize, int pageIndex = 1)
{
PageSize = pageSize;
PageIndex = pageIndex;
}
///
/// 初始化构造(常用)
///
/// 是否通用初始化
public Pagination(bool isInitCommon)
{
if (!isInitCommon) return;
PageSize = 15;//每页显示行数15
PageIndex = 1;//当前访问也1
}
}
}