WELOA.BLL/WEL/LS_Allowpaging.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WELOA.Model;
using LSDAL_SQL;
namespace LSBLL
{
public class LS_IsPage
{
private IsPage paging = new IsPage();
public IsPage Allowpage(int nRecCount, int Record_Per_Page, int nPage)
{
this.paging.nException = -1;
int num2 = 0;
try
{
if (nRecCount > 0)
{
int num = nRecCount / Record_Per_Page;
if ((nRecCount % Record_Per_Page) > 0)
{
num++;
}
if (nPage < 1)
{
nPage = 1;
}
if (nPage > num)
{
nPage = num;
}
num2 = Record_Per_Page * (nPage - 1);
}
this.paging.nPageStart = num2;
}
catch (Exception exception)
{
new ls_exception().insexception("LS_IsPage.cs Allowpage 3", exception.Message);
this.paging.nException = 1;
return this.paging;
}
return this.paging;
}
public IsPage AllowpageList(int nRecCount, int Record_Per_Page, int nPage, string strPageName, string strConditions)
{
IsPage IsPage = new IsPage
{
nException = -1
};
string str = "";
StringBuilder builder = new StringBuilder();
try
{
if (nRecCount > 0)
后面还有 79 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
