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<SysUser>, 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<GwMobileArea> mobilAreaList = gwMobileAreaDao.GetMobilAreaList();
|
// StringBuilder stringBuilder = new StringBuilder();
|
// stringBuilder.Append("<option value=\"\">选择地区</option>");
|
// if (mobilAreaList.Count == 0)
|
// return "<option value=''>无地区信息</option>";
|
// foreach (GwMobileArea gwMobileArea in mobilAreaList)
|
// stringBuilder.AppendFormat("<option value=\"{0}\">{0}</option>", (object)gwMobileArea.Province);
|
// return stringBuilder.ToString();
|
// }
|
//}
|
//end
|
|
}
|