/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/>Instance containing the event data.</param> /// <remarks> /// Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.CustomMessages.Page_Load.jpg"/> /// </remarks> protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(Session["UserRole"] as string)) { Response.Redirect("../Web/LogOn.aspx", true); return; } else if (Session["UserRole"] as string != "admin") { Response.Redirect("~/Administration/UnAuthorisedAccess.aspx"); } if (!IsPostBack) { BinddropdownValues(); ProvideLanguages(); ProvideMesaages(); } LocalizeThisPage(); ButtonUpdate.Focus(); LinkButton manageMessages = (LinkButton)Master.FindControl("LinkButtonCustomMessages"); if (manageMessages != null) { manageMessages.CssClass = "linkButtonSelect_Selected"; } }
/// <summary> /// Handles the Click event of the IBEdit control. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">The <see cref="System.Web.UI.ImageClickEventArgs"/>Instance containing the event data.</param> /// <remarks> /// Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.ManageDepartments.IBEdit_Click.jpg"/> /// </remarks> protected void IBEdit_Click(object sender, ImageClickEventArgs e) { string editvalue = "EDIT"; HiddenFieldAddEdit.Value = "2"; ButtonUpdate.Focus(); EditDepartments(editvalue); }
/// <summary> /// Handles the Click event of the IBEdit control. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">The <see cref="System.Web.UI.ImageClickEventArgs"/>Instance containing the event data.</param> /// <remarks> /// Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.ManageDepartments.IBEdit_Click.jpg"/> /// </remarks> protected void IBEdit_Click(object sender, ImageClickEventArgs e) { TablePapersize.Visible = true; string editvalue = "EDIT"; HiddenFieldAddEdit.Value = "2"; ButtonUpdate.Focus(); EditPaperSize(editvalue); }
/// <summary> /// Handles the Click event of the IBEdit control. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">The <see cref="System.Web.UI.ImageClickEventArgs"/>Instance containing the event data.</param> /// <remarks>Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.ManageDepartments.IBEdit_Click.jpg"/></remarks> protected void IBEdit_Click(object sender, ImageClickEventArgs e) { TableAddGroups.Visible = true; string editvalue = "EDIT"; HiddenFieldAddEdit.Value = "2"; ButtonUpdate.Focus(); EditCostCenters(editvalue); GetCostCenters(); tablecellMainTable.Visible = false; tablerowMainTable.Visible = false; tablerowMain.Visible = false; TextBoxCostCenterName.Enabled = false; }
/// <summary> /// Handles the Click event of the IBEdit control. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">The <see cref="System.Web.UI.ImageClickEventArgs"/>Instance containing the event data.</param> /// <remarks> /// Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.ManageLanguage.IBEdit_Click.jpg" /> /// </remarks> protected void IBEdit_Click(object sender, ImageClickEventArgs e) { DropDownListLanguage.Enabled = false; ImageMenuSplitBar.Visible = true; IBAdd.Visible = false; IBEdit.Visible = false; PanelAddDepartment.Visible = true; string languageId = Request.Form["__LANGID"]; editingLanguageID = languageId; CheckBoxLanguageActive.Checked = true; ImageButtonBack.Visible = true; ImageButtonSave.Visible = true; TableCellresetSpilt.Visible = true; TableCellReset.Visible = true; //Disable lock and un-lock cells tdImageLock.Visible = false; tdImageLockButton.Visible = false; tdImageUnLock.Visible = false; tdImageUnLockButton.Visible = false; HiddenFieldAddEdit.Value = "2"; ButtonUpdate.Focus(); DataSet dsLanguage = ApplicationSettings.ProvideLanguageById(languageId); if (dsLanguage.Tables[0].Rows.Count > 0) { DropDownListLanguage.Items.Clear(); DropDownListLanguage.Items.Add(new ListItem(dsLanguage.Tables[0].Rows[0]["APP_LANGUAGE"].ToString(), dsLanguage.Tables[0].Rows[0]["APP_CULTURE"].ToString())); DropDownListUIDirection.SelectedIndex = DropDownListUIDirection.Items.IndexOf(DropDownListUIDirection.Items.FindByValue((dsLanguage.Tables[0].Rows[0]["APP_CULTURE_DIR"].ToString()).Trim())); string isRecardActive = Convert.ToString(dsLanguage.Tables[0].Rows[0]["REC_ACTIVE"], CultureInfo.CurrentCulture); if (!string.IsNullOrEmpty(isRecardActive)) { CheckBoxLanguageActive.Checked = bool.Parse(Convert.ToString(dsLanguage.Tables[0].Rows[0]["REC_ACTIVE"], CultureInfo.CurrentCulture)); } else { CheckBoxLanguageActive.Checked = false; } ButtonSave.Visible = false; ButtonUpdate.Visible = true; } else { Response.Redirect("ManageLanguages.aspx"); } TableLanguage.Visible = false; }
/// <summary> /// Handles the Click event of the IBEdit control. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">The <see cref="System.Web.UI.ImageClickEventArgs"/>Instance containing the event data.</param> /// <remarks>Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.ManageDepartments.IBEdit_Click.jpg"/></remarks> protected void IBEdit_Click(object sender, ImageClickEventArgs e) { TableAddADGroup.Visible = true; string editvalue = "EDIT"; HiddenFieldAddEdit.Value = "2"; ButtonUpdate.Focus(); EditDomainDetails(editvalue); GetActiveDirectorySettings(); ButtonSave.Visible = false; ButtonUpdate.Visible = true; tablecellMainTable.Visible = false; tablerowMainTable.Visible = false; TableMenuBar.Visible = false; }
/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/>Instance containing the event data.</param> /// <remarks> /// Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_AdministrationJobConfiguration.Page_Load.jpg"/> /// </remarks> protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(Session["UserRole"] as string)) { Response.Redirect("../Web/LogOn.aspx", true); return; } else if (Session["UserRole"] as string != "admin") { Response.Redirect("~/Administration/UnAuthorisedAccess.aspx"); } if (!Page.IsPostBack) { BinddropdownValues(); BindJobConfigurationSettings(); DisplayJob(); } AUDITORSOURCE = Session["UserID"] as string; LocalizeThisPage(); string queryID = Request.Params["jid"]; if (!string.IsNullOrEmpty(queryID)) { if (queryID == "prj") { Tablecellback.Visible = true; Tablecellimage.Visible = true; } if (queryID == "jlg") { Tablecellback.Visible = true; Tablecellimage.Visible = true; } } ButtonUpdate.Focus(); LinkButton jobConfiguration = (LinkButton)Master.FindControl("LinkButtonJobConfiguration"); if (jobConfiguration != null) { jobConfiguration.CssClass = "linkButtonSelect_Selected"; } }
/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/>Instance containing the event data.</param> /// <remarks> /// Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.ManageADSettings.Page_Load.jpg"/> /// </remarks> protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(Session["UserRole"] as string)) { Response.Redirect("../Web/LogOn.aspx", true); return; } else if (Session["UserRole"] as string != "admin") { Response.Redirect("~/Administration/UnAuthorisedAccess.aspx"); } if (!Page.IsPostBack) { BinddropdownValues(); BindActiveDirectorySettings(); } AUDITORSOURCE = Session["UserID"] as string; LocalizeThisPage(); string queryID = Request.Params["id"]; if (!string.IsNullOrEmpty(queryID)) { Tablecellback.Visible = true; Tablecellimage.Visible = true; ButtonCancel.Visible = true; } else { ButtonCancel.Visible = false; } ButtonUpdate.Focus(); LinkButton manageADDMSettings = (LinkButton)Master.FindControl("LinkButtonADandDMSettings"); if (manageADDMSettings != null) { manageADDMSettings.CssClass = "linkButtonSelect_Selected"; } }
/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/>Instance containing the event data.</param> /// <remarks> /// Sequence Diagram:<br/> /// <img src="SequenceDiagrams/SD_AdministrationManageSettings.Page_Load.jpg" /> /// </remarks> protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(Session["UserRole"] as string)) { Response.Redirect("../Web/LogOn.aspx", true); return; } else if (Session["UserRole"] as string != "admin") { Response.Redirect("~/Administration/UnAuthorisedAccess.aspx"); } applicationSettingCategory = Convert.ToString(Request.QueryString["AppsetngCategoery"], CultureInfo.CurrentCulture); if (string.IsNullOrEmpty(applicationSettingCategory)) { applicationSettingCategory = "GeneralSettings"; } if (applicationSettingCategory == "GeneralSettings") { } else { } if (!IsPostBack) { GetSetting(applicationSettingCategory); } ButtonUpdate.Focus(); LinkButton manageSettings = (LinkButton)Master.FindControl("LinkButtonGeneralSettings"); if (manageSettings != null) { manageSettings.CssClass = "linkButtonSelect_Selected"; } }