Пример #1
0
 protected override void AttachChildControls()
 {
     this.litAddresser                   = (Literal)this.FindControl("litAddresser");
     this.litTitle                       = (Literal)this.FindControl("litTitle");
     this.litDate                        = (FormatedTimeLabel)this.FindControl("litDate");
     this.txtReplyTitle                  = (TextBox)this.FindControl("txtReplyTitle");
     this.txtReplyContent                = (TextBox)this.FindControl("txtReplyContent");
     this.txtReplyRecord                 = (HtmlTextArea)this.FindControl("txtReplyRecord");
     this.btnReplyReceivedMessage        = (Button)this.FindControl("btnReplyReceivedMessage");
     this.btnReplyReceivedMessage.Click += this.btnReplyReceivedMessage_Click;
     if (!string.IsNullOrEmpty(this.Page.Request.QueryString["MessageId"]))
     {
         this.messageId = long.Parse(this.Page.Request.QueryString["MessageId"]);
     }
     if (!this.Page.IsPostBack)
     {
         CommentBrowser.PostMemberMessageIsRead(this.messageId);
         MessageBoxInfo memberMessage = CommentBrowser.GetMemberMessage(this.messageId);
         if (memberMessage != null)
         {
             this.litAddresser.Text    = "管理员";
             this.litTitle.Text        = memberMessage.Title;
             this.txtReplyRecord.Value = memberMessage.Content;
             this.litDate.Time         = memberMessage.Date;
         }
     }
 }
Пример #2
0
 protected override void AttachChildControls()
 {
     if (string.IsNullOrEmpty(this.Page.Request.QueryString["orderId"]))
     {
         base.GotoResourceNotFound();
     }
     this.orderId         = this.Page.Request.QueryString["orderId"];
     this.orderItems      = (Common_OrderManage_ReviewsOrderItems)this.FindControl("Common_OrderManage_ReviewsOrderItems");
     this.litWeight       = (System.Web.UI.WebControls.Literal) this.FindControl("litWeight");
     this.litOrderId      = (System.Web.UI.WebControls.Literal) this.FindControl("litOrderId");
     this.lbltotalPrice   = (FormatedMoneyLabel)this.FindControl("lbltotalPrice");
     this.litAddDate      = (FormatedTimeLabel)this.FindControl("litAddDate");
     this.lblOrderStatus  = (OrderStatusLabel)this.FindControl("lblOrderStatus");
     this.litCloseReason  = (System.Web.UI.WebControls.Literal) this.FindControl("litCloseReason");
     this.btnRefer        = ButtonManager.Create(this.FindControl("btnRefer"));
     this.btnRefer.Click += new System.EventHandler(this.btnRefer_Click);
     if (!this.Page.IsPostBack && HiContext.Current.User.UserRole == UserRole.Member)
     {
         this.btnRefer.Text = "提交评论";
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         if (orderInfo.OrderStatus != OrderStatus.Finished)
         {
             this.ShowMessage("订单还未完成,不能进行评价", false);
             this.btnRefer.Visible = false;
         }
         this.BindOrderItems(orderInfo);
         this.BindOrderBase(orderInfo);
     }
 }
Пример #3
0
        protected override void AttachChildControls()
        {
            this.refundId = System.Convert.ToInt32(this.Page.Request.QueryString["RefundId"]);
            //this.RefundDetails = (Common_OrderManage_OrderItems)this.FindControl("Common_OrderManage_OrderItems");
            this.txtOrderId       = (System.Web.UI.WebControls.Literal) this.FindControl("txtOrderId");
            this.handleStatus     = (System.Web.UI.WebControls.Literal) this.FindControl("handleStatus");
            this.litAddDate       = (FormatedTimeLabel)this.FindControl("litAddDate");
            this.litRemark        = (System.Web.UI.WebControls.Literal) this.FindControl("litRemark");
            this.litAdminRemark   = (System.Web.UI.WebControls.Literal) this.FindControl("litAdminRemark");
            this.litWeight        = (System.Web.UI.WebControls.Literal) this.FindControl("litWeight");
            this.litType          = (System.Web.UI.WebControls.Literal) this.FindControl("litType");
            this.litTotalPrice    = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
            this.litRefundTotal   = (FormatedMoneyLabel)this.FindControl("litRefundTotal");
            this.litOrderTotal    = (FormatedMoneyLabel)this.FindControl("litOrderTotal");
            this.rptOrderProducts = (WapTemplatedRepeater)this.FindControl("rptOrderProducts");
            if (!this.Page.IsPostBack)
            {
                this.BindOrderRefund(this.refundId);
                OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
                if (orderInfo == null || orderInfo.UserId != HiContext.Current.User.UserId)
                {
                    this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该订单不存在或者不属于当前用户的订单"));
                    return;
                }
                this.BindOrderItems(orderInfo);
                this.BindRefunds(orderInfo);
            }

            PageTitle.AddSiteNameTitle("退款申请单");

            WAPHeadName.AddHeadName("退款申请单");
        }
 protected override void AttachChildControls()
 {
     this.returnsId              = System.Convert.ToInt32(this.Page.Request.QueryString["ReturnsId"]);
     this.RefundDetails          = (Common_OrderManage_OrderItems)this.FindControl("Common_OrderManage_OrderItems");
     this.txtOrderId             = (System.Web.UI.WebControls.Literal) this.FindControl("txtOrderId");
     this.handleStatus           = (System.Web.UI.WebControls.Literal) this.FindControl("handleStatus");
     this.litAddDate             = (FormatedTimeLabel)this.FindControl("litAddDate");
     this.litRemark              = (System.Web.UI.WebControls.Literal) this.FindControl("litRemark");
     this.litAdminRemark         = (System.Web.UI.WebControls.Literal) this.FindControl("litAdminRemark");
     this.litWeight              = (System.Web.UI.WebControls.Literal) this.FindControl("litWeight");
     this.litType                = (System.Web.UI.WebControls.Literal) this.FindControl("litType");
     this.litTotalPrice          = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
     this.litRefundTotal         = (FormatedMoneyLabel)this.FindControl("litRefundTotal");
     this.litOrderTotal          = (FormatedMoneyLabel)this.FindControl("litOrderTotal");
     this.litCustomsClearanceFee = (FormatedMoneyLabel)this.FindControl("litCustomsClearanceFee");
     this.litExpressFee          = (FormatedMoneyLabel)this.FindControl("litExpressFee");
     this.litFeeAffiliation      = (System.Web.UI.WebControls.Literal) this.FindControl("litFeeAffiliation");
     this.litLogisticsCompany    = (System.Web.UI.WebControls.Literal) this.FindControl("litLogisticsCompany");
     this.litLogisticsId         = (System.Web.UI.WebControls.Literal) this.FindControl("litLogisticsId");
     if (!this.Page.IsPostBack)
     {
         this.BindReturnsTable(this.returnsId);
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         if (orderInfo == null || orderInfo.UserId != HiContext.Current.User.UserId)
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该订单不存在或者不属于当前用户的订单"));
             return;
         }
         this.BindOrderItems(orderInfo);
         this.BindRefunds(orderInfo);
     }
 }
Пример #5
0
 protected override void AttachChildControls()
 {
     this.replaceId = System.Convert.ToInt32(this.Page.Request.QueryString["ReplaceId"]);
     //this.RefundDetails = (Common_OrderManage_OrderItems)this.FindControl("Common_OrderManage_OrderItems");
     this.RefundDetails     = (VshopTemplatedRepeater)this.FindControl("rptOrderProducts");
     this.txtOrderId        = (System.Web.UI.WebControls.Literal) this.FindControl("txtOrderId");
     this.handleStatus      = (System.Web.UI.WebControls.Literal) this.FindControl("handleStatus");
     this.litAddDate        = (FormatedTimeLabel)this.FindControl("litAddDate");
     this.litRemark         = (System.Web.UI.WebControls.Literal) this.FindControl("litRemark");
     this.litAdminRemark    = (System.Web.UI.WebControls.Literal) this.FindControl("litAdminRemark");
     this.litWeight         = (System.Web.UI.WebControls.Literal) this.FindControl("litWeight");
     this.litUsername       = (System.Web.UI.WebControls.Literal) this.FindControl("litUsername");
     this.litShippingRegion = (System.Web.UI.WebControls.Literal) this.FindControl("litShippingRegion");
     this.litZipCode        = (System.Web.UI.WebControls.Literal) this.FindControl("litZipCode");
     this.litEmailAddress   = (System.Web.UI.WebControls.Literal) this.FindControl("litEmailAddress");
     this.litCellPhone      = (System.Web.UI.WebControls.Literal) this.FindControl("litCellPhone");
     this.litTelPhone       = (System.Web.UI.WebControls.Literal) this.FindControl("litTelPhone");
     this.litShipToDate     = (System.Web.UI.WebControls.Literal) this.FindControl("litShipToDate");
     this.litTotalPrice     = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
     if (!this.Page.IsPostBack)
     {
         this.BindOrderReplace(this.replaceId);
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         replaceInfo = TradeHelper.GetReplaceInfo(this.replaceId);
         if (orderInfo == null || orderInfo.UserId != HiContext.Current.User.UserId)
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该订单不存在或者不属于当前用户的订单"));
             return;
         }
         this.BindOrderItems(orderInfo);
         this.BindRefunds(replaceInfo);
     }
 }
 protected override void AttachChildControls()
 {
     if (!int.TryParse(this.Page.Request.QueryString["AfficheId"], out this.affichesId))
     {
         base.GotoResourceNotFound();
     }
     this.litAffichesAddedDate = (FormatedTimeLabel)this.FindControl("litAffichesAddedDate");
     this.litContent           = (Literal)this.FindControl("litContent");
     this.litTilte             = (Literal)this.FindControl("litTilte");
     this.lblFront             = (Label)this.FindControl("lblFront");
     this.lblNext       = (Label)this.FindControl("lblNext");
     this.aFront        = (HtmlAnchor)this.FindControl("front");
     this.aNext         = (HtmlAnchor)this.FindControl("next");
     this.lblFrontTitle = (Label)this.FindControl("lblFrontTitle");
     this.lblNextTitle  = (Label)this.FindControl("lblNextTitle");
     if (!this.Page.IsPostBack)
     {
         AfficheInfo affiche = CommentBrowser.GetAffiche(this.affichesId);
         if (affiche != null)
         {
             PageTitle.AddSiteNameTitle(affiche.Title, HiContext.Current.Context);
             this.litTilte.Text = affiche.Title;
             string str = HiContext.Current.HostPath + Globals.GetSiteUrls().UrlData.FormatUrl("AffichesDetails", new object[] { this.affichesId });
             this.litContent.Text           = affiche.Content.Replace("href=\"#\"", "href=\"" + str + "\"");
             this.litAffichesAddedDate.Time = affiche.AddedDate;
             AfficheInfo frontOrNextAffiche = CommentBrowser.GetFrontOrNextAffiche(this.affichesId, "Front");
             AfficheInfo info3 = CommentBrowser.GetFrontOrNextAffiche(this.affichesId, "Next");
             if ((frontOrNextAffiche != null) && (frontOrNextAffiche.AfficheId > 0))
             {
                 if (this.lblFront != null)
                 {
                     this.lblFront.Visible   = true;
                     this.aFront.HRef        = "AffichesDetails.aspx?afficheId=" + frontOrNextAffiche.AfficheId;
                     this.lblFrontTitle.Text = frontOrNextAffiche.Title;
                 }
             }
             else if (this.lblFront != null)
             {
                 this.lblFront.Visible = false;
             }
             if ((info3 != null) && (info3.AfficheId > 0))
             {
                 if (this.lblNext != null)
                 {
                     this.lblNext.Visible   = true;
                     this.aNext.HRef        = "AffichesDetails.aspx?afficheId=" + info3.AfficheId;
                     this.lblNextTitle.Text = info3.Title;
                 }
             }
             else if (this.lblNext != null)
             {
                 this.lblNext.Visible = false;
             }
         }
     }
 }
Пример #7
0
 protected override void AttachChildControls()
 {
     this.litAddresser = (Literal)this.FindControl("litAddresser");
     this.litTitle     = (Literal)this.FindControl("litTitle");
     this.litDate      = (FormatedTimeLabel)this.FindControl("litDate");
     this.litContent   = (Literal)this.FindControl("litContent");
     if (!this.Page.IsPostBack)
     {
         this.BindSendMessage();
     }
 }
