Esempio n. 1
0
  /**
   * Retorna a lista de exerc�cios do acompanhamento f�sico.
   *
   * @return
   * @throws ECARException
   */
  public List<Exercicio> getExercicios() throws ECARException {
    List<Exercicio> exercicios = new ArrayList<Exercicio>();
    ExercicioDao exercicioDao = new ExercicioDao(null);
    List<ExercicioExe> listaExeAnt =
        exercicioDao.getExerciciosProjecaoResultados(realizado.getItemEstruturaIett().getCodIett());

    if (listaExeAnt != null && listaExeAnt.size() > 0) {
      for (ExercicioExe ecarExe : listaExeAnt) {
        exercicios.add(new Exercicio(ecarExe.getCodExe()));
      }
    }

    return exercicios;
  }