Ejemplo n.º 1
0
 protected override void AttachChildControls()
 {
     this.calendarStartDate = (WebCalendar) this.FindControl("calendarStartDate");
     this.calendarEndDate = (WebCalendar) this.FindControl("calendarEndDate");
     this.txtOrderId = (TextBox) this.FindControl("txtOrderId");
     this.dropOrderStatus = (OrderStautsDropDownList) this.FindControl("dropOrderStatus");
     this.btnSearch = ButtonManager.Create(this.FindControl("btnSearch"));
     this.litOrderTotal = (Literal) this.FindControl("litOrderTotal");
     this.listOrders = (Common_OrderManage_OrderList) this.FindControl("Common_OrderManage_OrderList");
     this.pager = (Pager) this.FindControl("pager");
     this.btnSearch.Click += new EventHandler(this.lbtnSearch_Click);
     this.listOrders.ItemDataBound += new Common_OrderManage_OrderList.DataBindEventHandler(this.listOrders_ItemDataBound);
     this.listOrders.ItemCommand += new Common_OrderManage_OrderList.CommandEventHandler(this.listOrders_ItemCommand);
     this.listOrders.ReBindData += new Common_OrderManage_OrderList.ReBindDataEventHandler(this.listOrders_ReBindData);
     PageTitle.AddSiteNameTitle("我的订单", HiContext.Current.Context);
     if (!this.Page.IsPostBack)
     {
         this.BindOrders();
     }
 }
Ejemplo n.º 2
0
 protected override void AttachChildControls()
 {
     this.calendarStartDate         = (WebCalendar)this.FindControl("calendarStartDate");
     this.calendarEndDate           = (WebCalendar)this.FindControl("calendarEndDate");
     this.txtOrderId                = (TextBox)this.FindControl("txtOrderId");
     this.dropOrderStatus           = (OrderStautsDropDownList)this.FindControl("dropOrderStatus");
     this.btnSearch                 = ButtonManager.Create(this.FindControl("btnSearch"));
     this.litOrderTotal             = (Literal)this.FindControl("litOrderTotal");
     this.listOrders                = (Common_OrderManage_OrderList)this.FindControl("Common_OrderManage_OrderList");
     this.pager                     = (Pager)this.FindControl("pager");
     this.btnSearch.Click          += new EventHandler(this.lbtnSearch_Click);
     this.listOrders.ItemDataBound += new Common_OrderManage_OrderList.DataBindEventHandler(this.listOrders_ItemDataBound);
     this.listOrders.ItemCommand   += new Common_OrderManage_OrderList.CommandEventHandler(this.listOrders_ItemCommand);
     this.listOrders.ReBindData    += new Common_OrderManage_OrderList.ReBindDataEventHandler(this.listOrders_ReBindData);
     PageTitle.AddSiteNameTitle("我的订单", HiContext.Current.Context);
     if (!this.Page.IsPostBack)
     {
         this.BindOrders();
     }
 }
Ejemplo n.º 3
0
 protected override void AttachChildControls()
 {
     this.calendarStartDate          = (WebCalendar)this.FindControl("calendarStartDate");
     this.calendarEndDate            = (WebCalendar)this.FindControl("calendarEndDate");
     this.hdorderId                  = (HtmlInputHidden)this.FindControl("hdorderId");
     this.txtOrderId                 = (TextBox)this.FindControl("txtOrderId");
     this.txtShipId                  = (TextBox)this.FindControl("txtShipId");
     this.txtShipTo                  = (TextBox)this.FindControl("txtShipTo");
     this.txtRemark                  = (TextBox)this.FindControl("txtRemark");
     this.txtReturnRemark            = (TextBox)this.FindControl("txtReturnRemark");
     this.txtReplaceRemark           = (TextBox)this.FindControl("txtReplaceRemark");
     this.dropOrderStatus            = (OrderStautsDropDownList)this.FindControl("dropOrderStatus");
     this.dropPayType                = (DropDownList)this.FindControl("dropPayType");
     this.btnPay                     = ButtonManager.Create(this.FindControl("btnPay"));
     this.btnSearch                  = ButtonManager.Create(this.FindControl("btnSearch"));
     this.btnOk                      = ButtonManager.Create(this.FindControl("btnOk"));
     this.btnReturn                  = ButtonManager.Create(this.FindControl("btnReturn"));
     this.btnReplace                 = ButtonManager.Create(this.FindControl("btnReplace"));
     this.litOrderTotal              = (Literal)this.FindControl("litOrderTotal");
     this.dropRefundType             = (DropDownList)this.FindControl("dropRefundType");
     this.dropReturnRefundType       = (DropDownList)this.FindControl("dropReturnRefundType");
     this.listOrders                 = (Common_OrderManage_OrderList)this.FindControl("Common_OrderManage_OrderList");
     this.pager                      = (Pager)this.FindControl("pager");
     this.btnSearch.Click           += new EventHandler(this.lbtnSearch_Click);
     this.btnPay.Click              += new EventHandler(this.btnPay_Click);
     this.btnOk.Click               += new EventHandler(this.btnOk_Click);
     this.btnReturn.Click           += new EventHandler(this.btnReturn_Click);
     this.btnReplace.Click          += new EventHandler(this.btnReplace_Click);
     this.listOrders._ItemDataBound += new Common_OrderManage_OrderList.DataBindEventHandler(this.listOrders_ItemDataBound);
     this.listOrders._ItemCommand   += new Common_OrderManage_OrderList.CommandEventHandler(this.listOrders_ItemCommand);
     this.listOrders._ReBindData    += new Common_OrderManage_OrderList.ReBindDataEventHandler(this.listOrders_ReBindData);
     PageTitle.AddSiteNameTitle("我的订单", HiContext.Current.Context);
     if (!this.Page.IsPostBack)
     {
         this.dropPayType.DataSource     = TradeHelper.GetPaymentModes();
         this.dropPayType.DataTextField  = "Name";
         this.dropPayType.DataValueField = "ModeId";
         this.dropPayType.DataBind();
         this.BindOrders();
     }
 }