예제 #1
0
 public UomController(IPageBLL pageBLL, IUnitOfMeasurementBLL uomBLL, IChangesHistoryBLL changeHistorybll)
     : base(pageBLL, Enums.MenuList.Uom)
 {
     _uomBLL           = uomBLL;
     _changeHistoryBll = changeHistorybll;
     _mainMenu         = Enums.MenuList.MasterData;
 }
예제 #2
0
 public MaterialController(IPageBLL pageBLL, IUnitOfMeasurementBLL unitOfMeasurementBll, IZaidmExGoodTypeBLL goodTypeBll, IMaterialBLL materialBll, IChangesHistoryBLL changesHistoryBll)
     : base(pageBLL, Enums.MenuList.MaterialMaster)
 {
     _materialBll          = materialBll;
     _changesHistoryBll    = changesHistoryBll;
     _mainMenu             = Enums.MenuList.MasterData;
     _goodTypeBll          = goodTypeBll;
     _unitOfMeasurementBll = unitOfMeasurementBll;
 }
 public VirtualMappingPlantController(IVirtualMappingPlantBLL vitVirtualMappingPlanBll, ICompanyBLL companyBll, IUnitOfMeasurementBLL uomBll, IMasterDataBLL masterData, IChangesHistoryBLL changeLogHistoryBLL, IPageBLL pageBLL)
     : base(pageBLL, Enums.MenuList.VirtualMappingPlant)
 {
     _virtualMappingPlanBll = vitVirtualMappingPlanBll;
     _masterDataBll         = masterData;
     _changesHistoryBLL     = changeLogHistoryBLL;
     //_plantList = _masterDataBll.get;
     _mainMenu   = Enums.MenuList.MasterData;
     _uomBll     = uomBll;
     _companyBll = companyBll;
 }
예제 #4
0
        public static SelectList GetConversionUomList()
        {
            IUnitOfMeasurementBLL uomBll = MvcApplication.GetInstance <UnitOfMeasurementBLL>();
            var data       = uomBll.GetAll().Where(x => x.IS_DELETED != true);
            var selectList = from s in data
                             select new SelectListItem
            {
                Value = s.UOM_ID,
                Text  = s.UOM_ID + "-" + s.UOM_DESC
            };

            return(new SelectList(selectList, "Value", "Text"));
        }
예제 #5
0
        public void GetUomTest()
        {
            _repositoryUom = Substitute.For <IGenericRepository <UOM> >();
            _uow.GetGenericRepository <UOM>().ReturnsForAnyArgs(_repositoryUom);
            _unitOfMeasurementBll = new UnitOfMeasurementBLL(_uow, _logger);
            var uomFake = FakeStuffs.GetUomList();

            _repositoryUom.Get().ReturnsForAnyArgs(uomFake);
            var actualResult = GlobalFunctions.GetUomList(_unitOfMeasurementBll);

            var firstItemText  = actualResult.ToList()[0].Text;
            var firstItemValue = actualResult.ToList()[0].Value;

            Assert.AreEqual(firstItemText, uomFake.ToList()[0].UOM_DESC);
            Assert.AreEqual(firstItemValue, uomFake.ToList()[0].UOM_ID);
        }
 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;
 }
예제 #7
0
 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;
 }
예제 #8
0
 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);
 }
예제 #9
0
        public static SelectList GetUomStickGram(IUnitOfMeasurementBLL uomBll)
        {
            var data = uomBll.GetAll().Where(x => x.IS_DELETED != true && x.IS_EMS == true && (x.UOM_ID == "G" || x.UOM_ID == "Btg"));

            return(new SelectList(data, "UOM_ID", "UOM_DESC"));
        }
예제 #10
0
        public static SelectList GetCk5AllowedUomList(IUnitOfMeasurementBLL uomBll)
        {
            var data = uomBll.GetCK5ConvertedUoms();

            return(new SelectList(data, "UOM_ID", "UOM_DESC"));
        }