Esempio n. 1
0
 public TotalEmployeeHoursService(IUnitOfWork unitOfWork,
                                  ITotalEmployeeHoursRepository totalEmployeeHoursRepository,
                                  IEmployeeHoursService employeeHoursService,
                                  ISettingService settingService)
 {
     _unitOfWork = unitOfWork;
     _totalEmployeeHoursRepository = totalEmployeeHoursRepository;
     _employeeHoursService         = employeeHoursService;
     _settingService = settingService;
 }
Esempio n. 2
0
 public AttendanceController(IAttendanceLogRepository attendanceLogRepository,
                             IAttendanceRepository attendanceRepository, IEmployeeRepository employeeRepository, IUnitOfWork unitOfWork,
                             IEmployeePayrollRepository employeePayrollRepository, IEmployeeHoursRepository employeeHoursRepository, IAttendanceService attendanceService,
                             IHolidayRepository holidayRepository, IEmployeeHoursService employeeHoursService, ITotalEmployeeHoursService totalEmployeeHoursService,
                             ITotalEmployeeHoursPerCompanyRepository totalEmployeeHoursPerCompanyRepository, ICompanyRepository companyRepository)
 {
     _attendanceLogRepository = attendanceLogRepository;
     _attendanceRepository    = attendanceRepository;
     _employeeRepository      = employeeRepository;
     _unitOfWork = unitOfWork;
     _employeePayrollRepository = employeePayrollRepository;
     _employeeHoursRepository   = employeeHoursRepository;
     _attendanceService         = attendanceService;
     _holidayRepository         = holidayRepository;
     _employeeHoursService      = employeeHoursService;
     _totalEmployeeHoursService = totalEmployeeHoursService;
     _totalEmployeeHoursPerCompanyRepository = totalEmployeeHoursPerCompanyRepository;
     _companyRepository = companyRepository;
 }
        public EmployeePayrollSchedule()
        {
            _employeeDepartmentRepository       = new EmployeeDepartmentRepository(_databaseFactory);
            _employeeRepository                 = new EmployeeRepository(_databaseFactory, _employeeDepartmentRepository);
            _attendanceRepository               = new AttendanceRepository(_databaseFactory);
            _attendanceLogRepository            = new AttendanceLogRepository(_databaseFactory, _employeeRepository);
            _settingRepository                  = new SettingRepository(_databaseFactory);
            _employeeWorkScheduleRepository     = new EmployeeWorkScheduleRepository(_databaseFactory);
            _employeeInfoRepository             = new EmployeeInfoRepository(_databaseFactory);
            _frequencyRepository                = new FrequencyRepository(_databaseFactory);
            _paymentFrequencyRepository         = new PaymentFrequencyRepository(_databaseFactory);
            _employeePayrollRepository          = new EmployeePayrollRepository(_databaseFactory);
            _employeePayrollDeductionRepository = new EmployeePayrollDeductionRepository(_databaseFactory);
            _employeeDailyPayrollRepository     = new EmployeeDailyPayrollRepository(_databaseFactory);
            _employeeHoursRepository            = new EmployeeHoursRepository(_databaseFactory);
            _totalEmployeeHoursRepository       = new TotalEmployeeHoursRepository(_databaseFactory);
            _holidayRepository                  = new HolidayRepository(_databaseFactory);
            _employeeDeductionRepository        = new EmployeeDeductionRepository(_databaseFactory);
            _deductionRepository                = new DeductionRepository(_databaseFactory);
            _employeePayrollItemRepository      = new EmployeePayrollItemRepository(_databaseFactory);
            _employeeAdjustmentRepository       = new EmployeeAdjustmentRepository(_databaseFactory);
            _adjustmentRepository               = new AdjustmentRepository(_databaseFactory);

            _employeeService             = new EmployeeService(_employeeRepository);
            _employeeInfoService         = new EmployeeInfoService(_employeeInfoRepository);
            _attendanceLogService        = new AttendanceLogService(_attendanceLogRepository);
            _attendanceService           = new AttendanceService(_unitOfWork, _attendanceRepository, _attendanceLogService, _employeeHoursRepository);
            _settingService              = new SettingService(_settingRepository);
            _employeeWorkScheduleService = new EmployeeWorkScheduleService(_employeeWorkScheduleRepository);
            _employeeSalaryService       = new EmployeeSalaryService();
            _employeeHoursService        = new EmployeeHoursService(_unitOfWork, _employeeHoursRepository,
                                                                    _attendanceService, _settingService, _employeeWorkScheduleService, _employeeInfoService);
            _totalEmployeeHoursService   = new TotalEmployeeHoursService(_unitOfWork, _totalEmployeeHoursRepository, _employeeHoursService, _settingService);
            _holidayService              = new HolidayService(_holidayRepository, _settingRepository, _unitOfWork);
            _employeeDailyPayrollService = new EmployeeDailyPayrollService(_unitOfWork, _totalEmployeeHoursService, _employeeWorkScheduleService, _holidayService,
                                                                           _settingService, _employeeDailyPayrollRepository, _employeeInfoService, _employeeSalaryService);
            _deductionService = new DeductionService(_deductionRepository);
            _taxService       = new TaxService(_taxRepository);
            _employeePayrollDeductionService = new EmployeePayrollDeductionService(_unitOfWork, _settingService, _employeeSalaryService, _employeeInfoService, _employeeDeductionService, _deductionService, _employeePayrollDeductionRepository, _taxService);
            _employeePayrollItemService      = new EmployeePayrollItemService(_unitOfWork, _employeePayrollItemRepository, _totalEmployeeHoursService, _employeeWorkScheduleService, _holidayService, _settingService, _employeeInfoService, _employeeSalaryService, _employeePayrollRepository, _employeePayrollDeductionRepository, _employeeAdjustmentRepository, _adjustmentRepository);
            _employeeAdjusmentService        = new EmployeeAdjustmentService(_employeeAdjustmentRepository, _employeeRepository);
            _employeePayrollService          = new EmployeePayrollService(_unitOfWork, _employeePayrollRepository, _settingService, null, _employeeInfoService, null, _employeeService, _totalEmployeeHoursService, _employeePayrollItemService, _employeeAdjusmentService);
        }
 public PayrollPerCompanyController(IWebService webService,
                                    IUnitOfWork unitOfWork,
                                    IEmployeePayrollService payrollService,
                                    IEmployeePayrollPerCompanyService employeePayrollService,
                                    ITotalEmployeeHoursPerCompanyService totalEmployeeHoursService,
                                    IEmployeeHoursService employeeHoursService,
                                    IAttendanceService attendanceService,
                                    IEmployeePayrollItemPerCompanyService employeePayrollItemService,
                                    IEmployeeRepository employeeRepository)
 {
     _webService                 = webService;
     _unitOfWork                 = unitOfWork;
     _employeePayrollService     = employeePayrollService;
     _totalEmployeeHoursService  = totalEmployeeHoursService;
     _employeeHoursService       = employeeHoursService;
     _attendanceService          = attendanceService;
     _employeePayrollItemservice = employeePayrollItemService;
     _employeeRepository         = employeeRepository;
     _payrollService             = payrollService;
 }
