From e0714d3ebcdd1bb7ff9799b9cf9ebae7e3607156 Mon Sep 17 00:00:00 2001 From: jnunez Date: Thu, 28 Jun 2018 20:59:04 +0000 Subject: [PATCH] git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C142 --- AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs | 7 ++----- .../FileUploadHandler/FileUploadHandler.ashx.cs | 2 +- AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Json.cs | 2 ++ AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs | 3 +++ AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Contenido.cs | 3 +++ AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentoTecnico.cs | 3 +++ AYA.SlnSynor/AYA.SlnSynorModel/Sinort/GrupoTematico.cs | 3 +++ AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs | 3 +-- 8 files changed, 18 insertions(+), 8 deletions(-) diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs b/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs index 780798f6a..bab40ebda 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs @@ -6,6 +6,7 @@ using AYA.SlnSinortModel.Entidades; using AYA.SlnSinortModel.Sinort; using System; using System.Collections.Generic; +using System.Configuration; using System.Data; using System.DirectoryServices; using System.DirectoryServices.ActiveDirectory; @@ -242,13 +243,11 @@ namespace AYA.SlnSinort.WCF file = model.Nombre.Replace(" ", "_"); fileDirectory = fileDirectory + "\\" + file; - - - if (File.Exists(fileDirectory)) { File.Delete(fileDirectory); } + model.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO; } catch (Exception ex) @@ -258,8 +257,6 @@ namespace AYA.SlnSinort.WCF } return model; } - - #endregion diff --git a/AYA.SlnSynor/AYA.SlnSynor/FileUploadHandler/FileUploadHandler.ashx.cs b/AYA.SlnSynor/AYA.SlnSynor/FileUploadHandler/FileUploadHandler.ashx.cs index 15383e002..1cfeece51 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/FileUploadHandler/FileUploadHandler.ashx.cs +++ b/AYA.SlnSynor/AYA.SlnSynor/FileUploadHandler/FileUploadHandler.ashx.cs @@ -18,7 +18,7 @@ namespace webAgenciaVirtual { try { - if (context.Request.QueryString["carpeta"] != null) + if (context.Request.QueryString["tipo"] != null && context.Request.QueryString["id"] != null && context.Request.QueryString["carpeta"] != null) { string pathrefer = context.Request.UrlReferrer.ToString(); //string Serverpath = HttpContext.Current.Server.MapPath("DocumentosSINORT"); diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Json.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Json.cs index 6ce895d0f..1ad802beb 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Json.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Entidades/Json.cs @@ -27,6 +27,8 @@ namespace AYA.SlnSinortModel.Entidades { public string Nombre { get; set; } + public string Tipo { get; set; } + public string Id { get; set; } public string Carpeta { get; set; } } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs index 1f61ea99b..77fadda16 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Aplicacion.cs @@ -18,6 +18,9 @@ namespace AYA.SlnSinortModel.Sinort [StringLength(500)] public string Descripcion { get; set; } + [Column(TypeName = "ntext")] + public string DescripcionLarga { get; set; } + public bool? Estado { get; set; } public DateTime? FechaCreacion { get; set; } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Contenido.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Contenido.cs index 5d3cb7117..62be70911 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Contenido.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Contenido.cs @@ -22,6 +22,9 @@ namespace AYA.SlnSinortModel.Sinort [StringLength(500)] public string Descripcion { get; set; } + [Column(TypeName = "ntext")] + public string DescripcionLarga { get; set; } + public bool? Estado { get; set; } public DateTime? FechaCreacion { get; set; } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentoTecnico.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentoTecnico.cs index c6532c738..ac472434d 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentoTecnico.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/DocumentoTecnico.cs @@ -16,6 +16,9 @@ namespace AYA.SlnSinortModel.Sinort [StringLength(500)] public string Descripcion { get; set; } + [Column(TypeName = "ntext")] + public string DescripcionLarga { get; set; } + public bool? Estado { get; set; } public DateTime? FechaCreacion { get; set; } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/GrupoTematico.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/GrupoTematico.cs index fd9a2a9a1..0d337ccc8 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/GrupoTematico.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/GrupoTematico.cs @@ -22,6 +22,9 @@ namespace AYA.SlnSinortModel.Sinort [StringLength(500)] public string Descripcion { get; set; } + [Column(TypeName = "ntext")] + public string DescripcionLarga { get; set; } + public bool? Estado { get; set; } public DateTime? FechaCreacion { get; set; } diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs index d4217f6d5..496514902 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs @@ -8,8 +8,7 @@ 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; }