/trunk/src/org/tela_botanica/client/modeles/structure/Structure.java |
---|
405,8 → 405,8 |
} |
return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne")); |
} |
public void setNbrePersonne(int nbrePersonne) { |
this.set("nbre_personne", Integer.toString(nbrePersonne)); |
public void setNbrePersonne(Number nbrePersonne) { |
this.set("nbre_personne", nbrePersonne != null ? nbrePersonne.intValue() : null); |
} |
public String getConditionAcces() { |
/trunk/src/org/tela_botanica/client/vues/structure/StructureFormIdentification.java |
---|
748,9 → 748,7 |
structureCollectee.setCourriel(emailChp.getValue()); |
structureCollectee.setUrl(Structure.URL_SITE, urlChp.getValue()); |
if (nbreTotalPersonneStructureChp.getValue() != null) { |
structureCollectee.setNbrePersonne(nbreTotalPersonneStructureChp.getValue().intValue()); |
} |
structureCollectee.setNbrePersonne(nbreTotalPersonneStructureChp.getValue()); |
structureARetourner = identification = structureCollectee; |
} else { |
/trunk/src/org/tela_botanica/client/vues/structure/StructureDetailVue.java |
---|
192,7 → 192,7 |
identificationParams.set("acronyme", acronyme); |
identificationParams.set("statut", typePrive+typePublic); |
identificationParams.set("date_fondation", structure.getAnneOuDateFondationFormatLong()); |
identificationParams.set("nbre_personnel", structure.getNbrePersonne()); |
identificationParams.set("nbre_personnel", structure.getNbrePersonne() != null ? structure.getNbrePersonne() : ""); |
identificationParams.set("description", structure.getDescription()); |
identificationParams.set("acces", structure.getConditionAcces()); |
667,4 → 667,4 |
} |
return ok; |
} |
} |
} |