Web/shipments.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace Web
{
public partial class shipments : Web.UI.BasePage
{
public int pcount; //总条数
public int page; //当前页
public int pagesize; //设置每页显示的大小
public string ordernumber = "";
public string addtime = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(Request.Params["ordernumber"]))
{
this.ordernumber = Request.Params["ordernumber"].Trim();
}
if (!string.IsNullOrEmpty(Request.Params["addtime"]))
{
this.addtime = Request.Params["addtime"].Trim();
}
this.pagesize = 25;
if (!IsPostBack)
{
//RptBind("Isdel=0 and (issate=2 or issate=3)" + OrderSqlTxt(this.ordernumber, this.addtime));
}
}
//绑定数据
void RptBind(string where)
{
if (!int.TryParse(Request.Params["page"] as string, out this.page))
{
this.page = 0;
}
BLL.Orders bll = new BLL.Orders();
//利用PAGEDDAGASOURCE类来分页
PagedDataSource pg = new PagedDataSource();
pg.DataSource = bll.GetList(where).Tables[0].DefaultView;
pg.AllowPaging = true;
pg.PageSize = pagesize;
pg.CurrentPageIndex = page;
//获得总条数
pcount = bll.GetCount(where);
//绑定数据
rptList.DataSource = pg;
rptList.DataBind();
}
protected void btnSelect_Click(object sender, EventArgs e)
{
Response.Redirect("shipments.aspx?" + CombUrlTxt(txtOrderNumber.Text.Trim(), txtStartTime.Text.Trim()) + "page=0");
}
#region 查找归类标题
protected string ViewKind(int _kindId)
{
switch (_kindId)
后面还有 87 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。