1863,12 → 1863,12 |
if (info.getType().equals("modif_structure")) { |
Info.display("Modification d'une institution", info.toString()); |
} else if (info.getType().equals("ajout_structure")) { |
if (info.getMessage(0) != null && info.getMessage(0).matches("^[0-9]+$")) { |
Info.display("Ajout d'une Institution", "L'intitution a bien été ajoutée"); |
|
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) { |
String structureId = (String) info.getDonnee(0); |
Info.display("Ajout d'une Institution", "L'intitution '"+structureId+"' a bien été ajoutée"); |
|
// Suite à la récupération de l'id de l'institution nouvellement ajoutée nous ajoutons le personnel |
mediateur.ajouterStructureAPersonne(this, info.toString(), personnelAjoute); |
|
mediateur.ajouterStructureAPersonne(this, structureId, personnelAjoute); |
} else { |
Info.display("Ajout d'une Institution", info.toString()); |
} |