Examples of Tarifications


Examples of net.fqsc.inscriptions.model.inscriptions.Tarifications

  }

  public Tarifications getTarificationsCategorie(final Categorie categorie)
      throws ActionException, SelectionException
  {
    final Tarifications tarifications = new Tarifications(categorie);

    for (final Course course : this.getCourses())
    {
      final Tarification tarification = course.getTarification(categorie);
      if (tarification != null)
      {
        tarifications.add(tarification);
      }
    }

    return tarifications;
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Tarifications

   */
  public Course(final IDomainModel domainModel)
  {
    super(domainModel);
    this.inscriptions = new Inscriptions(this);
    this.tarifications = new Tarifications(this);
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Tarifications

  }

  private void createTestTarifications(final Course course)
      throws ActionException
  {
    final Tarifications tarifications = course.getTarifications();
    final Categories categories = this.utils.getCategories();
    boolean isDh = false;

    double prix;

    if (course.getNom().equals("Downhill"))
    {
      isDh = true;
    }

    for (final Iterator iter = categories.iterator(); iter.hasNext();)
    {
      final Categorie categorie = (Categorie) iter.next();

      if (!categorie.getNom().equals("Hardtail"))
      {
        if (!course.getEvenement().getEndroit().equals("Barraute")
            || (course.getEvenement().getEndroit().equals(
                "Barraute") && categorie.getAgeMax() <= 16))
        {
          prix = 10;

          prix += (categorie.getAgeMax() > 16) ? 10 : 0;
          prix += (categorie.getNiveau().equals("elite")) ? 15 : 0;
          prix += (categorie.getNiveau().equals("expert")) ? 10 : 0;
          prix += isDh ? 20 : 0;

          if (isDh && categorie.getCodeCategorie().startsWith("D"))
          {
            tarifications.createTarification(prix, course,
                categorie);
          }

          if (!isDh && categorie.getCodeCategorie().startsWith("X"))
          {
            tarifications.createTarification(prix, course,
                categorie);
          }
        }
      }
    }
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.