annotate Agendas/trunk/src/Agendas.Web/Models/EventoModel.cs @ 119:8fa58a79656a

Historico
author Nelo@Kenia.neluz.int
date Wed, 22 Jun 2011 09:49:07 -0300
parents b74734a1a755
children 6f1041301797
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 {
112
0bca45e1e664 Pantalla de Perfil donde se puede asociar la cuenta de twitter al usuario existente
Nelo@Kenia.neluz.int
parents: 106
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 public EventoNewModel()
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
17 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
18 Tipos = EventoModelHelper.GetTiposEventos();
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
19 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
20
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
21 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
22 public int Tipo { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
23
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
24 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
25 public string Titulo { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
26
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
27 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
28 public string Ponente { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
29
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
30 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
31 public DateTime Fecha { get; set; }
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 [Url]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
34 public string UrlInvitacion { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
35
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
36 public IEnumerable<TipoEventoModel> Tipos { get; private set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
37 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
38
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
39 public class TipoEventoModel
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
40 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
41 public int TipoEvento { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
42 public string TipoEventoStr { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
43 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
44
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
45 public class EventoEditModel
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
46 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
47 [HiddenInput(DisplayValue = false)]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
48 public string Id { get; set; }
75
96d7609f2e08 Agendar evento propuesto
nelopauselli
parents: 70
diff changeset
49
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
50 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
51 public string Titulo { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
52
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
53 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
54 public string Ponente { get; set; }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
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 DateTime? Fecha { get; set; }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
58
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
59 [Url]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
60 public string UrlInvitacion { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
61 }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
62
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
63 public class EventoAgendarModel
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
64 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
65 [HiddenInput(DisplayValue = false)]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
66 public string Id { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
67
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
68 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
69 public string Titulo { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
70
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
71 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
72 public string Ponente { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
73
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
74 [Required]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
75 public DateTime? Fecha { get; set; }
118
b74734a1a755 Manejo de eventos por estado
Nelo@Kenia.neluz.int
parents: 116
diff changeset
76
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
77 [Url]
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
78 public string UrlInvitacion { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
79 }
106
80c22175c9b5 agregado de tipo de evento (van, cafe, grupoestudio)
jorge.rowies
parents: 83
diff changeset
80
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
81 public class EventoDto
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
82 {
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
83 public string Id { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
84 public string Titulo { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
85 public string Estado { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
86 public string Fecha { get; set; }
116
53bcd338542b acciones de confirmar y publicar desde la UI
Nelo@Kenia.neluz.int
parents: 112
diff changeset
87
119
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
88 public bool PuedeAgendar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
89 public bool PuedeModificar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
90 public bool PuedeConfirmar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
91 public bool PuedePublicar { get; set; }
8fa58a79656a Historico
Nelo@Kenia.neluz.int
parents: 118
diff changeset
92 }
26
71b02443450a UI de Propuestas de VANs
nelo@MTEySS.neluz.int
parents:
diff changeset
93 }