Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 987 Rev 989
Line 15... Line 15...
15
import org.tela_botanica.client.modeles.Information;
15
import org.tela_botanica.client.modeles.Information;
16
import org.tela_botanica.client.modeles.MenuApplicationId;
16
import org.tela_botanica.client.modeles.MenuApplicationId;
17
import org.tela_botanica.client.modeles.Utilisateur;
17
import org.tela_botanica.client.modeles.Utilisateur;
18
import org.tela_botanica.client.modeles.ValeurListe;
18
import org.tela_botanica.client.modeles.ValeurListe;
19
import org.tela_botanica.client.modeles.collection.Collection;
19
import org.tela_botanica.client.modeles.collection.Collection;
-
 
20
import org.tela_botanica.client.modeles.collection.CollectionACommentaire;
-
 
21
import org.tela_botanica.client.modeles.collection.CollectionACommentaireAsyncDao;
-
 
22
import org.tela_botanica.client.modeles.collection.CollectionACommentaireListe;
20
import org.tela_botanica.client.modeles.collection.CollectionAPersonne;
23
import org.tela_botanica.client.modeles.collection.CollectionAPersonne;
21
import org.tela_botanica.client.modeles.collection.CollectionAPersonneListe;
24
import org.tela_botanica.client.modeles.collection.CollectionAPersonneListe;
22
import org.tela_botanica.client.modeles.collection.CollectionAPublication;
25
import org.tela_botanica.client.modeles.collection.CollectionAPublication;
23
import org.tela_botanica.client.modeles.collection.CollectionAPublicationListe;
26
import org.tela_botanica.client.modeles.collection.CollectionAPublicationListe;
24
import org.tela_botanica.client.modeles.collection.CollectionListe;
27
import org.tela_botanica.client.modeles.collection.CollectionListe;
Line 48... Line 51...
48
import org.tela_botanica.client.vues.MenuVue;
51
import org.tela_botanica.client.vues.MenuVue;
49
import org.tela_botanica.client.vues.accueil.AccueilVue;
52
import org.tela_botanica.client.vues.accueil.AccueilVue;
50
import org.tela_botanica.client.vues.collection.CollectionForm;
53
import org.tela_botanica.client.vues.collection.CollectionForm;
51
import org.tela_botanica.client.vues.collection.CollectionListeVue;
54
import org.tela_botanica.client.vues.collection.CollectionListeVue;
52
import org.tela_botanica.client.vues.collection.CollectionVue;
55
import org.tela_botanica.client.vues.collection.CollectionVue;
-
 
56
import org.tela_botanica.client.vues.commentaire.CommentaireForm;
53
import org.tela_botanica.client.vues.commentaire.CommentaireVue;
57
import org.tela_botanica.client.vues.commentaire.CommentaireVue;
54
import org.tela_botanica.client.vues.personne.PersonneForm;
58
import org.tela_botanica.client.vues.personne.PersonneForm;
55
import org.tela_botanica.client.vues.personne.PersonneVue;
59
import org.tela_botanica.client.vues.personne.PersonneVue;
56
import org.tela_botanica.client.vues.projet.ProjetForm;
60
import org.tela_botanica.client.vues.projet.ProjetForm;
57
import org.tela_botanica.client.vues.projet.ProjetVue;
61
import org.tela_botanica.client.vues.projet.ProjetVue;
Line 255... Line 259...
255
	public void ouvrirIdentification() {
259
	public void ouvrirIdentification() {
256
		fenetreIdentification = new IdentificationFenetre();
260
		fenetreIdentification = new IdentificationFenetre();
257
		fenetreIdentification.show();
261
		fenetreIdentification.show();
258
	}
262
	}
Line 259... Line 263...
259
 
263
 
260
	public void ouvrirApplis(String id) {
264
	public void ouvrirUrlExterne(String id) {
261
		if (id.equals(ComposantId.MENU_CEL)) {
265
		if (id.equals(ComposantId.MENU_CEL)) {
262
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getCelUrl(), "Carnet en ligne", "");
266
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getUrl("cel"), "Carnet en ligne", "");
263
		} else if (id.equals(ComposantId.MENU_BEL)) {
267
		} else if (id.equals(ComposantId.MENU_BEL)) {
-
 
268
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getUrl("cel"), "Biblio en ligne", "");
-
 
269
		} else if (id.equals(ComposantId.MENU_BOGUE)) {
-
 
270
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getUrl("bogue"), "Bogue", "");
-
 
271
		} else if (id.equals(ComposantId.MENU_COMMENTAIRE)) {
264
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getCelUrl(), "Biblio en ligne", "");
272
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getUrl("commentaire"), "Commentaire", "");
265
		}
273
		}
Line 266... Line 274...
266
	}
274
	}
267
 
275
 
Line 807... Line 815...
807
	}
815
	}
Line 808... Line 816...
808
 
816
 
809
	//+----------------------------------------------------------------------------------------------------------------+
