|
|
@ -79,13 +79,13 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
return new PagedResultDto<TEntityDetailDto>(totalCount, dtos); |
|
|
|
} |
|
|
|
|
|
|
|
public List<T> GetPagedData<T>(List<T> dataList, int pageNumber, int pageSize) |
|
|
|
private List<T> GetPagedData<T>(List<T> dataList, int pageNumber, int pageSize) |
|
|
|
{ |
|
|
|
int startIndex = (pageNumber - 1) * pageSize; |
|
|
|
|
|
|
|
return dataList.Skip(startIndex).Take(pageSize).ToList(); |
|
|
|
} |
|
|
|
public int CalculatePageCount(int totalCount, int pageSize) |
|
|
|
private int CalculatePageCount(int totalCount, int pageSize) |
|
|
|
{ |
|
|
|
int pageCount = totalCount / pageSize; |
|
|
|
if (totalCount % pageSize != 0) |
|
|
|