Beispiel #1
0
        public FrmProductStatus()
        {
            InitializeComponent();

            //
            productStatusManager = new ProductStatusManager();
        }
Beispiel #2
0
        public FrmSearchProduct(FrmDanhMucSanPham frmParent)
        {
            InitializeComponent();

            productManager = new ProductManager();
            productNameManager = new ProductNameManager();
            categoryManager = new CategoryManager();
            unitManager = new UnitManager();
            countryManager = new CountryManager();
            manufacturerManager = new ManufacturerManager();
            productStatusManager = new ProductStatusManager();

            this.frmParent = frmParent;
        }
Beispiel #3
0
    private void loadProductStatus()
    {
        ListItem li = new ListItem("Select ProductStatus...", "0");

        ddlProductStatus.Items.Add(li);

        List <ProductStatus> productStatuss = new List <ProductStatus>();

        productStatuss = ProductStatusManager.GetAllProductStatuss();
        foreach (ProductStatus productStatus in productStatuss)
        {
            ListItem item = new ListItem(productStatus.ProductStatusName.ToString(), productStatus.ProductStatusID.ToString());
            ddlProductStatus.Items.Add(item);
        }
    }
Beispiel #4
0
        public FrmDanhMucSanPham()
        {
            InitializeComponent();

            //Create Manager which will use in form
            productManager = new ProductManager();
            productNameManager = new ProductNameManager();
            productStatusManager = new ProductStatusManager();
            unitManager = new UnitManager();

            categoryManager = new CategoryManager();
            manufacturerManager = new ManufacturerManager();
            countryManager = new CountryManager();
            providerManager = new ProviderManager();

            //
            MODE = Constants.MODE.ADD;
        }