//17/3/2016 sowmya added for VSPLUS 2455 public void Fillclusterinfogrid() { DataTable dt = VSWebBL.ReportsBL.ReportsBL.Ins.GetclusterinfoBL(); ClusterInfoGrid.DataSource = dt; ClusterInfoGrid.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { //9/15/2014 NS added for VSPLUS-921 bool ShowAll = false; this.ClusterRepWebChartControl1.Width = new Unit(Convert.ToInt32(chartWidth.Value)); this.ClusterRepWebChartControl2.Width = new Unit(Convert.ToInt32(chartWidth.Value)); //17/3/2016 sowmya added for VSPLUS 2455 Fillclusterinfogrid(); if (ClusterInfoGrid.VisibleRowCount > 0) { int index = ClusterInfoGrid.FocusedRowIndex; if (index > -1) { Clustervalue = Convert.ToInt32(ClusterInfoGrid.GetRowValues(index, "ID")); ClustName = ClusterInfoGrid.GetRowValues(index, "Name").ToString(); Thresholdval = Convert.ToInt32(ClusterInfoGrid.GetRowValues(index, "First_Alert_Threshold")); Session["ClustName"] = ClustName; Session["Thresholdvalue"] = Thresholdval; } } if (!IsPostBack && !IsCallback) { //9/15/2014 NS added for VSPLUS-921 //FillCombobox(); HtmlGenericControl body = (HtmlGenericControl)Master.FindControl("Body1"); body.Attributes.Add("onResize", "Resized()"); body.Attributes.Add("onload", "DoCallback()"); if (Session["UserPreferences"] != null) { DataTable UserPreferences = (DataTable)Session["UserPreferences"]; foreach (DataRow dr in UserPreferences.Rows) { //9/16/2014 NS added for VSPLUS-921 if (dr[1].ToString() == "PotentialClusterIssues|PotentialIssuesGrid") { PotentialIssuesGrid.SettingsPager.PageSize = Convert.ToInt32(dr[2]); } //17/3/2016 sowmya added for VSPLUS 2455 if (dr[1].ToString() == "ClusterDB|ClusterInfoGrid") { ClusterInfoGrid.SettingsPager.PageSize = Convert.ToInt32(dr[2]); } } } } //10/17/2014 NS modified for VSPLUS-1024 //if (ClusterNameComboBox1.Items.Count > 0) //{ // ClusterName = ClusterNameComboBox1.SelectedItem.Value.ToString(); //} if (ShowProblemsRadioButtonList.SelectedItem.Value.ToString() == "0") { ShowAll = true; } //10/17/2014 NS modified for VSPLUS-1024 if (ClustName != "") { FillPotentialIssuesGrid(ClustName, ShowAll); GraphForClusterRepDocCountProblems(ClustName); GraphForClusterRepDBSizeProblems(ClustName); } }