Examples of Turma


Examples of br.com.procempa.modus.entity.Turma

    return null;
  }

  @Override
  public Filter[] getFilters() {
    Turma turma = (Turma) filtroCombo.getSelectedItem();
    if (turma != null && !turma.getNome().equals("TODAS")){
    return new Filter[] { new PatternFilter(turma.getNome(),
        Pattern.CASE_INSENSITIVE, 0) };
    }
    return null;
  }
View Full Code Here

Examples of br.com.procempa.modus.entity.Turma

  protected void initComponents() {
    removeInscricaoButton = new JButton();
    addEnabledButtons(removeInscricaoButton);
    filtroCombo = new JComboBox();
    try {
      Turma t = new Turma();
      t.setNome("TODAS");
     
      List<Turma> list = TurmaDataServices.getList(curso);

      filtroCombo = new JComboBox();
      filtroCombo.addItem(t);
View Full Code Here

Examples of br.com.procempa.modus.entity.Turma

 
  class TurmaRenderer implements ListCellRenderer {

    public Component getListCellRendererComponent(JList arg0, Object value,
        int arg2, boolean arg3, boolean arg4) {
      Turma t = (Turma) value;
      JLabel label = new JLabel();
      label.setText(t.getNome());

      return label;
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Turma

            String value) {
        String[] values = value.split(" - ");
        String disciplina = values[0];
        String professor = values[1];

        Turma turma = new Turma();

        Disciplina disci = new Disciplina();
        disci.setNome(disciplina);

        Professor prof = new Professor();
        prof.setNome(professor);

        turma.setDisciplina(disci);
        turma.setProfessor(prof);

        try {
            turma = this.gestaoAdministrativo.buscarTurma(turma).get(0);
        } catch (ServiceException e) {
            e.printStackTrace();
View Full Code Here

Examples of br.facet.tcc.pojo.Turma

     * @since since optional
     */
    @Override
    public String getAsString(FacesContext context, UIComponent component,
            Object value) {
        Turma turma = (Turma) value;
        return turma.toString();
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Turma

    public void buscarTurmas() {

        System.out.println("\nEntrou no buscar turmas\n");

        if (this.aluno.getId() != null) {
            Turma turma = new Turma();
            Disciplina disciplina = new Disciplina();
            Curso curso = new Curso();
            curso.setId(this.aluno.getCurso().getId());
            // disciplina.setId(this.aluno.getAluno().getId());
            disciplina.setCurso(curso);
            turma.setDisciplina(disciplina);

            try {
                this.turmasListadas = this.gestaoAdministrativo
                        .buscarTurma(turma);
            } catch (ServiceException e) {
View Full Code Here

Examples of br.facet.tcc.pojo.Turma

     * {@link br.facet.tcc.impl.dao.DaoConfiguration#atualizar(java.lang.Object)}
     * .
     */
    @Test
    public final void testAtualizar() throws DaoException {
        Turma turma = this.getTurmaDao().listar(Turma.class).get(0);
        String expected = turma.getAno();
        turma.setAno("Outro Ano");
        this.getTurmaDao().atualizar(turma);
        String actual = this.getTurmaDao().listar(Turma.class).get(0).getAno();
        Assert.assertNotSame("Turma s�o diferentes", expected, actual);
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Turma

     */
    @Test
    public final void testExcluir() throws DaoException {
        int unexpected = this.getTurmaDao().listar(Turma.class).size();

        Turma turma = this.getTurmaDao().obterPorID(Turma.class, 4);

        this.getTurmaDao().excluir(turma);

        int actual = this.getTurmaDao().listar(Turma.class).size();

View Full Code Here

Examples of br.facet.tcc.pojo.Turma

     * {@link br.facet.tcc.impl.dao.DaoConfiguration#pesquisar(java.lang.Object)}
     * .
     */
    @Test
    public final void testPesquisar() throws DaoException {
        Turma turma = new Turma();
        turma.setAno("2012-10-02");
        List<Turma> turma1 = this.getTurmaDao().pesquisar(turma);

        Assert.assertFalse(turma1.isEmpty());
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Turma

        return null;
    }

    private void reset() {
        this.turmaSalvar = new Turma();
        this.turmaPesquisar = new Turma();
        this.turmaSalvar.setStatus(Status.ATIVO);
        this.professores = new ArrayList<Professor>();
    }
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.