Ejemplo n.º 1
0
 public StatisticsController(IGoalRepo goalRepo, IReflectiveDiaryLogRepo diaryRepo, IDailyCheckInRepo dailyCheckInRepo, IMapper mapper)
 {
     _goalRepo         = goalRepo;
     _diaryRepo        = diaryRepo;
     _dailyCheckInRepo = dailyCheckInRepo;
     _mapper           = mapper;
 }
Ejemplo n.º 2
0
 public UserInputViewModel(IGoalRepo repo, IidService idService)
 {
     _repo             = repo;
     _idService        = idService;
     AddNewGoal        = new DelegateCommand(ExcecuteAddNewGoal, CanExcecuteAddNewGoal);
     AddRelatedGoal    = new DelegateCommand(ExcecuteAddRelatedGoal, CanExcecuteAddRelatedGoal);
     RemoveRelatedGoal = new DelegateCommand(ExcecuteRemoveRelatedGoal, CanExcecuteRemoveRelatedGoal);
     DeleteGoal        = new DelegateCommand(ExcecuteDeleteGoal, CanExcecuteDeleteGoal);
     Goals             = _repo.GetAllGoals();
 }
Ejemplo n.º 3
0
 public ReportsViewModel(
     IGoalRepo repo,
     IDepartmentRepo deporepo)
 {
     _repo            = repo;
     _deporepo        = deporepo;
     _goals           = _repo.GetAllGoals();
     _departments     = _deporepo.GetAllDepartments();
     _repo.NewData   += OnNewRepoData;
     LevelOneReport   = GenerateLevelOneReport();
     LevelTwoReport   = GenerateLevelTwoReport();
     LevelThreeReport = GenerateLevelThreeReport();
 }
Ejemplo n.º 4
0
        public LevelOneMatrixViewModel(
            IDepartmentRepo depoRepo,
            IGoalRepo repo,
            IPersonRepo personRepo,
            ILevelMatrixService levelOneMatrixService,
            ILevelMatrixService leveltwoMatrixService,
            ILevelMatrixService levelTreeMatrixService,
            IidService idService)
        {
            SelectedmatrixLevel = "One";
            _depoRepo           = depoRepo;
            _repo                   = repo;
            _personRepo             = personRepo;
            _levelOneMatrixService  = levelOneMatrixService;
            _leveltwoMatrixService  = leveltwoMatrixService;
            _levelTreeMatrixService = levelTreeMatrixService;
            _repo.NewData          += OnNewRepoData;
            _idService              = idService;
            AddNewGoal              = new DelegateCommand(ExcecuteAddNewGoal, CanExcecuteAddNewGoal);
            AddRelatedGoal          = new DelegateCommand(ExcecuteAddRelatedGoal, CanExcecuteAddRelatedGoal);
            RemoveRelatedGoal       = new DelegateCommand(ExcecuteRemoveRelatedGoal, CanExcecuteRemoveRelatedGoal);
            DeleteGoal              = new DelegateCommand(ExcecuteDeleteGoal, CanExcecuteDeleteGoal);
            //DeletePerson = new DelegateCommand(ExcecuteDeletePerson, CanExcecuteDeletePerson);
            //AddNewPerson = new DelegateCommand(ExcecuteAddNewPerson, CanExcecuteAddNewPerson);
            //AddRelatedPerson = new DelegateCommand(ExcecuteAddRelatedPerson, CanExcecuteAddRelatedPerson);
            GetLevelOneMatrix       = new DelegateCommand(ExcecuteGetLevelOneMatrix);
            GetLevelTwoMatrix       = new DelegateCommand(ExcecuteGetLevelTwoMatrix, CanExcecuteGetLevelTwoMatrix);
            GetLevelThreeMatrix     = new DelegateCommand(ExcecuteGetLevelThreeMatrix, CanExcecuteGetLevelThreeMatrix);
            AddNewDepartment        = new DelegateCommand(ExcecuteAddNewDepartment, CanExcecuteAddNewDepartment);
            RemoveRelatedDepartment = new DelegateCommand(ExcecuteRemoveRelatedDepartment, CanExcecuteRemoveRelatedDepartment);
            AddRelatedDepartment    = new DelegateCommand(ExcecuteAddRelatedDepartment, CanExcecuteAddRelatedDepartment);
            DeleteDepartments       = new DelegateCommand(ExcecuteDeleteDepartments, CanExcecuteDeleteDepartments);
            //RemoveRelatedPerson = new DelegateCommand(ExcecuteRemoveRelatedPerson, CanExcecuteRemoveRelatedPerson);
            UpdateDepartments();
            Goals = _repo.GetAllGoals();
            UpdateGoals();

            //UpdatePeople();
            UpdateCanvas();
        }
Ejemplo n.º 5
0
 public GoalService(IGoalRepo goalRepo, IChallengeRepo challengeRepo, IMappingService mappingService)
 {
     _goalRepo       = goalRepo;
     _challengeRepo  = challengeRepo;
     _mappingService = mappingService;
 }
Ejemplo n.º 6
0
 public GoalsController(IGoalRepo goalRepo, IMapper mapper)
 {
     _goalRepo = goalRepo;
     _mapper   = mapper;
 }