Examples of Tarification


Examples of net.fqsc.inscriptions.model.inscriptions.Tarification

    {
      throw new CategorieException(
          "La catégorie ne participe pas à la saison. ");
    }

    Tarification before = null;

    boolean update = true;
    Tarification tarification = this.getCategorieParticipante(course,
        categorie);

    if (tarification == null)
    {
      tarification = new Tarification(course, categorie);
      update = false;
    }
    else
    {
      before = tarification;
      tarification = (Tarification) tarification.copy();
    }

    tarification.setPrix(prix);

    boolean result;

    try
    {
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Tarification

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

    try
    {
      final Tarification tarification = course.getTarification(categorie);

      if (tarification != null)
      {
        course.getTarifications().remove(tarification);
      }
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Tarification

  }

  @Test
  public final void testSetCategorieParticipanteCourseCategorie()
  {
    final Tarification tarification = this.catParticipanteCtrl
        .setCategorieParticipante(this.course, this.categorieXSE, 38.0);

    Assert.assertEquals(38.0, tarification.getPrix());
    Assert.assertNotNull(this.catParticipanteCtrl.getCategorieParticipante(
        this.course, this.categorieXSE));
  }
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Tarification

  private void createComponent(final Course courseACopier)
  {
    //Liste des catégories participantes....
    for (final Categorie categorie : this.categorieController.getCategories())
    {
      final Tarification catPart = this.catPartCtrl.getCategorieParticipante(courseACopier, categorie);
      this.listCatPart.add(new CourseCategorieParticipanteLine(categorie, catPart));
    }

    this.form.add(new ConfirmationCopieListView("categoriesListView", this.listCatPart));
   
View Full Code Here

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

Examples of org.xrace.model.evenements.Tarification

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

  }
View Full Code Here

Examples of org.xrace.model.evenements.Tarification

      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

Examples of org.xrace.model.evenements.Tarification

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

          getProcessusInscription().setCourseSelectionnee(course);

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

          if (tarification != null)
View Full Code Here

Examples of org.xrace.model.evenements.Tarification

   * 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

Examples of org.xrace.model.evenements.Tarification

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