DTcms.Web/admin/order/order_list.aspx.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTcms.Common;
namespace DTcms.Web.admin.order
{
public partial class order_list : Web.UI.ManagePage
{
protected int totalCount;
protected int page;
protected int pageSize;
protected int status;
protected int payment_status;
protected int express_status;
protected string keywords = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
this.status = DTRequest.GetQueryInt("status");
this.payment_status = DTRequest.GetQueryInt("payment_status");
this.express_status = DTRequest.GetQueryInt("express_status");
this.keywords = DTRequest.GetQueryString("keywords");
this.pageSize = GetPageSize(10); //每页数量
if (!Page.IsPostBack)
{
ChkAdminLevel("order_list", DTEnums.ActionEnum.View.ToString()); //检查权限
RptBind("id>0" + CombSqlTxt(this.status, this.payment_status, this.express_status, this.keywords), "status asc,add_time desc,id desc");
}
}
#region 数据绑定=================================
private void RptBind(string _strWhere, string _orderby)
{
this.page = DTRequest.GetQueryInt("page", 1);
if (this.status > 0)
{
this.ddlStatus.SelectedValue = this.status.ToString();
}
if (this.payment_status > 0)
{
this.ddlPaymentStatus.SelectedValue = this.payment_status.ToString();
}
if (this.express_status > 0)
{
this.ddlExpressStatus.SelectedValue = this.express_status.ToString();
}
txtKeywords.Text = this.keywords;
BLL.orders bll = new BLL.orders();
this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
this.rptList.DataBind();
//绑定页码
txtPageNum.Text = this.pageSize.ToString();
后面还有 161 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。