/// <summary> /// /// </summary> /// <param name="de"></param> private void ToSamePage(DataEnum de) { ChannelStationDTCondition c = new ChannelStationDTCondition(); c.ChannelCollection = this.UCChannelStationDT1.SelectedChannelCollection; c.StationCollection = this.UCChannelStationDT1.SelectedStationCollection; c.Begin = this.UCChannelStationDT1.Begin; c.End = this.UCChannelStationDT1.End; c.DataEnum = de; Guid guid = Guid.NewGuid(); string guidstring = guid.ToString(); Session[guidstring] = c; string url = string.Format("pDataHistroy2.aspx?id={0}", guidstring); //string url = string.Format("pdefault.aspx?id={0}", guidstring); //Response.Redirect(url, false); WindowsHelper.OpenInNewWindows(this.Response, url); }
/// <summary> /// /// </summary> /// <returns></returns> private bool GetChannelStationDTCondition(out ChannelStationDTCondition c) { c = null; string[] names = new string[] { "id" }; Type[] types = new Type[] { typeof(string) }; object[] result = new object[1]; bool b = QueryStringParamPicker.Pick(this.Request.QueryString, names, types, out result); if (b) { string id = result[0] as string; c = Session[id] as ChannelStationDTCondition; if (c == null) { b = false; } } return(b); }
/// <summary> /// /// </summary> /// <param name="de"></param> private void ToSamePage(DataEnum de) { ChannelStationDTCondition c = new ChannelStationDTCondition(); c.ChannelCollection = this.UCCompareAmount1.SelectedChannelCollection; c.StationCollection = this.UCCompareAmount1.SelectedStationCollection; c.Begin = this.UCCompareAmount1.Begin; c.End = this.UCCompareAmount1.End; c.DataEnum = de; Guid guid = Guid.NewGuid(); string guidstring = guid.ToString(); Session[guidstring] = c; string url = string.Format("pDataHistroy2.aspx?id={0}", guidstring); WindowsHelper.OpenInNewWindows(this.Response, url); this.Query(); }
/// <summary> /// /// </summary> /// <returns></returns> private bool GetChannelStationDTCondition(out ChannelStationDTCondition c) { c = null; string[] names = new string[] { "id" }; Type[] types = new Type[] { typeof(string) }; object[] result = new object[1]; bool b = QueryStringParamPicker.Pick(this.Request.QueryString, names, types, out result); if (b) { string id = result[0] as string; c = Session[id] as ChannelStationDTCondition; if (c == null) { b = false; } } return b; }