817
	//+----------------------------------------------------------------------------------------------------------------+
Line -... Line 818...
-
 
818
	// GESTION de la relation COLLECTION A COMMENTAIRE
-
 
819
	
-
 
820
	public void selectionnerCollectionACommentaire(Rafraichissable vueARafraichir, String commentaireId) {
-
 
821
		modele.selectionnerCollectionACommentaire(vueARafraichir, commentaireId);
-
 
822
	}
-
 
823
	
-
 
824
	public void ajouterCollectionACommentaire(Rafraichissable vueARafraichir, String commentaireId, CollectionACommentaireListe commentairesAjoutees) {
-
 
825
		if (commentairesAjoutees != null && commentairesAjoutees.size() > 0) {
-
 
826
			for (Iterator<String> it = commentairesAjoutees.keySet().iterator(); it.hasNext();) {
-
 
827
				modele.ajouterCollectionACommentaire(vueARafraichir, commentaireId, (CollectionACommentaire) commentairesAjoutees.get(it.next()));
-
 
828
			}
-
 
829
		}
-
 
830
	}
-
 
831
	
-
 
832
	public void modifierCollectionACommentaire(Rafraichissable vueARafraichir, CollectionACommentaireListe commentairesModifiees) {
-
 
833
		if (commentairesModifiees != null && commentairesModifiees.size() > 0) {
-
 
834
			for (Iterator<String> it = commentairesModifiees.keySet().iterator(); it.hasNext();) {
-
 
835
				modele.modifierCollectionACommentaire(vueARafraichir, (CollectionACommentaire) commentairesModifiees.get(it.next()));
-
 
836
			}
-
 
837
		}
-
 
838
	}
-
 
839
	
-
 
840
	public void supprimerCollectionACommentaire(Rafraichissable vueARafraichir, CollectionACommentaireListe commentairesSupprimees) {
-
 
841
		if (commentairesSupprimees != null && commentairesSupprimees.size() > 0) {
-
 
842
			String idCollectionACommentaireSeparesParVirgule = "" ;
-
 
843
			for (Iterator<String> it = commentairesSupprimees.keySet().iterator(); it.hasNext();) {
-
 
844
				idCollectionACommentaireSeparesParVirgule += commentairesSupprimees.get(it.next()).getId();
-
 
845
				if (it.hasNext()) {
-
 
846
					idCollectionACommentaireSeparesParVirgule += ",";
-
 
847
				}
-
 
848
			}
-
 
849
			modele.supprimerCollectionACommentaire(vueARafraichir, idCollectionACommentaireSeparesParVirgule, CollectionACommentaireAsyncDao.SUPPRESSION_PAR_COLLECTION);
810
	// GESTION de la relation COLLECTION A COMMENTAIRE
850
		}
811
	
851
	}
812
	//+----------------------------------------------------------------------------------------------------------------+
852
	//+----------------------------------------------------------------------------------------------------------------+
Line 813... Line 853...
813
	//												GESTION DES PERSONNES
853
	//												GESTION DES PERSONNES
Line 1075... Line 1115...
1075
		panneauCentre.getContenu().rafraichir(nouvelleDonnees);	
1115
		panneauCentre.getContenu().rafraichir(nouvelleDonnees);	
1076
	}
1116
	}
Line 1077... Line 1117...
1077
	
1117
	
1078
	public void afficherFormCommentaire(String commentaireId) {
1118
	public void afficherFormCommentaire(String commentaireId) {
1079
		panneauCentre.removeAll();
1119
		panneauCentre.removeAll();
1080
		PublicationForm commentaireForm = new PublicationForm(this, commentaireId);
1120
		CommentaireForm commentaireForm = new CommentaireForm(this, commentaireId);
Line 1081... Line 1121...
1081
		panneauCentre.add(commentaireForm);
1121
		panneauCentre.add(commentaireForm);
1082
		
1122
		
Line 1150... Line 1190...
1150
				if (it.hasNext()) {
1190
				if (it.hasNext()) {
1151
					idCommentaireSeparesParVirgule += ",";
1191
					idCommentaireSeparesParVirgule += ",";
1152
				}
1192
				}
1153
			}
1193
			}
1154
			modele.supprimerCommentaire(vueARafraichir, idCommentaireSeparesParVirgule);
1194
			modele.supprimerCommentaire(vueARafraichir, idCommentaireSeparesParVirgule);
1155
			//modele.supprimerCollectionACommentaire(vueARafraichir, idCommentaireSeparesParVirgule);
1195
			modele.supprimerCollectionACommentaire(vueARafraichir, idCommentaireSeparesParVirgule, CollectionACommentaireAsyncDao.SUPPRESSION_PAR_COMMENTAIRE);
1156
		}
1196
		}
1157
	}
1197
	}
Line 1158... Line 1198...
1158
	
1198
	
1159
	//+----------------------------------------------------------------------------------------------------------------+
1199
	//+----------------------------------------------------------------------------------------------------------------+