protected override void OnInit(EventArgs e)
        {
            string errorMsg = "";

            this.from               = this.Page.Request.QueryString["from"].ToNullString().ToLower();
            this.productSku         = this.Page.Request.QueryString["productSku"].ToNullString();
            this.buyAmount          = this.Page.Request.QueryString["buyAmount"].ToInt(0);
            this.shippingModeId     = this.Page.Request.QueryString["ShippingModeId"].ToInt(0);
            this.storeId            = this.Page.Request.QueryString["StoreId"].ToInt(0);
            this.paymentModeId      = this.Page.Request.QueryString["paymentModeId"].ToInt(0);
            this.deliveryTime       = this.Page.Request.QueryString["deliveryTime"].ToNullString();
            this.hasSupplierProduct = this.Page.Request.QueryString["hasSupplierProduct"].ToInt(0);
            if (this.deliveryTime != "任意时间" && this.deliveryTime != "工作日" && this.deliveryTime != "节假日")
            {
                this.deliveryTime = "任意时间";
            }
            if (this.shippingModeId != 0 && this.shippingModeId != -2)
            {
                this.shippingModeId = 0;
            }
            if (this.from == "groupbuy")
            {
                this.isGroupBuy = true;
            }
            else if (this.from == "countdown")
            {
                this.isCountDown = true;
            }
            else if (this.from == "signbuy")
            {
                this.isSignBuy = true;
            }
            else if (this.from == "combinationbuy")
            {
                this.combinaid = this.Page.Request.QueryString["combinaid"].ToInt(0);
            }
            else if (this.from == "presale")
            {
                this.ispresale = true;
                this.presaleid = this.Page.Request.QueryString["presaleid"].ToInt(0);
            }
            else if (this.from == "fightgroup")
            {
                this.isFightGroup = true;
            }
            else if (this.from == "prize")
            {
                this.RecordId = this.Page.Request.QueryString["RecordId"].ToInt(0);
            }
            else
            {
                HttpCookie httpCookie = HiContext.Current.Context.Request.Cookies["ckids"];
                if (httpCookie != null && !string.IsNullOrEmpty(httpCookie.Value))
                {
                    this.productSku = Globals.UrlDecode(httpCookie.Value);
                }
            }
            if (this.RecordId > 0)
            {
                UserAwardRecordsInfo userAwardRecordsInfo = ActivityHelper.GetUserAwardRecordsInfo(this.RecordId);
                if (userAwardRecordsInfo == null)
                {
                    base.GotoResourceNotFound("购物车中没有任何商品");
                    return;
                }
                int prizeValue = userAwardRecordsInfo.PrizeValue;
                this.shoppingCart = ShoppingCartProcessor.GetPrizeShoppingCart(prizeValue);
            }
            else
            {
                this.shoppingCart = ShoppingCartProcessor.GetShoppingCart(this.from, this.productSku, this.buyAmount, this.combinaid, true, -1, 0);
            }
            if (this.shoppingCart == null)
            {
                base.GotoResourceNotFound("购物车中没有任何商品");
            }
            else if (this.ispresale && !ProductPreSaleHelper.HasProductPreSaleInfo(this.productSku, this.presaleid))
            {
                base.GotoResourceNotFound("商品不在预售活动中");
            }
            else
            {
                if (this.isGroupBuy)
                {
                    GroupBuyInfo productGroupBuyInfo = TradeHelper.GetProductGroupBuyInfo(this.shoppingCart.LineItems[0].ProductId, this.buyAmount, out errorMsg);
                    if (productGroupBuyInfo == null)
                    {
                        base.GotoResourceNotFound(errorMsg);
                        return;
                    }
                }
                if (this.SkinName == null)
                {
                    this.SkinName = "Skin-OrderShippingPaymentSet.html";
                }
                base.OnInit(e);
            }
        }