Пример #1
0
 public CaseAssessmentController(IWorkerRepository workerRepository,
                                 ICaseMemberRepository casememberRepository,
                                 IAssessmentTypeRepository assessmenttypeRepository,
                                 IMemberStatusRepository memberstatusRepository,
                                 IRiskTypeRepository risktypeRepository,
                                 ICaseWorkerRepository caseworkerRepository,
                                 IReasonsForDischargeRepository reasonsfordischargeRepository,
                                 ICaseAssessmentRepository caseassessmentRepository,
                                 IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository,
                                 ICaseRepository caseRepository,
                                 IQualityOfLifeRepository qualityoflifeRepository,
                                 IQualityOfLifeSubCategoryRepository qualityoflifesubcategoryRepository,
                                 IQualityOfLifeCategoryRepository qualityoflifecategoryRepository,
                                 ICaseAssessmentLivingConditionRepository caseassessmentlivingconditionRepository,
                                 ICaseSmartGoalRepository casesmartgoalRepository
                                 , IWorkerRoleActionPermissionNewRepository workerroleactionpermissionnewRepository)
     : base(workerroleactionpermissionRepository, caseRepository, workerroleactionpermissionnewRepository)
 {
     this.workerRepository                        = workerRepository;
     this.casememberRepository                    = casememberRepository;
     this.assessmenttypeRepository                = assessmenttypeRepository;
     this.memberstatusRepository                  = memberstatusRepository;
     this.risktypeRepository                      = risktypeRepository;
     this.caseworkerRepository                    = caseworkerRepository;
     this.reasonsfordischargeRepository           = reasonsfordischargeRepository;
     this.caseassessmentRepository                = caseassessmentRepository;
     this.qualityoflifeRepository                 = qualityoflifeRepository;
     this.qualityoflifesubcategoryRepository      = qualityoflifesubcategoryRepository;
     this.qualityoflifecategoryRepository         = qualityoflifecategoryRepository;
     this.caseassessmentlivingconditionRepository = caseassessmentlivingconditionRepository;
     this.casesmartgoalRepository                 = casesmartgoalRepository;
 }
Пример #2
0
        public ReservationValidator(IWorkerRepository workerRepository, ISaucerRepository saucerRepository, IDealerRepository dealerRepository, IReservationRepository reservationRepository)
        {
            _workerRepository      = workerRepository;
            _saucerRepository      = saucerRepository;
            _dealerRepository      = dealerRepository;
            _reservationRepository = reservationRepository;

            RuleSet("Base", () =>
            {
                RuleFor(reservation => reservation.Date).NotNull().NotEmpty();
                RuleFor(reservation => reservation.WorkerId).Must(workerId => workerId.IsNotZero()).WithMessage("Tienes que elegir un trabajador");
                RuleFor(reservation => reservation.SaucerId).Must(saucerId => saucerId.IsNotZero()).WithMessage("Tienes que elegir un platillo");
                RuleFor(reservation => reservation.DealerId).Must(dealerId => dealerId.IsNotZero()).WithMessage("Tienes que elegir un distribuidor");
                RuleFor(reservation => reservation.Portion).Must(portion => portion.IsNotZero()).WithMessage("Tienes que elegir una porcion");
                RuleFor(reservation => reservation.MealType).NotNull().NotEmpty();
                Custom(ReferencesValidate);
                Custom(DateValidate);
            });

            RuleSet("Create", () =>
            {
                Custom(CreateReservationValidate);
            });

            RuleSet("Update", () =>
            {
                Custom(UpdateReservationValidate);
            });
        }
Пример #3
0
        public MainAccounatantForm(int userId, FileManager fileManager)
        {
            _currentUserId       = userId;
            _documentsRepository = (IDocumentsRepository)Program.ServiceProvider.GetService(typeof(IDocumentsRepository));
            _ordersRepository    = (IOrdersRepository)Program.ServiceProvider.GetService(typeof(IOrdersRepository));
            _clientsRepository   = (IClientsRepository)Program.ServiceProvider.GetService(typeof(IClientsRepository));
            _workerRepository    = (IWorkerRepository)Program.ServiceProvider.GetService(typeof(IWorkerRepository));
            localFileManager     = fileManager;

            InitializeComponent();



            dataGridViewOrders.RowHeadersVisible     = false;
            dataGridViewOrders.ColumnCount           = 5;
            dataGridViewOrders.Columns[0].HeaderText = "Код";
            dataGridViewOrders.Columns[1].HeaderText = "Сумма";
            dataGridViewOrders.Columns[2].HeaderText = "Оплачено";
            dataGridViewOrders.Columns[3].HeaderText = "Дата создания";
            dataGridViewOrders.Columns[4].HeaderText = "Дата выполнения";

            dataGridViewDocuments.RowHeadersVisible     = false;
            dataGridViewDocuments.ColumnCount           = 3;
            dataGridViewDocuments.Columns[0].HeaderText = "Код";
            dataGridViewDocuments.Columns[1].HeaderText = "Название фаила";
            dataGridViewDocuments.Columns[2].HeaderText = "Ссылка на фаил";
            dataGridViewDocuments.Columns[0].Visible    = false;
            dataGridViewDocuments.Columns[1].ReadOnly   = true;

            refreshGridWidth();
            UpdateDataGridViewOrders(dateTimePickerFrom.Value, dateTimePickerTo.Value);
        }
Пример #4
0
 public CaseMemberController(IWorkerRepository workerRepository,
                             ICaseRepository caseRepository,
                             IRelationshipStatusRepository relationshipstatusRepository,
                             ILanguageRepository languageRepository,
                             IGenderRepository genderRepository,
                             IEthnicityRepository ethnicityRepository,
                             ICaseMemberEthinicity caseEthinicityRepository,
                             IContactMediaRepository contactmediaRepository,
                             IMaritalStatusRepository maritalstatusRepository,
                             IMemberStatusRepository memberstatusRepository,
                             ICaseMemberRepository casememberRepository,
                             ICaseWorkerRepository caseworkerRepository,
                             IWorkerRoleRepository workerRoleRepository,
                             IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository
                             , IWorkerRoleActionPermissionNewRepository workerroleactionpermissionnewRepository
                             , ICaseWorkerNoteRepository caseWorkerNoteRepository
                             )
     : base(workerroleactionpermissionRepository, caseRepository, workerroleactionpermissionnewRepository)
 {
     this.workerRepository             = workerRepository;
     this.relationshipStatusRepository = relationshipstatusRepository;
     this.languageRepository           = languageRepository;
     this.genderRepository             = genderRepository;
     this.ethnicityRepository          = ethnicityRepository;
     this.caseEthinicityRepository     = caseEthinicityRepository;
     this.maritalStatusRepository      = maritalstatusRepository;
     this.memberstatusRepository       = memberstatusRepository;
     this.casememberRepository         = casememberRepository;
     this.caseworkerRepository         = caseworkerRepository;
     this.workerroleRepository         = workerRoleRepository;
     this.contactmediaRepository       = contactmediaRepository;
     this.caseWorkerNoteRepository     = caseWorkerNoteRepository;
 }
Пример #5
0
 public TimetableController(ITimetableRepository timetableRepository, IBuildingRepository buildingRepository, IWorkerRepository workerRepository, IVehicleRepository vehicleRepository)
 {
     _timetableRepository = timetableRepository;
     _buildingRepository  = buildingRepository;
     _workerRepository    = workerRepository;
     _vehicleRepository   = vehicleRepository;
 }
