Web/SysAdmin/Orders/List.aspx.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
namespace Web.CFAdmin.Orders
{
    public partial class List : Web.UI.ManagePage
    {
        public int pcount;                                   //总条数
        public int page;                                     //当前页
        public readonly int pagesize = 15;                   //设置每页显示的大小
        public string User_name;
        public int classId;
        public string keywords = "";
        public string property = "";
        public string ono = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!int.TryParse(Request.Params["classId"] as string, out this.classId))
            {
                this.classId = 0;
            }
            if (!string.IsNullOrEmpty(Request.Params["keywords"]))
            {
                this.keywords = Request.Params["keywords"].Trim();
            }
            if (!string.IsNullOrEmpty(Request.Params["property"]))
            {
                this.property = Request.Params["property"].Trim();
            }
            if (!string.IsNullOrEmpty(Request.Params["Onumber"]))
            {
                this.User_name = Request.Params["Onumber"].Trim();
            }
            if (!string.IsNullOrEmpty(Request.Params["ono"]))
            {
                this.ono = Request.Params["ono"].Trim();
            }
            if (!Page.IsPostBack)
            {
                chkLoginLevel("viewOrders");
                User_name = Request.QueryString["Onumber"];
                this.RptBind("Id>0" + this.CombSqlTxt(this.classId, this.keywords, this.property,this.User_name,this.ono));
            }
        }

        #region 数据列表绑定
        private void RptBind(string strWhere)
        {
            if (!int.TryParse(Request.Params["page"] as string, out this.page))
            {
                this.page = 0;
            }
            BLL.Orders bll = new BLL.Orders();
            //获得总条数
           
            this.pcount = bll.GetCount(strWhere);
            if (this.pcount > 0)
后面还有 149 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。