Package org.xrace.model.identification.personne

Examples of org.xrace.model.identification.personne.Personne


    getClubService().save(new Club("Rocky Mountain/Business Objects"));
  }

  private void createMembresClub()
  {
    Personne personne = getPersonneService().list().get(0);
    Personne personne2 = getPersonneService().list().get(1);

    Club club = getClubService().list().get(0);
    Assert.assertNotNull(club);

    club.getMembres().add(personne);
View Full Code Here


    }
  }

  private void createTestInscriptions()
  {
    Personne personne = getPersonneService().findByNomPrenomExact(
        "Knussen", "Olaf").get(0);
    Categorie categorie = getCategorieService().findByCode("XSE", "H",
        getDisciplineService().findByNom("XC"));
    Saison saison2007 = getSaisonService().findByAnnee(2007).iterator()
        .next();
View Full Code Here

    getInscriptionService().save(inscription);
  }

  private void createTestInscriptionsEquipe()
  {
    Personne personne1 = getPersonneService().findByNomPrenomExact(
        "Knussen", "Olaf").get(0);
    Personne personne2 = getPersonneService().findByNomPrenomExact(
        "Probert", "Bob").get(0);
    Categorie categorie = getCategorieService().findByCode("XSE", "H",
        getDisciplineService().findByNom("XC"));
    Saison saison2007 = getSaisonService().findByAnnee(2007).iterator()
        .next();
View Full Code Here

    getInscriptionService().save(inscription2);
  }

  private void createTestInfosSaison()
  {
    final Personne personne = getPersonneService().findByNomPrenomExact(
        "Doe", "John").get(0);
    final Categorie categorie = getCategorieService().findByCode("XSE",
        "H", getDisciplineService().findByNom("XC"));

    createTestInfosSaison(personne, "12", categorie);

    final Personne personne2 = getPersonneService().findByNomPrenomExact(
        "Deere", "John").get(0);
    final Categorie categorie2 = getCategorieService().findByCode("XSS",
        "H", getDisciplineService().findByNom("XC"));

    createTestInfosSaison(personne2, "3021", categorie2);
View Full Code Here

  private void createTestFactureJDoe()
  {
    Facture facture;

    final Personne personneJDoe = getPersonneService()
        .findByNomPrenomExact("Doe", "John").get(0);
    final Personne personneOKnussen = getPersonneService()
        .findByNomPrenomExact("Knussen", "Olaf").get(0);

    final Discipline disciplineXC = getDisciplineService().findByNom("XC");
    final Discipline disciplineDH = getDisciplineService().findByNom("DH");
View Full Code Here

  private void createTestFacturesNCote()
  {
    Facture facture;

    final Personne personneNCote = getPersonneService()
        .findByNomPrenomExact("Côté", "Nathalie").get(0);

    final Discipline disciplineXC = getDisciplineService().findByNom("XC");
    final Discipline disciplineDH = getDisciplineService().findByNom("DH");
View Full Code Here

    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(
View Full Code Here

    for (final DossierArticleParPersonne dossier : dossiers)
    {
      row = sheet.createRow((short) ++i);

      // --------- Informations sur la personne inscrite -------
      final Personne personneInscrite = dossier.getPersonneInscrite();
      final Transaction transaction = dossier.getLatestTransaction();
      row.createCell((short) 0).setCellValue(personneInscrite.getId());
      row.createCell((short) 1).setCellValue(
          new HSSFRichTextString(personneInscrite.getNom()));
      row.createCell((short) 2).setCellValue(
          new HSSFRichTextString(personneInscrite.getPrenom()));
      if (transaction != null)
      {
        row.createCell((short) 3).setCellValue(
            new HSSFRichTextString(transaction.getPersonne()
                .getNomPrenom()));
View Full Code Here

    }
  }

  private void sendConfirmationMail(Transaction transaction)
  {
    Personne personne = transaction.getPersonne();
    Compte compte = personne.getCompte();

    if (compte == null)
    {
      throw new HypotheseException("Une personne a effectué "
          + "une transaction sans avoir de compte. ");
View Full Code Here

TOP

Related Classes of org.xrace.model.identification.personne.Personne

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.