Package org.xrace.model.evenements

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


    {
      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

  {
    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

      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

      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

      for (FactureItem factureItem : facture.getFactureItems())
      {
        if (factureItem.getInscription() != null)
        {
          Inscription inscription = factureItem.getInscription();
          Course course = inscription.getCourse();
          Evenement evenement = course.getEvenement();
          Saison saison = evenement.getSaison();

          setFactureLieASecteur.add(saison.getSecteur());
        }
View Full Code Here

          new HSSFRichTextString(personneInscrite.getPrenom()));
      row.createCell((short) 2).setCellValue(
          new HSSFRichTextString(personneInscrite.getCodeUCI()));

      // --------- 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) 3).setCellValue(
            new HSSFRichTextString(club.getNomComplet()));
      }
      else
      {
        row.createCell((short) 3).setCellValue(
            new HSSFRichTextString(inscription.getCommanditaire()));
      }

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

      row.createCell((short) 5).setCellValue(
          new HSSFRichTextString(inscription.getCodePuce()));
      if (inscription.getNumeroPuce() != null)
      {
        row.createCell((short) 6).setCellValue(
            inscription.getNumeroPuce());
      }
      row.createCell((short) 7).setCellValue(
          new HSSFRichTextString(categorie.getNomComplet()));
    }
View Full Code Here

              .getVille(), "'", "")));
      row.createCell((short) 7).setCellValue(
          personneInscrite.getVersion());

      // --------- 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) 8).setCellValue(
            new HSSFRichTextString(StringUtils.replace(club
                .getNomComplet(), "'", "")));
      }
      else
      {
        row.createCell((short) 8).setCellValue(
            new HSSFRichTextString(StringUtils.replace(inscription
                .getCommanditaire(), "'", "")));
      }

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

      if (line.getInfoSaison() != null)
      {
        row.createCell((short) 10).setCellValue(
            line.getInfoSaison().getVersion());
      }

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

      row.createCell((short) 12).setCellValue(
          new HSSFRichTextString(StringUtils.replace(categorie
              .getCodeComplet(), "'", "")));
    }
View Full Code Here

        .findByPersonneOrderByIdDesc(personneJDoe).size());
  }

  public void testSave() throws Exception
  {
    final Inscription inscription = new Inscription();
    inscription.setPersonne(personneJDoe);
    inscription.setCategorie(categorieXjsH);
    inscription.setCourse(courseXc5);

    getInscriptionService().save(inscription);

    Assert.assertEquals(1, getInscriptionService().findByCourseApproved(
        courseXc5).size());
View Full Code Here

  {
    Federation federation = getFederationService().findByCode("FRA");
    Personne personne = new Personne("Morane", "Bob", "783 De la rue",
        "Boport", "H1J 3T7", "997-5454", new GregorianCalendar(1970, 0,
            1).getTime(), "H", null, federation, federation);
    final Inscription inscription = new Inscription();
    inscription.setPersonne(personne);
    inscription.setCategorie(categorieXjsH);
    inscription.setCourse(courseXc5);

    getInscriptionService().save(inscription);

    Assert.assertEquals(1, getInscriptionService().findByCourseApproved(
        courseXc5).size());
View Full Code Here

TOP

Related Classes of org.xrace.model.evenements.Inscription

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.