Exemplo n.º 1
0
        private void GetGenericName()
        {
            List <BO.ProductGeneric> productGenerics = new List <BO.ProductGeneric>();

            productGenerics = _IProductGeneric.GetProductGenericList().ToList();
            grvGeneric.AutoGenerateColumns = false;
            grvGeneric.DataSource          = productGenerics;
        }
Exemplo n.º 2
0
        public ProductEntry()
        {
            InitializeComponent();
            _IProduct         = new BLL.BProduct();
            _IProductPackSize = new BLL.BProductPackSize();
            _Ibrand           = new BLL.BBrand();
            _IProductGeneric  = new BLL.BProductGeneric();
            _IProductCategory = new BLL.BProductCategory();

            COMMON.DDL.PopulateDropDownList(_IProductPackSize.GetProductPackSizeList().ToList(), ddlPackSize, "PackSizeID", "PackSize");
            COMMON.DDL.PopulateDropDownList(_Ibrand.GetBrandList().ToList(), ddlBrand, "BrandID", "BrandName");
            COMMON.DDL.PopulateDropDownList(_IProductGeneric.GetProductGenericList().ToList(), ddlGenericName, "PGenericID", "GenericName");
            //COMMON.DDL.PopulateDropDownList(_IProductCategory.GetProductCategoryList().ToList(), ddlCategorygory,"","");
            COMMON.DDL.PopulateDropDownList(_IProductCategory.GetProductCategoryList().ToList(), ddlCategory, "Id", "Name");
            Reset();
        }