Examples of Saison


Examples of net.fqsc.inscriptions.model.evenements.Saison

  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final Saison saison = (Saison) item.getModelObject();

    CheckBox checkBox;
    checkBox = new CheckBox("etat", new PropertyModel(saison, "active"));
    checkBox.setEnabled(false);
    item.add(checkBox);

    item.add(new Label("nom", saison.getNom()));
    item.add(new Label("annee", saison.getAnnee().toString()));

    final Map<TypeParameters, Object> hashMap = new HashMap<TypeParameters, Object>();
    final SaisonActivePanel.TypeParameters parameters = SaisonActivePanel.TypeParameters.SAISON;
    hashMap.put(parameters, saison);
    item.add(HomePage.link("modifier", SaisonActivePanel.class, hashMap));
View Full Code Here

Examples of net.fqsc.inscriptions.model.evenements.Saison

  }

  private void createComponents()
  {
    final IDomainModel model = ((InscriptionsApp) this.getApplication()).getDbContext().getPersistentModel().getDomainModel();
    final Saison saison = new Saison(model);

    final Map<Parameters, Object> params = new HashMap<Parameters, Object>();
    params.put(Parameters.SELECTED_ITEM, saison);
    params.put(GestionEvenementsPanel.Parameters.IS_NEW, true);
View Full Code Here

Examples of net.fqsc.inscriptions.model.evenements.Saison

  }

  private Tarification getRandomTarification()
  {
    List<Saison> saisons = new Vector<Saison>(evtCtrl.getSaisons());
    Saison saison = saisons.get(random.nextInt(saisons.size()));
    Evenement evenement = (Evenement) saison.getEvenements().getList().get(
        random.nextInt(saison.getEvenements().getList().size()));
    Course course = (Course) evenement.getCourses().getList().get(
        random.nextInt(evenement.getCourses().getList().size()));

    return (Tarification) course.getTarifications().getList().get(
        random.nextInt(course.getTarifications().getList().size()));
View Full Code Here

Examples of net.fqsc.inscriptions.model.evenements.Saison

  }

  @Test
  public final void testCreateSaison()
  {
    final Saison saison = new Saison(this.context.getPersistentModel()
        .getDomainModel());
    saison.setAnnee(2008);
    saison.setActive(true);
    saison.setNom("FQSC 2008");

    this.evenementCtrl.createSaison(saison);

    Assert.assertNotNull(this.evenementCtrl.getSaisonParAnnee(2008));
    Assert.assertEquals(3, this.evenementCtrl.getSaisons().size());
View Full Code Here

Examples of net.fqsc.inscriptions.model.evenements.Saison

  }

  @Test(expected = UniqueException.class)
  public final void testCreateSaisonAnneeDouble()
  {
    final Saison saison = new Saison(this.context.getPersistentModel()
        .getDomainModel());
    saison.setAnnee(2006);
    saison.setActive(true);
    saison.setNom("AAA");

    this.evenementCtrl.createSaison(saison);
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.evenements.Saison

  }

  @Test
  public final void testDeleteSaison()
  {
    final Saison autreSaison = this.evenementCtrl.getSaisonParAnnee(2006);
    this.evenementCtrl.deleteSaison(autreSaison);

    Assert.assertNull(this.evenementCtrl.getSaisonParAnnee(autreSaison
        .getAnnee()));
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.evenements.Saison

  }

  @Test
  public final void testUpdateSaison()
  {
    final Saison autreSaison = this.evenementCtrl.getSaisonParAnnee(2006);
    final Saison autreSaisonCopy = (Saison) autreSaison.copy();
    autreSaisonCopy.setActive(true);
    this.evenementCtrl.updateSaison(autreSaisonCopy);

    Assert.assertTrue(this.evenementCtrl.getSaisonParAnnee(
        autreSaison.getAnnee()).isActive());
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.evenements.Saison

        this.add(new EvenementUpdateFormPanel("content", evenement,
            isNew));
      }
      else if (selectedItem instanceof Saison)
      {
        final Saison saison = (Saison) selectedItem;

        if (subCategory != null)
        {
          if (subCategory instanceof AffiliationsClubs)
          {
View Full Code Here

Examples of net.fqsc.inscriptions.model.evenements.Saison

  {
    final DefaultMutableTreeNode nodeSaisons = new DefaultMutableTreeNode(saisons);

    for (final Iterator saisonsIter = saisons.iterator(); saisonsIter.hasNext();)
    {
      final Saison saison = (Saison) saisonsIter.next();
      if (saison.isActive())
      {
        final DefaultMutableTreeNode nodeSaison = new DefaultMutableTreeNode(
            saison);
        nodeSaisons.add(nodeSaison);

        for (final Iterator evenIter = saison.getEvenements().iterator(); evenIter
            .hasNext();)
        {
          final Evenement evenement = (Evenement) evenIter.next();
          final DefaultMutableTreeNode nodeEvenement = new DefaultMutableTreeNode(
              evenement);
View Full Code Here

Examples of net.fqsc.inscriptions.model.evenements.Saison

  }

  private void createTestSaisons() throws ActionException
  {
    final Saisons saisons = this.utils.getSaisons();
    Saison saison;

    saison = saisons.createSaison(2006, false, "FQSC 2006");
    this.createTestEvenements(saison);
    this.createTestClubsAffilie(saison);
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.