Пример #8
0
 protected override void AttachChildControls()
 {
     this.litAddresser                   = (Literal)this.FindControl("litAddresser");
     this.litTitle                       = (Literal)this.FindControl("litTitle");
     this.litDate                        = (FormatedTimeLabel)this.FindControl("litDate");
     this.litContent                     = (Literal)this.FindControl("litContent");
     this.txtReplyTitle                  = (TextBox)this.FindControl("txtReplyTitle");
     this.txtReplyContent                = (TextBox)this.FindControl("txtReplyContent");
     this.btnReplyReceivedMessage        = (Button)this.FindControl("btnReplyReceivedMessage");
     this.btnReplyReceivedMessage.Click += new EventHandler(this.btnReplyReceivedMessage_Click);
     if (!string.IsNullOrEmpty(this.Page.Request.QueryString["ReceiveMessageId"]))
     {
         this.receiveMessageId = long.Parse(this.Page.Request.QueryString["ReceiveMessageId"]);
     }
     if (!this.Page.IsPostBack)
     {
         this.BindReceivedMessage();
     }
 }
Пример #9
0
 protected override void AttachChildControls()
 {
     this.litAddresser                   = (System.Web.UI.WebControls.Literal) this.FindControl("litAddresser");
     this.litTitle                       = (System.Web.UI.WebControls.Literal) this.FindControl("litTitle");
     this.litDate                        = (FormatedTimeLabel)this.FindControl("litDate");
     this.litContent                     = (System.Web.UI.WebControls.Literal) this.FindControl("litContent");
     this.txtReplyTitle                  = (System.Web.UI.WebControls.TextBox) this.FindControl("txtReplyTitle");
     this.txtReplyContent                = (System.Web.UI.WebControls.TextBox) this.FindControl("txtReplyContent");
     this.btnReplyReceivedMessage        = (System.Web.UI.WebControls.Button) this.FindControl("btnReplyReceivedMessage");
     this.btnReplyReceivedMessage.Click += new System.EventHandler(this.btnReplyReceivedMessage_Click);
     if (!string.IsNullOrEmpty(this.Page.Request.QueryString["MessageId"]))
     {
         this.messageId = long.Parse(this.Page.Request.QueryString["MessageId"]);
     }
     if (!this.Page.IsPostBack)
     {
         CommentsHelper.PostMemberMessageIsRead(this.messageId);
         MessageBoxInfo memberMessage = CommentsHelper.GetMemberMessage(this.messageId);
         this.litAddresser.Text = "管理员";
         this.litTitle.Text     = memberMessage.Title;
         this.litContent.Text   = memberMessage.Content;
         this.litDate.Time      = memberMessage.Date;
     }
 }
Пример #10
0
 protected override void AttachChildControls()
 {
     if (!int.TryParse(this.Page.Request.QueryString["productId"], out this.productId))
     {
         base.GotoResourceNotFound();
     }
     this.common_Location         = (Common_Location)this.FindControl("common_Location");
     this.litProductCode          = (Literal)this.FindControl("litProductCode");
     this.litProductName          = (Literal)this.FindControl("litProductName");
     this.lblSku                  = (SkuLabel)this.FindControl("lblSku");
     this.lblStock                = (StockLabel)this.FindControl("lblStock");
     this.litUnit                 = (Literal)this.FindControl("litUnit");
     this.litWeight               = (WeightLabel)this.FindControl("litWeight");
     this.litBrosedNum            = (Literal)this.FindControl("litBrosedNum");
     this.litBrand                = (Literal)this.FindControl("litBrand");
     this.lblSalePrice            = (FormatedMoneyLabel)this.FindControl("lblSalePrice");
     this.lblTotalPrice           = (TotalLabel)this.FindControl("lblTotalPrice");
     this.litDescription          = (Literal)this.FindControl("litDescription");
     this.litShortDescription     = (Literal)this.FindControl("litShortDescription");
     this.btnOrder                = (BuyButton)this.FindControl("btnOrder");
     this.hpkProductConsultations = (HyperLink)this.FindControl("hpkProductConsultations");
     this.hpkProductReviews       = (HyperLink)this.FindControl("hpkProductReviews");
     this.lblCurrentSalePrice     = (FormatedMoneyLabel)this.FindControl("lblCurrentSalePrice");
     this.litContent              = (Literal)this.FindControl("litContent");
     this.lblEndTime              = (FormatedTimeLabel)this.FindControl("lblEndTime");
     this.litRemainTime           = (Literal)this.FindControl("litRemainTime");
     this.images                  = (Common_ProductImages)this.FindControl("common_ProductImages");
     this.rptExpandAttributes     = (ThemedTemplatedRepeater)this.FindControl("rptExpandAttributes");
     this.skuSelector             = (SKUSelector)this.FindControl("SKUSelector");
     this.reviews                 = (Common_ProductReview)this.FindControl("list_Common_ProductReview");
     this.consultations           = (Common_ProductConsultations)this.FindControl("list_Common_ProductConsultations");
     this.correlative             = (Common_GoodsList_Correlative)this.FindControl("list_Common_GoodsList_Correlative");
     if (!this.Page.IsPostBack)
     {
         ProductBrowseInfo info          = ProductBrowser.GetProductBrowseInfo(this.productId, new int?(this.reviews.MaxNum), new int?(this.consultations.MaxNum));
         CountDownInfo     countDownInfo = ProductBrowser.GetCountDownInfo(this.productId);
         if ((info.Product == null) || (countDownInfo == null))
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该件商品参与的限时抢购活动已经结束;或被管理员删除"));
         }
         else
         {
             this.LoadPageSearch(info.Product);
             this.hpkProductReviews.Text              = "查看全部" + ProductBrowser.GetProductReviewNumber(this.productId).ToString() + "条评论";
             this.hpkProductConsultations.Text        = "查看全部" + ProductBrowser.GetProductConsultationNumber(this.productId).ToString() + "条咨询";
             this.hpkProductConsultations.NavigateUrl = string.Format("ProductConsultationsAndReplay.aspx?productId={0}", this.productId);
             this.hpkProductReviews.NavigateUrl       = string.Format("LookProductReviews.aspx?productId={0}", this.productId);
             this.LoadProductInfo(info.Product, info.BrandName);
             this.LoadProductGroupBuyInfo(countDownInfo);
             this.btnOrder.Stock = info.Product.Stock;
             BrowsedProductQueue.EnQueue(this.productId);
             this.images.ImageInfo = info.Product;
             if (info.DbAttribute != null)
             {
                 this.rptExpandAttributes.DataSource = info.DbAttribute;
                 this.rptExpandAttributes.DataBind();
             }
             if (info.DbSKUs != null)
             {
                 this.skuSelector.ProductId  = this.productId;
                 this.skuSelector.DataSource = info.DbSKUs;
             }
             if (info.DBReviews != null)
             {
                 this.reviews.DataSource = info.DBReviews;
                 this.reviews.DataBind();
             }
             if (info.DBConsultations != null)
             {
                 this.consultations.DataSource = info.DBConsultations;
                 this.consultations.DataBind();
             }
             if (info.DbCorrelatives != null)
             {
                 this.correlative.DataSource = info.DbCorrelatives;
                 this.correlative.DataBind();
             }
         }
     }
 }
Пример #11
0
 protected override void AttachChildControls()
 {
     this.orderId = base.GetParameter("orderId", false);
     this.litFightGroupStatusLabel = (FightGroupStatusLabel)this.FindControl("litFightGroupStatusLabel");
     this.litOrderId          = (Literal)this.FindControl("litOrderId");
     this.lbltotalPrice       = (FormatedMoneyLabel)this.FindControl("lbltotalPrice");
     this.litAddDate          = (FormatedTimeLabel)this.FindControl("litAddDate");
     this.lblOrderStatus      = (OrderStatusLabel)this.FindControl("lblOrderStatus");
     this.litCloseReason      = (Literal)this.FindControl("litCloseReason");
     this.litRemark           = (Literal)this.FindControl("litRemark");
     this.litShipTo           = (Literal)this.FindControl("litShipTo");
     this.litRegion           = (Literal)this.FindControl("litRegion");
     this.litAddress          = (Literal)this.FindControl("litAddress");
     this.litZipcode          = (Literal)this.FindControl("litZipcode");
     this.litEmail            = (Literal)this.FindControl("litEmail");
     this.litPhone            = (Literal)this.FindControl("litPhone");
     this.litTellPhone        = (Literal)this.FindControl("litTellPhone");
     this.litShipToDate       = (Literal)this.FindControl("litShipToDate");
     this.litPaymentType      = (Literal)this.FindControl("litPaymentType");
     this.litModeName         = (Literal)this.FindControl("litModeName");
     this.plOrderSended       = (Panel)this.FindControl("plOrderSended");
     this.litRealModeName     = (Literal)this.FindControl("litRealModeName");
     this.litShippNumber      = (Literal)this.FindControl("litShippNumber");
     this.litDiscountName     = (HyperLink)this.FindControl("litDiscountName");
     this.lblAdjustedDiscount = (FormatedMoneyLabel)this.FindControl("lblAdjustedDiscount");
     this.litFreeName         = (HyperLink)this.FindControl("litFreeName");
     this.plExpress           = (Panel)this.FindControl("plExpress");
     this.power                      = (HtmlAnchor)this.FindControl("power");
     this.litTakeCode                = (Literal)this.FindControl("litTakeCode");
     this.litStoreInfo               = (Literal)this.FindControl("litStoreInfo");
     this.litStoreName               = (Literal)this.FindControl("litStoreName");
     this.litStoreTel                = (Literal)this.FindControl("litStoreTel");
     this.divstoreinfo               = (HtmlGenericControl)this.FindControl("divstoreinfo");
     this.divInvoiceTitle            = (HtmlGenericControl)this.FindControl("divInvoiceTitle");
     this.divInvoiceTaxpayerNumber   = (HtmlGenericControl)this.FindControl("divInvoiceTaxpayerNumber");
     this.divTax                     = (HtmlGenericControl)this.FindControl("divTax");
     this.listOrders                 = (Common_OrderManage_OrderItems)this.FindControl("Common_OrderManage_OrderItems");
     this.orderGifts                 = (Common_OrderManage_OrderGifts)this.FindControl("Common_OrderManage_OrderGifts");
     this.plOrderGift                = (Panel)this.FindControl("plOrderGift");
     this.lblBundlingPrice           = (Literal)this.FindControl("lblBundlingPrice");
     this.litPoints                  = (Literal)this.FindControl("litPoints");
     this.litSentTimesPointPromotion = (HyperLink)this.FindControl("litSentTimesPointPromotion");
     this.litWeight                  = (Literal)this.FindControl("litWeight");
     this.litFree                    = (Literal)this.FindControl("litFree");
     this.lblFreight                 = (FormatedMoneyLabel)this.FindControl("lblFreight");
     this.litCouponValue             = (Literal)this.FindControl("litCouponValue");
     this.litPointMoney              = (Literal)this.FindControl("litPointMoney");
     this.lblDiscount                = (FormatedMoneyLabel)this.FindControl("lblDiscount");
     this.litTotalPrice              = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
     this.lblRefundTotal             = (FormatedMoneyLabel)this.FindControl("lblRefundTotal");
     this.litAddOrderDate            = (FormatedTimeLabel)this.FindControl("litAddOrderDate");
     this.litPayDate                 = (FormatedTimeLabel)this.FindControl("litPayDate");
     this.litPayBack                 = (FormatedTimeLabel)this.FindControl("litPayBack");
     this.litBackShip                = (FormatedTimeLabel)this.FindControl("litBackShip");
     this.litShipDate                = (FormatedTimeLabel)this.FindControl("litShipDate");
     this.litResultDate              = (FormatedTimeLabel)this.FindControl("litResultDate");
     this.lkbtnConfirmOrder          = (LinkButton)this.FindControl("lkbtnConfirmOrder");
     this.lkbtnCloseOrder            = (LinkButton)this.FindControl("lkbtnCloseOrder");
     this.hidExpressCompanyName      = (HiddenField)this.FindControl("hidExpressCompanyName");
     this.hidShipOrderNumber         = (HiddenField)this.FindControl("hidShipOrderNumber");
     this.hidHiPOSTakeCode           = (HiddenField)this.FindControl("hidHiPOSTakeCode");
     this.btnPay                     = (Button)this.FindControl("btnPay");
     this.lbRefundMoney              = (Label)this.FindControl("lbRefundMoney");
     this.lbRefundMoney              = (Label)this.FindControl("lbRefundMoney");
     this.lbCloseReason              = (Label)this.FindControl("lbCloseReason");
     this.txtRemark                  = (TextBox)this.FindControl("txtRemark");
     this.txtReturnRemark            = (TextBox)this.FindControl("txtReturnRemark");
     this.txtReplaceRemark           = (TextBox)this.FindControl("txtReplaceRemark");
     this.dropRefundType             = (RefundTypeDropDownList)this.FindControl("dropRefundType");
     this.dropReturnRefundType       = (RefundTypeDropDownList)this.FindControl("dropReturnRefundType");
     this.dropPayType                = (DropDownList)this.FindControl("dropPayType");
     this.plRefund                   = (Panel)this.FindControl("plRefund");
     this.lblTotalBalance            = (FormatedMoneyLabel)this.FindControl("lblTotalBalance");
     this.litRefundOrderRemark       = (Literal)this.FindControl("litRefundOrderRemark");
     this.litInvoiceTitle            = (Literal)this.FindControl("litInvoiceTitle");
     this.litInvoiceTaxpayerNumber   = (Literal)this.FindControl("litInvoiceTaxpayerNumber");
     this.litTax                     = (FormatedMoneyLabel)this.FindControl("litTax");
     this.hdorderId                  = (HtmlInputHidden)this.FindControl("hdorderId");
     this.lkbtnApplyForRefund        = (HtmlAnchor)this.FindControl("lkbtnApplyForRefund");
     this.lkbtnUserRealNameVerify    = (HtmlAnchor)this.FindControl("lkbtnUserRealNameVerify");
     this.hidPreSaleId               = (HiddenField)this.FindControl("hidPreSaleId");
     this.hidIsPayDeposit            = (HiddenField)this.FindControl("hidIsPayDeposit");
     this.hidIsPaymentStore          = (HiddenField)this.FindControl("hidIsPaymentStore");
     this.litDepositPayDate          = (FormatedTimeLabel)this.FindControl("litDepositPayDate");
     this.litFinalPamentPayDate      = (Literal)this.FindControl("litFinalPamentPayDate");
     this.lblDeposit                 = (FormatedMoneyLabel)this.FindControl("lblDeposit");
     this.lblFinalPayment            = (FormatedMoneyLabel)this.FindControl("lblFinalPayment");
     this.litGetGoodsRemark          = (Literal)this.FindControl("litGetGoodsRemark");
     this.divPickUpRemark            = (HtmlGenericControl)this.FindControl("divPickUpRemark");
     this.litBalanceAmount           = (Literal)this.FindControl("litBalanceAmount");
     this.hidExpressStatus           = (HtmlInputHidden)this.FindControl("hidExpressStatus");
     this.litInvoiceType             = (Literal)this.FindControl("litInvoiceType");
     this.litRegisterAddress         = (Literal)this.FindControl("litRegisterAddress");
     this.litRegisterTel             = (Literal)this.FindControl("litRegisterTel");
     this.litOpenBank                = (Literal)this.FindControl("litOpenBank");
     this.litBankName                = (Literal)this.FindControl("litBankName");
     this.litReceiveName             = (Literal)this.FindControl("litReceiveName");
     this.litReceiveMobbile          = (Literal)this.FindControl("litReceiveMobbile");
     this.litReceiveEmail            = (Literal)this.FindControl("litReceiveEmail");
     this.litReceiveRegionName       = (Literal)this.FindControl("litReceiveRegionName");
     this.litReceiveAddress          = (Literal)this.FindControl("litReceiveAddress");
     this.listOrders.ItemDataBound  += this.orderItems_ItemDataBound;
     PageTitle.AddTitle("订单详细页", HiContext.Current.Context);
     this.order = TradeHelper.GetOrderInfo(this.orderId);
     this.divInvoiceTitle.Visible          = (this.order.Tax > decimal.Zero && !string.IsNullOrEmpty(this.order.InvoiceTitle));
     this.divInvoiceTaxpayerNumber.Visible = (this.order.Tax > decimal.Zero && !string.IsNullOrEmpty(this.order.InvoiceTaxpayerNumber));
     this.divTax.Visible           = (this.order.Tax > decimal.Zero);
     this.btnPay.Click            += this.btnPay_Click;
     this.lkbtnConfirmOrder.Click += this.lkbtnConfirmOrder_Click;
     this.lkbtnCloseOrder.Click   += this.lkbtnCloseOrder_Click;
     if (!this.Page.IsPostBack)
     {
         if (!string.IsNullOrEmpty(this.order.TakeCode))
         {
             this.hidHiPOSTakeCode.Value = Globals.HIPOSTAKECODEPREFIX + this.order.TakeCode;
         }
         if (this.order == null || this.order.UserId != HiContext.Current.UserId)
         {
             this.Page.Response.Redirect("/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该订单不存在或者不属于当前用户的订单"));
         }
         else
         {
             this.BindOrderBase(this.order);
             this.BindOrderAddress(this.order);
             this.BindOrderItems(this.order);
             this.BindStoreInfo(this.order);
             if (!string.IsNullOrEmpty(this.order.InvoiceTitle))
             {
                 UserInvoiceDataInfo userInvoiceDataInfo = this.order.InvoiceInfo;
                 if (userInvoiceDataInfo == null)
                 {
                     userInvoiceDataInfo = new UserInvoiceDataInfo
                     {
                         InvoiceType           = this.order.InvoiceType,
                         InvoiceTaxpayerNumber = this.order.InvoiceTaxpayerNumber.ToNullString(),
                         InvoiceTitle          = this.order.InvoiceTitle.ToNullString()
                     };
                 }
                 this.litInvoiceTaxpayerNumber.SetWhenIsNotNull(this.order.InvoiceTaxpayerNumber);
                 this.litInvoiceTitle.SetWhenIsNotNull(this.order.InvoiceTitle);
                 this.litInvoiceType.SetWhenIsNotNull(EnumDescription.GetEnumDescription((Enum)(object)this.order.InvoiceType, 0));
                 this.litRegisterAddress.SetWhenIsNotNull(userInvoiceDataInfo.RegisterAddress.ToNullString());
                 this.litRegisterTel.SetWhenIsNotNull(userInvoiceDataInfo.RegisterTel.ToNullString());
                 this.litOpenBank.SetWhenIsNotNull(userInvoiceDataInfo.OpenBank.ToNullString());
                 this.litBankName.SetWhenIsNotNull(userInvoiceDataInfo.BankAccount.ToNullString());
                 this.litReceiveName.SetWhenIsNotNull(userInvoiceDataInfo.ReceiveName.ToNullString());
                 if (this.order.InvoiceType != InvoiceType.Enterprise)
                 {
                     this.litReceiveMobbile.SetWhenIsNotNull(userInvoiceDataInfo.ReceivePhone.ToNullString());
                     if (this.order.InvoiceType != InvoiceType.VATInvoice)
                     {
                         this.litReceiveEmail.SetWhenIsNotNull(userInvoiceDataInfo.ReceiveEmail.ToNullString());
                     }
                 }
                 this.litReceiveRegionName.SetWhenIsNotNull(userInvoiceDataInfo.ReceiveRegionName.ToNullString());
                 this.litReceiveAddress.SetWhenIsNotNull(userInvoiceDataInfo.ReceiveAddress.ToNullString());
             }
             if (this.order.FightGroupId > 0)
             {
                 FightGroupInfo fightGroup = VShopHelper.GetFightGroup(this.order.FightGroupId);
                 this.lkbtnApplyForRefund.Visible    = (fightGroup.Status != 0 && this.order.OrderStatus == OrderStatus.BuyerAlreadyPaid && this.order.GetPayTotal() > decimal.Zero);
                 this.litFightGroupStatusLabel.Order = this.order;
             }
         }
     }
 }
