Web/Admin/OrderNumber/BackEdit.aspx.cs

(开头部分) 2KB

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

using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
namespace Web.Admin.Order
{
    public partial class BackEdit : Web.UI.ManagePage
    {
        public string Orderid;
        public int Id;
        public int pcount;                      //总条数
        public int page;                        //当前页
        public int pagesize;                    //设置每页显示的大小
        protected void Page_Load(object sender, EventArgs e)
        {            
            this.pagesize = webset.DownPageNum;
            chkLoginLevel("eidtOrder");
            if (!int.TryParse(Request.Params["id"] as string, out this.Id))
            {
            }
            if (Request.QueryString["orderid"].ToString() == "" || Request.QueryString["orderid"].ToString() == null)
            {
                JscriptMsg(350, 230, "错误提示", "<b>出现错误啦!</b>您要查看的信息不存在或参数不正确。", "back", "Error");
                return;
            }
            else
            {
                Orderid = Request.QueryString["orderid"].ToString().Trim();
            }
            if (!Page.IsPostBack)
            {
                ShowInfo("OrderNumber=" + this.Orderid);
            }
        }
        //赋值操作
        private void ShowInfo(string where)
        {
            if (!int.TryParse(Request.Params["page"] as string, out this.page))
            {
                this.page = 0;
            }
            BLL.ShoppingCart bll = new BLL.ShoppingCart();
            //利用PAGEDDAGASOURCE类来分页
            PagedDataSource pg = new PagedDataSource();
            pg.DataSource = bll.GetList(where).Tables[0].DefaultView;
            pg.AllowPaging = true;
            pg.PageSize = pagesize;
            pg.CurrentPageIndex = page;
            //获得总条数
            pcount = bll.GetRecordCount(where);
            //绑定数据
            rptList.DataSource = pg;
            rptList.DataBind();
        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            Response.Redirect("Backlist.aspx?keywords=" + this.Orderid + "&property=" + this.Id + "");
后面还有 3 行代码,购买后查看完整代码

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

AI 解读 AI

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

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