예제 #1
0
        private void loadPromotions()
        {
            PromotionBL promotionBL = new PromotionBL();
            //ProductBL productBL = new ProductBL();

            rptPromotions.DataSource = promotionBL.GetPromotions(false, true, null);
            rptPromotions.DataBind();

            //productSlider.NumberOfProducts = 4;
            //ProductBL productBL = new ProductBL();
            //productSlider.Products = productBL.GetProductsForFirstPage(3, 8, "product.name");

            //productSlider1.NumberOfProducts = 4;
            //productSlider1.Products = productBL.GetProductsForFirstPage(3, 8, "product.name");
        }
예제 #2
0
 private void loadPromotions()
 {
     PromotionBL promotionBL = new PromotionBL();
     dgvPromotions.DataSource = promotionBL.GetPromotions(false, null);
     dgvPromotions.DataBind();
 }
예제 #3
0
        private void loadIntoForm()
        {
            loadBrands();

            CategoryBL categoryBL = new CategoryBL();
            cmbCategory.DataSource = categoryBL.GetCategories();
            cmbCategory.DataTextField = "name";
            cmbCategory.DataValueField = "categoryID";
            cmbCategory.DataBind();

            VatBL vatBL = new VatBL();
            cmbVat.DataSource = vatBL.GetVats();
            cmbVat.DataValueField = "vatID";
            cmbVat.DataTextField = "vatValue";
            cmbVat.DataBind();
            cmbVat.SelectedIndex = 3;

            loadSupplier();

            PromotionBL promotionBL = new PromotionBL();
            cmbPromotions.DataSource = promotionBL.GetPromotions(true, null, null);
            cmbPromotions.DataTextField = "name";
            cmbPromotions.DataValueField = "promotionID";
            cmbPromotions.DataBind();
        }