Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 646 Rev 663
Line 594... Line 594...
594
		}
594
		}
595
		modele.selectionnerPersonne(vue, personneId, projetId, null, start, nbElements);
595
		modele.selectionnerPersonne(vue, personneId, projetId, null, start, nbElements);
596
	}
596
	}
Line 597... Line 597...
597
	
597
	
-
 
598
	public void clicSupprimerPersonne(final Rafraichissable vue,final List<Personne> personneSelection) {
-
 
599
		
-
 
600
		//Empecher suppression utilisateur
-
 
601
		for (int i=0; i < personneSelection.size(); i++)	{
-
 
602
			Personne courante = personneSelection.get(i);
-
 
603
			if (courante.getId().equals(getUtilisateurId()))	{
-
 
604
				Info.display("Information", "Vous ne pouvez supprimer votre compte");
-
 
605
				personneSelection.remove(courante);
-
 
606
			}
-
 
607
		}
598
	public void clicSupprimerPersonne(final Rafraichissable vue,final List<Personne> personneSelection) {
608
		
599
		if (personneSelection.size() == 0) {
609
		if (personneSelection.size() == 0) {
600
			Info.display("Information", "Veuillez sélectionner une personne.");
610
			Info.display("Information", "Veuillez sélectionner une personne.");
601
		} else if(personneSelection.size() > 0) {
611
		} else if(personneSelection.size() > 0) {
602
			String message = "Êtes vous sur de vouloir supprimer les personnes sélectionnées ?";
612
			String message = "Êtes vous sur de vouloir supprimer les personnes sélectionnées ?";