public SetMealsForUser(ICosmosRepository cosmosRepository, IMealSettingRepository mealSetting, IIngredientsRepository ingredientsRepository, IIndicatorRepository indicatorRepository)
 {
     _cosmosRepository      = cosmosRepository;
     _mealSetting           = mealSetting;
     _ingredientsRepository = ingredientsRepository;
     _indicatorRepository   = indicatorRepository;
 }
 public DeviceRepository(
     IUserRepository userRepository,
     IIndicatorRepository indicatorRepository)
 {
     _userRepository      = userRepository;
     _indicatorRepository = indicatorRepository;
 }
 public ResultSubjectMetaService(
     ContentDbContext contentDbContext,
     IFilterItemRepository filterItemRepository,
     IBoundaryLevelRepository boundaryLevelRepository,
     IFootnoteRepository footnoteRepository,
     IGeoJsonRepository geoJsonRepository,
     IIndicatorRepository indicatorRepository,
     IPersistenceHelper <StatisticsDbContext> persistenceHelper,
     ITimePeriodService timePeriodService,
     IUserService userService,
     ISubjectRepository subjectRepository,
     IReleaseDataFileRepository releaseDataFileRepository,
     IOptions <LocationsOptions> locationOptions,
     ILogger <ResultSubjectMetaService> logger) : base(filterItemRepository)
 {
     _contentDbContext          = contentDbContext;
     _boundaryLevelRepository   = boundaryLevelRepository;
     _footnoteRepository        = footnoteRepository;
     _geoJsonRepository         = geoJsonRepository;
     _indicatorRepository       = indicatorRepository;
     _persistenceHelper         = persistenceHelper;
     _timePeriodService         = timePeriodService;
     _userService               = userService;
     _subjectRepository         = subjectRepository;
     _releaseDataFileRepository = releaseDataFileRepository;
     _locationOptions           = locationOptions.Value;
     _logger = logger;
 }
 public CreateEditIndicatorVm()
 {
     Mediator.Instance.Register(MediatorActionType.SetEntityToEdit, SetEntityToEdit);
     Mediator.Instance.Register(MediatorActionType.SetSaveAsCallBackAction, SetSaveAsCallBackAction);
     SaveCommand = new DelegateCommand(Save, CanSave);
     this.CancelCommand = new DelegateCommand(Cancel, CanCancel);
     indicatorRepository = new IndicatorRepository();
 }
 public ExistingTaxCalculationCompletionVm()
 {
     Mediator.Instance.Register(MediatorActionType.ExecuteTaxCalculation, ExecuteTaxCalculation);
     Mediator.Instance.Register(MediatorActionType.SetSetupModel, SetSetupModel);
     this.SaveCommand = new DelegateCommand(Save, CanSave);
     this.BackCommand = new DelegateCommand(Back, CanBack);
     indicatorRepository = new IndicatorRepository();
     taxCalculationRepository = new TaxCalculationsRepository();
     Rectifying = Visibility.Collapsed;
 }
        public TaxCalculationSetupVm()
        {
            this.CreateCoinTypeCommand = new DelegateCommand(CreateCoinType, CanCreateCoinType);
            this.AddValuesCommand = new DelegateCommand(AddValues, CanAddValues);
            settingsRepository = new SettingsRepository();
            companyRepository = new CompanyRepository();
            indicatorRepository = new IndicatorRepository();
            taxCalculationsRepository = new TaxCalculationsRepository();

            Rectifying = false;
            LoadData();
        }
Example #7
0
        public UnitOfWork(
            IDeviceRepository deviceRepository,
            IUserRepository userRepository,
            IIndicatorRepository indicatorRepository,
            IIndicatorValuesRepository indicatorValuesRepository)

        {
            DeviceRepository          = deviceRepository;
            UserRepository            = userRepository;
            IndicatorRepository       = indicatorRepository;
            IndicatorValuesRepository = indicatorValuesRepository;
        }
        public PrintPreviewVm()
        {
            InitializeCommands();
            Mediator.Instance.Register(MediatorActionType.SetReportData, SetReportData);
            Mediator.Instance.Register(MediatorActionType.ExecuteTaxCalculation, ExecuteTaxCalculation);

            indicatorRepository = new IndicatorRepository();
            taxCalculationRepository = new TaxCalculationsRepository();

            PrintData = new PrintDataModel();
            PrintData.Pages = new List<PrintPage>();
            PrintData.Pages.Add(new PrintPage());
            PrintData.Pages[0].Rows = new List<PrintRow>();
            //LoadData();
        }
        public ChartViewModel(IGALogger logger, IUserInfoService userInfoService,
                              IHUDProvider hudProvider, IDeviceSettings deviceSettings,
                              IIndicatorRepository indicatorRepository)
        {
            _userInfoService     = userInfoService;
            _hudProvider         = hudProvider;
            _deviceSettings      = deviceSettings;
            _indicatorRepository = indicatorRepository;


            //PageTitle = AppResources.AboutUsPageTitle;
            //_deviceSettings.LoadInfo();
            //VersionLabel = string.Format("{0}:{1}", AppResources.VersionLabel, _deviceSettings.AppVersion);
            //AboutUsDetailText = AppResources.AboutUsDetailText;
        }
