示例#1
0
        public static SelectList GetMonthList(IMonthBLL monthbll)
        {
            IMonthBLL monthBll = monthbll;
            var       data     = monthBll.GetAll();

            return(new SelectList(data, "MONTH_ID", "MONTH_NAME_ENG"));
        }
 public MonthClosingController(IPageBLL pageBLL, IMonthClosingBLL monthClosingBll, IMonthClosingDocBLL monthClosingDocBll, IMonthBLL monthBll)
     : base(pageBLL, Enums.MenuList.Settings)
 {
     _mainMenu           = Enums.MenuList.Settings;
     _monthClosingBll    = monthClosingBll;
     _monthClosingDocBll = monthClosingDocBll;
     _monthBll           = monthBll;
 }
示例#3
0
 public void TestCleanup()
 {
     _logger        = null;
     _uow           = null;
     _repositoryPoa = null;
     _poabll        = null;
     _nppbkcbll     = null;
     _monthBll      = null;
 }
示例#4
0
        public void GetMonthAllTest()
        {
            _repositoryMonth = Substitute.For <IGenericRepository <MONTH> >();
            _uow.GetGenericRepository <MONTH>().ReturnsForAnyArgs(_repositoryMonth);
            _monthBll = new MonthBLL(_uow, _logger);
            var monthFake = FakeStuffs.GetMonths();

            _repositoryMonth.Get().ReturnsForAnyArgs(monthFake);
            var actualResult = GlobalFunctions.GetMonthList(_monthBll);

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

            Assert.AreEqual(firstItemText, monthFake.ToList()[0].MONTH_NAME_ENG);
            Assert.AreEqual(firstItemValue, monthFake.ToList()[0].MONTH_ID.ToString());
        }
 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;
 }
示例#6
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;
 }
示例#7
0
 public XmlLogController(INlogBLL nLogBll, IPageBLL pageBLL, IMonthBLL monthBll)
     : base(pageBLL, Enums.MenuList.Settings)
 {
     _nLogBll  = nLogBll;
     _monthBll = monthBll;
 }