| Line 34... |
Line 34... |
| 34 |
import org.tela_botanica.client.modeles.StructureConservation;
|
34 |
import org.tela_botanica.client.modeles.StructureConservation;
|
| 35 |
import org.tela_botanica.client.modeles.StructureListe;
|
35 |
import org.tela_botanica.client.modeles.StructureListe;
|
| 36 |
import org.tela_botanica.client.modeles.StructureValorisation;
|
36 |
import org.tela_botanica.client.modeles.StructureValorisation;
|
| 37 |
import org.tela_botanica.client.modeles.Utilisateur;
|
37 |
import org.tela_botanica.client.modeles.Utilisateur;
|
| 38 |
import org.tela_botanica.client.modeles.ValeurListe;
|
38 |
import org.tela_botanica.client.modeles.ValeurListe;
|
| - |
|
39 |
import org.tela_botanica.client.util.Debug;
|
| 39 |
import org.tela_botanica.client.vues.CollectionForm;
|
40 |
import org.tela_botanica.client.vues.CollectionForm;
|
| 40 |
import org.tela_botanica.client.vues.CollectionListeVue;
|
41 |
import org.tela_botanica.client.vues.CollectionListeVue;
|
| 41 |
import org.tela_botanica.client.vues.CollectionVue;
|
42 |
import org.tela_botanica.client.vues.CollectionVue;
|
| 42 |
import org.tela_botanica.client.vues.ContenuVue;
|
43 |
import org.tela_botanica.client.vues.ContenuVue;
|
| 43 |
import org.tela_botanica.client.vues.EnteteVue;
|
44 |
import org.tela_botanica.client.vues.EnteteVue;
|
| Line 209... |
Line 210... |
| 209 |
} else if (codeMenuClique.equals(MenuApplicationId.COLLECTION)) {
|
210 |
} else if (codeMenuClique.equals(MenuApplicationId.COLLECTION)) {
|
| 210 |
selectionnerCollection(panneauCentre, null);
|
211 |
selectionnerCollection(panneauCentre, null);
|
| 211 |
} else if (codeMenuClique.equals(MenuApplicationId.PERSONNE)) {
|
212 |
} else if (codeMenuClique.equals(MenuApplicationId.PERSONNE)) {
|
| 212 |
selectionnerPersonne(panneauCentre, null, null);
|
213 |
selectionnerPersonne(panneauCentre, null, null);
|
| 213 |
} else if (codeMenuClique.equals(MenuApplicationId.PUBLICATION)) {
|
214 |
} else if (codeMenuClique.equals(MenuApplicationId.PUBLICATION)) {
|
| 214 |
selectionnerPublication(panneauCentre,null);
|
215 |
selectionnerPublication(panneauCentre, null);
|
| 215 |
} else {
|
216 |
} else {
|
| 216 |
GWT.log(i18nM.nonImplemente(codeMenuClique), null);
|
217 |
GWT.log(i18nM.nonImplemente(codeMenuClique), null);
|
| 217 |
}
|
218 |
}
|
| 218 |
panneauCentre.layout();
|
219 |
panneauCentre.layout();
|
| 219 |
}
|
220 |
}
|
| Line 220... |
Line 221... |
| 220 |
|
221 |
|
| - |
|
222 |
public void activerChargement(String message) {
|
| 221 |
public void activerChargement(String message) {
|
223 |
Debug.log(message);
|
| 222 |
afficherPopinChargement();
|
224 |
afficherPopinChargement();
|
| 223 |
panneauSud.showBusy(i18nC.chargement()+" "+message);
|
225 |
panneauSud.showBusy(i18nC.chargement()+" "+message);
|
| Line 224... |
Line 226... |
| 224 |
}
|
226 |
}
|
| Line 674... |
Line 676... |
| 674 |
|
676 |
|
| 675 |
//+----------------------------------------------------------------------------------------------------------------+
|
677 |
//+----------------------------------------------------------------------------------------------------------------+
|
| 676 |
// GESTION DES PERSONNES
|
678 |
// GESTION DES PERSONNES
|
| Line 677... |
Line -... |
| 677 |
//+----------------------------------------------------------------------------------------------------------------+
|
- |
|
| 678 |
|
- |
|
| 679 |
public void clicListePersonne(Personne personne) {
|
- |
|
| 680 |
panneauCentre.getContenu().rafraichir(personne);
|
- |
|
| 681 |
}
|
679 |
//+----------------------------------------------------------------------------------------------------------------+
|
| 682 |
|
680 |
|
| 683 |
public void afficherListePersonnes(PersonneListe personnesACharger) {
|
681 |
public void afficherListePersonnes(PersonneListe personnesACharger) {
|
| 684 |
if (!(panneauCentre.getContenu() instanceof PersonneVue)) {
|
682 |
if (!(panneauCentre.getContenu() instanceof PersonneVue)) {
|
| 685 |
panneauCentre.removeAll();
|
683 |
panneauCentre.removeAll();
|
| 686 |
panneauCentre.add(new PersonneVue(this));
|
684 |
panneauCentre.add(new PersonneVue(this));
|
| Line 687... |
Line 685... |
| 687 |
panneauCentre.setId(ComposantId.PANNEAU_PERSONNE_LISTES);
|
685 |
panneauCentre.setId(ComposantId.PANNEAU_PERSONNE_LISTES);
|
| 688 |
}
|
686 |
}
|
| - |
|
687 |
|
| - |
|
688 |
panneauCentre.getContenu().rafraichir(personnesACharger);
|
| - |
|
689 |
}
|
| - |
|
690 |
|
| - |
|
691 |
public void afficherFormPersonne(String personneId) {
|
| - |
|
692 |
panneauCentre.removeAll();
|
| - |
|
693 |
PersonneForm personneForm = new PersonneForm(this, personneId);
|
| - |
|
694 |
panneauCentre.add(personneForm);
|
| - |
|
695 |
|
| - |
|
696 |
panneauCentre.layout();
|
| - |
|
697 |
}
|
| - |
|
698 |
|
| Line 689... |
Line 699... |
| 689 |
|
699 |
public void clicListePersonne(Personne personne) {
|
| 690 |
panneauCentre.getContenu().rafraichir(personnesACharger);
|
700 |
panneauCentre.getContenu().rafraichir(personne);
|
| 691 |
}
|
701 |
}
|
| Line 692... |
Line 702... |
| 692 |
|
702 |
|
| - |
|
703 |
public void clicAjouterPersonne() {
|
| - |
|
704 |
afficherFormPersonne(null);
|
| - |
|
705 |
}
|
| - |
|
706 |
|
| - |
|
707 |
public void clicModifierPersonne(List<Personne> selection) {
|
| 693 |
public void clicAjouterPersonne() {
|
708 |
if (selection.size() == 0) {
|
| - |
|
709 |
Info.display("Information", "Veuillez sélectionner une personne.");
|
| - |
|
710 |
} else if (selection.size() > 1) {
|
| - |
|
711 |
Info.display("Information", "Veuillez sélectionner une seule personne à la fois.");
|
| 694 |
afficherPersonneForm(null);
|
712 |
} else if (selection.size() == 1) {
|
| Line 695... |
Line -... |
| 695 |
}
|
- |
|
| 696 |
|
- |
|
| 697 |
public void clicModifierPersonne(Personne personne) {
|
- |
|
| 698 |
afficherPersonneForm(personne);
|
- |
|
| 699 |
}
|
- |
|
| 700 |
|
- |
|
| 701 |
public void afficherPersonneForm(Personne personne) {
|
- |
|
| 702 |
String personneId = null;
|
- |
|
| 703 |
if (personne != null) {
|
- |
|
| 704 |
personneId = personne.getId();
|
- |
|
| 705 |
}
|
- |
|
| 706 |
|
- |
|
| Line 707... |
Line 713... |
| 707 |
panneauCentre.removeAll();
|
713 |
afficherFormPersonne(selection.get(0).getId());
|
| 708 |
PublicationForm publicationForm = new PublicationForm(this, personneId);
|
- |
|
| 709 |
panneauCentre.add(publicationForm);
|
714 |
} else {
|
| 710 |
|
715 |
Info.display("Erreur", "Une erreur est survenue dans la méthode clicModifierPersonne() du Médiateur.");
|
| 711 |
panneauCentre.layout();
|
716 |
}
|
| 712 |
}
|
717 |
}
|
| 713 |
|
718 |
|
| Line 752... |
Line 757... |
| 752 |
} else {
|
757 |
} else {
|
| 753 |
Info.display("Erreur", "Une erreur est survenue dans la méthode clicSupprimerPersonne() du Médiateur.");
|
758 |
Info.display("Erreur", "Une erreur est survenue dans la méthode clicSupprimerPersonne() du Médiateur.");
|
| 754 |
}
|
759 |
}
|
| 755 |
}
|
760 |
}
|
| Line 756... |
Line 761... |
| 756 |
|
761 |
|
| 757 |
public void selectionnerPersonne(Rafraichissable vue, Personne personne, String projetId) {
|
762 |
public void selectionnerPersonne(Rafraichissable vueARafraichir, Personne personne, String projetId) {
|
| 758 |
int nbElements = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
|
763 |
int nbElements = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
|
| 759 |
selectionnerPersonne(vue, personne, projetId, 0, nbElements);
|
764 |
selectionnerPersonne(vueARafraichir, personne, projetId, 0, nbElements);
|
| Line 760... |
Line 765... |
| 760 |
}
|
765 |
}
|
| 761 |
|
766 |
|
| 762 |
public void selectionnerPersonne(Rafraichissable vue, Personne personne, String projetId, int start, int nbElements) {
|
767 |
public void selectionnerPersonne(Rafraichissable vueARafraichir, Personne personne, String projetId, int start, int nbElements) {
|
| 763 |
String personneId = null;
|
768 |
String personneId = null;
|
| 764 |
if (personne != null) {
|
769 |
if (personne != null) {
|
| 765 |
personneId = personne.getId();
|
770 |
personneId = personne.getId();
|
| 766 |
}
|
771 |
}
|
| Line 767... |
Line 772... |
| 767 |
modele.selectionnerPersonne(vue, personneId, projetId, null, start, nbElements);
|
772 |
modele.selectionnerPersonne(vueARafraichir, personneId, projetId, null, start, nbElements);
|
| 768 |
}
|
773 |
}
|
| 769 |
|
774 |
|
| Line 788... |
Line 793... |
| 788 |
//+----------------------------------------------------------------------------------------------------------------+
|
793 |
//+----------------------------------------------------------------------------------------------------------------+
|
| Line 789... |
Line 794... |
| 789 |
|
794 |
|
| 790 |
public void afficherListePublication(PublicationListe nouvelleDonnees) {
|
795 |
public void afficherListePublication(PublicationListe nouvelleDonnees) {
|
| 791 |
if (!(panneauCentre.getContenu() instanceof PublicationVue)) {
|
796 |
if (!(panneauCentre.getContenu() instanceof PublicationVue)) {
|
| 792 |
panneauCentre.removeAll();
|
- |
|
| 793 |
PublicationVue publicationVue = new PublicationVue(this) ;
|
- |
|
| 794 |
panneauCentre.setId(ComposantId.PANNEAU_PUBLICATION_LISTE);
|
797 |
panneauCentre.removeAll();
|
| 795 |
panneauCentre.add(publicationVue);
|
- |
|
| 796 |
panneauCentre.layout(true);
|
798 |
panneauCentre.add(new PublicationVue(this));
|
| Line 797... |
Line -... |
| 797 |
}
|
- |
|
| 798 |
|
- |
|
| 799 |
masquerPopinChargement();
|
799 |
}
|
| 800 |
|
800 |
|
| Line 801... |
Line 801... |
| 801 |
panneauCentre.getContenu().rafraichir(nouvelleDonnees);
|
801 |
panneauCentre.getContenu().rafraichir(nouvelleDonnees);
|
| 802 |
}
|
802 |
}
|