Esempio n. 1
0
        //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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        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));
        }