Esempio n. 1
0
        public CollectionViewModelBase(IMetricBaseService <T> _service)
        {
            TargetModel = new T();
            dispatcher  = Deployment.Current.Dispatcher;

            service = _service;

            Initialize();
        }
Esempio n. 2
0
        public MetricsViewModel(IMetricBaseService <Metrics> _service, ISetupService <CompanyDepartmentJobRole> _cdjrService, ISetupService <MetricsPerspective> _metricsPerspectiveService, IEventAggregator _eventAggregator)
            : base(_service)
        {
            cdjrService               = _cdjrService;
            departmentService         = new DepartmentService();
            metricsPerspectiveService = _metricsPerspectiveService;

            Initialise();

            OnInitialise("");
        }
Esempio n. 3
0
        public MetricRatingViewModel(IMetricBaseService <MetricRating> _service, ISetupService <RatingType> _ratingTypeService, ISetupService <Infrastructure.MangoService.Rating> _ratingService, ISetupService <CompanyDepartmentJobRole> _cdjrService, IEventAggregator _eventAggregator)
            : base(_service)
        {
            cdjrService       = _cdjrService;
            ratingService     = _ratingService;
            ratingTypeService = _ratingTypeService;

            Initialise();

            //_eventAggregator.GetEvent<SetupEvent>().Subscribe(OnInitialise);

            OnInitialise("");
        }
Esempio n. 4
0
        public JobRoleSupervisorViewModel(IMetricBaseService <JobRoleSupervisor> _service, ISetupService <CompanyDepartmentJobRole> _companyDepartmentJobRoleService, IEventAggregator _eventAggregator)
            : base(_service)
        {
            jobRoleSupervisorService        = new JobRoleSupervisorService();
            companyDepartmentJobRoleService = _companyDepartmentJobRoleService;

            ModelName        = "Roles Under Supervisor";
            RemoveAllCommand = new DelegateCommand(OnRemoveAllCommand, CanRemoveAll);

            //LoadAllCompanyDepartmentJobRoleCompleted();
            //companyDepartmentJobRoleService.LoadAll();

            //LoadAllJobRolesByPeriod();

            //_eventAggregator.GetEvent<SetupEvent>().Subscribe(OnInitialise);

            OnInitialise("");
        }
Esempio n. 5
0
        //public SetupInpsRatingViewModel(IMetricBaseService<InpsRating> _service, ISetupService<RatingType> _ratingTypeService, ISetupService<Infrastructure.MangoService.Rating> _ratingService)

        public SetupInpsRatingViewModel(IMetricBaseService <InpsRating> _service, ISetupService <RatingType> _ratingTypeService, ISetupService <Infrastructure.MangoService.Rating> _ratingService)
            : base(_service)
        {
            IsInfinity = false;
            //RemoveAllCommand = new DelegateCommand(OnRemoveAllCommand, CanRemoveAll);

            ratingService     = _ratingService;
            ratingTypeService = _ratingTypeService;
            inpsTypeService   = new InpsTypeService();

            inpsRatingService = new InpsRatingService();

            //service.LoadByPeriod(Utility.Period);
            //LoadAllInpsRatingsByPeriodCompleted();

            LoadAllInpsTypeCompleted();
            inpsTypeService.LoadAll();

            Period = Utility.Period;

            ModelName = "NPS/INPS Rating";

            OnInitialise("");
        }