public ActionResult StaffEventCreation(StaffEventCreation staffEvent) { EduData = new EducationManagerData(); bool res = false; try { if (staffEvent.Eventid != 0) { if (staffEvent.InitialEventDate != staffEvent.EventDate && staffEvent.InitialEventTime == staffEvent.StartTime) { staffEvent.EventChangesOn = 1; } else if (staffEvent.InitialEventDate == staffEvent.EventDate && staffEvent.InitialEventTime != staffEvent.StartTime) { staffEvent.EventChangesOn = 2; } else if (staffEvent.InitialEventDate != staffEvent.EventDate && staffEvent.InitialEventTime != staffEvent.StartTime) { staffEvent.EventChangesOn = 3; } else { staffEvent.EventChangesOn = 0; } } res = EduData.SaveStaffEventDetails(staffEvent); } catch (Exception ex) { clsError.WriteException(ex); } return(RedirectToAction("EventsList")); }
public JsonResult GetEventReportByID(int eventId, int eventType) { EventReportDetails eventdetails = new EventReportDetails(); EduData = new EducationManagerData(); try { eventdetails = EduData.GetEventReportByID(eventType, eventId, 1); } catch (Exception ex) { clsError.WriteException(ex); } return(Json(eventdetails, JsonRequestBehavior.AllowGet)); }
public ActionResult StaffEventInfo(string Yakkrid) { EduData = new EducationManagerData(); StaffEventCreation events = new StaffEventCreation(); try { events = EduData.StaffEventInfo(Yakkrid); } catch (Exception ex) { clsError.WriteException(ex); } return(View(events)); }
public ActionResult StaffEventInfo(string RSVP, string EventId, string YakkrId) { EduData = new EducationManagerData(); bool res = false; try { res = EduData.SaveRSVP(RSVP, EventId, YakkrId); } catch (Exception ex) { clsError.WriteException(ex); } return(RedirectToAction("YakkrDetails", "Yakkr")); }
public JsonResult GetUsersforMultipleRoles(List <string> RolesList, int Id = 0) { List <UserDetails> userDetails = new List <UserDetails>(); EduData = new EducationManagerData(); try { userDetails = EduData.GetUsersforMultipleRoles(RolesList); } catch (Exception ex) { clsError.WriteException(ex); } return(Json(userDetails, JsonRequestBehavior.AllowGet)); }
public JsonResult GetEducationManagerDashboard() { EduData = new EducationManagerData(); EducationManager manager = new EducationManager(); try { manager = EduData.GetEducationDashboard(); } catch (Exception ex) { clsError.WriteException(ex); } return(Json(manager, JsonRequestBehavior.AllowGet)); }
//public ActionResult GetEventByYakkrid(string YakkrId) //{ // StaffEventCreation eventdata = new StaffEventCreation(); // EduData = new EducationManagerData(); // try // { // eventdata = EduData.GetEventByYakkrId(YakkrId); // } // catch (Exception ex) // { // clsError.WriteException(ex); // } // return Json(eventdata, JsonRequestBehavior.AllowGet); //} public ActionResult GetEventListByEventType(string EventType) { EduData = new EducationManagerData(); StaffEventCreation evt = new StaffEventCreation(); try { evt.events = EventType == "1"?EduData.GetStaffEventList((int)FingerprintsModel.Enums.StaffEventListType.OpenEvents): EduData.GetStaffEventList((int)FingerprintsModel.Enums.StaffEventListType.CompletedEvents); } catch (Exception ex) { clsError.WriteException(ex); } return(Json(evt.events, JsonRequestBehavior.AllowGet)); }
public ActionResult CompletedEvents() { EduData = new EducationManagerData(); StaffEventCreation evt = new StaffEventCreation(); ViewBag.EventType = "completed"; try { evt.events = EduData.GetStaffEventList((int)FingerprintsModel.Enums.StaffEventListType.CompletedEvents); } catch (Exception ex) { clsError.WriteException(ex); } return(View("EventsList", evt)); }
public ActionResult EventsList() { ViewBag.EventType = "future"; EduData = new EducationManagerData(); StaffEventCreation evt = new StaffEventCreation(); try { evt.events = EduData.GetStaffEventList((int)FingerprintsModel.Enums.StaffEventListType.UpcomingEvents); } catch (Exception ex) { clsError.WriteException(ex); } return(View(evt)); }
public ActionResult StaffEventCreation(string Eventid = "") { EduData = new EducationManagerData(); StaffEventCreation events = new StaffEventCreation(); try { events = Eventid == "" ? EduData.GetStaffEventCreation((int)FingerprintsModel.Enums.StaffEventListType.Initial, Eventid) : EduData.GetStaffEventCreation((int)FingerprintsModel.Enums.StaffEventListType.ByEventId, Eventid); events.Heading = Eventid == "" ? "Event Creation" : "Edit Event Details"; events.IsEditMode = Eventid == "" ? false : true; } catch (Exception ex) { clsError.WriteException(ex); } return(View(events)); }
public ActionResult StaffEventReports() { EduData = new EducationManagerData(); StaffEventCreation evt = new StaffEventCreation(); ViewBag.EventType = "completed"; try { evt.events = EduData.GetStaffEventList(5); } catch (Exception ex) { clsError.WriteException(ex); } return(View(evt)); }
public JsonResult GetScreeningInfoDeca(long centerId, long classRoomId, long filterType) { ScreeningAnalysisInfo info = new ScreeningAnalysisInfo(); ScreeningAnalysisInfoModel model = new ScreeningAnalysisInfoModel(); try { info.CenterId = centerId; info.ClassRoomId = classRoomId; info.FilterType = filterType; info.AgencyId = new Guid(Session["AgencyId"].ToString()); info.UserId = new Guid(Session["UserID"].ToString()); info.RoleId = new Guid(Session["RoleId"].ToString()); // model = new CenterData().GetParentInfoBySearch(info); model = new EducationManagerData().ScreeningInfoDeca(info); } catch (Exception ex) { clsError.WriteException(ex); } return(Json(model, JsonRequestBehavior.AllowGet)); }