Package net.fqsc.inscriptions.model.categories

Examples of net.fqsc.inscriptions.model.categories.CategorieParticipante


  {
    Boolean b = true;
    try
    {
      final int plaque = Integer.parseInt(this.afterInfoSaison.getPlaqueUnique());
      final CategorieParticipante categorie =  this.saison.getCategorieParticipante(this.afterInfoSaison.getCategorie());
      if (plaque < categorie.getPlaqueMin() || plaque > categorie.getPlaqueMax())
      {
        b = false;
      }
    }
    catch (final Exception ex)
View Full Code Here


  {

    try
    {

      final CategorieParticipante categorieParticipante = saison
          .getCategorieParticipante(categorie);

      if (categorieParticipante != null)
      {
        InfosSaison infosSaisonCriteria = null;

        for (int i = categorieParticipante.getPlaqueMin(); i <= categorieParticipante
            .getPlaqueMax(); i++)
        {
          if ((i > categorieParticipante.getPlaqueGeleMax())
              || (i < categorieParticipante.getPlaqueGeleMin()))
          {

            infosSaisonCriteria = null;

            final SelectionCriteria criteria = SelectionCriteria
View Full Code Here

            "Le maximum des plaques gelées doit être plus petit "
                + "que le maximum des plaques attribuées. ");
      }
    }

    CategorieParticipante before = null;

    boolean update = true;
    CategorieParticipante categorieParticipante = this
        .getCategorieParticipante(saison, categorie);

    if (categorieParticipante == null)
    {
      categorieParticipante = new CategorieParticipante(saison, categorie);
      update = false;
    }
    else
    {
      before = categorieParticipante;
      categorieParticipante = (CategorieParticipante) categorieParticipante
          .copy();
    }

    categorieParticipante.setPlaqueMin(plaqueMin);
    categorieParticipante.setPlaqueMax(plaqueMax);
    categorieParticipante.setPlaqueGeleMin(plaqueGeleMin);
    categorieParticipante.setPlaqueGeleMax(plaqueGeleMax);

    boolean result;

    try
    {
View Full Code Here

  private void createComponents(final Saison saison)
  {
    for (final Categorie categorie : this.categorieController
        .getCategories())
    {
      final CategorieParticipante catPart = this.catPartCtrl
          .getCategorieParticipante(saison, categorie);
      this.listCatPart.add(new SaisonCategorieParticipanteLine(categorie,
          catPart));
    }
View Full Code Here

    Validate.argNotNull(categorie, "categorie");
    Validate.argNotNull(saison, "saison");

    try
    {
      final CategorieParticipante catPart = saison
          .getCategorieParticipante(categorie);

      if (catPart != null)
      {
        saison.getCategoriesParticipantes().remove(catPart);
View Full Code Here

  }

  @Test
  public final void testSetCategorieParticipanteSaisonCategorie()
  {
    final CategorieParticipante catParticipante = this.catParticipanteCtrl
        .setCategorieParticipante(this.saison, this.categorieHardtail,
            4000, 4100, 4010, 4019);

    Assert.assertEquals(4100, catParticipante.getPlaqueMax());
    Assert.assertNotNull(this.catParticipanteCtrl.getCategorieParticipante(
        this.saison, this.categorieHardtail));
  }
View Full Code Here

  }

  @Test
  public final void testSetCategorieParticipanteSaisonCategorieExiste()
  {
    CategorieParticipante catParticipante = this.catParticipanteCtrl
        .setCategorieParticipante(this.saison, this.categorieXU15,
            7000, 7100, null, null);
    catParticipante = this.catParticipanteCtrl.getCategorieParticipante(
        this.saison, this.categorieXU15);

    Assert.assertEquals(7000, catParticipante.getPlaqueMin());
    Assert.assertEquals(7100, catParticipante.getPlaqueMax());
    Assert.assertEquals(null, catParticipante.getPlaqueGeleMin());
    Assert.assertEquals(null, catParticipante.getPlaqueGeleMax());
  }
View Full Code Here

        categorie);

    for (final Iterator iter = this.iterator(); iter.hasNext();)
    {
      final Saison saison = (Saison) iter.next();
      final CategorieParticipante categorieParticipante = saison
          .getCategorieParticipante(categorie);
      if (categorieParticipante != null)
      {
        categoriesParticipantes.add(categorieParticipante);
      }
View Full Code Here

  }

  @Test
  public final void testSetCategorieParticipanteSaisonValideRange4()
  {
    CategorieParticipante catParticipante = this.catParticipanteCtrl
        .setCategorieParticipante(this.saison, this.categorieXU15,
            7000, 7000, null, null);
    catParticipante = this.catParticipanteCtrl.getCategorieParticipante(
        this.saison, this.categorieXU15);

    Assert.assertEquals(7000, catParticipante.getPlaqueMin());
    Assert.assertEquals(7000, catParticipante.getPlaqueMax());
    Assert.assertEquals(null, catParticipante.getPlaqueGeleMin());
    Assert.assertEquals(null, catParticipante.getPlaqueGeleMax());
  }
View Full Code Here

        style.setFont(font);

        for (final Iterator iter = saison.getCategoriesParticipantes()
            .iterator(); iter.hasNext();)
        {
          final CategorieParticipante catPart = (CategorieParticipante) iter
              .next();

          Collection<PlaqueAttribueeLine> plaquesCategorie = selectStr
              .getResult(catPart.getCategorie(), plaques);
          plaquesCategorie = orderStr.getResult(plaquesCategorie);

          final Iterator<PlaqueAttribueeLine> itLine = plaquesCategorie
              .iterator();

          while (itLine.hasNext())
          {
            final HSSFSheet sheet = this.newSheet(wb, catPart
                .getCategorie(), ++page);
            sheet.getPrintSetup().setLandscape(true);

            for (short j = 0; j < ListePlaquePanel.COLONNES_PAR_PAGE; j++)
            {
View Full Code Here

TOP

Related Classes of net.fqsc.inscriptions.model.categories.CategorieParticipante

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.