Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1472 → Rev 1473

/branches/v1.1-aramon/src/org/tela_botanica/client/vues/structure/StructureForm.java
2027,8 → 2027,6
}
public void rafraichir(Object nouvellesDonnees) {
Debug.log("nouvellesDonnees="+nouvellesDonnees.getClass().toString());
try {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
2046,22 → 2044,15
controlerFermeture();
}
public void rafraichirInformation(Information info) {
Debug.log("rafraichirInformation");
public void rafraichirInformation(Information info) {
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
}
 
Debug.log("ici");
if (info.getType().equals("modif_structure")) {
InfoLogger.display("Modification d'une institution", info.toString());
} else if (info.getType().equals("ajout_structure")) {
Debug.log("1");
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
Debug.log("2");
String structureId = (String) info.getDonnee(0);
InfoLogger.display("Ajout d'une Institution", "L'intitution '"+structureId+"' a bien été ajoutée");
2081,16 → 2072,11
testerLancementRafraichirPersonnel();
} else if (info.getType().equals("selection_structure")) {
InfoLogger.display("Modification d'une institution", info.toString());
Debug.log("3");
String titre = i18nC.titreModifFormStructurePanneau();
if (info.getDonnee(0) != null) {
Debug.log("3.2");
Debug.log("info.getDonnee(0)="+info.getDonnee(0).toString());
try {
identification = (Structure) info.getDonnee(0);
if (onglets.getSelectedItem().equals(identificationOnglet)) {
Debug.log("3.3");
peuplerStructureIdentification();
}
} catch(Exception e) {
2097,30 → 2083,24
GWT.log("Problème de cast. "+info.getDonnee(0)+" ne peut être casté en Structure", e);
}
// Composition du titre
titre += " - ID : "+identification.getId();
}
if (info.getDonnee(1) != null) {
Debug.log("4");
conservation = (StructureConservation) info.getDonnee(1);
if (onglets.getSelectedItem().equals(conservationOnglet)) {
peuplerStructureConservation();
Debug.log("4.1");
}
}
if (info.getDonnee(2) != null) {
Debug.log("5");
valorisation = (StructureValorisation) info.getDonnee(2);
if (valorisation != null) {
if (onglets.getSelectedItem().equals(valorisationOnglet)) {
peuplerStructureValorisation();
Debug.log("5.1");
}
}
}
} else if (info.getType().equals("liste_structure_a_personne")) {
Debug.log("6");
if (info.getDonnee(0) != null) {
personnel = (StructureAPersonneListe) info.getDonnee(0);