From 3d9f004d48ead028a0bba2d30917bb4f44f9ebf3 Mon Sep 17 00:00:00 2001 From: jnunez Date: Tue, 26 Jun 2018 15:24:15 +0000 Subject: [PATCH] git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C118 --- AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs | 4 - .../AYA.SlnSinortModel.csproj | 6 + .../AYA.SlnSynorModel/Sinort/Contenido.cs | 40 ++++++ .../Sinort/DocumentoTecnico.cs | 31 +++++ .../AYA.SlnSynorModel/Sinort/GrupoTematico.cs | 40 ++++++ .../AYA.SlnSynorModel/Sinort/PalabraClave.cs | 31 +++++ .../Sinort/PlantillaEmail.cs | 3 + .../AYA.SlnSynorModel/Sinort/SinortContex.cs | 117 ++++++++++++++++++ .../Sinort/SubCategoriaContenido.cs | 35 ++++++ .../Sinort/SubCategoriaGrupoTematico.cs | 35 ++++++ 10 files changed, 338 insertions(+), 4 deletions(-) create mode 100644 AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Contenido.cs create mode 100644 AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentoTecnico.cs create mode 100644 AYA.SlnSynor/AYA.SlnSynorModel/Sinort/GrupoTematico.cs create mode 100644 AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PalabraClave.cs create mode 100644 AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SubCategoriaContenido.cs create mode 100644 AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SubCategoriaGrupoTematico.cs diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs b/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs index 834971a68..677861253 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs @@ -23,10 +23,6 @@ namespace AYA.SlnSinort.WCF public class Sinort : ISinort { Log log = new Log("SinortWCF"); - - - - #region ProyectoNormativo public ProyectoNormativoJSON GuardarProyectoNormativo(ProyectoNormativoJSON model) diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj index 7145b20f4..ed12473a3 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj +++ b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj @@ -71,13 +71,17 @@ + + + + @@ -86,6 +90,8 @@ + + diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Contenido.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Contenido.cs new file mode 100644 index 000000000..5d3cb7117 --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Contenido.cs @@ -0,0 +1,40 @@ +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("Catalogos.Contenido")] + public partial class Contenido + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public Contenido() + { + SubCategoriaContenido = new HashSet(); + } + + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public int IdContenido { get; set; } + + [StringLength(500)] + public string Descripcion { get; set; } + + public bool? Estado { 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; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection SubCategoriaContenido { get; set; } + } +} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentoTecnico.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentoTecnico.cs new file mode 100644 index 000000000..c6532c738 --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentoTecnico.cs @@ -0,0 +1,31 @@ +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("Catalogos.DocumentoTecnico")] + public partial class DocumentoTecnico + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public int IdDocumentoTecnico { get; set; } + + [StringLength(500)] + public string Descripcion { get; set; } + + public bool? Estado { 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; } + } +} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/GrupoTematico.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/GrupoTematico.cs new file mode 100644 index 000000000..fd9a2a9a1 --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/GrupoTematico.cs @@ -0,0 +1,40 @@ +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("Catalogos.GrupoTematico")] + public partial class GrupoTematico + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public GrupoTematico() + { + SubCategoriaGrupoTematico = new HashSet(); + } + + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public int IdGrupoTematico { get; set; } + + [StringLength(500)] + public string Descripcion { get; set; } + + public bool? Estado { 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; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection SubCategoriaGrupoTematico { get; set; } + } +} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PalabraClave.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PalabraClave.cs new file mode 100644 index 000000000..b2161dc13 --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PalabraClave.cs @@ -0,0 +1,31 @@ +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("Catalogos.PalabraClave")] + public partial class PalabraClave + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public int IdPalabraClave { get; set; } + + [StringLength(500)] + public string Descripcion { get; set; } + + public bool? Estado { 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; } + } +} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PlantillaEmail.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PlantillaEmail.cs index 80a0c3c45..5a6a1d168 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PlantillaEmail.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/PlantillaEmail.cs @@ -16,6 +16,9 @@ namespace AYA.SlnSinortModel.Sinort [StringLength(200)] public string NombrePlatilla { get; set; } + [StringLength(200)] + public string Descripcion { get; set; } + public string Body { get; set; } public bool? Estado { get; set; } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs index dfc4f13ad..38fac3f87 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs @@ -8,16 +8,23 @@ namespace AYA.SlnSinortModel.Sinort public partial class SinortContex : Contex { + public virtual DbSet Aplicacion { get; set; } public virtual DbSet Categoria { get; set; } + public virtual DbSet Contenido { get; set; } + public virtual DbSet DocumentoTecnico { get; set; } public virtual DbSet Emisor { get; set; } public virtual DbSet Estado { get; set; } + public virtual DbSet GrupoTematico { get; set; } public virtual DbSet Mantenimiento { get; set; } + public virtual DbSet PalabraClave { get; set; } public virtual DbSet Pantallas { get; set; } public virtual DbSet PlantillaEmail { get; set; } public virtual DbSet Roles { get; set; } public virtual DbSet RolesPantallas { get; set; } public virtual DbSet RolesUsuario { get; set; } + public virtual DbSet SubCategoriaContenido { get; set; } + public virtual DbSet SubCategoriaGrupoTematico { get; set; } public virtual DbSet TipoAplicacion { get; set; } public virtual DbSet TipoDocumento { get; set; } public virtual DbSet TipoEmisor { get; set; } @@ -60,6 +67,35 @@ namespace AYA.SlnSinortModel.Sinort .Property(e => e.UsuarioModificacion) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .HasMany(e => e.SubCategoriaContenido) + .WithRequired(e => e.Contenido) + .WillCascadeOnDelete(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.Descripcion) .IsUnicode(false); @@ -84,6 +120,23 @@ namespace AYA.SlnSinortModel.Sinort .Property(e => e.UsuarioModificacion) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .HasMany(e => e.SubCategoriaGrupoTematico) + .WithRequired(e => e.GrupoTematico) + .WillCascadeOnDelete(false); + modelBuilder.Entity() .Property(e => e.Catalogo) .IsUnicode(false); @@ -100,6 +153,18 @@ namespace AYA.SlnSinortModel.Sinort .Property(e => e.UsuarioModificacion) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.Descripcion) .IsUnicode(false); @@ -120,6 +185,10 @@ namespace AYA.SlnSinortModel.Sinort .Property(e => e.NombrePlatilla) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.Body) .IsUnicode(false); @@ -168,6 +237,30 @@ namespace AYA.SlnSinortModel.Sinort .Property(e => e.UsuarioModificacion) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.Descripcion) .IsUnicode(false); @@ -342,6 +435,10 @@ namespace AYA.SlnSinortModel.Sinort .Property(e => e.Asunto) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.Comentario) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.UsuarioSistema) .IsUnicode(false); @@ -386,10 +483,30 @@ namespace AYA.SlnSinortModel.Sinort .Property(e => e.NombreProyectoNormativo) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.DescTipoProyecto) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Matriz) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Emisor) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Aplicacion) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.PromotorProyecto) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.Estado) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.UsuarioCreacion) .IsUnicode(false); diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SubCategoriaContenido.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SubCategoriaContenido.cs new file mode 100644 index 000000000..ae771de94 --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SubCategoriaContenido.cs @@ -0,0 +1,35 @@ +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("Catalogos.SubCategoriaContenido")] + public partial class SubCategoriaContenido + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public int IdSubCategoriaContenido { get; set; } + + public int IdContenido { get; set; } + + [StringLength(500)] + public string Descripcion { get; set; } + + public bool? Estado { 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 Contenido Contenido { get; set; } + } +} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SubCategoriaGrupoTematico.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SubCategoriaGrupoTematico.cs new file mode 100644 index 000000000..f0b17deb0 --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SubCategoriaGrupoTematico.cs @@ -0,0 +1,35 @@ +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("Catalogos.SubCategoriaGrupoTematico")] + public partial class SubCategoriaGrupoTematico + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public int IdSubCategoriaGrupoTematico { get; set; } + + public int IdGrupoTematico { get; set; } + + [StringLength(500)] + public string Descripcion { get; set; } + + public bool? Estado { 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 GrupoTematico GrupoTematico { get; set; } + } +}