public ActionResult Edit(int MeetingAgendaID) { meetingagenda meetingagenda = MeetingAgendaRepository.GetAgendaByID(MeetingAgendaID); GetData(meetingagenda.meetingID); return(PartialView(meetingagenda)); }
public ActionResult Create(int MeetingAgendaID = 0) { string Agenda = MeetingAgendaRepository.GetAgendaByID(MeetingAgendaID).Description; ViewBag.Heading = Agenda; GetData(); return(PartialView(new meetingnote { NoteDate = System.DateTime.Today, DateEntered = System.DateTime.Today, EnteredBy = User.Identity.Name.ToString(), Status = "Active", MeetingAgendaID = MeetingAgendaID })); }
public ActionResult Create(int goalID = 0, int parentTaskID = 0, string ActionItemCode = "", string Code = "Goal") { if (Code == "Goal") { goal goal = GoalRepository.GetGoalByID(goalID); ViewBag.Heading = string.Format("Add Tasks to Goal ({0})", goal.Title); ViewBag.SubHeading = "Add New Task.."; GetData(goal.ministryID); } else if (Code == "ActionItem") { task task = TaskRepository.GetTaskByID(parentTaskID); goal gol = GoalRepository.GetGoalByID(goalID); ViewBag.Heading = string.Format("Add Action Item to Task ({0} - {1})", gol.Title, task.Title); ViewBag.SubHeading = "Add New Action Item.."; GetData(gol.ministryID); } else { meetingagenda agenda = MeetingAgendaRepository.GetAgendaByID(goalID); ViewBag.GoalTitle = agenda.Description; int ministryID = MeetingRepository.GetMeetingByID(agenda.meetingID).ministryID; GetData(ministryID); } ViewBag.ParentTaskID = 0; return(PartialView(new task { DateEntered = System.DateTime.Today, EnteredBy = User.Identity.Name.ToString(), Status = "Active", goalID = goalID, CompletionRatio = 0, parentTaskID = parentTaskID, ActionItemTypeCode = ActionItemCode })); }
public ActionResult MeetingReport(int MeetingID) { meeting meeting = MeetingRepository.GetMeetingByID(MeetingID); meeting.ministry = MinistryRepository.GetMinistryByID(meeting.ministryID); IEnumerable <meetingagenda> agenda = MeetingAgendaRepository.GetAgendaByMeeting(MeetingID); ViewBag.HasAgenda = false; if (agenda != null) { ViewBag.HasAgenda = true; foreach (meetingagenda a in agenda) { if (a.TaskID > 0) { a.task = TaskRepository.GetTaskByID(a.TaskID); a.task.member = MemberRepository.GetMemberByID(a.task.AssignTo); } } ViewBag.Agenda = agenda; } IEnumerable <meetingnote> notes = MeetingNotesRepository.GetMeetingNotesByMeeting(MeetingID); ViewBag.HasNotes = false; if (notes != null) { ViewBag.HasNotes = true; foreach (meetingnote n in notes) { n.meetingagenda = MeetingAgendaRepository.GetAgendaByID(n.MeetingAgendaID); } ViewBag.Notes = notes; } int CalendarID = meeting.CalendarID; IEnumerable <attendance> attendees = AttendanceRepository.GetAttendanceByCalendar(CalendarID); ViewBag.HasAttendee = false; if (attendees != null) { ViewBag.HasAttendee = true; foreach (attendance a in attendees) { a.member = MemberRepository.GetMemberByID(a.memberID); } ViewBag.Attendees = attendees; } return(PartialView(meeting)); }