示例#1
0
        public ProductionCalendarRecordController(IProductionCalendarService productionCalendarSvc)
        {
            if (productionCalendarSvc == null)
            {
                throw new ArgumentNullException(nameof(productionCalendarSvc));
            }

            _productionCalendarSvc = productionCalendarSvc;
        }
示例#2
0
 public WorkflowScheduler(
     IUnitOfWorkFactory unitOfWorkFactory,
     IWorkflowServiceFactory serviceFactory, IWorkflowUserService workflowUserService, IAppContextBootstrapper appContextBootstrapper, IProductionCalendarService productionCalendarService)
 {
     _unitOfWorkFactory = unitOfWorkFactory;
     _serviceFactory = serviceFactory;
     _workflowUserService = workflowUserService;
     _appContextBootstrapper = appContextBootstrapper;
     _productionCalendarService = productionCalendarService;
 }
示例#3
0
 public TimesheetImportHoursFromExcelTask(ITSHoursRecordService tsHoursRecordService,
                                          IProductionCalendarService productionCalendarService,
                                          IEmployeeService employeeService,
                                          IProjectService projectService,
                                          IUserService userService)
 {
     _tsHoursRecordService      = tsHoursRecordService ?? throw new ArgumentNullException(nameof(tsHoursRecordService));
     _productionCalendarService = productionCalendarService;
     _employeeService           = employeeService;
     _projectService            = projectService;
     _userService = userService;
 }
示例#4
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)
 {
 }
示例#5
0
 public ProjectScheduleEntryController(IProjectScheduleEntryService projectScheduleEntryService,
                                       IProjectScheduleEntryTypeService projectScheduleEntryTypeService,
                                       IUserService userService,
                                       IProjectService projectService,
                                       IProductionCalendarService productionCalendarService, IProjectTypeService projectTypeService, IApplicationUserService applicationUserService, IServiceService serviceService)
 {
     _projectScheduleEntryService     = projectScheduleEntryService;
     _projectScheduleEntryTypeService = projectScheduleEntryTypeService;
     _userService               = userService;
     _projectService            = projectService;
     _productionCalendarService = productionCalendarService;
     _projectTypeService        = projectTypeService;
     _applicationUserService    = applicationUserService;
     _serviceService            = serviceService;
 }
示例#6
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;
        }
示例#7
0
        public EmployeeWorkloadService(IEmployeeService employeeSvc, IProjectService projectSvc, IProjectMembershipService projectMembershipSvc, IProductionCalendarService productionCalendarSvc)
        {
            if (employeeSvc == null)
            {
                throw new ArgumentNullException(nameof(employeeSvc));
            }
            if (projectSvc == null)
            {
                throw new ArgumentNullException(nameof(projectSvc));
            }
            if (projectMembershipSvc == null)
            {
                throw new ArgumentNullException(nameof(projectMembershipSvc));
            }
            if (productionCalendarSvc == null)
            {
                throw new ArgumentNullException(nameof(productionCalendarSvc));
            }

            EmployeeSvc           = employeeSvc;
            ProjectSvc            = projectSvc;
            ProjectMembershipSvc  = projectMembershipSvc;
            ProductionCalendarSvc = productionCalendarSvc;
        }
示例#8
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();
        }