Examples of Inscription


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

Examples of org.xrace.model.evenements.Inscription

      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

Examples of org.xrace.model.evenements.Inscription

          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

Examples of org.xrace.model.evenements.Inscription

              .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

Examples of org.xrace.model.evenements.Inscription

        .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

Examples of org.xrace.model.evenements.Inscription

  {
    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

Examples of org.xrace.model.evenements.Inscription

  public void testSaveValideCategorie() throws Exception
  {
    try
    {
      final Inscription inscription = new Inscription();
      inscription.setPersonne(personneJDoe);
      inscription.setCategorie(categorieDjsH);
      inscription.setCourse(courseXc5);

      getInscriptionService().save(inscription);

      Assert.fail();
    }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

  public void testSaveValideDejaInscrit() throws Exception
  {
    try
    {
      final Inscription inscription = new Inscription();
      inscription.setPersonne(personneJDoe);
      inscription.setCategorie(categorieXjsH);
      inscription.setCourse(courseXc1);

      getInscriptionService().save(inscription);

      Assert.fail();
    }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

    }
  }

  public void testDeleteNoFactureItem() throws Exception
  {
    Inscription inscription = getInscriptionService().findByPersonneCourse(
        personneOKnussen, courseXc1);
    getInscriptionService().delete(inscription);

    Assert.assertEquals(2, getInscriptionService().findByCourseApproved(
        courseXc1).size());
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

        personneOKnussen).size());
  }

  public void testDeleteWithFactureItem() throws Exception
  {
    Inscription inscription = getInscriptionService().findByPersonneCourse(
        personneJDoe, courseXc1);
    getInscriptionService().delete(inscription);

    Assert.assertEquals(2, getInscriptionService().findByCourseApproved(
        courseXc1).size());
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.