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;
 }
        public EmployeePayrollPerCompanyService(IUnitOfWork unitOfWork,
                                                IEmployeePayrollPerCompanyRepository employeeePayrollRepository,
                                                ISettingService settingService,
                                                IEmployeeInfoService employeeInfoService,
                                                ITotalEmployeeHoursPerCompanyService totalEmployeeHourService,
                                                IEmployeeService employeeService,
                                                IEmployeePayrollItemPerCompanyService employeePayrollItemService,
                                                IEmployeePayrollService employeePayrollService)
        {
            _unitOfWork = unitOfWork;
            _employeePayrollRepository  = employeeePayrollRepository;
            _settingService             = settingService;
            _employeeInfoService        = employeeInfoService;
            _employeeService            = employeeService;
            _totalEmployeeHoursService  = totalEmployeeHourService;
            _employeePayrollItemService = employeePayrollItemService;
            _employeePayrollService     = employeePayrollService;

            _frequency = (FrequencyType)Convert
                         .ToInt32(_settingService.GetByKey(PAYROLL_FREQUENCY));
        }