Пример #1
0
 public EmployeeService(IEmployeeRepo employeeRepo, IHttpClientFactory clientFactory, IOptions <AppSettings> appSettings, IMapper mapper) : base(employeeRepo)
 {
     _clientFactory = clientFactory;
     _appSettings   = appSettings.Value;
     _employeeUrl   = _appSettings.LeviathanUrl + _employeePath;
     _mapper        = mapper;
 }
 public PasswordChangeController(IEmployeeRepo repo, IClientContactInfoRepo crepo, IPasswordTools tools, IComMail mail)
 {
     _repo    = repo;
     _tools   = tools;
     _comMail = mail;
     _crepo   = crepo;
 }
Пример #3
0
 public EmployeeService(
     IEmployeeRepo employeeRepo,
     IOptions <AppSettings> appSettings)
 {
     _repository  = employeeRepo;
     _appSettings = appSettings.Value;
 }
Пример #4
0
 public EmployeeService(
     IEmployeeRepo <Employee> eRepo,
     ILogger <EmployeeService> logger)
 {
     this._eRepo  = eRepo;
     this._logger = logger;
 }
Пример #5
0
 public AdminController(ICompanyRepo compRep, IEmployeeRepo empRep, IEmployeeLoginDataRepo eldRep, ICompanyDepartmentRepo compDepRep)
 {
     this.compRep    = compRep;
     this.empRep     = empRep;
     this.eldRep     = eldRep;
     this.compDepRep = compDepRep;
 }
Пример #6
0
        private YearBonusAPI CreateYearBonusAPI()
        {
            _employee = Substitute.For <IEmployeeRepo>();
            _account  = Substitute.For <IAccountingRepo>();

            return(new YearBonusAPI(_employee, _account));
        }
 public EmployeeController(
     IEmployeeRepo employeeRepo,
     IMapper mapper)
 {
     _employeeRepo = employeeRepo;
     _mapper       = mapper;
 }
Пример #8
0
 public EmployeeQuery(IEmployeeRepo employee)
 {
     Field <ListGraphType <EmployeeType> >(
         "employees",
         resolve: context => employee.GetEmployees()
         );
 }
Пример #9
0
 public HomeController(
     IEmployeeRepo employeeRepo,
     IWebHostEnvironment host
     )
 {
     _employeeRepo = employeeRepo;
     this.host     = host;
 }
        public EmployeeController(IEmployeeRepo repo, IDepartmentRepo department, ICountryRepo country, ICityRepo city)
        {
            this.repo = repo;

            this.department = department;
            this.city       = city;
            this.country    = country;
        }
Пример #11
0
 public EmployeeService(
     IEmployeeRepo employeeRepo,
     IDepartmentRepo departmentRepo,
     IPositionRepo positionRepo)
 {
     _repository     = employeeRepo;
     _departmentRepo = departmentRepo;
     _positionRepo   = positionRepo;
 }
Пример #12
0
 public DefaultValuesService(
     IDefaultValuesRepo defaultValuesRepo,
     IDepartmentRepo departmentRepo,
     IEmployeeRepo employeeRepo)
 {
     _repository     = defaultValuesRepo;
     _departmentRepo = departmentRepo;
     _employeeRepo   = employeeRepo;
 }
Пример #13
0
 public MarkApprovalService(
     IMarkApprovalRepo markApprovalRepo,
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo)
 {
     _repository   = markApprovalRepo;
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
 }
Пример #14
0
 public Service(string conn)
 {
     this._conn       = conn;
     _artistRepo      = new ArtistDbRepo(_conn);
     _employeeRepo    = new EmployeesDbRepo(_conn);
     _officeRepo      = new OfficeDbRepo(_conn);
     _showRepo        = new ShowDbRepo(_conn);
     _transactionRepo = new TransDbRepo(_conn);
 }
Пример #15
0
 public EstimationPagesDocumentService(
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo,
     IOptions <AppSettings> appSettings)
 {
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
     _appSettings  = appSettings.Value;
 }