Пример #12
0
 protected override void AttachChildControls()
 {
     if (!int.TryParse(this.Page.Request.QueryString["productId"], out this.productId))
     {
         base.GotoResourceNotFound();
     }
     this.common_Location         = (Common_Location)this.FindControl("common_Location");
     this.litProductName          = (System.Web.UI.WebControls.Literal) this.FindControl("litProductName");
     this.lblSku                  = (SkuLabel)this.FindControl("lblSku");
     this.lblStock                = (StockLabel)this.FindControl("lblStock");
     this.litUnit                 = (System.Web.UI.WebControls.Literal) this.FindControl("litUnit");
     this.litWeight               = (System.Web.UI.WebControls.Label) this.FindControl("litWeight");
     this.litBrosedNum            = (System.Web.UI.WebControls.Literal) this.FindControl("litBrosedNum");
     this.litBrand                = (System.Web.UI.WebControls.Literal) this.FindControl("litBrand");
     this.litContent              = (System.Web.UI.WebControls.Literal) this.FindControl("litContent");
     this.lblSalePrice            = (FormatedMoneyLabel)this.FindControl("lblSalePrice");
     this.lblTotalPrice           = (TotalLabel)this.FindControl("lblTotalPrice");
     this.litDescription          = (System.Web.UI.WebControls.Literal) this.FindControl("litDescription");
     this.litShortDescription     = (System.Web.UI.WebControls.Literal) this.FindControl("litShortDescription");
     this.btnOrder                = (BuyButton)this.FindControl("btnOrder");
     this.hpkProductConsultations = (System.Web.UI.WebControls.HyperLink) this.FindControl("hpkProductConsultations");
     this.hpkProductReviews       = (System.Web.UI.WebControls.HyperLink) this.FindControl("hpkProductReviews");
     this.txtMaxCount             = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("txtMaxCount");
     this.txtSoldCount            = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("txtSoldCount");
     this.lblCurrentSalePrice     = (FormatedMoneyLabel)this.FindControl("lblCurrentSalePrice");
     this.litCount                = (System.Web.UI.WebControls.Label) this.FindControl("litCount");
     this.lblNeedPrice            = (FormatedMoneyLabel)this.FindControl("lblNeedPrice");
     this.lblEndTime              = (FormatedTimeLabel)this.FindControl("lblEndTime");
     this.lblStartTime            = (FormatedTimeLabel)this.FindControl("lblStartTime");
     this.litRemainTime           = (System.Web.UI.WebControls.Literal) this.FindControl("litRemainTime");
     this.litNeedCount            = (System.Web.UI.WebControls.Literal) this.FindControl("litNeedCount");
     this.litMaxCount             = (System.Web.UI.WebControls.Label) this.FindControl("litMaxCount");
     this.images                  = (Common_ProductImages)this.FindControl("common_ProductImages");
     this.rptExpandAttributes     = (ThemedTemplatedRepeater)this.FindControl("rptExpandAttributes");
     this.skuSelector             = (SKUSelector)this.FindControl("SKUSelector");
     this.reviews                 = (Common_ProductReview)this.FindControl("list_Common_ProductReview");
     this.consultations           = (Common_ProductConsultations)this.FindControl("list_Common_ProductConsultations");
     this.correlative             = (Common_GoodsList_Correlative)this.FindControl("list_Common_GoodsList_Correlative");
     this.nowTime                 = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("nowTime");
     this.nowTime.SetWhenIsNotNull(System.DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss", System.Globalization.DateTimeFormatInfo.InvariantInfo));
     this.hidden_skus    = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("hidden_skus");
     this.hidden_skuItem = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("hidden_skuItem");
     if (!this.Page.IsPostBack)
     {
         ProductBrowseInfo productBrowseInfo   = ProductBrowser.GetProductBrowseInfo(this.productId, new int?(this.reviews.MaxNum), new int?(this.consultations.MaxNum));
         GroupBuyInfo      productGroupBuyInfo = ProductBrowser.GetProductGroupBuyInfo(this.productId);
         if (productBrowseInfo.Product == null || productGroupBuyInfo == null)
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该件商品参与的团购活动已经结束;或已被管理员删除"));
             return;
         }
         System.Collections.IEnumerable value =
             from item in productBrowseInfo.Product.Skus
             select item.Value;
         if (JsonConvert.SerializeObject(productBrowseInfo.DbSKUs) != null)
         {
             this.hidden_skuItem.Value = JsonConvert.SerializeObject(productBrowseInfo.DbSKUs);
         }
         if (this.hidden_skus != null)
         {
             this.hidden_skus.Value = JsonConvert.SerializeObject(value);
         }
         this.LoadPageSearch(productBrowseInfo.Product);
         this.hpkProductReviews.Text              = "查看全部" + productBrowseInfo.ReviewCount.ToString() + "条评论";
         this.hpkProductConsultations.Text        = "查看全部" + productBrowseInfo.ConsultationCount.ToString() + "条咨询";
         this.hpkProductConsultations.NavigateUrl = string.Format("ProductConsultationsAndReplay.aspx?productId={0}", this.productId);
         this.hpkProductReviews.NavigateUrl       = string.Format("LookProductReviews.aspx?productId={0}", this.productId);
         this.LoadProductInfo(productBrowseInfo.Product, productBrowseInfo.BrandName);
         this.LoadProductGroupBuyInfo(productGroupBuyInfo);
         this.btnOrder.Stock = productBrowseInfo.Product.Stock;
         BrowsedProductQueue.EnQueue(this.productId);
         this.images.ImageInfo = productBrowseInfo.Product;
         this.litContent.Text  = productGroupBuyInfo.Content;
         if (productBrowseInfo.DbAttribute != null)
         {
             this.rptExpandAttributes.DataSource = productBrowseInfo.DbAttribute;
             this.rptExpandAttributes.DataBind();
         }
         if (productBrowseInfo.DbSKUs != null)
         {
             this.skuSelector.ProductId  = this.productId;
             this.skuSelector.DataSource = productBrowseInfo.DbSKUs;
         }
         if (productBrowseInfo.DBReviews != null)
         {
             this.reviews.DataSource = productBrowseInfo.DBReviews;
             this.reviews.DataBind();
         }
         if (productBrowseInfo.DBConsultations != null)
         {
             this.consultations.DataSource = productBrowseInfo.DBConsultations;
             this.consultations.DataBind();
         }
         if (productBrowseInfo.DbCorrelatives != null)
         {
             this.correlative.DataSource = productBrowseInfo.DbCorrelatives;
             this.correlative.DataBind();
         }
     }
 }
 protected override void AttachChildControls()
 {
     if (!int.TryParse(this.Page.Request.QueryString["articleId"], out this.articleId))
     {
         base.GotoResourceNotFound();
     }
     this.litArticleAddedDate   = (FormatedTimeLabel)this.FindControl("litArticleAddedDate");
     this.litArticleContent     = (Literal)this.FindControl("litArticleContent");
     this.litArticleDescription = (Literal)this.FindControl("litArticleDescription");
     this.litArticleTitle       = (Literal)this.FindControl("litArticleTitle");
     this.lblFront      = (Label)this.FindControl("lblFront");
     this.lblNext       = (Label)this.FindControl("lblNext");
     this.lblFrontTitle = (Label)this.FindControl("lblFrontTitle");
     this.lblNextTitle  = (Label)this.FindControl("lblNextTitle");
     this.aFront        = (HtmlAnchor)this.FindControl("front");
     this.aNext         = (HtmlAnchor)this.FindControl("next");
     this.ariticlative  = (Common_ArticleRelative)this.FindControl("list_Common_ArticleRelative");
     if (!this.Page.IsPostBack)
     {
         ArticleInfo article = CommentBrowser.GetArticle(this.articleId);
         if ((article != null) && article.IsRelease)
         {
             PageTitle.AddSiteNameTitle(article.Title, HiContext.Current.Context);
             if (!string.IsNullOrEmpty(article.MetaKeywords))
             {
                 MetaTags.AddMetaKeywords(article.MetaKeywords, HiContext.Current.Context);
             }
             if (!string.IsNullOrEmpty(article.MetaDescription))
             {
                 MetaTags.AddMetaDescription(article.MetaDescription, HiContext.Current.Context);
             }
             this.litArticleTitle.Text       = article.Title;
             this.litArticleDescription.Text = article.Description;
             string str = HiContext.Current.HostPath + Globals.GetSiteUrls().UrlData.FormatUrl("ArticleDetails", new object[] { this.articleId });
             this.litArticleContent.Text   = article.Content.Replace("href=\"#\"", "href=\"" + str + "\"");
             this.litArticleAddedDate.Time = article.AddedDate;
             ArticleInfo info2 = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Front", article.CategoryId);
             if ((info2 != null) && (info2.ArticleId > 0))
             {
                 if (this.lblFront != null)
                 {
                     this.lblFront.Visible   = true;
                     this.aFront.HRef        = Globals.GetSiteUrls().UrlData.FormatUrl("ArticleDetails", new object[] { info2.ArticleId });
                     this.lblFrontTitle.Text = info2.Title;
                 }
             }
             else if (this.lblFront != null)
             {
                 this.lblFront.Visible = false;
             }
             ArticleInfo info3 = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Next", article.CategoryId);
             if ((info3 != null) && (info3.ArticleId > 0))
             {
                 if (this.lblNext != null)
                 {
                     this.lblNext.Visible   = true;
                     this.aNext.HRef        = Globals.GetSiteUrls().UrlData.FormatUrl("ArticleDetails", new object[] { info3.ArticleId });
                     this.lblNextTitle.Text = info3.Title;
                 }
             }
             else if (this.lblNext != null)
             {
                 this.lblNext.Visible = false;
             }
             this.ariticlative.DataSource = CommentBrowser.GetArticlProductList(this.articleId);
             this.ariticlative.DataBind();
         }
     }
 }
Пример #14
0
 protected override void AttachChildControls()
 {
     this.orderId             = this.Page.Request.QueryString["orderId"];
     this.litOrderId          = (System.Web.UI.WebControls.Literal) this.FindControl("litOrderId");
     this.lbltotalPrice       = (FormatedMoneyLabel)this.FindControl("lbltotalPrice");
     this.litAddDate          = (FormatedTimeLabel)this.FindControl("litAddDate");
     this.lblOrderStatus      = (OrderStatusLabel)this.FindControl("lblOrderStatus");
     this.litCloseReason      = (System.Web.UI.WebControls.Literal) this.FindControl("litCloseReason");
     this.litRemark           = (System.Web.UI.WebControls.Literal) this.FindControl("litRemark");
     this.litShipTo           = (System.Web.UI.WebControls.Literal) this.FindControl("litShipTo");
     this.litRegion           = (System.Web.UI.WebControls.Literal) this.FindControl("litRegion");
     this.litAddress          = (System.Web.UI.WebControls.Literal) this.FindControl("litAddress");
     this.litZipcode          = (System.Web.UI.WebControls.Literal) this.FindControl("litZipcode");
     this.litEmail            = (System.Web.UI.WebControls.Literal) this.FindControl("litEmail");
     this.litPhone            = (System.Web.UI.WebControls.Literal) this.FindControl("litPhone");
     this.litTellPhone        = (System.Web.UI.WebControls.Literal) this.FindControl("litTellPhone");
     this.litShipToDate       = (System.Web.UI.WebControls.Literal) this.FindControl("litShipToDate");
     this.litPaymentType      = (System.Web.UI.WebControls.Literal) this.FindControl("litPaymentType");
     this.litModeName         = (System.Web.UI.WebControls.Literal) this.FindControl("litModeName");
     this.plOrderSended       = (System.Web.UI.WebControls.Panel) this.FindControl("plOrderSended");
     this.litRealModeName     = (System.Web.UI.WebControls.Literal) this.FindControl("litRealModeName");
     this.litShippNumber      = (System.Web.UI.WebControls.Literal) this.FindControl("litShippNumber");
     this.litDiscountName     = (System.Web.UI.WebControls.HyperLink) this.FindControl("litDiscountName");
     this.lblAdjustedDiscount = (FormatedMoneyLabel)this.FindControl("lblAdjustedDiscount");
     this.litFreeName         = (System.Web.UI.WebControls.HyperLink) this.FindControl("litFreeName");
     this.plExpress           = (System.Web.UI.WebControls.Panel) this.FindControl("plExpress");
     this.power                      = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("power");
     this.orderItems                 = (Common_OrderManage_OrderItems)this.FindControl("Common_OrderManage_OrderItems");
     this.grdOrderGift               = (System.Web.UI.WebControls.GridView) this.FindControl("grdOrderGift");
     this.plOrderGift                = (System.Web.UI.WebControls.Panel) this.FindControl("plOrderGift");
     this.lblBundlingPrice           = (System.Web.UI.WebControls.Literal) this.FindControl("lblBundlingPrice");
     this.litPoints                  = (System.Web.UI.WebControls.Literal) this.FindControl("litPoints");
     this.litSentTimesPointPromotion = (System.Web.UI.WebControls.HyperLink) this.FindControl("litSentTimesPointPromotion");
     this.litWeight                  = (System.Web.UI.WebControls.Literal) this.FindControl("litWeight");
     this.litFree                    = (System.Web.UI.WebControls.Literal) this.FindControl("litFree");
     this.lblFreight                 = (FormatedMoneyLabel)this.FindControl("lblFreight");
     this.lblPayCharge               = (FormatedMoneyLabel)this.FindControl("lblPayCharge");
     this.litCouponValue             = (System.Web.UI.WebControls.Literal) this.FindControl("litCouponValue");
     this.lblDiscount                = (FormatedMoneyLabel)this.FindControl("lblDiscount");
     this.litTotalPrice              = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
     this.lblRefundTotal             = (FormatedMoneyLabel)this.FindControl("lblRefundTotal");
     this.litAddOrderDate            = (FormatedTimeLabel)this.FindControl("litAddOrderDate");
     this.litPayDate                 = (FormatedTimeLabel)this.FindControl("litPayDate");
     this.litPayBack                 = (FormatedTimeLabel)this.FindControl("litPayBack");
     this.litBackShip                = (FormatedTimeLabel)this.FindControl("litBackShip");
     this.litShipDate                = (FormatedTimeLabel)this.FindControl("litShipDate");
     this.litResultDate              = (FormatedTimeLabel)this.FindControl("litResultDate");
     this.lkbtnConfirmOrder          = (System.Web.UI.WebControls.LinkButton) this.FindControl("lkbtnConfirmOrder");
     this.lkbtnCloseOrder            = (System.Web.UI.WebControls.LinkButton) this.FindControl("lkbtnCloseOrder");
     this.lkbtnApplyForRefund        = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("lkbtnApplyForRefund");
     this.lkbtnApplyForReturn        = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("lkbtnApplyForReturn");
     this.lkbtnApplyForReplace       = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("lkbtnApplyForReplace");
     this.btnOk                      = (System.Web.UI.WebControls.Button) this.FindControl("btnOk");
     this.btnReplace                 = (System.Web.UI.WebControls.Button) this.FindControl("btnReplace");
     this.btnReturn                  = (System.Web.UI.WebControls.Button) this.FindControl("btnReturn");
     this.btnPay                     = (System.Web.UI.WebControls.Button) this.FindControl("btnPay");
     this.lbRefundMoney              = (System.Web.UI.WebControls.Label) this.FindControl("lbRefundMoney");
     this.lbRefundMoney              = (System.Web.UI.WebControls.Label) this.FindControl("lbRefundMoney");
     this.lbCloseReason              = (System.Web.UI.WebControls.Label) this.FindControl("lbCloseReason");
     this.txtRemark                  = (System.Web.UI.WebControls.TextBox) this.FindControl("txtRemark");
     this.txtReturnRemark            = (System.Web.UI.WebControls.TextBox) this.FindControl("txtReturnRemark");
     this.txtReplaceRemark           = (System.Web.UI.WebControls.TextBox) this.FindControl("txtReplaceRemark");
     this.dropRefundType             = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropRefundType");
     this.dropRefundReason           = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropRefundReason");
     this.dropReturnReason           = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropReturnReason");
     this.dropReturnRefundType       = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropReturnRefundType");
     this.dropPayType                = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropPayType");
     this.plRefund                   = (System.Web.UI.WebControls.Panel) this.FindControl("plRefund");
     this.lblTotalBalance            = (FormatedMoneyLabel)this.FindControl("lblTotalBalance");
     this.litRefundOrderRemark       = (System.Web.UI.WebControls.Literal) this.FindControl("litRefundOrderRemark");
     this.litTax                     = (FormatedMoneyLabel)this.FindControl("litTax");
     this.litInvoiceTitle            = (System.Web.UI.WebControls.Literal) this.FindControl("litInvoiceTitle");
     this.hdorderId                  = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("hdorderId");
     PageTitle.AddTitle("订单详细页", HiContext.Current.Context);
     this.btnPay.Click            += new System.EventHandler(this.btnPay_Click);
     this.btnOk.Click             += new System.EventHandler(this.btnOk_Click);
     this.btnReturn.Click         += new System.EventHandler(this.btnReturn_Click);
     this.btnReplace.Click        += new System.EventHandler(this.btnReplace_Click);
     this.lkbtnConfirmOrder.Click += new System.EventHandler(this.lkbtnConfirmOrder_Click);
     this.lkbtnCloseOrder.Click   += new System.EventHandler(this.lkbtnCloseOrder_Click);
     if (!this.Page.IsPostBack)
     {
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         if (orderInfo == null || orderInfo.UserId != HiContext.Current.User.UserId)
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该订单不存在或者不属于当前用户的订单"));
             return;
         }
         this.BindOrderBase(orderInfo);
         this.BindOrderAddress(orderInfo);
         this.BindOrderItems(orderInfo);
         BindRefundReason();
         BindReturnReason();
     }
 }
Пример #15
0
        protected override void AttachChildControls()
        {
            if (!int.TryParse(this.Page.Request.QueryString["articleId"], out this.articleId))
            {
                base.GotoResourceNotFound("");
            }
            this.txtCatgoryId          = (HtmlInputHidden)this.FindControl("txtCatgoryId");
            this.litArticleAddedDate   = (FormatedTimeLabel)this.FindControl("litArticleAddedDate");
            this.litArticleContent     = (Literal)this.FindControl("litArticleContent");
            this.litArticleDescription = (Literal)this.FindControl("litArticleDescription");
            this.litArticleTitle       = (Literal)this.FindControl("litArticleTitle");
            this.lblFront      = (Label)this.FindControl("lblFront");
            this.lblNext       = (Label)this.FindControl("lblNext");
            this.lblFrontTitle = (Label)this.FindControl("lblFrontTitle");
            this.lblNextTitle  = (Label)this.FindControl("lblNextTitle");
            this.aFront        = (HtmlAnchor)this.FindControl("front");
            this.aNext         = (HtmlAnchor)this.FindControl("next");
            this.ariticlative  = (Common_ArticleRelative)this.FindControl("list_Common_ArticleRelative");
            if (!this.Page.IsPostBack)
            {
                ArticleInfo article = CommentBrowser.GetArticle(this.articleId);
                if ((article != null) && article.IsRelease)
                {
                    if (this.txtCatgoryId != null)
                    {
                        this.txtCatgoryId.Value = article.CategoryId.ToString();
                    }
                    PageTitle.AddSiteNameTitle(article.Title);
                    if (!string.IsNullOrEmpty(article.MetaKeywords))
                    {
                        MetaTags.AddMetaKeywords(article.MetaKeywords, HiContext.Current.Context);
                    }
                    if (!string.IsNullOrEmpty(article.MetaDescription))
                    {
                        MetaTags.AddMetaDescription(article.MetaDescription, HiContext.Current.Context);
                    }
                    this.litArticleTitle.Text       = article.Title;
                    this.litArticleDescription.Text = article.Description;
                    string str = HiContext.Current.HostPath + Globals.GetSiteUrls().UrlData.FormatUrl("ArticleDetails", new object[] { this.articleId });
                    this.litArticleContent.Text   = article.Content.Replace("href=\"#\"", "href=\"" + str + "\"");
                    this.litArticleAddedDate.Time = article.AddedDate;
                    ArticleInfo info2 = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Front", article.CategoryId);
                    if ((info2 != null) && (info2.ArticleId > 0))
                    {
                        if (this.lblFront != null)
                        {
                            this.lblFront.Visible   = true;
                            this.aFront.HRef        = "ArticleDetails.aspx?ArticleId=" + info2.ArticleId;
                            this.lblFrontTitle.Text = info2.Title;
                        }
                    }
                    else if (this.lblFront != null)
                    {
                        this.lblFront.Visible = false;
                    }
                    ArticleInfo info3 = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Next", article.CategoryId);
                    if ((info3 != null) && (info3.ArticleId > 0))
                    {
                        if (this.lblNext != null)
                        {
                            this.lblNext.Visible   = true;
                            this.aNext.HRef        = "ArticleDetails.aspx?ArticleId=" + info3.ArticleId;
                            this.lblNextTitle.Text = info3.Title;
                        }
                    }
                    else if (this.lblNext != null)
                    {
                        this.lblNext.Visible = false;
                    }


                    //如果该文章绑定了优惠券,则自动领取优惠券
                    if (article.CouponId > 0)
                    {
                        MemberInfo currentMember = MemberProcessor.GetCurrentMember();
                        if (!CouponHelper.CheckUserIsCoupon(currentMember.UserId, article.CouponId))
                        {
                            //如果还没有领取过,开始领取优惠券
                            int    number;
                            string claimCode = string.Empty;
                            claimCode += article.CouponId + "|" + currentMember.UserId;
                            claimCode  = claimCode.PadLeft(15, 'w');//w代表文章列表获取的
                            CouponItemInfo item = new CouponItemInfo();
                            System.Collections.Generic.IList <CouponItemInfo> listCouponItem = new System.Collections.Generic.List <CouponItemInfo>();
                            item = new CouponItemInfo(article.CouponId, claimCode, new int?(currentMember.UserId), currentMember.UserName, currentMember.Email, System.DateTime.Now);
                            listCouponItem.Add(item);
                            CouponHelper.SendClaimCodes(article.CouponId, listCouponItem);
                            this.Page.Response.Write("<script>alert('恭喜您成功领取了一张优惠券!')</script>");
                        }
                        else
                        {
                            //this.Page.Response.Write("<script>alert('请勿重复领取!')</script>");
                        }
                    }
                }
            }
        }
 protected override void AttachChildControls()
 {
     if (!int.TryParse(base.GetParameter("groupBuyId", false), out this.groupBuyId))
     {
         base.GotoResourceNotFound();
     }
     this.ltlConsultation     = (Literal)this.FindControl("ltlConsultation");
     this.ltlSaleCount        = (Literal)this.FindControl("ltlSaleCount");
     this.common_Location     = (Common_Location)this.FindControl("common_Location");
     this.litProductName      = (Literal)this.FindControl("litProductName");
     this.lblSku              = (SkuLabel)this.FindControl("lblSku");
     this.lblStock            = (StockLabel)this.FindControl("lblStock");
     this.litUnit             = (Literal)this.FindControl("litUnit");
     this.litWeight           = (Label)this.FindControl("litWeight");
     this.litBrosedNum        = (Literal)this.FindControl("litBrosedNum");
     this.litBrand            = (Literal)this.FindControl("litBrand");
     this.litContent          = (Literal)this.FindControl("litContent");
     this.lblSalePrice        = (FormatedMoneyLabel)this.FindControl("lblSalePrice");
     this.lblTotalPrice       = (TotalLabel)this.FindControl("lblTotalPrice");
     this.litDescription      = (Literal)this.FindControl("litDescription");
     this.litShortDescription = (Literal)this.FindControl("litShortDescription");
     this.btnOrder            = (BuyButton)this.FindControl("btnOrder");
     this.ltlReviewCount      = (Literal)this.FindControl("ltlReviewCount");
     this.txtMaxCount         = (HtmlInputHidden)this.FindControl("txtMaxCount");
     this.txtSoldCount        = (HtmlInputHidden)this.FindControl("txtSoldCount");
     this.hidden_IsOver       = (HtmlInputHidden)this.FindControl("hidden_IsOver");
     this.hidden_GroupBuyId   = (HtmlInputHidden)this.FindControl("hidden_GroupBuyId");
     this.hidden_productId    = (HtmlInputHidden)this.FindControl("hidden_productId");
     this.lblCurrentSalePrice = (FormatedMoneyLabel)this.FindControl("lblCurrentSalePrice");
     this.litCount            = (Label)this.FindControl("litCount");
     this.lblNeedPrice        = (FormatedMoneyLabel)this.FindControl("lblNeedPrice");
     this.lblEndTime          = (FormatedTimeLabel)this.FindControl("lblEndTime");
     this.lblStartTime        = (FormatedTimeLabel)this.FindControl("lblStartTime");
     this.litRemainTime       = (Literal)this.FindControl("litRemainTime");
     this.litNeedCount        = (Literal)this.FindControl("litNeedCount");
     this.litMaxCount         = (Label)this.FindControl("litMaxCount");
     this.images              = (Common_ProductImages)this.FindControl("common_ProductImages");
     this.rptExpandAttributes = (ThemedTemplatedRepeater)this.FindControl("rptExpandAttributes");
     this.skuSelector         = (SKUSelector)this.FindControl("SKUSelector");
     this.consultations       = (Common_ProductConsultations)this.FindControl("list_Common_ProductConsultations");
     this.correlative         = (Common_GoodsList_Correlative)this.FindControl("list_Common_GoodsList_Correlative");
     this.nowTime             = (HtmlInputHidden)this.FindControl("nowTime");
     this.nowTime.SetWhenIsNotNull(DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss", DateTimeFormatInfo.InvariantInfo));
     this.hidden_skus    = (HtmlInputHidden)this.FindControl("hidden_skus");
     this.hidden_skuItem = (HtmlInputHidden)this.FindControl("hidden_skuItem");
     if (!this.Page.IsPostBack)
     {
         SiteSettings masterSettings = SettingsManager.GetMasterSettings();
         GroupBuyInfo groupBuy       = PromoteHelper.GetGroupBuy(this.groupBuyId);
         if (groupBuy == null)
         {
             base.GotoResourceNotFound();
         }
         HtmlInputHidden htmlInputHidden = this.hidden_GroupBuyId;
         int             num             = groupBuy.GroupBuyId;
         htmlInputHidden.Value = num.ToString();
         ProductBrowseInfo productBrowseInfo = ProductBrowser.GetProductBrowseInfo(groupBuy.ProductId, null, masterSettings.OpenMultStore, 0);
         Literal           literal           = this.ltlSaleCount;
         num          = productBrowseInfo.SaleCount;
         literal.Text = num.ToString();
         if (productBrowseInfo.Product == null)
         {
             this.hidden_IsOver.Value = "pullOff";
         }
         else if (!productBrowseInfo.Product.SaleStatus.Equals(ProductSaleStatus.OnSale))
         {
             this.hidden_IsOver.Value = "pullOff";
         }
         if (productBrowseInfo.Product == null || groupBuy == null)
         {
             this.Page.Response.Redirect("/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该件商品参与的团购活动已经结束;或已被管理员删除"));
         }
         else
         {
             if (groupBuy != null)
             {
                 if (groupBuy.Status != GroupBuyStatus.UnderWay)
                 {
                     this.Page.Response.Redirect("/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该团购活动已经结束"));
                     return;
                 }
                 HtmlInputHidden htmlInputHidden2 = this.hidden_productId;
                 num = groupBuy.ProductId;
                 htmlInputHidden2.Value = num.ToString();
                 if (groupBuy.StartDate > DateTime.Now)
                 {
                     this.hidden_IsOver.Value = "AboutToBegin";
                 }
                 else if (groupBuy.EndDate < DateTime.Now)
                 {
                     this.hidden_IsOver.Value = "over";
                 }
             }
             Literal literal2 = this.ltlConsultation;
             num           = productBrowseInfo.ConsultationCount;
             literal2.Text = num.ToString();
             Literal literal3 = this.ltlReviewCount;
             num           = productBrowseInfo.ReviewCount;
             literal3.Text = num.ToString();
             IEnumerable value = from item in productBrowseInfo.Product.Skus
                                 select item.Value;
             if (JsonConvert.SerializeObject(productBrowseInfo.DbSKUs) != null)
             {
                 this.hidden_skuItem.Value = JsonConvert.SerializeObject(productBrowseInfo.DbSKUs);
             }
             if (this.hidden_skus != null)
             {
                 this.hidden_skus.Value = JsonConvert.SerializeObject(value);
             }
             this.LoadPageSearch(productBrowseInfo.Product);
             this.LoadProductInfo(productBrowseInfo.Product, productBrowseInfo.BrandName);
             this.LoadProductGroupBuyInfo(groupBuy);
             this.btnOrder.Stock = productBrowseInfo.Product.Stock;
             BrowsedProductQueue.EnQueue(groupBuy.ProductId);
             this.images.ImageInfo = productBrowseInfo.Product;
             this.litContent.Text  = groupBuy.Content;
             if (productBrowseInfo.DbAttribute != null)
             {
                 this.rptExpandAttributes.DataSource = productBrowseInfo.DbAttribute;
                 this.rptExpandAttributes.DataBind();
             }
             if (productBrowseInfo.DbSKUs != null)
             {
                 this.skuSelector.ProductId  = groupBuy.ProductId;
                 this.skuSelector.DataSource = productBrowseInfo.DbSKUs;
             }
             if (productBrowseInfo.DBConsultations != null)
             {
                 this.consultations.DataSource = productBrowseInfo.DBConsultations;
                 this.consultations.DataBind();
             }
             if (productBrowseInfo.DbCorrelatives != null)
             {
                 this.correlative.DataSource = productBrowseInfo.DbCorrelatives;
                 this.correlative.DataBind();
             }
         }
     }
 }
