Ejemplo n.º 1
0
        protected void SelectLocation_LocationSelected(object sender, CommandEventArgs e)
        {
            //Store the other selection(s) too.
            SelectCategory.StoreCategories();
            var dDate = Convert.ToDateTime(ViewState[ModuleId + "WeekOf"]);

            BindPage(dDate);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 6
0
 protected void SelectLocation_LocationSelected(object sender, CommandEventArgs e)
 {
     //Store the other selection(s) too.
     SelectCategory.StoreCategories();
     BindDataGrid();
 }