Search in sources :

Example 6 with CancelamentoMatriculaDTO

use of com.tomasio.projects.trainning.dto.CancelamentoMatriculaDTO in project trainning by fernandotomasio.

the class EXC014CSV method makeReport.

@Override
public void makeReport() {
    AtividadesEnsinoService service = (AtividadesEnsinoService) services.get("atividadesEnsinoService");
    OrganizationalService organizationalService = (OrganizationalService) services.get("organizationalService");
    Writer writter = null;
    try {
        writter = new OutputStreamWriter(os, "UTF-8");
    } catch (UnsupportedEncodingException ex) {
        Logger.getLogger(EXC014CSV.class.getName()).log(Level.SEVERE, null, ex);
    }
    BufferedWriter bufferedWriter = new BufferedWriter(writter);
    // recuperar paramentro
    Date exercicio = (Date) params.get("exercicio");
    Long organizacaoId = (Long) params.get("organizacaoId");
    String status = "";
    status += (String) params.get("status");
    String search = "";
    // search += (String) params.get("search");
    List<MatriculaDTO> alunos = new ArrayList<MatriculaDTO>();
    MatriculaDTO[] matriculas = service.findAllMatriculasAlunosDaOM(organizacaoId, exercicio, search);
    alunos.addAll(Arrays.asList(matriculas));
    // verificar se vai filtrar pelo status
    List<MatriculaDTO> alunosFiltrado = new ArrayList<MatriculaDTO>();
    if (status.equals("")) {
        alunosFiltrado.addAll(alunos);
    } else {
        for (MatriculaDTO aluno : alunos) {
            CancelamentoMatriculaDTO cancelada = service.findCancelamentoMatriculaByMatricula(aluno.getId());
            ConclusaoDTO conclusao = service.findConclusaoByMatricula(aluno.getId());
            // se for diferente do status passado não inclui na lista
            switch(status) {
                case "CANCELADO":
                    // preencher o status
                    if (cancelada != null) {
                        // tem cancelamento
                        alunosFiltrado.add(aluno);
                    }
                    break;
                case "APROVADO":
                    if (cancelada == null && conclusao != null && conclusao.isComAproveitamento()) {
                        alunosFiltrado.add(aluno);
                    }
                    break;
                case "DESLIGADO":
                    if (cancelada == null && conclusao != null && !conclusao.isComAproveitamento()) {
                        alunosFiltrado.add(aluno);
                    }
                    break;
                case "CURSANDO":
                    if (cancelada == null && conclusao == null) {
                        // nao tem cancelamento e nem conclusão
                        // em andamento
                        alunosFiltrado.add(aluno);
                    }
                    break;
            }
        }
    }
    for (MatriculaDTO matricula : alunosFiltrado) {
        try {
            OrganizacaoDTO omAlunos = organizationalService.findOrganizacao(organizacaoId);
            TurmaEfetivaDTO turmaEfetiva = service.findTurmaEfetiva(matricula.getTurma().getId());
            OrganizacaoDTO responsavel = organizationalService.findOrganizacao(turmaEfetiva.getResponsavelId());
            CancelamentoMatriculaDTO cancelada = service.findCancelamentoMatriculaByMatricula(matricula.getId());
            ConclusaoDTO conclusao = service.findConclusaoByMatricula(matricula.getId());
            // OM DOS ALUNOS
            bufferedWriter.write(omAlunos.getSigla());
            bufferedWriter.write("|");
            // turma
            String turma = turmaEfetiva.getCurso().getCodigo() + "-" + turmaEfetiva.getNumeroTurma();
            String extra = "";
            // verificar se é extra
            if (turmaEfetiva.isExtra())
                extra = " EXTRA";
            bufferedWriter.write(turma + extra);
            bufferedWriter.write("|");
            // local
            if (turmaEfetiva.getLocal() != null) {
                bufferedWriter.write(turmaEfetiva.getLocal());
            } else {
                bufferedWriter.write("");
            }
            bufferedWriter.write("|");
            // ORESP
            bufferedWriter.write(responsavel.getSigla());
            bufferedWriter.write("|");
            // dt inicia
            if (turmaEfetiva.getDataInicioFormatted() != null) {
                bufferedWriter.write(turmaEfetiva.getDataInicioFormatted());
            } else {
                bufferedWriter.write("");
            }
            bufferedWriter.write("|");
            // dt termino
            if (turmaEfetiva.getDataTerminoFormatted() != null) {
                bufferedWriter.write(turmaEfetiva.getDataTerminoFormatted());
            } else {
                bufferedWriter.write("");
            }
            bufferedWriter.write("|");
            // aluno
            if (matricula.getPessoa().getTargetaCompleta() != null) {
                bufferedWriter.write(matricula.getPessoa().getTargetaCompleta());
            } else {
                bufferedWriter.write("");
            }
            bufferedWriter.write("|");
            // saram
            if (matricula.getPessoa().getSaram() != null) {
                bufferedWriter.write(matricula.getPessoa().getSaram());
            } else {
                bufferedWriter.write("");
            }
            bufferedWriter.write("|");
            // STATUS e MOTIVO (caso tenha)
            if (cancelada != null) {
                // status
                bufferedWriter.write("CANCELADO");
                bufferedWriter.write("|");
                // motivo
                if (cancelada.getObservacao() != null) {
                    bufferedWriter.write(cancelada.getObservacao());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write("|");
                // parecer
                bufferedWriter.write("");
                bufferedWriter.write("|");
            } else {
                // verificar se tem conclusão
                if (conclusao != null) {
                    // verificar se é com aproveitamento ou sem
                    if (conclusao.isComAproveitamento()) {
                        // status
                        bufferedWriter.write("APROVADO");
                        bufferedWriter.write("|");
                        // motivo
                        bufferedWriter.write("");
                        bufferedWriter.write("|");
                        // parecer
                        bufferedWriter.write("");
                        bufferedWriter.write("|");
                    } else {
                        // status
                        bufferedWriter.write("DESLIGADO");
                        bufferedWriter.write("|");
                        // motivo
                        if (conclusao.getObservacao() != null) {
                            bufferedWriter.write(conclusao.getObservacao());
                        } else {
                            bufferedWriter.write("");
                            bufferedWriter.write("|");
                        }
                        // parecer
                        if (conclusao.getParecer() != null) {
                            bufferedWriter.write(conclusao.getParecer());
                        } else {
                            bufferedWriter.write("");
                            bufferedWriter.write("|");
                        }
                    }
                } else {
                    // nao tem cancelamento e nem conclusão
                    // em andamento
                    // status
                    bufferedWriter.write("CURSANDO");
                    bufferedWriter.write("|");
                    // motivo
                    bufferedWriter.write("");
                    bufferedWriter.write("|");
                    // parecer
                    bufferedWriter.write("");
                    bufferedWriter.write("|");
                }
            }
            bufferedWriter.newLine();
        } catch (IOException ex) {
            Logger.getLogger(EXC014CSV.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    try {
        bufferedWriter.flush();
        bufferedWriter.close();
    } catch (IOException ex) {
        Logger.getLogger(EXC014CSV.class.getName()).log(Level.SEVERE, null, ex);
    }
}
Also used : CancelamentoMatriculaDTO(com.tomasio.projects.trainning.dto.CancelamentoMatriculaDTO) MatriculaDTO(com.tomasio.projects.trainning.dto.MatriculaDTO) CancelamentoMatriculaDTO(com.tomasio.projects.trainning.dto.CancelamentoMatriculaDTO) ConclusaoDTO(com.tomasio.projects.trainning.dto.ConclusaoDTO) ArrayList(java.util.ArrayList) UnsupportedEncodingException(java.io.UnsupportedEncodingException) IOException(java.io.IOException) Date(java.util.Date) BufferedWriter(java.io.BufferedWriter) TurmaEfetivaDTO(com.tomasio.projects.trainning.dto.TurmaEfetivaDTO) OrganizationalService(com.tomasio.projects.trainning.interfaces.OrganizationalService) OutputStreamWriter(java.io.OutputStreamWriter) OrganizacaoDTO(com.tomasio.projects.trainning.dto.OrganizacaoDTO) BufferedWriter(java.io.BufferedWriter) Writer(java.io.Writer) OutputStreamWriter(java.io.OutputStreamWriter) AtividadesEnsinoService(com.tomasio.projects.trainning.interfaces.AtividadesEnsinoService)

Example 7 with CancelamentoMatriculaDTO

use of com.tomasio.projects.trainning.dto.CancelamentoMatriculaDTO in project trainning by fernandotomasio.

the class EXC002CSV method makeReport.

@Override
public void makeReport() {
    AtividadesEnsinoService service = (AtividadesEnsinoService) services.get("atividadesEnsinoService");
    OrganizationalService organizationalService = (OrganizationalService) services.get("organizationalService");
    Writer writter = null;
    try {
        writter = new OutputStreamWriter(os, "UTF-8");
    } catch (UnsupportedEncodingException ex) {
        Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
    }
    BufferedWriter bufferedWriter = new BufferedWriter(writter);
    // recuperar paramentro turmaId
    Long turmaId = (Long) params.get("turmaId");
    TurmaDTO turma = service.findTurmaEfetiva(turmaId);
    // Recuperar parametro sobre filtro por status da indicação
    String statusIndicacao = "";
    statusIndicacao += (String) params.get("status");
    if ("CONC".equals(statusIndicacao)) {
        // mostrar conclusoes
        List<ConclusaoDTO> conclusoes = new ArrayList<ConclusaoDTO>();
        ConclusaoDTO[] concluidosComComparecimento = service.findAllConcluidosByTurma(turmaId, true);
        conclusoes.addAll(Arrays.asList(concluidosComComparecimento));
        ConclusaoDTO[] concluidosSemComparecimento = service.findAllConcluidosByTurma(turmaId, false);
        conclusoes.addAll(Arrays.asList(concluidosSemComparecimento));
        for (ConclusaoDTO conclusao : conclusoes) {
            try {
                MatriculaDTO matricula = service.findMatricula(conclusao.getMatricula().getId());
                PessoaDTO pessoa = organizationalService.findPessoa(matricula.getPessoa().getId());
                /*
                     if (apresentacao instanceof ApresentacaoDTO) {
                     bufferedWriter.write("ALUNO");
                     } else {
                     bufferedWriter.write("INSTRUTOR");
                     }
                     */
                bufferedWriter.write("ALUNO");
                bufferedWriter.write(",");
                if (turma != null) {
                    bufferedWriter.write(turma.getCurso().getCodigo() + "-" + turma.getNumeroTurma());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getPosto() != null) {
                    bufferedWriter.write(matricula.getPessoa().getPosto());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getQuadro() != null) {
                    bufferedWriter.write(matricula.getPessoa().getQuadro());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getEspecialidade() != null) {
                    bufferedWriter.write(matricula.getPessoa().getEspecialidade());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getNome() != null) {
                    bufferedWriter.write(matricula.getPessoa().getNome());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getNomeGuerra() != null) {
                    bufferedWriter.write(matricula.getPessoa().getNomeGuerra());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getOrganizacao() != null && pessoa.getOrganizacao().getSigla() != null) {
                    bufferedWriter.write(pessoa.getOrganizacao().getSigla());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getEmail() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getEmail());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getTelefone() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getTelefone());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getTelefoneCelular() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getTelefoneCelular());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getSaram() != null) {
                    bufferedWriter.write(matricula.getPessoa().getSaram());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getCpf() != null) {
                    bufferedWriter.write(matricula.getPessoa().getCpf());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (conclusao.isComAproveitamento()) {
                    bufferedWriter.write("CONCLUIU COM APROVEITAMENTO");
                } else {
                    bufferedWriter.write("NÃO CONCLUIU");
                }
                bufferedWriter.write(",");
                // obs
                if (conclusao.getObservacao() != null) {
                    bufferedWriter.write(conclusao.getObservacao());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // parecer
                if (conclusao.getParecer() != null) {
                    bufferedWriter.write(conclusao.getParecer());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                bufferedWriter.write(",");
                // solicitação da Seção de Avaliação do ILA
                if (matricula.getIndicacao().getChefia() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getEmailChefia() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getEmailChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getTelefoneChefia() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getTelefoneChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // não está retornando
                if (matricula.getIndicacao().getTelefoneOM() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getTelefoneOM());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.newLine();
            } catch (IOException ex) {
                Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        try {
            bufferedWriter.flush();
            bufferedWriter.close();
        } catch (IOException ex) {
            Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
        }
    } else if ("APRE".equals(statusIndicacao)) {
        // mostrar apenas os apresentados
        List<ApresentacaoDTO> apresentacoes = new ArrayList<ApresentacaoDTO>();
        // IndicacaoDTO[] indicacoesInstrutores = service.findAllIndicacoesInstrutoresSelecionados(turmaId);
        // indicacoes.addAll(Arrays.asList(indicacoesInstrutores));
        ApresentacaoDTO[] indicacoesAlunosApresentados = service.findAllApresentadosByTurmaId(turmaId);
        apresentacoes.addAll(Arrays.asList(indicacoesAlunosApresentados));
        ApresentacaoDTO[] indicacoesAlunosNaoApresentados = service.findAllNaoApresentadosByTurma(turmaId);
        apresentacoes.addAll(Arrays.asList(indicacoesAlunosNaoApresentados));
        for (ApresentacaoDTO apresentacao : apresentacoes) {
            try {
                PessoaDTO pessoa = organizationalService.findPessoa(apresentacao.getMatricula().getPessoa().getId());
                /*
                     if (apresentacao instanceof ApresentacaoDTO) {
                     bufferedWriter.write("ALUNO");
                     } else {
                     bufferedWriter.write("INSTRUTOR");
                     }
                     */
                bufferedWriter.write("ALUNO");
                bufferedWriter.write(",");
                if (turma != null) {
                    bufferedWriter.write(turma.getCurso().getCodigo() + "-" + turma.getNumeroTurma());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getPessoa().getPosto() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getPessoa().getPosto());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getPessoa().getQuadro() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getPessoa().getQuadro());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getPessoa().getEspecialidade() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getPessoa().getEspecialidade());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getPessoa().getNome() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getPessoa().getNome());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getPessoa().getNomeGuerra() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getPessoa().getNomeGuerra());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getOrganizacao() != null && pessoa.getOrganizacao().getSigla() != null) {
                    bufferedWriter.write(pessoa.getOrganizacao().getSigla());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getIndicacao().getEmail() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getIndicacao().getEmail());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getIndicacao().getTelefone() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getIndicacao().getTelefone());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getIndicacao().getTelefoneCelular() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getIndicacao().getTelefoneCelular());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getPessoa().getSaram() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getPessoa().getSaram());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getPessoa().getCpf() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getPessoa().getCpf());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.isComparecimento()) {
                    bufferedWriter.write("COMPARECEU");
                } else {
                    bufferedWriter.write("NÃO COMPARECEU");
                }
                bufferedWriter.write(",");
                // obs
                if (apresentacao.getObservacao() != null) {
                    bufferedWriter.write(apresentacao.getObservacao());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                bufferedWriter.write(",");
                // solicitação da Seção de Avaliação do ILA
                if (apresentacao.getMatricula().getIndicacao().getChefia() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getIndicacao().getChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getIndicacao().getEmailChefia() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getIndicacao().getEmailChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (apresentacao.getMatricula().getIndicacao().getTelefoneChefia() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getIndicacao().getTelefoneChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // não está retornando
                if (apresentacao.getMatricula().getIndicacao().getTelefoneOM() != null) {
                    bufferedWriter.write(apresentacao.getMatricula().getIndicacao().getTelefoneOM());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.newLine();
            } catch (IOException ex) {
                Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        try {
            bufferedWriter.flush();
            bufferedWriter.close();
        } catch (IOException ex) {
            Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
        }
    } else if ("MTCL".equals(statusIndicacao)) {
        // mostrar apenas os matriculados
        List<MatriculaDTO> matriculas = new ArrayList<MatriculaDTO>();
        MatriculaDTO[] matriculasInstrutores = service.findAllMatriculasInstrutores(turmaId);
        matriculas.addAll(Arrays.asList(matriculasInstrutores));
        MatriculaDTO[] matriculasAlunos = service.findAllMatriculasAlunos(turmaId);
        matriculas.addAll(Arrays.asList(matriculasAlunos));
        for (MatriculaDTO matricula : matriculas) {
            try {
                PessoaDTO pessoa = organizationalService.findPessoa(matricula.getPessoa().getId());
                if (matricula instanceof MatriculaAlunoDTO) {
                    bufferedWriter.write("ALUNO");
                } else {
                    bufferedWriter.write("INSTRUTOR");
                }
                bufferedWriter.write(",");
                if (turma != null) {
                    bufferedWriter.write(turma.getCurso().getCodigo() + "-" + turma.getNumeroTurma());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getPosto() != null) {
                    bufferedWriter.write(matricula.getPessoa().getPosto());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getQuadro() != null) {
                    bufferedWriter.write(matricula.getPessoa().getQuadro());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getEspecialidade() != null) {
                    bufferedWriter.write(matricula.getPessoa().getEspecialidade());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getNome() != null) {
                    bufferedWriter.write(matricula.getPessoa().getNome());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getNomeGuerra() != null) {
                    bufferedWriter.write(matricula.getPessoa().getNomeGuerra());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getOrganizacao() != null && pessoa.getOrganizacao().getSigla() != null) {
                    bufferedWriter.write(pessoa.getOrganizacao().getSigla());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getEmail() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getEmail());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getTelefone() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getTelefone());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getTelefoneCelular() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getTelefoneCelular());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getSaram() != null) {
                    bufferedWriter.write(matricula.getPessoa().getSaram());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getPessoa().getCpf() != null) {
                    bufferedWriter.write(matricula.getPessoa().getCpf());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // não está retornando
                if (matricula.getIndicacao().getStatus() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getStatus());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                CancelamentoMatriculaDTO cancelamento = new CancelamentoMatriculaDTO();
                if (matricula.isCancelada()) {
                    bufferedWriter.write("MATRICULA CANCELADA");
                    // buscar cancelamento
                    cancelamento = service.findCancelamentoMatriculaByMatricula(matricula.getId());
                } else {
                    bufferedWriter.write("MATRICULADO NO CURSO ");
                }
                bufferedWriter.write(",");
                // data cancelameno
                if (matricula.isCancelada()) {
                    SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
                    bufferedWriter.write(df.format(cancelamento.getDataCancelamento()));
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // obs cancelamento
                if (matricula.isCancelada()) {
                    bufferedWriter.write(cancelamento.getObservacao());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                bufferedWriter.write(",");
                // solicitação da Seção de Avaliação do ILA
                if (matricula.getIndicacao().getChefia() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getEmailChefia() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getEmailChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (matricula.getIndicacao().getTelefoneChefia() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getTelefoneChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // não está retornando
                if (matricula.getIndicacao().getTelefoneOM() != null) {
                    bufferedWriter.write(matricula.getIndicacao().getTelefoneOM());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.newLine();
            } catch (IOException ex) {
                Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        try {
            bufferedWriter.flush();
            bufferedWriter.close();
        } catch (IOException ex) {
            Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
        }
    } else if ("PRE MTCL".equals(statusIndicacao)) {
        // mostrar apenas os PRE matriculados
        // listar instrutores
        PreMatriculaDTO[] preMatriculasInstrutores = service.findAllPreMatriculasInstrutores(turmaId);
        for (PreMatriculaDTO preMatricula : preMatriculasInstrutores) {
            try {
                PessoaDTO pessoa = organizationalService.findPessoa(preMatricula.getPessoa().getId());
                bufferedWriter.write("INSTRUTOR");
                bufferedWriter.write(",");
                if (turma != null) {
                    bufferedWriter.write(turma.getCurso().getCodigo() + "-" + turma.getNumeroTurma());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getPosto() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getPosto());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getQuadro() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getQuadro());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getEspecialidade() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getEspecialidade());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getNome() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getNome());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getNomeGuerra() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getNomeGuerra());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getOrganizacao() != null && pessoa.getOrganizacao().getSigla() != null) {
                    bufferedWriter.write(pessoa.getOrganizacao().getSigla());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getEmail() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getEmail());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getTelefone() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getTelefone());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getTelefoneCelular() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getTelefoneCelular());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getSaram() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getSaram());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getCpf() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getCpf());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getStatus() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getStatus());
                } else {
                    bufferedWriter.write("PRE MTCL");
                }
                bufferedWriter.write(",");
                // solicitação da Seção de Avaliação do ILA
                if (preMatricula.getIndicacao().getChefia() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getEmailChefia() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getEmailChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getTelefoneChefia() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getTelefoneChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getTelefoneOM() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getTelefoneOM());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.newLine();
            } catch (IOException ex) {
                Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        // listar alunos
        PreMatriculaDTO[] preMatriculasAlunos = service.findAllPreMatriculasAlunos(turmaId);
        for (PreMatriculaDTO preMatricula : preMatriculasAlunos) {
            try {
                PessoaDTO pessoa = organizationalService.findPessoa(preMatricula.getPessoa().getId());
                bufferedWriter.write("ALUNO");
                bufferedWriter.write(",");
                if (turma != null) {
                    bufferedWriter.write(turma.getCurso().getCodigo() + "-" + turma.getNumeroTurma());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getPosto() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getPosto());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getQuadro() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getQuadro());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getEspecialidade() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getEspecialidade());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getNome() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getNome());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getNomeGuerra() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getNomeGuerra());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getOrganizacao() != null && pessoa.getOrganizacao().getSigla() != null) {
                    bufferedWriter.write(pessoa.getOrganizacao().getSigla());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getEmail() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getEmail());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getTelefone() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getTelefone());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getTelefoneCelular() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getTelefoneCelular());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getSaram() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getSaram());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getPessoa().getCpf() != null) {
                    bufferedWriter.write(preMatricula.getPessoa().getCpf());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // não está retornando
                if (preMatricula.getIndicacao().getStatus() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getStatus());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // solicitação da Seção de Avaliação do ILA
                if (preMatricula.getIndicacao().getChefia() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getEmailChefia() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getEmailChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (preMatricula.getIndicacao().getTelefoneChefia() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getTelefoneChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // não está retornando
                if (preMatricula.getIndicacao().getTelefoneOM() != null) {
                    bufferedWriter.write(preMatricula.getIndicacao().getTelefoneOM());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.newLine();
            } catch (IOException ex) {
                Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        try {
            bufferedWriter.flush();
            bufferedWriter.close();
        } catch (IOException ex) {
            Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
        }
    } else if ("SLC".equals(statusIndicacao)) {
        // mostrar apenas os selecionados
        List<IndicacaoDTO> indicacoes = new ArrayList<IndicacaoDTO>();
        IndicacaoDTO[] indicacoesInstrutores = service.findAllIndicacoesInstrutoresSelecionados(turmaId);
        indicacoes.addAll(Arrays.asList(indicacoesInstrutores));
        IndicacaoDTO[] indicacoesAlunos = service.findAllIndicacoesAlunosSelecionadosForOrdemMatricula(turmaId);
        indicacoes.addAll(Arrays.asList(indicacoesAlunos));
        for (IndicacaoDTO indicacao : indicacoes) {
            try {
                PessoaDTO pessoa = organizationalService.findPessoa(indicacao.getPessoa().getId());
                if (indicacao instanceof IndicacaoAlunoDTO) {
                    bufferedWriter.write("ALUNO");
                } else {
                    bufferedWriter.write("INSTRUTOR");
                }
                bufferedWriter.write(",");
                if (turma != null) {
                    bufferedWriter.write(turma.getCurso().getCodigo() + "-" + turma.getNumeroTurma());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getPosto() != null) {
                    bufferedWriter.write(pessoa.getPosto());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getQuadro() != null) {
                    bufferedWriter.write(pessoa.getQuadro());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getEspecialidade() != null) {
                    bufferedWriter.write(pessoa.getEspecialidade());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getNome() != null) {
                    bufferedWriter.write(pessoa.getNome());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getNomeGuerra() != null) {
                    bufferedWriter.write(pessoa.getNomeGuerra());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getOrganizacao() != null && pessoa.getOrganizacao().getSigla() != null) {
                    bufferedWriter.write(pessoa.getOrganizacao().getSigla());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getEmail() != null) {
                    bufferedWriter.write(indicacao.getEmail());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getTelefone() != null) {
                    bufferedWriter.write(indicacao.getTelefone());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getTelefoneCelular() != null) {
                    bufferedWriter.write(indicacao.getTelefoneCelular());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getSaram() != null) {
                    bufferedWriter.write(pessoa.getSaram());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getCpf() != null) {
                    bufferedWriter.write(pessoa.getCpf());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getStatus() != null) {
                    bufferedWriter.write(indicacao.getStatus());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // solicitação da Seção de Avaliação do ILA
                if (indicacao.getChefia() != null) {
                    bufferedWriter.write(indicacao.getChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getEmailChefia() != null) {
                    bufferedWriter.write(indicacao.getEmailChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getTelefoneChefia() != null) {
                    bufferedWriter.write(indicacao.getTelefoneChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // não está retornando
                if (indicacao.getTelefoneOM() != null) {
                    bufferedWriter.write(indicacao.getTelefoneOM());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.newLine();
            } catch (IOException ex) {
                Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        try {
            bufferedWriter.flush();
            bufferedWriter.close();
        } catch (IOException ex) {
            Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
        }
    } else {
        // mostrar indicados em geral
        List<IndicacaoDTO> indicacoes = new ArrayList<IndicacaoDTO>();
        IndicacaoDTO[] indicacoesInstrutores = service.findAllIndicacoesInstrutores(turmaId);
        indicacoes.addAll(Arrays.asList(indicacoesInstrutores));
        IndicacaoDTO[] indicacoesAlunos = service.findAllIndicacoesAlunos(turmaId);
        indicacoes.addAll(Arrays.asList(indicacoesAlunos));
        for (IndicacaoDTO indicacao : indicacoes) {
            try {
                PessoaDTO pessoa = organizationalService.findPessoa(indicacao.getPessoa().getId());
                if (indicacao instanceof IndicacaoAlunoDTO) {
                    bufferedWriter.write("ALUNO");
                } else {
                    bufferedWriter.write("INSTRUTOR");
                }
                bufferedWriter.write(",");
                if (turma != null) {
                    bufferedWriter.write(turma.getCurso().getCodigo() + "-" + turma.getNumeroTurma());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getPosto() != null) {
                    bufferedWriter.write(pessoa.getPosto());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getQuadro() != null) {
                    bufferedWriter.write(pessoa.getQuadro());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getEspecialidade() != null) {
                    bufferedWriter.write(pessoa.getEspecialidade());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getNome() != null) {
                    bufferedWriter.write(pessoa.getNome());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getNomeGuerra() != null) {
                    bufferedWriter.write(pessoa.getNomeGuerra());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getOrganizacao() != null && pessoa.getOrganizacao().getSigla() != null) {
                    bufferedWriter.write(pessoa.getOrganizacao().getSigla());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getEmail() != null) {
                    bufferedWriter.write(indicacao.getEmail());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getTelefone() != null) {
                    bufferedWriter.write(indicacao.getTelefone());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getTelefoneCelular() != null) {
                    bufferedWriter.write(indicacao.getTelefoneCelular());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getSaram() != null) {
                    bufferedWriter.write(pessoa.getSaram());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (pessoa.getCpf() != null) {
                    bufferedWriter.write(pessoa.getCpf());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getStatus() != null) {
                    bufferedWriter.write(indicacao.getStatus());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // solicitação da Seção de Avaliação do ILA
                if (indicacao.getChefia() != null) {
                    bufferedWriter.write(indicacao.getChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getEmailChefia() != null) {
                    bufferedWriter.write(indicacao.getEmailChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                if (indicacao.getTelefoneChefia() != null) {
                    bufferedWriter.write(indicacao.getTelefoneChefia());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.write(",");
                // não está retornando
                if (indicacao.getTelefoneOM() != null) {
                    bufferedWriter.write(indicacao.getTelefoneOM());
                } else {
                    bufferedWriter.write("");
                }
                bufferedWriter.newLine();
            } catch (IOException ex) {
                Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        try {
            bufferedWriter.flush();
            bufferedWriter.close();
        } catch (IOException ex) {
            Logger.getLogger(EXC002CSV.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
// fim do if de filtro dos indicados pelo STATUS
}
Also used : CancelamentoMatriculaDTO(com.tomasio.projects.trainning.dto.CancelamentoMatriculaDTO) ArrayList(java.util.ArrayList) TurmaDTO(com.tomasio.projects.trainning.dto.TurmaDTO) BufferedWriter(java.io.BufferedWriter) IndicacaoDTO(com.tomasio.projects.trainning.dto.IndicacaoDTO) MatriculaAlunoDTO(com.tomasio.projects.trainning.dto.MatriculaAlunoDTO) IndicacaoAlunoDTO(com.tomasio.projects.trainning.dto.IndicacaoAlunoDTO) ArrayList(java.util.ArrayList) List(java.util.List) ApresentacaoDTO(com.tomasio.projects.trainning.dto.ApresentacaoDTO) PreMatriculaDTO(com.tomasio.projects.trainning.dto.PreMatriculaDTO) CancelamentoMatriculaDTO(com.tomasio.projects.trainning.dto.CancelamentoMatriculaDTO) MatriculaDTO(com.tomasio.projects.trainning.dto.MatriculaDTO) ConclusaoDTO(com.tomasio.projects.trainning.dto.ConclusaoDTO) UnsupportedEncodingException(java.io.UnsupportedEncodingException) IOException(java.io.IOException) PreMatriculaDTO(com.tomasio.projects.trainning.dto.PreMatriculaDTO) PessoaDTO(com.tomasio.projects.trainning.dto.PessoaDTO) OrganizationalService(com.tomasio.projects.trainning.interfaces.OrganizationalService) OutputStreamWriter(java.io.OutputStreamWriter) SimpleDateFormat(java.text.SimpleDateFormat) BufferedWriter(java.io.BufferedWriter) Writer(java.io.Writer) OutputStreamWriter(java.io.OutputStreamWriter) AtividadesEnsinoService(com.tomasio.projects.trainning.interfaces.AtividadesEnsinoService)

Aggregations

CancelamentoMatriculaDTO (com.tomasio.projects.trainning.dto.CancelamentoMatriculaDTO)7 MatriculaDTO (com.tomasio.projects.trainning.dto.MatriculaDTO)5 ConclusaoDTO (com.tomasio.projects.trainning.dto.ConclusaoDTO)3 OrganizacaoDTO (com.tomasio.projects.trainning.dto.OrganizacaoDTO)3 PreMatriculaDTO (com.tomasio.projects.trainning.dto.PreMatriculaDTO)3 SimpleDateFormat (java.text.SimpleDateFormat)3 ArrayList (java.util.ArrayList)3 Date (java.util.Date)3 NotificacaoMatriculaDTO (com.tomasio.projects.trainning.dto.NotificacaoMatriculaDTO)2 PessoaDTO (com.tomasio.projects.trainning.dto.PessoaDTO)2 TurmaEfetivaDTO (com.tomasio.projects.trainning.dto.TurmaEfetivaDTO)2 CoreException (com.tomasio.projects.trainning.exeption.CoreException)2 AtividadesEnsinoService (com.tomasio.projects.trainning.interfaces.AtividadesEnsinoService)2 OrganizationalService (com.tomasio.projects.trainning.interfaces.OrganizationalService)2 BufferedWriter (java.io.BufferedWriter)2 IOException (java.io.IOException)2 OutputStreamWriter (java.io.OutputStreamWriter)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)2 Writer (java.io.Writer)2 ParseException (java.text.ParseException)2