Example #10
0
 public DataGuidanceSubjectService(IFilterRepository filterRepository,
                                   IIndicatorRepository indicatorRepository,
                                   StatisticsDbContext context,
                                   IPersistenceHelper <StatisticsDbContext> statisticsPersistenceHelper,
                                   IReleaseDataFileRepository releaseDataFileRepository,
                                   IFootnoteRepository footnoteRepository,
                                   ITimePeriodService timePeriodService)
 {
     _filterRepository            = filterRepository;
     _indicatorRepository         = indicatorRepository;
     _context                     = context;
     _statisticsPersistenceHelper = statisticsPersistenceHelper;
     _releaseDataFileRepository   = releaseDataFileRepository;
     _footnoteRepository          = footnoteRepository;
     _timePeriodService           = timePeriodService;
 }
        public TaxIndicatorsListVm()
        {
            this.Title = "Indicatori";
            SaveCommand = new DelegateCommand(Save, CanSave);
            CreateCommand = new DelegateCommand(Create, CanCreate);
            DeleteCommand = new DelegateCommand(Delete, CanDelete);
            EditCommand = new DelegateCommand(Edit, CanEdit);
            this.SetAsDefaultCommand = new DelegateCommand(SetAsDefault, CanSetAsDefault);
            this.EditIndicatorsCommand = new DelegateCommand(EditIndicators, CanEditIndicators);

            Mediator.Instance.Register(MediatorActionType.RefreshList, RefreshList);

            indicatorRepository = new IndicatorRepository();

            RefreshList(null);
        }
 public ActivitiesViewModel(IGALogger logger, IUserInfoService userInfoService,
                            IHUDProvider hudProvider, IIndicatorRepository indicatoryRepository, ISiteIndicatorRepository siteIndicatoryRepository,
                            IActivityRepository activityRepository, IObservationRepository observationRepository, IObservationEntryRepository observationEntryRepository,
                            IIndicatorAgeRepository indicatorAgeRepository)
 {
     _userInfoService            = userInfoService;
     _hudProvider                = hudProvider;
     SiteNameLabel               = AppResources.SiteNameLabel;
     PageTitle                   = AppResources.IndicatorsPageTitle;
     _indicatorRepository        = indicatoryRepository;
     _siteIndicatoryRepository   = siteIndicatoryRepository;
     _activitiesRepository       = activityRepository;
     _observationRepository      = observationRepository;
     _observationEntryRepository = observationEntryRepository;
     _indicatorAgeRespository    = indicatorAgeRepository;
 }
        public EditIndicatorsVm()
        {
            this.AddBeforeCommand = new DelegateCommand(AddBefore, CanAddBefore);
            this.AddAfterCommand = new DelegateCommand(AddAfter, CanAddAfter);
            this.RemoveRowCommand = new DelegateCommand(RemoveRow, CanRemoveRow);
            this.ValidateCommand = new DelegateCommand(Validate, CanValidate);
            this.SaveCommand = new DelegateCommand(Save, CanSave);
            this.SaveAsCommand = new DelegateCommand(SaveAs, CanSaveAs);
            this.BackCommand = new DelegateCommand(Back, CanBack);
            this.RulesCommand = new DelegateCommand(Rules, CanRules);
            indicatorRepository = new IndicatorRepository();
            settingsRepository = new SettingsRepository();

            EditEnabled = true;
            Mediator.Instance.Register(MediatorActionType.SetTaxIndicatorToEditFormula, SetTaxIndicatorToEditFormula);

            TaxIndicators = new ObservableCollection<TaxIndicatorViewModel>();

            LoadInitialData();
            //Tests();
        }
Example #14
0
 public IndicatorService(IIndicatorRepository indicatorRepository, ICalculationTypeRepository calculationTypeRepository, IUnitOfWork unitOfWork)
 {
     this._indicatorRepository        = indicatorRepository;
     this._unitOfWork                 = unitOfWork;
     this._calcuclationTypeRepository = calculationTypeRepository;
 }
 public IndicatorService()
 {
     _rep = RepositoryFactory.IndicatorRepository();
 }
Example #16
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;
            }
        }
 public CustomMongoSeeder(IMongoDatabase database,
                          IIndicatorRepository indicatorRepository)
     : base(database)
 {
     _indicatorRepository = indicatorRepository;
 }
Example #18
0
 public Strategy(IIndicatorRepository irep)
 {
     indicatorRep = irep;
 }