git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C23
This commit is contained in:
parent
9cd208deac
commit
07382ac485
1 changed files with 6 additions and 5 deletions
|
|
@ -228,7 +228,7 @@ this.ActualizarItem = function () {
|
|||
Descripcion: $('#txtDescripcion').val(),
|
||||
}
|
||||
|
||||
var uri = CatalogosWCF + '/api/ModificarEmisoresPN';
|
||||
var uri = server + '/api/ModificarEmisoresPN';
|
||||
var DTO = JSON.stringify(Item);
|
||||
|
||||
$.ajax({
|
||||
|
|
@ -287,12 +287,13 @@ this.InsertarItem = function () {
|
|||
STARTREQUEST();
|
||||
TableItems = $('#TableItems').DataTable();
|
||||
|
||||
EmisorPN = {
|
||||
Emisor = {
|
||||
Descripcion: $("#txtDescripcion").val(),
|
||||
IdTipoEmisor:1
|
||||
}
|
||||
|
||||
var uri = CatalogosWCF + '/api/InsertarActualizarCliente';
|
||||
var DTO = JSON.stringify(EmisorPN);
|
||||
var uri = server + 'api/EmisorAPI/InsertarActualizarEmisor';
|
||||
var DTO = JSON.stringify(Emisor);
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
|
|
@ -303,7 +304,7 @@ this.InsertarItem = function () {
|
|||
dataType: 'json',
|
||||
success: function (data) {
|
||||
|
||||
if (data == "EXITOSO") {
|
||||
if (data.CodigoRespuesta == "EXITOSO") {
|
||||
toastr.info('Información guardada con exito', 'Completado');
|
||||
limpiar();
|
||||
$('#btnGuardar').hide();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue