git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C273
This commit is contained in:
parent
619f6c98f4
commit
18324db447
2 changed files with 24 additions and 8 deletions
|
|
@ -276,21 +276,21 @@ this.GuardarSolicitud = function () {
|
||||||
|
|
||||||
|
|
||||||
////////
|
////////
|
||||||
this.GuardarTareasPendientes = function () {
|
this.GuardarTareasPendientes = function (data) {
|
||||||
|
|
||||||
|
|
||||||
|
if (data.CodigoRespuesta == 'EXITOSO'){
|
||||||
var ArrayUsuarios = [];
|
var ArrayUsuarios = [];
|
||||||
|
|
||||||
|
|
||||||
TareaPendiente
|
TareaPendiente
|
||||||
= {
|
= {
|
||||||
Descripcion: 'Registro de solicitud (SINORT): solicitud de ' + DescTipoSolicitud +' realizada por: ' +UsuarioSistema,
|
Descripcion: 'Registro de solicitud (SINORT): solicitud de ' + DescTipoSolicitud +' # '+ data.Solicitud.IdSolicitud +' realizada por: ' +UsuarioSistema,
|
||||||
ContenidoRelacionado: 'Solicitud de ' + DescTipoSolicitud +' # '+ ' realizada por ' +UsuarioSistema,
|
ContenidoRelacionado: 'Solicitud de ' + DescTipoSolicitud +' # '+ data.Solicitud.IdSolicitud + ' realizada por ' +UsuarioSistema,
|
||||||
Respuesta: false,
|
Respuesta: false,
|
||||||
//FechaVencimiento: Date(),
|
FechaVencimiento: '2018-7-17',
|
||||||
TipoTareaPendiente: 'Solicitud',
|
TipoTareaPendiente: 'Solicitud',
|
||||||
UsuarioAsignado: $("#txtNombreSuperior").val(),
|
UsuarioAsignado: $("#txtNombreSuperior").val(),
|
||||||
IdProyectoNormativo: IdSolicitud,
|
IdProyectoNormativo: data.Solicitud.IdSolicitud,
|
||||||
PromotorProyectoNormativo: UsuarioSistema
|
PromotorProyectoNormativo: UsuarioSistema
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -307,6 +307,7 @@ this.GuardarTareasPendientes = function () {
|
||||||
//EnviarCorreo();
|
//EnviarCorreo();
|
||||||
LimpiarSolicitud();
|
LimpiarSolicitud();
|
||||||
location.reload();
|
location.reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.EnviarCorreo = function () {
|
this.EnviarCorreo = function () {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ this.getDataModel = function () {
|
||||||
CargarTareasPendientes();
|
CargarTareasPendientes();
|
||||||
$("#btnGuardarRespuesta").unbind("click");
|
$("#btnGuardarRespuesta").unbind("click");
|
||||||
$("#btnGuardarRespuesta").click(function () {
|
$("#btnGuardarRespuesta").click(function () {
|
||||||
GuardarRespuesta();
|
GuardarRespuestaConvocatoria();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -99,6 +99,21 @@ $('#tableTareasPendientes').on('click', 'button', function () {
|
||||||
|
|
||||||
$('#txtInstrucciones').html(instrucciones);
|
$('#txtInstrucciones').html(instrucciones);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (InfoITipoTareaPendiente == "Solicitud") {
|
||||||
|
|
||||||
|
var solicitud = $("#ucProyecto").html();
|
||||||
|
solicitud = replaceAll('[$Propuesta]', InfoNombreProyectoNormativo, solicitud);
|
||||||
|
$('#propuesta').empty();
|
||||||
|
$('#propuesta').append(solicitud);
|
||||||
|
|
||||||
|
$('#modalSolicitud').modal('show');
|
||||||
|
|
||||||
|
var instrucciones = "Crear una solicitud de consulta iniciado por " + InfoPromotor + " en " + InfoIFechaVencimiento + ". \nComentario: Emita una respuesta para la solicitud de consulta."
|
||||||
|
|
||||||
|
$('#txtInstrucciones').html(instrucciones);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
@ -111,7 +126,7 @@ $("#drpParticipo").change(function () {
|
||||||
InfoNombrePlantilla = (EstadoParticipacion == 0) ? 'Correo Analista No Confirmada' : 'Correo Analista Confirmada';
|
InfoNombrePlantilla = (EstadoParticipacion == 0) ? 'Correo Analista No Confirmada' : 'Correo Analista Confirmada';
|
||||||
});
|
});
|
||||||
|
|
||||||
this.GuardarRespuesta = function () {
|
this.GuardarRespuestaConvocatoria = function () {
|
||||||
var justificacion = $('#txtJustificacion').val();
|
var justificacion = $('#txtJustificacion').val();
|
||||||
if (EstadoParticipacion == -1) {
|
if (EstadoParticipacion == -1) {
|
||||||
toastr.warning("Debe seleccionar una opción de participación.");
|
toastr.warning("Debe seleccionar una opción de participación.");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue