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(); }
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); } }
public PerformanceCalculator() { this.Plans = DIH.Plan.Get(); this.PlanMetrics = PlanMetric.Get(); this.Goals = Goal.Get(); this.GoalMetrics = GoalMetric.Get(); }