Package org.xrace.model.evenements

Examples of org.xrace.model.evenements.Course


          final Saison saison = (Saison) selectedItem;
          responsePage = new SaisonUpdatePage(saison, false);
        }
        else if (selectedItem instanceof Course)
        {
          final Course course = (Course) selectedItem;
          responsePage = new CourseUpdatePage(course, false);
        }

        if (responsePage == null)
        {
View Full Code Here


    getCategorieService().save(categorie);
    createTestCategoriesParticipantes(categorie, 2650, 2699, 2650, 2659);

    for (final Object element : getCourseService().list())
    {
      final Course course = (Course) element;

      createTestTarifications(course);
    }
  }
View Full Code Here

        getDisciplineService().findByNom("XC"));
    Saison saison2007 = getSaisonService().findByAnnee(2007).iterator()
        .next();
    Evenement evenement1 = getEvenementService().getEvenementParNo(
        saison2007, 1);
    Course courseXc1 = getCourseService().getCourseParNom(evenement1,
        "Cross-Country");

    Inscription inscription = new Inscription();
    inscription.setPersonne(personne);
    inscription.setCategorie(categorie);
View Full Code Here

    Saison saison2007 = getSaisonService().findByAnnee(2007).iterator()
        .next();

    Evenement evenement4 = getEvenementService().getEvenementParNo(
        saison2007, 4);
    Course courseRvm = getCourseService().getCourseParNom(evenement4,
        "Raid Vélo Mag");

    EquipeCourse equipeCourse = new EquipeCourse();
    equipeCourse.setCourse(courseRvm);
    equipeCourse.setCreateur(personne2);
View Full Code Here

    final Evenement evenement1 = getEvenementService().getEvenementParNo(
        saison2007, 1);
    final Evenement evenement2 = getEvenementService().getEvenementParNo(
        saison2007, 2);

    final Course courseXC1 = getCourseService().getCourseParNom(evenement1,
        "Cross-Country");
    final Course courseXC2 = getCourseService().getCourseParNom(evenement2,
        "Cross-Country");
    final Course courseDH2 = getCourseService().getCourseParNom(evenement2,
        "Downhill");

    final Cart cartJdoe1 = new Cart();
    final Cart cartJdoe2 = new Cart();
View Full Code Here

    final Evenement evenement2 = getEvenementService().getEvenementParNo(
        saison2007, 2);
    final Evenement evenement4 = getEvenementService().getEvenementParNo(
        saison2007, 4);

    final Course courseXC1 = getCourseService().getCourseParNom(evenement1,
        "Cross-Country");
    final Course courseDH2 = getCourseService().getCourseParNom(evenement2,
        "Downhill");
    final Course courseXC4 = getCourseService().getCourseParNom(evenement4,
        "Cross-Country");
    final Course courseDH4 = getCourseService().getCourseParNom(evenement4,
        "Downhill");

    final Tarification tarificationXmxF1 = getTarificationService()
        .findByCourseCategorie(courseXC1, categorieXmxF);
    final Tarification tarificationDssF2 = getTarificationService()
View Full Code Here

    row.createCell((short) 12).setCellValue(
        new HSSFRichTextString("Toutes"));

    for (Map.Entry<Course, Integer> entry : mapCourseIndex.entrySet())
    {
      Course course = entry.getKey();
      short index = entry.getValue().shortValue();
      row.createCell(index).setCellValue(
          new HSSFRichTextString(course.getNom()));
    }

    HSSFUtils.applyStyle(row, style);

    // --------- Liste des inscrits -------
    int i = 3;

    for (final DossierInscriptionEvenement dossier : dossierInscriptionService
        .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"));
      }

      for (Map.Entry<Course, Integer> entry : mapCourseIndex.entrySet())
      {
        Course course = entry.getKey();
        short index = entry.getValue().shortValue();

        if (dossier.getMapCourseInscription().containsKey(course))
        {
          row.createCell(index).setCellValue(
View Full Code Here

TOP

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

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.