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 () {
|
this.GuardarRespuestaSolicitudCompra = function () {
|
||||||
|
|
||||||
if ($("select#drpTipo").val() == "1") {
|
if (EstadoTipoUsuario == "1") {
|
||||||
|
|
||||||
justificacion = $('#txtJustificacionCompra').val();
|
justificacion = $('#txtJustificacionCompra').val();
|
||||||
|
|
||||||
|
|
@ -371,13 +371,15 @@ this.GuardarRespuestaSolicitudCompra = function () {
|
||||||
AjaxPostData(uri, model, false, false, null, null, null);
|
AjaxPostData(uri, model, false, false, null, null, null);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($('#txtUsuarios') == '') {
|
if ($('#txtUsuarios').val() == '') {
|
||||||
toastr.warning("Debe seleccionar un usuario.");
|
toastr.warning("Debe seleccionar un usuario.");
|
||||||
return false;
|
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; }
|
{ return; }
|
||||||
EnviarCorreoSuperUsuario();
|
var uri = SinortWCF + '/api/InsertarActualizarTareasPendientes';
|
||||||
|
LeerFormulario();
|
||||||
|
AjaxPostData(uri, model, false, false, EnviarCorreoSolicitud, null, null);
|
||||||
}
|
}
|
||||||
ENDREQUEST();
|
ENDREQUEST();
|
||||||
location.reload();
|
location.reload();
|
||||||
|
|
@ -503,7 +505,7 @@ this.EnviarCorreoProyectoNormativo = function () {
|
||||||
this.EnviarCorreoSolicitud = function () {
|
this.EnviarCorreoSolicitud = function () {
|
||||||
|
|
||||||
if (Solicitud.DescripcionTipoSolicitud == "Compra") {
|
if (Solicitud.DescripcionTipoSolicitud == "Compra") {
|
||||||
if ($("select#drpTipo").val() == "1") {
|
if (EstadoTipoUsuario == "1") {
|
||||||
if (EstadoConfirmacion) {
|
if (EstadoConfirmacion) {
|
||||||
var Plantilla
|
var Plantilla
|
||||||
= {
|
= {
|
||||||
|
|
@ -602,6 +604,22 @@ this.LeerFormulario = function () {
|
||||||
|
|
||||||
var ArrayTareasPendientes = [];
|
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
|
var TareaPendiente
|
||||||
= {
|
= {
|
||||||
|
|
@ -616,6 +634,7 @@ this.LeerFormulario = function () {
|
||||||
NombreProyectoNormativo: InfoNombreProyectoNormativo,
|
NombreProyectoNormativo: InfoNombreProyectoNormativo,
|
||||||
PromotorProyectoNormativo: InfoPromotor
|
PromotorProyectoNormativo: InfoPromotor
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ArrayTareasPendientes.push(TareaPendiente);
|
ArrayTareasPendientes.push(TareaPendiente);
|
||||||
|
|
||||||
model = {
|
model = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue