TFS_ANTIGUO/SInCathay/ULA.Cathay.Credito/Ultimus.Framework/Aprobaciones/Ultimus.API.AprobacionFuncionesComunes.js

41 lines
1.1 KiB
JavaScript
Raw Normal View History

this.ImprimirCaratulaCredito = function () {
GenerarDocumento(1);
}
this.ObtenerprobacionesComite = function () {
var uri = "api/AnalizarCasoAPI/ConsultarAprobaciones/"
var Item = {
IdSolicitud: IdSolicitud,
};
var DTO = JSON.stringify(Item);
$.ajax({
type: 'POST',
url: server + uri,
cache: false,
data: DTO,
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (data) {
if (data != null) {
$.each(data, function (id, item) {
item.Fecha = moment(item.Fecha).format("DD-MM-YYYY hh:mm:ss A");
});
$("#GvAprobacionesCaratula").Grid("RenderGrid", data, null);
}
}
}).fail(function (jqxhr, textStatus, error) {
if (typeof AjaxFailEvent !== 'undefined' && $.isFunction(AjaxFailEvent) && !AjaxFailEvent(jqxhr, textStatus, error))
return;
toastr.error("Ha ocurrido un error inesperado.");
ENDREQUEST();
}).then(function (value) {
ENDREQUEST();
});
}