From cc2573fa5301d1844380f1e90d332939b90ed94f Mon Sep 17 00:00:00 2001 From: mumana Date: Tue, 12 Jun 2018 21:59:14 +0000 Subject: [PATCH] git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C40 --- .../AYA.SlnSynor.WCF/AYA.SlnSinort.WCF.csproj | 4 +- .../AYA.SlnSynor/AYA.SlnSinort.csproj | 1 - .../AYA.SlnSynor/Scripts/_references.js | Bin 587400 -> 587264 bytes .../Sinort-Scripts/AdministrarCatalogos.js | 171 ------------------ 4 files changed, 1 insertion(+), 175 deletions(-) delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/AdministrarCatalogos.js diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/AYA.SlnSinort.WCF.csproj b/AYA.SlnSynor/AYA.SlnSynor.WCF/AYA.SlnSinort.WCF.csproj index d674598ad..b3dd8f80a 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/AYA.SlnSinort.WCF.csproj +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/AYA.SlnSinort.WCF.csproj @@ -82,9 +82,7 @@ SinortCatalogos.svc - - - + diff --git a/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj b/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj index 2ac88c93d..2d244d2a1 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj +++ b/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj @@ -7669,7 +7669,6 @@ - diff --git a/AYA.SlnSynor/AYA.SlnSynor/Scripts/_references.js b/AYA.SlnSynor/AYA.SlnSynor/Scripts/_references.js index 12740f338537d060b2f1d6f9edb197010ceda966..980f8be689152a7bd484490871b3a9c724af4002 100644 GIT binary patch delta 31 ncmeBptK9HLxuJ!zg{g(Pg{6hHg{_5s3rEJ=?H}H9%-{e3$mNZy|DmSYA70BBPd$p8QV diff --git a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/AdministrarCatalogos.js b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/AdministrarCatalogos.js deleted file mode 100644 index e5f2df7eb..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/AdministrarCatalogos.js +++ /dev/null @@ -1,171 +0,0 @@ -var filtro = {}; -$(document).ready(function () { - - IniciarForm(); - - -}); - -function IniciarForm() { - IniciarGridEmisoresPN(null); - - btnNuevo = $("#btnNuevo").click(NuevoEmisorPN); - //btnEliminar = $("#btnEliminar").click(EliminarEmisorPN); - btnBuscar = $("#btnBuscar").click(function () { - filtro = - { - titulo: $("#buscar_titulo").val() - }; - - ObtenerEmisoresPN(filtro); - }); - - ObtenerEmisoresPN(filtro); -} - -function NuevoEmisorPN(e) { - e.preventDefault; - $('#dlg').dialog('open').dialog('center').dialog('setTitle', 'Nuevo Emisor PN'); - $('#fm').form('clear'); - url = "/Catalogos/InsertarEmisorPN"; -} - -function EliminarEmisorPN(e) { - e.preventDefault; - var row = gridEmisorPN.datagrid('getSelected'); - if (row) { - $.messager.confirm({ - title: 'Confirmar', - msg: '
Desea eliminar este emisor ?
', - width: "50%", - fn: function (r) { - if (r) { - var uri = '/Catalogos/EliminarEmisorPN'; - var DTO = JSON.stringify(row); - $.ajax({ - type: 'POST', - url: uri, - cache: false, - data: DTO, - contentType: 'application/json; charset=utf-8', - dataType: 'json', - success: function (response, data) { - if (response.CodigoRespuesta !== "1") { - Mensajes(response); - } - else { - Mensajes(response); - ObtenerEmisoresPN(filtro); - gridEmisorPN.datagrid('reload'); - } - } - }).fail(function (jqxhr, textStatus, error) { - }).then(function (value) { - }); - } - } - }); - } -} - -function EditarEmisorPN(e) { - var row = gridEmisorPN.datagrid('getSelected'); - $('#fmEdit').form('clear'); - if (row) { - $('#dlgEdit').dialog('open').dialog('center').dialog('setTitle', 'Editar Emisor PN'); - $('#fmEdit').form('load', row); - url = "/Catalogos/EditarEmisorPN"; - } -} - -function AplicarCambios(nuevo) { - if (nuevo) { - - emisorPN = { - titulo: $("#titulo").val() - }; - - var DTO = JSON.stringify(emisorPN); - $.ajax({ - type: 'POST', - url: url, - cache: false, - data: DTO, - contentType: 'application/json; charset=utf-8', - dataType: 'json', - success: function (response, data) { - if (response.CodigoRespuesta !== "1") { - Mensajes(response); - } else { - Mensajes(response); - $('#dlg').dialog('close'); - gridEmisorPN.datagrid('options').pageNumber = 0; - gridEmisorPN.datagrid('loadData', []); - gridEmisorPN.datagrid('reload'); - } - } - }).fail(function (jqxhr, textStatus, error) { - }).then(function (value) { - }); - } -} - -function IniciarGridEmisoresPN(data) { - gridEmisorPN = $('#grid_emisoresPN').datagrid({ - data: data, - columns: [[ - //{ field: 'id_emisor', title: 'ID EMISOR', auto: true }, - { field: 'titulo', title: 'TITULO', align: 'center'}, - //{ - // field: 'action', title: 'ACCIONES', align: 'center', haling: 'center', - // formatter: function (value, row, index) { - // var editar = 'Editar'; - // return editar; - // } - //} - - ]], - pagination: true, - singleSelect: true, - //fitColumns: true, - rowNumbers: true, - toolbar: "#toolbar" - - , onLoadSuccess: function () { - $(this).datagrid('getPanel') - .find('a.easyui-linkbutton').linkbutton(); - } - , loadFilter: pagerFilter - }); -} - -function ObtenerEmisoresPN(filtro) { - var uri = CatalogosWCF + '/api/ObtenerEmisoresPN'; - var DTO = JSON.stringify(filtro); - $.ajax({ - type: 'POST', - url: uri, - cache: false, - data: DTO, - contentType: 'application/json; charset=utf-8', - dataType: 'json', - beforeSend: function(){ - STARTREQUEST(); - }, - success: function (response, data) { - if (response.d.CodigoRespuesta !== "1") { - Mensajes(response.d); - gridEmisorPN.datagrid('options').pageNumber = 0; - gridEmisorPN.datagrid('loadData', []); - } - else { - IniciarGridEmisoresPN(response.d.ListaEmisores); - } - - ENDREQUEST(); - } - }).fail(function (jqxhr, textStatus, error) { - ENDREQUEST(); - }).then(function (value) { - }); -} \ No newline at end of file