예제 #1
0
 public ActionResult AttendanceUpdate(SettingsAttendanceModel m)
 {
     m.Update();
     m.UpdateSchedules();
     DbUtil.Db.Refresh(RefreshMode.OverwriteCurrentValues, m.Org.OrgSchedules);
     DbUtil.LogActivity($"Update SettingsAttendance {m.Org.OrganizationName}");
     return PartialView("Settings/Attendance", m);
 }
예제 #2
0
 public ActionResult ForNewRallyRollsheet(int orgid)
 {
     var oi = new SettingsAttendanceModel { Id = orgid };
     var m = new NewMeetingInfo()
     {
         MeetingDate =  oi.NextMeetingDate,
         Schedule = new CodeInfo(0, oi.SchedulesNext()),
         AttendCredit = new CodeInfo(0, oi.AttendCreditList()),
     };
     ViewBag.Action = "/Reports/RallyRollsheetForOrg/" + orgid;
     ViewBag.Method = "POST";
     return View("MeetingInfo", m);
 }
예제 #3
0
 public ActionResult ForNewMeeting(int orgid)
 {
     var oi = new SettingsAttendanceModel() { Id = orgid };
     var m = new NewMeetingInfo()
     {
         MeetingDate = oi.PrevMeetingDate,
         Schedule = new CodeInfo(0, oi.SchedulesPrev()),
         AttendCredit = new CodeInfo(0, oi.AttendCreditList()),
     };
     ViewBag.Action = "/CreateNewMeeting/";
     ViewBag.Method = "POST";
     return View("MeetingInfo", m);
 }
예제 #4
0
 public ActionResult AttendanceEdit(int id)
 {
     var m = new SettingsAttendanceModel(id);
     return PartialView("Settings/AttendanceEdit", m);
 }
예제 #5
0
 public ActionResult AttendanceHelpToggle(int id)
 {
     DbUtil.Db.ToggleUserPreference("ShowAttendanceHelp");
     var m = new SettingsAttendanceModel(id);
     return PartialView("Settings/Attendance", m);
 }