Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="App" /> class.
 /// </summary>
 /// <param name="salaryService">The salary service.</param>
 /// <param name="appConfig">The application configuration.</param>
 public App(
     ISalaryService salaryService,
     AppConfig appConfig)
 {
     _salaryService = salaryService;
     _appConfig     = appConfig;
 }
Exemplo n.º 2
0
 public SalaryController(UserManager <AppUser> userManager, ISalaryService salaryService,
                         IDepartmentService departmentService)
 {
     this.userManager       = userManager;
     this.salaryService     = salaryService;
     this.departmentService = departmentService;
 }
Exemplo n.º 3
0
 public WorkerManager(IWorkerDal workerDal, ISalaryService salaryService, IMapper mapper, IWorkerDepartmentTypeService workerDepartmentTypeService)
 {
     _workerDal     = workerDal;
     _salaryService = salaryService;
     _mapper        = mapper;
     _workerDepartmentTypeService = workerDepartmentTypeService;
 }
Exemplo n.º 4
0
        public EmployeeService(IEmployeeRepository employeeRepository, IDepartmentService departmentService, ISalaryService salaryService)
        {
            _employeeRepository = employeeRepository;

            _departmentService = departmentService;
            _salaryService     = salaryService;
        }
Exemplo n.º 5
0
 public SalaryController(ISalaryService salaryService, ICurrencyService currencyService, ICountryService countryService, ITaxService taxService, IBankAccountService bankAccountService) : base(bankAccountService)
 {
     this._salaryService   = salaryService;
     this._currencyService = currencyService;
     this._countryService  = countryService;
     this._taxService      = taxService;
 }
 public salariesController(
     ISalaryService salaryService,
     IEmployeeService employeeService
     )
 {
     _salaryService   = salaryService;
     _employeeService = employeeService;
 }
Exemplo n.º 7
0
 public GeneralController(ICompanyService companyService, IUserService userService, IPositionService positionService,IEmployeeService employeeService, IContractService contractService,ISalaryService salaryService)
 {
     this.userService = userService;
     this.companyService = companyService;
     this.positionService = positionService;
     this.employeeService = employeeService;
     this.contractService = contractService;
     this.salaryService = salaryService;
 }
Exemplo n.º 8
0
 public SalaryController(ITableColumnService tableColumnService, IMasterDataService masterDataService, ITableConfigService tableConfigService, ISalaryService salaryService)
 {
     _masterDataService  = masterDataService;
     _tableColumnService = tableColumnService;
     _tableConfigService = tableConfigService;
     _salaryService      = salaryService;
     this._languageId    = CurrentUser.LanguageId;
     this._userId        = CurrentUser.UserId;
     this._roleId        = CurrentUser.RoleId;
 }
Exemplo n.º 9
0
 public SalaryPlugin(
     ILogger <SalaryPlugin> logger,
     IConfiguration configuration,
     ISalaryService salaryService,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _logger        = logger;
     _configuration = configuration;
     _salaryService = salaryService;
 }
Exemplo n.º 10
0
 public ProjectWorkerWorkingTimeManager(IProjectWorkerWorkingTimeDal projectWorkerWorkingTimeDal, IProjectWorkerService projectWorkerService, IProjectSectionDepartmentService projectSectionDepartmentService, IProjectSectionService projectSectionService, IProjectService projectService, IWorkerService workerService, IMapper mapper, ISalaryService salaryService)
 {
     _projectWorkerWorkingTimeDal     = projectWorkerWorkingTimeDal;
     _projectWorkerService            = projectWorkerService;
     _projectSectionDepartmentService = projectSectionDepartmentService;
     _projectSectionService           = projectSectionService;
     _projectService = projectService;
     _workerService  = workerService;
     _mapper         = mapper;
     _salaryService  = salaryService;
 }
Exemplo n.º 11
0
 public Engine(ISalaryService salaryService,
               IWriter writer,
               IReader reader)
 {
     this.salaryService = salaryService
                          ?? throw new ArgumentNullException(nameof(salaryService));
     this.writer = writer
                   ?? throw new ArgumentNullException(nameof(writer));
     this.reader = reader
                   ?? throw new ArgumentNullException(nameof(reader));
 }
 public EmployeesController(
     IEmployeeService employeeService,
     IAddressService addressService,
     ISalaryService salaryService,
     IMapper mapper)
 {
     _employeeService = employeeService;
     _addressService  = addressService;
     _salaryService   = salaryService;
     _mapper          = mapper;
 }
Exemplo n.º 13
0
 public EmployeeController(UserManager<ApplicationUser> UserManager, IExperienceService experienceService, ISalaryService salaryService, IEmployeeService employeeService, ICompanyService companyService, ITerminateService terminateService, IPositionService positionService, IContractService contractService, IInsuranceService insuranceService)
 {
     this.employeeService = employeeService;
     this.companyService = companyService;
     this.terminateService = terminateService;
     this.positionService = positionService;
     this.contractService = contractService;
     this.insuranceService = insuranceService;
     this.salaryService = salaryService;
     this.experienceService = experienceService;
     this.userManager = UserManager;
 }
Exemplo n.º 14
0
 public HomeController(ILogger <HomeController> logger, IEmployeeService employeeService, IDepartmentService departmentService,
                       IDeptEmpService deptEmpService, IDeptManagerService deptManagerService, ISalaryService salaryService, ITitleService titleService
                       )
 {
     _logger             = logger;
     _employeeService    = employeeService;
     _departmentService  = departmentService;
     _deptEmpService     = deptEmpService;
     _deptManagerService = deptManagerService;
     _salaryService      = salaryService;
     _titleService       = titleService;
 }
 public JobProfileIndexEnhancer(
     IJobProfileRepository jobProfileRepository,
     IJobProfileCategoryRepository jobProfileCategoryRepository,
     ISalaryService salaryService,
     ISalaryCalculator salaryCalculator,
     IApplicationLogger applicationLogger)
 {
     this.jobProfileRepository         = jobProfileRepository;
     this.jobProfileCategoryRepository = jobProfileCategoryRepository;
     this.salaryService     = salaryService;
     this.salaryCalculator  = salaryCalculator;
     this.applicationLogger = applicationLogger;
 }
Exemplo n.º 16
0
 public SalaryController(ITableColumnService tableColumnService, IMasterDataService masterDataService, ITableConfigService tableConfigService, ISalaryService salaryService, ISalaryElementService salaryElementService, IStaffService staffService, IOrganizationService organizationService, ILocalizationService localizationService)
 {
     _masterDataService    = masterDataService;
     _tableColumnService   = tableColumnService;
     _tableConfigService   = tableConfigService;
     _salaryService        = salaryService;
     _salaryElementService = salaryElementService;
     _staffService         = staffService;
     _organizationService  = organizationService;
     _localizationService  = localizationService;
     this._languageId      = CurrentUser.LanguageId;
     this._userId          = CurrentUser.UserId;
     this._roleId          = CurrentUser.RoleId;
 }
Exemplo n.º 17
0
        public ActionResult <bool> Post([FromServices] ISalaryService service, webapi.dto.Employee employee)
        {
            if (double.TryParse(employee.Rate, out double rateNum) == false)
            {
                return(BadRequest());
            }

            return(Ok(service.Save(new salary.dto.Employee()
            {
                Name = employee.Name,
                Kind = employee.Kind,
                Rate = rateNum
            })));
        }
Exemplo n.º 18
0
 public HumanPresentation(
     IUserRepository userRepository,
     IDepartmentRepository departmentRepository,
     IMapper mapper,
     IEmployeRepository employeRepository,
     IUserService userService,
     IAccrualRepository accrualRepository,
     ISalaryService salaryService,
     IBankAccountRepository bankAccountRepository)
 {
     _userRepository       = userRepository;
     _departmentRepository = departmentRepository;
     _mapper                = mapper;
     _employeRepository     = employeRepository;
     _userService           = userService;
     _accrualRepository     = accrualRepository;
     _salaryService         = salaryService;
     _bankAccountRepository = bankAccountRepository;
 }
 public JobProfileService(
     IJobProfileSynopsisService jobProfileSynopsisService,
     IHowToBecomeService howToBecomeService,
     ISkillsService skillsService,
     IWhatYouWillDoService whatYouWillDoService,
     ICareerPathService careerPathService,
     ICurrentOppurtunitiesService currentOppurtunitiesService,
     ISalaryService salaryService,
     IWorkingPatternsService workingPatternsService
     )
 {
     this.jobProfileSynopsisService   = jobProfileSynopsisService;
     this.howToBecomeService          = howToBecomeService;
     this.skillsService               = skillsService;
     this.whatYouWillDoService        = whatYouWillDoService;
     this.careerPathService           = careerPathService;
     this.currentOppurtunitiesService = currentOppurtunitiesService;
     this.salaryService               = salaryService;
     this.workingPatternsService      = workingPatternsService;
 }
Exemplo n.º 20
0
        public ActionResult <webapi.dto.Employee> GetEmployeeWithMaxHourlyRate([FromServices] ISalaryService service)
        {
            var employee = _mapper.Map <EmployeeBase, webapi.dto.Employee>(service.GetEmployeeWithMaxHourlyRate());

            return(Ok(employee));
        }
Exemplo n.º 21
0
 public SalaryCommand(IConfiguration configuration, IStringLocalizer stringLocalizer, ISalaryService salaryService, IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _configuration   = configuration;
     _salaryService   = salaryService;
     _stringLocalizer = stringLocalizer;
 }
Exemplo n.º 22
0
 public EmployeeListProvider(IEmployeesRepository employeesRepository, IEmployeeCodeService employeeCodeService, ISalaryService salaryService)
 {
     this.employeesRepository = employeesRepository;
     this.employeeCodeService = employeeCodeService;
     this.salaryService       = salaryService;
 }
Exemplo n.º 23
0
 public SalaryController(ISalaryService salaryService)
 {
     _salaryService = salaryService;
 }
 public StaticController(ISalaryService salaryService)
 {
     this.salaryService = salaryService;
 }
 public Processing(IEmployeeService employeeService, IDepartmentService departmentService, ISalaryService salaryService)
 {
     this.employeeService = employeeService;
     this.departmentService = departmentService;
     this.salaryService = salaryService;
 }
Exemplo n.º 26
0
 public SalariesController(IEmployeeService employeeService, ISalaryService salaryService)
 {
     this.employeeService = employeeService;
     this.salaryService   = salaryService;
 }
Exemplo n.º 27
0
 public SalaryController(ISalaryService SalaryService)
 {
     _SalaryService = SalaryService;
 }
Exemplo n.º 28
0
 public EmployeesController(IEmployeeService employeeService, ITitleService titleService, ISalaryService salaryService)
 {
     _employeeService = employeeService;
     _titleService    = titleService;
     _salaryService   = salaryService;
 }
Exemplo n.º 29
0
 public void SetUp()
 {
     _salaryService = new HourlySalaryService();
 }
Exemplo n.º 30
0
        public async Task <ActionResult <webapi.dto.Employee> > GetEmployee([FromServices] ISalaryService service, string name)
        {
            var employee = _mapper.Map <EmployeeBase, webapi.dto.Employee>(service.Get(name));

            return(await Task.FromResult <ActionResult <webapi.dto.Employee> >(Ok(employee)));
        }
Exemplo n.º 31
0
        public ActionResult <IEnumerable <webapi.dto.Employee> > GetEmployees([FromServices] ISalaryService service, [FromQuery] long limit = 2, [FromQuery] long offset = 0)
        {
            var employees = _mapper.Map <IEnumerable <EmployeeBase>, IReadOnlyList <webapi.dto.Employee> >(service.GetMany(limit, offset));

            return(Ok(employees));
        }
Exemplo n.º 32
0
 public SalaryController(ISalaryService _service)
 {
     service = _service;
 }
Exemplo n.º 33
0
 public ActionResult <double> GetTotalSalarySum([FromServices] ISalaryService service)
 {
     return(Ok(service.GetMonthlyCost()));
 }