Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1684 → Rev 1685

/trunk/src/org/tela_botanica/client/modeles/structure/Structure.java
398,13 → 398,12
urls.set(type, url);
}
}
public int getNbrePersonne() {
 
public Integer getNbrePersonne() {
if (renvoyerValeurCorrecte("nbre_personne").equals("")) {
return 0;
} else {
return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne"));
return null;
}
return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne"));
}
public void setNbrePersonne(int nbrePersonne) {
this.set("nbre_personne", Integer.toString(nbrePersonne));
461,4 → 460,4
return sortie;
}
}
}
/trunk/src/org/tela_botanica/client/modeles/structure/StructureAsyncDao.java
253,7 → 253,7
"&cs_longitude=" + URL.encodeComponent(str.getLongitude()) +
"&cs_truk_telephone=" + URL.encodeComponent(str.getTelephone()) +
"&cs_truk_url=" + URL.encodeComponent(str.getUrl()) +
"&cs_nbre_personne=" + URL.encodeComponent(Integer.toString(str.getNbrePersonne())) +
"&cs_nbre_personne=" + (str.getNbrePersonne() != null ? str.getNbrePersonne() : "") +
"&cs_condition_acces=" + URL.encodeComponent(str.getConditionAcces())+
"&cs_condition_usage=" + URL.encodeComponent(str.getConditionUsage())+
"&cs_courriel=" + URL.encodeComponent(str.getCourriel());
/trunk/src/org/tela_botanica/client/vues/structure/StructureFormIdentification.java
376,10 → 376,13
dateFondationChp.setFieldLabel("Date de fondation");
fieldSetIdentite.add(dateFondationChp);
nbreTotalPersonneStructureChp = new ChampNombre();
nbreTotalPersonneStructureChp = new NumberField();
nbreTotalPersonneStructureChp.setFieldLabel("Nombre de personnes travaillant dans l'institution");
nbreTotalPersonneStructureChp.setFormat(NumberFormat.getFormat("#"));
nbreTotalPersonneStructureChp.setToolTip(i18nC.champNumerique());
nbreTotalPersonneStructureChp.setAllowDecimals(false);
nbreTotalPersonneStructureChp.setAllowNegative(false);
nbreTotalPersonneStructureChp.setEmptyText("");
fieldSetIdentite.add(nbreTotalPersonneStructureChp);
 
this.add(fieldSetIdentite);
866,4 → 869,4
public ModelData getValeurProjet() {
return projetsCombo.getValeur();
}
}
}