This commit is contained in:
jnunez 2018-06-28 20:59:04 +00:00
parent 055a284db5
commit e0714d3ebc
8 changed files with 18 additions and 8 deletions

View file

@ -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

View file

@ -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");

View file

@ -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; }
}

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -9,7 +9,6 @@ namespace AYA.SlnSinortModel.Sinort
public partial class SinortContex : Contex
{
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
public virtual DbSet<Categoria> Categoria { get; set; }
public virtual DbSet<Contenido> Contenido { get; set; }