annotate Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs @ 162:557c386fcecc

Ticket 153: UI de Publicar.
author juanjose.montesdeocaarbos
date Fri, 05 Aug 2011 22:02:23 -0300
parents c57ca21064f2
children b7621309524f
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 [UIHint("NroOrden")]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
79 [Range(1, short.MaxValue)]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
80 public short NroOrden { get; set; }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
81
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
82 [Required]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
83 [Url]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
84 public string UrlWiki { get; set; }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
85
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
86 [Required]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
87 [UIHint("DuracionReal")]
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
88 public TimeSpan DuracionReal { get; set; }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
89 }
557c386fcecc Ticket 153: UI de Publicar.
juanjose.montesdeocaarbos
parents: 152
diff changeset
90
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
91 public class EventoDto
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
92 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
93 public string Id { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
94 public string Titulo { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
95 public string Estado { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
96 public string Fecha { get; set; }
116
53bcd338542b acciones de confirmar y publicar desde la UI
Nelo@Kenia.neluz.int
parents: 112
diff changeset
97
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
98 public bool PuedeAgendar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
99 public bool PuedeModificar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
100 public bool PuedeConfirmar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
101 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
102 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
103 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
104 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
105 public bool PuedeReProponer { get; set; }
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
106 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
107 }