示例#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;
 }
示例#2
0
 public SalaryController(UserManager <AppUser> userManager, ISalaryService salaryService,
                         IDepartmentService departmentService)
 {
     this.userManager       = userManager;
     this.salaryService     = salaryService;
     this.departmentService = departmentService;
 }
示例#3
0
 public WorkerManager(IWorkerDal workerDal, ISalaryService salaryService, IMapper mapper, IWorkerDepartmentTypeService workerDepartmentTypeService)
 {
     _workerDal     = workerDal;
     _salaryService = salaryService;
     _mapper        = mapper;
     _workerDepartmentTypeService = workerDepartmentTypeService;
 }
        public EmployeeService(IEmployeeRepository employeeRepository, IDepartmentService departmentService, ISalaryService salaryService)
        {
            _employeeRepository = employeeRepository;

            _departmentService = departmentService;
            _salaryService     = salaryService;
        }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#9
0
 public SalaryPlugin(
     ILogger <SalaryPlugin> logger,
     IConfiguration configuration,
     ISalaryService salaryService,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _logger        = logger;
     _configuration = configuration;
     _salaryService = salaryService;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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
            })));
        }
示例#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;
 }
示例#20
0
        public ActionResult <webapi.dto.Employee> GetEmployeeWithMaxHourlyRate([FromServices] ISalaryService service)
        {
            var employee = _mapper.Map <EmployeeBase, webapi.dto.Employee>(service.GetEmployeeWithMaxHourlyRate());

            return(Ok(employee));
        }
示例#21
0
 public SalaryCommand(IConfiguration configuration, IStringLocalizer stringLocalizer, ISalaryService salaryService, IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _configuration   = configuration;
     _salaryService   = salaryService;
     _stringLocalizer = stringLocalizer;
 }
示例#22
0
 public EmployeeListProvider(IEmployeesRepository employeesRepository, IEmployeeCodeService employeeCodeService, ISalaryService salaryService)
 {
     this.employeesRepository = employeesRepository;
     this.employeeCodeService = employeeCodeService;
     this.salaryService       = salaryService;
 }
示例#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;
 }
示例#26
0
 public SalariesController(IEmployeeService employeeService, ISalaryService salaryService)
 {
     this.employeeService = employeeService;
     this.salaryService   = salaryService;
 }
 public SalaryController(ISalaryService SalaryService)
 {
     _SalaryService = SalaryService;
 }
示例#28
0
 public EmployeesController(IEmployeeService employeeService, ITitleService titleService, ISalaryService salaryService)
 {
     _employeeService = employeeService;
     _titleService    = titleService;
     _salaryService   = salaryService;
 }
示例#29
0
 public void SetUp()
 {
     _salaryService = new HourlySalaryService();
 }
示例#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)));
        }
示例#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));
        }
示例#32
0
 public SalaryController(ISalaryService _service)
 {
     service = _service;
 }
示例#33
0
 public ActionResult <double> GetTotalSalarySum([FromServices] ISalaryService service)
 {
     return(Ok(service.GetMonthlyCost()));
 }