Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1590 → Rev 1784

/trunk/src/org/tela_botanica/client/vues/personne/PersonneDetailVue.java
47,8 → 47,6
private TabItem tabLogos;
private TabItem tabPublications;
private HashMap hmLabelFieldRegion = new HashMap();
private Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
private Personne personneAAfficher = null;
 
226,10 → 224,8
+ " <div class='{css_fieldset}'>"
+ " <h2>Adresse personnelle:</h2>"
+ " <b>Adresse:</b> {adresse01} <br />"
+ " <b>Complément d'adresse: </b>{adresse02} <br />"
+ " <b>Boite postale: </b>{boitePostale}<br />"
+ " <b>Code postal:</b>{codePostal} <br />"
+ " <b>Région:</b>{region}<br />"
+ " <b>Pays :</b><span style='uppercase'>{pays}</span><br />"
+ "</div>";
// Adresses :
236,8 → 232,6
Params paramAdresseTpl = new Params();
paramAdresseTpl.set("adresse01", (String) personne
.obtenirValeurChamp("adresse_01"));
paramAdresseTpl.set("adresse02", (String) personne
.obtenirValeurChamp("adresse_02"));
paramAdresseTpl.set("boitePostale", (String) personne
.obtenirValeurChamp("bp"));
paramAdresseTpl.set("codePostal", (String) personne
244,8 → 238,6
.obtenirValeurChamp("code_postal"));
paramAdresseTpl.set("ville", (String) personne
.obtenirValeurChamp("ville"));
paramAdresseTpl.set("region", (String) personne
.obtenirValeurChamp("ce_truk_region"));
paramAdresseTpl.set("pays", construireTxtListeOntologie((String) personne
.obtenirValeurChamp("ce_truk_pays")));
 
274,7 → 266,6
afficherOnglet(tplInfosNat, prmInfosNat, tabInfosNat);
tabAdresse.setStyleAttribute("padding", "15px");
 
changerLabelRegions();
layout();
}
}
313,35 → 304,7
+ " <h2>Description:</h2>"
+ " {description}<br />" + " </div>" + "<br />";
}
 
private void changerLabelRegions() {
Collection<String> colClesComposants = hmLabelFieldRegion.keySet();
Iterator<String> itComposants = colClesComposants.iterator();
 
while (itComposants.hasNext()) {
String region = itComposants.next();
mediateur.obtenirValeurEtRafraichir(this, "region", region, sequenceur);
}
}
 
private void ajouterLabelField(FieldSet fs, String tfLabel, Object tfValue) {
if ((tfValue != null) && (!tfValue.toString().trim().equals(""))) {
 
LabelField tf = new LabelField();
 
tf.setFieldLabel(tfLabel + ":");
if ((tfLabel == null) || ("".equals(tfLabel))) {
tf.setHideLabel(true);
tf.setStyleAttribute("margin", "0 0 0 105px");
}
tf.setValue(tfValue);
 
// Ajout au fieldSet
fs.add(tf);
}
}
private void initialiserTableauPublicationsLieesTpl() {
tableauPublicationsLieesTpl =