예제 #1
0
        protected void SelectCategory_CategorySelected(object sender, CommandEventArgs e)
        {
            //Store the other selection(s) too.
            SelectLocation.StoreLocations();
            var dDate = Convert.ToDateTime(ViewState[ModuleId + "WeekOf"]);

            BindPage(dDate);
        }
예제 #2
0
        protected void lnkToday_Click(object sender, EventArgs e)
        {
            var dDate = DateTime.Now.Date;

            SelectedDate            = dDate;
            dpGoToDate.SelectedDate = dDate;
            SelectCategory.StoreCategories();
            SelectLocation.StoreLocations();
            BindPage(dDate);
        }
예제 #3
0
        protected void lnkPrev_Click(object sender, EventArgs e)
        {
            var dDate = Convert.ToDateTime(Convert.ToDateTime(ViewState[ModuleId + "WeekOf"]).AddDays(-7));

            SelectedDate            = dDate.Date;
            dpGoToDate.SelectedDate = dDate.Date;
            SelectCategory.StoreCategories();
            SelectLocation.StoreLocations();
            BindPage(dDate);
        }
예제 #4
0
 protected void EventCalendar_VisibleMonthChanged(object sender, MonthChangedEventArgs e)
 {
     //set selected date to first of month
     SelectedDate            = e.NewDate;
     dpGoToDate.SelectedDate = e.NewDate.Date;
     if (!Settings.Monthcellnoevents)
     {
         EventCalendar.SelectedDate = e.NewDate;
     }
     SelectCategory.StoreCategories();
     SelectLocation.StoreLocations();
     //bind datagrid
     BindDataGrid();
 }
예제 #5
0
 protected void lnkToday_Click(object sender, EventArgs e)
 {
     //set grid uneditable
     SelectedDate = DateTime.Now.Date;
     EventCalendar.VisibleDate = SelectedDate;
     dpGoToDate.SelectedDate   = SelectedDate.Date;
     if (!Settings.Monthcellnoevents)
     {
         EventCalendar.SelectedDate = SelectedDate;
     }
     SelectCategory.StoreCategories();
     SelectLocation.StoreLocations();
     //fill grid with current selection's data
     BindDataGrid();
 }
예제 #6
0
 protected void SelectCategory_CategorySelected(object sender, CommandEventArgs e)
 {
     //Store the other selection(s) too.
     SelectLocation.StoreLocations();
     BindDataGrid();
 }