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);
     }
 }
 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.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);
         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);
     }
 }
 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();
     }
 }