Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. .Editable(edit =>
  2. {
  3. edit.TemplateName("SchedulerEditorTemplate");
  4. })
  5.  
  6. /Home (folder)
  7. /EditorTemplates (folder)
  8. SchedulerEditorTemplate.cshtml
  9. Index.cshtml
  10.  
  11. using Kendo.Mvc.UI;
  12. using System;
  13. using System.Linq;
  14.  
  15. namespace MyApp.ViewModels.Calendars
  16. {
  17. public class CalendarAppointmentViewModel : ISchedulerEvent
  18. {
  19. // Mandatory Custom Fields
  20. public int AppointmentId { get; set; }
  21. public int EmployeeId { get; set; }
  22. public string EmployeeName { get; set; }
  23. public bool Reminder { get; set; }
  24. public bool IsPending { get; set; }
  25. public bool IsActive { get; set; }
  26. public bool IsCompleted { get; set; }
  27. public bool IsCancelled { get; set; }
  28.  
  29. // Kendo Fields
  30. public string Title { get; set; }
  31. public string Description { get; set; }
  32. public string Recurrence { get; set; }
  33. public string StartTimezone { get; set; }
  34. public string EndTimezone { get; set; }
  35.  
  36. private DateTime start;
  37. public DateTime Start
  38. {
  39. get
  40. {
  41. return start;
  42. }
  43. set
  44. {
  45. start = value.ToUniversalTime();
  46. }
  47. }
  48.  
  49.  
  50. private DateTime end;
  51. public DateTime End
  52. {
  53. get
  54. {
  55. return end;
  56. }
  57. set
  58. {
  59. end = value.ToUniversalTime();
  60. }
  61. }
  62.  
  63. public string RecurrenceRule { get; set; }
  64. public int? RecurrenceID { get; set; }
  65. public string RecurrenceException { get; set; }
  66. public bool IsAllDay { get; set; }
  67.  
  68. }
  69. }
  70.  
  71. public class CalendarAppointmentViewModel : ISchedulerEvent
  72. {
  73. ...
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement