Package org.xrace.model.evenements

Examples of org.xrace.model.evenements.Tarification


  public void testCanMergeCourseCommun() throws Exception
  {
    final Cart cart = new Cart();

    final Tarification tarif1 = getTarificationService()
        .findByCourseCategorie(course1, categorieXsx);

    ComposantInscription composantInscription1 = new ComposantInscription(
        personneCompteAdmin, tarif1);
View Full Code Here


  private void createComponents()
  {
    for (final Categorie categorie : categorieService
        .findByDiscipline(course.getDiscipline()))
    {
      final Tarification tarification = tarificationService
          .findByCourseCategorie(course, categorie);
      listCatPart
          .add(new CourseTarificationLine(categorie, tarification));
    }
View Full Code Here

  private void createComponents()
  {
    for (final Categorie categorie : categorieService
        .findByDiscipline(courseACopier.getDiscipline()))
    {
      final Tarification tarification = tarificationService
          .findByCourseCategorie(courseACopier, categorie);
      listCatPart
          .add(new CourseTarificationLine(categorie, tarification));
    }
View Full Code Here

    Validate.positive(prixAvantDate, "prixAvantDate");
    Validate.positive(prixApresDate, "prixApresDate");

    validationTarifDate(prixAvantDate, dateAvant, prixApresDate, dateApres);

    Tarification tarification = null;

    if (categorieParticipanteService.getCategorieParticipante(course
        .getEvenement().getSaison(), categorie) == null)
    {
      throw new CategorieException(
          "La catégorie ne participe pas à la saison. ");
    }

    tarification = findByCourseCategorie(course, categorie);

    if (tarification == null)
    {
      tarification = new Tarification();
      tarification.setCourse(course);
      tarification.setCategorie(categorie);
    }

    tarification.setPrixRegulier(prixRegulier);
    tarification.setPrixEnsemble(prixEnsemble);
    tarification.setDateAvant(dateAvant);
    tarification.setPrixAvantDate(prixAvantDate);
    tarification.setDateApres(dateApres);
    tarification.setPrixApresDate(prixApresDate);

    getGenericDao().save(tarification);

    return tarification;
  }
View Full Code Here

    Iterator<Tarification> i = tarifications.iterator();

    while (i.hasNext())
    {
      Tarification tarification = i.next();
      categories.add(tarification.getCategorie());
    }

    return categories;
  }
View Full Code Here

  public void annule(final Course course, final Categorie categorie)
  {
    Validate.argNotNull(categorie, "categorie");
    Validate.argNotNull(course, "course");

    final Tarification tarification = findByCourseCategorie(course,
        categorie);

    if (tarification != null)
    {
      delete(tarification);
View Full Code Here

        "Downhill");

    final Cart cartJdoe1 = new Cart();
    final Cart cartJdoe2 = new Cart();

    final Tarification tarificationXseH1 = getTarificationService()
        .findByCourseCategorie(courseXC1, categorieXseH);
    final Tarification tarificationXseH2 = getTarificationService()
        .findByCourseCategorie(courseXC2, categorieXseH);
    final Tarification tarificationXsxH2 = getTarificationService()
        .findByCourseCategorie(courseXC2, categorieXsxH);
    final Tarification tarificationDssH2 = getTarificationService()
        .findByCourseCategorie(courseDH2, categorieDssH);

    ComposantInscription composantInscription1 = new ComposantInscription(
        personneJDoe, tarificationXseH1);
    CartItemInscription cartItemInscription1 = new CartItemInscription(
View Full Code Here

    final Course courseXC4 = getCourseService().getCourseParNom(evenement4,
        "Cross-Country");
    final Course courseDH4 = getCourseService().getCourseParNom(evenement4,
        "Downhill");

    final Tarification tarificationXmxF1 = getTarificationService()
        .findByCourseCategorie(courseXC1, categorieXmxF);
    final Tarification tarificationDssF2 = getTarificationService()
        .findByCourseCategorie(courseDH2, categorieDssF);
    final Tarification tarificationXmxF4 = getTarificationService()
        .findByCourseCategorie(courseXC4, categorieXmxF);
    final Tarification tarificationDssF4 = getTarificationService()
        .findByCourseCategorie(courseDH4, categorieDssF);

    Choix choixAmeneAmi = getChoixService()
        .findChoixByEvenement(evenement4).get(0);
    Choix choixBBQ = getChoixService().findChoixByEvenement(evenement4)
View Full Code Here

TOP

Related Classes of org.xrace.model.evenements.Tarification

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.