annotate Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs @ 180:222362c29416

UI para asignación de roles
author nelopauselli
date Mon, 08 Aug 2011 16:42:52 -0300
parents b7621309524f
children 2d02adb79322
rev   line source
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
1 using System;
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
2 using System.Collections.Generic;
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
3 using System.ComponentModel.DataAnnotations;
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
4 using System.Web.Mvc;
79
8df9db937434 Url de invitación en la UI: validación y persistencia
nelopauselli
parents: 78
diff changeset
5 using DataAnnotationsExtensions;
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
6
34
475be11edf56 Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents: 26
diff changeset
7 namespace AltNetHispano.Agendas.Web.Models
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
8 {
144
a2b14da4902f Alta y modificación de ponentes (personas)
Nelo@Guinea.neluz.int
parents: 141
diff changeset
9 public class EventoIndexModel
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
10 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
11 public IEnumerable<EventoDto> ProximosEventos { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
12 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
13
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
14 public class EventoNewModel
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
15 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
16 [Required]
141
a5ff4de4a1d3 EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents: 133
diff changeset
17 public int TipoEvento { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
18
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
19 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
20 public string Titulo { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
21
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
22 [Required]
145
e6e6bfb1da9e En la edición de un evento (nuevo, propuesta, modificación), el ponente se selecciona desde un combo.
Nelo@Guinea.neluz.int
parents: 144
diff changeset
23 public Guid Ponente { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
24
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
25 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
26 public DateTime Fecha { get; set; }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
27
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
28 [Url]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
29 public string UrlInvitacion { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
30 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
31
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
32 public class EventoEditModel
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
33 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
34 [HiddenInput(DisplayValue = false)]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
35 public string Id { get; set; }
75
96d7609f2e08 Agendar evento propuesto
nelopauselli
parents: 70
diff changeset
36
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
37 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
38 public string Titulo { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
39
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
40 [Required]
145
e6e6bfb1da9e En la edición de un evento (nuevo, propuesta, modificación), el ponente se selecciona desde un combo.
Nelo@Guinea.neluz.int
parents: 144
diff changeset
41 public Guid Ponente { get; set; }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
42
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
43 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
44 public DateTime? Fecha { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
45
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
46 [Url]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
47 public string UrlInvitacion { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
48 }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
49
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
50 public class EventoAgendarModel
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
51 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
52 [HiddenInput(DisplayValue = false)]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
53 public string Id { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
54
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
55 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
56 public string Titulo { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
57
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
58 [Required]
145
e6e6bfb1da9e En la edición de un evento (nuevo, propuesta, modificación), el ponente se selecciona desde un combo.
Nelo@Guinea.neluz.int
parents: 144
diff changeset
59 public Guid Ponente { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
60
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
61 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
62 public DateTime? Fecha { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
63
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
64 [Url]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
65 public string UrlInvitacion { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
66 }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
67
162
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
68 public class EventoPublicarModel
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
69 {
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
70 [HiddenInput(DisplayValue = false)]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
71 public string Id { get; set; }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
72
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
73 [Required]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
74 [HiddenInput]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
75 public string Titulo { get; set; }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
76
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
77 [Required]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
78 [Range(1, short.MaxValue)]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
79 public short NroOrden { get; set; }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
80
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
81 [Required]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
82 [Url]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
83 public string UrlWiki { get; set; }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
84
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
85 [Required]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
86 public TimeSpan DuracionReal { get; set; }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
87 }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
88
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
89 public class EventoDto
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
90 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
91 public string Id { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
92 public string Titulo { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
93 public string Estado { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
94 public string Fecha { get; set; }
116
53bcd338542b acciones de confirmar y publicar desde la UI
Nelo@Kenia.neluz.int
parents: 112
diff changeset
95
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
96 public bool PuedeAgendar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
97 public bool PuedeModificar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
98 public bool PuedeConfirmar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
99 public bool PuedePublicar { get; set; }
133
6f1041301797 Se agregan los estados Cancelado y Descartado con las acciones Cancelar, Reagendar, Descartar, Reproponer, según ticket 146.
alabra
parents: 119
diff changeset
100 public bool PuedeCancelar { get; set; }
6f1041301797 Se agregan los estados Cancelado y Descartado con las acciones Cancelar, Reagendar, Descartar, Reproponer, según ticket 146.
alabra
parents: 119
diff changeset
101 public bool PuedeDescartar { get; set; }
6f1041301797 Se agregan los estados Cancelado y Descartado con las acciones Cancelar, Reagendar, Descartar, Reproponer, según ticket 146.
alabra
parents: 119
diff changeset
102 public bool PuedeReAgendar { get; set; }
6f1041301797 Se agregan los estados Cancelado y Descartado con las acciones Cancelar, Reagendar, Descartar, Reproponer, según ticket 146.
alabra
parents: 119
diff changeset
103 public bool PuedeReProponer { get; set; }
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
104 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
105 }