public void Initialize() { //Arrange var databaseFactory = new DatabaseFactory(); _unitOfWork = new UnitOfWork(databaseFactory); _employeeWorkScheduleRepository = new EmployeeWorkScheduleRepository(databaseFactory); _employeeDailyPayrollRepository = new EmployeeDailyPayrollRepository(databaseFactory); _totalEmployeeHoursRepository = new TotalEmployeeHoursRepository(databaseFactory); _employeeWorkScheduleRepository = new EmployeeWorkScheduleRepository(databaseFactory); _holidayRepository = new HolidayRepository(databaseFactory); _employeeInfoRepository = new EmployeeInfoRepository(databaseFactory); _employeeHoursRepository = new EmployeeHoursRepository(databaseFactory); _settingRepository = new SettingRepository(databaseFactory); _totalEmployeeHoursService = new TotalEmployeeHoursService(_unitOfWork, _totalEmployeeHoursRepository, null, _settingService); _employeeWorkScheduleService = new EmployeeWorkScheduleService(_employeeWorkScheduleRepository); _holidayService = new HolidayService(_holidayRepository, _settingRepository, _unitOfWork); _settingService = new SettingService(_settingRepository); _employeeInfoService = new EmployeeInfoService(_employeeInfoRepository); _employeeSalaryService = new EmployeeSalaryService(); _employeeDailyPayrollService = new EmployeeDailyPayrollService(_unitOfWork, _totalEmployeeHoursService, _employeeWorkScheduleService, _holidayService, _settingService, _employeeDailyPayrollRepository, _employeeInfoService, _employeeSalaryService); }
public void Initialize() { //Arrange var databaseFactory = new DatabaseFactory(); _unitOfWork = new UnitOfWork(databaseFactory); _settingRepository = new SettingRepository(databaseFactory); _employeeInfoRepository = new EmployeeInfoRepository(databaseFactory); _employeeDeductionRepository = new EmployeeDeductionRepository(databaseFactory); _deductionRepository = new DeductionRepository(databaseFactory); _employeePayrollRepository = new EmployeePayrollRepository(databaseFactory); _employeePayrollDeductionRepository = new EmployeePayrollDeductionRepository(databaseFactory); _taxRepository = new TaxRepository(databaseFactory); _totalEmployeeHoursRepository = new TotalEmployeeHoursRepository(databaseFactory); _settingService = new SettingService(_settingRepository); _employeeSalaryService = new EmployeeSalaryService(); _employeeInfoService = new EmployeeInfoService(_employeeInfoRepository); _employeeDeductionService = new EmployeeDeductionService(_employeeDeductionRepository); _deductionService = new DeductionService(_deductionRepository); _totalEmployeeHoursService = new TotalEmployeeHoursService(_unitOfWork, _totalEmployeeHoursRepository, null, _settingService); _taxService = new TaxService(_taxRepository); _employeePayrollDeductionService = new EmployeePayrollDeductionService(_unitOfWork, _settingService, _employeeSalaryService, _employeeInfoService, _employeeDeductionService, _deductionService, _employeePayrollDeductionRepository, _taxService); }
public EmployeeOverviewViewModel(IEmployeeInfoService employeeInfoService, IDialogService dialogService) { this.employeeInfoService = employeeInfoService; this.dialogService = dialogService; WeakReferenceMessenger.Default.Register <UpdateEmployeeListMessage>(this, OnUpdateEmployeeListMessageReceived); LoadEmployeeData(); InitializeCommands(); }
private EmployeeInfoAPIController GetController(IEmployeeInfoService employeeInfoService) { var controller = new EmployeeInfoAPIController(employeeInfoService) { Request = new HttpRequestMessage(), Configuration = new HttpConfiguration() }; return(controller); }
public void Initialize() { //Arrange var databaseFactory = new DatabaseFactory(); _unitOfWork = new UnitOfWork(databaseFactory); _employeeDailyPayrollRepository = new EmployeeDailyPayrollRepository(databaseFactory); _employeePayrollRepository = new EmployeePayrollRepository(databaseFactory); _settingRepository = new SettingRepository(databaseFactory); _employeePayrollDeductionRepository = new EmployeePayrollDeductionRepository(databaseFactory); _employeeInfoRepository = new EmployeeInfoRepository(databaseFactory); _totalEmployeeHoursRepository = new TotalEmployeeHoursRepository(databaseFactory); _deductionRepository = new DeductionRepository(databaseFactory); _employeeDeductionRepository = new EmployeeDeductionRepository(databaseFactory); _taxRepository = new TaxRepository(databaseFactory); _employeeRepository = new EmployeeRepository(databaseFactory, null); _employeePayrollItemRepository = new EmployeePayrollItemRepository(databaseFactory); _employeeAdjustmentRepository = new EmployeeAdjustmentRepository(databaseFactory); _settingService = new SettingService(_settingRepository); _employeeDailyPayrollService = new EmployeeDailyPayrollService(_unitOfWork, null, null, null, null, _employeeDailyPayrollRepository, null, null); _employeeInfoService = new EmployeeInfoService(_employeeInfoRepository); _deductionService = new DeductionService(_deductionRepository); _employeeDeductionService = new EmployeeDeductionService(_employeeDeductionRepository); _taxService = new TaxService(_taxRepository); _employeePayrollDeductionService = new EmployeePayrollDeductionService(_unitOfWork, _settingService, null, _employeeInfoService, _employeeDeductionService, _deductionService, _employeePayrollDeductionRepository, _taxService); _employeeService = new EmployeeService(_employeeRepository); _totalEmployeeHoursService = new TotalEmployeeHoursService(_unitOfWork, _totalEmployeeHoursRepository, null, _settingService); _employeePayrollItemService = new EmployeePayrollItemService(_unitOfWork, _employeePayrollItemRepository, null, null, null, null, null, null, null, null, null, null, null); _employeeAdjusmentService = new EmployeeAdjustmentService(_employeeAdjustmentRepository, _employeeRepository); _employeePayrollAllowanceService = new EmployeePayrollAllowanceService(_settingService, _totalEmployeeHoursService); _employeePayrollService = new EmployeePayrollService(_unitOfWork, _employeePayrollRepository, _settingService, _employeePayrollDeductionService, _employeeInfoService, _totalEmployeeHoursService, _employeeService, _totalEmployeeHoursService, _employeePayrollItemService, _employeeAdjusmentService, _employeePayrollAllowanceService); //Update settings var settingsPayrollStartDate = _settingRepository.GetSettingByKey("PAYROLL_WEEK_START"); _settingRepository.Update(settingsPayrollStartDate); settingsPayrollStartDate.Value = "3"; var settingsPayrollEndDate = _settingRepository.GetSettingByKey("PAYROLL_WEEK_END"); _settingRepository.Update(settingsPayrollEndDate); settingsPayrollEndDate.Value = "2"; var settingsPayrollReleaseDate = _settingRepository.GetSettingByKey("PAYROLL_WEEK_RELEASE"); _settingRepository.Update(settingsPayrollReleaseDate); settingsPayrollReleaseDate.Value = "3"; _unitOfWork.Commit(); }
public EmployeeDailyPayrollService(IUnitOfWork unitOfWork, ITotalEmployeeHoursService totalEmployeeHoursService, IEmployeeWorkScheduleService employeeWorkScheduleService, IHolidayService holidayService, ISettingService settingService, IEmployeeDailyPayrollRepository employeeDailyPayrollRepository, IEmployeeInfoService employeeInfoService, IEmployeeSalaryService employeeSalaryService) { _unitOfWork = unitOfWork; _totalEmployeeHoursService = totalEmployeeHoursService; _employeeWorkScheduleService = employeeWorkScheduleService; _holidayService = holidayService; _settingService = settingService; _employeeInfoService = employeeInfoService; _employeeDailyPayrollRepository = employeeDailyPayrollRepository; _employeeSalaryService = employeeSalaryService; }
public EmployeeService( IERPUnitOfWork context, IEmployeeInfoService employeeInfoService, ILogger <EmployeeService> logger, IHttpContextAccessor httpContext, IImageServerService imageServerService) { _context = context; _employeeInfoService = employeeInfoService; _logger = logger; base._httpContext = httpContext; _imageServerService = imageServerService; }
public EmployeeHoursService(IUnitOfWork unitOfWork, IEmployeeHoursRepository employeeHoursRepository, IAttendanceService attendanceService, ISettingService settingService, IEmployeeWorkScheduleService employeeWorkScheduleService, IEmployeeInfoService employeeInfoService) { _employeeHoursRepository = employeeHoursRepository; _unitOfWork = unitOfWork; _attendanceService = attendanceService; _settingService = settingService; _employeeWorkScheduleService = employeeWorkScheduleService; _employeeInfoService = employeeInfoService; }
public EmployeePayrollDeductionService(IUnitOfWork unitOfWork, ISettingService settingService, IEmployeeSalaryService employeeSalaryService, IEmployeeInfoService employeeInfoService, IEmployeeDeductionService employeeDeductionService, IDeductionService deductionService, IEmployeePayrollDeductionRepository employeePayrollDeductionRepository, ITaxService taxService) { _unitOfWork = unitOfWork; _settingService = settingService; _employeeSalaryService = employeeSalaryService; _employeeInfoService = employeeInfoService; _employeeDeductionService = employeeDeductionService; _deductionService = deductionService; _employeePayrollDeductionRepository = employeePayrollDeductionRepository; _taxService = taxService; }
public EmployeePayrollItemPerCompanyService(IUnitOfWork unitOfWork, IEmployeePayrollItemPerCompanyRepository employeePayrollItemPerCompanyRepository, ITotalEmployeeHoursPerCompanyService totalEmployeeHoursPerCompanyService, IEmployeeWorkScheduleService employeeWorkScheduleService, IHolidayService holidayService, ISettingService settingService, IEmployeeInfoService employeeInfoService, IEmployeeSalaryService employeeSalaryService, IEmployeePayrollPerCompanyRepository employeePayrollRepository, IEmployeeLeaveRepository employeeLeaveRepository) : base(employeePayrollItemPerCompanyRepository) { _employeePayrollItemPerCompanyRepository = employeePayrollItemPerCompanyRepository; _unitOfWork = unitOfWork; _totalEmployeeHoursPerCompanyService = totalEmployeeHoursPerCompanyService; _employeeWorkScheduleService = employeeWorkScheduleService; _holidayService = holidayService; _settingService = settingService; _employeeInfoService = employeeInfoService; _employeeSalaryService = employeeSalaryService; _employeePayrollRepository = employeePayrollRepository; _employeeLeaveRepository = employeeLeaveRepository; }
//private IDeptViewService _deptViewService; //private IJobViewService _jobViewService; //private IOtherCodeViewService _otherCodeViewService; /// <summary> /// 建構子 /// </summary> /// <param name="employeeService">員工基本服務</param> /// <param name="employeeListService">員工清單服務</param> /// <param name="employeeViewService">員工檢視表服務</param> ///// <param name="deptViewService">部門檢視表服務</param> ///// <param name="jobViewService">職稱檢視表服務</param> public EmployeeController(IEmployeeInfoService employeeService , IEmployeeListService employeeListService , IEmployeeViewService employeeViewService, IEmployeeRoleService employeeRoleService, ILogger logger //, IDeptViewService deptViewService //, IJobViewService jobViewService //,IOtherCodeViewService otherCodeViewService ) { _employeeService = employeeService; _employeeListService = employeeListService; _employeeViewService = employeeViewService; _employeeRoleService = employeeRoleService; _logger = logger; //_deptViewService = deptViewService; //_jobViewService = jobViewService; //_otherCodeViewService = otherCodeViewService; }
public EmployeePayrollService(IUnitOfWork unitOfWork, IEmployeePayrollRepository employeeePayrollRepository, ISettingService settingService, IEmployeePayrollDeductionService employeePayrollDeductionService, IEmployeeInfoService employeeInfoService, ITotalEmployeeHoursService totalEmployeeHourService, IEmployeeService employeeService, ITotalEmployeeHoursService totalEmployeeHoursService, IEmployeePayrollItemService employeePayrollItemService, IEmployeeAdjustmentService employeeAdjustmentService, IEmployeePayrollAllowanceService employeePayrollAllowanceService) { _unitOfWork = unitOfWork; _employeePayrollRepository = employeeePayrollRepository; _settingService = settingService; _employeePayrollDeductionService = employeePayrollDeductionService; _employeeInfoService = employeeInfoService; _totalEmployeeHourService = totalEmployeeHourService; _employeeService = employeeService; _totalEmployeeHoursService = totalEmployeeHoursService; _employeePayrollItemService = employeePayrollItemService; _employeeAdjustmentService = employeeAdjustmentService; _employeePayrollAllowanceService = employeePayrollAllowanceService; _frequency = (FrequencyType)Convert .ToInt32(_settingService.GetByKey(PAYROLL_FREQUENCY)); }
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 EmployeePayrollItemService(IUnitOfWork unitOfWork, IEmployeePayrollItemRepository employeePayrollItemRepository, ITotalEmployeeHoursService totalEmployeeHoursService, IEmployeeWorkScheduleService employeeWorkScheduleService, IHolidayService holidayService, ISettingService settingService, IEmployeeInfoService employeeInfoService, IEmployeeSalaryService employeeSalaryService, IEmployeePayrollRepository employeePayrollRepository, IEmployeePayrollDeductionRepository employeePayrollDeductionRepository, IEmployeeAdjustmentRepository employeeAdjustmentRepository, IAdjustmentRepository adjustmentRepository, IEmployeeLeaveRepository employeeLeaveRepository) : base(employeePayrollItemRepository) { _employeePayrollItemRepository = employeePayrollItemRepository; _unitOfWork = unitOfWork; _totalEmployeeHoursService = totalEmployeeHoursService; _employeeWorkScheduleService = employeeWorkScheduleService; _holidayService = holidayService; _settingService = settingService; _employeeInfoService = employeeInfoService; _employeeSalaryService = employeeSalaryService; _employeePayrollRepository = employeePayrollRepository; _employeePayrollDeductionRepository = employeePayrollDeductionRepository; _employeeAdjustmentRepository = employeeAdjustmentRepository; _adjustmentRepository = adjustmentRepository; _employeeLeaveRepository = employeeLeaveRepository; }
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); }
public LeaveApplicationService(IEmployeeInfoService employeeInfoService) { _employeeInfoService = employeeInfoService ?? throw new ArgumentNullException(nameof(employeeInfoService)); leaves = new List <LeaveApplication> { new LeaveApplication { EmpNo = 1, StartDate = DateTime.Now.AddDays(-1), EndDate = DateTime.Now.AddDays(1) }, new LeaveApplication { EmpNo = 2, StartDate = DateTime.Now.AddDays(-1), EndDate = DateTime.Now.AddDays(1) }, new LeaveApplication { EmpNo = 3, StartDate = DateTime.Now.AddDays(-1), EndDate = DateTime.Now.AddDays(1) }, new LeaveApplication { EmpNo = 4, StartDate = DateTime.Now.AddDays(-1), EndDate = DateTime.Now.AddDays(1) }, new LeaveApplication { EmpNo = 4, StartDate = DateTime.Now.AddDays(-2), EndDate = DateTime.Now.AddDays(-2) }, }; }
public EmployeeController(IEmployeeInfoService _employeeService) { employeeService = _employeeService; }
public EmployeeDetailViewModel(IEmployeeInfoService employeeInfoService) { this.employeeInfoService = employeeInfoService; WeakReferenceMessenger.Default.Register <Employee>(this, OnEmployeeEdit); InitializeCommands(); }
public EmployeeInfoAPIController(IEmployeeInfoService employeeInfoService) { _service = employeeInfoService; }
public UserManagementController(IEmployeeInfoService employeeInfoService) { this._employeeInfoService = employeeInfoService; }
public SearchResultsViewModel(IEmployeeInfoService employeeInfoService) { this.employeeInfoService = employeeInfoService; SearchCommand = new CustomCommand(SearchEmployeeName, CanSearchEmployeeName); }
public PersonalInfoController(IEmployeeInfoService employeeInfoService) { this._employeeInfoService = employeeInfoService; }
public GenerateSigningController(ILogger <GenerateSigningController> logger, IWebHostEnvironment env, IEmployeeInfoService employeeInfoService) { _logger = logger; _env = env; _employeeInfoService = employeeInfoService; }
public EmployeeController(IEmployeeInfoService employeeService) { _employeeService = employeeService; }
/// <summary> /// Injecting dependency using constructor /// </summary> /// <param name="empserv"></param> public EmployeeInfoController(IEmployeeInfoService empserv) { EmployeeInfoService = empserv; }