public PayrollUI() { InitializeComponent(); payrollRepository = EntityContainer.GetType <IPayrollRepository>(); userAccessRepository = EntityContainer.GetType <IUserAccessRepository>(); employeeRepository = EntityContainer.GetType <IEmployeeRepository>(); }
public LocationRepositoryV1(IConnectionFactory connectionFactory, ILogManager logManager, IPayrollRepository payrollRepository) : base(connectionFactory, logManager, new LocationsDto()) { _payrollRepository = payrollRepository; }
public CustomerController(ILogger <CustomerController> logger, ICustomerRepository customerRepository, IPayrollRepository payrollRepository, IUserRepository userRepository, IJwtAuthManager jwtAuthManager) { this.logger = logger; this.customerRepository = customerRepository; this.payrollRepository = payrollRepository; this.userRepository = userRepository; this.jwtAuthManager = jwtAuthManager; }
public PayrollService(IPayrollRepository payrollRepository) { this._payrollRepository = payrollRepository; if (!string.IsNullOrEmpty(CurrentUser.DbName)) { this._dbName = CurrentUser.DbName; } }
public MainUI() { InitializeComponent(); companyRepository = EntityContainer.GetType <ICompanyRepository>(); absenceRepository = EntityContainer.GetType <IAbsenceRepository>(); workCalendarRepository = EntityContainer.GetType <IWorkCalendarRepository>(); payrollRepository = EntityContainer.GetType <IPayrollRepository>(); userAccessRepository = EntityContainer.GetType <IUserAccessRepository>(); }
public WorkCalendarUI() { InitializeComponent(); workCalendarRepository = EntityContainer.GetType <IWorkCalendarRepository>(); userAccessRepository = EntityContainer.GetType <IUserAccessRepository>(); incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); payrollRepository = EntityContainer.GetType <IPayrollRepository>(); employeeDebtItemRepository = EntityContainer.GetType <IEmployeeDebtItemRepository>(); }
public PayrollHistoryUI(PayrollUI frmPayroll) { payrollRepository = EntityContainer.GetType <IPayrollRepository>(); this.frmPayroll = frmPayroll; formActive = "PayrollUI"; InitializeComponent(); }
public ExportUI() { payrollRepository = EntityContainer.GetType <IPayrollRepository>(); transferRepository = EntityContainer.GetType <ITransferRepository>(); thrRepository = EntityContainer.GetType <ITHRRepository>(); incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); InitializeComponent(); }
public ParamDateUI() { InitializeComponent(); payrollRepository = EntityContainer.GetType <IPayrollRepository>(); thrRepository = EntityContainer.GetType <ITHRRepository>(); companyRepository = EntityContainer.GetType <ICompanyRepository>(); incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); overTimeRepository = EntityContainer.GetType <IOverTimeRepository>(); employeeDebtItemRepository = EntityContainer.GetType <IEmployeeDebtItemRepository>(); }
public ClosingPeriodUI(MainUI frmMain) { InitializeComponent(); this.frmMain = frmMain; workCalendarRepository = EntityContainer.GetType <IWorkCalendarRepository>(); incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); payrollRepository = EntityContainer.GetType <IPayrollRepository>(); employeeDebtItemRepository = EntityContainer.GetType <IEmployeeDebtItemRepository>(); overTimeRepository = EntityContainer.GetType <IOverTimeRepository>(); }
public Boolean Update(Dependent current) { IPayrollRepository repo = GetRepository(); Dependent original = repo.GetDependentById(current.Id); if (original != null) { current.RelationshipId = original.RelationshipId; return(repo.Update(current, original)); } return(false); }
public Decimal GetEmployeeCost(Int32 id) { IPayrollRepository repo = GetRepository(); Decimal cost = 0; Employee employee = repo.GetEmployeeById(id); if (employee != null) { BenefitCalculator calc = new BenefitCalculator(employee.BenefitPlan, employee.PayCycle, new NameDiscount()); cost = calc.CalculatePayPeriodCost(employee); } return(cost); }
public Decimal GetDependentCost(Int32 id) { IPayrollRepository repo = GetRepository(); Decimal cost = 0; Dependent dependent = repo.GetDependentById(id); if (dependent != null) { BenefitCalculator calc = new BenefitCalculator(dependent.Employee.BenefitPlan, dependent.Employee.PayCycle, new NameDiscount()); cost = calc.CalculatePayPeriodCost(dependent); } return(cost); }
// PUT api/Employee public Boolean Update(Employee current) { IPayrollRepository repo = GetRepository(); Employee original = repo.GetEmployeeById(current.Id); if (original != null) { current.BenefitPlanId = original.BenefitPlanId; current.MonthlyGross = original.MonthlyGross; current.PayCycleId = original.PayCycleId; return(repo.Update(current, original)); } return(false); }
public PayrollServices(IPayrollRepository payrollRepository, ILookupRepository lookupRepository, IEmployeeRepository employeeRepository, IPayrollViewModelFactory payrollViewModelFactory, ILevelGradeRepository levelGradeRepository, ICompanyRepository companyRepository, IEmployeeDeductionRepository employeeDeductionRepository, IRewardRepository rewardRepository, ILoanRepository loanRepository, IEmployeeOnBoardRepository employeeOnBoardRepository, IUsersRepository usersRepository, ILevelRepository levelRepository, IGradeRepository gradeRepository, IBenefitRepository benefitRepository, IDigitalFileRepository digitalFileRepository, ISessionStateService session) { this.lookupRepository = lookupRepository; this.payrollRepository = payrollRepository; this.payrollViewModelFactory = payrollViewModelFactory; this.levelGradeRepository = levelGradeRepository; this.employeeRepository = employeeRepository; this.employeeDeductionRepository = employeeDeductionRepository; this.companyRepository = companyRepository; this.rewardRepository = rewardRepository; this.loanRepository = loanRepository; this.usersRepository = usersRepository; this.levelRepository = levelRepository; this.gradeRepository = gradeRepository; this.benefitRepository = benefitRepository; this.employeeOnBoardRepository = employeeOnBoardRepository; this.digitalFileRepository = digitalFileRepository; this.session = session; }
public void SetUp() { payrollRepository = PayrollRepository.GetInstance(); }
public DeductionService(IPayrollRepository payrollRepository) { _payrollRepository = payrollRepository; }
public PayrollServices(IPayrollRepository repository, IModelDataAnnotationCheck modelData) { this.repository = repository; this.modelCheck = modelData; }
public PaycheckService(IDeductionService deductionService, IPayrollRepository payrollRepository) { _deductionService = deductionService; _payrollRepository = payrollRepository; }
public PayrollApplicationService(ILogManager logManager, IPayrollRepository payrollRepository) { _logManager = logManager; _payrollRepository = payrollRepository; }
public HsaService(IPayrollRepository payrollRepository) { _payrollRepository = payrollRepository; }
protected BaseTransaction() { payrollRepository = PayrollRepository.GetInstance(); }
public PayrollDispatcher(IPayrollRepository repository) { _repository = repository; }
public PayrollController(IPayrollRepository repository) { _repository = repository; }
public PayrollService(IPayrollRepository caseRepo, SessionHelper sessionHelper) : base(sessionHelper) { _payrollRepository = caseRepo; }
public PayrollController(IPayrollRepository _payrollRepository) { payrollRepository = _payrollRepository; }