コード例 #1
0
 public PeriodServiceFacade(IPeriodService periodService,
                            IMapper <Period, PeriodDescriptionDTO> periodDescriptionMapper,
                            IMapper <Period, PeriodDTOWithAction> periodDTOWithActionsMapper,
                            IMapper <Period, PeriodDTO> periodDTOMapper,
                            IMapper <InquiryInitializingProgress, PeriodStateWithIntializeInquirySummaryDTO>
                            periodInitializeInquiryStateReportMapper,
                            IMapper <BasicDataCopyingProgress, PeriodStateWithCopyingSummaryDTO> periodCopyingStateReportMapper,
                            IPeriodRepository periodRep, IPeriodEngineService periodEngine, IEmployeeRepository employeeRepository,
                            IJobPositionRepository jobPositionRepository, IUnitRepository unitRepository,
                            IJobIndexPointRepository jobIndexPointRepository, ICalculationRepository calculationRepository, IJobIndexRepository jobIndexRepository)
 {
     this.periodService              = periodService;
     this.periodDescriptionMapper    = periodDescriptionMapper;
     this.periodDTOWithActionsMapper = periodDTOWithActionsMapper;
     this.periodDTOMapper            = periodDTOMapper;
     this.periodInitializeInquiryStateReportMapper = periodInitializeInquiryStateReportMapper;
     this.periodCopyingStateReportMapper           = periodCopyingStateReportMapper;
     this.periodRep               = periodRep;
     this.periodEngine            = periodEngine;
     this.employeeRepository      = employeeRepository;
     this.jobPositionRepository   = jobPositionRepository;
     this.unitRepository          = unitRepository;
     this.jobIndexPointRepository = jobIndexPointRepository;
     this.calculationRepository   = calculationRepository;
     this.jobIndexRepository      = jobIndexRepository;
 }
コード例 #2
0
 public QuestionController(IReportService reportService, IEmployerAccountService employerAccountService, IWebConfiguration webConfiguration, IPeriodService periodService, IUserService userService)
     : base(webConfiguration, employerAccountService)
 {
     _reportService = reportService;
     _periodService = periodService;
     _userService   = userService;
 }
コード例 #3
0
ファイル: StatService.cs プロジェクト: karcagtamas/UniHelper
 /// <summary>
 /// Init Stat Service
 /// </summary>
 public StatService(IPeriodService periodService, IGlobalTaskService globalTaskService, ISubjectTaskService subjectTaskService, IPeriodTaskService periodTaskService)
 {
     _periodService      = periodService;
     _globalTaskService  = globalTaskService;
     _subjectTaskService = subjectTaskService;
     _periodTaskService  = periodTaskService;
 }
コード例 #4
0
        public ALLFPeriodEndService(
            IStorageService storageService,
            IFileUploadJobMetaDataModelBuilderService fileUploadJobMetaDataModelBuilderService,
            ICollectionsService collectionService,
            IPeriodService periodService,
            IStateService stateService,
            ICloudStorageService cloudStorageService,
            IJobService jobService,
            ILogger logger,
            AzureStorageSection azureStorageConfig,
            ApiSettings apiSettings,
            IHttpClientService httpClientService)
        {
            _storageService = storageService;
            _fileUploadJobMetaDataModelBuilderService = fileUploadJobMetaDataModelBuilderService;

            _collectionService   = collectionService;
            _periodService       = periodService;
            _stateService        = stateService;
            _cloudStorageService = cloudStorageService;
            _jobService          = jobService;
            _logger             = logger;
            _azureStorageConfig = azureStorageConfig;
            _httpClientService  = httpClientService;
            _baseUrl            = apiSettings.JobManagementApiBaseUrl;
        }
コード例 #5
0
 public BatchProcess(IPeriodService service,
                     IIdentityService identityService,
                     ITrackService trackService,
                     IWasteStatisticService wasteStatisticService,
                     IBatchLogService batchLogService)
 {
     if (service == null)
     {
         throw new ArgumentNullException("service");
     }
     if (identityService == null)
     {
         throw new ArgumentNullException("identityService");
     }
     if (trackService == null)
     {
         throw new ArgumentNullException("trackService");
     }
     if (wasteStatisticService == null)
     {
         throw new ArgumentNullException("wasteStatisticService");
     }
     if (batchLogService == null)
     {
         throw new ArgumentNullException("batchLogService");
     }
     _service               = service;
     _identityService       = identityService;
     _trackService          = trackService;
     _wasteStatisticService = wasteStatisticService;
     _batchLogService       = batchLogService;
 }
コード例 #6
0
 public DispatchController(IDispatchAllocationService dispatchAllocationService, IDispatchService dispatchService,
     IUserProfileService userProfileService, IOtherDispatchAllocationService otherDispatchAllocationService,
     IDispatchDetailService dispatchDetailService, IUnitService unitService, ICommodityTypeService commodityTypeService,
     IProgramService programService, ITransporterService transporterService, IPeriodService periodService,
     ICommodityService commodityService, ITransactionService transactionService, IStoreService storeService,
     IAdminUnitService adminUnitService, IHubService hubService, IFDPService fdpService,
     IProjectCodeService projectCodeService, IShippingInstructionService shippingInstructionService,
     ISMSGatewayService smsGatewayService, IContactService contactService, ISMSService smsService, IReliefRequisitionService reliefRequisitionService)
     : base(userProfileService)
 {
     _dispatchAllocationService = dispatchAllocationService;
     _dispatchService = dispatchService;
     _userProfileService = userProfileService;
     _otherDispatchAllocationService = otherDispatchAllocationService;
     _dispatchDetailService = dispatchDetailService;
     _unitService = unitService;
     _commodityTypeService = commodityTypeService;
     _programService = programService;
     _transporterService = transporterService;
     _periodService = periodService;
     _commodityService = commodityService;
     _transactionService = transactionService;
     _storeService = storeService;
     _adminUnitService = adminUnitService;
     _hubService = hubService;
     _fdpService = fdpService;
     _projectCodeService = projectCodeService;
     _shippingInstructionService = shippingInstructionService;
     _smsGatewayService = smsGatewayService;
     _contactService = contactService;
     _smsService = smsService;
     _reliefRequisitionService = reliefRequisitionService;
 }
コード例 #7
0
 public DispatchController(IDispatchAllocationService dispatchAllocationService, IDispatchService dispatchService,
                           IUserProfileService userProfileService, IOtherDispatchAllocationService otherDispatchAllocationService,
                           IDispatchDetailService dispatchDetailService, IUnitService unitService, ICommodityTypeService commodityTypeService,
                           IProgramService programService, ITransporterService transporterService, IPeriodService periodService,
                           ICommodityService commodityService, ITransactionService transactionService, IStoreService storeService,
                           IAdminUnitService adminUnitService, IHubService hubService, IFDPService fdpService,
                           IProjectCodeService projectCodeService, IShippingInstructionService shippingInstructionService)
 {
     _dispatchAllocationService      = dispatchAllocationService;
     _dispatchService                = dispatchService;
     _userProfileService             = userProfileService;
     _otherDispatchAllocationService = otherDispatchAllocationService;
     _dispatchDetailService          = dispatchDetailService;
     _unitService                = unitService;
     _commodityTypeService       = commodityTypeService;
     _programService             = programService;
     _transporterService         = transporterService;
     _periodService              = periodService;
     _commodityService           = commodityService;
     _transactionService         = transactionService;
     _storeService               = storeService;
     _adminUnitService           = adminUnitService;
     _hubService                 = hubService;
     _fdpService                 = fdpService;
     _projectCodeService         = projectCodeService;
     _shippingInstructionService = shippingInstructionService;
 }
コード例 #8
0
 public BudgetController(IMapper mapper, IUriService uriService, IIdentityService identityService, IBudgetService budgetService, IPeriodService periodService)
 {
     _mapper          = mapper;
     _identityService = identityService;
     _uriService      = uriService;
     _budgetService   = budgetService;
     _periodService   = periodService;
 }
コード例 #9
0
 public HistoryController(
     IPeriodService periodService,
     IStorageService storageService,
     IALLFHistoryService allfHistoryService,
     ILogger logger,
     TelemetryClient telemetryClient)
     : base(storageService, logger, telemetryClient)
 {
     _periodService      = periodService;
     _allfHistoryService = allfHistoryService;
 }
コード例 #10
0
 public LessonsController(
     ILessonService lessonService,
     ISchoolclassService schoolclassService,
     ITeacherService teacherService,
     IPeriodService periodService)
 {
     _lessonService      = lessonService;
     _schoolclassService = schoolclassService;
     _teacherService     = teacherService;
     _periodService      = periodService;
 }
コード例 #11
0
 public PeriodEndController(
     IPeriodService periodService,
     IPeriodEndService periodEndService,
     IStateService stateService,
     ILogger logger,
     TelemetryClient telemetryClient)
     : base(logger, telemetryClient)
 {
     _periodService    = periodService;
     _periodEndService = periodEndService;
     _stateService     = stateService;
 }
 public PeriodEndReportController(
     IPeriodService periodService,
     INCSPeriodEndService periodEndService,
     IStorageService storageService,
     ILogger logger,
     TelemetryClient telemetryClient)
     : base(logger, telemetryClient)
 {
     _logger           = logger;
     _periodService    = periodService;
     _periodEndService = periodEndService;
     _storageService   = storageService;
 }
コード例 #13
0
 public ReportsHub(
     IHubContext <ReportsHub> hubContext,
     IValidationRulesService validationRulesService,
     ICollectionsService collectionsService,
     IPeriodService periodService,
     IReportsService reportsService)
 {
     _hubContext             = hubContext;
     _validationRulesService = validationRulesService;
     _collectionsService     = collectionsService;
     _periodService          = periodService;
     _reportsService         = reportsService;
 }
        public HomeController(IReportService reportService, IEmployerAccountService employerAccountService,
                              IWebConfiguration webConfiguration, IPeriodService periodService,
                              IAuthorizationService authorizationService)
            : base(webConfiguration, employerAccountService)
        {
            _reportService        = reportService;
            _periodService        = periodService;
            _authorizationService = authorizationService;

            _currentPeriod = _periodService.GetCurrentPeriod();

            submitLookup = new ReadOnlyDictionary <string, SubmitAction>(
                buildSubmitLookups());
        }
 public ReportController(IReportService reportService,
                         IEmployerAccountService employerAccountService,
                         IUserService userService,
                         IWebConfiguration webConfiguration,
                         IPeriodService periodService,
                         IAuthorizationService authorizationService,
                         IMediator mediatr)
     : base(webConfiguration, employerAccountService)
 {
     _reportService        = reportService;
     _userService          = userService;
     _authorizationService = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
     _mediatr       = mediatr ?? throw new ArgumentNullException(nameof(mediatr));
     _currentPeriod = periodService.GetCurrentPeriod();
 }
コード例 #16
0
 public NCSPeriodEndHub(
     IHubEventBase eventBase,
     IHubContext <NCSPeriodEndHub> hubContext,
     INCSPeriodEndService periodEndService,
     IStateService stateService,
     IPeriodService periodService,
     ILogger logger)
 {
     _eventBase        = eventBase;
     _hubContext       = hubContext;
     _periodEndService = periodEndService;
     _stateService     = stateService;
     _periodService    = periodService;
     _logger           = logger;
 }
コード例 #17
0
 public ReportsController(
     ILogger logger,
     IStorageService storageService,
     IPeriodService periodService,
     IReportsService reportsService,
     ICollectionsService collectionsService,
     IEnumerable <IReport> Reports,
     TelemetryClient telemetryClient)
     : base(logger, telemetryClient)
 {
     _logger             = logger;
     _storageService     = storageService;
     _periodService      = periodService;
     _reportsService     = reportsService;
     _collectionsService = collectionsService;
     _reports            = Reports;
 }
コード例 #18
0
 public PeriodEndPrepHub(
     IPeriodEndPrepHubEventBase eventBase,
     IHubContext <PeriodEndPrepHub> hubContext,
     IPeriodEndService periodEndService,
     IEmailService emailService,
     IStateService stateService,
     IPeriodService periodService,
     ILogger logger)
 {
     _eventBase        = eventBase;
     _hubContext       = hubContext;
     _periodEndService = periodEndService;
     _emailService     = emailService;
     _stateService     = stateService;
     _periodService    = periodService;
     _logger           = logger;
 }
コード例 #19
0
 public ReportsService(
     ApiSettings apiSettings,
     ICollectionsService collectionsService,
     IEnumerable <IReport> reports,
     IAuthorisationService authorisationService,
     IIndex <PersistenceStorageKeys, IFileService> operationsFileService,
     IHttpClientService httpClientService,
     IPeriodService periodService,
     IDateTimeProvider dateTimeProvider)
 {
     _collectionsService    = collectionsService;
     _reports               = reports;
     _authorisationService  = authorisationService;
     _httpClientService     = httpClientService;
     _periodService         = periodService;
     _dateTimeProvider      = dateTimeProvider;
     _operationsFileService = operationsFileService[PersistenceStorageKeys.OperationsAzureStorage];
     _baseUrl               = apiSettings.JobManagementApiBaseUrl;
 }
コード例 #20
0
 public PeriodEndHub(
     IHubEventBase eventBase,
     IHubContext <PeriodEndHub> hubContext,
     IPeriodEndService periodEndService,
     IEmailService emailService,
     IStateService stateService,
     IPeriodService periodService,
     IApiAvailabilityService apiAvailabilityService,
     ILogger logger)
 {
     _eventBase              = eventBase;
     _hubContext             = hubContext;
     _periodEndService       = periodEndService;
     _emailService           = emailService;
     _stateService           = stateService;
     _periodService          = periodService;
     _apiAvailabilityService = apiAvailabilityService;
     _logger = logger;
 }
コード例 #21
0
 private ReportsService NewService(
     ApiSettings apiSettings = null,
     ICollectionsService collectionsService     = null,
     IEnumerable <IReport> reports              = null,
     IAuthorisationService authorisationService = null,
     IIndex <PersistenceStorageKeys, IFileService> operationsFileService = null,
     IHttpClientService httpClientService = null,
     IPeriodService periodService         = null,
     IDateTimeProvider dateTimeProvider   = null)
 {
     return(new ReportsService(
                apiSettings ?? new ApiSettings(),
                collectionsService ?? Mock.Of <ICollectionsService>(),
                reports,
                authorisationService ?? Mock.Of <IAuthorisationService>(),
                operationsFileService ?? Mock.Of <IIndex <PersistenceStorageKeys, IFileService> >(),
                httpClientService ?? Mock.Of <IHttpClientService>(),
                periodService ?? Mock.Of <IPeriodService>(),
                dateTimeProvider ?? Mock.Of <IDateTimeProvider>()));
 }
コード例 #22
0
 public PeriodController(IPeriodService service)
 {
     _service = service;
 }
コード例 #23
0
 public TimeTableController(ILogger <TimeTableController> logger, IPeriodService periodService)
 {
     _logger        = logger;
     _periodService = periodService;
 }
コード例 #24
0
 public HistoryController(IPeriodService periodService, IILRHistoryService ilrIlrHistoryService, ILogger logger, TelemetryClient telemetryClient)
     : base(logger, telemetryClient)
 {
     _periodService     = periodService;
     _ilrHistoryService = ilrIlrHistoryService;
 }
コード例 #25
0
 /// <summary>
 /// Init Calendar service
 /// </summary>
 /// <param name="periodService">Period Service</param>
 public CalendarService(IPeriodService periodService)
 {
     _periodService = periodService;
 }
コード例 #26
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="db"></param>
 /// <param name="periodService"></param>
 public PeriodController(IUnitOfWork db, IPeriodService periodService)
 {
     _db            = db;
     _periodService = periodService;
 }
コード例 #27
0
 public PeriodsController(IPeriodService periodService)
 {
     _periodService = periodService;
 }
コード例 #28
0
 public CalculationEngineService(ICalculationService service, IPeriodService periodService, IPeriodRepository p)
 {
     this.service       = service;
     this.periodService = periodService;
 }
コード例 #29
0
ファイル: PeriodController.cs プロジェクト: umair-me/ASA-API
 public PeriodController(IPeriodService periodService)
 {
     this._periodService = periodService;
 }
コード例 #30
0
 public override void Initialize()
 {
     _applicationDbFactory = CreateApplicationDbFactoryTest();
     _periodService = new PeriodService(_applicationDbFactory);
 }
コード例 #31
0
 public PeriodController(IPeriodService periodService, ISchoolDayService schoolDayService, IMapper mapper)
 {
     PeriodService    = periodService;
     SchoolDayService = schoolDayService;
     Mapper           = mapper;
 }