Examples of Categorie


Examples of org.xrace.model.Categorie

    Assert.assertEquals("XSE", categorie.getCodeCategorie());
  }

  public void testFindByCodeComplet2() throws Exception
  {
    Categorie categorie = getCategorieService().findByCodeComplet(
        "XSE-H-XC");

    Assert.assertNotNull(categorie);
    Assert.assertEquals("XSE", categorie.getCodeCategorie());
  }

Examples of org.xrace.model.Categorie

    validatePlaqueDoubleDansImportation(importation);

    for (ImportationDonneesTerrainLine line : importation.getLines())
    {
      Categorie categorie = validateCategorie(line);

      validatePlaqueCategorie(importation, line, categorie);

      if (line.getIdPersonne() != null)
      {

Examples of org.xrace.model.Categorie

   */
  private Categorie validateCategorie(ImportationDonneesTerrainLine line)
  {
    try
    {
      Categorie categorie = categorieService.findByCodeComplet(line
          .getCategorie());

      if (categorie == null)
      {
        line.addErreurImportation(Errors.CATEGORIE_INVALIDE);

Examples of org.xrace.model.Categorie

   */
  private void updateDonneesPlaque(ImportationDonneesTerrain importation,
      ImportationDonneesTerrainLine line, Personne personne)
  {
    Saison saison = importation.getSaison();
    Categorie categorie = categorieService.findByCodeComplet(line
        .getCategorie());

    if (categorie == null)
    {
      throw new HypotheseException("La catégorie est supposée exister. ");

Examples of org.xrace.model.Categorie

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

    final Course course = inscription.getCourse();
    final Categorie categorie = inscription.getCategorie();

    final Double prix = tarificationService.findByCourseCategorie(course,
        categorie).getPrixEnVigueur();
    inscription.setPrix(prix + priceAjustment);

Examples of org.xrace.model.Categorie

              .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()

Examples of org.xrace.model.Categorie

    final Evenement evenement = evenementService.find(rabaisEvenement
        .getEvenement().getId());
    Validate.argNotNull(evenement, "rabaisEvenement.evenement");

    final Categorie categorie = rabaisEvenement.getCategorie();
    Validate.argNotNull(categorie, "rabaisEvenement.categorie");

    final CategorieParticipante categorieParticipante = categorieParticipanteService
        .getCategorieParticipante(evenement.getSaison(), categorie);
    if (categorieParticipante == null)

Examples of org.xrace.model.Categorie

  public void submitBatchForm(RabaisEvenementBatchForm form)
  {
    for (SelectionForm<Categorie> selection : form.getSelectionCategorie())
    {
      Evenement evenement = form.getEvenement();
      Categorie categorie = selection.getObject();
      if (selection.isSelected())
      {
        RabaisEvenement rabais = findByEvenementCategorieNbCourses(form
            .getEvenement(), categorie, form.getNbCourses());
        if (rabais == null)

Examples of org.xrace.model.Categorie

              .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()

Examples of org.xrace.model.Categorie

          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()));
    }

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