public ActionResult ForNewMeeting(int orgid) { var oi = new SettingsAttendanceModel(orgid, CurrentDatabase); var defaultAttendCreditId = "0"; if (oi.Schedules.Count > 0) { defaultAttendCreditId = oi.Schedules[0].AttendCredit.Value; } var useMeetingDescriptionPickList = CurrentDatabase.Setting("AttendanceUseMeetingCategory"); var m = new NewMeetingInfo { MeetingDate = oi.PrevMeetingDate, Schedule = new CodeInfo(0, oi.SchedulesPrev()), AttendCredit = new CodeInfo(defaultAttendCreditId, oi.AttendCreditList()), DescriptionList = useMeetingDescriptionPickList ? new CodeInfo("", MeetingCategorySelectList()) : null, UseMeetingDescriptionPickList = useMeetingDescriptionPickList, OrganizationId = orgid }; ViewBag.Action = "/CreateNewMeeting/"; ViewBag.Method = "POST"; ViewBag.ForRollsheet = false; return(View("MeetingInfo", m)); }
public ActionResult ForNewMeeting(int orgid) { var oi = new SettingsAttendanceModel() { Id = orgid }; var defaultAttendCreditId = "0"; if (oi.Schedules.Count > 0) { defaultAttendCreditId = oi.Schedules[0].AttendCredit.Value; } var m = new NewMeetingInfo { MeetingDate = oi.PrevMeetingDate, Schedule = new CodeInfo(0, oi.SchedulesPrev()), AttendCredit = new CodeInfo(defaultAttendCreditId, oi.AttendCreditList()), OrganizationId = orgid }; ViewBag.Action = "/CreateNewMeeting/"; ViewBag.Method = "POST"; ViewBag.ForRollsheet = false; return(View("MeetingInfo", m)); }
public ActionResult ForNewRollsheet(Guid id) { var filter = CurrentDatabase.OrgFilter(id); var oi = new SettingsAttendanceModel(filter.Id, CurrentDatabase); var m = new NewMeetingInfo() { MeetingDate = oi.NextMeetingDate, Schedule = new CodeInfo(0, oi.SchedulesNext()), AttendCredit = new CodeInfo(0, oi.AttendCreditList()), }; ViewBag.Action = "/Reports/RollsheetForOrg/" + id; ViewBag.Method = "POST"; ViewBag.ForRollsheet = true; return(View("MeetingInfo", 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 ForNewRallyRollsheet(Guid id) { var filter = DbUtil.Db.OrgFilter(id); var oi = new SettingsAttendanceModel { Id = filter.Id }; var m = new NewMeetingInfo() { MeetingDate = oi.NextMeetingDate, Schedule = new CodeInfo(0, oi.SchedulesNext()), AttendCredit = new CodeInfo(0, oi.AttendCreditList()), OrganizationId = filter.Id }; ViewBag.Action = "/Reports/RallyRollsheetForOrg/" + filter.Id; ViewBag.Method = "POST"; ViewBag.ForRollsheet = false; return(View("MeetingInfo", m)); }