Package org.xrace.model

Examples of org.xrace.model.Club


    }

    @Override
    protected void populateItem(Item item)
    {
      Club club = (Club) item.getModelObject();

      List<Compte> coachs = this.compteService.findCoachByClub(club);
      List<String> coachNameList = new ArrayList();
      for (Compte coach : coachs)
        coachNameList.add(coach.getPersonne().getNomPrenom());
View Full Code Here


      }

      @Override
      protected void onDelete(final Personne selectedPersonne)
      {
        Club club = clubService.find(coach.getCoachOf().getId());
        club.getMembres().remove(selectedPersonne);
        //coach.getCoachOf().setMembres(membresClub);
        clubService.save(club);

        this.setResponsePage(new PersonsInClubPage());
      }
View Full Code Here

    this.annuler.setDefaultFormProcessing(false);

    switch (this.addmode)
    {
    case Readonly:
      Club club = clubService
          .find(coach.getCompte().getCoachOf().getId());

      if (club.getMembres().contains(sujet))
      {
        enregistrer.setVisible(false);
        annuler.setModel(new ResourceModel("back"));
        this.add(new Label("title", getLocalizer().getString(
            "titleReadonly", this)));
View Full Code Here

        .add(new Label("commanditaireLabel", new ResourceModel(
            "otherClub")).setVisible(isCommanditaire));
    this.add(new Label("noPlaqueLabel", new ResourceModel("noPlaque"))
        .setVisible(isPlaque));

    final Club club = inscription.getClub();
    final String commanditaire = inscription.getCommanditaire();
    final String noPlaque = inscription.getNoPlaque();

    final IModel clubModel = (club != null ? new PropertyModel(inscription
        .getClub(), "nomComplet") : new ResourceModel("none"));
View Full Code Here

    personne = new Personne("Doe", "John", "38 rue St-Joseph", "Quebec",
        "G1B 4R8", "418-661-9099",
        new GregorianCalendar(1970, 0, 1).getTime(), "H", provinceQc,
        paysCan, paysCan);
    getPersonneService().save(personne);
    Club club = getClubService().findByNom("Sportif Bromont").get(0);
    createTestCompte(personne, "jdoe@fqsc.net", "123", true, club);

    personne = new Personne("Deere", "John", "39 rue St-Joseph", "Quebec",
        "G1B 4R8", "418-661-9099",
        new GregorianCalendar(1972, 3, 1).getTime(), "H", provinceQc,
View Full Code Here

    getDisciplineService().save(new Discipline("XCM"));
  }

  private void createTestClubs()
  {
    getClubService().save(new Club("Sportif Bromont"));
    getClubService().save(new Club("Ride with Rendall"));
    getClubService().save(new Club("Subway/Genetik"));
    getClubService().save(new Club("Rocky Mountain/Business Objects"));
  }
View Full Code Here

  private void createMembresClub()
  {
    Personne personne = getPersonneService().list().get(0);
    Personne personne2 = getPersonneService().list().get(1);

    Club club = getClubService().list().get(0);
    Assert.assertNotNull(club);

    club.getMembres().add(personne);
    club.getMembres().add(personne2);

    getClubService().save(club);
  }
View Full Code Here

  private void createTestClubsAffilie(final Saison saison)
  {
    for (final Object element : getClubService().list())
    {
      final Club club = (Club) element;

      getAffiliationClubService().setAffiliationClub(saison, club);
    }
  }
View Full Code Here

   * @see wicket.markup.html.form.IChoiceRenderer#getDisplayValue(Object)
   */
  @Override
  public Object getDisplayValue(final Object object)
  {
    final Club club = (Club) object;

    if (club == null)
    {
      return "Indépendant";
    }
    else
    {
      return club.getNomComplet();
    }
  }
View Full Code Here

     * @see wicket.markup.html.form.IChoiceRenderer#getDisplayValue(Object)
     */
    @Override
    public Object getDisplayValue(final Object object)
    {
      final Club club = (Club) object;

      if (club == null)
      {
        return "Aucun";
      }

      return club.getNomComplet();
    }
View Full Code Here

TOP

Related Classes of org.xrace.model.Club

Copyright © 2018 www.massapicom. 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.