Esempio n. 1
0
        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"));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        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"));
        }
Esempio n. 5
0
        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));
        }
Esempio n. 6
0
        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));
        }
Esempio n. 7
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. 8
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. 9
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. 10
0
        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));
        }
Esempio n. 11
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));
        }
Esempio n. 12
0
        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));
        }