Пример #6
0
        /// <summary>
        /// Create worker
        /// </summary>
        /// <param name="jobManagerConnector"></param>
        /// <param name="agentConfigProvider"></param>
        /// <param name="jobConfigurationFactory"></param>
        /// <param name="workerInstance"></param>
        /// <param name="lifetimeScope"></param>
        /// <param name="logger"></param>
        /// <param name="agentRepository"></param>
        public Worker(IJobOrchestrator jobManagerConnector,
                      IAgentConfigProvider agentConfigProvider, IJobSerializer jobConfigurationFactory,
                      int workerInstance, ILifetimeScope lifetimeScope, ILogger logger,
                      IWorkerRepository agentRepository = null)
        {
            _agentRepository         = agentRepository;
            _jobConfigurationFactory = jobConfigurationFactory ??
                                       throw new ArgumentNullException(nameof(jobConfigurationFactory));
            _lifetimeScope = lifetimeScope ??
                             throw new ArgumentNullException(nameof(lifetimeScope));
            _logger = logger ??
                      throw new ArgumentNullException(nameof(logger));
            _agentConfigProvider = agentConfigProvider ??
                                   throw new ArgumentNullException(nameof(agentConfigProvider));
            _jobManagerConnector = jobManagerConnector ??
                                   throw new ArgumentNullException(nameof(jobManagerConnector));
            _workerInstance = workerInstance;

            _heartbeatInterval  = _agentConfigProvider.GetHeartbeatInterval();
            _jobCheckerInterval = _agentConfigProvider.GetJobCheckInterval();
            _agentConfigProvider.OnConfigUpdated += (s, e) => {
                _heartbeatInterval  = _agentConfigProvider.GetHeartbeatInterval();
                _jobCheckerInterval = _agentConfigProvider.GetJobCheckInterval();
            };

            _lock           = new SemaphoreSlim(1, 1);
            _heartbeatTimer = new Timer(HeartbeatTimer_ElapsedAsync);
        }
 public AddWorkersToConcertWindow()
 {
     InitializeComponent();
     worker               = new Worker();
     workerRepositoty     = new WorkerRepository(new ApplicationContext());
     listView.ItemsSource = workerRepositoty.GetAllFromCache();
 }
Пример #8
0
        protected override bool AuthorizeCore(System.Web.HttpContextBase httpContext)
        {
            if (httpContext.User.Identity.IsAuthenticated)
            {
                var    routeData       = ((MvcHandler)httpContext.Handler).RequestContext.RouteData;
                object currentAreaName = string.Empty;
                routeData.Values.TryGetValue("area", out currentAreaName);
                object currentControllerName = string.Empty;
                routeData.Values.TryGetValue("controller", out currentControllerName);
                object currentActionName = string.Empty;
                routeData.Values.TryGetValue("action", out currentActionName);
                //if (currentControllerName.ToString(true).ToLower() == Constants.CommonConstants.DefaultControllerName.ToLower() && currentActionName.ToString(true).ToLower() == Constants.CommonConstants.DefaultActionName.ToLower())
                //{
                //    return true;
                //}
                Worker loggedInWorker = WebHelper.CurrentSession.Content.LoggedInWorker;
                if (loggedInWorker == null)
                {
                    IWorkerRepository workerRepository = DependencyResolver.Current.GetService(typeof(IWorkerRepository)) as IWorkerRepository;

                    loggedInWorker = workerRepository.Find(httpContext.User.Identity.Name);
                    WebHelper.CurrentSession.Content.LoggedInWorker = loggedInWorker;
                }
                if (loggedInWorker != null)
                {
                    return(true);
                }
            }
            return(base.AuthorizeCore(httpContext));
        }
Пример #9
0
 public GetAllStatusQueryHandler(IStatusRepository statusRepository,
                                 IWorkerRepository workerRepository, IUserStore <User> userStore)
 {
     _statusRepository = statusRepository ?? throw new System.ArgumentNullException(nameof(statusRepository));
     _workerRepository = workerRepository ?? throw new System.ArgumentNullException(nameof(workerRepository));
     this.userStore    = userStore;
 }
Пример #10
0
 public CaseActionController(IWorkerRepository workerRepository,
                             ICaseProgressNoteRepository caseprogressnoteRepository,
                             ICaseWorkerRepository caseworkerRepository,
                             ICaseActionRepository caseactionRepository,
                             IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository,
                             IWorkerRoleActionPermissionNewRepository workerroleactionpermissionnewRepository,
                             ICaseRepository caseRepository,
                             ICaseSmartGoalRepository casesmartgoalRepository,
                             ICaseMemberRepository casememberRepository,
                             ICaseMemberProfileRepository casememberprofileRepository,
                             ICaseAssessmentRepository caseassessmentRepository,
                             ICaseGoalRepository caseGoalRepository,
                             IWorkerToDoRepository workertodoRepository,
                             IEmailTemplateRepository emailTemplateRepository)
     : base(workerroleactionpermissionRepository, caseRepository, workerroleactionpermissionnewRepository)
 {
     this.workerRepository            = workerRepository;
     this.caseprogressnoteRepository  = caseprogressnoteRepository;
     this.caseworkerRepository        = caseworkerRepository;
     this.caseactionRepository        = caseactionRepository;
     this.casesmartgoalRepository     = casesmartgoalRepository;
     this.casememberRepository        = casememberRepository;
     this.casememberprofileRepository = casememberprofileRepository;
     this.caseassessmentRepository    = caseassessmentRepository;
     this.caseGoalRepository          = caseGoalRepository;
     this.workertodoRepository        = workertodoRepository;
     this.emailTemplateRepository     = emailTemplateRepository;
 }
Пример #11
0
 public CaseSmartGoalServiceProviderController(IWorkerRepository workerRepository,
                                               IServiceProviderRepository serviceproviderRepository,
                                               IServiceRepository serviceRepository,
                                               ICaseSmartGoalRepository casesmartgoalRepository,
                                               IFinancialAssistanceSubCategoryRepository financialassistancesubcategoryRepository,
                                               IFinancialAssistanceCategoryRepository financialassistancecategoryRepository,
                                               IServiceLevelOutcomeRepository serviceleveloutcomeRepository,
                                               ICaseSmartGoalServiceLevelOutcomeRepository casesmartgoalserviceleveloutcomeRepository,
                                               ICaseSmartGoalServiceProviderRepository casesmartgoalserviceproviderRepository,
                                               ICaseAssessmentLivingConditionRepository caseassessmentlivingconditionRepository,
                                               IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository,
                                               IWorkerRoleActionPermissionNewRepository workerroleactionpermissionnewRepository,
                                               ICaseRepository caseRepository,
                                               ICaseMemberRepository casememberRepository,
                                               IWorkerInRoleRepository workerinroleRepository, IWorkerInRoleNewRepository workerinrolenewRepository)
     : base(workerroleactionpermissionRepository, caseRepository, workerroleactionpermissionnewRepository)
 {
     this.serviceleveloutcomeRepository = serviceleveloutcomeRepository;
     this.serviceproviderRepository     = serviceproviderRepository;
     this.serviceRepository             = serviceRepository;
     this.workerRepository        = workerRepository;
     this.casesmartgoalRepository = casesmartgoalRepository;
     this.financialassistancesubcategoryRepository = financialassistancesubcategoryRepository;
     this.casesmartgoalserviceproviderRepository   = casesmartgoalserviceproviderRepository;
     this.casememberRepository = casememberRepository;
     this.casesmartgoalserviceleveloutcomeRepository = casesmartgoalserviceleveloutcomeRepository;
     this.financialassistancecategoryRepository      = financialassistancecategoryRepository;
     this.caseassessmentlivingconditionRepository    = caseassessmentlivingconditionRepository;
     this.workerinroleRepository    = workerinroleRepository;
     this.workerinrolenewRepository = workerinrolenewRepository;
 }
Пример #12
0
 public ChooseEvent()
 {
     InitializeComponent();
     concertRepositoty           = new ConcertEventRepository(new ApplicationContext());
     workerRepositoty            = new WorkerRepository(new ApplicationContext());
     concertListView.ItemsSource = concertRepositoty.GetListFromCache().OrderByDescending(x => x.EndDate).Take(10);
 }
Пример #13
0
        public CaseProgressNoteController(IWorkerRepository workerRepository,
                                          ICaseMemberRepository casememberRepository,
                                          ITimeSpentRepository timespentRepository,
                                          IContactMethodRepository contactmethodRepository,
                                          ICaseProgressNoteRepository caseprogressnoteRepository,

                                          ICaseRepository caseRepository,
                                          IActivityTypeRepository activitytypeRepository,
                                          IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository,
                                          IWorkerRoleActionPermissionNewRepository workerroleactionpermissionnewRepository,
                                          ICaseMemberProfileRepository casememberprofileRepository,
                                          ICaseAssessmentRepository caseassessmentRepository,
                                          ICaseGoalRepository caseGoalRepository,
                                          IWorkerNotificationRepository workernotificationRepository,
                                          ICaseProgressNoteMembersRepository caseprogressnoteMembersRepository)
            : base(workerroleactionpermissionRepository, caseRepository, workerroleactionpermissionnewRepository)
        {
            this.workerRepository                  = workerRepository;
            this.casememberRepository              = casememberRepository;
            this.activitytypeRepository            = activitytypeRepository;
            this.timespentRepository               = timespentRepository;
            this.contactmethodRepository           = contactmethodRepository;
            this.caseprogressnoteRepository        = caseprogressnoteRepository;
            this.casememberprofileRepository       = casememberprofileRepository;
            this.caseassessmentRepository          = caseassessmentRepository;
            this.caseGoalRepository                = caseGoalRepository;
            this.workernotificationRepository      = workernotificationRepository;
            this.caseProgressNoteMembersRepository = caseprogressnoteMembersRepository;
        }
Пример #14
0
 public GetAllRolesQueryHandler(IRoleRepository roleRepository,
                                IWorkerRepository workerRepository, IUserStore <User> userStore)
 {
     _roleRepository   = roleRepository ?? throw new System.ArgumentNullException(nameof(roleRepository));
     _workerRepository = workerRepository ?? throw new System.ArgumentNullException(nameof(workerRepository));
     this.userStore    = userStore;
 }
Пример #15
0
 public CaseMemberProfileController(IWorkerRepository workerRepository,
                                    ICaseMemberRepository casememberRepository,
                                    IProfileTypeRepository profiletypeRepository,
                                    IHighestLevelOfEducationRepository highestlevelofeducationRepository,
                                    IGPARepository gpaRepository,
                                    IAnnualIncomeRepository annualincomeRepository,
                                    ISavingsRepository savingsRepository,
                                    IHousingQualityRepository housingqualityRepository,
                                    IImmigrationCitizenshipStatusRepository immigrationcitizenshipstatusRepository,
                                    ICaseMemberProfileRepository casememberprofileRepository,
                                    IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository,
                                    IWorkerRoleActionPermissionNewRepository workerroleactionpermissionnewRepository,
                                    ICaseWorkerRepository caseworkerRepository,
                                    ICaseRepository caseRepository)
     : base(workerroleactionpermissionRepository, caseRepository, workerroleactionpermissionnewRepository)
 {
     this.workerRepository                  = workerRepository;
     this.casememberRepository              = casememberRepository;
     this.profiletypeRepository             = profiletypeRepository;
     this.highestlevelofeducationRepository = highestlevelofeducationRepository;
     this.gpaRepository            = gpaRepository;
     this.annualincomeRepository   = annualincomeRepository;
     this.savingsRepository        = savingsRepository;
     this.housingqualityRepository = housingqualityRepository;
     this.immigrationcitizenshipstatusRepository = immigrationcitizenshipstatusRepository;
     this.casememberprofileRepository            = casememberprofileRepository;
     this.caseworkerRepository = caseworkerRepository;
 }
Пример #16
0
        public DeleteWorkerHandler(IWorkerRepository workerRepository,
                                   IOrderRepository orderRepository, DBContext context)
        {
            _workerRepository = workerRepository;

            _orderRepository = orderRepository;
            _context         = context;
        }
Пример #17
0
 public WorkerBusinessLogic(AreaContext context)
 {
     _widgetConfRepository = new WidgetConfRepository(context);
     _widgetRepository     = new WidgetRepository(context);
     _serviceRepository    = new ServiceRepository(context);
     _providerRepository   = new ProviderRepository(context);
     _workerRepository     = new WorkerRepository();
 }
 public WorkerService(IWorkerQuery workerQuery, IWorkerRepository workerRepository, IWorkerValidator workerValidator, IHmacHelper hmacHelper, IWorkerFactory workerFactory)
 {
     _workerQuery      = workerQuery;
     _workerRepository = workerRepository;
     _workerValidator  = workerValidator;
     _hmacHelper       = hmacHelper;
     _workerFactory    = workerFactory;
 }
Пример #19
0
 public WorkersController(
     IWorkerRepository workerRepository,
     WorkerProfileFinder workerFinder,
     IConfiguration configuration)
 {
     this.workerRepository = workerRepository;
     this.workerFinder     = workerFinder;
     this.configuration    = configuration;
 }
Пример #20
0
 public ReportController(IWorkerRepository workerRepository,
                         IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository
                         , IWorkerRoleActionPermissionNewRepository workerroleactionpermissionnewRepository
                         , IReportRepository reportRepository)
     : base(workerroleactionpermissionRepository, workerroleactionpermissionnewRepository)
 {
     this.workerRepository = workerRepository;
     this.reportRepository = reportRepository;
 }
Пример #21
0
 public PayHandler(IWorkerRepository workerRepository, ITeamRepository teamRepository, IOrderRepository orderRepository,
                   DBContext context, IPaymentRepository paymentRepository)
 {
     _workerRepository  = workerRepository;
     _teamRepository    = teamRepository;
     _orderRepository   = orderRepository;
     _context           = context;
     _paymentRepository = paymentRepository;
 }
Пример #22
0
 public WorkerProfileFinder(
     IWorkerRepository workerRepository,
     IAddressToCoordinatesTranslator addressToCoordinatesTranslator,
     DistanceCalculator distanceCalculator)
 {
     this.workerRepository = workerRepository;
     this.addressToCoordinatesTranslator = addressToCoordinatesTranslator;
     this.distanceCalculator             = distanceCalculator;
 }
Пример #23
0
 public CreateWorkerCommandHandler(IWorkerRepository workerRepository, IWorkersByTeamRepository workersByTeamRepository, ITeamRepository teamRepository, IUserStore <User> userStore, IStatusRepository statusRepository, IRoleRepository roleRepository)
 {
     _workerRepository        = workerRepository;
     _workersByTeamRepository = workersByTeamRepository;
     _teamRepository          = teamRepository;
     this.userStore           = userStore;
     _statusRepository        = statusRepository;
     _roleRepository          = roleRepository;
 }
 public void UpdateTable(DataGrid dataGrid, IWorkerRepository workerRepository)
 {
     if (SearchTextBox.Text.Length > 0)
     {
         dataGrid.ItemsSource = workerRepository.GetAllBySearchString(SearchTextBox.Text);
         return;
     }
     dataGrid.ItemsSource = workerRepository.GetAll();
 }
Пример #25
0
 public ChangeConcertWindow()
 {
     InitializeComponent();
     concertRepositoty          = new ConcertEventRepository(new ApplicationContext());
     workerRepositoty           = new WorkerRepository(new ApplicationContext());
     concertMarksRepositoty     = new ConcertMarksRepository(new ApplicationContext());
     concertTypeRepositoty      = new ConcertTypeRepository(new ApplicationContext());
     concertPlaceTypeRepository = new ConcertPlaceTypeRepository(new ApplicationContext());
 }
 /// <summary>
 /// Create manager
 /// </summary>
 /// <param name="jobRepository"></param>
 /// <param name="workerRepository"></param>
 /// <param name="demandMatcher"></param>
 /// <param name="jobOrchestratorConfig"></param>
 public DefaultJobOrchestrator(IJobRepository jobRepository,
                               IWorkerRepository workerRepository, IDemandMatcher demandMatcher,
                               IJobOrchestratorConfig jobOrchestratorConfig)
 {
     _jobRepository         = jobRepository;
     _demandMatcher         = demandMatcher;
     _workerRepository      = workerRepository;
     _jobOrchestratorConfig = jobOrchestratorConfig;
 }
 public ComparisonController(IMapper mapper, IOrderRepository orderRepository, IWorkerRepository workerRepository,
                             ITeamRepository teamRepository, IPaymentRepository paymentRepository, ICommandDispatcher commandDispatcher)
 {
     _mapper            = mapper;
     _orderRepository   = orderRepository;
     _workerRepository  = workerRepository;
     _teamRepository    = teamRepository;
     _paymentRepository = paymentRepository;
     _commandDispatcher = commandDispatcher;
 }
Пример #28
0
 public TimerWorkerService(
     IConsistentHash <Node> hash,
     IEventThreadRepository eventThreadRepository,
     IEventRepository eventRepository,
     IWorkerRepository workerRepository,
     ILogger <TimerWorkerService> logger,
     IOptions <Node> settings) : base(hash, eventThreadRepository, eventRepository, workerRepository, logger,
                                      settings)
 {
 }
Пример #29
0
 public CaseTrainingController(IWorkerRepository workerRepository,
                               IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository,
                               IWorkerRoleActionPermissionNewRepository workerroleactionpermissionnewRepository,
                               ICaseRepository caseRepository,
                               ICaseTrainingRepository trainingRepository)
     : base(workerroleactionpermissionRepository, caseRepository, workerroleactionpermissionnewRepository)
 {
     this.workerRepository       = workerRepository;
     this.caseTrainingRepository = trainingRepository;
 }
Пример #30
0
        public RegisterWindow()
        {
            InitializeComponent();

            workerRepository = new WorkerRepository(new ApplicationContext());
            userReository    = new UserRepository(new ApplicationContext());


            surnameComboBox.ItemsSource = workerRepository.GetListFromCache().Select(p => p.Surname);
        }
Пример #31
0
 public ReportService(IWorkOrderRepository woRepo,
                      IWorkAssignmentRepository waRepo,
                      IWorkerRepository wRepo,
                      IWorkerSigninRepository wsiRepo,
                      IWorkerRequestRepository wrRepo,
                      ILookupRepository lookRepo,
                      ILookupCache lookCache,
                      IEmployerRepository eRepo,
                      IActivitySigninRepository asRepo)
 {
     this.woRepo = woRepo;
     this.waRepo = waRepo;
     this.wRepo = wRepo;
     this.wsiRepo = wsiRepo;
     this.wrRepo = wrRepo;
     this.lookRepo = lookRepo;
     this.lookCache = lookCache;
     this.eRepo = eRepo;
     this.asRepo = asRepo;
 }
Пример #32
0
 public WorkerController(IWorkerRepository repo)
 {
     _workerRepository = repo;
 }
Пример #33
0
 public DataManager(IDistrictRepository districtRepository,
     ILocalityRepository localityRepository,
     IStreetRepository streetRepository,
     IHouseRepository houseRepository,
     IMunicipalityRepository municipalityRepository,
     IPersonRepository personRepository,
     INationalityRepository nationalityRepository,
     IEducationRepository educationRepository,
     IOrganizationRepository organizationRepository,
     IMunicipalityHouseRelationRepository municipalityHouseRelationRepository,
     IRegistrationRepository registrationRepository,
     IPartyRepository partyRepository,
     IPrecinctRepository precinctRepository,
     IUserRepository userRepository,
     IWorkerRepository workerRepository,
     IVoterPartyRelationRepository voterPartyRelationRepository,
     IVoterRepository voterRepository,
     IUserLogRepository userLogRepository,
     IRelationshipRepository relationshipRepository,
     IPersonRelationRepository personRelationRepository,
     ICandidateRepository candidateRepository,
     IAgitatorRepository agitatorRepository,
     IWorkerHouseRelationRepository workerHouseRelationRepository,
     IAgitatorHouseRelationRepository agitatorHouseRelationRepository,
     IAgitatorPrecinctRelationRepository agitatorPrecinctRelationRepository,
     ICandidatePrecinctRelationRepository candidatePrecinctRelationRepository,
     ICandidateMunicipalityRelationRepository candidateMunicipalityRelationRepository,
     ITempPersonRepository tempPersonRepository,
     IGEORepository geoRepository,
     IPartyMemberRepository partyMemberRepository,
     IPartySupporterRepository partySupporterRepository)
 {
     this.districtRepository = districtRepository;
     this.municipalityRepository = municipalityRepository;
     this.personRepository = personRepository;
     this.localityRepository = localityRepository;
     this.nationalityRepository = nationalityRepository;
     this.streetRepository = streetRepository;
     this.houseRepository = houseRepository;
     this.educationRepository = educationRepository;
     this.organizationRepository = organizationRepository;
     this.municipalityHouseRelationRepository = municipalityHouseRelationRepository;
     this.registrationRepository = registrationRepository;
     this.partyRepository = partyRepository;
     this.precinctRepository = precinctRepository;
     this.userRepository = userRepository;
     this.workerRepository = workerRepository;
     this.voterPartyRelationRepository = voterPartyRelationRepository;
     this.voterRepository = voterRepository;
     this.userLogRepository = userLogRepository;
     this.relationshipRepository = relationshipRepository;
     this.personRelationRepository = personRelationRepository;
     this.candidateRepository = candidateRepository;
     this.agitatorRepository = agitatorRepository;
     this.workerHouseRelationRepository = workerHouseRelationRepository;
     this.agitatorHouseRelationRepository = agitatorHouseRelationRepository;
     this.agitatorPrecinctRelationRepository = agitatorPrecinctRelationRepository;
     this.candidatePrecinctRelationRepository = candidatePrecinctRelationRepository;
     this.candidateMunicipalityRelationRepository = candidateMunicipalityRelationRepository;
     this.tempPersonRepository = tempPersonRepository;
     this.geoRepository = geoRepository;
     this.partyMemberRepository = partyMemberRepository;
     this.partySupporterRepository = partySupporterRepository;
 }
 public WorkerRegistrationController(ILocator locator)
 {
     _repository = locator.Locate<IWorkerRepository>();
 }