git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C470
This commit is contained in:
parent
5c3349a90e
commit
fd149e6102
6 changed files with 33 additions and 13 deletions
|
|
@ -6,7 +6,7 @@ var RepositorioLocal = $("#hiddenRepositorioLocal").val();
|
|||
var UsuarioSistema = $("#hiddenUsuarioSistema").val();
|
||||
var NombreUsuario = $("#hiddenNombreUsuario").val();
|
||||
var LinkPropuesta = "http://aya-vsrv-apptt:2525/PropuestaNormativa/DetallePropuesta?";
|
||||
//
|
||||
//aya-vsrv-apptt:2525
|
||||
//http://aya-vsrv-wstt:2005/Sinort.svc
|
||||
//http://aya-vsrv-wstt:2005/SinortCatalogos.svc
|
||||
var server = window.location.protocol + "//" + "localhost" + "/" + (window.location.pathname.split('/')[1]) + "/";
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ var PalabrasHistorico = [];
|
|||
var FTPalabraClaveHistorico;
|
||||
var UsuarioAlerta = false;
|
||||
var tieneAlerta = false;
|
||||
var FechaDocumentos;
|
||||
|
||||
var idFicha;
|
||||
var Alerta;
|
||||
|
|
@ -57,7 +58,9 @@ jQuery(document).ready(function () {
|
|||
|
||||
this.getDataModel = function () {
|
||||
|
||||
FichaTecnicaId = (IsNullOrEmpty(ObtenerParametros().fichatecnicaid)) ? '' : ROT47(ObtenerParametros().fichatecnicaid);
|
||||
FichaTecnicaId = IDFicha != null && IDFicha != "[$id]" ? ROT47(IDFicha.toString()) : ''
|
||||
//(IsNullOrEmpty(ObtenerParametros().fichatecnicaid)) ? '' : ROT47(ObtenerParametros().fichatecnicaid);
|
||||
|
||||
EstadoTipo = (IsNullOrEmpty(ObtenerParametros().tipoestado)) ? '' : ROT47(ObtenerParametros().tipoestado);
|
||||
|
||||
CargarEmisor();
|
||||
|
|
@ -1024,6 +1027,8 @@ this.LimpiarPalabraClave = function () {
|
|||
//Adjuntos
|
||||
this.AbrirAdjuntos = function () {
|
||||
DescTipoproyecto = 'Ficha Tecnica';
|
||||
var dt = new Date();
|
||||
FechaDocumentos = dt.getDate() + "_" + (dt.getMonth() + 1) + "_" + dt.getFullYear() + "_" + dt.getHours() + "" + dt.getMinutes() + "" + dt.getSeconds();
|
||||
ActualizarUpload();
|
||||
$('#modalDocumentosAuxiliares').modal('show');
|
||||
}
|
||||
|
|
@ -1037,6 +1042,9 @@ this.GuardarAdjuntos = function (nombre) {
|
|||
|
||||
var Arraynombre = [];
|
||||
Arraynombre = nombredoc.split(".");
|
||||
var nom = Arraynombre[0];
|
||||
var ext = Arraynombre[Arraynombre.length - 1];
|
||||
ruta = nom + FechaDocumentos + '.' + ext;
|
||||
|
||||
|
||||
var AdjuntosDocumentosAuxiliar
|
||||
|
|
@ -1047,7 +1055,8 @@ this.GuardarAdjuntos = function (nombre) {
|
|||
DescTipoDocumento: DescTipoproyecto,
|
||||
RutaFisica: RepositorioLocal + ruta,
|
||||
RutaDescarga: RepositorioVirtual + ruta,
|
||||
TipoArchivo: Arraynombre.pop()
|
||||
TipoArchivo: Arraynombre.pop(),
|
||||
TipoExpediente: null
|
||||
}
|
||||
|
||||
model.Adjuntos = AdjuntosDocumentosAuxiliar;
|
||||
|
|
@ -1060,11 +1069,16 @@ function ActualizarUpload() {
|
|||
|
||||
$('#fileupload').fileupload({
|
||||
|
||||
url: FileUploadHandler + '/FileUploadHandler.ashx?tipo=' + DescTipoproyecto,
|
||||
url: FileUploadHandler + '/FileUploadHandler.ashx?tipo=' + FechaDocumentos,
|
||||
type: 'POST',
|
||||
|
||||
add: function (e, data) {
|
||||
|
||||
if ($('#txtDescripcionDocAux').val() == '') {
|
||||
toastr.warning("El nombre del documento es requerido", Message_Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
data.submit();
|
||||
},
|
||||
progress: function (e, data) {
|
||||
|
|
|
|||
|
|
@ -293,10 +293,16 @@
|
|||
|
||||
<div class="col-md-12">
|
||||
@*---------------------Descripción ---------------------------------------------------------*@
|
||||
<div class="form-group">
|
||||
@*<div class="form-group">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblDescDocAux">Descripción</label>
|
||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||
<input type="text" id="txtDescripcionDocAux" name="txtDescripcionDocAux" class="form-control imput-xs" required="required" />
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<input id="txtDescripcionDocAux" name="txtDescripcionDocAux" rows="5" cols="39" style="resize: none" />
|
||||
</div>
|
||||
</div>*@
|
||||
<div class="form-group " id="divNombreDocAux" >
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblDescDocAux">Nombre</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<textarea name="txtDescripcionDocAux" rows="5" cols="39" id="txtDescripcionDocAux" style="resize: none"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
@*---------------------Comentario ---------------------------------------------------------*@
|
||||
|
|
|
|||
|
|
@ -35,17 +35,17 @@
|
|||
<add key="HttpRepository" value="http://AYA-VSRV-APPTT:2525/DocumentosSINORT/" />
|
||||
<add key="FileUploadHandler" value="http://AYA-VSRV-APPTT:2525/FileUploadHandler" />
|
||||
<add key="RutaLogoSINORT" value="http://AYA-VSRV-APPTT:2525/dist/img/" />
|
||||
<add key="RutaImagenes" value="http://AYA-VSRV-APPTT:2525/bower_components/Ionicons/png/512/" />-->
|
||||
<add key="RutaImagenes" value="http://AYA-VSRV-APPTT:2525/bower_components/Ionicons/png/512/" />-->
|
||||
|
||||
<add key="MaxSizeFileLoadKB" value="5120" />
|
||||
<add key="MaxCountFileLoad" value="3" />
|
||||
<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc" />
|
||||
<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc" />
|
||||
<add key="SinortCatalogosWCF" value="http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc" />
|
||||
<add key="FileRepository" value="C:\DocumentosSinort\" />
|
||||
<add key="HttpRepository" value="http://localhost/AYA.SlnSinort/DocumentosSINORT/" />
|
||||
<add key="FileUploadHandler" value="http://localhost/AYA.SlnSinort/FileUploadHandler" />
|
||||
<add key="RutaLogoSINORT" value="http://localhost/AYA.SlnSinort/dist/img/" />
|
||||
<add key="RutaImagenes" value="http://localhost/AYA.SlnSinort/bower_components/Ionicons/png/512/" />
|
||||
<add key="RutaImagenes" value="http://localhost/AYA.SlnSinort/bower_components/Ionicons/png/512/" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<sessionState timeout="20">
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdDocumentoAdjunto { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
[Column(TypeName = "ntext")]
|
||||
public string Nombre { get; set; }
|
||||
|
||||
[Column(TypeName = "ntext")]
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[StringLength(500)]
|
||||
public string DescripcionDocumento { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
[Column(TypeName = "ntext")]
|
||||
public string Identificacion { get; set; }
|
||||
|
||||
public int? IdEstado { get; set; }
|
||||
|
|
@ -80,7 +80,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
public DateTime? FechaPublicacionDocumentoTecnico { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
[Column(TypeName = "ntext")]
|
||||
public string NumeroPublicacionVersion { get; set; }
|
||||
|
||||
public bool? Estado { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue