Subversion Repositories eFlore/Applications.coel

Rev

Rev 1293 | Rev 1327 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1293 Rev 1310
Line 723... Line 723...
723
			if (!structureCollectee.comparer(identification)) {
723
			if (!structureCollectee.comparer(identification)) {
724
				structureARetourner = identification = structureCollectee;
724
				structureARetourner = identification = structureCollectee;
725
			}
725
			}
Line 726... Line 726...
726
			
726
			
727
		}
-
 
728
		
-
 
729
		
-
 
730
		System.out.println(structureARetourner);
727
		}
731
		return structureARetourner;
728
		return structureARetourner;
Line 732... Line 729...
732
	}
729
	}
733
	
730
	
Line 1135... Line 1132...
1135
					
1132
					
1136
					// Gestion de la spécialité
1133
					// Gestion de la spécialité
1137
					String specialite = personne.get("specialite");
1134
					String specialite = personne.get("specialite");
Line -... Line 1135...
-
 
1135
					personne.setSpecialite(specialite);
-
 
1136
					
-
 
1137
					// On met à faux le décès
1138
					personne.setSpecialite(specialite);
1138
					personne.setDeces(Personne.ETRE_VIVANT);
1139
					
1139
					
1140
					// Ajout de la personne dans la liste correspondant à son état (ajouté ou modifié)
1140
					// Ajout de la personne dans la liste correspondant à son état (ajouté ou modifié)
1141
					if (personne.get("etat") != null && personne.get("etat").equals(StructureAPersonne.ETAT_AJOUTE)) {// Une personne ajoutée
1141
					if (personne.get("etat") != null && personne.get("etat").equals(StructureAPersonne.ETAT_AJOUTE)) { // Une personne ajoutée
1142
						personnelAjoute.put(""+i, personne);
1142
						personnelAjoute.put(""+i, personne);
1143
					} else {// Une personne modifiée
1143
					} else {// Une personne modifiée
1144
						personnelModifie.put(personne.getId(), personne);
1144
						personnelModifie.put(personne.getId(), personne);
Line 1514... Line 1514...
1514
			public void handleEvent(StoreEvent<StructureAPersonne> ce) {
1514
			public void handleEvent(StoreEvent<StructureAPersonne> ce) {
Line 1515... Line 1515...
1515
 
1515
 
1516
				StructureAPersonne structureAPersonne = ce.getModel();
1516
				StructureAPersonne structureAPersonne = ce.getModel();
Line 1517... Line 1517...
1517
				String etat = structureAPersonne.get("etat");
1517
				String etat = structureAPersonne.get("etat");
1518
				
1518
				
1519
				if (!etat.equals(aDonnee.ETAT_AJOUTE) && !UtilString.isEmpty(structureAPersonne.getId()))	{
1519
				if (etat!=null && !etat.equals(aDonnee.ETAT_AJOUTE) && structureAPersonne!=null && !UtilString.isEmpty(structureAPersonne.getId()))	{
1520
					System.out.println("modifier");
1520
					System.out.println("modifier");
1521
					ce.getModel().set("etat", aDonnee.ETAT_MODIFIE);
1521
					ce.getModel().set("etat", aDonnee.ETAT_MODIFIE);
1522
				} else {
1522
				} else {