public static SelectList GetBrandList() { IBrandRegistrationBLL brandBLL = MvcApplication.GetInstance <BrandRegistrationBLL>(); var data = brandBLL.GetAll(); var selectItemSource = Mapper.Map <List <SelectItemModel> >(data); return(new SelectList(selectItemSource, "ValueField", "TextField")); }
public static SelectList GetFaCodeByPlant(string plantId) { IBrandRegistrationBLL brandBll = MvcApplication.GetInstance <BrandRegistrationBLL>(); var brandCe = brandBll.GetBrandCeBylant(plantId); var selectItemSource = Mapper.Map <List <SelectItemModel> >(brandCe); return(new SelectList(selectItemSource, "ValueField", "TextField")); }
public static SelectList GetBahanKemasanList(IBrandRegistrationBLL brandRegistrationBll) { var data = brandRegistrationBll.GetAllBrands().Where(x => x.IS_DELETED != true && x.BAHAN_KEMASAN != "" && x.BAHAN_KEMASAN != null); var selectList = from s in data select new SelectListItem { Value = s.BAHAN_KEMASAN, Text = s.BAHAN_KEMASAN }; return(new SelectList(selectList.GroupBy(p => p.Value).Select(g => g.First()), "Value", "Text")); }
//private IPageBLL _pageBll; public MasterApprovalController(IPageBLL pageBll, IWorkflowHistoryBLL workflowHistoryBLL, IMasterDataAprovalBLL masterDataAprovalBLL, IPOABLL poaBLL, IBrandRegistrationBLL brandRegistrationBLL, IUserBLL userBLL) : base(pageBll, Enums.MenuList.MasterDataApproval) { _mainMenu = Enums.MenuList.MasterData; _masterDataAprovalBLL = masterDataAprovalBLL; _xmlWriter = new XmlBrandRegistrationWriter(); _userBLL = userBLL; _poaBLL = poaBLL; //_pageBll = pageBll; _workflowHistoryBLL = workflowHistoryBLL; _brandRegistrationBLL = brandRegistrationBLL; }
public BrandRegistrationController(IBrandRegistrationBLL brandRegistrationBll, IPageBLL pageBLL, IMasterDataBLL masterBll, IZaidmExProdTypeBLL productBll, IZaidmExGoodTypeBLL goodTypeBll, IChangesHistoryBLL changesHistoryBll, IPlantBLL plantBll, IMaterialBLL materialBll, IMasterDataAprovalBLL masterDataAprovalBLL) : base(pageBLL, Enums.MenuList.BrandRegistration) { _brandRegistrationBll = brandRegistrationBll; _masterDataAprovalBLL = masterDataAprovalBLL; _masterBll = masterBll; _productBll = productBll; _goodTypeBll = goodTypeBll; _changesHistoryBll = changesHistoryBll; _plantBll = plantBll; _materialBll = materialBll; _mainMenu = Enums.MenuList.MasterData; }
public ProductionController(IPageBLL pageBll, IProductionBLL productionBll, ICompanyBLL companyBll, IPlantBLL plantBll, IUnitOfMeasurementBLL uomBll, IBrandRegistrationBLL brandRegistrationBll, IChangesHistoryBLL changeHistorybll, IUserPlantMapBLL userPlantMapBll, IPOAMapBLL poaMapBll, IMonthBLL monthBll, IMonthClosingBLL monthClosingBll) : base(pageBll, Enums.MenuList.CK4C) { _productionBll = productionBll; _mainMenu = Enums.MenuList.CK4C; _companyBll = companyBll; _plantBll = plantBll; _uomBll = uomBll; _brandRegistrationBll = brandRegistrationBll; _changeHistoryBll = changeHistorybll; _userPlantMapBll = userPlantMapBll; _poaMapBll = poaMapBll; _monthBll = monthBll; _monthClosingBll = monthClosingBll; }
public WasteController(IPageBLL pageBll, IWasteBLL wasteBll, ICompanyBLL companyBll, IPlantBLL plantBll, IUnitOfMeasurementBLL uomBll, IBrandRegistrationBLL brandRegistrationBll, IChangesHistoryBLL changesHistoryBll, IWasteStockBLL wasteStockBll, IMaterialBLL materialBll, IUserPlantMapBLL userPlantMapBll, IPOAMapBLL poaMapBll, IMonthBLL monthBll, IMonthClosingBLL monthClosingBll) : base(pageBll, Enums.MenuList.CK4C) { _wasteBll = wasteBll; _mainMenu = Enums.MenuList.CK4C; _companyBll = companyBll; _plantBll = plantBll; _uomBll = uomBll; _brandRegistrationBll = brandRegistrationBll; _changeHistoryBll = changesHistoryBll; _wasteStockBll = wasteStockBll; _materialBll = materialBll; _userPlantMapBll = userPlantMapBll; _poaMapBll = poaMapBll; _monthBll = monthBll; _monthClosingBll = monthClosingBll; }
public WasteBLL(ILogger logger, IUnitOfWork uow) { _logger = logger; _uow = uow; _repository = _uow.GetGenericRepository <WASTE>(); _repositoryBrand = _uow.GetGenericRepository <ZAIDM_EX_BRAND>(); _repositoryGood = _uow.GetGenericRepository <ZAIDM_EX_GOODTYP>(); _repositoryUom = _uow.GetGenericRepository <UOM>(); _repositoryPlant = uow.GetGenericRepository <T001W>(); _repositoryCompany = _uow.GetGenericRepository <T001>(); _changesHistoryBll = new ChangesHistoryBLL(uow, logger); _companyBll = new CompanyBLL(_uow, _logger); _plantBll = new PlantBLL(_uow, _logger); _brandRegistrationBll = new BrandRegistrationBLL(_uow, _logger); _userPlantBll = new UserPlantMapBLL(_uow, _logger); _poaMapBll = new POAMapBLL(_uow, _logger); _wasteStockBll = new WasteStockBLL(_uow, _logger); _materialBll = new MaterialBLL(_uow, _logger); _monthClosingBll = new MonthClosingBLL(_uow, _logger); }
public ProductionBLL(ILogger logger, IUnitOfWork uow) { _logger = logger; _uow = uow; _repository = _uow.GetGenericRepository <PRODUCTION>(); _repositoryBrand = _uow.GetGenericRepository <ZAIDM_EX_BRAND>(); _repositoryProd = _uow.GetGenericRepository <ZAIDM_EX_PRODTYP>(); _repositoryUom = _uow.GetGenericRepository <UOM>(); _repositoryPlant = _uow.GetGenericRepository <T001W>(); _changesHistoryBll = new ChangesHistoryBLL(_uow, _logger); _companyBll = new CompanyBLL(_uow, _logger); _plantBll = new PlantBLL(_uow, _logger); _brandRegistrationBll = new BrandRegistrationBLL(_uow, _logger); _wasteBll = new WasteBLL(_logger, _uow); _uomBll = new UnitOfMeasurementBLL(uow, _logger); _userPlantBll = new UserPlantMapBLL(_uow, _logger); _poaMapBll = new POAMapBLL(_uow, _logger); _ck4cItemBll = new CK4CItemBLL(_uow, _logger); _reversalBll = new ReversalBLL(_logger, _uow); _monthClosingBll = new MonthClosingBLL(_uow, _logger); }