Exemple #1
0
        private void ChartBind(int chartID)
        {
            ChartProperty objclsChartProperty = new ChartProperty();

            objclsChartProperty.QueryParameter   = "";
            objclsChartProperty.ConnectionString = sqlConn.ToString();
            objclsChartProperty.ReportID         = chartID;
            DashBoard1.BindChart(objclsChartProperty);
            Chart chart1 = new Chart();

            chart1 = (Chart)DashBoard1.FindControl("Chart1");
            if (chart1.Series.Count == 0)
            {
                DashBoard1.Visible = false;
            }
        }
Exemple #2
0
        private void ChartBind()
        {
            ChartProperty objclsChartProperty = new ChartProperty();

            //objclsChartProperty.ReportID = 1;
            objclsChartProperty.QueryParameter   = "";
            objclsChartProperty.ConnectionString = sqlConn.ToString();


            // For Site
            objclsChartProperty.ReportID = 39;
            DashBoard1.BindChart(objclsChartProperty);
            Chart chart1 = new Chart();

            chart1 = (Chart)DashBoard1.FindControl("Chart1");
            if (chart1.Series.Count == 0)
            {
                DashBoard1.Visible = false;
            }

            //For Engine
            objclsChartProperty.ReportID = 38;
            DashBoard2.BindChart(objclsChartProperty);
            Chart chart2 = new Chart();

            chart1 = (Chart)DashBoard1.FindControl("Chart1");
            if (chart1.Series.Count == 0)
            {
                DashBoard2.Visible = false;
            }

            //For Porduct
            // objclsChartProperty.ReportID = 41;
            //// DashBoard3.BindChart(objclsChartProperty);
            // Chart chart3 = new Chart();
            // chart1 = (Chart)DashBoard1.FindControl("Chart1");
            // if (chart1.Series.Count == 0)
            // { DashBoard3.Visible = false; }
        }