protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession) { Response.Redirect("Home.aspx"); } userControl = (System.Web.UI.UserControl) this.LoadControl("UserControl/AdminMenu.ascx"); this.plcHldMenu.Controls.Add(userControl); if (!IsPostBack) { ///Uncomment below code after integrated with Admin Tool if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole)) { PubEntAdminManager.UnathorizedAccess(); } this.PageTitle = "Canned Search Setup"; } //Code for Hailstorm if (ucCancerTypeAdd != null) { ucCancerTypeAdd.SecurityCheck(); } if (ucSubjectAdd != null) { ucCancerTypeAdd.SecurityCheck(); } if (ucPubFormatAdd != null) { ucCancerTypeAdd.SecurityCheck(); } if (ucRaceAdd != null) { ucCancerTypeAdd.SecurityCheck(); } if (ucAudienceAdd != null) { ucCancerTypeAdd.SecurityCheck(); } if (ucLanguageAdd != null) { ucCancerTypeAdd.SecurityCheck(); } if (ucCollectionsAdd != null) { ucCancerTypeAdd.SecurityCheck(); } //End of code for Hailstorm }
protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession) { Response.Redirect("Home.aspx"); } this.Title = "Featured Stacks Access Report"; this.PageTitle = "Featured Stacks Access Report"; if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole)) { PubEntAdminManager.UnathorizedAccess(); } //this.BindGrid(); }
protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession) { Response.Redirect("Home.aspx"); } this.Title = "Featured Stacks History Report"; this.PageTitle = "Featured Stacks History Report"; //this.PageTitle = "Featured Publications Setup"; //this.AddJS(Server.MapPath("JS/LUMgmt.js")); if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole)) { PubEntAdminManager.UnathorizedAccess(); } }
protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession) { Response.Redirect("~/Home.aspx"); } System.Web.UI.UserControl userControl = (System.Web.UI.UserControl) this.LoadControl("~/UserControl/AdminMenu.ascx"); this.plcHldMenu.Controls.Add(userControl); this.PageTitle = "Held Order Report"; if (!IsPostBack) { _startdt = _enddt = ""; if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole)) { PubEntAdminManager.UnathorizedAccess(); } } }
protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession) { Response.Redirect("Home.aspx"); } this.Title = "Catalog Sequence"; this.PageTitle = "Catalog Sequence"; //this.AddJS(Server.MapPath("JS/LUMgmt.js")); if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole)) { PubEntAdminManager.UnathorizedAccess(); } this.plcHldContent.Controls.Clear(); System.Web.UI.UserControl usrCtrl = null; usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/CatSeq.ascx"); this.plcHldContent.Controls.Add(usrCtrl); }
protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession)//cross-site request forgery { Response.Redirect("Home.aspx"); } this.Title = "Announcement"; this.PageTitle = "Announcement"; this.AddJS("../JS/Announcement.js"); if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole)) { PubEntAdminManager.UnathorizedAccess(); } if (Session[PubEntAdminManager.JS] != null) { System.Web.UI.UserControl c = null; if (System.Convert.ToBoolean(Session[PubEntAdminManager.JS].ToString())) { c = (System.Web.UI.UserControl) this.LoadControl("~/UserControl/Announcementx.ascx"); c.ID = "Anouncementx1"; } else { c = (System.Web.UI.UserControl) this.LoadControl("~/UserControl/Announcement.ascx"); c.ID = "Anouncement1"; } this.Master.FindControl("BodyContent").Controls.Clear(); this.Master.FindControl("BodyContent").Controls.Add(c); } }
protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession) { Response.Redirect("Home.aspx"); } this.Title = "Exhibit "; this.PageTitle = "Exhibit Details"; if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole)) { PubEntAdminManager.UnathorizedAccess(); } if (!Page.IsPostBack) { BindConfData(); BindTimeoutData(); } txtRotateTime.Style["text-align"] = "right"; txtPageTime.Style["text-align"] = "right"; txtSessionTime.Style["text-align"] = "right"; }
protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession)//cross-site request forgery { Response.Redirect("Home.aspx"); } if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole)) { PubEntAdminManager.UnathorizedAccess(); } if (Session[DisplayKitPubErrorMsg] != null) { this.lblErrmsg.Text = Session[DisplayKitPubErrorMsg].ToString(); Session.Remove(DisplayKitPubErrorMsg); } string type = ""; if (PubEntAdminManager.TamperProof) { if (myUrlBuilder.QueryString.ContainsKey(PubEntAdminManager.strVK_LPType)) { type = this.myUrlBuilder.QueryString[PubEntAdminManager.strVK_LPType]; } //else //{ // PubEntAdminManager.UnathorizedAccess(); //} } else { if (Request.QueryString[PubEntAdminManager.strVK_LPType] != null) { type = Request.QueryString[PubEntAdminManager.strVK_LPType].ToString(); } //else //{ // PubEntAdminManager.UnathorizedAccess(); //} } if (type == PubEntAdminManager.strVKType) { this.HiddenIsVK.Value = "1"; this.lblInstruction.Text = @"To create a new Virtual Kit, type a Kit ID in the textbox and click Create New.<br /> To edit/delete an existing Virtual Kit, click the corresponding Edit/Delete link next to the Virtual Kit title"; this.Title = "Virtual Kits Display"; this.lblPageTitle.Text = "Virtual Kits"; this.blnIsVK = true; } else if (type == PubEntAdminManager.strLPType) { this.HiddenIsVK.Value = "0"; this.lblInstruction.Text = @"To create a new Linked Publication, type a Publication ID in the textbox and click Create New.<br /> To edit/delete an existing Linked Publication, click the corresponding Edit/Delete link next to the Linked Publication title"; this.Title = "Linked Publication Display"; this.lblPageTitle.Text = "Linked Publication"; this.blnIsVK = false; } this.SecVal(); System.Web.UI.UserControl l_uc; l_uc = (System.Web.UI.UserControl) this.LoadControl("UserControl/AdminMenu.ascx"); this.plcHldMenu.Controls.Clear(); this.plcHldMenu.Controls.Add(l_uc); l_uc = (System.Web.UI.UserControl) this.LoadControl("UserControl/KitPubList.ascx"); l_uc.ID = "KitPubList"; this.plcHldKits.Controls.Clear(); this.plcHldKits.Controls.Add(l_uc); this.txtKitID.Attributes.Add("onchange", "ProIDInterfaceVal()"); this.lstboxKitPubInt.Attributes.Add("onclick", "start(this)"); }
protected void Page_Load(object sender, EventArgs e) { if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole)) { PubEntAdminManager.UnathorizedAccess(); } System.Web.UI.UserControl l_uc; l_uc = (System.Web.UI.UserControl) this.LoadControl("UserControl/AdminMenu.ascx"); this.plcHldMenu.Controls.Clear(); this.plcHldMenu.Controls.Add(l_uc); this.SecVal(); if (PubEntAdminManager.TamperProof) { if (this.myUrlBuilder.QueryString.ContainsKey(PubEntAdminManager.strProdID)) { this.ProdID = (this.myUrlBuilder.QueryString[PubEntAdminManager.strProdID]); } if (this.myUrlBuilder.QueryString.ContainsKey(PubEntAdminManager.strPubID)) { this.KitID = System.Convert.ToInt32(this.myUrlBuilder.QueryString[PubEntAdminManager.strPubID]); } if (this.myUrlBuilder.QueryString.ContainsKey(PubEntAdminManager.strInterface)) { string s = this.myUrlBuilder.QueryString[PubEntAdminManager.strInterface]; if (s.IndexOf(',') < 0) { this.IsNCIPL = (this.myUrlBuilder.QueryString[PubEntAdminManager.strInterface]) == PubEntAdminManager.NCIPL_INTERFACE ? true : false; this.IsROO = (this.myUrlBuilder.QueryString[PubEntAdminManager.strInterface]) == PubEntAdminManager.ROO_INTERFACE ? true : false; } else { sarr = s.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); foreach (string sstr in sarr) { if (!this.IsNCIPL) { this.IsNCIPL = ((sstr) == PubEntAdminManager.NCIPL_INTERFACE) ? true : false; } if (!this.IsROO) { this.IsROO = ((sstr) == PubEntAdminManager.ROO_INTERFACE) ? true : false; } } } } if (this.myUrlBuilder.QueryString.ContainsKey(PubEntAdminManager.strVK_LPType)) { this.IsVK = (this.myUrlBuilder.QueryString[PubEntAdminManager.strVK_LPType]) == PubEntAdminManager.strVKType ? true : false; } } else { if (Request.QueryString[PubEntAdminManager.strProdID] != null) { this.ProdID = (Request.QueryString[PubEntAdminManager.strProdID]); } if (Request.QueryString[PubEntAdminManager.strPubID] != null) { this.KitID = System.Convert.ToInt32(Request.QueryString[PubEntAdminManager.strPubID]); } if (Request.QueryString[PubEntAdminManager.strInterface] != null) { string s = Request.QueryString[PubEntAdminManager.strInterface]; if (s.IndexOf(',') < 0) { this.IsNCIPL = (Request.QueryString[PubEntAdminManager.strInterface]) == PubEntAdminManager.NCIPL_INTERFACE ? true : false; this.IsROO = (Request.QueryString[PubEntAdminManager.strInterface]) == PubEntAdminManager.ROO_INTERFACE ? true : false; sarr = new string[1]; if (this.IsNCIPL) { sarr[0] = PubEntAdminManager.NCIPL_INTERFACE; } else if (this.IsROO) { sarr[0] = PubEntAdminManager.ROO_INTERFACE; } } else { sarr = s.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); foreach (string sstr in sarr) { if (!this.IsNCIPL) { this.IsNCIPL = ((sstr) == PubEntAdminManager.NCIPL_INTERFACE) ? true : false; } if (!this.IsROO) { this.IsROO = ((sstr) == PubEntAdminManager.ROO_INTERFACE) ? true : false; } } } } if (Request.QueryString[PubEntAdminManager.strVK_LPType] != null) { this.IsVK = (Request.QueryString[PubEntAdminManager.strVK_LPType]) == PubEntAdminManager.strVKType ? true : false; } } this.lblInstruction.Text = @"To add a publication to the " + (this.IsVK ? "Virtual Kit" : "Linked Publication") + @", enter the Publication ID then click Save.<br />To remove a publication from the " + (this.IsVK ? "Virtual Kit" : "Linked Publication") + @", select the check box next to the publication title."; if (!Page.IsPostBack) { if (Request.UrlReferrer == null || !Request.UrlReferrer.GetLeftPart(UriPartial.Path). ToLower().Contains("displaykitpub.aspx")) { throw new Exception( "Must be invoked by DisplayKitPub.aspx"); } else { if (this.KitID == 0) { //validation for prodid, interfaces if (this.NewVK_LPCreationVal()) { int oPubID = PE_DAL.SetNewKITPUB(this.ProdID.Trim(), 0, System.Convert.ToInt32(IsNCIPLSelected()), System.Convert.ToInt32(IsROOSelected()), IsNCIPLSelected()? 1: -1, IsROOSelected()? 1:-1, System.Convert.ToInt32(this.IsVK)); if (oPubID > 0) { this.KitID = oPubID; } if (this.IsVK) { Pub l_pub = PE_DAL.GetPubInfoByProdID(this.ProdID.Trim()); this.lblTitle.Text = Server.HtmlEncode(l_pub.ShortTitle + "(" + l_pub.ProdID + ")"); this.Title = this.lblPageTitle.Text = "Create Virtual Kit"; this.BindKitData(); } else { this.Title = this.lblPageTitle.Text = "Create Linked Publication"; this.BindPubData(); } this.lblRemv.Visible = false; } else { this.RejectCrossPagePostBack(); } } else { //get the vk/lp details if (this.IsVK) { Pub l_pub = PE_DAL.GetPubInfoByPubID(this.KitID); this.lblTitle.Text = Server.HtmlEncode(l_pub.ShortTitle + "(" + l_pub.ProdID + ")"); this.Title = this.lblPageTitle.Text = "Update Virtual Kit"; this.BindKitData(); } else { this.Title = this.lblPageTitle.Text = "Update Linked Publication"; this.BindPubData(); } //this.lblRemv.Visible = true; } } } this.txtNewPub.Attributes.Add("onchange", "getPubTitle()"); }