Line 285... |
Line 285... |
285 |
private void soumettreFormulaire() {
|
285 |
private void soumettreFormulaire() {
|
286 |
GWT.log("Soumission du formulaire", null);
|
286 |
GWT.log("Soumission du formulaire", null);
|
287 |
Structure structure = collecterStructureIdentification();
|
287 |
Structure structure = collecterStructureIdentification();
|
288 |
StructureConservation conservation = collecterStructureConservation();
|
288 |
StructureConservation conservation = collecterStructureConservation();
|
289 |
StructureValorisation valorisation = collecterStructureValorisation();
|
289 |
StructureValorisation valorisation = collecterStructureValorisation();
|
- |
|
290 |
// JAMAIS DE COMPARAISONS DE STRING AVEC == !!!!!! ON UTILISE equals ou compareTo
|
290 |
if (mode == "AJOUT") {
|
291 |
if (mode.equals("AJOUT")) {
|
291 |
//mediateur.ajouterStructure(this, structure);
|
292 |
//mediateur.ajouterStructure(this, structure);
|
292 |
} else if (mode == "MODIF") {
|
293 |
} else if (mode.equals("MODIF")) {
|
293 |
mediateur.modifierStructure(this, structure, conservation, valorisation);
|
294 |
mediateur.modifierStructure(this, structure, conservation, valorisation);
|
294 |
}
|
295 |
}
|
295 |
GWT.log("Info Structure envoyées :\n"+conservation.toString(), null);
|
296 |
GWT.log("Info Structure envoyées :\n"+conservation.toString(), null);
|
296 |
}
|
297 |
}
|