Examples of Inscription


Examples of com.netflox.form.Inscription

  }

  public void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    /* Préparation de l'objet formulaire */
    Inscription form = new Inscription();

    /*
     * Appel au traitement et à la validation de la requête, et récupération
     * du bean en résultant
     */
    Utilisateur utilisateur = form.inscrireUtilisateur(request);

    /* Récupération de la session depuis la requête */
    HttpSession session = request.getSession();

    /**
     * Si aucune erreur de validation n'a eu lieu, alors ajout du bean
     * Utilisateur à la session, sinon suppression du bean de la session.
     */
    if ( form.getErreurs().isEmpty() ) {
      session.setAttribute( ATT_SESSION_USER, utilisateur );
    } else {
      session.setAttribute( ATT_SESSION_USER, null );
    }
   
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Inscription

  {
    final Inscriptions inscriptions = new Inscriptions(personne);

    for (final Course course : this.getCourses())
    {
      final Inscription inscription = course.getInscription(personne);
      if (inscription != null)
      {
        inscriptions.add(inscription);
      }
    }
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Inscription

      final Categorie categorie, final Club club)
      throws CategorieException
  {
    final Inscriptions inscriptions = course.getInscriptions();

    final Inscription inscription = new Inscription(course, personne);
    inscription.setCommanditaire(commenditaire);
    inscription.setCodeConfirmation(this.generateCodeConfirmation());
    inscription.setNoPlaque("Plaque");
    inscription.setClub(club);
    inscription.setCategorie(categorie);

    try
    {
      if (!inscriptions.add(inscription))
        throw new ValidationException("La validation de dmLite a échoué. ");
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Inscription

    Validate.argNotNull(cart, "Cart");
    Validate.argNotNull(personne, "Personne");

    final Facture facture = this.createFacture();
    Inscription inscription = null;

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

      final CartItem cartItem = (CartItem) i.next();
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Inscription

   
    final Evenement evenement = saisons.getEvenements().get(0);
   
    final Course course = (Course) evenement.getCourses().getList().get(0);
   
    final Inscription inscription = (Inscription) course.getInscriptions().getList().get(0);
   
    final Facture facture = this.facturationCtrl.createFacture();
    this.facturationCtrl.addFactureItem(facture, inscription, 10.0);
    this.facturationCtrl.addFactureItem(facture, inscription, 20.0);
    this.facturationCtrl.addFactureItem(facture, inscription, 30.0);
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Inscription

  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final Inscription inscription = (Inscription) item.getModelObject();

    item.add(new Label("evenementNom",
        new PropertyModel(inscription.getCourse().getEvenement(), "nom")));
    item.add(new Label("discipline", new PropertyModel(inscription.getCourse(),
        "nom")));
    item.add(new Label("date", new PropertyModel(inscription.getCourse(), "date")));
    item.add(new Label("categorieNom", new PropertyModel(inscription.getCategorie(), "nom")));

  }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

        final Personne personne = cartItemInscription.getPersonne();
        final Categorie categorie = cartItemInscription
            .getInscription().getCategorie();
        final EvenementCategoriePersonneEntry entry = new EvenementCategoriePersonneEntry(
            evenement, categorie, personne);
        final Inscription inscription = cartItemInscription
            .getInscription();

        final List<Inscription> inscriptions = evenementNbCourses
            .get(entry);
        inscriptions.add(inscription);
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final Inscription inscription = (Inscription) item.getModelObject();

    item.add(new Label("evenementNom", new PropertyModel(inscription
        .getCourse().getEvenement(), "nom")));
    item.add(new Label("endroit", new PropertyModel(inscription.getCourse()
        .getEvenement(), "endroit")));
    item.add(new Label("discipline", new PropertyModel(inscription
        .getCourse().getDiscipline(), "nom")));
    item.add(new Label("date", new PropertyModel(inscription.getCourse(),
        "date")));
    item.add(new Label("categorieNom", new PropertyModel(inscription
        .getCategorie(), "nom")));

    if (inscription.getClub() != null)
    {
      item.add(new Label("club", inscription.getClub().getNomComplet()));
    }
    else
    {
      item.add(new Label("club", ""));
    }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

    }

    @Override
    protected void populateItem(final Item item)
    {
      final Inscription inscription = (Inscription) item.getModelObject();

      item.add(new Label("personne.Nom", new PropertyModel(inscription,
          "personne.Nom")));
      item.add(new Label("personne.Prenom", new PropertyModel(
          inscription, "personne.Prenom")));
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

    for (CartItem cartItem : getSession().getCart().getItems())
    {
      if (cartItem instanceof CartItemInscription)
      {
        CartItemInscription cartItemInscription = (CartItemInscription) cartItem;
        Inscription inscription = cartItemInscription.getInscription();

        if (inscription.getEquipeCourse() != null)
        {
          equipes.add(inscription.getEquipeCourse());
        }
      }
    }

    return new ArrayList(equipes);
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.