private void CategoryLevelDrill(String ITMember, String className) { double none = ScoreCardReports.GetNumberOfCategory(ITMember, className, "none", Int32.Parse(ddlDrillWeek.SelectedValue), Int32.Parse(ddlDrillYear.SelectedValue)); double hardware = ScoreCardReports.GetNumberOfCategory(ITMember, className, "Hardware", Int32.Parse(ddlDrillWeek.SelectedValue), Int32.Parse(ddlDrillYear.SelectedValue)); double software = ScoreCardReports.GetNumberOfCategory(ITMember, className, "Software", Int32.Parse(ddlDrillWeek.SelectedValue), Int32.Parse(ddlDrillYear.SelectedValue)); double network = ScoreCardReports.GetNumberOfCategory(ITMember, className, "Network", Int32.Parse(ddlDrillWeek.SelectedValue), Int32.Parse(ddlDrillYear.SelectedValue)); double people = ScoreCardReports.GetNumberOfCategory(ITMember, className, "People/Accomodation", Int32.Parse(ddlDrillWeek.SelectedValue), Int32.Parse(ddlDrillYear.SelectedValue)); double process = ScoreCardReports.GetNumberOfCategory(ITMember, className, "Process", Int32.Parse(ddlDrillWeek.SelectedValue), Int32.Parse(ddlDrillYear.SelectedValue)); double docs = ScoreCardReports.GetNumberOfCategory(ITMember, className, "Documentation", Int32.Parse(ddlDrillWeek.SelectedValue), Int32.Parse(ddlDrillYear.SelectedValue)); drillDownDatasource.Add(new Issues() { Unassigned = none, Hardware = hardware, Software = software, Network = network, label = ITMember + ": " + className, People = people, Process = process, Documentation = docs }); TypePanel.DataBind(); TypePanel.TakeDataSource += WeekDrillDown_TakeDataSource; }
//------------Weekly Drill Graph Containing Issues ------- public void CreateWeeklyIssuesDrillDown() { TypePanel.Width = Unit.Percentage(100); TypePanel.Height = Unit.Pixel(400); TypePanel.CssClass = "chart"; TypePanel.PrimaryHeader.Text = "Week " + ddlDrillWeek.SelectedValue + ": Class Level View"; TypePanel.TooltipSettings.AxisMarkers.Enabled = true; TypePanel.TooltipSettings.AxisMarkers.Mode = ChartXYMode.Y; TypePanel.TooltipSettings.AxisMarkers.Width = new Unit(2); TypePanel.TooltipSettings.AxisMarkers.ZIndex = 3; TypePanel.Font.Size = 12; TypePanel.Font.Bold = true; ChartAxisX axisX = new ChartAxisX(); axisX.CategoricalValuesField = "label"; TypePanel.Axes.Add(axisX); ChartAxisY axisY = new ChartAxisY(); axisY.Title.Text = "# of Hours "; TypePanel.Axes.Add(axisY); ChartBarSeries splineSeriesNone = new ChartBarSeries(); splineSeriesNone.DataFieldY = "Unassigned"; splineSeriesNone.ID = "Unassigned"; splineSeriesNone.CollectionAlias = "Unassigned"; TypePanel.DataSeries.Add(splineSeriesNone); ChartBarSeries splineSeriesFault = new ChartBarSeries(); splineSeriesFault.DataFieldY = "Fault"; splineSeriesFault.ID = "Fault/Failure"; splineSeriesFault.CollectionAlias = "Fault/Failure"; TypePanel.DataSeries.Add(splineSeriesFault); ChartBarSeries splineSeriesService = new ChartBarSeries(); splineSeriesService.DataFieldY = "Service"; splineSeriesService.ID = "Service Request"; splineSeriesService.CollectionAlias = "Service Request"; TypePanel.DataSeries.Add(splineSeriesService); ChartBarSeries splineSeriesAssistance = new ChartBarSeries(); splineSeriesAssistance.DataFieldY = "Assistance"; splineSeriesAssistance.CollectionAlias = "Assistance/Inquiry"; splineSeriesAssistance.ID = "Assistance/Inquiry"; TypePanel.DataSeries.Add(splineSeriesAssistance); //if(!IsPostBack) //{ ClassLevelDrill(); // } TypePanel.DataBind(); //TypePanel.Controls.Add(WeekTypeChart); }