public AdminAttendenceController(IEmpRepository empRepository, IWebHostEnvironment webHostEnvironment, AttendenceRepo attendenceRepo, JobRepository jobRepository)
 {
     _empRepository        = empRepository;
     _jobRepository        = jobRepository;
     _webHostEnvironment   = webHostEnvironment;
     _attendenceRepository = attendenceRepo;
 }
예제 #2
0
 public StaffHomeController(IEmpRepository empRepository, IWebHostEnvironment webHostEnvironment, LeaveRepository leaveRepository, TaskRepo taskRepository)
 {
     _taskRepository     = taskRepository;
     _leaveRepository    = leaveRepository;
     _empRepository      = empRepository;
     _webHostEnvironment = webHostEnvironment;
 }
 public AdminTimeSController(IEmpRepository empRepository, IWebHostEnvironment webHostEnvironment, TaskRepo taskRepository, JobRepository jobRepository)
 {
     _empRepository      = empRepository;
     _jobRepository      = jobRepository;
     _webHostEnvironment = webHostEnvironment;
     _taskRepository     = taskRepository;
 }
예제 #4
0
 public EmployeeQuery(IEmpRepository employeeRepository)
 {
     Field <ListGraphType <EmployeeType> >(
         "employe",
         resolve: context => employeeRepository.GetEmployees()
         );
 }
예제 #5
0
 public EmpService(IEmpRepository empRepository, ILoggerManager logger, IOptions <AppSetting> appSetting, IMapper mapper)
 {
     _empRepository = empRepository;
     _logger        = logger;
     _appSetting    = appSetting;
     _mapper        = mapper;
 }
예제 #6
0
 public EmpService(IEmpRepository empRepository, IMapper mapper, MapperConfiguration mapperConfiguration,
                   IWebHostEnvironment webHostEnvironment)
 {
     _mapperConfiguration = mapperConfiguration;
     _webHostEnvironment  = webHostEnvironment;
     _mapper        = mapper;
     _empRepository = empRepository;
 }
예제 #7
0
 public Emp_ManageController(IEmpRepository empRepository, IWebHostEnvironment webHostEnvironment, JobRepository jobRepository, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager)
 {
     _empRepository      = empRepository;
     _jobRepository      = jobRepository;
     _webHostEnvironment = webHostEnvironment;
     _userManager        = userManager;
     _signInManager      = signInManager;
 }
 public AdminLeaveController(TaskRepo taskRepo, IEmpRepository empRepository, IWebHostEnvironment webHostEnvironment, LeaveRepository leaveRepository, JobRepository jobRepository)
 {
     _empRepository      = empRepository;
     _jobRepository      = jobRepository;
     _webHostEnvironment = webHostEnvironment;
     _leaveRepository    = leaveRepository;
     _taskRepository     = taskRepo;
 }
 public EmployeeService(IApplicantsRepository applicantsRepository,
                        IMemberRepository memberRepository,
                        IEmpRepository employeeRepository, IAutoMapper autoMapper)
 {
     _memberRepository     = memberRepository;
     _employeeRepository   = employeeRepository;
     _autoMapper           = autoMapper;
     _applicantsRepository = applicantsRepository;
 }
 public EmployeeHomeController(TaskRepo taskRepo, AttendenceRepo attendenceRepo, LeaveRepository leaveRepository, IEmpRepository empRepository, IWebHostEnvironment webHostEnvironment, TimeTrackRepo timeTrackRepo, EmpStoreContext context, Repo4 repo4)
 {
     _timeTrackRepo        = timeTrackRepo;
     _empRepository        = empRepository;
     _webHostEnvironment   = webHostEnvironment;
     _context              = context;
     _leaveRepository      = leaveRepository;
     _attendenceRepository = attendenceRepo;
     _taskRepository       = taskRepo;
     _repo4 = repo4;
 }
예제 #11
0
 public TeeTimesService(ITeeTimeRepository teeTimeRepository,
                        IReserveRepository reservationRepository,
                        IMemberRepository memberRepository,
                        IEmpRepository employeeRepository, IAutoMapper autoMapper)
 {
     _teeTimeRepository     = teeTimeRepository;
     _reservationRepository = reservationRepository;
     _memberRepository      = memberRepository;
     _employeeRepository    = employeeRepository;
     _autoMapper            = autoMapper;
 }
예제 #12
0
        //
        // GET: /EmpMan/Create

        public EmpManController()
        {
            if (System.Configuration.ConfigurationManager.AppSettings["RepoType"] == "ef")
            {
                empRepo = new EFEmpRepository();
            }
            else if (System.Configuration.ConfigurationManager.AppSettings["RepoType"] == "mock")
            {
                empRepo = new MockEmpRepository();
            }
        }
