Examples of Aluno


Examples of br.facet.tcc.pojo.Aluno

    }

    public List<Aluno> completeDisciplina(String query) {
        List<Aluno> suggestions = new ArrayList<Aluno>();

        Aluno aluno = new Aluno();
        aluno.setNome(query);

        // suggestions = this.usurioService.consultarUsuario(suggestions);

        return suggestions;
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * .
     */
    @Test
    public void testSalvar() throws DaoException {

        Aluno aluno = new Aluno();

        aluno.setCpf(32932112388L);
        aluno.setDataNascimento(new GregorianCalendar(1908, 06, 12).getTime());
        aluno.setEmail("osnircunha@email.com");
        aluno.setEndereco(this.getEnderecoDao().listar(Endereco.class).get(0));
        aluno.setNacionalidade("Brasileiro");
        aluno.setNaturalidade("S�o Vicente");
        aluno.setNome("Osnir F CUNHA");
        aluno.setNomeMae("");
        aluno.setNomePai("");
        aluno.setOrgaoExpeditor("SSP-SP");
        aluno.setRg(272675670L);
        aluno.setUfOrgaoExpeditor(Estado.SP);
        aluno.setUserLogin(this.userLoginDao.obterPorID("user_name6"));
        aluno.setSexo(Sexo.M);
        aluno.setStatus(Status.ATIVO);
        aluno.setDataDeMatricula(new Date());

        Integer codigo = this.getAlunoDao().salvar(aluno);

        Assert.assertNotNull("Codigo � nulo.", codigo);
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     */
    @Test
    public void testAtualizar() throws DaoException {

        List<Aluno> alunos = getAlunoDao().listar(Aluno.class);
        Aluno aluno = alunos.get(0);
        String unexpected = aluno.getNome();
        String actual = "novo nome";

        aluno.setNome(actual);

        getAlunoDao().atualizar(aluno);

        Aluno atualizado = getAlunoDao().listar(Aluno.class).get(0);

        Assert.assertNotSame("Nome n�o foi atualizado.", unexpected,
                atualizado.getNome());
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * {@link br.facet.tcc.impl.dao.AlunoDaoImpl#pesquisar(br.facet.tcc.pojo.Aluno)}
     * .
     */
    @Test
    public void testPesquisar() throws DaoException {
        Aluno aluno = new Aluno();
        aluno.setNaturalidade("S�o%");
        List<Aluno> alunos = getAlunoDao().pesquisar(aluno);
        Assert.assertTrue("Lista esta vazia", alunos.size() > 0);
    }
View Full Code Here

Examples of instituicao.Aluno

    tipoDoCampo[5] = String.class;
    tipoDoCampo[6] = java.lang.Boolean.class;
   
    Object valoresColunas[][] = new Object[instituicao.getTurma(turmaId).getNumeroDeAlunos()][7];
    for(int i = 0; i < instituicao.getTurma(turmaId).getNumeroDeAlunos(); i++){
      Aluno aluno = instituicao.getTurma(turmaId).getAluno(i);
        valoresColunas[i][0] = aluno.getNome();
        valoresColunas[i][1] = aluno.getTesteAptEsp(testeId).getArremessoDeMedicineball();
        valoresColunas[i][2] = aluno.getTesteAptEsp(testeId).getCorridaVinteMetros();
        valoresColunas[i][3] = aluno.getTesteAptEsp(testeId).getQuadrado();
        valoresColunas[i][4] = aluno.getTesteAptEsp(testeId).getSaltoEmDistancia();
        valoresColunas[i][5] = aluno.getTesteAptEsp(testeId).getSeisMinutos();
        if(aluno.getTesteAptEsp(testeId).getNoveMinutos()){
          valoresColunas[i][6] = new Boolean(true) ;
        }else{
          valoresColunas[i][6] = new Boolean(false) ;
        }
         
View Full Code Here

Examples of instituicao.Aluno

    tipoDoCampo[3] = String.class;
    tipoDoCampo[4] = java.lang.Boolean.class;
   
    Object valoresColunas[][] = new Object[instituicao.getTurma(turmaId).getNumeroDeAlunos()][7];
    for(int i = 0; i < instituicao.getTurma(turmaId).getNumeroDeAlunos(); i++){
      Aluno aluno = instituicao.getTurma(turmaId).getAluno(i);
        valoresColunas[i][0] = aluno.getNome();
        valoresColunas[i][1] = aluno.getTesteAptSaude(testeId).getNumAbdominais();
        valoresColunas[i][2] = aluno.getTesteAptSaude(testeId).getImc();
        valoresColunas[i][3] = aluno.getTesteAptSaude(testeId).getSeisMinutos();
        if(aluno.getTesteAptSaude(testeId).getNoveMinutos()){
          valoresColunas[i][4] = true ;
        }else{
          valoresColunas[i][4] = false;
        }
       
View Full Code Here

Examples of instituicao.Aluno

    tipoDoCampo[2] = String.class;
    tipoDoCampo[3] = String.class;
   
    String valoresColunas[][] = new String[instituicao.getTurma(turmaId).getNumeroDeAlunos()][4];
    for(int i = 0; i < instituicao.getTurma(turmaId).getNumeroDeAlunos(); i++){
      Aluno aluno = instituicao.getTurma(turmaId).getAluno(i);
        valoresColunas[i][0] = aluno.getNome();
        valoresColunas[i][1] = aluno.getMedidaCrecimento(testeId).getMassaCorporal();
        valoresColunas[i][2] = aluno.getMedidaCrecimento(testeId).getEstatura();
        valoresColunas[i][3] = aluno.getMedidaCrecimento(testeId).getEnvergadura();
    }
   
    this.testesMedidas = new JTableModeloTeste(valoresColunas,listaNomeColunas,listaColunaPodeEditar,tipoDoCampo);
    return this.testesMedidas;
  }
View Full Code Here

Examples of instituicao.Aluno

        jTextFieldNomePaiAluno.setText("");
        jTextFieldRG.setText("");
        jTextFieldEnderecoAluno.setText("");
        jButtonExcluir.setEnabled(false);
      }else{
        Aluno alunoTemp = cody.getAlunoIdByTurmaId(this.turmaIdSelecionado, this.alunoIdSelecionado);
        this.cabecaLabelTexto.setText("Editando Aluno da turma "+cody.getNomeTurmaById(turmaIdSelecionado));
        jTextFieldNomeAluno.setText( alunoTemp.getNome() );
        jFormattedTextFieldCPF.setText( alunoTemp.getcadPessoaFisica());
        jFormattedTextFieldData.setText( alunoTemp.getDataNascimento() );
        jButtonExcluir.setEnabled(true);
        if(alunoTemp.getGenero().equals("Masculino")){
          jComboBoxTipoGenero.setSelectedIndex(0);

        }else{
          jComboBoxTipoGenero.setSelectedIndex(1);
        }
 
        jTextFieldNomeMaeAluno.setText( alunoTemp.getNomeMae() );
        jTextFieldNomePaiAluno.setText( alunoTemp.getNomePai() );
        jTextFieldRG.setText( alunoTemp.getRegistroGeral() );
        jTextFieldEnderecoAluno.setText( alunoTemp.getEndereco() );
      }
    }else{
      this.escolheHome();
      this.painelAtivo = "home";
      config.notificaUsuario("Para ver o Aluno é necessário criar ou editar um Aluno.", "avisar");
View Full Code Here

Examples of model.Aluno

* @author Consult
*/
public class AlunoDAO {

    public Aluno getAluno(String codigo) {
        Aluno aluno = new Aluno();
        aluno.setCodigoAluno(Integer.parseInt(codigo));
        aluno.setCodigoPessoa(Integer.parseInt(codigo));
        return aluno;
    }
View Full Code Here

Examples of model.Aluno

    private ArrayList<Aluno> listaDeAlunos;
    private PessoaController pessoaCtrl;
    private EnderecoController enderecoCtrl;
   
    public AlunoController() {
        this.aluno = new Aluno();
        this.alunoDAO = new AlunoDAO();
        this.listaDeAlunos = new ArrayList<Aluno>();
        this.pessoaCtrl = new PessoaController();
        this.enderecoCtrl = new EnderecoController();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.