예제 #1
0
 public PdfController(IInspectionRepository inspectionRepository, IMistakeRepository mistakeRepository,
                      IConverter converter)
 {
     _inspectionRepository = inspectionRepository;
     _mistakeRepository    = mistakeRepository;
     _converter            = converter;
 }
예제 #2
0
 public PropertiesAppService(ILogger <PropertiesAppService> logger, IBlockCycleRepository blockCycleRepository, IInspectionRepository inspectionRepository, IMapper mapper)
 {
     _logger = logger;
     _blockCycleRepository = blockCycleRepository;
     _inspectionRepository = inspectionRepository;
     _mapper = mapper;
 }
예제 #3
0
 public InspectionDetailService(IUnitOfWork unitOfWork, IInspectionDetailRepository inspectionDetailRepository,
                                IInspectionRepository inspectionRepository)
 {
     _unitOfWork = unitOfWork;
     _inspectionDetailRepository = inspectionDetailRepository;
     _inspectionRepository       = inspectionRepository;
 }
예제 #4
0
        //public InspectionController(DataContext context, IConfiguration config, IMapper mapper)
        public InspectionController(IInspectionRepository repo, IMapper mapper)
        {
            //_context = context;
            //_config = config;

            _repo   = repo;
            _mapper = mapper;
        }
예제 #5
0
 public SendEmailController(IInspectionRepository inspectionRepository,
                            IMistakeRepository mistakeRepository,
                            IEmailRepository emailRepository)
 {
     _inspectionRepository = inspectionRepository;
     _mistakeRepository    = mistakeRepository;
     _emailRepository      = emailRepository;
 }
        public ExecuteInspectionViewModel(RouterService router, IInspectionRepository inspectionRepo)
        {
            _router = router;
            _inspectionRepository = inspectionRepo;

            SaveQuestionListCommand = new RelayCommand(SaveAnswers);
            BackCommand             = new RelayCommand(_router.GoBack);

            ControlList = new ObservableCollection <IQuestionWrapper>();
        }
예제 #7
0
 public InspectionListViewModel()
 {
     CurrentDate           = GetCurrentMonday(DayOfWeek.Monday);
     CurrentWeek           = CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(CurrentDate, CalendarWeekRule.FirstDay, DayOfWeek.Monday);
     _inspectionRepository = new InspectionRepository();
     NextWeekCommand       = new RelayCommand(AddSevenDays);
     PreviousWeekCommand   = new RelayCommand(SubtractSevenDays);
     WeekSlots             = new ScheduleSlotViewModel[7];
     FillSchedule();
     BackToCurrentWeek = new RelayCommand(ToCurrentWeek);
 }
        private void ConvertInspections()
        {
            if (SelectedFestival != null)
            {
                _inspectionRepository = new InspectionRepository();

                SelectedFestivalInspections = new ObservableCollection <InspectionViewModel>(
                    _inspectionRepository.GetInspections()
                    .Where(e => e.QuestionList.Festival.Id == SelectedFestival.Id)
                    .Select(e => new InspectionViewModel(e))
                    .ToList());
                RaisePropertyChanged("SelectedFestivalInspections");
            }
        }
예제 #9
0
 public InspectionMutation(IInspectionRepository inspectionRepository)
 {
     Field <InspectionType>(
         "CreateInspection",
         arguments: new QueryArguments(
             new QueryArgument <NonNullGraphType <InspectionInputType> > {
         Name = "newInspection", Description = "New contract to be added"
     }),
         resolve: context =>
     {
         var contract = context.GetArgument <Inspection>("newInspection");
         return(inspectionRepository.Create(contract));
     });
 }
예제 #10
0
        public LinkInspectorViewModel(IUserRepository userRepository, IInspectionRepository inspectionRepository, RouterService router)
        {
            _inspectionRepository = inspectionRepository;
            _userRepository       = userRepository;

            _router = router;

            SelectedInspectors   = new ObservableCollection <Employee>();
            UnSelectedInspectors = new ObservableCollection <Employee>();

            AddCommand    = new RelayCommand(Add, () => UnSelectedInspector != null);
            RemoveCommand = new RelayCommand(Remove, () => SelectedInspector != null);
            SaveCommand   = new RelayCommand(Save);
            CancelCommand = new RelayCommand(_router.GoBack);
        }
예제 #11
0
 public InspectionImportService(AppDbContext appDbContext,
                                IFileProvider fileProvider,
                                IPassionBrandRepository passionBrandRepository,
                                IInspectionRepository inspectionRepository,
                                IFactoryRepository factoryRepository,
                                IFinalWeekRepository finalWeekRepository,
                                ITechManagerRepository techManagerRepository,
                                UserManager <ApplicationUser> userManager)
 {
     _fileProvider           = fileProvider;
     _appDbContext           = appDbContext;
     _passionBrandRepository = passionBrandRepository;
     _inspectionRepository   = inspectionRepository;
     _factoryRepository      = factoryRepository;
     _finalWeekRepository    = finalWeekRepository;
     _techManagerRepository  = techManagerRepository;
     _userManager            = userManager;
 }
예제 #12
0
 public InspectionFacade(IVision visionService, IMeasurement measurementService, IInspectionRepository inspectionRepository)
 {
     this.measurementService   = measurementService;
     this.inspectionRepository = inspectionRepository;
     this.visionService        = visionService;
 }
예제 #13
0
 public InspectionController(IInspectionRepository repository)
 {
     _repository = repository;
 }
예제 #14
0
 public InspectionAppService(IInspectionRepository inspectionRepository, IMapper mapper)
 {
     _inspectionRepository = inspectionRepository;
     _mapper = mapper;
 }
예제 #15
0
 public InspectionBusiness(IInspectionRepository inspectionRepository)
 {
     _inspectionRepository = inspectionRepository;
 }
예제 #16
0
 public HomeController(IDashboardRepository dashboardRepository, UserManager <ApplicationUser> userManager, IInspectionRepository inspectionRepository)
 {
     _dashboardRepository  = dashboardRepository;
     _userManager          = userManager;
     _inspectionRepository = inspectionRepository;
 }
예제 #17
0
 public UnitOfWork(DbContext context, IInspectionRepository inspection, IInspectorRepository inspector)
 {
     _context   = context;
     Inspection = inspection;
     Inspector  = inspector;
 }
예제 #18
0
 public EmployeeConsumer(IInspectionRepository inspectionRepository)
 {
     _inspectionRepository = inspectionRepository;
 }
예제 #19
0
 public CarConsumer(IInspectionRepository inspectionRepository)
 {
     _inspectionRepository = inspectionRepository;
 }
예제 #20
0
 public InspectionService(IInspectionRepository licenseRepository, IUnitOfWork unitOfWork)
 {
     this._inspectionRepository = licenseRepository;
     this._unitOfWork           = unitOfWork;
 }
예제 #21
0
 public InspectionService(IInspectionRepository inspectionRepository)
 {
     _inspectionRepository = inspectionRepository;
 }