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 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 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)); }