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