git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C149
This commit is contained in:
parent
a0593066cf
commit
f8504389b0
5 changed files with 82 additions and 5 deletions
|
|
@ -586,12 +586,15 @@ this.GuardarAdjuntos= function (nombre) {
|
||||||
|
|
||||||
var uri = SinortWCF + '/api/GuardarAdjuntos';
|
var uri = SinortWCF + '/api/GuardarAdjuntos';
|
||||||
var ruta;
|
var ruta;
|
||||||
var tipoproyecto;
|
var Idetipoproyecto;
|
||||||
|
var DesTipoProyecto;
|
||||||
if (EsForo) {
|
if (EsForo) {
|
||||||
tipoproyecto = Proyectos.Foro.Codigo;
|
Idetipoproyecto = Proyectos.Foro.Codigo;
|
||||||
|
DesTipoProyecto = Proyectos.Foro.Descripcion;
|
||||||
ruta = Proyectos.Foro.Descripcion + '\\' + model.ProyectoNormativo.IdProyectoNormativo + '\\' + SubTipoproyecto + '\\' + nombre;
|
ruta = Proyectos.Foro.Descripcion + '\\' + model.ProyectoNormativo.IdProyectoNormativo + '\\' + SubTipoproyecto + '\\' + nombre;
|
||||||
} else {
|
} else {
|
||||||
tipoproyecto = Proyectos.PropuestaNormativa.Codigo;
|
Idetipoproyecto = Proyectos.PropuestaNormativa.Codigo;
|
||||||
|
DesTipoProyecto = Proyectos.Foro.Descripcion;
|
||||||
ruta = Proyectos.PropuestaNormativa.Descripcion + '\\' + model.ProyectoNormativo.IdProyectoNormativo + '\\' + SubTipoproyecto + '\\' + nombre;
|
ruta = Proyectos.PropuestaNormativa.Descripcion + '\\' + model.ProyectoNormativo.IdProyectoNormativo + '\\' + SubTipoproyecto + '\\' + nombre;
|
||||||
}
|
}
|
||||||
var Arraynombre = [];
|
var Arraynombre = [];
|
||||||
|
|
@ -601,9 +604,12 @@ this.GuardarAdjuntos= function (nombre) {
|
||||||
var AdjuntosDocumentosAuxiliar
|
var AdjuntosDocumentosAuxiliar
|
||||||
= {
|
= {
|
||||||
Nombre: $("#txtDescripcionDocAux").val(),
|
Nombre: $("#txtDescripcionDocAux").val(),
|
||||||
IdTipoDocumento: tipoproyecto,
|
Comentario: $("#txtComentarioDocAux").val(),
|
||||||
|
IdTipoDocumento: Idetipoproyecto,
|
||||||
|
DescTipoDocumento : DesTipoProyecto,
|
||||||
NumeroTipoDocumento: model.ProyectoNormativo.IdProyectoNormativo,
|
NumeroTipoDocumento: model.ProyectoNormativo.IdProyectoNormativo,
|
||||||
IdSubTipoDocumento: $('#hiddenSubTipoDocumento').val(),
|
IdSubTipoDocumento: $('#hiddenSubTipoDocumento').val(),
|
||||||
|
DescIdSubTipoDocumento :SubTipoproyecto,
|
||||||
RutaFisica: RepositorioLocal + ruta,
|
RutaFisica: RepositorioLocal + ruta,
|
||||||
RutaDescarga : RepositorioVirtual + ruta,
|
RutaDescarga : RepositorioVirtual + ruta,
|
||||||
TipoArchivo: Arraynombre.pop()
|
TipoArchivo: Arraynombre.pop()
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Sinort\Aplicacion.cs" />
|
<Compile Include="Sinort\Aplicacion.cs" />
|
||||||
<Compile Include="Sinort\BitacoraDocumentos.cs" />
|
<Compile Include="Sinort\BitacoraDocumentos.cs" />
|
||||||
|
<Compile Include="Sinort\Calendario.cs" />
|
||||||
<Compile Include="Sinort\Categoria.cs" />
|
<Compile Include="Sinort\Categoria.cs" />
|
||||||
<Compile Include="Sinort\ComentariosProyecto.cs" />
|
<Compile Include="Sinort\ComentariosProyecto.cs" />
|
||||||
<Compile Include="Sinort\Contenido.cs" />
|
<Compile Include="Sinort\Contenido.cs" />
|
||||||
|
|
|
||||||
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Calendario.cs
Normal file
36
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Calendario.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
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.Calendario")]
|
||||||
|
public partial class Calendario
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdCalendario { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string Titulo { get; set; }
|
||||||
|
|
||||||
|
[StringLength(500)]
|
||||||
|
public string Descripcion { get; set; }
|
||||||
|
|
||||||
|
public bool? Estado { get; set; }
|
||||||
|
|
||||||
|
public DateTime? FechaTarea { 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -22,12 +22,21 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
[StringLength(200)]
|
[StringLength(200)]
|
||||||
public string Nombre { get; set; }
|
public string Nombre { get; set; }
|
||||||
|
|
||||||
|
[Column(TypeName = "ntext")]
|
||||||
|
public string Comentario { get; set; }
|
||||||
|
|
||||||
public int? IdTipoDocumento { get; set; }
|
public int? IdTipoDocumento { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string DescTipoDocumento { get; set; }
|
||||||
|
|
||||||
public int? NumeroTipoDocumento { get; set; }
|
public int? NumeroTipoDocumento { get; set; }
|
||||||
|
|
||||||
public int? IdSubTipoDocumento { get; set; }
|
public int? IdSubTipoDocumento { get; set; }
|
||||||
|
|
||||||
|
[StringLength(200)]
|
||||||
|
public string DescIdSubTipoDocumento { get; set; }
|
||||||
|
|
||||||
[Column(TypeName = "ntext")]
|
[Column(TypeName = "ntext")]
|
||||||
public string RutaFisica { get; set; }
|
public string RutaFisica { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
|
|
||||||
|
|
||||||
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
|
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
|
||||||
|
public virtual DbSet<Calendario> Calendario { get; set; }
|
||||||
public virtual DbSet<Categoria> Categoria { get; set; }
|
public virtual DbSet<Categoria> Categoria { get; set; }
|
||||||
public virtual DbSet<Contenido> Contenido { get; set; }
|
public virtual DbSet<Contenido> Contenido { get; set; }
|
||||||
public virtual DbSet<DocumentoTecnico> DocumentoTecnico { get; set; }
|
public virtual DbSet<DocumentoTecnico> DocumentoTecnico { get; set; }
|
||||||
|
|
@ -55,6 +56,22 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
.Property(e => e.UsuarioModificacion)
|
.Property(e => e.UsuarioModificacion)
|
||||||
.IsUnicode(false);
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Calendario>()
|
||||||
|
.Property(e => e.Titulo)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Calendario>()
|
||||||
|
.Property(e => e.Descripcion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Calendario>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Calendario>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
modelBuilder.Entity<Categoria>()
|
modelBuilder.Entity<Categoria>()
|
||||||
.Property(e => e.Descripcion)
|
.Property(e => e.Descripcion)
|
||||||
.IsUnicode(false);
|
.IsUnicode(false);
|
||||||
|
|
@ -409,6 +426,14 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
.Property(e => e.Nombre)
|
.Property(e => e.Nombre)
|
||||||
.IsUnicode(false);
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||||
|
.Property(e => e.DescTipoDocumento)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||||
|
.Property(e => e.DescIdSubTipoDocumento)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
modelBuilder.Entity<DocumentosAdjuntos>()
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||||
.Property(e => e.TipoArchivo)
|
.Property(e => e.TipoArchivo)
|
||||||
.IsUnicode(false);
|
.IsUnicode(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue