コード例 #1
0
    private void mthCategoryLevelDrill(String ITMember, String className)
    {
        double none     = ScoreCardReports.GetMonthNumberOfCategory(ITMember, className, "none", Int32.Parse(ddlMth.SelectedValue), Int32.Parse(ddlYr.SelectedValue));
        double hardware = ScoreCardReports.GetMonthNumberOfCategory(ITMember, className, "Hardware", Int32.Parse(ddlMth.SelectedValue), Int32.Parse(ddlYr.SelectedValue));
        double software = ScoreCardReports.GetMonthNumberOfCategory(ITMember, className, "Software", Int32.Parse(ddlMth.SelectedValue), Int32.Parse(ddlYr.SelectedValue));
        double network  = ScoreCardReports.GetMonthNumberOfCategory(ITMember, className, "Network", Int32.Parse(ddlMth.SelectedValue), Int32.Parse(ddlYr.SelectedValue));
        double people   = ScoreCardReports.GetMonthNumberOfCategory(ITMember, className, "People/Accomodation", Int32.Parse(ddlMth.SelectedValue), Int32.Parse(ddlYr.SelectedValue));
        double process  = ScoreCardReports.GetMonthNumberOfCategory(ITMember, className, "Process", Int32.Parse(ddlMth.SelectedValue), Int32.Parse(ddlYr.SelectedValue));
        double docs     = ScoreCardReports.GetMonthNumberOfCategory(ITMember, className, "Documentation", Int32.Parse(ddlMth.SelectedValue), Int32.Parse(ddlYr.SelectedValue));

        mthdrillDownDatasource.Add(new Issues()
        {
            Unassigned = none, Hardware = hardware, Software = software, Network = network, label = ITMember + ": " + className, People = people, Process = process, Documentation = docs
        });


        MonthPanel.DataBind();
        MonthPanel.TakeDataSource += MonthDrillDown_TakeDataSource;
    }
コード例 #2
0
    //-------------Monthly Drill Graph ------------------------//


    public void CreateMonthlyIssuesDrillDown()
    {
        MonthPanel.Width              = Unit.Percentage(100);
        MonthPanel.Height             = Unit.Pixel(400);
        MonthPanel.CssClass           = "chart";
        MonthPanel.PrimaryHeader.Text = "Month " + ddlMth.SelectedValue + ": Class Level View";
        MonthPanel.TooltipSettings.AxisMarkers.Enabled = true;
        MonthPanel.TooltipSettings.AxisMarkers.Mode    = ChartXYMode.Y;
        MonthPanel.TooltipSettings.AxisMarkers.Width   = new Unit(2);
        MonthPanel.TooltipSettings.AxisMarkers.ZIndex  = 3;

        MonthPanel.Font.Size = 12;
        MonthPanel.Font.Bold = true;

        ChartAxisX axisX = new ChartAxisX();

        axisX.CategoricalValuesField = "label";


        MonthPanel.Axes.Add(axisX);
        ChartAxisY axisY = new ChartAxisY();

        axisY.Title.Text = "# of Hours ";
        MonthPanel.Axes.Add(axisY);

        ChartBarSeries splineSeriesNone = new ChartBarSeries();

        splineSeriesNone.DataFieldY      = "Unassigned";
        splineSeriesNone.ID              = "Unassigned";
        splineSeriesNone.CollectionAlias = "Unassigned";
        MonthPanel.DataSeries.Add(splineSeriesNone);

        ChartBarSeries splineSeriesFault = new ChartBarSeries();

        splineSeriesFault.DataFieldY      = "Fault";
        splineSeriesFault.ID              = "Fault/Failure";
        splineSeriesFault.CollectionAlias = "Fault/Failure";
        MonthPanel.DataSeries.Add(splineSeriesFault);

        ChartBarSeries splineSeriesService = new ChartBarSeries();

        splineSeriesService.DataFieldY      = "Service";
        splineSeriesService.ID              = "Service Request";
        splineSeriesService.CollectionAlias = "Service Request";
        MonthPanel.DataSeries.Add(splineSeriesService);

        ChartBarSeries splineSeriesAssistance = new ChartBarSeries();

        splineSeriesAssistance.DataFieldY      = "Assistance";
        splineSeriesAssistance.CollectionAlias = "Assistance/Inquiry";
        splineSeriesAssistance.ID = "Assistance/Inquiry";
        MonthPanel.DataSeries.Add(splineSeriesAssistance);



        //if(!IsPostBack)
        //{

        mthClassLevelDrill();
        //   }

        MonthPanel.DataBind();


        //TypePanel.Controls.Add(WeekTypeChart);
    }