private void PopulateOverallSection(AnalyticsDC result) { this.allCountValue.Text = result.TotalActiveEmployeeStatistic.Count.ToString(); this.allAverageValue.Text = result.TotalActiveEmployeeStatistic.Average.ToString("C0"); this.allTotalValue.Text = result.TotalActiveEmployeeStatistic.Total.ToString("C0"); this.allMaxValue.Text = result.TotalActiveEmployeeStatistic.Max.ToString("C0"); this.allMinValue.Text = result.TotalActiveEmployeeStatistic.Min.ToString("C0"); }
private void PopulateDate() { AnalyticsDC result = anaRepo.GetAnaltyics(empRepo); PopulateOverallSection(result); PopulateDEVSection(result); PopulateQASection(result); PopulateTPMSection(result); PopulateUESection(result); }
private void PopulateUESection(AnalyticsDC result) { Legend legend = GenerateLegend(result.UEStatistic); this.uePie.Series[0].Points.DataBindXY(legend.Items, legend.Values); this.uePie.Series[0]["PieLabelStyle"] = "Disabled"; this.ueCountValue.Text = result.UEStatistic.Count.ToString(); this.ueAverageValue.Text = result.UEStatistic.Average.ToString("C0"); this.ueTotalValue.Text = result.UEStatistic.Total.ToString("C0"); this.ueMaxValue.Text = result.UEStatistic.Max.ToString("C0"); this.ueMinValue.Text = result.UEStatistic.Min.ToString("C0"); }
public AnalyticsDC GetAnaltyics(EmployeeRepository empRepo) { IEnumerable <Employee> employees = PersistenceStore.Current.GetEmployeeStore().FindAll(); List <EmployeeDC> source = new List <EmployeeDC>(); foreach (var emp in employees) { EmployeeDC DC = emp.ConvertToDataContract(empRepo); if (DC.ResignDate == null) { source.Add(DC); } } AnalyticsDC ret = new AnalyticsDC(); ret.TotalActiveEmployeeStatistic = (StatisticDC)GetStatisticByTitle(null, source); ret.DEVStatistic = GetStatisticByTitle("DEV", source); ret.QAStatistic = GetStatisticByTitle("QA", source); ret.TPMStatistic = GetStatisticByTitle("TPM", source); ret.UEStatistic = GetStatisticByTitle("UE", source); return(ret); }