protected override void OnPreRenderComplete(EventArgs e) { Panel panControl = (Panel)Master.FindControl("panControl"); if (panControl != null) panControl.Visible = false; //Check if the Selected College is changed try { DropDownList MasterPageCollegeDD = (DropDownList)Master.FindControl("DropDownList1"); DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); if (MasterPageCollegeDD.SelectedValue != myobj.CollID) { Response.Redirect("AccountabilityReport.aspx"); } } catch { } Label Label2 = (Label)Master.FindControl("Label2"); if (Label2 != null) Label2.Visible = false; DropDownList DropDownList2 = (DropDownList)Master.FindControl("DropDownList2"); if (DropDownList2 != null) DropDownList2.Visible = false; Security_LockoutControl_by_LEVELS(); base.OnPreRenderComplete(e); }
protected void Page_Load(object sender, EventArgs e) { DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); hf_accID.Value = myobj.AcctID.ToString(); SQLDsValidationErrors.Select(DataSourceSelectArguments.Empty); rdg_errors.DataBind(); }
protected override void OnPreRenderComplete(EventArgs e) { Panel panControl = (Panel)Master.FindControl("panControl"); if (panControl != null) panControl.Visible = false; //Check if the Selected College is changed try { DropDownList MasterPageCollegeDD = (DropDownList)Master.FindControl("DropDownList1"); DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); if (MasterPageCollegeDD.SelectedValue != myobj.CollID) { Response.Redirect("AccountabilityReport.aspx"); } } catch { } Label Label2 = (Label)Master.FindControl("Label2"); if (Label2 != null) Label2.Visible = false; DropDownList DropDownList2 = (DropDownList)Master.FindControl("DropDownList2"); if (DropDownList2 != null) DropDownList2.Visible = false; Security_LockoutControl_by_LEVELS(); if (rg_Narratives.MasterTableView.Items.Count == 0) { lbl_errortext.Text = "</br><image src='../images/msgIcons/stop.jpg' style='WIDTH: 25px;VERTICAL-ALIGN: middle; valign=middle; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; HEIGHT: 26px; BORDER-BOTTOM-STYLE: none' /> There is no Accountablity Report for the selected year! Please contact system office."; PanelTops.Visible = false; lbl_Fiscal_Year.Visible = false; Label1.Visible = false; rg_Narratives.Visible = false; } else { PanelTops.Visible = true; lbl_Fiscal_Year.Visible = true; Label1.Visible = true; rg_Narratives.Visible = true; lbl_errortext.Text = ""; } base.OnPreRenderComplete(e); }
protected override void OnPreRenderComplete(EventArgs e) { #region Take away controls on Master Page Panel panControl = (Panel)Master.FindControl("panControl"); if (panControl != null) panControl.Visible = false; //Label lblCollege = (Label)Master.FindControl("lblCollege"); //if (lblCollege != null) // lblCollege.Visible = false; //DropDownList DropDownList1 = (DropDownList)Master.FindControl("DropDownList1"); //if (DropDownList1 != null) // DropDownList1.Visible = false; Label Label2 = (Label)Master.FindControl("Label2"); if (Label2 != null) Label2.Visible = false; DropDownList DropDownList2 = (DropDownList)Master.FindControl("DropDownList2"); if (DropDownList2 != null) DropDownList2.Visible = false; #endregion #region Insert Blank into Fiscal Year DropDown if (!IsPostBack) { ListItem FiscalYRblank = new ListItem("Select Year", "-1"); ddl_fiscalyear.Items.Insert(0, FiscalYRblank); } #endregion DropDownList MasterPageCollegeDD = (DropDownList)Master.FindControl("DropDownList1"); ddl_College.SelectedIndex = MasterPageCollegeDD.SelectedIndex; #region Maintain Sessions and Accompaning Controls try { DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); if (MasterPageCollegeDD.SelectedValue != myobj.CollID) { /********/ //New College Choosen So clear everything and reset session values to mostly blanks, roleid and collegeid /********/ LoadSession(); ReloadData(); } else { /********/ //Page has be reloaded either Postback or revisit to and college hasn't changed so Fiscal Year selection is maintained and all controlls are refilled based on session variable values and sql querys of those values /********/ ddl_fiscalyear.SelectedValue = myobj.FiscalYear.ToString(); ReloadData(); } myobj = null; } catch { } #endregion #region Added session for Accountablity Level for Reporting Popup NEEDS also popup links are setup Session.Add(HttpContext.Current.User.Identity.Name + Session.SessionID + "ACCLevelID", hf_Level_Id.Value); HL_Errors.NavigateUrl = "Javascript:OpenErrors()"; HL_RPLIST.NavigateUrl = "Javascript:OpenReports(" + lbl_Acc_Id.Text + ")"; #endregion #region Lock out Controls based on Accountablity Levels and re-evaluate final session and control data values LoadSession(); ReloadData(); Security_LockoutControl_by_LEVELS(); #endregion base.OnPreRenderComplete(e); }
protected override void OnPreRenderComplete(EventArgs e) { if (!IsPostBack) { DecipherSession myacc = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); hf_Accountability_Id.Value = myacc.AcctID.ToString(); Security_LockoutControl_by_LEVELS(); } base.OnPreRenderComplete(e); }
protected override void OnPreRenderComplete(EventArgs e) { #region Remove DropDowns from Master Page Panel panControl = (Panel)Master.FindControl("panControl"); if (panControl != null) panControl.Visible = false; //Label lblCollege = (Label)Master.FindControl("lblCollege"); //if (lblCollege != null) // lblCollege.Visible = false; //DropDownList DropDownList1 = (DropDownList)Master.FindControl("DropDownList1"); //if (DropDownList1 != null) // DropDownList1.Visible = false; Label Label2 = (Label)Master.FindControl("Label2"); if (Label2 != null) Label2.Visible = false; DropDownList DropDownList2 = (DropDownList)Master.FindControl("DropDownList2"); if (DropDownList2 != null) DropDownList2.Visible = false; #endregion //DropDownList MasterPageCollegeDD = (DropDownList)Master.FindControl("DropDownList1"); //txt_CollegeID.Text = MasterPageCollegeDD.SelectedValue; //Check if the Selected College is changed try { DropDownList MasterPageCollegeDD = (DropDownList)Master.FindControl("DropDownList1"); DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); if (MasterPageCollegeDD.SelectedValue != myobj.CollID) { Response.Redirect("AccountabilityReport.aspx"); } } catch { } base.OnPreRenderComplete(e); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { rdt_PerfIndcat.SelectedIndex = 0; RadMultiPage1.SelectedIndex = 0; try { DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); txt_AcctID.Text =myobj.AcctID; txt_CollegeID.Text = myobj.CollID; txt_FiscalYear.Text = myobj.FiscalYear; lbl_CurrfiscalYear.Text ="Fiscal Year: " + myobj.FiscalYear; } catch { } } }
private String GetCurrentLevel_Id() { try { DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); SQLDS_Accountablity.SelectParameters.Clear(); SQLDS_Accountablity.SelectParameters.Add("p_key_college_id", myobj.CollID.ToString()); SQLDS_Accountablity.SelectParameters.Add("p_nbr_fiscal_year", myobj.FiscalYear.ToString()); SQLDS_Accountablity.Select(DataSourceSelectArguments.Empty); DataSourceSelectArguments dssa = new DataSourceSelectArguments(); dssa.AddSupportedCapabilities(DataSourceCapabilities.RetrieveTotalRowCount); dssa.RetrieveTotalRowCount = true; DataView dv = (DataView)SQLDS_Accountablity.Select(dssa); return dv.Table.Rows[0][3].ToString(); } catch { return ""; } return ""; }
protected override void OnPreRenderComplete(EventArgs e) { #region Remove DropDowns from Master Page Panel panControl = (Panel)Master.FindControl("panControl"); if (panControl != null) panControl.Visible = false; Label Label2 = (Label)Master.FindControl("Label2"); if (Label2 != null) Label2.Visible = false; DropDownList DropDownList2 = (DropDownList)Master.FindControl("DropDownList2"); if (DropDownList2 != null) DropDownList2.Visible = false; #endregion try { DropDownList MasterPageCollegeDD = (DropDownList)Master.FindControl("DropDownList1"); #region Test to see if Accountablity Report Created if not show message of none available if (txt_AcctID.Text.Length == 0 || lbl_CurrfiscalYear.Text.Length == 0 || txt_FiscalYear.Text == "") { pan_TopInfo.Visible = false; lbl_errortext.Text = "</br><image src='../images/msgIcons/stop.jpg' style='WIDTH: 25px;VERTICAL-ALIGN: middle; valign=middle; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; HEIGHT: 26px; BORDER-BOTTOM-STYLE: none' /> There is no Accountablity Report for the selected year! Please contact system office."; Label7.Visible = false; dd_CoreIndicator.Visible = false; btn_SavePerfInfo.Visible = false; btn_Export_Excel.Visible = false; lbl_CurrfiscalYear.Visible = false; } else { pan_TopInfo.Visible = true; lbl_errortext.Text = ""; Label7.Visible = true; dd_CoreIndicator.Visible = true; btn_SavePerfInfo.Visible = true; btn_Export_Excel.Visible = true; lbl_CurrfiscalYear.Visible = true; } #endregion DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); #region Test to see if College Changed if so bounce user back to front page if (MasterPageCollegeDD.SelectedValue != myobj.CollID) { Response.Redirect("AccountabilityReport.aspx"); } #endregion } catch { } #region fill dd_CoreIndicator with "select Indicator if (!IsPostBack) { ListItem BlankCoreindicatoritem = new ListItem("Select Indicator", "-1"); dd_CoreIndicator.Items.Insert(0, BlankCoreindicatoritem); dd_CoreIndicator.SelectedIndex = 0; } #endregion if (Session[Session.SessionID + "roleid"].ToString() != "101" ) { LockGrid_toColleges(); chk_NotApplicable.Enabled = false; #region LockTextBoxes from Colleges //10/18/2011 RL changed Per Stephanie Request to allow colleges to add 1p1 numbers if (Session[Session.SessionID + "roleid"].ToString() == "101") { rdNum_AdjustPerf.ReadOnly = false; rdNum_StudNum.ReadOnly = false; rdNum_StudDen.ReadOnly = false; } //else //{ try { string levelid = Session[HttpContext.Current.User.Identity.Name + Session.SessionID + "ACCLevelID"].ToString(); if ((levelid == "101" || levelid == "103") && (dd_CoreIndicator.SelectedValue.ToString() == "101") && (Session[Session.SessionID + "roleid"].ToString() == "103" || Session[Session.SessionID + "roleid"].ToString() == "105")) { rdNum_AdjustPerf.ReadOnly = false; rdNum_StudNum.ReadOnly = false; rdNum_StudDen.ReadOnly = false; } else { rdNum_AdjustPerf.ReadOnly = true; rdNum_StudNum.ReadOnly = true; rdNum_StudDen.ReadOnly = true; } } catch { rdNum_AdjustPerf.ReadOnly = true; rdNum_StudNum.ReadOnly = true; rdNum_StudDen.ReadOnly = true; } // } rdn_90adj.ReadOnly = true; rdn_ActualLvePerf.ReadOnly = true; rdn_adj_vs_act.ReadOnly = true; #endregion #region if Not Applicable Check empty and disable the boxes if (chk_NotApplicable.Checked) { rdNum_AdjustPerf.Text = string.Empty; rdNum_StudNum.Text = string.Empty; rdNum_StudDen.Text = string.Empty; rdn_90adj.Text = string.Empty; rdn_ActualLvePerf.Text = string.Empty; rdn_adj_vs_act.Text = string.Empty; rdNum_AdjustPerf.ReadOnly = true; rdNum_StudNum.ReadOnly = true; rdNum_StudDen.ReadOnly = true; rdn_90adj.ReadOnly = true; rdn_ActualLvePerf.ReadOnly = true; rdn_adj_vs_act.ReadOnly = true; // lbl_notApplicableMSG.Text = "Indicator not applicable"; } else { // lbl_notApplicableMSG.Text = "Indicator Applicable"; } #endregion } else { // lbl_notApplicableMSG.Text = "Indicator Applicable"; } if (chk_NotApplicable.Checked) { // lbl_notApplicableMSG.Visible = true; } if (rdNum_AdjustPerf.Text.Equals("") || rdNum_StudNum.Text.Equals("") || rdNum_StudDen.Text.Equals("") ) { rtb_indicator_plan.Tabs[1].Visible = false; rtb_indicator_plan.Tabs[2].Visible = false; } else { rtb_indicator_plan.Tabs[1].Visible = true; } Security_LockoutControl_by_LEVELS(); if (rdn_90adj.Text.Trim().ToLower() == "n" ) { rtb_indicator_plan.Tabs[2].Visible = true; } if ((chk_NotApplicable.Checked)) { rtb_indicator_plan.Tabs[1].Visible = false; rtb_indicator_plan.Tabs[2].Visible = false; } #region Grid_TO_TabFinalCleanup foreach (Telerik.Web.UI.GridDataItem di in rdg_perfDetailInfo.Items) { Label mylabelvisble = (Label)(di.FindControl("lbl_VisibleYN_response")); if(mylabelvisble != null) if (mylabelvisble.Text.Trim().ToLower() == "n") { try { if (di["key_population_category_id"].Text.ToString() == "103") rtb_indicator_plan.Tabs[2].Visible = true; } catch { } } } #endregion base.OnPreRenderComplete(e); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { chk_NotApplicable.Attributes.Add("onClick", "Checked_Applicable();"); GetCurrentLevel(); txt_LoggedPerson.Text = HttpContext.Current.User.Identity.Name.ToString(); try { DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); txt_AcctID.Text = myobj.AcctID; txt_CollegeID.Text = myobj.CollID; txt_FiscalYear.Text = myobj.FiscalYear; lbl_CurrfiscalYear.Text = "Fiscal Year: " + myobj.FiscalYear; if (lbl_CurrfiscalYear.Text.Length > 0) { lbl_CurrfiscalYear.Text += (" " + Session[HttpContext.Current.User.Identity.Name + Session.SessionID + "LevelTitle"].ToString()); } } catch { } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { try { DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); hf_Accountability_Id.Value = myobj.AcctID.ToString(); lbl_Fiscal_Year.Text = myobj.FiscalYear.ToString() + " " + Session[HttpContext.Current.User.Identity.Name + Session.SessionID + "LevelTitle"].ToString(); rg_Narratives.DataBind(); Set_Security(); btn_print.OnClientClick = "Javascript:OpenReports(" + hf_Accountability_Id.Value.ToString() + ");return false;"; } catch (Exception ex) { } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { try { DecipherSession myobj = new DecipherSession(Session[Session.SessionID + HttpContext.Current.User.Identity + "accountiblityids"].ToString()); hf_Accountability_Id.Value = myobj.AcctID.ToString(); try { hf_Created_By.Value = HttpContext.Current.User.Identity.Name.ToString(); lbl_CurrfiscalYear.Text = "Fiscal Year: " + myobj.FiscalYear + " " + Session[HttpContext.Current.User.Identity.Name + Session.SessionID + "LevelTitle"].ToString(); } catch { } ds_Enrollment.Select(DataSourceSelectArguments.Empty); // ds_Enrollment.DataBind(); rg_Enrollment.DataBind(); } catch { } } }