private void jBAlunosInativosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBAlunosInativosActionPerformed
        Relatorios.this.dispose();

        selection = JOptionPane.showConfirmDialog(this,
                "Há duas opções de ralatórios sendo: Alunos Inativos por Turma Analítico\n"
                + "ou Alunos Inativos. \n"
                + "Deseja carregar Alunos Inativos?",
                "", JOptionPane.OK_CANCEL_OPTION,
                JOptionPane.QUESTION_MESSAGE);
        if (selection == JOptionPane.OK_OPTION) {

            if (!jFTCPF.getText().equals("   .   .   -  ")) {
                try {
                    Connection con = new Conexao().getConnection();
                    HashMap parametros = new HashMap();
                    parametros.put("VALOR", jFTCPF.getText());


                    JasperPrint jp = JasperFillManager.fillReport("./relatorios/AlunosInativos.jasper", parametros, con);
                    if (jRBSalvar.isSelected()) {
                        JasperExportManager.exportReportToPdfFile(jp, "C:/Alunos Inativos - Seeds.pdf");
                    }
                    JasperViewer jrv = new JasperViewer(jp, false);
                    jrv.setVisible(true);
                    con.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }


            } else {
                try {

                    ClientesDAO dao = new ClientesDAO();
                    selection = JOptionPane.showConfirmDialog(this,
                            "Deseja carregar todos os dados?\n"
                            + "Consta na base de dados: \n" + dao.gerarCodigoClienteExcluido() + ""
                            + " último registro.",
                            "", JOptionPane.OK_CANCEL_OPTION,
                            JOptionPane.WARNING_MESSAGE);
                    dao.desconectar();
                } catch (Exception ex) {
                    Logger.getLogger(Relatorios.class.getName()).log(Level.SEVERE, null, ex);
                }
                if (selection == JOptionPane.OK_OPTION) {
                    try {
                        Connection con = new Conexao().getConnection();
                        HashMap parametros = new HashMap();


                        JasperPrint jp = JasperFillManager.fillReport("./relatorios/AlunosInativos2.jasper", parametros, con);
                        if (jRBSalvar.isSelected()) {
                            JasperExportManager.exportReportToPdfFile(jp, "C:/Alunos Inativos - Busca CPF- Seeds.pdf");
                        }
                        JasperViewer jrv = new JasperViewer(jp, false);
                        jrv.setVisible(true);
                        con.close();
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                } else {
                    new Relatorios(null, rootPaneCheckingEnabled).setVisible(true);
                }
            }



        } else {
            if (!jFTCPF.getText().equals("   .   .   -  ")) {
                try {
                    Connection con = new Conexao().getConnection();
                    HashMap parametros = new HashMap();
                    parametros.put("VALOR", jFTCPF.getText());


                    JasperPrint jp = JasperFillManager.fillReport("./relatorios/AlunoTurmaAnaliticoInativos.jasper", parametros, con);
                    if (jRBSalvar.isSelected()) {
                        JasperExportManager.exportReportToPdfFile(jp, "C:/Alunos Inativos - Seeds.pdf");
                    }
                    JasperViewer jrv = new JasperViewer(jp, false);
                    jrv.setVisible(true);
                    con.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            } else {
                try {
                    Connection con = new Conexao().getConnection();
                    HashMap parametros = new HashMap();


                    JasperPrint jp = JasperFillManager.fillReport("./relatorios/AlunoTurmaAnaliticoInativos2.jasper", parametros, con);
                    if (jRBSalvar.isSelected()) {
                        JasperExportManager.exportReportToPdfFile(jp, "C:/Alunos Inativos - Busca CPF- Seeds.pdf");
                    }
                    JasperViewer jrv = new JasperViewer(jp, false);
                    jrv.setVisible(true);
                    con.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }

    }