Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .Editable(edit =>
- {
- edit.TemplateName("SchedulerEditorTemplate");
- })
- /Home (folder)
- /EditorTemplates (folder)
- SchedulerEditorTemplate.cshtml
- Index.cshtml
- using Kendo.Mvc.UI;
- using System;
- using System.Linq;
- namespace MyApp.ViewModels.Calendars
- {
- public class CalendarAppointmentViewModel : ISchedulerEvent
- {
- // Mandatory Custom Fields
- public int AppointmentId { get; set; }
- public int EmployeeId { get; set; }
- public string EmployeeName { get; set; }
- public bool Reminder { get; set; }
- public bool IsPending { get; set; }
- public bool IsActive { get; set; }
- public bool IsCompleted { get; set; }
- public bool IsCancelled { get; set; }
- // Kendo Fields
- public string Title { get; set; }
- public string Description { get; set; }
- public string Recurrence { get; set; }
- public string StartTimezone { get; set; }
- public string EndTimezone { get; set; }
- private DateTime start;
- public DateTime Start
- {
- get
- {
- return start;
- }
- set
- {
- start = value.ToUniversalTime();
- }
- }
- private DateTime end;
- public DateTime End
- {
- get
- {
- return end;
- }
- set
- {
- end = value.ToUniversalTime();
- }
- }
- public string RecurrenceRule { get; set; }
- public int? RecurrenceID { get; set; }
- public string RecurrenceException { get; set; }
- public bool IsAllDay { get; set; }
- }
- }
- public class CalendarAppointmentViewModel : ISchedulerEvent
- {
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement