コード例 #1
0
        public ReportingPeriodController(IReportingPeriodService reportingPeriodService, IProjectService projectService)
        {
            if (reportingPeriodService == null)
            {
                throw new ArgumentException(nameof(reportingPeriodService));
            }
            if (projectService == null)
            {
                throw new ArgumentException(nameof(projectService));
            }

            _projectService         = projectService;
            _reportingPeriodService = reportingPeriodService;
        }
コード例 #2
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)
 {
 }
コード例 #3
0
        public TSAutoHoursRecordController(IEmployeeService employeeService,
                                           IProjectService projectService,
                                           IUserService userService,
                                           ITSAutoHoursRecordService tsAutoHoursRecordService,
                                           IReportingPeriodService reportingPeriodService,
                                           ITSHoursRecordService tsHoursRecordService,
                                           IProjectMembershipService projectMembershipService,
                                           IProductionCalendarService productionCalendarService,
                                           IApplicationUserService applicationUserService,
                                           IServiceService serviceService)
        {
            if (employeeService == null)
            {
                throw new ArgumentException(nameof(employeeService));
            }
            if (projectService == null)
            {
                throw new ArgumentException(nameof(projectService));
            }
            if (userService == null)
            {
                throw new ArgumentException(nameof(userService));
            }
            if (tsAutoHoursRecordService == null)
            {
                throw new ArgumentException(nameof(tsAutoHoursRecordService));
            }
            if (reportingPeriodService == null)
            {
                throw new ArgumentException(nameof(reportingPeriodService));
            }
            if (productionCalendarService == null)
            {
                throw new ArgumentException(nameof(productionCalendarService));
            }

            _employeeService           = employeeService;
            _projectService            = projectService;
            _userService               = userService;
            _tsAutoHoursRecordService  = tsAutoHoursRecordService;
            _reportingPeriodService    = reportingPeriodService;
            _tsHoursRecordService      = tsHoursRecordService;
            _projectMembershipService  = projectMembershipService;
            _productionCalendarService = productionCalendarService;
            _applicationUserService    = applicationUserService;
            _serviceService            = serviceService;
        }
コード例 #4
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();
        }