Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 769 Rev 772
Line 597... Line 597...
597
		
597
		
598
		//Empecher suppression utilisateur
598
		//Empecher suppression utilisateur
599
		for (int i=0; i < personneSelection.size(); i++)	{
599
		for (int i=0; i < personneSelection.size(); i++)	{
600
			Personne courante = personneSelection.get(i);
600
			Personne courante = personneSelection.get(i);
601
			if (courante.getId().equals(getUtilisateurId()))	{
601
			if (courante.getId().equals(getUtilisateurId()))	{
602
				Info.display("Information", "Vous ne pouvez supprimer votre compte");
602
				Info.display("Information", "Vous ne pouvez pas supprimer votre compte");
603
				personneSelection.remove(courante);
603
				personneSelection.remove(courante);
604
			}
604
			}
Line 605... Line 605...
605
		}
605
		}
Line 616... Line 616...
616
				public void handleEvent(MessageBoxEvent ce) {
616
				public void handleEvent(MessageBoxEvent ce) {
617
					Dialog dialog = (Dialog) ce.getComponent();
617
					Dialog dialog = (Dialog) ce.getComponent();
618
					Button btn = ce.getButtonClicked();
618
					Button btn = ce.getButtonClicked();
Line 619... Line 619...
619
 
619
 
620
					if (btn.getText().equals(dialog.yesText)) {
620
					if (btn.getText().equals(dialog.yesText)) {
621
						String idStr = "" ;
621
						String idPersonneSepareParVirgule = "" ;
622
						Iterator<Personne> itPersonne = personneSelection.iterator();
622
						Iterator<Personne> itPersonne = personneSelection.iterator();
623
						while (itPersonne.hasNext()) {
623
						while (itPersonne.hasNext()) {
624
							Personne personneCourante = itPersonne.next();
624
							Personne personneCourante = itPersonne.next();
625
							idStr += personneCourante.getId();
625
							idPersonneSepareParVirgule += personneCourante.getId();
626
							idStr +=",";
626
							idPersonneSepareParVirgule +=",";
627
						}
627
						}
628
						modele.supprimerPersonne(vue, idStr);  
628
						modele.supprimerPersonne(vue, idPersonneSepareParVirgule);  
629
					}
629
					}
630
				}
630
				}
Line 631... Line 631...
631
			};
631
			};