Package org.xrace.model.identification.personne

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


    this.infoSaisonService = infoSaisonService;
  }

  private void createComponents()
  {
    final Personne personne1 = getMergeContext().getPersonne1();
    final List<InfoSaison> infosSaison1 = getInfoSaisonService()
        .findByPersonneSaisonActive(personne1);
    this.add(new PlaqueDataViewPanel("plaques1", infosSaison1));

    final Personne personne2 = getMergeContext().getPersonne2();
    final List<InfoSaison> infosSaison2 = getInfoSaisonService()
        .findByPersonneSaisonActive(personne2);
    this.add(new PlaqueDataViewPanel("plaques2", infosSaison2));

    form.add(new PlaqueUpdateDataViewPanel("plaquesMerge",
View Full Code Here


    }

    @Override
    protected void populateItem(final Item item)
    {
      final Personne personne = (Personne) item.getModelObject();

      item.add(new Label("id", new PropertyModel(personne, "id")));
      item.add(new Label("prenom", new PropertyModel(personne, "prenom")));
      item.add(new Label("nom", new PropertyModel(personne, "nom")));
      item.add(new Label("dateNaissance", new PropertyModel(personne,
          "dateNaissance")));
      item.add(new Label("sexe", new PropertyModel(personne, "sexe")));

      Label lblCoach;
      if (personne.getCompte() != null
          && personne.getCompte().getCoachOf() != null)
      {
        lblCoach = new Label("clubCoach", personne.getCompte()
            .getCoachOf().getNomComplet());
      }
      else
      {
        lblCoach = new Label("clubCoach", "N/A");
      }

      item.add(lblCoach.setVisible(this.getCoachCellVisible()));

      if (personne.getProvince() != null)
      {
        item.add(new Label("province", new PropertyModel(personne
            .getProvince(), "nom")));
      }
      else
      {
        item.add(new Label("province", "N/A"));
View Full Code Here

  }

  public void testSaveAvecNouvellePersonne() throws Exception
  {
    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);
View Full Code Here

        .generateDossiersInscriptions(course))
    {
      row = sheet.createRow((short) ++i);

      // --------- Informations sur la personne inscrite -------
      final Personne personneInscrite = dossier.getPersonneInscrite();
      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()));
      row.createCell((short) 3).setCellValue(
          new HSSFRichTextString(personneInscrite.getAdresse()));
      row.createCell((short) 4).setCellValue(
          new HSSFRichTextString(personneInscrite.getVille()));
      row.createCell((short) 5).setCellValue(
          new HSSFRichTextString(personneInscrite.getCodePostal()));
      row.createCell((short) 6).setCellValue(
          new HSSFRichTextString(personneInscrite.getTelephone()));

      if (personneInscrite.getProvince() != null)
      {
        row.createCell((short) 7).setCellValue(
            new HSSFRichTextString(personneInscrite.getProvince()
                .getCode()));
      }
      else
      {
        row.createCell((short) 7).setCellValue(
            new HSSFRichTextString("N/A"));
      }

      row.createCell((short) 8)
          .setCellValue(
              new HSSFRichTextString(personneInscrite.getPays()
                  .getCode()));
      row.createCell((short) 9).setCellValue(
          new HSSFRichTextString(personneInscrite.getCodeUCI()));
      HSSFUtils.createDateCell(wb, row, 10, personneInscrite
          .getDateNaissance());
      row.createCell((short) 11).setCellValue(
          new HSSFRichTextString(personneInscrite.getSexe()));
      row.createCell((short) 12).setCellValue(
          new HSSFRichTextString(personneInscrite.getAllergies()));
      row.createCell((short) 13).setCellValue(
          new HSSFRichTextString(personneInscrite
              .getEmergencyNumber()));
      row.createCell((short) 14).setCellValue(
          new HSSFRichTextString(personneInscrite
              .getEmergencyContact()));
      row.createCell((short) 15).setCellValue(
          new HSSFRichTextString(personneInscrite.getNoLicence()));

      // --------- Information sur le compte de la personne inscrite (si applicable) -------
      if (personneInscrite.getCompte() != null)
      {
        row.createCell((short) 16).setCellValue(
            new HSSFRichTextString(personneInscrite.getCompte()
                .getUsername()));
      }

      // --------- Personne qui a effectué la transaction -------
      final Personne personneTransaction = dossier
          .getPersonneTransaction();
      if (personneTransaction != null)
      {
        row.createCell((short) 17).setCellValue(
            new HSSFRichTextString(personneTransaction
                .getNomPrenom()));
      }

      // --------- Information sur l'inscription -------
      final Inscription inscription = dossier.getInscription();
View Full Code Here

    Map<PersonneCategorie, InfoSaison> infoSaisonByPersonneMap = infoSaisonService
        .getInfoSaisonByPersonneMap(course.getEvenement().getSaison());

    for (final Inscription inscription : approved)
    {
      final Personne personneInscrite = inscription.getPersonne();
      final Categorie categorie = inscription.getCategorie();
      final Club club = inscription.getClub();
      final FactureItem factureItem = factureItemService
          .findByInscription(inscription);
      Facture facture;
      Transaction transaction;
      Personne personneTransaction;

      if (factureItem != null)
      {
        facture = factureItem.getFacture();
        transaction = facture.getTransaction();
View Full Code Here

    final Categorie categorieXmxF = getCategorieService().findByCode(
        "XMX30", "F", disciplineXC);
    final Categorie categorieDssF = getCategorieService().findByCode("DSS",
        "F", disciplineDH);

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

    AssignPlaqueResult result = getInfoSaisonService().assignPlaques(
        courseDH2);
    validateAssignPlaqueResult(courseDH2, result);
View Full Code Here

    final Discipline disciplineXC = getDisciplineService().findByNom("XC");

    final Categorie categorieXseH = getCategorieService().findByCode("XSE",
        "H", disciplineXC);

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

    AssignPlaqueResult result;

    result = getInfoSaisonService().assignPlaques(courseXC2);
View Full Code Here

      }

      row = sheet.createRow((short) ++i);

      // --------- Informations sur la personne inscrite -------
      final Personne personneInscrite = dossier.getPersonneInscrite();
      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()));

      // --------- Informations sur l'article -------
      final Article article = dossier.getArticle();
      final Choix choix = article.getChoix();

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

      // --------- Personne qui a effectué la transaction -------
      final Personne personneTransaction = dossier
          .getPersonneTransaction();

      row.createCell((short) 3).setCellValue(
          new HSSFRichTextString(choix.getDescription()));
      row.createCell((short) 4).setCellValue(
          new HSSFRichTextString(article.getTextFieldValue()));
      if (factureItem != null)
      {
        HSSFUtils.createCurrencyCell(wb, row, 5, factureItem.getPrix());
        prixTotalChoix += factureItem.getPrix();
      }
      row.createCell((short) 6).setCellValue(article.getQuantite());
      qteTotalChoix += article.getQuantite();

      if (personneTransaction != null)
      {
        row.createCell((short) 7).setCellValue(
            new HSSFRichTextString(personneTransaction
                .getNomPrenom()));
      }

      if (facture != null)
      {
View Full Code Here

  {
    final Federation paysCan = getFederationService().findByCode("CAN");
    final Federation paysUsa = getFederationService().findByCode("USA");
    Province provinceQc = getProvinceService().findByCode(paysCan, "QB");

    Personne personne;

    personne = new Personne("Doe", "John", "38 rue St-Joseph", "Quebec",
        "G1B 4R8", "418-661-9099",
        new GregorianCalendar(1970, 0, 1).getTime(), "H", provinceQc,
        paysCan, paysCan);
    getPersonneService().save(personne);
    Club club = getClubService().findByNom("Sportif Bromont").get(0);
    createTestCompte(personne, "jdoe@fqsc.net", "123", true, club);

    personne = new Personne("Deere", "John", "39 rue St-Joseph", "Quebec",
        "G1B 4R8", "418-661-9099",
        new GregorianCalendar(1972, 3, 1).getTime(), "H", provinceQc,
        paysCan, paysCan);
    getPersonneService().save(personne);
    createTestCompte(personne, "jdeere@fqsc.net", "123", false, null);

    personne = new Personne("Knussen", "Olaf", "34 Parker Street ",
        "Pittsfield", "01201", "418-661-9099", new GregorianCalendar(
            1967, 2, 31).getTime(), "H", getProvinceService()
            .findByCode(paysUsa, "CA"), paysUsa, paysUsa);
    getPersonneService().save(personne);
    createTestCompte(personne, "olaf@fqsc.net", "123", false, null);

    personne = new Personne("Côté", "Nathalie", "693 Boul. Trudel",
        "St-Boniface-de-Shawinigan", "H9B 7A1", "418-661-9099",
        new GregorianCalendar(1980, 5, 1).getTime(), "F", provinceQc,
        paysCan, paysCan);
    getPersonneService().save(personne);
    createTestCompte(personne, "ncote@fqsc.net", "123", false, null);

    personne = new Personne("Probert", "Bob", "6711 Main St.",
        "Springfield", "76121", "350-554-9910", new GregorianCalendar(
            1973, 9, 29).getTime(), "H", getProvinceService()
            .findByCode(paysUsa, "UT"), paysUsa, paysUsa);
    getPersonneService().save(personne);
    createTestCompte(personne, "thegoon@fqsc.net", "123", true, null);

    personne = new Personne("Domi", "Tie", "2992 Spadina Av.", "Toronto",
        "K8J 9A9", "416-771-9459",
        new GregorianCalendar(1967, 2, 31).getTime(), "H",
        getProvinceService().findByCode(paysCan, "ON"), paysCan,
        paysCan);
    getPersonneService().save(personne);
View Full Code Here

    createTestCompte(personne, "thegoon2@fqsc.net", "123", true, null);
  }

  private void createTestPersonnesAssociees()
  {
    final Personne personneJDoe = getPersonneService()
        .findByNomPrenomExact("Doe", "John").get(0);
    final Personne personneOKnussen = getPersonneService()
        .findByNomPrenomExact("Knussen", "Olaf").get(0);
    Personne personneBProbert = getPersonneService().findByNomPrenomExact(
        "Probert", "Bob").get(0);

    getPersonneAssocieeService().associer(personneJDoe, personneOKnussen,
        new GregorianCalendar(2008, 1, 24).getTime());
    getPersonneAssocieeService().associer(personneJDoe, personneBProbert,
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.