Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1693 → Rev 1691

/trunk/src/org/tela_botanica/client/vues/structure/StructureFormConservation.java
320,16 → 320,15
StructureConservation conservationCollectee = (StructureConservation) conservation.cloner(new StructureConservation());
// FORMATION
conservationCollectee.setFormation(formationMarkRGrpChp.getValue() == null ?
null :
formationMarkRGrpChp.getValue().getValueAttribute());
 
if (formationMarkRGrpChp.getValue() != null) {
conservationCollectee.setFormation(formationMarkRGrpChp.getValue().getValueAttribute());
}
// FORMATION INFO
conservationCollectee.setFormationInfo(formationChp.getValue());
// FORMATION INTERET
conservationCollectee.setFormationInteret(interetFormationMarkRGrpChp.getValue() == null ?
null :
interetFormationMarkRGrpChp.getValue().getValueAttribute());
if (interetFormationMarkRGrpChp.getValue() != null) {
conservationCollectee.setFormationInteret(interetFormationMarkRGrpChp.getValue().getValueAttribute());
}
// STOCKAGE LOCAL
conservationCollectee.setStockageLocal(creerChaineDenormalisee(localStockageTrukCacGrpChp.getValues()));
485,16 → 484,11
if (formulaireCourant.mode.equals(Formulaire.MODE_MODIFIER) && conservation != null) {
// FORMATION
// Bouton oui, à toujours l'index 0 donc on teste en fonction...
if(conservation.getFormation() != null) {
((Radio) formationMarkRGrpChp.get(conservation.getFormation())).setValue(true);
}
 
((Radio) formationMarkRGrpChp.get((conservation.getFormation().equals("1") ? 0 : 1))).setValue(true);
// FORMATION INFO
formationChp.setValue(conservation.getFormationInfo());
// FORMATION INTERET
if(conservation.getFormationInteret() != null) {
((Radio) interetFormationMarkRGrpChp.get(conservation.getFormationInteret())).setValue(true);
}
((Radio) interetFormationMarkRGrpChp.get((conservation.getFormationInteret().equals("1") ? 0 : 1))).setValue(true);
// STOCKAGE LOCAL
peuplerCasesACocher(conservation.getStockageLocal(), localStockageTrukCacGrpChp,localStockageAutreChp);
/trunk/src/org/tela_botanica/client/vues/DetailVue.java
190,13 → 190,6
}
return txtARetourner;
}
 
protected String formaterOuiNon(Integer intAFormater) {
if(intAFormater == null) return "";
if(intAFormater.intValue() == 0) return i18nC.non();
if(intAFormater.intValue() == 1) return i18nC.oui();
return "";
}
protected String formaterSautDeLigne(String chaineAFormater) {
String txtARetourner = chaineAFormater.replaceAll("\n", sautLigneTpl);
314,4 → 307,4
return chaineARetourner;
}
}
}
/trunk/src/org/tela_botanica/client/modeles/structure/StructureAsyncDao.java
261,9 → 261,9
if (structureId != null) {
postDonnees += "&csc_id_structure=" + URL.encodeComponent(structureId);
}
postDonnees += "&csc_mark_formation=" + (conservation.getFormation() != null ? conservation.getFormation() : "") +
postDonnees += "&csc_mark_formation=" + URL.encodeComponent(conservation.getFormation()) +
"&csc_formation=" + URL.encodeComponent(conservation.getFormationInfo()) +
"&csc_mark_formation_interet=" + (conservation.getFormationInteret() != null ? conservation.getFormationInteret() : "") +
"&csc_mark_formation_interet=" + URL.encodeComponent(conservation.getFormationInteret()) +
"&csc_truk_stockage_local=" + URL.encodeComponent(conservation.getStockageLocal()) +
"&csc_truk_stockage_meuble=" + URL.encodeComponent(conservation.getStockageMeuble()) +
"&csc_truk_stockage_parametre=" + URL.encodeComponent(conservation.getStockageParametre()) +
/trunk/src/org/tela_botanica/client/modeles/structure/StructureConservation.java
48,14 → 48,11
}
// FORMATION
public Integer getFormation() {
if (renvoyerValeurCorrecte("mark_formation").equals("")) {
return null;
}
return Integer.parseInt(renvoyerValeurCorrecte("mark_formation"));
public String getFormation() {
return renvoyerValeurCorrecte("mark_formation");
}
public void setFormation(String f) {
this.set("mark_formation", f != null ? Integer.parseInt(f) : null);
this.set("mark_formation", f);
}
// FORMATION INFO
67,14 → 64,11
}
// FORMATION INTÉRÊT
public Integer getFormationInteret() {
if (renvoyerValeurCorrecte("mark_formation_interet").equals("")) {
return null;
}
return Integer.parseInt(renvoyerValeurCorrecte("mark_formation_interet"));
public String getFormationInteret() {
return renvoyerValeurCorrecte("mark_formation_interet");
}
public void setFormationInteret(String f) {
this.set("mark_formation_interet", f != null ? Integer.parseInt(f) : null);
this.set("mark_formation_interet", f);
}
// STOCKAGE LOCAL
239,4 → 233,4
public void setAcquisitionTraitementInsecte(String type, Object valeur) {
ajouterChaineDenormaliseAvecType("truk_acquisition_traitement_insecte", type, valeur);
}
}
}