Package net.fqsc.inscriptions.model.inscriptions

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


    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

  }

  @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

  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

TOP

Related Classes of net.fqsc.inscriptions.model.inscriptions.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.