using IronIntel.Contractor; using IronIntel.Contractor.Site.OTRConfig; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class ManageSpeeding : OTRConfigBasePage { public string BeginDate = ""; public string EndDate = ""; protected void Page_Load(object sender, EventArgs e) { if (!CheckLoginSession()) { // TODO: sub page //RedirectToLoginPage(); } else { string methodName = Request.Form["MethodName"]; if (!string.IsNullOrEmpty(methodName)) { ProcessRequest(methodName); } else if (!IsPostBack) { // todo nothing } } DateTime userlocaldate = SystemParams.ConvertToUserTimeFromUtc(GetCurrentLoginSession().User, DateTime.UtcNow); BeginDate = userlocaldate.AddDays(-6).ToString("yyyy-MM-dd"); EndDate = userlocaldate.ToString("yyyy-MM-dd"); } }