goodsinfo.aspx.cs

来自「易想商城系统」· CS 代码 · 共 55 行

CS
55
字号
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace YXShop.Web.Admin.Orders
{
    public partial class goodsInfo : System.Web.UI.Page
    {
        public static string orderId = "";
        YXShop.BLL.Consignment consBll = new YXShop.BLL.Consignment();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["AdminID"] == null)
            {
                Response.Redirect("../index.aspx", true);
            }
            else
            {
                if (string.IsNullOrEmpty(Session["AdminID"].ToString()))
                {
                    Response.Redirect("../index.aspx", true);
                }
            }
            if ((!IsPostBack) || ((Request["Event"] != null) && (Request["Event"] != "")))
            {
                //初始化信息(订单信息,银行信息,支付信息)
                if (!string.IsNullOrEmpty(Request.QueryString["OrderID"]))
                {
                    //bindOrderInfo(YXShop.Common.WebUtility.replaceStr(Request.QueryString["OrderID"]));
                    orderId = YXShop.Common.WebUtility.replaceStr(Request.QueryString["OrderID"]);
                    BindGoodsInfo(orderId);
                }
                else
                {
                    Response.Redirect("orderList.aspx");
                }
            }
        }
        private void BindGoodsInfo(string orderID)
        {
            string str = String.Format(" OrderID = '{0}'", orderId);
            Repeater3.DataSource = consBll.GetList(str);
            Repeater3.DataBind();
        }
        
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?