Пример #16
0
 public EstimateTaskService(
     IEstimateTaskRepo estimateTaskRepo,
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo)
 {
     _repository   = estimateTaskRepo;
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
 }
Пример #17
0
 public List <Employee> SearchEMPByData(string data)
 {
     using (DalSession dalSession = new DalSession())
     {
         UnitOfWork unitOfWork = dalSession.UnitOfWork();
         unitOfWork.Begin();
         _employeeRepo = new EmployeeRepo(unitOfWork);
         return(_employeeRepo.SearchEMPByData(data));
     }
 }
Пример #18
0
 public EmployeeBLRepo(int choice)
 {
     if (choice == 1)
     {
         employeeRepo = new EmployeeRepo();
     }
     else if (choice == 2)
     {
         employeeRepo = new AccessDBTable();
     }
 }
 public EmployeeBLRepo(int n)
 {
     if (n == 1)
     {
         emp = new Employee();
     }
     if (n == 2)
     {
         emp = new EmployeeRepo();
     }
 }
 private RequisitionManagementService()
 {
     requisitionRepo          = RequisitionRepo.Instance;
     requisitionDetailRepo    = RequisitionDetailRepo.Instance;
     employeeRepo             = EmployeeRepo.Instance;
     adjustmentVoucherRepo    = AdjustmentVoucherRepo.Instance;
     stationeryRepo           = StationeryRepo.Instance;
     purchaseOrderRepo        = PurchaseOrderRepo.Instance;
     purchaseOrderDetailRepo  = PurchaseOrderDetailRepo.Instance;
     emailNotificationService = EmailNotificationService.Instance;
 }
Пример #21
0
 public AdditionalWorkService(
     IAdditionalWorkRepo additionalWorkRepo,
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo,
     IDocRepo docRepo)
 {
     _repository   = additionalWorkRepo;
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
     _docRepo      = docRepo;
 }
Пример #22
0
 public DocService(
     IDocRepo docRepo,
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo,
     IDocTypeRepo docTypeRepo)
 {
     _repository   = docRepo;
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
     _docTypeRepo  = docTypeRepo;
 }
 private RequisitionCatalogueService()
 {
     cartDetailRepo           = CartDetailRepo.Instance;
     stationeryRepo           = StationeryRepo.Instance;
     requisitionRepo          = RequisitionRepo.Instance;
     requisitionDetailRepo    = RequisitionDetailRepo.Instance;
     adjustmentVoucherRepo    = AdjustmentVoucherRepo.Instance;
     employeeRepo             = EmployeeRepo.Instance;
     purchaseOrderDetailRepo  = PurchaseOrderDetailRepo.Instance;
     emailNotificationService = EmailNotificationService.Instance;
     disbursementRepo         = DisbursementRepo.Instance;
 }
Пример #24
0
        public MarkService(
            IMarkRepo markRepo,
            ISubnodeRepo subnodeRepo,
            IDepartmentRepo departmentRepo,
            IEmployeeRepo employeeRepo,
            ISpecificationService specificationService)
        {
            _repository     = markRepo;
            _subnodeRepo    = subnodeRepo;
            _departmentRepo = departmentRepo;
            _employeeRepo   = employeeRepo;

            _specificationService = specificationService;
        }
 public ConstructionDocumentService(
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo,
     IConstructionRepo constructionRepo,
     IStandardConstructionRepo standardConstructionRepo,
     IConstructionElementRepo constructionElementRepo,
     IOptions <AppSettings> appSettings)
 {
     _markRepo                 = markRepo;
     _employeeRepo             = employeeRepo;
     _constructionRepo         = constructionRepo;
     _standardConstructionRepo = standardConstructionRepo;
     _constructionElementRepo  = constructionElementRepo;
     _appSettings              = appSettings.Value;
 }
Пример #26
0
 public ChartService()
 {
     stationeryRepo              = StationeryRepo.Instance;
     categoryRepo                = CategoryRepo.Instance;
     supplierTenderRepo          = SupplierTenderRepo.Instance;
     supplierRepo                = SupplierRepo.Instance;
     adjustmentVoucherRepo       = AdjustmentVoucherRepo.Instance;
     adjustmentVoucherDetailRepo = AdjustmentVoucherDetailRepo.Instance;
     requisitionRepo             = RequisitionRepo.Instance;
     requisitionDetailRepo       = RequisitionDetailRepo.Instance;
     disbursementRepo            = DisbursementRepo.Instance;
     employeeRepo                = EmployeeRepo.Instance;
     departmentRepo              = DepartmentRepo.Instance;
     purchaseOrderRepo           = PurchaseOrderRepo.Instance;
     purchaseOrderDetailRepo     = PurchaseOrderDetailRepo.Instance;
 }
Пример #27
0
 public MarkService(
     IMarkRepo markRepo,
     ISubnodeRepo subnodeRepo,
     IDepartmentRepo departmentRepo,
     IEmployeeRepo employeeRepo,
     IEstimateTaskRepo estimateTaskRepo,
     ISpecificationService specificationService,
     IMarkGeneralDataPointService markGeneralDataPointService)
 {
     _repository                  = markRepo;
     _subnodeRepo                 = subnodeRepo;
     _departmentRepo              = departmentRepo;
     _employeeRepo                = employeeRepo;
     _estimateTaskRepo            = estimateTaskRepo;
     _specificationService        = specificationService;
     _markGeneralDataPointService = markGeneralDataPointService;
 }
Пример #28
0
        public EmployeeTable(
            IEmployeeRepo employeeRepo)
        {
            InitializeComponent();
            _employeeRepo = employeeRepo;

            List <object> rowEmployee = new List <object>();

            foreach (var item in _employeeRepo.GetIds())
            {
                EmployeeRow employeeRow = new EmployeeRow(employeeRepo);
                employeeRow.SetEmployeeId(item);
                rowEmployee.Add(new { Row = employeeRow });
            }

            ListEmployee.ItemsSource = rowEmployee;
        }
Пример #29
0
 public DocumentService(
     IMarkGeneralDataPointRepo markGeneralDataPointRepo,
     IMarkRepo markRepo,
     IMarkApprovalRepo markApprovalRepo,
     IEmployeeRepo employeeRepo,
     IDocRepo docRepo,
     IMarkLinkedDocRepo markLinkedDocRepo,
     IAttachedDocRepo attachedDocRepo)
 {
     _markGeneralDataPointRepo = markGeneralDataPointRepo;
     _markRepo          = markRepo;
     _markApprovalRepo  = markApprovalRepo;
     _employeeRepo      = employeeRepo;
     _docRepo           = docRepo;
     _markLinkedDocRepo = markLinkedDocRepo;
     _attachedDocRepo   = attachedDocRepo;
 }
Пример #30
0
 private RetrievalService()
 {
     stationeryRepo              = StationeryRepo.Instance;
     categoryRepo                = CategoryRepo.Instance;
     requisitionRepo             = RequisitionRepo.Instance;
     requisitionDetailRepo       = RequisitionDetailRepo.Instance;
     disbursementRepo            = DisbursementRepo.Instance;
     employeeRepo                = EmployeeRepo.Instance;
     departmentRepo              = DepartmentRepo.Instance;
     purchaseOrderRepo           = PurchaseOrderRepo.Instance;
     collectionPointRepo         = CollectionPointRepo.Instance;
     adjustmentVoucherRepo       = AdjustmentVoucherRepo.Instance;
     adjustmentVoucherDetailRepo = AdjustmentVoucherDetailRepo.Instance;
     requisitionCatalogueService = RequisitionCatalogueService.Instance;
     purchaseOrderDetailRepo     = PurchaseOrderDetailRepo.Instance;
     publicHolidayRepo           = PublicHolidayRepo.Instance;
 }
Пример #31
0
 public NorthwindEmployeeService(IEmployeeRepo repo)
 {
     this.repo = repo;
 }