public static SelectList GetActiveSupplierPlantList() { IPlantBLL plantBll = MvcApplication.GetInstance <PlantBLL>(); var data = plantBll.GetActivePlant(); return(new SelectList(data, "WERKS", "DROPDOWNTEXTFIELD")); }
public static SelectList GetPlantByNppbkcImport(bool isNppbkcImport) { IPlantBLL plantBll = MvcApplication.GetInstance <PlantBLL>(); List <T001W> plantIdList; plantIdList = plantBll.GetAllPlant(); plantIdList = plantIdList.Where( x => x.IS_DELETED != true && x.ZAIDM_EX_NPPBKC != null && x.ZAIDM_EX_NPPBKC.IS_DELETED != true) .OrderBy(x => x.WERKS) .ToList(); if (isNppbkcImport) { plantIdList = plantIdList.Where( x => x.IS_DELETED != true && x.ZAIDM_EX_NPPBKC != null && x.ZAIDM_EX_NPPBKC.IS_DELETED != true && x.NPPBKC_IMPORT_ID != null) .OrderBy(x => x.WERKS) .ToList(); } var selectItemSource = Mapper.Map <List <SelectItemModel> >(plantIdList); return(new SelectList(selectItemSource, "ValueField", "TextField")); }
public MonthClosingBLL(IUnitOfWork uow, ILogger logger) { _logger = logger; _uow = uow; _repository = _uow.GetGenericRepository <MONTH_CLOSING>(); _plantBll = new PlantBLL(_uow, _logger); }
public UserPlantMapController(IPageBLL pageBLL, IUserPlantMapBLL userPlantMapBll, IPlantBLL plantBll, IChangesHistoryBLL changeHistorybll, IUnitOfWork uow) : base(pageBLL, Enums.MenuList.UserPlantMap) { _changeHistoryBll = changeHistorybll; _mainMenu = Enums.MenuList.Settings; _userPlantMapBll = userPlantMapBll; _plantBll = plantBll; }
public static MultiSelectList GetVirtualPlantListMultiSelect() { IPlantBLL plantBll = MvcApplication.GetInstance <PlantBLL>(); var data = plantBll.GetAllPlant().Where(x => x.IS_DELETED != true); var selectItemSource = Mapper.Map <List <SelectItemModelVirtualPlant> >(data); return(new MultiSelectList(selectItemSource, "ValueField", "TextField")); }
public PlantController(IPlantBLL plantBll, IZaidmExNPPBKCBLL nppbkcBll, IZaidmExGoodTypeBLL goodTypeBll, IChangesHistoryBLL changesHistoryBll, IPageBLL pageBLL) : base(pageBLL, Enums.MenuList.MasterPlant) { _plantBll = plantBll; _nppbkcBll = nppbkcBll; _goodTypeBll = goodTypeBll; _mainMenu = Enums.MenuList.MasterData; _changesHistoryBll = changesHistoryBll; }
public POAMapController(IPageBLL pageBLL, IPOABLL poabll, IPOAMapBLL poaMapBll, IMasterDataAprovalBLL masterDataAprovalBLL, IZaidmExNPPBKCBLL nppbkcbll, IPlantBLL plantbll, IChangesHistoryBLL changeHistorybll) : base(pageBLL, Enums.MenuList.POAMap) { _poaMapBLL = poaMapBll; _changeHistoryBll = changeHistorybll; _mainMenu = Enums.MenuList.MasterData; _nppbkcbll = nppbkcbll; _poabll = poabll; _plantbll = plantbll; _masterDataAprovalBLL = masterDataAprovalBLL; }
public NPPBKCController(IZaidmExNPPBKCBLL nppbkcBll, IChangesHistoryBLL changesHistoryBll, ICompanyBLL companyBll, IMasterDataBLL masterData, IZaidmExKPPBCBLL kppbcBll, IPageBLL pageBLL, IPlantBLL plantBll) : base(pageBLL, Enums.MenuList.NPPBKC) { _nppbkcBll = nppbkcBll; _masterDataBll = masterData; _companyBll = companyBll; _kppbcBll = kppbcBll; _plantBll = plantBll; _changesHistoryBll = changesHistoryBll; _mainMenu = Enums.MenuList.MasterData; refService = new SystemReferenceService(); service = new NppbkcManagementService(); }
public ReversalBLL(ILogger logger, IUnitOfWork uow) { _logger = logger; _uow = uow; _repository = _uow.GetGenericRepository <REVERSAL>(); _repositoryCk4c = _uow.GetGenericRepository <CK4C>(); _repositoryProd = _uow.GetGenericRepository <PRODUCTION>(); _zaapShiftRptService = new ZaapShiftRptService(_uow, _logger); _inventoryMovementService = new InventoryMovementService(_uow, _logger); _userPlantBll = new UserPlantMapBLL(_uow, _logger); _poaMapBll = new POAMapBLL(_uow, _logger); _plantBll = new PlantBLL(_uow, _logger); }
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; }
// private IChangesHistoryBLL _changesHistoryBll; public BrandRegistrationBLL(IUnitOfWork uow, ILogger logger) { _logger = logger; _uow = uow; _repository = _uow.GetGenericRepository <ZAIDM_EX_BRAND>(); _repositoryPlantT001W = _uow.GetGenericRepository <T001W>(); _repositorySeries = _uow.GetGenericRepository <ZAIDM_EX_SERIES>(); _repositoryMarket = _uow.GetGenericRepository <ZAIDM_EX_MARKET>(); _plantBll = new PlantBLL(_uow, _logger); _masterDataAprovalBLL = new MasterDataApprovalBLL(_uow, _logger); _zaidmExProdTypeBLL = new ZaidmExProdTypeBLL(_uow, _logger); _excisableGoodsTypeService = new ExcisableGoodsTypeService(_uow, _logger); //_changesHistoryBll = changesHistoryBll; }
public static SelectList GetPlantByCompanyId(string companyId) { IPlantBLL plantBll = MvcApplication.GetInstance <PlantBLL>(); List <T001W> plantIdList; plantIdList = plantBll.GetAllPlant(); plantIdList = plantIdList.Where( x => x.IS_DELETED != true && x.ZAIDM_EX_NPPBKC != null && x.ZAIDM_EX_NPPBKC.IS_DELETED != true && x.T001K != null).Where(x => x.T001K.BUKRS == companyId) .OrderBy(x => x.WERKS) .ToList(); var selectItemSource = Mapper.Map <List <SelectItemModel> >(plantIdList); return(new SelectList(selectItemSource, "ValueField", "TextField")); }
public static SelectList GetPlantByListUserPlant(List <string> listPlant) { IPlantBLL plantBll = MvcApplication.GetInstance <PlantBLL>(); List <T001W> plantIdList; plantIdList = plantBll.GetAllPlant(); plantIdList = plantIdList.Where( x => listPlant.Contains(x.WERKS) && x.IS_DELETED != true && x.ZAIDM_EX_NPPBKC != null && x.ZAIDM_EX_NPPBKC.IS_DELETED != true) .OrderBy(x => x.WERKS) .ToList(); var selectItemSource = Mapper.Map <List <SelectItemModel> >(plantIdList); return(new SelectList(selectItemSource, "ValueField", "TextField")); }
public static SelectList GetPlantImportList() { IPlantBLL plantBll = MvcApplication.GetInstance <PlantBLL>(); IZaidmExNPPBKCBLL nppbkcBLL = MvcApplication.GetInstance <ZaidmExNPPBKCBLL>(); var nppbkcList = nppbkcBLL.GetAll().Where(x => x.IS_DELETED != true).Select(x => x.NPPBKC_ID).ToList(); List <T001W> plantIdList; plantIdList = plantBll.GetAllPlant(); plantIdList = plantIdList.Where( x => x.IS_DELETED != true && x.NPPBKC_IMPORT_ID != null && nppbkcList.Contains(x.NPPBKC_IMPORT_ID)) .OrderBy(x => x.WERKS) .ToList(); var selectItemSource = Mapper.Map <List <SelectItemModel> >(plantIdList); return(new SelectList(selectItemSource, "ValueField", "TextField")); }
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); }
public static SelectList GetPlantByNppbkcId(IPlantBLL plantBll, string nppbkcId) { var plantList = plantBll.GetCompositeListByNppbkcId(nppbkcId); return(new SelectList(plantList, "WERKS", "DROPDOWNTEXTFIELD")); }