1 2 $(".optionSeleccionarDepto").click(function(){ 3 $(".listarMuni").html(""); 4 5var idDepto = $(this).attr("idDepto"); 6//console.log("idDepto", idDepto); 7 8var datos = new FormData(); 9datos.append("idDepto", idDepto); 10 11$.ajax({ 12url:"ajax/municipioSol.ajax.php", 13method:"POST", 14data: datos, 15cache: false, 16contentType: false, 17processData: false, 18dataType:"json", 19success: function(respuesta){ 20 21 22 $(".listarMuni").append( 23 '<option value="" disabled selected>Seleccionar Municipio</option>' 24 25 ) 26 27 for (var i = 0; i < respuesta.length; i++) { 28 29 console.log(respuesta[i]["nombre"]) 30 console.log(respuesta[i]["id"]) 31 32 $(".listarMuni").append( 33 '<option class="optionSeleccionarMuni" value="'+respuesta[i]["id"]+'">'+respuesta[i]["nombre"]+'</option>' 34 35 ) 36 37 38 39 40 } 41 42 43 44 45 console.log("respuesta", respuesta); 46} 47 48 49}); 50 51 52}) 53 54 55 56 $(".optionSeleccionarDeptoEditar").click(function(){ 57 $(".listarMuniEditar").html(""); 58 59var idDepto = $(this).attr("idDepto"); 60//console.log("idDepto", idDepto); 61 62var datos = new FormData(); 63datos.append("idDepto", idDepto); 64 65$.ajax({ 66url:"ajax/municipioSol.ajax.php", 67method:"POST", 68data: datos, 69cache: false, 70contentType: false, 71processData: false, 72dataType:"json", 73success: function(respuesta){ 74 75 76 $(".listarMuniEditar").append( 77 '<option value="" disabled selected>Seleccionar Municipio</option>' 78 79 ) 80 81 for (var i = 0; i < respuesta.length; i++) { 82 83 console.log(respuesta[i]["nombre"]) 84 console.log(respuesta[i]["id"]) 85 86 $(".listarMuniEditar").append( 87 '<option class="optionSeleccionarMuniEditar" value="'+respuesta[i]["id"]+'">'+respuesta[i]["nombre"]+'</option>' 88 89 ) 90 91 92 93 94 } 95 96 97 98 99 console.log("respuesta", respuesta); 100} 101 102 103}); 104 105 106}) 107 108 109 $(".LicenciaVehiculos").click(function(){ 110 111 112var idTipoBusquedaLicenciaVehiculos = $(this).val(); 113 114if (idTipoBusquedaLicenciaVehiculos == 0) { 115$("#NuevoTipoLicenciaVehi").prop("disabled", true); 116 117} 118if (idTipoBusquedaLicenciaVehiculos == 1) { 119$("#NuevoTipoLicenciaVehi").prop("disabled", false); 120 121} 122 123 124 125 126 127}); 128 129 130 $(".LicenciaVehiculosEditar").click(function(){ 131 132 133var idTipoBusquedaLicenciaVehiculos = $(this).val(); 134 135if (idTipoBusquedaLicenciaVehiculos == 0) { 136$("#NuevoTipoLicenciaVehiEditar").prop("disabled", true); 137 138} 139if (idTipoBusquedaLicenciaVehiculos == 1) { 140$("#NuevoTipoLicenciaVehiEditar").prop("disabled", false); 141 142} 143 144 145 146 147 148}); 149 150 151 152 153 $(".LicenciaMotocicletas").click(function(){ 154 155 156var idTipoBusquedaLicenciaMoto = $(this).val(); 157 158if (idTipoBusquedaLicenciaMoto == 0) { 159$("#NuevoTipoLicenciaMoto").prop("disabled", true); 160 161} 162if (idTipoBusquedaLicenciaMoto == 1) { 163$("#NuevoTipoLicenciaMoto").prop("disabled", false); 164 165} 166 167 168 169 170 171}); 172 173 174 175 $(".LicenciaMotocicletasEditar").click(function(){ 176 177 178var idTipoBusquedaLicenciaMoto = $(this).val(); 179 180if (idTipoBusquedaLicenciaMoto == 0) { 181$("#NuevoTipoLicenciaMotoEditar").prop("disabled", true); 182 183} 184if (idTipoBusquedaLicenciaMoto == 1) { 185$("#NuevoTipoLicenciaMotoEditar").prop("disabled", false); 186 187} 188 189 190 191 192 193}); 194 195 196 197 $(".btnEditarBancoDatos").click(function(){ 198 199 var idBancoDatos = $(this).attr("idBancoDatos"); 200 var idAccionPlantilla = $(this).attr("idAccionPlantilla"); 201 var idTipoPersonal = $(this).attr("idTipoPersonal"); 202 var idSerie = $(this).attr("idSerie"); 203 window.location = "index.php?ruta=editarBancoDatos&idBancoDatos="+idBancoDatos+"&idAccionPlantilla="+idAccionPlantilla+"&idTipoPersonal="+idTipoPersonal+"&idSerie="+idSerie; 204 205 206}) 207 208 209 210 211 $(".btnVerBancoDatos").click(function(){ 212 213 var idBancoDatos = $(this).attr("idBancoDatos"); 214 var idAccionPlantilla = $(this).attr("idAccionPlantilla"); 215 var idTipoPersonal = $(this).attr("idTipoPersonal"); 216 var idSerie = $(this).attr("idSerie"); 217 window.location = "index.php?ruta=verBancoDatos&idBancoDatos="+idBancoDatos+"&idAccionPlantilla="+idAccionPlantilla+"&idTipoPersonal="+idTipoPersonal+"&idSerie="+idSerie; 218 219 220}) 221 222 223$(".btnEliminarBanco").click(function(){ 224 225 226 var idBancoDatos = $(this).attr("idBancoDatos"); 227 var idAccionPlantilla = $(this).attr("idAccionPlantilla"); 228 var idTipoPersonal = $(this).attr("idTipoPersonal"); 229 var idSerie = $(this).attr("idSerie"); 230 var estadoBancoDatos = $(this).attr("estadoBancoDatos"); 231//console.log("idModulo", sstadoModulo); 232 233var datos = new FormData(); 234datos.append("idBancoDatos", idBancoDatos); 235datos.append("estadoBancoDatos", estadoBancoDatos); 236 237 238$.ajax({ 239url:"ajax/bancoDatos.ajax.php", 240method:"POST", 241data: datos, 242cache: false, 243contentType: false, 244processData: false, 245dataType:"json", 246success: function(respuesta){ 247 248 249 250 251 252 253} 254 255 256 257}); 258 $(function() { 259 const Toast = Swal.mixin({ 260 toast: true, 261 position: 'top-end',
262 showConfirmButton: false, 263 timer: 3000 264 }); 265 266 Swal.fire({ 267 icon: 'error', 268 title: 'Eliminado', 269 confirmButtonText:'Aceptar', 270 showConfirmButton: true, 271 closeOnConfirm: false 272 }).then((result)=>{ 273 if(result.value){ 274 275 window.location = "index.php?ruta=bancoDatos&idAccionPlantilla="+idAccionPlantilla+"&idTipoPersonal="+idTipoPersonal+"&idSerie="+idSerie; 276 } 277 278 279 }); 280 281 }); 282 283}) 284 285 286 287$("#NuevoDPI").change(function(){ 288 289 290 var dpiBancoDatos = $(this).val(); 291 //console.log("linea", dpiBancoDatos); 292 293 294 var datos = new FormData(); 295 datos.append("dpiBancoDatos",dpiBancoDatos); 296 297 298 if ($(this).val().length ==13 ) { 299 300 301 302 303 304 }else { 305 306 307 $(function() { 308 const Toast = Swal.mixin({ 309 toast: true, 310 position: 'top-end',
311 showConfirmButton: false, 312 timer: 3000 313 }); 314 315 Swal.fire({ 316 icon: 'error', 317 title: 'Error al ingreso del DPI', 318 confirmButtonText:'Aceptar', 319 showConfirmButton: true, 320 closeOnConfirm: false 321 }).then((result)=>{ 322 if(result.value){ 323 324 325 $("#NuevoDPI").val(""); 326 } 327 328 329 }); 330 331 }); 332 333 334 } 335 336 337 $.ajax({ 338 339 url:"ajax/bancoDatos.ajax.php", 340 method:"POST", 341 data: datos, 342 cache: false, 343 contentType: false, 344 processData: false, 345 dataType:"json", 346 success: function(respuesta){ 347 348 349//console.log(respuesta); 350 351 352 if (respuesta) { 353 354 $(function() { 355 const Toast = Swal.mixin({ 356 toast: true, 357 position: 'top-end', 358 showConfirmButton: fal
358se, 359 timer: 3000 360 }); 361 362 Swal.fire({ 363 icon: 'error', 364 title: 'Dpi existente', 365 confirmButtonText:'Aceptar', 366 showConfirmButton: true, 367 closeOnConfirm: false 368 }).then((result)=>{ 369 if(result.value){ 370 371 372 $("#NuevoDPI").val(""); 373 } 374 375 376 }); 377 378 }); 379 380 381 382 383 } 384 385 386 387 388 389 390} 391 392 }) 393 394 395 396}) 397 398 399 400$("#NuevoTelefonoBancoDatos").change(function(){ 401 402 403 if ($(this).val().length ==8 ) { 404 405 406 407 408 409 }else { 410 411 412 $(function() { 413 const Toast = Swal.mixin({ 414 toast: true, 415 position: 'top-end', 416 showConfirmButton: false, 417 timer: 3000 418 }); 419 420 Swal.fire({ 421 icon: 'error', 422 title: 'Error al ingreso de Numero Telefonico', 423 confirmButtonText:'Aceptar', 424 showConfirmButton: true, 425 closeOnConfirm: false 426 }).then((result)=>{ 427 if(result.value){ 428 429 430 $("#NuevoTelefonoBancoDatos").val(""); 431 } 432 433 434 }); 435 436 }); 437 438 439 } 440 441 442}) 443 444 445 446 447$("#TelefonoEditar").change(function(){ 448 449 450 if ($(this).val().length ==8 ) { 451 452 453 454 455 456 }else { 457 458 459 $(function() { 460 const Toast = Swal.mixin({ 461 toast: true, 462 position: 'top-end',
463 showConfirmButton: false, 464 timer: 3000 465 }); 466 467 Swal.fire({ 468 icon: 'error', 469 title: 'Error al ingreso de Numero Telefonico', 470 confirmButtonText:'Aceptar', 471 showConfirmButton: true, 472 closeOnConfirm: false 473 }).then((result)=>{ 474 if(result.value){ 475 476 477 $("#TelefonoEditar").val(); 478 } 479 480 481 }); 482 483 }); 484 485 486 } 487 488 489})
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.