41 lines
No EOL
1.1 KiB
JavaScript
41 lines
No EOL
1.1 KiB
JavaScript
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();
|
|
});
|
|
} |