You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
593 B
C#
22 lines
593 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace Estsh.Core.Util
|
|
{
|
|
public class Pager
|
|
{
|
|
public int totalRows { set; get; } // 总行数
|
|
public int pageSize { set; get; } // 每页显示的行数
|
|
public int pageNo { set; get; } // 当前页号
|
|
public int totalPages { set; get; } // 总页数
|
|
public int startRow { set; get; } // 当前页在数据库中的起始行
|
|
public Pager()
|
|
{
|
|
pageSize = 20;
|
|
pageNo = 1;
|
|
totalPages = 0;
|
|
}
|
|
}
|
|
} |