Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         QOnT.classes.TrackerTools tt = new TrackerTools();
         // now.AddDays(-7)
         dtThisRoastWeekStart = tt.GetClosestNextRoastDate(DateTime.Now.AddDays(-7), DayOfWeek.Monday);
         dtThisRoastWeekEnd   = dtThisRoastWeekStart.AddDays(7); // 5 days in a working week;
         tbxFilter.Text       = dtThisRoastWeekStart.ToShortDateString();
         ddlFilterBy.Focus();
         this.Form.DefaultButton = btnGo.UniqueID;
     }
 }