Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1309 Rev 1326
Line 864... Line 864...
864
			Information info = (Information) nouvellesDonnees;
864
			Information info = (Information) nouvellesDonnees;
865
			if (info.getType().equals("ajout_personne"))	{
865
			if (info.getType().equals("ajout_personne"))	{
866
				if (info.getDonnee(0) != null) {
866
				if (info.getDonnee(0) != null) {
867
					personneSelectionnee.setId(info.getDonnee(0).toString());
867
					personneSelectionnee.setId(info.getDonnee(0).toString());
868
					GWT.log("Ajout de la personne " + personneSelectionnee.getId(), null);
868
					GWT.log("Ajout de la personne " + personneSelectionnee.getId(), null);
-
 
869
					this.personne = personneSelectionnee;
-
 
870
					this.personneId = personneSelectionnee.getId();
869
					InfoLogger.display("Enregistrement", "La personne a été ajoutée (id: " + personneSelectionnee.getId() + ")");
871
					InfoLogger.display("Enregistrement", "La personne a été ajoutée (id: " + personneSelectionnee.getId() + ")");
870
					repandreRafraichissement();
872
					repandreRafraichissement();
871
					if (clicBoutonvalidation)	{
873
					if (clicBoutonvalidation)	{
872
						mediateur.clicMenu(menuIdCourant);
874
						mediateur.clicMenu(menuIdCourant);
873
					}
875
					}
Line 894... Line 896...
894
				
896
				
Line 895... Line 897...
895
				binderPersonne(personne);
897
				binderPersonne(personne);
Line -... Line 898...
-
 
898
				
-
 
899
				mettreAJourPersonne(personne);
-
 
900
				
896
				
901
				this.personne = personne;
897
				mettreAJourPersonne(personne);
902
				this.personneId = personne.getId();
898
				
903
				
899
				nouvellesDonnees = null;
904
				nouvellesDonnees = null;
900
			} else {
905
			} else {
Line 1369... Line 1374...
1369
			} else {
1374
			} else {
1370
				lstMessageErreur.add("La date de "+typeDate+" n'est pas au format JJ/MM/AAAA ou MM/AAAA ou AAAA.");
1375
				lstMessageErreur.add("La date de "+typeDate+" n'est pas au format JJ/MM/AAAA ou MM/AAAA ou AAAA.");
1371
			}
1376
			}
1372
		}		
1377
		}		
1373
	}
1378
	}
-
 
1379
	
-
 
1380
	public Personne getPersonne() {
-
 
1381
		return this.personne;
-
 
1382
	}
-
 
1383
	
-
 
1384
	public String getPersonneId() {
-
 
1385
		return this.personneId;
-
 
1386
	}
1374
}
1387
}