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       = (Literal)this.FindControl("litWeight");
     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.btnRefer        = ButtonManager.Create(this.FindControl("btnRefer"));
     this.btnRefer.Click += new EventHandler(this.btnRefer_Click);
     if (!this.Page.IsPostBack && ((HiContext.Current.User.UserRole == UserRole.Member) || (HiContext.Current.User.UserRole == UserRole.Underling)))
     {
         this.btnRefer.Text = "提交评论";
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         this.BindOrderItems(orderInfo);
         this.BindOrderBase(orderInfo);
     }
 }
Esempio n. 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 = (Literal) this.FindControl("litWeight");
     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.btnRefer = ButtonManager.Create(this.FindControl("btnRefer"));
     this.btnRefer.Click += new EventHandler(this.btnRefer_Click);
     if (!this.Page.IsPostBack && ((HiContext.Current.User.UserRole == UserRole.Member) || (HiContext.Current.User.UserRole == UserRole.Underling)))
     {
         this.btnRefer.Text = "提交评论";
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         this.BindOrderItems(orderInfo);
         this.BindOrderBase(orderInfo);
     }
 }