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); }
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); }
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); }
public ActionResult AttendanceEdit(int id) { var m = new SettingsAttendanceModel(id); return PartialView("Settings/AttendanceEdit", m); }
public ActionResult AttendanceHelpToggle(int id) { DbUtil.Db.ToggleUserPreference("ShowAttendanceHelp"); var m = new SettingsAttendanceModel(id); return PartialView("Settings/Attendance", m); }