1var Index = { 2 Controles: { 3 frmEncuesta: $("#frmEncuesta"), 4 rdSi: $("#rdSi"), 5 rdParcialmente: $("#rdParcialmente"), 6 rdNo: $("#rdNo"), 7 btnEnviarRespuestaELQB: $("#btnEnviarRespuestaELQB"), 8 spTotalSi: $("#spTotalSi"), 9 spTotalParcialmente: $("#spTotalParcialmente"), 10 spTotalNo: $("#spTotalNo"), 11 lblMensaje: $("#lblMensaje"), 12 btnMetasYObjetivos: $("#btnMetasYObjetivos"), 13 btnEstructuraOrganica: $("#btnEstructuraOrganica"), 14 btnFuncionesDeAreas: $("#btnFuncionesDeAreas"), 15 btnAuditorias: $("#btnAuditorias"), 16 btnDescargarPlataformaNacTrans: $("#btnDescargarPlataformaNacTrans"), 17 btnSujetosObligados: $("#btnSujetosObligados"), 18 btnExpClasificados: $("#btnExpClasificados"), 19 btnContrataciones: $("#btnContrataciones"), 20 21 }, 22 Variables: { 23 }, 24 Constantes: { 25 }, 26 InicializarControles: function () { 27 }, 28 InicializarEventos: function () { 29 Index.Controles.btnEnviarRespuestaELQB.on('click', Index.Env
29iarRespuestaELQB); 30 Index.Controles.btnMetasYObjetivos.on('click', Index.AbrirMetasYObjetivos); 31 Index.Controles.btnDescargarPlataformaNacTrans.on('click', Index.DescargarPlataformaNacTrans); 32 Index.Controles.btnSujetosObligados.on('click', Index.AbrirSujetosObligados); 33 Index.Controles.btnExpClasificados.on('click', Index.AbrirExpClasificados); 34 35 Index.Controles.btnEstructuraOrganica.on('click', Index.AbrirEstructuraOrganica); 36 Index.Controles.btnFuncionesDeAreas.on('click', Index.AbrirFuncionesDeAreas); 37 Index.Controles.btnAuditorias.on('click', Index.AbrirAuditorias); 38 Index.Controles.btnContrataciones.on('click', Index.AbrirContrataciones); 39 }, 40 EnviarRespuestaELQB: function () { 41 42 Index.Controles.lblMensaje.html(""); 43 44 if (!Index.Controles.rdSi.is(":checked") && 45 !Index.Controles.rdParcialmente.is(":checked") && 46 !Index.Controles.rdNo.is(":checked")) { 47 Index.Controles.lblMensaje.html("Seleccione una respuesta."); 48 return; 49 } 50 51 var data = {}; 52 data.IdTipoRespuestaELQB = Index.Controles.rdSi.is(":checked") ? 1 : (Index.Controles.rdParcialmente.is(":checked") ? 2 : 3); 53 FuncionesGenerales.LlamadaAjax(APP_URL + "/Portal/GuardarResPuestaELQB", data, function (data) { 54 FuncionesGenerales.OcultarCargando(); 55 $.confirm({ 56 theme: 'modern', 57 title: 'Encuesta', 58 content: data.mensaje, 59 buttons: { 60 confirm: { 61 text: 'Aceptar', 62 btnClass: 'boton_primario', 63 action: function () { 64 Index.ObtenerTotales(); 65 } 66 } 67 }, 68 onContentReady: function () { } 69 }); 70 }); 71 }, 72 ObtenerTotales: function () { 73 FuncionesGenerales.LlamadaAjax(APP_URL + "/Portal/ObtenerTotalesELQB", {}, function (data) { 74 75 Index.Controles.spTotalSi.html(data[0].TotalSi + " %"); 76 Index.Controles.spTotalParcialmente.html(data[0].TotalParcialmente + " %"); 77 Index.Controles.spTotalNo.html(data[0].TotalNo + " %"); 78 FuncionesGenerales.OcultarCargando(); 79 }); 80 }, 81 AbrirMetasYObjetivos: function () { 82 FuncionesGenerales.FormPost(APP_URL + '/InformacionPublica/Inicio', { textoBusquedaGeneral: 'Metas y Objetivos de las areas', esBusuqedaTematica: 1 }, '_self'); 83 //FuncionesGenerales.FormPost(APP_URL + '/InformacionPublica/Inicio', { textoBusquedaGeneral: 'Resultados de Auditorias', esBusuqedaTematica: 1, anioBuscar: 2025 }, '_self'); 84 }, 85 AbrirEstructuraOrganica: function () { 86 FuncionesGenerales.FormPost(APP_URL + '/InformacionPublica/Inicio', { textoBusquedaGeneral: 'Estructura Organica_Organigrama', esBusuqedaTematica: 1 }, '_self'); 87 }, 88 AbrirFuncionesDeAreas: function () { 89 FuncionesGenerales.FormPost(APP_URL + '/InformacionPublica/Inicio', { textoBusquedaGeneral: 'Funciones de areas', esBusuqedaTematica: 1 }, '_self'); 90 }, 91 AbrirAuditorias: function () { 92 FuncionesGenerales.FormPost(APP_URL + '/InformacionPublica/Inicio', { textoBusquedaGeneral: 'Resultados de Auditorias', esBusuqedaTematica: 1 }, '_self'); 93 }, 94 AbrirContrataciones: function () { 95 FuncionesGenerales.FormPost(APP_URL + '/InformacionPublica/Inicio', { textoBusquedaGeneral: 'Concesiones, licencias, permisos y autorizaciones', esBusuqedaTematica: 1 }, '_self'); 96 }, 97 AbrirSujetosObligados: function() { 98 FuncionesGenerales.FormPost(APP_URL + '/InformacionPublica/Inicio', { textoBusquedaGeneral: '', esBusuqedaTematica: 0, esSujetoObligado : 1 }, '_self'); 99 }, 100 AbrirExpClasificados: function () { 101 FuncionesGenerales.FormPost(APP_URL + '/InformacionPublica/Inicio', { textoBusquedaGeneral: 'Indice de expedientes clasificados como reservados.', esBusuqedaTematica: 1 }, '_self'); 102 }, 103 DescargarPlataformaNacTrans: function () { 104 FuncionesGenerales.FormPost(APP_URL + '/SolicitudesAtendidas/DescargarPlataformaNacionalTransparencia', { }, '_blank');}, 105 SetValores: function () { 106 }, 107 Init: function () { 108 Index.InicializarControles(); 109 Index.InicializarEventos(); 110 Index.ObtenerTotales(); 111 } 112} 113Index.Init();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.