예제 #13
0
파일: Helpers.cs 프로젝트: j54wang/CBRFinal
        public static List <EmpMan> FormatManager(IEmpRepository empRepo, string ln, string fn)
        {
            var           lst2 = (from c in empRepo.Emps where !(c.FirstName == fn && c.LastName == ln) select c).Distinct();
            List <Emp>    emps = lst2.ToList <Emp>();
            List <EmpMan> em   = new List <EmpMan>();

            foreach (Emp ep in emps)
            {
                string smn = ep.FirstName + "_" + ep.LastName;
                if (smn.Length >= 100)
                {
                    smn = smn.Substring(0, 98);
                }
                EmpMan nmn = new EmpMan();
                nmn.manid = smn;
                if (!em.Contains(nmn))
                {
                    em.Add(nmn);
                }
            }
            return(em);
        }
예제 #14
0
 public HRLogic(IEmpRepository empRepo, IDeptRepository deptRepo)
 {
     this.empRepo  = empRepo;
     this.deptRepo = deptRepo;
 }
예제 #15
0
 public HRLogic()
 {
     empRepo  = new EmpRepository(new HRDBContext());
     deptRepo = new DeptRepository(new HRDBContext());
 }
예제 #16
0
 public EmployeeController(IEmpRepository stateRepo)
 {
     _stateRepo = stateRepo;
 }
예제 #17
0
 public HumanResourcesService(IEmpRepository repository)
 {
     _repository = repository;
     _repository.ConnectionString = ConfigurationManager.AppSettings["externalApi.Url"];
     _dtoEmployeeInfo             = new List <EmployeeInfo>();
 }
 public ManagerLeaveController(IEmpRepository empRepository, IWebHostEnvironment webHostEnvironment, LeaveRepository leaveRepository)
 {
     _empRepository      = empRepository;
     _leaveRepository    = leaveRepository;
     _webHostEnvironment = webHostEnvironment;
 }
예제 #19
0
 public RecordService(IRecordRepository recordRepository, IEmpRepository empRepository, IPrizeRepository prizeRepository)
 {
     _prizeRepository  = prizeRepository;
     _empRepository    = empRepository;
     _recordRepository = recordRepository;
 }
예제 #20
0
 public EmpService(IEmpRepository empRepository, ILoginLogRepository loginLogRepository)
     : base(empRepository)
 {
     this._empRepository      = empRepository;
     this._loginLogRepository = loginLogRepository;
 }
예제 #21
0
 public EmployeeController(IEmpRepository repo)
 {
     _repo = repo;
 }
 public EmpChangedEventHandler(IEmpRepository empRepository, MyDbContext dbContext)
     {
     _empRepository = empRepository;
     _dbContext = dbContext;
     }
예제 #23
0
 public ModelFactory(HttpRequestMessage request, IEmpRepository repo)
 {
     _urlHelper = new UrlHelper(request);
     _repo = repo;
 }
예제 #24
0
        public EmpController(IEmpRepository <Emp> empRepository)

        {
            _empRepository = empRepository;
        }
예제 #25
0
 public ManagerTimeSController(IEmpRepository empRepository, IWebHostEnvironment webHostEnvironment, TaskRepo taskRepo)
 {
     _empRepository      = empRepository;
     _taskRepository     = taskRepo;
     _webHostEnvironment = webHostEnvironment;
 }
예제 #26
0
 public EmpController(IEmpRepository _empRepository)
 {
     empRepository = _empRepository;
 }
 public BaseEmpApiController(IEmpRepository repo)
 {
     _repo = repo;
 }
예제 #28
0
 public EmpController(IEmpRepository repos)
 {
     this.repos = repos;
 }
예제 #29
0
 public EmployeeController(IEmpRepository repo)
     : base(repo)
 {
 }
예제 #30
0
 public EmpService(IEmpRepository empRepository)
 {
     _empRepository = empRepository;
 }
예제 #31
0
 public EmpService(IUnitOfWorks unitOfWork, IEmpRepository empRepository)
     : base(unitOfWork, empRepository)
 {
     _unitOfWork    = unitOfWork;
     _empRepository = empRepository;
 }
예제 #32
0
 public ReviewDashController(IEmpRepository empRepository, LeaveRepository leaveRepository, TaskRepo taskRepository)
 {
     _taskRepository  = taskRepository;
     _leaveRepository = leaveRepository;
     _empRepository   = empRepository;
 }
예제 #33
0
 public ManagerDashController(IEmpRepository empRepository, IWebHostEnvironment webHostEnvironment)
 {
     _empRepository      = empRepository;
     _webHostEnvironment = webHostEnvironment;
 }