@Override public void aceptarReporte() { // TODO Auto-generated method stub if (rep_reporte.getReporteSelecionado().equals("Perfiles")) { if (rep_reporte.isVisible()) { map_parametros = new HashMap(); rep_reporte.cerrar(); map_parametros.put("titulo", "PERFILES DE USUARIO"); sel_rep.setSeleccionFormatoReporte(map_parametros, rep_reporte.getPath()); sel_rep.dibujar(); utilitario.addUpdate("sel_rep,rep_reporte"); } } else if (rep_reporte.getReporteSelecionado().equals("Usuarios Por Perfil")) { if (rep_reporte.isVisible()) { map_parametros = new HashMap(); rep_reporte.cerrar(); set_perfiles.dibujar(); // utilitario.addUpdate("rep_reporte,set_perfiles"); } else if (set_perfiles.isVisible()) { if (set_perfiles.getListaSeleccionados().size() > 0) { map_parametros.put("ide_perf", set_perfiles.getSeleccionados()); set_perfiles.cerrar(); map_parametros.put("titulo", "USUARIOS POR PERFIL"); sel_rep.setSeleccionFormatoReporte(map_parametros, rep_reporte.getPath()); sel_rep.dibujar(); // utilitario.addUpdate("sel_rep,set_perfiles"); } else { utilitario.agregarMensajeInfo( "Atencion", "Debe seleccionar al menos un perfil de usuario"); } } } else if (rep_reporte.getReporteSelecionado().equals("Recursos por Perfil")) { if (rep_reporte.isVisible()) { map_parametros = new HashMap(); rep_reporte.cerrar(); set_perfiles.dibujar(); // utilitario.addUpdate("rep_reporte,set_perfiles"); } else if (set_perfiles.isVisible()) { if (set_perfiles.getListaSeleccionados().size() > 0) { map_parametros.put("ide_perf", set_perfiles.getSeleccionados()); set_perfiles.cerrar(); map_parametros.put("titulo", "PERFILES POR RECURSOS"); sel_rep.setSeleccionFormatoReporte(map_parametros, rep_reporte.getPath()); sel_rep.dibujar(); // utilitario.addUpdate("sel_rep,set_perfiles"); } else { utilitario.agregarMensajeInfo( "Atencion", "Debe seleccionar al menos un perfil de usuario"); } } } }
@Override public void aceptarReporte() { if (rep_reporte.getReporteSelecionado().equals("Detalle Permisos")) { if (tab_permisos.getTotalFilas() > 0) { if (rep_reporte.isVisible()) { p_parametros = new HashMap(); rep_reporte.cerrar(); System.out.println("p_parametro " + ide_geedp_activo); p_parametros.put("IDE_GEEDP", Integer.parseInt(ide_geedp_activo)); p_parametros.put( "titulo", " BIESS GERENCIA ADMINISTRATIVA - FINANCIERA DEPARTAMENTO DE TALENTO HUMANO PERMISOS"); sef_reporte.setSeleccionFormatoReporte(p_parametros, rep_reporte.getPath()); sef_reporte.dibujar(); } } else { utilitario.agregarMensajeInfo("No se puede continuar", "No contiene registro de permisos"); } } else if (rep_reporte.getReporteSelecionado().equals("Detalle Permisos Fecha")) { if (rep_reporte.isVisible()) { p_parametros = new HashMap(); rep_reporte.cerrar(); dia_filtro_activo.dibujar(); } else if (dia_filtro_activo.isVisible()) { if (lis_activo.getSeleccionados() != null && !lis_activo.getSeleccionados().isEmpty()) { p_parametros.put("ACTIVO_GTEMP", lis_activo.getSeleccionados()); dia_filtro_activo.cerrar(); sel_cal.dibujar(); } else { utilitario.agregarMensajeInfo( "No se puede continuar", "No ha seleccionado ningun Estado"); } } else if (sel_cal.isVisible()) { if (sel_cal.isFechasValidas()) { p_parametros.put("APROBACION", sel_cal.getFecha1String()); p_parametros.put("VENCIMIENTO", sel_cal.getFecha2String()); // sel_cal.getBot_aceptar().setMetodo("aceptarReporte"); set_empleado_asis .getTab_seleccion() .setSql( "SELECT IDE_GTEMP,DOCUMENTO_IDENTIDAD_GTEMP, " + "APELLIDO_PATERNO_GTEMP || ' ' || " + "APELLIDO_MATERNO_GTEMP || ' ' || " + "PRIMER_NOMBRE_GTEMP || ' ' || " + "SEGUNDO_NOMBRE_GTEMP AS NOMBRES " + "from GTH_EMPLEADO " + "WHERE ACTIVO_GTEMP IN(" + lis_activo.getSeleccionados() + ") " + "ORDER BY IDE_GTEMP ASC, " + "NOMBRES ASC "); set_empleado_asis .getTab_seleccion() .getColumna("DOCUMENTO_IDENTIDAD_GTEMP") .setFiltro(true); set_empleado_asis.getTab_seleccion().getColumna("NOMBRES").setFiltro(true); set_empleado_asis.getTab_seleccion().ejecutarSql(); set_empleado_asis.getBot_aceptar().setMetodo("aceptarReporte"); sel_cal.cerrar(); set_empleado_asis.dibujar(); } else { utilitario.agregarMensajeInfo("ERROR AL GENERAR REPORTE", "Las fechas no son validas"); } } else if (set_empleado_asis.isVisible()) { if (set_empleado_asis.getSeleccionados() != null && !set_empleado_asis.getSeleccionados().isEmpty()) { System.out.println("" + set_empleado_asis.getSeleccionados()); p_parametros.put("IDE_GTEMP", set_empleado_asis.getSeleccionados()); p_parametros.put( "titulo", " BIESS GERENCIA ADMINISTRATIVA - FINANCIERA DEPARTAMENTO DE TALENTO HUMANO PERMISOS POR FECHA"); System.out.println("path " + rep_reporte.getPath()); sef_reporte.setSeleccionFormatoReporte(p_parametros, rep_reporte.getPath()); set_empleado_asis.cerrar(); sef_reporte.dibujar(); } else { utilitario.agregarMensajeInfo( "No se puede continuar", "No ha seleccionado ningun Empleado"); } } } }