public SubjectMetaService(
     StatisticsDbContext context,
     IFilterRepository filterRepository,
     IFilterItemRepository filterItemRepository,
     IIndicatorGroupRepository indicatorGroupRepository,
     ILocationRepository locationRepository,
     ILogger <SubjectMetaService> logger,
     IObservationService observationService,
     IPersistenceHelper <StatisticsDbContext> persistenceHelper,
     ITimePeriodService timePeriodService,
     IUserService userService,
     IOptions <LocationsOptions> locationOptions) :
     base(filterItemRepository)
 {
     _context                  = context;
     _filterRepository         = filterRepository;
     _indicatorGroupRepository = indicatorGroupRepository;
     _locationRepository       = locationRepository;
     _logger             = logger;
     _observationService = observationService;
     _persistenceHelper  = persistenceHelper;
     _timePeriodService  = timePeriodService;
     _userService        = userService;
     _locationOptions    = locationOptions.Value;
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public Converter(IObservationService observationService, ILogService logService, ILocationService locationService, IProgress <Observation> progress = null)
 {
     this.observationService = observationService;
     this.logService         = logService;
     this.locationService    = locationService;
     this.progress           = progress;
 }
Exemplo n.º 4
0
        public void Setup()
        {
            var configurationBuilder = new ConfigurationBuilder();

            configurationBuilder.AddJsonFile("appsettings.local.json", false);
            _configuration      = configurationBuilder.Build();
            _options            = Options.Create <CleanHistoricOptions>(_configuration.GetSection("CleanHistoricOptions").Get <CleanHistoricOptions>());
            _observationService = new ObservationService(_options);
        }
Exemplo n.º 5
0
 public ObservationController(IFhirService fhirService, IObservationService observationService,
                              IConverter <Observation, ObservationDto> observationToDtoConverter,
                              IConverter <IList <Observation>, IList <ObservationDto> > observationsToDtoConverter)
 {
     _observationService         = observationService;
     _observationToDtoConverter  = observationToDtoConverter;
     _observationsToDtoConverter = observationsToDtoConverter;
     fhirService.Initialize();
 }
 public SelfInspectionService(AppSettings appSettings,
                              IBitstampConfig bitStampConfig,
                              IGdaxConfig gdaxConfig,
                              IObservationService observationService,
                              IExchangeDataService exchangeDataService,
                              IExchangeTradeService exchangeTradeService)
 {
     _appSettings          = appSettings;
     _bitStampConfig       = bitStampConfig;
     _gdaxConfig           = gdaxConfig;
     _observationService   = observationService;
     _exchangeDataService  = exchangeDataService;
     _exchangeTradeService = exchangeTradeService;
 }
Exemplo n.º 7
0
        public App(ILogger <App> logger,
                   AppSettings appSettings,
                   IExchangeDataService exchangeDataService,
                   IExchangeTradeService exchangeTradeService,
                   IObservationService observationService,
                   IOpportunityService opportunityService,
                   IWorker worker)
        {
            _appSettings          = appSettings;
            _logger               = logger;
            _exchangeDataService  = exchangeDataService;
            _exchangeTradeService = exchangeTradeService;
            _observationService   = observationService;

            _worker = worker;
        }
Exemplo n.º 8
0
        public App(ILogger <App> logger,
                   ISelfInspectionService selfInspectionService,
                   IExchangeDataService exchangeDataService,
                   IExchangeTradeService exchangeTradeService,
                   IObservationService observationService,
                   IOpportunityService opportunityService,
                   IWorker worker)
        {
            _logger = logger;
            _selfInspectionService = selfInspectionService;
            _exchangeDataService   = exchangeDataService;
            _exchangeTradeService  = exchangeTradeService;
            _observationService    = observationService;

            _worker = worker;
        }
 public TableBuilderService(
     IObservationService observationService,
     IPersistenceHelper <StatisticsDbContext> statisticsPersistenceHelper,
     IResultSubjectMetaService resultSubjectMetaService,
     ISubjectService subjectService,
     IUserService userService,
     IResultBuilder <Observation, ObservationViewModel> resultBuilder,
     IReleaseService releaseService)
 {
     _observationService          = observationService;
     _statisticsPersistenceHelper = statisticsPersistenceHelper;
     _resultSubjectMetaService    = resultSubjectMetaService;
     _subjectService = subjectService;
     _userService    = userService;
     _resultBuilder  = resultBuilder;
     _releaseService = releaseService;
 }
Exemplo n.º 10
0
 public Worker(IExchangeDataService exchangeDataService,
               IExchangeTradeService exchangeTradeService,
               IMessageService messageService,
               IObservationService observationService,
               IOpportunityService opportunityService,
               IArbitrageService arbitrageService,
               IOrderService orderService,
               ILogger <Worker> logger)
 {
     _exchangeDataService  = exchangeDataService;
     _exchangeTradeService = exchangeTradeService;
     _messageService       = messageService;
     _observationService   = observationService;
     _opportunityService   = opportunityService;
     _arbitrageService     = arbitrageService;
     _orderService         = orderService;
     _logger = logger;
 }
Exemplo n.º 11
0
 private TableBuilderService BuildTableBuilderService(
     IObservationService observationService = null,
     IPersistenceHelper <StatisticsDbContext> statisticsPersistenceHelper = null,
     IResultSubjectMetaService resultSubjectMetaService = null,
     ISubjectService subjectService = null,
     IUserService userService       = null,
     IResultBuilder <Observation, ObservationViewModel> resultBuilder = null,
     IReleaseService releaseService = null)
 {
     return(new TableBuilderService(
                observationService ?? new Mock <IObservationService>().Object,
                statisticsPersistenceHelper ?? StatisticsPersistenceHelperMock(_subject).Object,
                resultSubjectMetaService ?? new Mock <IResultSubjectMetaService>().Object,
                subjectService ?? new Mock <ISubjectService>().Object,
                userService ?? new Mock <IUserService>().Object,
                resultBuilder ?? new ResultBuilder(DataServiceMapperUtils.DataServiceMapper()),
                releaseService ?? new Mock <IReleaseService>().Object
                ));
 }
 public ResidentController(
     IResidentService residentService,
     IResidentContactService residentContactService,
     IAppointmentService appointmentService,
     IResidentDoctorService residentDoctorService,
     IObservationService observationService,
     IResidentAnalyzesService residentAnalyzesService,
     IResidentDrugService residentDrugService,
     IResidentManipulationService residentManipulationService)
 {
     _residentService             = residentService;
     _residentContactService      = residentContactService;
     _appointmentService          = appointmentService;
     _residentDoctorService       = residentDoctorService;
     _observationService          = observationService;
     _residentAnalyzesService     = residentAnalyzesService;
     _residentDrugService         = residentDrugService;
     _residentManipulationService = residentManipulationService;
 }
Exemplo n.º 13
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;
        }
Exemplo n.º 14
0
 public TableBuilderService(
     StatisticsDbContext context,
     IFilterItemRepository filterItemRepository,
     IObservationService observationService,
     IPersistenceHelper <StatisticsDbContext> statisticsPersistenceHelper,
     IResultSubjectMetaService resultSubjectMetaService,
     ISubjectRepository subjectRepository,
     IUserService userService,
     IResultBuilder <Observation,
                     ObservationViewModel> resultBuilder,
     IReleaseRepository releaseRepository,
     IOptions <TableBuilderOptions> options)
 {
     _context = context;
     _filterItemRepository        = filterItemRepository;
     _observationService          = observationService;
     _statisticsPersistenceHelper = statisticsPersistenceHelper;
     _resultSubjectMetaService    = resultSubjectMetaService;
     _subjectRepository           = subjectRepository;
     _userService       = userService;
     _resultBuilder     = resultBuilder;
     _releaseRepository = releaseRepository;
     _options           = options.Value;
 }
Exemplo n.º 15
0
 public SubjectMetaService(IBoundaryLevelService boundaryLevelService,
                           IFilterService filterService,
                           IFilterItemService filterItemService,
                           IGeoJsonService geoJsonService,
                           IIndicatorGroupService indicatorGroupService,
                           ILocationService locationService,
                           ILogger <SubjectMetaService> logger,
                           IMapper mapper,
                           IObservationService observationService,
                           IPersistenceHelper <StatisticsDbContext> persistenceHelper,
                           ITimePeriodService timePeriodService,
                           IUserService userService) : base(boundaryLevelService, filterItemService, geoJsonService)
 {
     _filterService         = filterService;
     _filterItemService     = filterItemService;
     _indicatorGroupService = indicatorGroupService;
     _locationService       = locationService;
     _logger             = logger;
     _mapper             = mapper;
     _observationService = observationService;
     _persistenceHelper  = persistenceHelper;
     _timePeriodService  = timePeriodService;
     _userService        = userService;
 }
 public PatientService(IResourceFetchService resource, ILoggerManager logger, IObservationService observationService)
 {
     _resource    = resource;
     _logger      = logger;
     _observation = observationService;
 }
Exemplo n.º 17
0
 public ObservationAppService(IObservationService observationBase, IObserverService observerService)
     : base(observationBase)
 {
     _observationService = observationBase;
     _observerService    = observerService;
 }
Exemplo n.º 18
0
 public ObservationsController(IObservationService observationService,
                               IWorker worker)
 {
     _observationService = observationService;
     _worker             = worker;
 }
Exemplo n.º 19
0
 public searchSimpson(ILoggerManager logger, IPatientService patientService, IObservationService observationService)
 {
     _logger             = logger;
     _patientService     = patientService;
     _observationService = observationService;
 }
Exemplo n.º 20
0
        public LandingViewModel(IGALogger logger, IUserInfoService userInfoService,
                                IHUDProvider hudProvider, IObservationService observationService, ISiteRepository siteRepository,
                                IActivityRepository activityRepository, IIndicatorRepository indicatoryRepository,
                                ISiteIndicatorRepository siteIndicatoryRepository, IObservationRepository observationRepository,
                                IObservationEntryRepository observationEntryRepository, IObservationChangeRepository observationChangeRepository,
                                IObservationCommentRepository observationCommentRepository, IObservationAttachmentRepository observationAttachmentRepository,
                                IIndicatorAgeRepository indicatoryAgeRepository, IDeviceSettings deviceSettings)
        {
            _userInfoService                 = userInfoService;
            _hudProvider                     = hudProvider;
            _observationService              = observationService;
            _siteRepository                  = siteRepository;
            _activityRepository              = activityRepository;
            _indicatorRepository             = indicatoryRepository;
            _siteIndicatorRepository         = siteIndicatoryRepository;
            _observationRepository           = observationRepository;
            _observationEntryRepository      = observationEntryRepository;
            _observationChangeRepository     = observationChangeRepository;
            _observationCommentRepository    = observationCommentRepository;
            _observationAttachmentRepository = observationAttachmentRepository;
            _indicatorAgeRepository          = indicatoryAgeRepository;
            _deviceSettings                  = deviceSettings;

            DownloadText        = AppResources.DownloadText;
            LastInformationText = AppResources.LastInformationText;
            DownloadButtonText  = AppResources.DownloadButtonText;

            var culture = DependencyService.Get <ILocale>().GetCurrentCultureInfo();

            if (culture.TwoLetterISOLanguageName == "fr")
            {
                LanguageId = 2;
            }
            else if (culture.TwoLetterISOLanguageName == "es")
            {
                LanguageId = 3;
            }
            else
            {
                LanguageId = 1;
            }


            //GetUserInfo
            var userInfo = _userInfoService.GetSavedInfo();

            if (!string.IsNullOrEmpty(userInfo.LastDownload))
            {
                try
                {
                    var last = DateTime.Parse(userInfo.LastDownload);
                    var ci   = DependencyService.Get <ILocale>().GetCurrentCultureInfo();
                    LastInformationTextDate = userInfo.LastDownload;                     //string.Format(ci, "{0}", last);
                }
                catch
                {
                    LastInformationText = AppResources.NoDownloadText;
                }
            }
            else
            {
                LastInformationText = AppResources.NoDownloadText;
            }
        }
Exemplo n.º 21
0
 public ObservationController(IObservationService observationService, IFeedbackService feedbackService)
 {
     this._observationService = observationService;
     this._feedbackService    = feedbackService;
 }
Exemplo n.º 22
0
 public WatchsController(IObservationService observationService,
                         IExchangeDataService exchangeDataService)
 {
     _observationService  = observationService;
     _exchangeDataService = exchangeDataService;
 }
        public ObservationViewModel(IGALogger logger, IUserInfoService userInfoService, IObservationRepository observationRep,
                                    IHUDProvider hudProvider, IObservationEntryRepository observationEntryRepository,
                                    IObservationChangeRepository observationChangeRepository,
                                    IObservationCommentRepository observationCommentRepository,
                                    IObservationAttachmentRepository observationAttachmentRepository,
                                    IObservationService ObservationService, IDeviceSettings deviceSettings)
        {
            _userInfoService                 = userInfoService;
            _hudProvider                     = hudProvider;
            _observationRep                  = observationRep;
            _observationEntryRepository      = observationEntryRepository;
            _observationChangeRepository     = observationChangeRepository;
            _observationCommentRepository    = observationCommentRepository;
            _observationAttachmentRepository = observationAttachmentRepository;
            _observationService              = ObservationService;
            _deviceSettings                  = deviceSettings;

            TestDate = DateTime.Now;


            MessagingCenter.Subscribe <ObservationChange>(this, "ChangeScreen", (change) =>
            {
                if (Changes == null)
                {
                    Changes = new ObservableCollection <ObservationChange>();
                }
                var item = Changes.Where(m => m == change).FirstOrDefault();
                if (item != null)
                {
                    Changes.Remove(item);
                    Changes.Add(item);
                }
                else
                {
                    Changes.Add(change);
                }
                if (_Navigation.ModalStack.Count != 0)
                {
                    _Navigation.PopModalAsync();
                }
            });

            MessagingCenter.Subscribe <ObservationAttachment>(this, "AttachmentScreen", (attach) =>
            {
                if (Attachments == null)
                {
                    Attachments = new ObservableCollection <ObservationAttachment>();
                }
                var item = Attachments.Where(m => m == attach).FirstOrDefault();
                if (item != null)
                {
                    Attachments.Remove(item);
                    Attachments.Add(item);
                }
                else
                {
                    Attachments.Add(attach);
                }
            });

            MessagingCenter.Subscribe <ObsViewModel>(this, "NumDemUpdate", (change) =>
            {
                RaisePropertyChanged("IndicatorNumCount");
                RaisePropertyChanged("IndicatorDenCount");
                RaisePropertyChanged("IndicatorCount");
                RaisePropertyChanged("IndicatorCountDisplay");
            });



            MessagingCenter.Subscribe <ObservationAttachment>(this, "AttachmentScreenCancel", (change) =>
            {
                if (_Navigation.ModalStack.Count != 0)
                {
                    _Navigation.PopModalAsync();
                }
            });

            MessagingCenter.Subscribe <ObservationChange>(this, "ChangeScreenCancel", (change) =>
            {
                Changes = Changes;
                if (_Navigation.ModalStack.Count != 0)
                {
                    _Navigation.PopModalAsync();
                }
            });

            MessagingCenter.Subscribe <ObservationComment>(this, "CommentScreen", (comment) =>
            {
                var item = Comments.Where(m => m == comment).FirstOrDefault();
                if (item != null)
                {
                    Comments.Remove(item);
                    Comments.Add(item);
                }
                else
                {
                    var i = Comments.Count();
                    Comments.Add(comment);
                }
                if (_Navigation.ModalStack.Count != 0)
                {
                    _Navigation.PopModalAsync();
                }
            });

            MessagingCenter.Subscribe <ObservationComment>(this, "CommentScreenCancel", (change) =>
            {
                Comments = Comments;
                if (_Navigation.ModalStack.Count != 0)
                {
                    _Navigation.PopModalAsync();
                }
            });
        }
 public ObservationController(IObservationService observationService)
 {
     _observationService = observationService;
 }
Exemplo n.º 25
0
 public ObservationsController(IObservationService service)
 {
     this.service = service;
 }
Exemplo n.º 26
0
 public ObservationController(IObservationService service)
 {
     _service = service;
 }
Exemplo n.º 27
0
 public ObservationController(
     IObservationService IobservationService
     )
 {
     _IobservationService = IobservationService;
 }