Пример #17
0
 protected override void AttachChildControls()
 {
     if (!int.TryParse(base.GetParameter("articleId", false), out this.articleId))
     {
         base.GotoResourceNotFound();
     }
     this.litArticleAddedDate   = (FormatedTimeLabel)this.FindControl("litArticleAddedDate");
     this.litArticleContent     = (Literal)this.FindControl("litArticleContent");
     this.litArticleDescription = (Literal)this.FindControl("litArticleDescription");
     this.litArticleTitle       = (Literal)this.FindControl("litArticleTitle");
     this.lblFront      = (Label)this.FindControl("lblFront");
     this.lblNext       = (Label)this.FindControl("lblNext");
     this.lblFrontTitle = (Label)this.FindControl("lblFrontTitle");
     this.lblNextTitle  = (Label)this.FindControl("lblNextTitle");
     this.aFront        = (HtmlAnchor)this.FindControl("front");
     this.aNext         = (HtmlAnchor)this.FindControl("next");
     this.ariticlative  = (Common_ArticleRelative)this.FindControl("list_Common_ArticleRelative");
     if (!this.Page.IsPostBack)
     {
         ArticleInfo article = CommentBrowser.GetArticle(this.articleId);
         if (article?.IsRelease ?? false)
         {
             ArticleHelper.AddHits(this.articleId);
             PageTitle.AddSiteNameTitle(article.Title);
             if (!string.IsNullOrEmpty(article.Meta_Keywords))
             {
                 MetaTags.AddMetaKeywords(article.Meta_Keywords, HiContext.Current.Context);
             }
             if (!string.IsNullOrEmpty(article.Meta_Description))
             {
                 MetaTags.AddMetaDescription(article.Meta_Description, HiContext.Current.Context);
             }
             this.litArticleTitle.Text       = article.Title;
             this.litArticleDescription.Text = article.Description;
             string str = HiContext.Current.HostPath + base.GetRouteUrl("ArticleDetails", new
             {
                 this.articleId
             });
             this.litArticleContent.Text   = article.Content.Replace("href=\"#\"", "href=\"" + str + "\"");
             this.litArticleAddedDate.Time = article.AddedDate;
             ArticleInfo frontOrNextArticle = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Front", article.CategoryId);
             if (frontOrNextArticle != null && frontOrNextArticle.ArticleId > 0)
             {
                 if (this.lblFront != null)
                 {
                     this.lblFront.Visible = true;
                     this.aFront.HRef      = base.GetRouteUrl("ArticleDetails", new
                     {
                         articleId = frontOrNextArticle.ArticleId
                     });
                     this.lblFrontTitle.Text = frontOrNextArticle.Title;
                 }
             }
             else if (this.lblFront != null)
             {
                 this.lblFront.Visible = false;
             }
             ArticleInfo frontOrNextArticle2 = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Next", article.CategoryId);
             if (frontOrNextArticle2 != null && frontOrNextArticle2.ArticleId > 0)
             {
                 if (this.lblNext != null)
                 {
                     this.lblNext.Visible = true;
                     this.aNext.HRef      = base.GetRouteUrl("ArticleDetails", new
                     {
                         articleId = frontOrNextArticle2.ArticleId
                     });
                     this.lblNextTitle.Text = frontOrNextArticle2.Title;
                 }
             }
             else if (this.lblNext != null)
             {
                 this.lblNext.Visible = false;
             }
             this.ariticlative.DataSource = CommentBrowser.GetArticlProductList(this.articleId);
             this.ariticlative.DataBind();
         }
     }
 }
Пример #18
0
 protected override void AttachChildControls()
 {
     if (!int.TryParse(base.GetParameter("AfficheId", false), out this.affichesId))
     {
         base.GotoResourceNotFound();
     }
     this.litAffichesAddedDate = (FormatedTimeLabel)this.FindControl("litAffichesAddedDate");
     this.litContent           = (Literal)this.FindControl("litContent");
     this.litTilte             = (Literal)this.FindControl("litTilte");
     this.lblFront             = (Label)this.FindControl("lblFront");
     this.lblNext       = (Label)this.FindControl("lblNext");
     this.aFront        = (HtmlAnchor)this.FindControl("front");
     this.aNext         = (HtmlAnchor)this.FindControl("next");
     this.lblFrontTitle = (Label)this.FindControl("lblFrontTitle");
     this.lblNextTitle  = (Label)this.FindControl("lblNextTitle");
     if (!this.Page.IsPostBack)
     {
         AfficheInfo affiche = CommentBrowser.GetAffiche(this.affichesId);
         if (affiche != null)
         {
             PageTitle.AddSiteNameTitle(affiche.Title);
             this.litTilte.Text = affiche.Title;
             string str = HiContext.Current.HostPath + base.GetRouteUrl("AffichesDetails", new
             {
                 afficheId = this.affichesId
             });
             this.litContent.Text           = affiche.Content.Replace("href=\"#\"", "href=\"" + str + "\"");
             this.litAffichesAddedDate.Time = affiche.AddedDate;
             AfficheInfo frontOrNextAffiche  = CommentBrowser.GetFrontOrNextAffiche(this.affichesId, "Front");
             AfficheInfo frontOrNextAffiche2 = CommentBrowser.GetFrontOrNextAffiche(this.affichesId, "Next");
             if (frontOrNextAffiche != null && frontOrNextAffiche.AfficheId > 0)
             {
                 if (this.lblFront != null)
                 {
                     this.lblFront.Visible = true;
                     this.aFront.HRef      = base.GetRouteUrl("AffichesDetails", new
                     {
                         afficheId = frontOrNextAffiche.AfficheId
                     });
                     this.lblFrontTitle.Text = frontOrNextAffiche.Title;
                 }
             }
             else if (this.lblFront != null)
             {
                 this.lblFront.Visible = false;
             }
             if (frontOrNextAffiche2 != null && frontOrNextAffiche2.AfficheId > 0)
             {
                 if (this.lblNext != null)
                 {
                     this.lblNext.Visible = true;
                     this.aNext.HRef      = base.GetRouteUrl("AffichesDetails", new
                     {
                         afficheId = frontOrNextAffiche2.AfficheId
                     });
                     this.lblNextTitle.Text = frontOrNextAffiche2.Title;
                 }
             }
             else if (this.lblNext != null)
             {
                 this.lblNext.Visible = false;
             }
         }
     }
 }
