Package net.fqsc.inscriptions.model.inscriptions

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


  @Override
  protected void populateItem(final ListItem item)
  {
    final CartItem cartItem = (CartItem) item.getModelObject();
    Tarification tarification = catPartCtrl.getTarificationByOid(cartItem
        .getTarificationOid().getUniqueNumber());

    item.add(new Label("evenementNom", new PropertyModel(tarification
        .getCourse().getEvenement(), "nom")));
    item.add(new Label("discipline", new PropertyModel(tarification
        .getCourse(), "nom")));
    item.add(new Label("courseDate", new PropertyModel(tarification
        .getCourse(), "date")));
    item.add(new Label("prix", new PropertyModel(cartItem, "prix")));

    item.add(new RemoveCheckBox("selected", cartItem));
View Full Code Here


  }

  @Test
  public final void testSetCategorieParticipanteCourseCategorieExiste()
  {
    Tarification tarification = this.catParticipanteCtrl
        .setCategorieParticipante(this.course, this.categorieXU15, 41);
    tarification = this.catParticipanteCtrl.getCategorieParticipante(
        this.course, this.categorieXU15);

    Assert.assertEquals(41.0, tarification.getPrix());
  }
View Full Code Here

  {
    final Tarifications tarifications = new Tarifications(categorie);

    for (final Course course : this.getCourses())
    {
      final Tarification tarification = course.getTarification(categorie);
      if (tarification != null)
      {
        tarifications.add(tarification);
      }
    }
View Full Code Here

          final Course course = (Course) k.next();

          for (final Iterator l = course.getTarifications()
              .iterator(); l.hasNext();)
          {
            final Tarification tarification = (Tarification) l
                .next();

            list.add(tarification);
          }
View Full Code Here

          {

            for (final Iterator l = course.getTarifications()
                .iterator(); l.hasNext();)
            {
              final Tarification tarification = (Tarification) l
                  .next();

              list.add(tarification);
            }
          }
View Full Code Here

    for (final Iterator i = cart.getCart().iterator(); i.hasNext();)
    {

      final CartItem cartItem = (CartItem) i.next();
      final Tarification tarification = catPartCtrl
          .getTarificationByOid(cartItem.getTarificationOid()
              .getUniqueNumber());

      inscription = null;

      inscription = this.inscriptionsCtrl.inscrire(cart
          .getCommenditaire(), tarification.getCourse(), personne,
          tarification.getCategorie(), clubCtrl.getClubByOid(cart
              .getClubOid()));

      this.addFactureItem(facture, inscription, catPartCtrl
          .getTarificationByOid(
              cartItem.getTarificationOid().getUniqueNumber())
View Full Code Here

  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final Tarification tarification = (Tarification) item.getModelObject();

    item.add(new Label("evenement",
        new PropertyModel(tarification.getCourse().getEvenement(),
        "nom")));
    item.add(new Label("discipline",
        new PropertyModel(tarification.getCourse()"nom")));
    item.add(new Label("categorie",
        new PropertyModel(tarification.getCategorie(), "nom")));
    item.add(new Label("date",
        new PropertyModel(tarification.getCourse(), "date")));
    item.add(new Label("prix", new PropertyModel(tarification, "prix")));
    item.add(new Radio("radio", item.getModel()));

  }
View Full Code Here

      public void onSubmit()
      {

        final SignInSession session = (SignInSession) this.getSession();

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

        if (!tarification.equals(null))
        {
          InscriptionsApp app = (InscriptionsApp) this
              .getApplication();
          session.getCart().addToCart(
              new CartItem(tarification.getOid(),
              app.getDbContext().getPersistentModel()
                  .getDomainModel()));
        }

        this
View Full Code Here

  private void createComponents(final Course course)
  {
    for (final Categorie categorie : this.categorieController
        .getCategories())
    {
      final Tarification catPart = this.catPartCtrl
          .getCategorieParticipante(course, categorie);
      this.listCatPart.add(new CourseCategorieParticipanteLine(categorie,
          catPart));
    }
View Full Code Here

  @Override
  protected void populateItem(final ListItem item)
  {
    final CartItem cartItem = (CartItem) item.getModelObject();
    Tarification tarification = catPartCtrl.getTarificationByOid(cartItem
        .getTarificationOid().getUniqueNumber());

    item.add(new Label("evenementNom", new PropertyModel(tarification
        .getCourse().getEvenement(), "nom")));
    item.add(new Label("discipline", new PropertyModel(tarification
        .getCourse(), "nom")));
    item.add(new Label("courseDate", new PropertyModel(tarification
        .getCourse(), "date")));
    item.add(new Label("prix", new PropertyModel(cartItem, "prix")));
    item.add(new Label("commenditaire", new PropertyModel(this.cart,
        "commenditaire")));
    item.add(new Label("club", new PropertyModel(clubCtrl
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.