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

            return(new SelectList(data, "MONTH_ID", "MONTH_NAME_ENG"));
        }
コード例 #2
0
 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());
        }
コード例 #5
0
 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;
 }