TrainSign.Common/PageList/pageNum.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;
using System.Web;
namespace Common
{
public class PagerNumber
{
public static int pageSize = 15;
//定义一个委托
public delegate string ProcessDelegate(int iCurrentPage);
public PagerNumber()
{
}
public string Pager(int count, int iPageSize, int pageindex)
{
return FunPager(count, iPageSize, pageindex, PageAA);
}
private string PageAA(int iCurrentPage)
{
return " href=\"javascript:queryListCommon('" + iCurrentPage + "')\"";
}
/// <summary>
/// 分页方法
/// </summary>
/// <param name="count">总记录数</param>
/// <param name="iPageSize">每页显示条数</param>
/// <param name="iCurrentPage">当前页</param>
/// <param name="webUrl">参数</param>
/// <param name="IsAjax">是否用AJAX分页</param>
/// <param name="aspxName">页面</param>
/// <returns></returns>
public string FunPager(int count, int iPageSize, int iCurrentPage, ProcessDelegate process, ProcessDelegate processPageSize = null)
{
string Righthtml = "";
//count = 800;
//获取总的页数
int pagernum1 = 0;
if (count % iPageSize == 0)
{
pagernum1 = count / iPageSize;
}
else
{
pagernum1 = count / iPageSize + 1;
}
if (iCurrentPage > pagernum1)
{
iCurrentPage = 1;
}
后面还有 179 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。