Examples of Tarification


Examples of org.xrace.model.evenements.Tarification

    if (inscription.getEquipeCourse() != null)
    {
      equipeCourseService.save(inscription.getEquipeCourse());
    }

    Tarification tarification = tarificationService.findByCourseCategorie(
        inscription.getCourse(), inscription.getCategorie());

    if (tarification == null)
    {
      throw new CategorieException("La catégorie ne participe"
View Full Code Here

Examples of org.xrace.model.evenements.Tarification

  }

  public final void testSetTarification()
  {

    final Tarification tarification = getTarificationService()
        .setTarification(course, categorieXse, 38.0, null, null, null,
            null, null);

    Assert.assertEquals(38.0, tarification.getPrixRegulier().doubleValue(),
        0.0);
    Assert.assertNotNull(getTarificationService().findByCourseCategorie(
        course, categorieXse));
  }
View Full Code Here

Examples of org.xrace.model.evenements.Tarification

        course, categorieXse));
  }

  public final void testSetTarificationCategorieExiste()
  {
    Tarification tarification = getTarificationService().setTarification(
        course, categorieXU15, 41.0, null, null, null, null, null);
    tarification = getTarificationService().findByCourseCategorie(course,
        categorieXU15);

    Assert.assertEquals(41.0, tarification.getPrixRegulier().doubleValue(),
        0.0);
  }
View Full Code Here

Examples of org.xrace.model.evenements.Tarification

    //Ouf, la marche est haute entre les touristes de senior sport et les professionnels
    //experts ! Il va se contenter de faire du XC en tant que senior sport.
    final Cart cart = new Cart();

    final Tarification tarif1 = getTarificationService()
        .findByCourseCategorie(course1, categorieXss);
    final Tarification tarif2 = getTarificationService()
        .findByCourseCategorie(course2, categorieXss);

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

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

Examples of org.xrace.model.evenements.Tarification

  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

Examples of org.xrace.model.evenements.Tarification

  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

Examples of org.xrace.model.evenements.Tarification

    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

Examples of org.xrace.model.evenements.Tarification

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

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

    return categories;
  }
View Full Code Here

Examples of org.xrace.model.evenements.Tarification

  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
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.