Exemplo n.º 1
0
 public FrequencyController(IFrequencyRepository frequencyRepository,
                            IMapper mapper
                            )
 {
     _frequencyRepository = frequencyRepository;
     _mapper = mapper;
 }
Exemplo n.º 2
0
        public PollsApiController(IPollRepository PollRepository, ICategoryRepository CategoryRepository,  IFrequencyRepository FrequencyRepository, IUserIdentityService UserIdentityService, IUserRepository UserRepository)
        {
            if (PollRepository == null)
            {
                throw new ArgumentNullException("CategoryRepository");
            }

            if (CategoryRepository == null)
            {
                throw new ArgumentNullException("CategoryRepository");
            }

            if (FrequencyRepository == null)
            {
                throw new ArgumentNullException("CategoryRepository");
            }

            if (UserIdentityService == null)
            {
                throw new ArgumentNullException("UserIdentityService");
            }

            if (UserRepository == null)
            {
                throw new ArgumentNullException("UserIdentityService");
            }

            this.pollRepository = PollRepository;
            this.categoryRepository = CategoryRepository;
            this.frequencyRepository = FrequencyRepository;
            this.userService = UserIdentityService;
            this.userRepository = UserRepository;
        }
Exemplo n.º 3
0
        public FrequencyController(IFrequencyRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.FrequencyRepository = repository;
        }
Exemplo n.º 4
0
 public FrequenciesController(
     IDocumentService documentService,
     IFetchService fetchService,
     IFrequencyRepository frequencyRepository)
 {
     _documentService     = documentService;
     _fetchService        = fetchService;
     _frequencyRepository = frequencyRepository;
 }
Exemplo n.º 5
0
        public FrequencyController(IFrequencyRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.FrequencyRepository = repository;
        }
 public PartSpecificationController(IPartSpecificationRepository partspecificationRepository_, IComponentsRepository <Component> componentsRepository_, IPartsRepository <Part> componentpartsRepository_, IPartSetUpRepository partsetupRepository_, IPartSpecificationRepository componentpartspecificationRepository_, IMeasurementMethodRepository measurementmethodRepository_, IMeasurementUnitRepository measurementunitRepository_, IFrequencyRepository frequencyRepository_, IPartSpecificationSequenceRepository partspecificationsequenceRepository_)
 {
     _partspecificationRepository          = partspecificationRepository_;
     _partsetupRepository                  = partsetupRepository_;
     _componentpartspecificationRepository = componentpartspecificationRepository_;
     _componentsRepository                 = componentsRepository_;
     _componentpartsRepository             = componentpartsRepository_;
     _measurementmethodRepository          = measurementmethodRepository_;
     _measurementunitRepository            = measurementunitRepository_;
     _frequencyRepository                  = frequencyRepository_;
     _partspecificationsequenceRepository  = partspecificationsequenceRepository_;
 }
