Examples of Inscription


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
            && inscription.getCourse().equals(course))
        {
          equipes.add(inscription.getEquipeCourse());
        }
      }
    }

    return new ArrayList(equipes);
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

      return new DelegateRegistrationModePage(Etapes.AutrePersonne);
    }
    else if (etape == Etapes.Panier && action == Action.NouveauEquipe
        && obj instanceof Inscription)
    {
      Inscription inscription = (Inscription) obj;
      Course course = inscription.getCourse();
      getProcessusInscription().setPersonneAinscrire(null);
      getProcessusInscription().setSaisonSelectionnee(
          course.getEvenement().getSaison());
      getProcessusInscription().setEvenementSelectionnee(
          course.getEvenement());
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("id", new PropertyModel(inscription, "id")));
      item.add(new Label("course.evenementNomCourseNom",
          new PropertyModel(inscription,
              "course.evenementNomCourseNom")));
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

    composantAutresInfos.setNeedClub(needClub);
    composantAutresInfos.setNeedCommanditaire(needCommanditaire);
    composantAutresInfos.setNeedPlaque(needPlaque);
    composantAutresInfos.setNeedEquipe(needEquipe);

    Inscription inscriptionReference = getInscriptionReferenceAutresInfos();

    /*
     * On va ensuite trouver une valeur par défaut aux valeurs à demander.
     */
    if (needClub)
    {
      if (getProcessusInscription().isClubParDefautConnu())
      {
        composantAutresInfos.setClub(getProcessusInscription()
            .getClubParDefaut());
      }
      else
      {
        infoADeterminer = true;

        if (inscriptionReference != null)
        {
          composantAutresInfos
              .setClub(inscriptionReference.getClub());
        }
      }
    }

    if (needCommanditaire)
    {
      if (getProcessusInscription().isCommenditaireParDefautConnu())
      {
        composantAutresInfos.setCommanditaire(getProcessusInscription()
            .getCommenditaireParDefaut());

      }
      else
      {
        infoADeterminer = true;

        if (inscriptionReference != null)
        {
          composantAutresInfos.setCommanditaire(inscriptionReference
              .getCommanditaire());
        }
      }
    }

    if (needPlaque)
    {
      if (getProcessusInscription().isNoPlaqueParDefautConnu())
      {
        composantAutresInfos.setNoPlaque(getProcessusInscription()
            .getNoPlaqueParDefaut());

      }
      else
      {
        infoADeterminer = true;

        if (inscriptionReference != null)
        {
          getProcessusInscription().setNoPlaqueParDefaut(
              inscriptionReference.getNoPlaque());
        }
      }
    }

    if (needEquipe)
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

   * est appliquée à l'inscription. Enfin, les choix par défaut (club, commanditaire, etc...)
   * 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())
      {
        EquipeCourse equipeCourse = createNouvelleEquipe(model);
        inscription.setEquipeCourse(equipeCourse);
      }
      else
      {
        EquipeCourse equipeCourse = model.getEquipeExistante();
        inscription.setEquipeCourse(equipeCourse);
      }
    }

    if (inscription.getCourse().isClub())
    {
      getProcessusInscription().setClubParDefaut(inscription.getClub());
    }

    if (inscription.getCourse().isCommanditaire())
    {
      getProcessusInscription().setCommenditaireParDefaut(
          inscription.getCommanditaire());
    }

    if (inscription.getCourse().isPlaque())
    {
      getProcessusInscription().setNoPlaqueParDefaut(
          inscription.getNoPlaque());
    }

    return new CartListViewPage();
  }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

   */
  public CartItemInscription(ComposantInscription composantInscription)
  {
    super(composantInscription.getPersonne());

    inscription = new Inscription(composantInscription);
    tarification = composantInscription.getTarification();

  }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

        .generateDossiersInscriptions(evenement))
    {
      row = sheet.createRow((short) ++i);

      final Personne personneInscrite = dossier.getPersonneInscrite();
      final Inscription inscription = getInscription(dossier);

      row.createCell((short) 0).setCellValue(personneInscrite.getId());
      row.createCell((short) 1).setCellValue(
          new HSSFRichTextString(personneInscrite.getNoLicence()));
      row.createCell((short) 2).setCellValue(
          new HSSFRichTextString(inscription.getCategorie()
              .getNomComplet()));
      row.createCell((short) 3).setCellValue(
          new HSSFRichTextString(inscription.getNoPlaque()));
      row.createCell((short) 4).setCellValue(
          new HSSFRichTextString(personneInscrite.getNom()));
      row.createCell((short) 5).setCellValue(
          new HSSFRichTextString(personneInscrite.getPrenom()));

      Club club = inscription.getClub();
      if (club != null)
      {
        row.createCell((short) 6).setCellValue(
            new HSSFRichTextString(club.getNomComplet()));
      }

      row.createCell((short) 7).setCellValue(
          new HSSFRichTextString(inscription.getPersonne().getPays()
              .getCode()));
      row.createCell((short) 8).setCellValue(
          new HSSFRichTextString(inscription.getPersonne()
              .getCodeUCI()));
      HSSFUtils.createDateCell(wb, row, 9, inscription.getPersonne()
          .getDateNaissance());
      row.createCell((short) 10)
          .setCellValue(
              new HSSFRichTextString(inscription.getPersonne()
                  .getSexe()));
      row.createCell((short) 11).setCellValue(
          new HSSFRichTextString(personneInscrite.getAdresse()));
      row.createCell((short) 12).setCellValue(
          new HSSFRichTextString(personneInscrite.getVille()));
      row.createCell((short) 13).setCellValue(
          new HSSFRichTextString(personneInscrite.getCodePostal()));
      row.createCell((short) 14).setCellValue(
          new HSSFRichTextString(personneInscrite.getTelephone()));

      if (personneInscrite.getProvince() != null)
      {
        row.createCell((short) 15).setCellValue(
            new HSSFRichTextString(personneInscrite.getProvince()
                .getCode()));
      }
      else
      {
        row.createCell((short) 15).setCellValue(
            new HSSFRichTextString("N/A"));
      }

      row.createCell((short) 16).setCellValue(
          new HSSFRichTextString(personneInscrite.getAllergies()));
      row.createCell((short) 17).setCellValue(
          new HSSFRichTextString(personneInscrite
              .getEmergencyNumber()));
      row.createCell((short) 18).setCellValue(
          new HSSFRichTextString(personneInscrite
              .getEmergencyContact()));

      // --------- Information sur le compte de la personne inscrite (si applicable) -------
      if (personneInscrite.getCompte() != null)
      {
        row.createCell((short) 19).setCellValue(
            new HSSFRichTextString(personneInscrite.getCompte()
                .getUsername()));
      }

      row.createCell((short) 20).setCellValue(
          new HSSFRichTextString(inscription.getCommanditaire()));

      if (dossier.isInscritToAll())
      {
        row.createCell((short) 21).setCellValue(
            new HSSFRichTextString("X"));
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

    {
      throw new HypotheseException("Il doit y avoir au moins une "
          + "inscription dans le dossier. ");
    }

    Inscription premiereInscription = dossier.getMapCourseInscription()
        .values().iterator().next();
    for (Inscription inscription : dossier.getMapCourseInscription()
        .values())
    {
      if (!premiereInscription.getCategorie().equals(
          inscription.getCategorie()))
      {
        InscriptionsEvenementCompleteReport.log
            .warn("L'inscription no " + premiereInscription.getId()
                + " n'est pas identique à l'inscription "
                + inscription.getId()
                + ". C'est la première qui sera retournée. ");
      }
    }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

  {
    Validate.argNotNull(inscription, "inscription");

    final FactureItem item = factureItemService
        .findByInscription(inscription);
    Inscription inscriptionADetruire = inscription;

    if (item != null)
    {
      getGenericDao().detach(inscription);
      inscriptionADetruire = item.getInscription();
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

      row.createCell((short) 8).setCellValue(
          new HSSFRichTextString(personneInscrite
              .getEmergencyContact()));

      // --------- Information sur l'inscription -------
      final Inscription inscription = line.getInscription();
      final Club club = line.getClub();
      final Categorie categorie = line.getCategorie();

      if (club != null)
      {
        row.createCell((short) 9).setCellValue(
            new HSSFRichTextString(club.getNomComplet()));
      }
      else
      {
        row.createCell((short) 9).setCellValue(
            new HSSFRichTextString(inscription.getCommanditaire()));
      }

      try
      {
        final Integer plaqueInt = Integer.parseInt(inscription
            .getNoPlaque());
        row.createCell((short) 10).setCellValue(plaqueInt);
      }
      catch (final NumberFormatException e)
      {
        row.createCell((short) 10).setCellValue(
            new HSSFRichTextString(inscription.getNoPlaque()));
      }

      row.createCell((short) 11).setCellValue(
          new HSSFRichTextString(inscription.getCodePuce()));

      if (inscription.getNumeroPuce() != null)
      {
        row.createCell((short) 12).setCellValue(
            inscription.getNumeroPuce());
      }

      row.createCell((short) 13).setCellValue(
          new HSSFRichTextString(categorie.getNomComplet()));

      if (inscription.getEquipeCourse() != null)
      {
        row.createCell((short) 14).setCellValue(
            new HSSFRichTextString(inscription.getEquipeCourse()
                .getNomEquipe()));
      }
    }

    return wb;
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.