725,6 → 725,9 |
} |
|
} |
|
|
System.out.println(structureARetourner); |
return structureARetourner; |
} |
|
1134,11 → 1137,8 |
String specialite = personne.get("specialite"); |
personne.setSpecialite(specialite); |
|
// On met à faux le décès |
personne.setDeces(Personne.ETRE_VIVANT); |
|
// Ajout de la personne dans la liste correspondant à son état (ajouté ou modifié) |
if (personne.get("etat") != null && personne.get("etat").equals(StructureAPersonne.ETAT_AJOUTE)) { // Une personne ajoutée |
if (personne.get("etat") != null && personne.get("etat").equals(StructureAPersonne.ETAT_AJOUTE)) {// Une personne ajoutée |
personnelAjoute.put(""+i, personne); |
} else {// Une personne modifiée |
personnelModifie.put(personne.getId(), personne); |
1516,7 → 1516,7 |
StructureAPersonne structureAPersonne = ce.getModel(); |
String etat = structureAPersonne.get("etat"); |
|
if (etat!=null && !etat.equals(aDonnee.ETAT_AJOUTE) && structureAPersonne!=null && !UtilString.isEmpty(structureAPersonne.getId())) { |
if (!etat.equals(aDonnee.ETAT_AJOUTE) && !UtilString.isEmpty(structureAPersonne.getId())) { |
System.out.println("modifier"); |
ce.getModel().set("etat", aDonnee.ETAT_MODIFIE); |
} else { |