Examples of Discipline


Examples of org.ldv.sio.getap.app.Discipline

    if (bindResult.hasErrors()) {
      System.out.println("ERROR");
      return "redirect:/app/admin/logiciel";
    } else {

      Discipline dis = manager.getDisciplineById(Integer.valueOf(formEdit
          .getId()));
      dis.setNom(formEdit.getNom());
      manager.upDateDiscipline(dis);

      return "redirect:/app/admin/logiciel";
    }
  }
View Full Code Here

Examples of org.ldv.sio.getap.app.Discipline

  }

  @RequestMapping(value = "deleteDiscipline/{id}", method = RequestMethod.GET)
  public String deleteDisciplineById(@PathVariable String id, Model model) {

    Discipline dis = manager.getDisciplineById(Integer.valueOf(id));

    if (!dis.getNom().equals(null)) {
      manager.deleteDiscipline(dis);
    }
    return "redirect:/app/admin/logiciel";

  }
View Full Code Here

Examples of org.ldv.sio.getap.app.Discipline

      return "admin/editUser";
    } else {

      User userForUpdate = manager.getUserById(Long.valueOf(formUser
          .getId()));
      Discipline dis = null;
      if (formUser.getRoleNom().startsWith("prof")) {
        dis = new Discipline(formUser.getDisciplineId(),
            formUser.getDisciplineNom());
      }
      userForUpdate.setNom(formUser.getNom());
      userForUpdate.setPrenom(formUser.getPrenom());
      userForUpdate.setRole(formUser.getRoleNom());
View Full Code Here

Examples of org.ldv.sio.getap.app.Discipline

      }

      DisciplineDAOJdbc disciplineDao = new DisciplineDAOJdbc();
      ClasseDAOJdbc classeDao = new ClasseDAOJdbc();
      Classe classe = classeDao.getClasseById(rs.getInt("idClasse"));
      Discipline dis = disciplineDao.getDisciplineById(rs
          .getInt("idDiscipline"));
      user.setDiscipline(dis);
      user.setClasse(classe);
      user.setLogin(rs.getString("login"));
      user.setPass(rs.getString("mdp"));
View Full Code Here

Examples of org.xrace.model.Discipline

    {
      private static final long serialVersionUID = 1L;

      public Page getPage()
      {
        return new DisciplineUpdatePage(new Discipline(), true);
      }

      public Class getPageIdentity()
      {
        return DisciplineUpdatePage.class;
View Full Code Here

Examples of org.xrace.model.Discipline

  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final Discipline discipline = (Discipline) item.getModelObject();

    item.add(new Label("nom"));

    item.add(new PageLink("modifier", new IPageLink()
    {
View Full Code Here

Examples of org.xrace.model.Discipline

    }
  }

  private void createTestDisciplines()
  {
    getDisciplineService().save(new Discipline("XC"));
    getDisciplineService().save(new Discipline("DH"));
    getDisciplineService().save(new Discipline("XCM"));
  }
View Full Code Here

Examples of org.xrace.model.Discipline

    final Personne personneJDoe = getPersonneService()
        .findByNomPrenomExact("Doe", "John").get(0);
    final Personne personneOKnussen = getPersonneService()
        .findByNomPrenomExact("Knussen", "Olaf").get(0);

    final Discipline disciplineXC = getDisciplineService().findByNom("XC");
    final Discipline disciplineDH = getDisciplineService().findByNom("DH");

    final Categorie categorieXseH = getCategorieService().findByCode("XSE",
        "H", disciplineXC);
    Categorie categorieXsxH = getCategorieService().findByCode("XSX", "H",
        disciplineXC);
View Full Code Here

Examples of org.xrace.model.Discipline

    Facture facture;

    final Personne personneNCote = getPersonneService()
        .findByNomPrenomExact("Côté", "Nathalie").get(0);

    final Discipline disciplineXC = getDisciplineService().findByNom("XC");
    final Discipline disciplineDH = getDisciplineService().findByNom("DH");

    final Categorie categorieXmxF = getCategorieService().findByCode(
        "XMX30", "F", disciplineXC);
    final Categorie categorieDssF = getCategorieService().findByCode("DSS",
        "F", disciplineDH);
View Full Code Here

Examples of org.xrace.model.Discipline

   * @see wicket.markup.html.form.ChoiceRenderer#getDisplayValue(java.lang.Object)
   */
  @Override
  public Object getDisplayValue(final Object object)
  {
    final Discipline discipline = (Discipline) object;
    if (discipline == null)
    {
      return null;
    }
    else
    {
      return discipline.getNom();
    }
  }
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.