git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C360
This commit is contained in:
parent
69818214e4
commit
d58440b74e
1 changed files with 25 additions and 6 deletions
|
|
@ -345,7 +345,7 @@ this.GuardarRespuestaSolicitud = function () {
|
|||
|
||||
this.GuardarRespuestaSolicitudCompra = function () {
|
||||
|
||||
if ($("select#drpTipo").val() == "1") {
|
||||
if (EstadoTipoUsuario == "1") {
|
||||
|
||||
justificacion = $('#txtJustificacionCompra').val();
|
||||
|
||||
|
|
@ -371,13 +371,15 @@ this.GuardarRespuestaSolicitudCompra = function () {
|
|||
AjaxPostData(uri, model, false, false, null, null, null);
|
||||
}
|
||||
else {
|
||||
if ($('#txtUsuarios') == '') {
|
||||
if ($('#txtUsuarios').val() == '') {
|
||||
toastr.warning("Debe seleccionar un usuario.");
|
||||
return false;
|
||||
}
|
||||
if (!confirm("¿Está seguro que desea enviar la autorización de la solicitud de compra? .\n ¿Desea continuar?"))
|
||||
if (!confirm("¿Está seguro que desea enviar la autorización de la solicitud de compra a "+$('#txtUsuarios').val()+"?"))
|
||||
{ return; }
|
||||
EnviarCorreoSuperUsuario();
|
||||
var uri = SinortWCF + '/api/InsertarActualizarTareasPendientes';
|
||||
LeerFormulario();
|
||||
AjaxPostData(uri, model, false, false, EnviarCorreoSolicitud, null, null);
|
||||
}
|
||||
ENDREQUEST();
|
||||
location.reload();
|
||||
|
|
@ -503,7 +505,7 @@ this.EnviarCorreoProyectoNormativo = function () {
|
|||
this.EnviarCorreoSolicitud = function () {
|
||||
|
||||
if (Solicitud.DescripcionTipoSolicitud == "Compra") {
|
||||
if ($("select#drpTipo").val() == "1") {
|
||||
if (EstadoTipoUsuario == "1") {
|
||||
if (EstadoConfirmacion) {
|
||||
var Plantilla
|
||||
= {
|
||||
|
|
@ -602,7 +604,23 @@ this.LeerFormulario = function () {
|
|||
|
||||
var ArrayTareasPendientes = [];
|
||||
|
||||
|
||||
if (EstadoTipoUsuario == "0") {
|
||||
var TareaPendiente
|
||||
= {
|
||||
IdTareasPendientes: InfoIdTareasPendientes,
|
||||
Descripcion: InfoIDescripcion,
|
||||
ContenidoRelacionado: InfoIContenidoRelacionado,
|
||||
Respuesta: 0,
|
||||
FechaVencimiento: InfoIFechaVencimiento,
|
||||
TipoTareaPendiente: InfoITipoTareaPendiente,
|
||||
UsuarioAsignado: $('#txtUsuarios').val(),
|
||||
IdProyectoNormativo: InfoIdProyectoNormativo,
|
||||
NombreProyectoNormativo: InfoNombreProyectoNormativo,
|
||||
PromotorProyectoNormativo: InfoPromotor
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
var TareaPendiente
|
||||
= {
|
||||
IdTareasPendientes: InfoIdTareasPendientes,
|
||||
|
|
@ -616,6 +634,7 @@ this.LeerFormulario = function () {
|
|||
NombreProyectoNormativo: InfoNombreProyectoNormativo,
|
||||
PromotorProyectoNormativo: InfoPromotor
|
||||
}
|
||||
}
|
||||
ArrayTareasPendientes.push(TareaPendiente);
|
||||
|
||||
model = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue