public DrawController(IQuestionnaireService questionnaireService, IInspectionService inspectionService,
                       IConfiguration configurationService)
 {
     _questionnaireService = questionnaireService;
     _inspectionService    = inspectionService;
     _configurationService = configurationService;
 }
Beispiel #2
0
        public ProcessController(IInspectionService inspetionService,
                                 IProcessService processService,
                                 IOverSeaService overseaService,
                                 ICountryService countryService,
                                 IStoreService storeService,
                                 IWorkplaceService workplaceService,
                                 IFeedbackService feedbackService,
                                 IObservationService observationService,
                                 ITrackService trackService
                                 )
        {
            this._inspetionService = inspetionService;
            this._processService   = processService;

            this._overseaService     = overseaService;
            this._countryService     = countryService;
            this._storeService       = storeService;
            this._workplaceService   = workplaceService;
            this._feedbackService    = feedbackService;
            this._observationService = observationService;
            this._trackService       = trackService;

            // 目前登入者可用權限
            this._UserPermission = new UserPermission(storeService, workplaceService);
        }
 public InspectionsController(
     IInspectionService inspectionService,
     IBeehiveService beehiveService)
 {
     this.inspectionService = inspectionService;
     this.beehiveService    = beehiveService;
 }
Beispiel #4
0
 public BeehiveController(
     IApiaryService apiaryService,
     IApiaryHelperService apiaryHelperService,
     UserManager <ApplicationUser> userManager,
     IBeehiveHelperService beehiveHelperService,
     IBeehiveService beehiveService,
     IQueenService queenService,
     IHarvestService harvestService,
     ITreatmentService treatmentService,
     IInspectionService inspectionService,
     IQueenHelperService queenHelperService,
     IExcelExportService excelExportService,
     ITemporaryApiaryBeehiveService temporaryApiaryBeehiveService,
     IBeehiveMarkFlagService beehiveMarkFlagService)
 {
     this.apiaryService                 = apiaryService;
     this.apiaryHelperService           = apiaryHelperService;
     this.userManager                   = userManager;
     this.beehiveHelperService          = beehiveHelperService;
     this.beehiveService                = beehiveService;
     this.queenService                  = queenService;
     this.harvestService                = harvestService;
     this.treatmentService              = treatmentService;
     this.inspectionService             = inspectionService;
     this.queenHelperService            = queenHelperService;
     this.excelExportService            = excelExportService;
     this.temporaryApiaryBeehiveService = temporaryApiaryBeehiveService;
     this.beehiveMarkFlagService        = beehiveMarkFlagService;
 }
Beispiel #5
0
 public InspectionController(
     IInspectionService inspectionService,
     ITenantIdProvider tenantIdProvider
     )
 {
     _tenantIdProvider  = tenantIdProvider;
     _inspectionService = inspectionService;
 }
Beispiel #6
0
 public NodeController(IUserManager userManager, IMapper mapper, IFleetService fleetService, IInspectionService inspectionService, ITurbineService turbineService)
 {
     _userManager       = userManager;
     _mapper            = mapper;
     _fleetService      = fleetService;
     _inspectionService = inspectionService;
     _turbineService    = turbineService;
 }
Beispiel #7
0
 public NestingBoxesController(INestingBoxService nestingBoxService, IInspectionService inspectionService, IOptions <StorageOptions> storageOptions,
                               ILogger <NestingBoxesController> logger)
 {
     _nestingBoxService = nestingBoxService ?? throw new ArgumentNullException(nameof(nestingBoxService));
     _inspectionService = inspectionService ?? throw new ArgumentNullException(nameof(inspectionService));
     _storageOptions    = storageOptions ?? throw new ArgumentNullException(nameof(storageOptions));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #8
0
 public AddDeepZoomLinkController(IFleetService fleetService, ISiteService siteService, IInspectionService inspectionService, IMapper mapper, IDeepZoomFileService deepZoomFileService, IDeepZoomLinkService deepZoomLinkService)
 {
     _fleetService        = fleetService;
     _siteService         = siteService;
     _inspectionService   = inspectionService;
     _mapper              = mapper;
     _deepZoomFileService = deepZoomFileService;
     _deepZoomLinkService = deepZoomLinkService;
 }
Beispiel #9
0
 public InspectionController(ILogger <InspectionController> logger,
                             IInspectionService inspectionServices,
                             IValidator <InspectionRequest> validator,
                             IMapper mapper)
 {
     this.logger             = logger;
     this.inspectionServices = inspectionServices;
     this.validator          = validator;
     this.mapper             = mapper;
 }
Beispiel #10
0
 public CCPaymentInvoiceController(ISysUserService sysUserService, IInspecationMainService sysInspectionMainService, IInspectionRecordService sysInspectionRecordService, IInspectionService sysInspectionService, ISysUserRoleService sysUserRoleService, IHostingEnvironment hostingEnvironment, IScheduleService scheduleService, IImportTrans_main_recordService importTrans_main_recordService, ISysCustomizedListService sysCustomizedListService)
 {
     this._sysInspectionMainService       = sysInspectionMainService;
     this._hostingEnvironment             = hostingEnvironment;
     this._sysUserRoleService             = sysUserRoleService;
     this._sysUserService                 = sysUserService;
     this._scheduleService                = scheduleService;
     this._importTrans_main_recordService = importTrans_main_recordService;
     this._sysCustomizedListService       = sysCustomizedListService;
     this._sysInspectionService           = sysInspectionService;
     this._sysInspectionRecordService     = sysInspectionRecordService;
 }
 public InspectionJyyController(IInspectionAttachmentService InspectionAttachmentService, ISysUserService sysUserService, IOrderService sysOrderService, IOrderMainService sysOrderMainService, IInspecationMainService sysInspectionMainService, IInspectionRecordService sysInspectionRecordService, IInspectionService sysInspectionService, ISysUserRoleService sysUserRoleService, IHostingEnvironment hostingEnvironment, IScheduleService scheduleService, IImportTrans_main_recordService importTrans_main_recordService, ISysCustomizedListService sysCustomizedListService)
 {
     this._sysOrderMainService         = sysOrderMainService;
     this._InspectionAttachmentService = InspectionAttachmentService;
     this._sysOrderService             = sysOrderService;
     this._sysInspectionMainService    = sysInspectionMainService;
     this._hostingEnvironment          = hostingEnvironment;
     this._sysUserRoleService          = sysUserRoleService;
     this._sysUserService  = sysUserService;
     this._scheduleService = scheduleService;
     this._importTrans_main_recordService = importTrans_main_recordService;
     this._sysCustomizedListService       = sysCustomizedListService;
     this._sysInspectionService           = sysInspectionService;
     this._sysInspectionRecordService     = sysInspectionRecordService;
 }
Beispiel #12
0
 public ExcelExportService(
     IApiaryService apiaryService,
     IBeehiveService beehiveService,
     IHarvestService harvestService,
     IInspectionService inspectionService,
     ITreatmentService treatmentService,
     IEnumerationMethodsService enumerationMethodsService)
 {
     this.apiaryService             = apiaryService;
     this.beehiveService            = beehiveService;
     this.harvestService            = harvestService;
     this.inspectionService         = inspectionService;
     this.treatmentService          = treatmentService;
     this.enumerationMethodsService = enumerationMethodsService;
 }
        public void Setup()
        {
            LogHelper.ConfigureConsoleLogger();

            StaticStartup.Startup();

            _newId             = Guid.NewGuid();
            _tenantId          = Guid.NewGuid();
            _inspectionService = Substitute.For <IInspectionService>();
            _inspectionService.When(s => s.BeginInspectionAsync(Arg.Any <Inspection>()))
            .Do(v => ((Inspection)v[0]).Id = _newId);
            _inspectionService.BeginInspectionAsync(Arg.Any <Inspection>()).ReturnsForAnyArgs(_newId);
            _tenantIdProvider = Substitute.For <ITenantIdProvider>();
            _tenantIdProvider.GetTenantId().Returns(_tenantId);

            _incompleteInspection = new Inspection()
            {
            };
        }
Beispiel #14
0
 public InspectionController(
     IInspectionService inspectionService,
     IBeehiveService beehiveService,
     IApiaryService apiaryService,
     IForecastService forecastService,
     IConfiguration configuration,
     IExcelExportService excelExportService,
     IBeehiveHelperService beehiveHelperService,
     UserManager <ApplicationUser> userManager)
 {
     this.inspectionService    = inspectionService;
     this.beehiveService       = beehiveService;
     this.apiaryService        = apiaryService;
     this.forecastService      = forecastService;
     this.configuration        = configuration;
     this.excelExportService   = excelExportService;
     this.beehiveHelperService = beehiveHelperService;
     this.userManager          = userManager;
 }
 public TenantController(
     IService <Tenant> tenantService,
     ITenantCreator tenantCreator,
     IAccountService accountService,
     IInspectionService inspectionService,
     IEmployeeService employeeService,
     IService <BranchOffice> branchOfficeService,
     IService <Department> departmentService,
     ILogger <TenantController> logger)
 {
     _tenantService       = tenantService;
     _tenantCreator       = tenantCreator;
     _accountService      = accountService;
     _inspectionService   = inspectionService;
     _employeeService     = employeeService;
     _branchOfficeService = branchOfficeService;
     _departmentService   = departmentService;
     _logger = logger;
 }
        public RusHydroInspectionHandler(IInspectionService inspections,
                                         ITestService tests,
                                         IOrgStructureReference orgStructRef,
                                         IPsaSummaryService summarySvc,
                                         IDepartmentPsaReportService deptPsaReportSvc,
                                         IHttpContextAccessor httpContextAccessor,
                                         ILogger <RusHydroInspectionHandler> logger
                                         )
        {
            _inspectionService          = inspections;
            _testService                = tests;
            _orgStructRef               = orgStructRef;
            _summaryService             = summarySvc;
            _departmentPsaReportService = deptPsaReportSvc;
            _logger = logger;

            var hostString = httpContextAccessor.HttpContext.Request.Host;

            _environmentId = hostString.Value ?? "psk-online/unknown";
        }
Beispiel #17
0
        //private readonly int FileMax = 100 * 100 * 100;

        public InspectionController(IInspectionService inspetionService,
                                    IOverSeaService overseaService,
                                    ICountryService countryService,
                                    IStoreService storeService,
                                    IWorkplaceService workplaceService,
                                    IFeedbackService feedbackService,
                                    IObservationService observationService,
                                    ITrackService trackService
                                    )
        {
            this._inspetionService = inspetionService;

            this._overseaService     = overseaService;
            this._countryService     = countryService;
            this._storeService       = storeService;
            this._workplaceService   = workplaceService;
            this._feedbackService    = feedbackService;
            this._observationService = observationService;
            this._trackService       = trackService;
        }
Beispiel #18
0
        public FestivalViewModel(IFrameNavigationService navigationService, IFestivalService festivalService,
                                 IQuestionnaireService questionnaireService, IInspectionService inspectionService,
                                 IOfflineService offlineService)
        {
            _festivalService      = festivalService;
            _navigationService    = navigationService;
            _questionnaireService = questionnaireService;
            _inspectionService    = inspectionService;

            RemoveFestivalCommand = new RelayCommand(OpenDeletePopup, () => offlineService.IsOnline, true);
            DeleteCommand         = new RelayCommand(RemoveFestival, () => offlineService.IsOnline, true);
            EditFestivalCommand   = new RelayCommand(() => _navigationService.NavigateTo("UpdateFestival", Festival.Id),
                                                     () => offlineService.IsOnline, true);
            OpenQuestionnaireCommand          = new RelayCommand <int>(OpenQuestionnaire);
            CreateQuestionnaireCommand        = new RelayCommand(CreateQuestionnaire, () => offlineService.IsOnline, true);
            ConfirmDeleteQuestionnaireCommand =
                new RelayCommand(DeleteQuestionnaire, () => offlineService.IsOnline, true);
            DeleteQuestionnaireCommand =
                new RelayCommand <int>(id => _deletetingQuestionnareId = id, _ => offlineService.IsOnline, true);
            NewQuestionnaireCommand       = new RelayCommand(NewQuestionnaire);
            OpenCopyQuestionnaireCommand  = new RelayCommand <int>(OpenCopyQuestionnaire);
            CloseCopyQuestionnaireCommand = new RelayCommand(CloseCopyQuestionnaire);
            CopyQuestionnaireCommand      = new RelayCommand(CopyQuestionnaire);
            GenerateReportCommand         = new RelayCommand(GenerateReport);
            EditPlannedInspectionCommand  = new RelayCommand <List <PlannedInspection> >(plannedInspections =>
                                                                                         _navigationService.NavigateTo("Inspection",
                                                                                                                       new { PlannedInspectionId = plannedInspections[0].Id, FestivalId = -1 }),
                                                                                         _ => offlineService.IsOnline, true);
            CreatePlannedInspectionCommand =
                new RelayCommand(
                    () => _navigationService.NavigateTo("Inspection",
                                                        new { PlannedInspectionId = -1, FestivalId = Festival.Id }), () => offlineService.IsOnline,
                    true);

            CanEdit = offlineService.IsOnline;

            Initialize((int)_navigationService.Parameter);
        }
 public HomeController(
     UserManager <ApplicationUser> userManager,
     IApiaryService apiaryService,
     IBeehiveService beehiveService,
     IQueenService queenService,
     ITreatmentService treatmentService,
     IInspectionService inspectionService,
     IHarvestService harvestService,
     IQuickChartService quickChartService,
     IEmailSender emailSender,
     IConfiguration configuration)
 {
     this.userManager       = userManager;
     this.apiaryService     = apiaryService;
     this.beehiveService    = beehiveService;
     this.queenService      = queenService;
     this.treatmentService  = treatmentService;
     this.inspectionService = inspectionService;
     this.harvestService    = harvestService;
     this.quickChartService = quickChartService;
     this.emailSender       = emailSender;
     this.configuration     = configuration;
 }
Beispiel #20
0
        public InspectionViewModel(
            IInspectionService inspectionService,
            IFrameNavigationService navigationService,
            IGoogleMapsService googleService,
            IOfflineService offlineService
            )
        {
            _inspectionService = inspectionService;
            _navigationService = navigationService;
            _googleService     = googleService;

            CheckBoxCommand      = new RelayCommand <AdvancedEmployee>(CheckBox);
            SaveCommand          = new RelayCommand(Save);
            ReturnCommand        = new RelayCommand(() => _navigationService.NavigateTo("FestivalInfo", Festival.Id));
            OpenDeleteCheckPopup = new RelayCommand(OpenDeletePopup);
            DeleteCommand        = new RelayCommand(DeletePlannedInspection, () => offlineService.IsOnline, true);

            PlannedInspections           = new List <PlannedInspection>();
            Questionnaires               = new List <Questionnaire>();
            OriginalPlannedInspectionIds = new List <int>();

            Task.Run(() => Initialize(_navigationService.Parameter)).Wait();
        }
 public BeehiveService(
     IRepository <BeehiveHelper> beehiveHelperRepository,
     IRepository <ApiaryHelper> apiaryHelperRepository,
     IRepository <QueenHelper> queenHelperRepository,
     IDeletableEntityRepository <Beehive> beehiveRepository,
     IDeletableEntityRepository <Queen> queenRepository,
     IDeletableEntityRepository <Inspection> inspectionRepository,
     IDeletableEntityRepository <Treatment> treatmentRepository,
     IRepository <TreatedBeehive> treatedBeehiveRepository,
     IDeletableEntityRepository <Harvest> harvestRepository,
     IRepository <HarvestedBeehive> harvestedBeehiveRepository,
     ITemporaryApiaryBeehiveService temporaryApiaryBeehiveService,
     IQueenService queenService,
     IInspectionService inspectionService,
     ITreatmentService treatmentService,
     IHarvestService harvestService,
     IDeletableEntityRepository <BeehiveDiary> beehiveDiaryRepository,
     IDeletableEntityRepository <TemporaryApiaryBeehive> temporaryApiaryBeehiveRepository)
 {
     this.beehiveHelperRepository       = beehiveHelperRepository;
     this.apiaryHelperRepository        = apiaryHelperRepository;
     this.queenHelperRepository         = queenHelperRepository;
     this.beehiveRepository             = beehiveRepository;
     this.queenRepository               = queenRepository;
     this.inspectionRepository          = inspectionRepository;
     this.treatmentRepository           = treatmentRepository;
     this.treatedBeehiveRepository      = treatedBeehiveRepository;
     this.harvestRepository             = harvestRepository;
     this.harvestedBeehiveRepository    = harvestedBeehiveRepository;
     this.temporaryApiaryBeehiveService = temporaryApiaryBeehiveService;
     this.queenService                     = queenService;
     this.inspectionService                = inspectionService;
     this.treatmentService                 = treatmentService;
     this.harvestService                   = harvestService;
     this.beehiveDiaryRepository           = beehiveDiaryRepository;
     this.temporaryApiaryBeehiveRepository = temporaryApiaryBeehiveRepository;
 }
Beispiel #22
0
 public UserController()
 {
     _userService       = new UserService();
     _carService        = new CarService();
     _inspectionService = new InspectionService();
 }
Beispiel #23
0
 public InspectionController()
 {
     _inspectionService = new InspectionService();
 }
Beispiel #24
0
 public InspectionController(IInspectionService inspectionService, IUserService userService, IVehicleService vehicleService)
 {
     this.inspectionService = inspectionService;
     this.userService       = userService;
     this.vehicleService    = vehicleService;
 }
Beispiel #25
0
 public InspectionsController(IInspectionService inspectionService, IOptions <StorageOptions> storageOptions)
 {
     _inspectionService = inspectionService ?? throw new ArgumentNullException(nameof(inspectionService));
     _storageOptions    = storageOptions ?? throw new ArgumentNullException(nameof(storageOptions));
 }
Beispiel #26
0
 public InspectionController(IInspectionService inspectionService)
 {
     _inspectionService = inspectionService;
 }
 public void Setup()
 {
     _inspectionService = new Mock <IInspectionService>().Object;
     _sut = new InspectionController(_inspectionService);
 }
Beispiel #28
0
 /// <summary>
 /// Create a controller and set the service
 /// </summary>
 public InspectionController(IInspectionService service)
 {
     _service = service;
 }
Beispiel #29
0
 public InspectionController(IInspectionService inspectionService, ICommonService commonService)
 {
     this._inspectionService = inspectionService;
     _commonService          = commonService;
 }