Пример #19
0
 protected override void AttachChildControls()
 {
     if (!int.TryParse(this.Page.Request.QueryString["articleId"], out this.articleId))
     {
         base.GotoResourceNotFound("");
     }
     this.txtCatgoryId          = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("txtCatgoryId");
     this.litArticleAddedDate   = (FormatedTimeLabel)this.FindControl("litArticleAddedDate");
     this.litArticleContent     = (System.Web.UI.WebControls.Literal) this.FindControl("litArticleContent");
     this.litArticleDescription = (System.Web.UI.WebControls.Literal) this.FindControl("litArticleDescription");
     this.litArticleTitle       = (System.Web.UI.WebControls.Literal) this.FindControl("litArticleTitle");
     this.lblFront      = (System.Web.UI.WebControls.Label) this.FindControl("lblFront");
     this.lblNext       = (System.Web.UI.WebControls.Label) this.FindControl("lblNext");
     this.lblFrontTitle = (System.Web.UI.WebControls.Label) this.FindControl("lblFrontTitle");
     this.lblNextTitle  = (System.Web.UI.WebControls.Label) this.FindControl("lblNextTitle");
     this.aFront        = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("front");
     this.aNext         = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("next");
     this.ariticlative  = (Common_ArticleRelative)this.FindControl("list_Common_ArticleRelative");
     if (!this.Page.IsPostBack)
     {
         ArticleInfo article = CommentBrowser.GetArticle(this.articleId);
         if (article != null && article.IsRelease)
         {
             if (this.txtCatgoryId != null)
             {
                 this.txtCatgoryId.Value = article.CategoryId.ToString();
             }
             PageTitle.AddSiteNameTitle(article.Title);
             if (!string.IsNullOrEmpty(article.MetaKeywords))
             {
                 MetaTags.AddMetaKeywords(article.MetaKeywords, HiContext.Current.Context);
             }
             if (!string.IsNullOrEmpty(article.MetaDescription))
             {
                 MetaTags.AddMetaDescription(article.MetaDescription, HiContext.Current.Context);
             }
             this.litArticleTitle.Text       = article.Title;
             this.litArticleDescription.Text = article.Description;
             string str = HiContext.Current.HostPath + Globals.GetSiteUrls().UrlData.FormatUrl("ArticleDetails", new object[]
             {
                 this.articleId
             });
             this.litArticleContent.Text   = article.Content.Replace("href=\"#\"", "href=\"" + str + "\"");
             this.litArticleAddedDate.Time = article.AddedDate;
             ArticleInfo frontOrNextArticle = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Front", article.CategoryId);
             if (frontOrNextArticle != null && frontOrNextArticle.ArticleId > 0)
             {
                 if (this.lblFront != null)
                 {
                     this.lblFront.Visible   = true;
                     this.aFront.HRef        = "/WapShop/ArticleDetails.aspx?ArticleId=" + frontOrNextArticle.ArticleId;
                     this.lblFrontTitle.Text = frontOrNextArticle.Title;
                 }
             }
             else
             {
                 if (this.lblFront != null)
                 {
                     this.lblFront.Visible = false;
                 }
             }
             ArticleInfo frontOrNextArticle2 = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Next", article.CategoryId);
             if (frontOrNextArticle2 != null && frontOrNextArticle2.ArticleId > 0)
             {
                 if (this.lblNext != null)
                 {
                     this.lblNext.Visible   = true;
                     this.aNext.HRef        = "/WapShop/ArticleDetails.aspx?ArticleId=" + frontOrNextArticle2.ArticleId;
                     this.lblNextTitle.Text = frontOrNextArticle2.Title;
                     return;
                 }
             }
             else
             {
                 if (this.lblNext != null)
                 {
                     this.lblNext.Visible = false;
                 }
             }
         }
     }
 }
 protected override void AttachChildControls()
 {
     if (!int.TryParse(base.GetParameter("countDownId", false), out this.countDownId))
     {
         base.GotoResourceNotFound();
     }
     this.common_Location         = (Common_Location)this.FindControl("common_Location");
     this.litProductCode          = (Literal)this.FindControl("litProductCode");
     this.litProductName          = (Literal)this.FindControl("litProductName");
     this.lblSku                  = (SkuLabel)this.FindControl("lblSku");
     this.lblStock                = (StockLabel)this.FindControl("lblStock");
     this.litUnit                 = (Literal)this.FindControl("litUnit");
     this.litSurplusNumber        = (Literal)this.FindControl("litSurplusNumber");
     this.litWeight               = (Label)this.FindControl("litWeight");
     this.litBrosedNum            = (Literal)this.FindControl("litBrosedNum");
     this.litBrand                = (Literal)this.FindControl("litBrand");
     this.litmaxcount             = (Literal)this.FindControl("litMaxCount");
     this.lblSalePrice            = (FormatedMoneyLabel)this.FindControl("lblSalePrice");
     this.lblTotalPrice           = (TotalLabel)this.FindControl("lblTotalPrice");
     this.litDescription          = (Literal)this.FindControl("litDescription");
     this.litShortDescription     = (Literal)this.FindControl("litShortDescription");
     this.btnOrder                = (BuyButton)this.FindControl("btnOrder");
     this.hpkProductConsultations = (HyperLink)this.FindControl("hpkProductConsultations");
     this.ltlSaleCount            = (Literal)this.FindControl("ltlSaleCount");
     this.ltlConsultation         = (Literal)this.FindControl("ltlConsultation");
     this.ltlReviewCount          = (Literal)this.FindControl("ltlReviewCount");
     this.lblCurrentSalePrice     = (FormatedMoneyLabel)this.FindControl("lblCurrentSalePrice");
     this.litContent              = (Literal)this.FindControl("litContent");
     this.lblEndTime              = (FormatedTimeLabel)this.FindControl("lblEndTime");
     this.lblStartTime            = (FormatedTimeLabel)this.FindControl("lblStartTime");
     this.litRemainTime           = (Literal)this.FindControl("litRemainTime");
     this.images                  = (Common_ProductImages)this.FindControl("common_ProductImages");
     this.rptExpandAttributes     = (ThemedTemplatedRepeater)this.FindControl("rptExpandAttributes");
     this.skuSelector             = (SKUSelector)this.FindControl("SKUSelector");
     this.consultations           = (Common_ProductConsultations)this.FindControl("list_Common_ProductConsultations");
     this.correlative             = (Common_GoodsList_Correlative)this.FindControl("list_Common_GoodsList_Correlative");
     this.nowTime                 = (HtmlInputHidden)this.FindControl("nowTime");
     this.nowTime.SetWhenIsNotNull(DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss", DateTimeFormatInfo.InvariantInfo));
     this.hidden_skus        = (HtmlInputHidden)this.FindControl("hidden_skus");
     this.hidden_skuItem     = (HtmlInputHidden)this.FindControl("hidden_skuItem");
     this.hidden_IsOver      = (HtmlInputHidden)this.FindControl("hidden_IsOver");
     this.hidden_CountDownId = (HtmlInputHidden)this.FindControl("hidden_CountDownId");
     this.hidden_productId   = (HtmlInputHidden)this.FindControl("hidden_productId");
     this.hdShareDetails     = (HtmlInputHidden)this.FindControl("hdShareDetails");
     this.hdShareIcon        = (HtmlInputHidden)this.FindControl("hdShareIcon");
     this.hdShareTitle       = (HtmlInputHidden)this.FindControl("hdShareTitle");
     if (!this.Page.IsPostBack)
     {
         CountDownInfo countDownInfo  = PromoteHelper.GetCountDownInfo(this.countDownId, 0);
         SiteSettings  masterSettings = SettingsManager.GetMasterSettings();
         if (countDownInfo != null)
         {
             HtmlInputHidden htmlInputHidden = this.hidden_CountDownId;
             int             num             = countDownInfo.CountDownId;
             htmlInputHidden.Value = num.ToString();
             HtmlInputHidden htmlInputHidden2 = this.hidden_productId;
             num = countDownInfo.ProductId;
             htmlInputHidden2.Value = num.ToString();
             int num2 = 0;
             ProductBrowseInfo productBrowseInfo = ProductBrowser.GetProductBrowseInfo(countDownInfo.ProductId, null, masterSettings.OpenMultStore, 0);
             Literal           literal           = this.ltlReviewCount;
             num          = productBrowseInfo.ReviewCount;
             literal.Text = num.ToString();
             Literal literal2 = this.ltlSaleCount;
             num           = productBrowseInfo.SaleCount;
             literal2.Text = num.ToString();
             if (productBrowseInfo.Product == null)
             {
                 this.hidden_IsOver.Value = "pullOff";
             }
             else if (!productBrowseInfo.Product.SaleStatus.Equals(ProductSaleStatus.OnSale))
             {
                 this.hidden_IsOver.Value = "pullOff";
             }
             if (!string.IsNullOrEmpty(countDownInfo.ShareDetails))
             {
                 HtmlInputHidden htmlInputHidden3 = this.hdShareDetails;
                 htmlInputHidden3.Value += countDownInfo.ShareDetails;
             }
             else if (!string.IsNullOrEmpty(countDownInfo.Content))
             {
                 this.hdShareDetails.Value = "限时抢购简单说明:";
                 HtmlInputHidden htmlInputHidden4 = this.hdShareDetails;
                 htmlInputHidden4.Value += countDownInfo.Content;
             }
             else
             {
                 this.hdShareDetails.Value = "限时抢购简单说明:";
             }
             Literal literal3 = this.ltlConsultation;
             num                     = productBrowseInfo.ConsultationCount;
             literal3.Text           = num.ToString();
             this.hdShareIcon.Value  = Globals.FullPath(countDownInfo.ShareIcon);
             this.hdShareTitle.Value = countDownInfo.ShareTitle;
             if (countDownInfo.StartDate > DateTime.Now)
             {
                 this.hidden_IsOver.Value = "AboutToBegin";
             }
             else if (countDownInfo.EndDate < DateTime.Now)
             {
                 this.hidden_IsOver.Value = "over";
             }
             else if (!countDownInfo.IsRunning)
             {
                 this.hidden_IsOver.Value = "true";
             }
             num2 = PromoteHelper.GetCountDownSurplusNumber(this.countDownId);
             num2 = ((num2 >= 0) ? num2 : 0);
             this.litSurplusNumber.Text = num2.ToString();
             Dictionary <string, SKUItem> dictionary = new Dictionary <string, SKUItem>();
             foreach (SKUItem value2 in productBrowseInfo.Product.Skus.Values)
             {
                 CountDownSkuInfo countDownSkuInfo = (from c in countDownInfo.CountDownSkuInfo
                                                      where c.SkuId == value2.SkuId
                                                      select c).FirstOrDefault();
                 if (countDownSkuInfo != null)
                 {
                     value2.Stock = ((value2.Stock < countDownSkuInfo.ActivityTotal - countDownSkuInfo.BoughtCount) ? value2.Stock : (countDownSkuInfo.ActivityTotal - countDownSkuInfo.BoughtCount));
                 }
                 dictionary.Add(value2.SkuId, value2);
             }
             IEnumerable value = from item in dictionary
                                 select item.Value;
             if (JsonConvert.SerializeObject(productBrowseInfo.DbSKUs) != null)
             {
                 this.hidden_skuItem.Value = JsonConvert.SerializeObject(productBrowseInfo.DbSKUs);
             }
             if (this.hidden_skus != null)
             {
                 this.hidden_skus.Value = JsonConvert.SerializeObject(value);
             }
             this.LoadPageSearch(productBrowseInfo.Product);
             this.hpkProductConsultations.Target      = "_blank";
             this.hpkProductConsultations.Text        = "查看全部";
             this.hpkProductConsultations.NavigateUrl = $"ProductConsultationsAndReplay.aspx?productId={countDownInfo.ProductId}";
             this.LoadProductInfo(productBrowseInfo.Product, productBrowseInfo.BrandName);
             this.LoadCountDownBuyInfo(countDownInfo);
             this.btnOrder.Stock = productBrowseInfo.Product.Stock;
             if (!countDownInfo.IsJoin)
             {
                 this.hidden_IsOver.Value = "nojoin";
             }
             BrowsedProductQueue.EnQueue(countDownInfo.ProductId);
             this.images.ImageInfo = productBrowseInfo.Product;
             if (productBrowseInfo.DbAttribute != null)
             {
                 this.rptExpandAttributes.DataSource = productBrowseInfo.DbAttribute;
                 this.rptExpandAttributes.DataBind();
             }
             if (productBrowseInfo.DbSKUs != null)
             {
                 this.skuSelector.ProductId  = countDownInfo.ProductId;
                 this.skuSelector.DataSource = productBrowseInfo.DbSKUs;
             }
             if (productBrowseInfo.DBConsultations != null)
             {
                 this.consultations.DataSource = productBrowseInfo.DBConsultations;
                 this.consultations.DataBind();
             }
             if (productBrowseInfo.DbCorrelatives != null)
             {
                 this.correlative.DataSource = productBrowseInfo.DbCorrelatives;
                 this.correlative.DataBind();
             }
         }
         else
         {
             base.GotoResourceNotFound();
         }
     }
 }
Пример #21
0
        protected override void AttachChildControls()
        {
            if (!int.TryParse(this.Page.Request.QueryString["articleId"], out this.articleId))
            {
                base.GotoResourceNotFound("");
            }
            this.hdAppId               = (HtmlInputHidden)this.FindControl("hdAppId");
            this.hdTitle               = (HtmlInputHidden)this.FindControl("hdTitle");
            this.hdDesc                = (HtmlInputHidden)this.FindControl("hdDesc");
            this.hdImgUrl              = (HtmlInputHidden)this.FindControl("hdImgUrl");
            this.hdLink                = (HtmlInputHidden)this.FindControl("hdLink");
            this.txtCatgoryId          = (HtmlInputHidden)this.FindControl("txtCatgoryId");
            this.litArticleAddedDate   = (FormatedTimeLabel)this.FindControl("litArticleAddedDate");
            this.litArticleContent     = (Literal)this.FindControl("litArticleContent");
            this.litArticleDescription = (Literal)this.FindControl("litArticleDescription");
            this.litArticleTitle       = (Literal)this.FindControl("litArticleTitle");
            this.lblFront              = (Label)this.FindControl("lblFront");
            this.lblNext               = (Label)this.FindControl("lblNext");
            this.lblFrontTitle         = (Label)this.FindControl("lblFrontTitle");
            this.lblNextTitle          = (Label)this.FindControl("lblNextTitle");
            this.aFront                = (HtmlAnchor)this.FindControl("front");
            this.aNext        = (HtmlAnchor)this.FindControl("next");
            this.ariticlative = (Common_ArticleRelative)this.FindControl("list_Common_ArticleRelative");
            SiteSettings siteSettings = HiContext.Current.SiteSettings;

            this.hdAppId.Value = siteSettings.WeixinAppId;
            if (!this.Page.IsPostBack)
            {
                ArticleInfo article = CommentBrowser.GetArticle(this.articleId);
                if (article?.IsRelease ?? false)
                {
                    this.hdDesc.Value   = (string.IsNullOrEmpty(article.Description) ? article.Title : article.Title);
                    this.hdImgUrl.Value = (string.IsNullOrEmpty(article.IconUrl) ? Globals.FullPath(siteSettings.DefaultProductImage) : (article.IconUrl.Contains("http://") ? article.IconUrl : ("http://" + HttpContext.Current.Request.Url.Host + article.IconUrl)));
                    this.hdLink.Value   = Globals.FullPath(HttpContext.Current.Request.Url.ToString());
                    this.hdTitle.Value  = article.Title;
                    ArticleHelper.AddHits(this.articleId);
                    if (this.txtCatgoryId != null)
                    {
                        this.txtCatgoryId.Value = article.CategoryId.ToString();
                    }
                    PageTitle.AddSiteNameTitle(article.Title);
                    if (!string.IsNullOrEmpty(article.Meta_Keywords))
                    {
                        MetaTags.AddMetaKeywords(article.Meta_Keywords, HiContext.Current.Context);
                    }
                    if (!string.IsNullOrEmpty(article.Meta_Description))
                    {
                        MetaTags.AddMetaDescription(article.Meta_Description, HiContext.Current.Context);
                    }
                    this.litArticleTitle.Text       = article.Title;
                    this.litArticleDescription.Text = article.Description;
                    string str = HiContext.Current.HostPath + base.GetRouteUrl("ArticleDetails", new
                    {
                        this.articleId
                    });
                    this.litArticleContent.Text   = article.Content.Replace("href=\"#\"", "href=\"" + str + "\"");
                    this.litArticleAddedDate.Time = article.AddedDate;
                    ArticleInfo frontOrNextArticle = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Front", article.CategoryId);
                    if (frontOrNextArticle != null && frontOrNextArticle.ArticleId > 0)
                    {
                        if (this.lblFront != null)
                        {
                            this.lblFront.Visible   = true;
                            this.aFront.HRef        = "ArticleDetails.aspx?ArticleId=" + frontOrNextArticle.ArticleId;
                            this.lblFrontTitle.Text = frontOrNextArticle.Title;
                        }
                    }
                    else if (this.lblFront != null)
                    {
                        this.lblFront.Visible = false;
                    }
                    ArticleInfo frontOrNextArticle2 = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Next", article.CategoryId);
                    if (frontOrNextArticle2 != null && frontOrNextArticle2.ArticleId > 0)
                    {
                        if (this.lblNext != null)
                        {
                            this.lblNext.Visible   = true;
                            this.aNext.HRef        = "ArticleDetails.aspx?ArticleId=" + frontOrNextArticle2.ArticleId;
                            this.lblNextTitle.Text = frontOrNextArticle2.Title;
                        }
                    }
                    else if (this.lblNext != null)
                    {
                        this.lblNext.Visible = false;
                    }
                }
            }
        }
 protected override void AttachChildControls()
 {
     this.orderId             = this.Page.Request.QueryString["orderId"];
     this.litOrderId          = (Literal)this.FindControl("litOrderId");
     this.lbltotalPrice       = (FormatedMoneyLabel)this.FindControl("lbltotalPrice");
     this.litAddDate          = (FormatedTimeLabel)this.FindControl("litAddDate");
     this.lblOrderStatus      = (OrderStatusLabel)this.FindControl("lblOrderStatus");
     this.litCloseReason      = (Literal)this.FindControl("litCloseReason");
     this.litRemark           = (Literal)this.FindControl("litRemark");
     this.litShipTo           = (Literal)this.FindControl("litShipTo");
     this.litRegion           = (Literal)this.FindControl("litRegion");
     this.litAddress          = (Literal)this.FindControl("litAddress");
     this.litZipcode          = (Literal)this.FindControl("litZipcode");
     this.litEmail            = (Literal)this.FindControl("litEmail");
     this.litPhone            = (Literal)this.FindControl("litPhone");
     this.litTellPhone        = (Literal)this.FindControl("litTellPhone");
     this.litShipToDate       = (Literal)this.FindControl("litShipToDate");
     this.litUserName         = (Literal)this.FindControl("litUserName");
     this.litUserAddress      = (Literal)this.FindControl("litUserAddress");
     this.litUserEmail        = (Literal)this.FindControl("litUserEmail");
     this.litUserPhone        = (Literal)this.FindControl("litUserPhone");
     this.litUserTellPhone    = (Literal)this.FindControl("litUserTellPhone");
     this.litUserQQ           = (Literal)this.FindControl("litUserQQ");
     this.litUserMSN          = (Literal)this.FindControl("litUserMSN");
     this.litPaymentType      = (Literal)this.FindControl("litPaymentType");
     this.litModeName         = (Literal)this.FindControl("litModeName");
     this.plOrderSended       = (Panel)this.FindControl("plOrderSended");
     this.litRealModeName     = (Literal)this.FindControl("litRealModeName");
     this.litShippNumber      = (Literal)this.FindControl("litShippNumber");
     this.litDiscountName     = (HyperLink)this.FindControl("litDiscountName");
     this.lblAdjustedDiscount = (FormatedMoneyLabel)this.FindControl("lblAdjustedDiscount");
     this.litFreeName         = (HyperLink)this.FindControl("litFreeName");
     this.plExpress           = (Panel)this.FindControl("plExpress");
     this.power                      = (HtmlAnchor)this.FindControl("power");
     this.orderItems                 = (Common_OrderManage_OrderItems)this.FindControl("Common_OrderManage_OrderItems");
     this.grdOrderGift               = (GridView)this.FindControl("grdOrderGift");
     this.plOrderGift                = (Panel)this.FindControl("plOrderGift");
     this.lblCartMoney               = (FormatedMoneyLabel)this.FindControl("lblCartMoney");
     this.lblBundlingPrice           = (Literal)this.FindControl("lblBundlingPrice");
     this.litPoints                  = (Literal)this.FindControl("litPoints");
     this.litSentTimesPointPromotion = (HyperLink)this.FindControl("litSentTimesPointPromotion");
     this.litWeight                  = (Literal)this.FindControl("litWeight");
     this.litFree                    = (Literal)this.FindControl("litFree");
     this.lblFreight                 = (FormatedMoneyLabel)this.FindControl("lblFreight");
     this.lblPayCharge               = (FormatedMoneyLabel)this.FindControl("lblPayCharge");
     this.litCouponValue             = (Literal)this.FindControl("litCouponValue");
     this.lblDiscount                = (FormatedMoneyLabel)this.FindControl("lblDiscount");
     this.litTotalPrice              = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
     this.lblRefundTotal             = (FormatedMoneyLabel)this.FindControl("lblRefundTotal");
     this.lbRefundMoney              = (Label)this.FindControl("lbRefundMoney");
     this.plRefund                   = (Panel)this.FindControl("plRefund");
     this.lblTotalBalance            = (FormatedMoneyLabel)this.FindControl("lblTotalBalance");
     this.litRefundOrderRemark       = (Literal)this.FindControl("litRefundOrderRemark");
     this.litTax                     = (FormatedMoneyLabel)this.FindControl("litTax");
     this.litInvoiceTitle            = (Literal)this.FindControl("litInvoiceTitle");
     PageTitle.AddTitle("订单详细页", HiContext.Current.Context);
     if (!this.Page.IsPostBack)
     {
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         if ((orderInfo == null) || (orderInfo.UserId != HiContext.Current.User.UserId))
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该订单不存在或者不属于当前用户的订单"));
         }
         else
         {
             this.BindOrderBase(orderInfo);
             this.BindOrderAddress(orderInfo);
             this.BindOrderItems(orderInfo);
             this.BindOrderRefund(orderInfo);
             this.BindOrderReturn(orderInfo);
         }
     }
 }
