public void GetPriorityChart()
        {
            WebService1 serv   = new WebService1();
            string      result = string.Empty;

            result = serv.GetChartData(ddlMinistryPriority.SelectedValue.ToInt32(), "1", 0);
            // result = "var chartData=" + result+";";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "name", "<script>" + result + "   </script>");
            ClientScript.RegisterStartupScript(this.GetType(), "name1", "<script>" + result + "   </script>");
            //
            result = serv.GetChartData(ddlMinistryPriority.SelectedValue.ToInt32(), "2", ddlTrimester.SelectedValue.ToInt32());
            // result = "var chartData=" + result+";";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "name1", "<script>" + result + "   </script>");
            ClientScript.RegisterStartupScript(this.GetType(), "name2", "<script>" + result + "   </script>");
            //
            result = serv.GetChartData(ddlMinistryPriority.SelectedValue.ToInt32(), "3", ddlTrimester.SelectedValue.ToInt32());
            // result = "var chartData=" + result+";";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "name2", "<script>" + result + "   </script>");
            ClientScript.RegisterStartupScript(this.GetType(), "name3", "<script>" + result + "   </script>");
        }
        private void LoadBarChart()
        {
            ProjectService objWebService     = new ProjectService();
            ComProjectBO   objComProjectBO   = new ComProjectBO();
            DataTable      dtPopulateProject = new DataTable();

            //amcharts bar
            WebService1 serv   = new WebService1();
            string      result = string.Empty;

            objComProjectBO.Lang = Session["LanguageSetting"].ToString();
            //objComProjectBO.MinistryId = ddlMinistry.SelectedValue.ToInt32();
            //objComProjectBO.Priority = ddlPriority.SelectedValue.ToInt32();
            objComProjectBO.ProjectId    = ddlProject.SelectedValue.ToInt32();
            objComProjectBO.ChaumasikId  = ddlChaumasik.SelectedValue.ToInt32();
            objComProjectBO.FiscalYearId = Session["fiscal_year_id"].ToInt32();
            result = serv.GetBarChartDataBarshik(objComProjectBO);
            // result = "var chartData=" + result+";";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "bar2", "<script>" + result + "   </script>");
            ClientScript.RegisterStartupScript(this.GetType(), "bar3", "<script>" + result + "   </script>");
        }
        private void LoadChart()
        {
            ProjectService objWebService     = new ProjectService();
            ComProjectBO   objComProjectBO   = new ComProjectBO();
            DataTable      dtPopulateProject = new DataTable();

            //amcharts bar
            WebService1 serv   = new WebService1();
            string      result = string.Empty;

            objComProjectBO.Lang = Session["LanguageSetting"].ToString();
            //objComProjectBO.MinistryId = ddlMinistry.SelectedValue.ToInt32();
            //objComProjectBO.Priority = ddlPriority.SelectedValue.ToInt32();
            objComProjectBO.ProjectId    = ddlProject.SelectedValue.ToInt32();
            objComProjectBO.ChaumasikId  = ddlChaumasik.SelectedValue.ToInt32();
            objComProjectBO.FiscalYearId = Session["fiscal_year_id"].ToInt32();
            result = serv.GetBarChartData(objComProjectBO);
            // result = "var chartData=" + result+";";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "bar", "<script>" + result + "   </script>");
            ClientScript.RegisterStartupScript(this.GetType(), "bar1", "<script>" + result + "   </script>");

            //amcharts bar


            //---
            //objWebService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationProject();
            //objComProjectBO.Lang = Session["LanguageSetting"].ToString();
            //objComProjectBO.MinistryId = ddlMinistry.SelectedValue.ToInt32();
            ////objComProjectBO.Priority = ddlPriority.SelectedValue.ToInt32();
            //objComProjectBO.ProjectId = ddlProject.SelectedValue.ToInt32();
            //objComProjectBO.ChaumasikId = ddlChaumasik.SelectedValue.ToInt32();
            //objComProjectBO.FiscalYearId = Session["fiscal_year_id"].ToInt32();
            //dtPopulateProject = objWebService.PopulateProjectSamastigatDashboard(objComProjectBO);
            ////dtPopulateProject = GetData();
            //for (int i = 0; i < dtPopulateProject.Columns.Count; i++)
            //{

            //    if (dtPopulateProject.Columns[i].ColumnName == "BHAUTIK_PRAGATI" || dtPopulateProject.Columns[i].ColumnName == "BITIYE_PRAGATI")
            //    {
            //        Series series = new Series();
            //        series.IsValueShownAsLabel = true;
            //        series.ChartType = SeriesChartType.Column;

            //        for (int j = 0; j < dtPopulateProject.Rows.Count; j++)
            //        {
            //            if (dtPopulateProject.Columns[i].ColumnName == "BHAUTIK_PRAGATI")
            //            {
            //                Color c = Color.FromArgb(27,116,5);

            //                Decimal y = dtPopulateProject.Rows[j]["BHAUTIK_PRAGATI"].ToDecimal();
            //                series.Points.AddXY(dtPopulateProject.Rows[j]["PROJECT_NEP_NAME"].ToString(), y);
            //                series.Color = c;
            //                series.Name = "भौतिक प्रगति";
            //            }
            //            if (dtPopulateProject.Columns[i].ColumnName == "BITIYE_PRAGATI")
            //            {
            //                Color c = Color.FromArgb(239, 250, 15);

            //                Decimal y = dtPopulateProject.Rows[j]["BITIYE_PRAGATI"].ToDecimal();
            //                series.Points.AddXY(dtPopulateProject.Rows[j]["PROJECT_NEP_NAME"].ToString(), y);
            //                series.Color = c;
            //                series.Name = "वित्तिय प्रगति";
            //            }
            //        }
            //        Chart1.Series.Add(series);
            //    }
            //---

            //}
        }