From 63d51583bb2f616f79de97c0fec2745deac4b0a7 Mon Sep 17 00:00:00 2001 From: mumana Date: Fri, 15 Jun 2018 21:54:05 +0000 Subject: [PATCH] git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C64 --- .../DetallePropuestaNormativa.js | 1 + .../DetallePropuesta.cshtml | 126 ++++++++++++------ .../AYA.SlnSinortModel.csproj | 1 + .../AYA.SlnSynorModel/Sinort/Aplicacion.cs | 9 ++ .../AYA.SlnSynorModel/Sinort/Emisor.cs | 9 ++ AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs | 4 + .../AYA.SlnSynorModel/Sinort/Matriz.cs | 4 + .../Sinort/ProyectoNormativo.cs | 53 ++++++++ .../AYA.SlnSynorModel/Sinort/SinortContex.cs | 13 ++ 9 files changed, 181 insertions(+), 39 deletions(-) create mode 100644 AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ProyectoNormativo.cs diff --git a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js index 93a35df5f..3e6780e6a 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js +++ b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js @@ -8,6 +8,7 @@ jQuery(document).ready(function () { alert("No ha seleccionado una propuesta"); + $('#TableItems').TableInit(0, false, true, true, false, null, null); $("#tabs").tabs(); }); \ No newline at end of file diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/PropuestaNormativa/DetallePropuesta.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/PropuestaNormativa/DetallePropuesta.cshtml index 5f3b2d3a9..d74b422fd 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/PropuestaNormativa/DetallePropuesta.cshtml +++ b/AYA.SlnSynor/AYA.SlnSynor/Views/PropuestaNormativa/DetallePropuesta.cshtml @@ -12,72 +12,120 @@
@* Informacion General *@
-
- +
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+
+
+
+ @* Participantes *@ +
+
+
+ + + + + + + + + + +
NombreFecha Máxima ConfirmaciónFecha Creación
+ +

-    +   

- @*Descripción*@ - + @*Usuario*@
- -
- + +
+ + +
+
+
- - - - -
- -
- - - - -
-
- - - -
- -
-
-
-
-

B

-

C

diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj index d43505b65..05ed54ac1 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj +++ b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj @@ -83,6 +83,7 @@ + diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs index 1f61ea99b..07b362300 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs @@ -9,6 +9,12 @@ namespace AYA.SlnSinortModel.Sinort [Table("Catalogos.Aplicacion")] public partial class Aplicacion { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public Aplicacion() + { + ProyectoNormativo = new HashSet(); + } + [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public int IdAplicacion { get; set; } @@ -30,6 +36,9 @@ namespace AYA.SlnSinortModel.Sinort [StringLength(200)] public string UsuarioModificacion { get; set; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection ProyectoNormativo { get; set; } + public virtual TipoAplicacion TipoAplicacion { get; set; } } } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Emisor.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Emisor.cs index 57daa9ec8..35057ef3f 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Emisor.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Emisor.cs @@ -9,6 +9,12 @@ namespace AYA.SlnSinortModel.Sinort [Table("Catalogos.Emisor")] public partial class Emisor { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public Emisor() + { + ProyectoNormativo = new HashSet(); + } + [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public int IdEmisor { get; set; } @@ -30,6 +36,9 @@ namespace AYA.SlnSinortModel.Sinort [StringLength(200)] public string UsuarioModificacion { get; set; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection ProyectoNormativo { get; set; } + public virtual TipoEmisor TipoEmisor { get; set; } } } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs index 7944e87b9..618fa3315 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs @@ -14,6 +14,7 @@ namespace AYA.SlnSinortModel.Sinort { ComentariosForo = new HashSet(); Convocatoria = new HashSet(); + ProyectoNormativo = new HashSet(); } [Key] @@ -39,5 +40,8 @@ namespace AYA.SlnSinortModel.Sinort [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection Convocatoria { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection ProyectoNormativo { get; set; } } } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Matriz.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Matriz.cs index 29142c848..21fcf044c 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Matriz.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Matriz.cs @@ -13,6 +13,7 @@ namespace AYA.SlnSinortModel.Sinort public Matriz() { ComentariosMatriz = new HashSet(); + ProyectoNormativo = new HashSet(); } [Key] @@ -35,5 +36,8 @@ namespace AYA.SlnSinortModel.Sinort [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ComentariosMatriz { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection ProyectoNormativo { get; set; } } } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ProyectoNormativo.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ProyectoNormativo.cs new file mode 100644 index 000000000..5aae60e11 --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ProyectoNormativo.cs @@ -0,0 +1,53 @@ +namespace AYA.SlnSinortModel.Sinort +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.ComponentModel.DataAnnotations.Schema; + using System.Data.Entity.Spatial; + + [Table("Normativo.ProyectoNormativo")] + public partial class ProyectoNormativo + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public int IdProyectoNormativo { get; set; } + + [StringLength(200)] + public string NombreProyectoNormativo { get; set; } + + public int? IdForo { get; set; } + + public int? IdMatriz { get; set; } + + public int? IdEmisor { get; set; } + + public int? IdAplicacion { get; set; } + + public DateTime? FechaInicioConsulta { get; set; } + + public DateTime? FechaFinConsulta { get; set; } + + public int? PromotorProyecto { get; set; } + + public DateTime? FechaMaximaConfirmarParticipacion { get; set; } + + public DateTime? FechaCreacion { get; set; } + + [StringLength(200)] + public string UsuarioCreacion { get; set; } + + public DateTime? FechaModificacion { get; set; } + + [StringLength(200)] + public string UsuarioModificacion { get; set; } + + public virtual Aplicacion Aplicacion { get; set; } + + public virtual Emisor Emisor { get; set; } + + public virtual Foro Foro { get; set; } + + public virtual Matriz Matriz { get; set; } + } +} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs index 105e0bf0f..e45a99f1b 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs @@ -33,6 +33,7 @@ namespace AYA.SlnSinortModel.Sinort public virtual DbSet Convocatoria { get; set; } public virtual DbSet Foro { get; set; } public virtual DbSet Matriz { get; set; } + public virtual DbSet ProyectoNormativo { get; set; } protected override void OnModelCreating(DbModelBuilder modelBuilder) { @@ -378,6 +379,18 @@ namespace AYA.SlnSinortModel.Sinort modelBuilder.Entity() .Property(e => e.UsuarioModificacion) .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.NombreProyectoNormativo) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); } } }