using Common; using Dao; using Model; using System; using System.Web; using System.Web.Profile; using System.Web.SessionState; using System.Collections.Generic; using System.Text; public partial class _GwSm : PageBase, IRequiresSessionState { public string SelectedDate { get { string @string = this.AppContext.GetString("QueryDate"); if (string.IsNullOrEmpty(@string)) return DateTime.Today.ToString("yyyy-MM-dd"); return @string; } } public string SelectedBeginTime { get { string @string = this.AppContext.GetString("BeginTime"); if (!string.IsNullOrEmpty(@string)) return @string; if (DateTime.Now.AddHours(-1.0).Day != DateTime.Now.Day) return "00:00:00"; return DateTime.Now.AddHours(-1.0).ToString("HH:mm:ss"); } } public string SelectedEndTime { get { string @string = this.AppContext.GetString("EndTime"); if (!string.IsNullOrEmpty(@string)) return @string; return DateTime.Now.Date.AddSeconds(-1.0).ToString("HH:mm:ss"); } } protected void Page_Load(object sender, EventArgs e) { this.CheckRight("401", FailedOperation.HistoryGoBack); } //新加区域查询 //public string GwtPrivnce() //{ // using (GwMobileAreaDao gwMobileAreaDao = new GwMobileAreaDao()) // { // List mobilAreaList = gwMobileAreaDao.GetMobilAreaList(); // StringBuilder stringBuilder = new StringBuilder(); // stringBuilder.Append(""); // if (mobilAreaList.Count == 0) // return ""; // foreach (GwMobileArea gwMobileArea in mobilAreaList) // stringBuilder.AppendFormat("", (object)gwMobileArea.Province); // return stringBuilder.ToString(); // } //} //end }