Exemple #1
0
 public PerformanceCalculator(string team)
 {
     this.Plans       = DIH.Plan.Get();
     this.PlanMetrics = PlanMetric.Get();
     this.Goals       = Goal.Get().FindAll(x => x.Team == team);
     this.GoalMetrics = GoalMetric.Get();
 }
Exemple #2
0
        public bool Outperforms(PlanMetric planMetric, Goal goal)
        {
            var goalMetric = planMetric.GetGoalMetric(goal, this.GoalMetrics);

            if (goalMetric == null)
            {
                return(true);
            }

            switch (goal.Team)
            {
            case "All":
                return(planMetric.Value > goalMetric.Value);

            case "Investment Services":
                return(planMetric.Value > goalMetric.Value);

            case "RetireAdvisers":
                return(planMetric.Value > goalMetric.Value);

            case "Vendor Services":
                return(planMetric.Value < goalMetric.Value);

            default:
                return(false);
            }
        }
Exemple #3
0
 public PerformanceCalculator()
 {
     this.Plans       = DIH.Plan.Get();
     this.PlanMetrics = PlanMetric.Get();
     this.Goals       = Goal.Get();
     this.GoalMetrics = GoalMetric.Get();
 }