protected override void AttachChildControls()
 {
     this.batchbuys           = (Common_BatchBuy_ProductList)this.FindControl("Common_BatchBuy_ProductList");
     this.btnBatchBuy         = ButtonManager.Create(this.FindControl("btnBatchBuy"));
     this.btnSearch           = ButtonManager.Create(this.FindControl("btnSearch"));
     this.dropBrandCategories = (BrandCategoriesDropDownList)this.FindControl("dropBrandCategories");
     this.ddlCategories       = (Common_CategoriesDropDownList)this.FindControl("ddlCategories");
     this.pager              = (Pager)this.FindControl("pager");
     this.txtProductName     = (TextBox)this.FindControl("txtProductName");
     this.txtProductCode     = (TextBox)this.FindControl("txtProductCode");
     this.btnBatchBuy.Click += new EventHandler(this.btnBatchBuy_Click);
     this.btnSearch.Click   += new EventHandler(this.btnSearch_Click);
     if (!HiContext.Current.SiteSettings.IsOpenSiteSale && !HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         this.btnBatchBuy.Visible = false;
     }
     if (!this.Page.IsPostBack)
     {
         this.dropBrandCategories.DataBind();
         this.ddlCategories.DataBind();
         this.BindProducts();
     }
     CheckBoxColumn.RegisterClientCheckEvents(this.Page, this.Page.Form.ClientID);
 }
Beispiel #2
0
 protected override void AttachChildControls()
 {
     this.batchbuys = (Common_BatchBuy_ProductList) this.FindControl("Common_BatchBuy_ProductList");
     this.btnBatchBuy = ButtonManager.Create(this.FindControl("btnBatchBuy"));
     this.btnSearch = ButtonManager.Create(this.FindControl("btnSearch"));
     this.dropBrandCategories = (BrandCategoriesDropDownList) this.FindControl("dropBrandCategories");
     this.ddlCategories = (Common_CategoriesDropDownList) this.FindControl("ddlCategories");
     this.pager = (Pager) this.FindControl("pager");
     this.txtProductName = (TextBox) this.FindControl("txtProductName");
     this.txtProductCode = (TextBox) this.FindControl("txtProductCode");
     this.btnBatchBuy.Click += new EventHandler(this.btnBatchBuy_Click);
     this.btnSearch.Click += new EventHandler(this.btnSearch_Click);
     if (!HiContext.Current.SiteSettings.IsOpenSiteSale && !HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         this.btnBatchBuy.Visible = false;
     }
     if (!this.Page.IsPostBack)
     {
         this.dropBrandCategories.DataBind();
         this.ddlCategories.DataBind();
         this.BindProducts();
     }
     CheckBoxColumn.RegisterClientCheckEvents(this.Page, this.Page.Form.ClientID);
 }