Ejemplo n.º 1
0
 private void LoadAllBrands()
 {
     dlBrands.Items.Clear();
     foreach (Brand brand in BM.Brands())
     {
         dlBrands.Items.Add(new ListItem(brand.BrandDescription, brand.BrandCode));
     }
 }
Ejemplo n.º 2
0
 private void InitializeBrandList()
 {
     DDLBrands.Items.Clear();
     DDLBrands.Items.Add(new ListItem("--Select--", ""));
     foreach (Brand brand in BM.Brands())
     {
         DDLBrands.Items.Add(new ListItem(brand.BrandDescription, brand.BrandDescription));
     }
 }
Ejemplo n.º 3
0
 protected void Page_Init(object sender, EventArgs e)
 {
     dlBrandName.Items.Clear();
     dlBrandName.Items.Add(new ListItem("--select--", ""));
     foreach (var brand in BrandManager.Brands())
     {
         dlBrandName.Items.Add(new ListItem(brand.BrandDescription, brand.BrandDescription));
     }
 }
 private void LoadAllBrands()
 {
     // dlBrands.Items.Clear();
     dlConfirmedBrands.Items.Clear();
     foreach (Brand brand in BManager.Brands())
     {
         //    dlBrands.Items.Add(new ListItem(brand.BrandDescription, brand.BrandDescription));
         this.dlConfirmedBrands.Items.Add(new ListItem(brand.BrandDescription, brand.BrandDescription));
     }
 }
        private void InitializeBrands()
        {
            DDLBrandsProvincial.Items.Clear();
            DDLBrandsProvincial.Items.Add(new ListItem("--select--", ""));
            var brands = BrandManager.Brands();

            foreach (Brand brand in brands)
            {
                DDLBrandsProvincial.Items.Add(new ListItem(brand.BrandDescription, brand.BrandDescription));
            }
        }
 private void LoadAllBrands(string[] search_parameter = null)
 {
     if (search_parameter != null)
     {
         gvBrandList.DataSource = BM.SearchBrands(search_parameter);
         gvBrandList.DataBind();
     }
     else
     {
         gvBrandList.DataSource = BM.Brands();
         gvBrandList.DataBind();
     }
 }
Ejemplo n.º 7
0
 protected void Page_Init(object sender, EventArgs e)
 {
     #region check roles
     Permission.PERMITTED_USER = (UsersClass)Session["USER_ACCOUNT"];
     Permission.ROLES          = (List <UserRole>)Session["USER_ROLES"];
     if (Permission.CanInsert() == false)
     {
         Redirector.Redirect("~/Accounting/InventoryGroupingManagementPanel.aspx");
     }
     #endregion
     DDLBrands.Items.Clear();
     foreach (var brand in brandManager.Brands())
     {
         DDLBrands.Items.Add(new ListItem(brand.BrandDescription, brand.BrandDescription));
     }
 }
Ejemplo n.º 8
0
 private long GetAllBrands()
 {
     return(BM.Brands().Count);
 }