Package org.xrace.model.evenements

Examples of org.xrace.model.evenements.Tarification


   * @see wicket.markup.html.form.IChoiceRenderer#getDisplayValue(Object)
   */
  @Override
  public Object getDisplayValue(final Object object)
  {
    final Tarification tarification = (Tarification) object;
    final String display = tarification.getDescription();
    return display;
  }
View Full Code Here


  {
    if (index < 0)
    {
      return "";
    }
    final Tarification tarification = (Tarification) object;
    final String id = tarification.getId().toString();
    return id;

  }
View Full Code Here

      return new CoursePage();
    }
    else if (etape == Etapes.Tarification && action == Action.Suivant
        && obj instanceof Tarification)
    {
      Tarification tarification = (Tarification) obj;
      getProcessusInscription().setCategorieParDefaut(
          tarification.getCategorie());
      return GestionTarification();
    }
    else if (etape == Etapes.AutresInfos && action == Action.Suivant
        && obj instanceof ComposantAutresInfos)
    {
View Full Code Here

        {
          Course course = (Course) iterator.next();

          getProcessusInscription().setCourseSelectionnee(course);

          Tarification tarification = tarificationService
              .findByCourseCategorie(course,
                  getProcessusInscription()
                      .getCategorieParDefaut());

          if (tarification != null)
View Full Code Here

   * sont mis à jour.
   */
  public WebPage modifierAutresInfos(ModifierAutresInfosModel model)
  {
    Inscription inscription = model.getInscription();
    Tarification newTarification = model.getTarification();
    Course course = inscription.getCourse();

    getSession().getCart().updateCartItemInscription(inscription,
        model.getTarification(), rabaisEvenementService);

    inscription.setCategorie(newTarification.getCategorie());
    inscription.setPrix(newTarification.getPrixEnVigueur());

    if (course.isCourseParEquipe())
    {
      if (model.isCreateNewEquipe())
      {
View Full Code Here

  @Override
  protected void populateItem(final ListItem item)
  {
    super.populateItem(item);

    final Tarification tarification = (Tarification) item.getModelObject();

    item.add(new Label("categorie", new PropertyModel(tarification
        .getCategorie(), "nom")));
    item.add(new Label("prix", new PropertyModel(tarification,
        "prixEnVigueur")));
    item.add(new Radio("radio", item.getModel()));
  }
View Full Code Here

    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

  }

  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

        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

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

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.