Esempio n. 5
0
 public PayrollController(IWebService webService, IUnitOfWork unitOfWork,
                          IEmployeePayrollService employeePayrollService,
                          ITotalEmployeeHoursService totalEmployeeHoursService, IEmployeeHoursService employeeHoursService,
                          IAttendanceService attendanceService, IEmployeePayrollItemService employeePayrollItemService,
                          IAdjustmentRepository adjustmentRepository, IEmployeeAdjustmentRepository employeeAdjustmentRepository,
                          IEmployeeAdjustmentService employeeAdjustmentService, IEmployeeRepository employeeRepository, IEmployeePayrollDeductionService employeePayrollDeductionService)
 {
     _webService                      = webService;
     _unitOfWork                      = unitOfWork;
     _employeePayrollService          = employeePayrollService;
     _totalEmployeeHoursService       = totalEmployeeHoursService;
     _employeeHoursService            = employeeHoursService;
     _attendanceService               = attendanceService;
     _employeePayrollItemservice      = employeePayrollItemService;
     _adjustmentRepository            = adjustmentRepository;
     _employeeAdjustmentRepository    = employeeAdjustmentRepository;
     _employeeAdjustmentService       = employeeAdjustmentService;
     _employeeRepository              = employeeRepository;
     _employeePayrollDeductionService = employeePayrollDeductionService;
 }
        public EmployeeHoursSchedule()
        {
            _employeeRepository             = new EmployeeRepository(_databaseFactory, null);
            _attendanceRepository           = new AttendanceRepository(_databaseFactory);
            _attendanceLogRepository        = new AttendanceLogRepository(_databaseFactory, _employeeRepository);
            _settingRepository              = new SettingRepository(_databaseFactory);
            _employeeWorkScheduleRepository = new EmployeeWorkScheduleRepository(_databaseFactory);
            _employeeHoursRepository        = new EmployeeHoursRepository(_databaseFactory);
            _employeeInfoRepository         = new EmployeeInfoRepository(_databaseFactory);
            _employeePayrollRepository      = new EmployeePayrollRepository(_databaseFactory);

            _employeeService             = new EmployeeService(_employeeRepository);
            _employeeInfoService         = new EmployeeInfoService(_employeeInfoRepository);
            _attendanceLogService        = new AttendanceLogService(_attendanceLogRepository);
            _attendanceService           = new AttendanceService(_unitOfWork, _attendanceRepository, _attendanceLogService, _employeeHoursRepository);
            _settingService              = new SettingService(_settingRepository);
            _employeeWorkScheduleService = new EmployeeWorkScheduleService(_employeeWorkScheduleRepository);
            _employeeHoursService        = new EmployeeHoursService(_unitOfWork, _employeeHoursRepository, _attendanceService, _settingService, _employeeWorkScheduleService, _employeeInfoService);

            _schedulerLogRepository = new SchedulerLogRepository(_databaseFactory);
            _employeePayrollService = new EmployeePayrollService(_unitOfWork, _employeePayrollRepository, _settingService, null, _employeeInfoService, null, _employeeService, _totalEmployeeHoursService, null, null);
        }