update ZR.Model/PagedInfo.cs
This commit is contained in:
parent
6b67b0c7bd
commit
7138a925c8
@ -52,15 +52,5 @@ namespace ZR.Model
|
||||
public PagedInfo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public PagedInfo(List<T> source, int pageIndex, int pageSize)
|
||||
{
|
||||
PageIndex = pageIndex;
|
||||
PageSize = pageSize;
|
||||
TotalNum = source.Count;
|
||||
TotalPage = (int)Math.Ceiling(TotalNum / (double)PageSize);//计算总页数
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user