private OutageRecovery GetOutages() { OutageOngoing oo = (OutageOngoing)Session["Ongoing"]; OutageUpdate ou = (OutageUpdate)Session["Update"]; OutageRecovery or = (OutageRecovery)Session["Recovery"]; ou._Outage = oo; or._Outage = ou; return(or); }
protected void Page_Load(object sender, EventArgs e) { Outage outage = null; if (!IsPostBack) { IsOngoingInit = false; outage = new OutageOngoing("Customers") { Start = DateTime.Now, Return = DateTime.Now, ProblemSummary = String.Empty, ServiceImpacted = String.Empty }; Locations location = outage.Locations; location["Europe"] = false; location["China"] = false; location["Hong-Kong"] = false; location["Singapore"] = false; location["Korea"] = false; location["Tokyo"] = false; location["US-West"] = false; location["US-East"] = false; SetTabDefaults(); Session["Outage"] = Session["Ongoing"] = outage; ReplicateOutage(outage); //OutageMenuItemsEnabled(false); this.OutageControl.Refresh(outage); RefreshPreviewContent(); this.CurrentUserLabel.Text = (System.Web.HttpContext.Current.User.Identity.IsAuthenticated) ? "Welcome, " + System.Web.HttpContext.Current.User.Identity.Name : Page.User.Identity.Name; } }