Пример #23
0
 protected override void AttachChildControls()
 {
     if (!int.TryParse(this.Page.Request.QueryString["helpId"], out this.helpId))
     {
         base.GotoResourceNotFound();
     }
     this.litHelpAddedDate   = (FormatedTimeLabel)this.FindControl("litHelpAddedDate");
     this.litHelpDescription = (System.Web.UI.WebControls.Literal) this.FindControl("litHelpDescription");
     this.litHelpContent     = (System.Web.UI.WebControls.Literal) this.FindControl("litHelpContent");
     this.litHelpTitle       = (System.Web.UI.WebControls.Literal) this.FindControl("litHelpTitle");
     this.lblFront           = (System.Web.UI.WebControls.Label) this.FindControl("lblFront");
     this.lblNext            = (System.Web.UI.WebControls.Label) this.FindControl("lblNext");
     this.lblFrontTitle      = (System.Web.UI.WebControls.Label) this.FindControl("lblFrontTitle");
     this.lblNextTitle       = (System.Web.UI.WebControls.Label) this.FindControl("lblNextTitle");
     this.aFront             = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("front");
     this.aNext = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("next");
     if (!this.Page.IsPostBack)
     {
         HelpInfo help = CommentBrowser.GetHelp(this.helpId);
         if (help != null)
         {
             PageTitle.AddSiteNameTitle(help.Title);
             if (!string.IsNullOrEmpty(help.MetaKeywords))
             {
                 MetaTags.AddMetaKeywords(help.MetaKeywords, HiContext.Current.Context);
             }
             if (!string.IsNullOrEmpty(help.MetaDescription))
             {
                 MetaTags.AddMetaDescription(help.MetaDescription, HiContext.Current.Context);
             }
             this.litHelpTitle.Text       = help.Title;
             this.litHelpDescription.Text = help.Description;
             string str = HiContext.Current.HostPath + Globals.GetSiteUrls().UrlData.FormatUrl("HelpDetails", new object[]
             {
                 this.helpId
             });
             this.litHelpContent.Text   = help.Content.Replace("href=\"#\"", "href=\"" + str + "\"");
             this.litHelpAddedDate.Time = help.AddedDate;
             HelpInfo frontOrNextHelp = CommentBrowser.GetFrontOrNextHelp(this.helpId, help.CategoryId, "Front");
             if (frontOrNextHelp != null && frontOrNextHelp.HelpId > 0)
             {
                 if (this.lblFront != null)
                 {
                     this.lblFront.Visible   = true;
                     this.aFront.HRef        = "HelpDetails.aspx?helpId=" + frontOrNextHelp.HelpId;
                     this.lblFrontTitle.Text = frontOrNextHelp.Title;
                 }
             }
             else
             {
                 if (this.lblFront != null)
                 {
                     this.lblFront.Visible = false;
                 }
             }
             HelpInfo frontOrNextHelp2 = CommentBrowser.GetFrontOrNextHelp(this.helpId, help.CategoryId, "Next");
             if (frontOrNextHelp2 != null && frontOrNextHelp2.HelpId > 0)
             {
                 if (this.lblNext != null)
                 {
                     this.lblNext.Visible   = true;
                     this.aNext.HRef        = "HelpDetails.aspx?helpId=" + frontOrNextHelp2.HelpId;
                     this.lblNextTitle.Text = frontOrNextHelp2.Title;
                     return;
                 }
             }
             else
             {
                 if (this.lblNext != null)
                 {
                     this.lblNext.Visible = false;
                 }
             }
         }
     }
 }
Пример #24
0
 protected override void AttachChildControls()
 {
     this.orderId             = this.Page.Request.QueryString["orderId"];
     this.litOrderId          = (Literal)this.FindControl("litOrderId");
     this.lbltotalPrice       = (FormatedMoneyLabel)this.FindControl("lbltotalPrice");
     this.litAddDate          = (FormatedTimeLabel)this.FindControl("litAddDate");
     this.lblOrderStatus      = (OrderStatusLabel)this.FindControl("lblOrderStatus");
     this.litCloseReason      = (Literal)this.FindControl("litCloseReason");
     this.litRemark           = (Literal)this.FindControl("litRemark");
     this.litShipTo           = (Literal)this.FindControl("litShipTo");
     this.litRegion           = (Literal)this.FindControl("litRegion");
     this.litAddress          = (Literal)this.FindControl("litAddress");
     this.litZipcode          = (Literal)this.FindControl("litZipcode");
     this.litEmail            = (Literal)this.FindControl("litEmail");
     this.litPhone            = (Literal)this.FindControl("litPhone");
     this.litTellPhone        = (Literal)this.FindControl("litTellPhone");
     this.litUserName         = (Literal)this.FindControl("litUserName");
     this.litUserAddress      = (Literal)this.FindControl("litUserAddress");
     this.litUserEmail        = (Literal)this.FindControl("litUserEmail");
     this.litUserPhone        = (Literal)this.FindControl("litUserPhone");
     this.litUserTellPhone    = (Literal)this.FindControl("litUserTellPhone");
     this.litUserQQ           = (Literal)this.FindControl("litUserQQ");
     this.litUserMSN          = (Literal)this.FindControl("litUserMSN");
     this.litPaymentType      = (Literal)this.FindControl("litPaymentType");
     this.litModeName         = (Literal)this.FindControl("litModeName");
     this.plOrderOption       = (Panel)this.FindControl("plOrderOption");
     this.grdOrderOption      = (GridView)this.FindControl("grdOrderOption");
     this.plOrderSended       = (Panel)this.FindControl("plOrderSended");
     this.litRealModeName     = (Literal)this.FindControl("litRealModeName");
     this.litShippNumber      = (Literal)this.FindControl("litShippNumber");
     this.litDiscountName     = (HyperLink)this.FindControl("litDiscountName");
     this.lblAdjustedDiscount = (FormatedMoneyLabel)this.FindControl("lblAdjustedDiscount");
     this.litFreeName         = (HyperLink)this.FindControl("litFreeName");
     this.plExpress           = (Panel)this.FindControl("plExpress");
     this.power                = (HtmlAnchor)this.FindControl("power");
     this.orderItems           = (Common_OrderManage_OrderItems)this.FindControl("Common_OrderManage_OrderItems");
     this.grdOrderGift         = (GridView)this.FindControl("grdOrderGift");
     this.plOrderGift          = (Panel)this.FindControl("plOrderGift");
     this.lblCartMoney         = (FormatedMoneyLabel)this.FindControl("lblCartMoney");
     this.litPoints            = (Literal)this.FindControl("litPoints");
     this.litWeight            = (Literal)this.FindControl("litWeight");
     this.litFree              = (Literal)this.FindControl("litFree");
     this.lblFreight           = (FormatedMoneyLabel)this.FindControl("lblFreight");
     this.lblPayCharge         = (FormatedMoneyLabel)this.FindControl("lblPayCharge");
     this.lblOptionPrice       = (FormatedMoneyLabel)this.FindControl("lblOptionPrice");
     this.litCouponValue       = (Literal)this.FindControl("litCouponValue");
     this.lblDiscount          = (FormatedMoneyLabel)this.FindControl("lblDiscount");
     this.litTotalPrice        = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
     this.plRefund             = (Panel)this.FindControl("plRefund");
     this.lblTotalBalance      = (FormatedMoneyLabel)this.FindControl("lblTotalBalance");
     this.litRefundOrderRemark = (Literal)this.FindControl("litRefundOrderRemark");
     PageTitle.AddTitle("订单详细页", HiContext.Current.Context);
     if (!this.Page.IsPostBack)
     {
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         this.BindOrderBase(orderInfo);
         this.BindOrderAddress(orderInfo);
         this.BindOrderItems(orderInfo);
         this.BindOrderRefund(orderInfo);
     }
 }