annotate Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs @ 144:a2b14da4902f

Alta y modificación de ponentes (personas)
author Nelo@Guinea.neluz.int
date Mon, 01 Aug 2011 10:25:23 -0300
parents a5ff4de4a1d3
children e6e6bfb1da9e
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 [UIHint("TipoEvento")]
a5ff4de4a1d3 EditorForModel en Nuevo Evento y Proponer
Nelo@Guinea.neluz.int
parents: 133
diff changeset
18 public int TipoEvento { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
19
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
20 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
21 public string Titulo { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
22
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
23 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
24 public string Ponente { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
25
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
26 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
27 public DateTime Fecha { get; set; }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
28
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
29 [Url]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
30 public string UrlInvitacion { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
31 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
32
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
33 public class EventoEditModel
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
34 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
35 [HiddenInput(DisplayValue = false)]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
36 public string Id { get; set; }
75
96d7609f2e08 Agendar evento propuesto
nelopauselli
parents: 70
diff changeset
37
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
38 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
39 public string Titulo { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
40
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
41 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
42 public string Ponente { get; set; }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
43
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
44 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
45 public DateTime? Fecha { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
46
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
47 [Url]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
48 public string UrlInvitacion { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
49 }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
50
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
51 public class EventoAgendarModel
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
52 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
53 [HiddenInput(DisplayValue = false)]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
54 public string Id { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
55
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
56 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
57 public string Titulo { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
58
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
59 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
60 public string Ponente { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
61
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
62 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
63 public DateTime? Fecha { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
64
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
65 [Url]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
66 public string UrlInvitacion { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
67 }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
68
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
69 public class EventoDto
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
70 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
71 public string Id { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
72 public string Titulo { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
73 public string Estado { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
74 public string Fecha { get; set; }
116
53bcd338542b acciones de confirmar y publicar desde la UI
Nelo@Kenia.neluz.int
parents: 112
diff changeset
75
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
76 public bool PuedeAgendar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
77 public bool PuedeModificar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
78 public bool PuedeConfirmar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
79 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
80 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
81 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
82 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
83 public bool PuedeReProponer { get; set; }
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
84 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
85 }