Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 604 → Rev 605

/trunk/src/org/tela_botanica/client/vues/StructureForm.java
491,7 → 491,13
}
private void peuplerStructureValorisation() {
if (valorisation != null && valorisationOnglet.getData("acces").equals(false)) {
if (mode.equals(MODE_AJOUTER)) {
// Indique que l'onglet a pu être modifié pour la méthode collecter...
valorisationOnglet.setData("acces", true);
// Initialisation de l'objet Structure
valorisation = new StructureValorisation();
}
if (mode.equals(MODE_MODIFIER) && valorisation != null && valorisationOnglet.getData("acces").equals(false)) {
// ACTION :
//TODO : check below:
((Radio) actionMarkRGrpChp.get((valorisation.getAction().equals("1") ? 0 : 1))).setValue(true);
537,6 → 543,7
private StructureConservation collecterStructureConservation() {
StructureConservation conservationARetourner = null;
if (conservationOnglet.getData("acces").equals(true)) {
GWT.log("Début récupé", null);
// Création de l'objet
StructureConservation conservationCollectee = (StructureConservation) conservation.cloner(new StructureConservation());
624,6 → 631,7
// Retour de l'objet
if (!conservationCollectee.comparer(conservation)) {
GWT.log("Collecte différent de Retour", null);
conservationARetourner = conservation = conservationCollectee;
}
}
631,7 → 639,13
}
private void peuplerStructureConservation() {
if (conservation != null && conservationOnglet.getData("acces").equals(false)) {
if (mode.equals(MODE_AJOUTER)) {
// Indique que l'onglet a pu être modifié pour la méthode collecter...
conservationOnglet.setData("acces", true);
// Initialisation de l'objet Structure
conservation = new StructureConservation();
}
if (mode.equals(MODE_MODIFIER) && conservation != null && conservationOnglet.getData("acces").equals(false)) {
// FORMATION
// Bouton oui, à toujours l'index 0 donc on teste en fonction...
((Radio) formationMarkRGrpChp.get((conservation.getFormation().equals("1") ? 0 : 1))).setValue(true);