示例#1
0
        public ActionResult EventMap(Guid calendarEventID)
        {
            var calendarEvent = Exigo.GetCalendarEvents(new GetCalendarEventsRequest {
                EventID = calendarEventID
            }).FirstOrDefault();

            return(View(calendarEvent));
        }
示例#2
0
        public ActionResult EventsMap()
        {
            var model = new EventsMapViewModel();

            model.CalendarFilters = new CalendarViewModel(Identity.Current.CustomerID);
            model.Events          = Exigo.GetCalendarEvents(new GetCalendarEventsRequest()
            {
                CustomerID = Identity.Current.CustomerID
            });
            return(View(model));
        }
示例#3
0
        /// <summary>
        /// Get Events for the Kendo Scheduler
        /// </summary>
        /// <returns>JSON Net Result</returns>
        public ActionResult GetEvents(KendoGridRequest request)
        {
            // Establish the query
            var query = Exigo.GetCalendarEvents(new GetCalendarEventsRequest()
            {
                CustomerID = Identity.Current.CustomerID,
                IncludeCalendarSubscriptions = true
            }).AsQueryable();


            // Fetch the data
            var context = new KendoGridDataContext();

            return(context.Query(request, query, c => new
            {
                c.ID,
                c.Title,
                c.Description,
                Start = c.Start.ToString("o"),
                End = c.End.ToString("o"),
                c.StartTimezone,
                c.EndTimezone,
                c.RecurrenceID,
                c.RecurrenceRule,
                c.RecurrenceException,
                c.IsAllDay,
                c.CalendarID,
                c.CalendarEventTypeID,
                c.CalendarEventPrivacyTypeID,
                c.CreatedBy,
                CreatedDate = c.CreatedDate.ToString("s"),
                Tags = string.Join(", ", c.Tags),
                Location_Address1 = c.Location.Address1,
                Location_Address2 = c.Location.Address2,
                Location_City = c.Location.City,
                Location_State = c.Location.State,
                Location_Zip = c.Location.Zip,
                Location_Country = c.Location.Country,
                c.SpeakerID,
                c.Phone,
                c.Flyer,
                c.Cost,
                c.ConferenceNumber,
                c.ConferencePIN,
                c.Url
            }));
        }
        public ActionResult GetAgendaEventList(DateTime startDate, DateTime endDate)
        {
            var events = Exigo.GetCalendarEvents(new GetCalendarEventsRequest()
            {
                CustomerID = Identity.Current.CustomerID,
                IncludeCalendarSubscriptions = true,
                StartDate = startDate,
                EndDate   = endDate
            });


            if (Request.IsAjaxRequest())
            {
                return(PartialView("Partials/_AgendaEventList", events));
            }
            else
            {
                return(View("Partials/_AgendaEventList", events));
            }
        }
        public JsonNetResult GetEvents(DateTime start, DateTime end)
        {
            var events = Exigo.GetCalendarEvents(new GetCalendarEventsRequest
            {
                CustomerID = Identity.Current.CustomerID,
                IncludeCalendarSubscriptions = true,
                StartDate = start,
                EndDate   = end
            }).ToList();

            foreach (var e in events)
            {
                e.IsPersonal = (e.CreatedByCustomerID == Identity.Current.CustomerID || e.IsPrivateCopy);
            }

            return(new JsonNetResult(new
            {
                success = true,
                events = events
            }));
        }