Examples of Categorie


Examples of net.fqsc.inscriptions.model.categories.Categorie

 
  @Override
  protected void populateItem(final ListItem item) {
    final InfoSaison infoSaison = (InfoSaison) item.getModelObject();
    final Personne personne = (Personne) this.personnes.retrieveByOid(infoSaison.getPersonne().getOid());
    final Categorie categorie = (Categorie) this.categories.retrieveByOid(infoSaison.getCategorie().getOid());
   
    final Map map = new HashMap();
    map.put(DisplayPlaquePersonne.TypeParameters.INFOSAISON, infoSaison);
    map.put(DisplayPlaquePersonne.TypeParameters.ISNEW, false);
    map.put(DisplayPlaquePersonne.TypeParameters.PERSONNE, personne);

Examples of net.fqsc.inscriptions.model.categories.Categorie

      throw new UniqueException(
          "Il existe déjà une catégorie ayant le même code, "
              + "sexe et discipline. ");
    }

    final Categorie categorieDb = new Categorie(this.domainModel);

    categorieDb.setCodeCategorie(categorie.getCodeCategorie());
    categorieDb.setNom(categorie.getNom());
    categorieDb.setAgeMax(categorie.getAgeMax());
    categorieDb.setAgeMin(categorie.getAgeMin());
    categorieDb.setSexe(categorie.getSexe());
    categorieDb.setNiveau(categorie.getNiveau());
    categorieDb.setDiscipline(categorie.getDiscipline());

    try
    {
      if (!this.categories.add(categorieDb))
      {

Examples of net.fqsc.inscriptions.model.categories.Categorie

   */
  public void updateCategorie(final Categorie categorie)
  {
    try
    {
      final Categorie beforeCategorie = (Categorie) this.categories.retrieveByOid(categorie.getOid());
     
      if (!this.categories.update(beforeCategorie, categorie))
      {
        throw new ValidationException("La validation de dmLite à échoué. ");
      }

Examples of net.fqsc.inscriptions.model.categories.Categorie

      isDh = true;
    }

    for (final Iterator iter = categories.iterator(); iter.hasNext();)
    {
      final Categorie categorie = (Categorie) iter.next();

      if (!categorie.getNom().equals("Hardtail"))
      {
        if (!course.getEvenement().getEndroit().equals("Barraute")
            || (course.getEvenement().getEndroit().equals(
                "Barraute") && categorie.getAgeMax() <= 16))
        {
          prix = 10;

          prix += (categorie.getAgeMax() > 16) ? 10 : 0;
          prix += (categorie.getNiveau().equals("elite")) ? 15 : 0;
          prix += (categorie.getNiveau().equals("expert")) ? 10 : 0;
          prix += isDh ? 20 : 0;

          if (isDh && categorie.getCodeCategorie().startsWith("D"))
          {
            tarifications.createTarification(prix, course,
                categorie);
          }

          if (!isDh && categorie.getCodeCategorie().startsWith("X"))
          {
            tarifications.createTarification(prix, course,
                categorie);
          }
        }

Examples of net.fqsc.inscriptions.model.categories.Categorie

    final Club club = this.utils.getClubs().getByNom("Subway/Genetik")
        .iterator().next();

    final Course course = evenement.getCourses().getByNom("Cross-Country")
        .iterator().next();
    Categorie categorie = this.utils.getCategories().getByCode("XSE", "M");

    final InfoSaison infoSaison = saison.getInfoSaison(personne, categorie);

    final Inscriptions inscriptions = course.getInscriptions();
    inscriptions.createInscription("Commenditaire", "ABC123", "12", course, personne,

Examples of net.fqsc.inscriptions.model.categories.Categorie

  }

  @Test
  public final void testCreateCategorie()
  {
    final Categorie categorie = new Categorie(this.context.getPersistentModel()
        .getDomainModel());

    categorie.setCodeCategorie("XX99");
    categorie.setNom("AAA");
    categorie.setAgeMax(39);
    categorie.setAgeMin(18);
    categorie.setSexe("M");
    categorie.setNiveau("expert");
    categorie.setDiscipline(this.disciplineXC);

    this.categorieCtrl.createCategorie(categorie);

    Assert.assertNotNull(this.categorieCtrl.getByCode("XX99", "M", this.disciplineXC));
  }

Examples of net.fqsc.inscriptions.model.categories.Categorie

  }

  @Test(expected = UniqueException.class)
  public final void testCreateCategorieValidateUnique()
  {
    final Categorie categorie = new Categorie(this.context.getPersistentModel()
        .getDomainModel());

    categorie.setCodeCategorie("XU13");
    categorie.setNom("AAA");
    categorie.setAgeMax(39);
    categorie.setAgeMin(18);
    categorie.setSexe("F");
    categorie.setNiveau("expert");
    categorie.setDiscipline(this.disciplineXC);

    this.categorieCtrl.createCategorie(categorie);
  }

Examples of net.fqsc.inscriptions.model.categories.Categorie

  }

  @Test
  public final void testUpdateCategorie()
  {
    final Categorie categorieUpdate = (Categorie) this.categorieXSE.copy();
    categorieUpdate.setAgeMax(90);
    this.categorieCtrl.updateCategorie(categorieUpdate);

    final Categorie categorieXSE2 = this.categorieCtrl.getByCode("XSE", "M",
        this.disciplineXC);

    Assert.assertNotNull(categorieXSE2);
    Assert.assertEquals(90, categorieXSE2.getAgeMax());
  }

Examples of net.virtuemart.www.VM_Categories.Categorie

                                   
        if (notToSync.containsKey(localCat.getName())) {
          continue;
        }
       
        Categorie category = new Categorie();
        category.setId(localCat.getID());
        category.setName(localCat.getName());
        category.setImage("");
        category.setDescription(localCat.getName());
        category.setParentcat("");
        category.setNumberofproducts("");
        category.setProducts_per_row("1");
        category.setFullimage("");
        category.setCategory_publish("Y");
        category.setCategory_browsepage("");
        category.setCategory_flypage("");
     
        externalsales.addCategory(category);
       
      }
     

Examples of net.virtuemart.www.VM_Categories.Categorie

                                   
        if (notToSync.containsKey(localCat.getName())) {
          continue;
        }
       
        Categorie category = new Categorie();
        category.setId(localCat.getID());
        category.setName(localCat.getName());
        category.setImage("");
        category.setDescription(localCat.getName());
        category.setParentcat("");
        category.setNumberofproducts("");
        category.setProducts_per_row("1");
        category.setFullimage("");
        category.setCategory_publish("Y");
        category.setCategory_browsepage("");
        category.setCategory_flypage("");
     
        externalsales.addCategory(category);
       
      }
     
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.