Examples of Inscription


Examples of org.xrace.model.evenements.Inscription

        personneJDoe).size());
  }

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

    getInscriptionService().ajustPriceAndSave(inscription1, 1.00);

    Assert.assertEquals(21.00, inscription1.getPrix().doubleValue(), 0.0);

    final Inscription inscription2 = new Inscription();
    inscription2.setPersonne(personneNCote);
    inscription2.setCategorie(categorieXjsH);
    inscription2.setCourse(courseXc5);

    getInscriptionService().ajustPriceAndSave(inscription2, -1.00);

    Assert.assertEquals(19.00, inscription2.getPrix().doubleValue(), 0.0);
  }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

            new HSSFRichTextString(personneTransaction
                .getNomPrenom()));
      }

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

      row.createCell((short) 18).setCellValue(inscription.getId());

      if (club != null)
      {
        row.createCell((short) 19).setCellValue(
            new HSSFRichTextString(club.getNomComplet()));
      }

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

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

      row.createCell((short) 22).setCellValue(
          new HSSFRichTextString(inscription.getCodePuce()));
      if (inscription.getNumeroPuce() != null)
      {
        row.createCell((short) 23).setCellValue(
            inscription.getNumeroPuce());
      }
      row.createCell((short) 24).setCellValue(
          new HSSFRichTextString(categorie.getNomComplet()));

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

      // --------- Information sur la facture et la transaction -------
      final Facture facture = dossier.getFacture();
      final FactureItem factureItem = dossier.getFactureItem();
      final Transaction transaction = dossier.getTransaction();

      if (facture != null)
      {
        row.createCell((short) 26).setCellValue(facture.getId());
      }

      if (inscription.getPrix() != null)
      {
        row.createCell((short) 27).setCellValue(inscription.getPrix());
      }
      else if (factureItem != null)
      {
        row.createCell((short) 28).setCellValue(
            new HSSFRichTextString(transaction.getTxID()));
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

    Assert.assertEquals("13", getInfoSaisonService()
        .findBySaisonPersonneCategorie(saison2007, personneJDoe,
            categorieXseH).getPlaqueUnique());

    Inscription inscription = getInscriptionService().findByPersonneCourse(
        personneJDoe, courseXC1);
    Assert.assertEquals("13", inscription.getNoPlaque());

    inscription = getInscriptionService().findByPersonneCourse(
        personneJDoe, courseXC2);
    Assert.assertEquals("12", inscription.getNoPlaque());
  }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

    Assert.assertEquals(course.getInscriptions().size(), result
        .getEntries().size());

    for (final Inscription inscription : course.getInscriptions())
    {
      final Inscription resInscription = result.getEntry(inscription)
          .getInscription();
      Assert.assertNotNull(resInscription);

      Assert.assertEquals(inscription, resInscription);
      Assert.assertEquals(inscription.getNoPlaque(), resInscription
          .getNoPlaque());
    }

    for (final AssignPlaqueResult.Entry entry : result.getEntries())
    {
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

    Evenement evenement1 = getEvenementService().getEvenementParNo(
        saison2007, 1);
    Course courseXc1 = getCourseService().getCourseParNom(evenement1,
        "Cross-Country");

    Inscription inscription = new Inscription();
    inscription.setPersonne(personne);
    inscription.setCategorie(categorie);
    inscription.setCourse(courseXc1);

    getInscriptionService().save(inscription);
  }
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

    equipeCourse.setCreateur(personne2);
    equipeCourse.setNomEquipe("Les goons");

    getEquipeCourseService().save(equipeCourse);

    Inscription inscription1 = new Inscription();
    inscription1 = new Inscription();
    inscription1.setPersonne(personne1);
    inscription1.setCategorie(categorie);
    inscription1.setCourse(courseRvm);
    inscription1.setEquipeCourse(equipeCourse);

    getInscriptionService().save(inscription1);

    Inscription inscription2 = new Inscription();
    inscription2 = new Inscription();
    inscription2.setPersonne(personne2);
    inscription2.setCategorie(categorie);
    inscription2.setCourse(courseRvm);
    inscription2.setEquipeCourse(equipeCourse);

    getInscriptionService().save(inscription2);
  }
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(inscription.getCommanditaire()));

      if (dossier.isInscritToAll())
      {
        row.createCell((short) 12).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()))
      {
        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

  public ManualRegistrationEntryPage(final ManualRegistrationContext context)
  {
    super();
    this.context = context;

    inscription = new Inscription();
    inscription.setPersonne(context.getPersonne());
    inscription.setCourse(context.getCourse());
    inscription.setCategorie(context.getCategorie());

    setPriceAjustment(context.getPriceAjustment());
View Full Code Here

Examples of org.xrace.model.evenements.Inscription

      {
        escompteItemService.save(escompteItem);

        //Ajuter le prix de l'inscription, selon l'escompte.
        final FactureItem factureItem = escompteItem.getFactureItem();
        final Inscription inscription = factureItem.getInscription();

        inscription.setPrix(factureItem.getPrix()
            - escompteItem.getMontant());
        inscriptionService.save(inscription);
      }
    }
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.