comparison Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs @ 185:2d02adb79322

Se agrega fecha de termino de un Evento y se incluye la hora a la fecha de inicio. Se modifica la propiedad Fecha del Evento, renombrandola FechaInicio. En el ModelView se agrega propiedades DuraciĆ³n y Hora del Evento cuando es Modificado, Nuevo y Agendado. Las fechas ingresadas son creadas en sistema UTC Queda pendiente Agregar duraciĆ³n a Google Calendar.
author alabra
date Tue, 09 Aug 2011 01:04:27 -0400
parents b7621309524f
children 5cc7bc973ffc
comparison
equal deleted inserted replaced
184:2a336a6a76b5 185:2d02adb79322
23 public Guid Ponente { get; set; } 23 public Guid Ponente { get; set; }
24 24
25 [Required] 25 [Required]
26 public DateTime Fecha { get; set; } 26 public DateTime Fecha { get; set; }
27 27
28 [Url] 28 [Required]
29 public TimeSpan Hora { get; set; }
30
31 [Required]
32 public TimeSpan Duracion { get; set; }
33
34 [Url]
29 public string UrlInvitacion { get; set; } 35 public string UrlInvitacion { get; set; }
30 } 36 }
31 37
32 public class EventoEditModel 38 public class EventoEditModel
33 { 39 {
40 [Required] 46 [Required]
41 public Guid Ponente { get; set; } 47 public Guid Ponente { get; set; }
42 48
43 [Required] 49 [Required]
44 public DateTime? Fecha { get; set; } 50 public DateTime? Fecha { get; set; }
51
52 [Required]
53 public TimeSpan? Hora { get; set; }
54
55 [Required]
56 public TimeSpan? Duracion { get; set; }
45 57
46 [Url] 58 [Url]
47 public string UrlInvitacion { get; set; } 59 public string UrlInvitacion { get; set; }
48 } 60 }
49 61
58 [Required] 70 [Required]
59 public Guid Ponente { get; set; } 71 public Guid Ponente { get; set; }
60 72
61 [Required] 73 [Required]
62 public DateTime? Fecha { get; set; } 74 public DateTime? Fecha { get; set; }
75
76 [Required]
77 public TimeSpan? Hora { get; set; }
78
79 [Required]
80 public TimeSpan? Duracion { get; set; }
63 81
64 [Url] 82 [Url]
65 public string UrlInvitacion { get; set; } 83 public string UrlInvitacion { get; set; }
66 } 84 }
67 85
90 { 108 {
91 public string Id { get; set; } 109 public string Id { get; set; }
92 public string Titulo { get; set; } 110 public string Titulo { get; set; }
93 public string Estado { get; set; } 111 public string Estado { get; set; }
94 public string Fecha { get; set; } 112 public string Fecha { get; set; }
113 public string Duracion { get; set; }
95 114
96 public bool PuedeAgendar { get; set; } 115 public bool PuedeAgendar { get; set; }
97 public bool PuedeModificar { get; set; } 116 public bool PuedeModificar { get; set; }
98 public bool PuedeConfirmar { get; set; } 117 public bool PuedeConfirmar { get; set; }
99 public bool PuedePublicar { get; set; } 118 public bool PuedePublicar { get; set; }
100 public bool PuedeCancelar { get; set; } 119 public bool PuedeCancelar { get; set; }
101 public bool PuedeDescartar { get; set; } 120 public bool PuedeDescartar { get; set; }