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 ruta;
|
||||
var tipoproyecto;
|
||||
var Idetipoproyecto;
|
||||
var DesTipoProyecto;
|
||||
if (EsForo) {
|
||||
tipoproyecto = Proyectos.Foro.Codigo;
|
||||
Idetipoproyecto = Proyectos.Foro.Codigo;
|
||||
DesTipoProyecto = Proyectos.Foro.Descripcion;
|
||||
ruta = Proyectos.Foro.Descripcion + '\\' + model.ProyectoNormativo.IdProyectoNormativo + '\\' + SubTipoproyecto + '\\' + nombre;
|
||||
} else {
|
||||
tipoproyecto = Proyectos.PropuestaNormativa.Codigo;
|
||||
Idetipoproyecto = Proyectos.PropuestaNormativa.Codigo;
|
||||
DesTipoProyecto = Proyectos.Foro.Descripcion;
|
||||
ruta = Proyectos.PropuestaNormativa.Descripcion + '\\' + model.ProyectoNormativo.IdProyectoNormativo + '\\' + SubTipoproyecto + '\\' + nombre;
|
||||
}
|
||||
var Arraynombre = [];
|
||||
|
|
@ -601,9 +604,12 @@ this.GuardarAdjuntos= function (nombre) {
|
|||
var AdjuntosDocumentosAuxiliar
|
||||
= {
|
||||
Nombre: $("#txtDescripcionDocAux").val(),
|
||||
IdTipoDocumento: tipoproyecto,
|
||||
Comentario: $("#txtComentarioDocAux").val(),
|
||||
IdTipoDocumento: Idetipoproyecto,
|
||||
DescTipoDocumento : DesTipoProyecto,
|
||||
NumeroTipoDocumento: model.ProyectoNormativo.IdProyectoNormativo,
|
||||
IdSubTipoDocumento: $('#hiddenSubTipoDocumento').val(),
|
||||
DescIdSubTipoDocumento :SubTipoproyecto,
|
||||
RutaFisica: RepositorioLocal + ruta,
|
||||
RutaDescarga : RepositorioVirtual + ruta,
|
||||
TipoArchivo: Arraynombre.pop()
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@
|
|||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Sinort\Aplicacion.cs" />
|
||||
<Compile Include="Sinort\BitacoraDocumentos.cs" />
|
||||
<Compile Include="Sinort\Calendario.cs" />
|
||||
<Compile Include="Sinort\Categoria.cs" />
|
||||
<Compile Include="Sinort\ComentariosProyecto.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)]
|
||||
public string Nombre { get; set; }
|
||||
|
||||
[Column(TypeName = "ntext")]
|
||||
public string Comentario { get; set; }
|
||||
|
||||
public int? IdTipoDocumento { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DescTipoDocumento { get; set; }
|
||||
|
||||
public int? NumeroTipoDocumento { get; set; }
|
||||
|
||||
public int? IdSubTipoDocumento { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DescIdSubTipoDocumento { get; set; }
|
||||
|
||||
[Column(TypeName = "ntext")]
|
||||
public string RutaFisica { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,10 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
public partial class SinortContex : Contex
|
||||
{
|
||||
|
||||
|
||||
|
||||
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
|
||||
public virtual DbSet<Calendario> Calendario { get; set; }
|
||||
public virtual DbSet<Categoria> Categoria { get; set; }
|
||||
public virtual DbSet<Contenido> Contenido { get; set; }
|
||||
public virtual DbSet<DocumentoTecnico> DocumentoTecnico { get; set; }
|
||||
|
|
@ -55,6 +56,22 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.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>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -409,6 +426,14 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.Nombre)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||
.Property(e => e.DescTipoDocumento)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||
.Property(e => e.DescIdSubTipoDocumento)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<DocumentosAdjuntos>()
|
||||
.Property(e => e.TipoArchivo)
|
||||
.IsUnicode(false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue