コード例 #1
0
 public TSHoursRecordController(IEmployeeService employeeService, ITSHoursRecordService tsHoursRecordService,
                                IProjectService projectService,
                                IProjectMembershipService projectMembershipService,
                                IUserService userService,
                                ITSAutoHoursRecordService autoHoursRecordService,
                                IVacationRecordService vacationRecordService,
                                IReportingPeriodService reportingPeriodService,
                                IDepartmentService departmentService,
                                IProductionCalendarService productionCalendarService,
                                IEmployeeCategoryService employeeCategoryService, IJiraService jiraService, IOptions <JiraConfig> jiraOptions, IApplicationUserService applicationUserService) : base(employeeService,
                                                                                                                                                                                                      tsHoursRecordService, projectService, projectMembershipService, userService,
                                                                                                                                                                                                      autoHoursRecordService, vacationRecordService, reportingPeriodService, departmentService, productionCalendarService, employeeCategoryService, jiraService, jiraOptions, applicationUserService)
 {
 }
コード例 #2
0
        public VacationRecordController(IVacationRecordService vacationRecordService,
                                        IEmployeeService employeeService,
                                        IUserService userService,
                                        IReportingPeriodService reportingPeriodService,
                                        ITSHoursRecordService tsHoursRecordService,
                                        IProductionCalendarService productionCalendarService,
                                        DbContextOptions <RPCSContext> rpcsContextOptions,
                                        IOptions <OnlyOfficeConfig> onlyofficeOptions,
                                        IOptions <ADConfig> adOptions,
                                        IOptions <BitrixConfig> bitrixOptions,
                                        IOptions <TimesheetConfig> timesheetOptions,
                                        IOptions <SMTPConfig> smtpOptions,
                                        IOptions <JiraConfig> jiraOptions,
                                        IHttpContextAccessor httpContextAccessor,
                                        IMemoryCache memoryCache,
                                        IOOService ooService,
                                        ILogger <TSHoursRecordService> tsHoursRecordServiceLogger,
                                        IServiceService serviceService)
        {
            if (vacationRecordService == null)
            {
                throw new ArgumentNullException(nameof(vacationRecordService));
            }
            if (employeeService == null)
            {
                throw new ArgumentNullException(nameof(employeeService));
            }
            if (userService == null)
            {
                throw new ArgumentNullException(nameof(userService));
            }
            if (reportingPeriodService == null)
            {
                throw new ArgumentNullException(nameof(reportingPeriodService));
            }
            if (tsHoursRecordService == null)
            {
                throw new ArgumentNullException(nameof(tsHoursRecordService));
            }
            if (productionCalendarService == null)
            {
                throw new ArgumentNullException(nameof(productionCalendarService));
            }

            _vacationRecordService     = vacationRecordService;
            _employeeService           = employeeService;
            _userService               = userService;
            _reportingPeriodService    = reportingPeriodService;
            _tsHoursRecordService      = tsHoursRecordService;
            _productionCalendarService = productionCalendarService;
            _rpcsContextOptions        = rpcsContextOptions;
            _onlyofficeOptions         = onlyofficeOptions;
            _adOptions                  = adOptions;
            _bitrixOptions              = bitrixOptions;
            _timesheetOptions           = timesheetOptions;
            _smtpOptions                = smtpOptions;
            _jiraOptions                = jiraOptions;
            _httpContextAccessor        = httpContextAccessor;
            _memoryCache                = memoryCache;
            _ooService                  = ooService;
            _tsHoursRecordServiceLogger = tsHoursRecordServiceLogger;
            _serviceService             = serviceService;

            InitTasks();
        }