Exemplo n.º 7
0
        public FrequencyController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.FrequencyRepository = new MixERP.Net.Schemas.Core.Data.Frequency
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Exemplo n.º 8
0
        public FrequencyController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.FrequencyRepository = new MixERP.Net.Schemas.Core.Data.Frequency
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
        public EmployeePayrollSchedule()
        {
            _employeeDepartmentRepository       = new EmployeeDepartmentRepository(_databaseFactory);
            _employeeRepository                 = new EmployeeRepository(_databaseFactory, _employeeDepartmentRepository);
            _attendanceRepository               = new AttendanceRepository(_databaseFactory);
            _attendanceLogRepository            = new AttendanceLogRepository(_databaseFactory, _employeeRepository);
            _settingRepository                  = new SettingRepository(_databaseFactory);
            _employeeWorkScheduleRepository     = new EmployeeWorkScheduleRepository(_databaseFactory);
            _employeeInfoRepository             = new EmployeeInfoRepository(_databaseFactory);
            _frequencyRepository                = new FrequencyRepository(_databaseFactory);
            _paymentFrequencyRepository         = new PaymentFrequencyRepository(_databaseFactory);
            _employeePayrollRepository          = new EmployeePayrollRepository(_databaseFactory);
            _employeePayrollDeductionRepository = new EmployeePayrollDeductionRepository(_databaseFactory);
            _employeeDailyPayrollRepository     = new EmployeeDailyPayrollRepository(_databaseFactory);
            _employeeHoursRepository            = new EmployeeHoursRepository(_databaseFactory);
            _totalEmployeeHoursRepository       = new TotalEmployeeHoursRepository(_databaseFactory);
            _holidayRepository                  = new HolidayRepository(_databaseFactory);
            _employeeDeductionRepository        = new EmployeeDeductionRepository(_databaseFactory);
            _deductionRepository                = new DeductionRepository(_databaseFactory);
            _employeePayrollItemRepository      = new EmployeePayrollItemRepository(_databaseFactory);
            _employeeAdjustmentRepository       = new EmployeeAdjustmentRepository(_databaseFactory);
            _adjustmentRepository               = new AdjustmentRepository(_databaseFactory);

            _employeeService             = new EmployeeService(_employeeRepository);
            _employeeInfoService         = new EmployeeInfoService(_employeeInfoRepository);
            _attendanceLogService        = new AttendanceLogService(_attendanceLogRepository);
            _attendanceService           = new AttendanceService(_unitOfWork, _attendanceRepository, _attendanceLogService, _employeeHoursRepository);
            _settingService              = new SettingService(_settingRepository);
            _employeeWorkScheduleService = new EmployeeWorkScheduleService(_employeeWorkScheduleRepository);
            _employeeSalaryService       = new EmployeeSalaryService();
            _employeeHoursService        = new EmployeeHoursService(_unitOfWork, _employeeHoursRepository,
                                                                    _attendanceService, _settingService, _employeeWorkScheduleService, _employeeInfoService);
            _totalEmployeeHoursService   = new TotalEmployeeHoursService(_unitOfWork, _totalEmployeeHoursRepository, _employeeHoursService, _settingService);
            _holidayService              = new HolidayService(_holidayRepository, _settingRepository, _unitOfWork);
            _employeeDailyPayrollService = new EmployeeDailyPayrollService(_unitOfWork, _totalEmployeeHoursService, _employeeWorkScheduleService, _holidayService,
                                                                           _settingService, _employeeDailyPayrollRepository, _employeeInfoService, _employeeSalaryService);
            _deductionService = new DeductionService(_deductionRepository);
            _taxService       = new TaxService(_taxRepository);
            _employeePayrollDeductionService = new EmployeePayrollDeductionService(_unitOfWork, _settingService, _employeeSalaryService, _employeeInfoService, _employeeDeductionService, _deductionService, _employeePayrollDeductionRepository, _taxService);
            _employeePayrollItemService      = new EmployeePayrollItemService(_unitOfWork, _employeePayrollItemRepository, _totalEmployeeHoursService, _employeeWorkScheduleService, _holidayService, _settingService, _employeeInfoService, _employeeSalaryService, _employeePayrollRepository, _employeePayrollDeductionRepository, _employeeAdjustmentRepository, _adjustmentRepository);
            _employeeAdjusmentService        = new EmployeeAdjustmentService(_employeeAdjustmentRepository, _employeeRepository);
            _employeePayrollService          = new EmployeePayrollService(_unitOfWork, _employeePayrollRepository, _settingService, null, _employeeInfoService, null, _employeeService, _totalEmployeeHoursService, _employeePayrollItemService, _employeeAdjusmentService);
        }
 public TravelCardController(IPartsRepository <Part> partsRepository_, IComponentsRepository <Component> componentsRepository_, IPartsRepository <Part> componentpartsRepository_, IPartSetUpRepository partsetupRespository_, IAdditionalProcessingRepository additionalprocessesRepository_, IPartSpecificationRepository partspecificationRepository_, IPartSpecificationRepository componentpartspecificationRepository_, IMeasurementMethodRepository measurementmethodRepository_, IPlantRepository plantRepository_, IUserSettingRepository usersettingRepository_, IMeasurementUnitRepository measurementUnitRepository_, IFrequencyRepository frequencyRepository_, ITravelCardRepository travelcardrepository_, ILanguageRepository languagerepository_, ITCBarCodeRepository tcbarcodeRepository_, IPartSpecificationSequenceRepository partspecificationsequenceRepository_)
 {
     _partsRepository                      = partsRepository_;
     _componentsRepository                 = componentsRepository_;
     _componentpartsRepository             = componentpartsRepository_;
     _partsetupRepository                  = partsetupRespository_;
     _additionalprocessesRepository        = additionalprocessesRepository_;
     _partspecificationRepository          = partspecificationRepository_;
     _partsetupRepository                  = partsetupRespository_;
     _componentpartspecificationRepository = componentpartspecificationRepository_;
     _measurementmethodRepository          = measurementmethodRepository_;
     _measurementunitRepository            = measurementUnitRepository_;
     _frequencyRepository                  = frequencyRepository_;
     _plantRepository                      = plantRepository_;
     _usersettingRepository                = usersettingRepository_;
     _travelcardRepository                 = travelcardrepository_;
     _languageRepository                   = languagerepository_;
     _tcbarcodeRepository                  = tcbarcodeRepository_;
     _partspecificationsequenceRepository  = partspecificationsequenceRepository_;
 }
Exemplo n.º 11
0
        public FrequencyService(IFrequencyRepository frequencyRepository)
        {
            _frequencyRepository = frequencyRepository;

            Mapper = SetMapperConfigs();
        }
 public FrequencyController()
 {
     _frequencyRepository = new FrequencyRepository();
     _loggerService       = new LoggerService();
     _user = "******";
 }
Exemplo n.º 13
0
 public FrequencyService(IFrequencyRepository frequencyRepository)
 {
     _frequencyRepository = frequencyRepository;
 }
Exemplo n.º 14
0
 public ErrorsController(IErrorRepository repoError, IFrequencyRepository repoFrequency, IMapper mapper)
 {
     this.repoFrequency = repoFrequency;
     this.repoError     = repoError;
     _mapper            = mapper;
 }
Exemplo n.º 15
0
 public FrequencyController(IFrequencyRepository frequencyRepository)
 {
     _frequencyRepository = frequencyRepository;
 }
 public FrequencysController(IMapper mapper, IUnitOfWork unitOfWork, IFrequencyRepository frequencyRepository)
 {
     this.mapper              = mapper;
     this.unitOfWork          = unitOfWork;
     this.frequencyRepository = frequencyRepository;
 }
Exemplo n.º 17
0
 public FrequencyController(IFrequencyRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 18
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db       = db;
     Category  = new CategoryRepository(_db);
     Frequency = new FrequencyRepository(_db);
 }