Subversion Repositories eFlore/Applications.coel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1136 → Rev 1137

/tags/v1.0-Syrah/.settings/org.eclipse.core.resources.prefs
File deleted
/tags/v1.0-Syrah/.settings/org.eclipse.core.runtime.prefs
File deleted
/tags/v1.0-Syrah/test/org/tela_botanica/client/CoelTestSuite.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/test/org/tela_botanica/client/CoelTest.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/test/org/tela_botanica/client/vues/structure/StructureDetailPanneauVueTest.java
File deleted
/tags/v1.0-Syrah/.classpath
File deleted
/tags/v1.0-Syrah/.project
File deleted
/tags/v1.0-Syrah/doc/xsd/tdwg_dw_core.xsd
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/xsd/tb_coel_str_element.xsd
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/xsd/tdwg_dw_element.xsd
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/xsd/tb_coel_str.xsd
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/cns/abcd_2_06.xml
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/cns/dwc_1_4.xml
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/cns/dwcur_1_4.xml
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/cns/dwgeo_1_4.xml
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/cns/coelstr_1_00.xml
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/bdd/coel_module_Personne.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_module_Collection.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_structure_conservation.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel.css
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/bdd/coel_module_Structure.html
File deleted
/tags/v1.0-Syrah/doc/bdd/index.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel.sql.bz2
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/tags/v1.0-Syrah/doc/bdd/coel_module_Commentaire.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_module_Projet.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_collection_botanique.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel.xml
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_meta_colonne.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_meta_liste_valeur.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_module_Publication.html
File deleted
/tags/v1.0-Syrah/doc/bdd/migration_bdd_herbiers_vers_coel.sql
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_structure_a_personne.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_module_Metadonnee.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_collection_a_commentaire.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_meta_historique_ligne.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_projet_a_structure.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_collection_a_publication.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_personne_a_relation.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_collection_a_relation.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_personne.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_structure_valorisation.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_collection.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_vocabulaire.ini
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_structure.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_projet.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_commentaire.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_collection_a_personne.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_projet_version.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_publication.html
File deleted
/tags/v1.0-Syrah/doc/bdd/Fiche inventaire Herbiers LR.doc
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/tags/v1.0-Syrah/doc/bdd/coel.sh
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_meta_donnee.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_meta_historique_colonne.html
File deleted
/tags/v1.0-Syrah/doc/bdd/coel_table_coel_publication_a_personne.html
File deleted
/tags/v1.0-Syrah/Coel-debug
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/CoelTest-hosted
File deleted
/tags/v1.0-Syrah/Coel-shell
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/util/UtilDate.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/util/Print.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/util/UtilArray.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/util/Pattern.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/util/UtilNombre.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/util/UtilDAO.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/util/UtilTruk.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/util/UtilString.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/util/Debug.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/Mediateur.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/http/JsonRestRequestCallback.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/http/JsonRestRequestBuilder.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/i18n/Constantes.properties
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/i18n/ErrorMessages.properties
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/i18n/Constantes.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/i18n/ErrorMessages.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/ComposantId.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/RegistreId.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/Coel.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/PopupChargement.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/StatutVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/EnteteVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/FiltreVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/Formulaire.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/personne/PersonneFormPublication.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/personne/PersonneVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/personne/PersonneListeVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/personne/PersonneDetailVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/personne/PersonneForm.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionFormCommentaire.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionFormDescription.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionFormInventaire.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionFormPersonne.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionFormPublication.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionFormContenu.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionListeVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionFormGeneral.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionDetailVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/collection/CollectionForm.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/FenetreForm.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/FormulaireOnglet.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/NavigationVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/structure/StructureVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/structure/StructureListeVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/structure/StructureDetailVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/structure/StructureForm.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/DetailVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/projet/ProjetVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/projet/ProjetListeVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/projet/ProjetDetailVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/projet/ProjetForm.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/commentaire/CommentaireVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/commentaire/CommentaireListeVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/commentaire/CommentaireDetailVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/commentaire/CommentaireForm.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/MenuVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/accueil/Applette.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/accueil/AppletteStatistique.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/accueil/AccueilVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/BarrePaginationVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/publication/PublicationDetailVue.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/publication/PublicationForm.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/publication/PublicationVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/publication/PublicationListeVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/ContenuVue.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/vues/FormulaireBarreValidation.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/interfaces/Rafraichissable.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/interfaces/ListePaginable.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/Modele.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/Images.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/commentaire_editer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/connexion.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/bogue.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/appliquer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/aide.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/application.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/trouver.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/ajax-loader.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/fleche_dedans_dehors.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/rafraichir.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/engrenages.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/photo_ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/formulaire_modifier.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/imprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/table.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/resultset_next.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/vcard_ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/script_go.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/photo.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/avertissement.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/commentaire_ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/LICENCE.txt
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/deplier_tout.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/vcard.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/photo_supprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/resultset_first.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/reinitialiser.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/commentaire.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/erreur.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/annuler.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/images.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/accueil.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/vcard_supprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/application_formulaire_modifier.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/deconnexion.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/commentaire_supprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/application_panneau_liste.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/utilisateur.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/groupe_engrenage.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/vcard_modifier.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/resultset_last.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/replier_tout.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/Icones.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/flux.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/lien_externe.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/nouveau.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/script_save.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/fleche_bascule.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/livre_ouvert.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/information.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/supprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/valider.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/resultset_previous.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/enregistrer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/images/icones/formulaire_ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/ChampMultiValeursImage.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/ChampSliderPourcentage.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/HashMapComposants.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/ChampCaseACocher.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/ConteneurMultiChamps.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/AideFenetre.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/LicenceFenetre.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/AproposFenetre.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/ChampComboBoxMultiSelect.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/IdentificationFenetre.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/ChampComboBoxListeValeurs.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/ChampMultiValeurs.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/composants/ChampMultiValeursMultiTypes.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/configuration/Configuration.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/configuration/APropos.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/Valeur.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/ValeurListe.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/Aide.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/Menu.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/MenuApplicationId.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/personne/Personne.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/personne/PersonneListe.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/personne/PersonneAsyncDao.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/aDonnee.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/aDonneeListe.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/Utilisateur.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionACommentaireAsyncDao.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionBotanique.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/UniteRangement.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPersonne.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPublication.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPersonneListe.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPublicationListe.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPersonneAsyncDao.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPublicationAsyncDao.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/Collection.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionListe.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionAsyncDao.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/UniteBase.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionACommentaire.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/collection/CollectionACommentaireListe.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/structure/Structure.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/structure/StructureListe.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/structure/StructureAsyncDao.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/structure/StructureAPersonne.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/structure/StructureConservation.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/structure/StructureValorisation.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/structure/StructureAPersonneListe.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/structure/StructureAPersonneAsyncDao.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/ValeurListeAsyncDao.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/commentaire/Commentaire.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/commentaire/CommentaireListe.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/commentaire/CommentaireAsyncDao.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/InterneValeur.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/projet/Projet.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/projet/ProjetListe.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/projet/ProjetAsyncDao.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/projet/ProjetVersion.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/InterneValeurListe.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/Information.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/publication/PublicationAPersonne.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/publication/PublicationAPersonneListe.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/publication/PublicationAPersonneAsyncDao.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/publication/Publication.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/publication/PublicationListe.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/publication/PublicationAsyncDao.java
File deleted
/tags/v1.0-Syrah/src/org/tela_botanica/client/modeles/UtilisateurAsyncDao.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/client/ComposantClass.java
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/src/org/tela_botanica/Coel.gwt.xml
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/Coel-compile
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/A_LIRE.txt
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/war/config.js
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/war/info.php
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/war/Coel.html
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/war/apropos.defaut.js
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/war/images/icones/lien_externe.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/war/images/bg/hd-bg.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-Syrah/war/images/large-loading.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/tags/v1.0-Syrah/war/WEB-INF/web.xml
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/war/Coel.css
File deleted
\ No newline at end of file
/tags/v1.0-Syrah/CoelTest-web
File deleted
/tags/v1.0-syrah/.classpath
New file
0,0 → 1,12
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="test"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="/opt/gxt-2.1.0/gxt.jar"/>
<classpathentry kind="lib" path="/opt/gwt-2.0.0/gwt-user.jar"/>
<classpathentry kind="lib" path="/opt/gwt-2.0.0/gwt-dev.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="JUNIT_HOME/junit.jar"/>
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
<classpathentry kind="output" path="war/WEB-INF/classes"/>
</classpath>
/tags/v1.0-syrah/.project
New file
0,0 → 1,29
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Coel</name>
<comment>Projet COEL - Collections en Ligne</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
<nature>com.google.gdt.eclipse.core.webAppNature</nature>
</natures>
</projectDescription>
/tags/v1.0-syrah/doc/cns/dwc_1_4.xml
New file
0,0 → 1,240
<?xml version="1.0" encoding="UTF-8"?>
<cns>
<schema namespace="http://rs.tdwg.org/dwc/dwcore/">
<label>DarwinCore v1.4</label>
<alias>dwc_1_4</alias>
<location>http://rs.tdwg.org/dwc/tdwg_dw_core.xsd</location>
<concepts>
<concept id="http://rs.tdwg.org/dwc/dwcore/GlobalUniqueIdentifier" required="true">
<alias>GlobalUniqueIdentifier</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/GlobalUniqueIdentifier</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/DateLastModified" required="true">
<alias>DateLastModified</alias>
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/DateLastModified</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/BasisOfRecord" required="true">
<alias>BasisOfRecord</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/BasisOfRecord</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/InstitutionCode" required="true">
<alias>InstitutionCode</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/InstitutionCode</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/CollectionCode" required="true">
<alias>CollectionCode</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/CollectionCode</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/CatalogNumber" required="true">
<alias>CatalogNumber</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/CatalogNumber</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/InformationWithheld">
<alias>InformationWithheld</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/InformationWithheld</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Remarks">
<alias>Remarks</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Remarks</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/ScientificName" required="true">
<alias>ScientificName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/ScientificName</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/HigherTaxon">
<alias>HigherTaxon</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/HigherTaxon</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Kingdom">
<alias>Kingdom</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Kingdom</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Phylum">
<alias>Phylum</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Phylum</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Class">
<alias>Class</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Class</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Order">
<alias>Order</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Order</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Family">
<alias>Family</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Family</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Genus">
<alias>Genus</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Genus</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/SpecificEpithet">
<alias>SpecificEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/SpecificEpithet</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/InfraspecificRank">
<alias>InfraspecificRank</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/InfraspecificRank</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/InfraspecificEpithet">
<alias>InfraspecificEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/InfraspecificEpithet</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/AuthorYearOfScientificName">
<alias>AuthorYearOfScientificName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/AuthorYearOfScientificName</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/NomenclaturalCode">
<alias>NomenclaturalCode</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/NomenclaturalCode</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/IdentificationQualifier">
<alias>IdentificationQualifier</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/IdentificationQualifier</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/HigherGeography">
<alias>HigherGeography</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/HigherGeography</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Continent">
<alias>Continent</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Continent</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/WaterBody">
<alias>WaterBody</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/WaterBody</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/IslandGroup">
<alias>IslandGroup</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/IslandGroup</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Island">
<alias>Island</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Island</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Country">
<alias>Country</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Country</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/StateProvince">
<alias>StateProvince</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/StateProvince</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/County">
<alias>County</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/County</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Locality">
<alias>Locality</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Locality</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/MinimumElevationInMeters">
<alias>MinimumElevationInMeters</alias>
<datatype>http://www.w3.org/2001/XMLSchema#double</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/MinimumElevationInMeters</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/MaximumElevationInMeters">
<alias>MaximumElevationInMeters</alias>
<datatype>http://www.w3.org/2001/XMLSchema#double</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/MaximumElevationInMeters</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/MinimumDepthInMeters">
<alias>MinimumDepthInMeters</alias>
<datatype>http://www.w3.org/2001/XMLSchema#double</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/MinimumDepthInMeters</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/MaximumDepthInMeters">
<alias>MaximumDepthInMeters</alias>
<datatype>http://www.w3.org/2001/XMLSchema#double</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/MaximumDepthInMeters</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/CollectingMethod">
<alias>CollectingMethod</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/CollectingMethod</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/ValidDistributionFlag">
<alias>ValidDistributionFlag</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/ValidDistributionFlag</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/EarliestDateCollected">
<alias>EarliestDateCollected</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/EarliestDateCollected</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/LatestDateCollected">
<alias>LatestDateCollected</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/LatestDateCollected</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/DayOfYear">
<alias>DayOfYear</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/DayOfYear</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Collector">
<alias>Collector</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Collector</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Sex">
<alias>Sex</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Sex</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/LifeStage">
<alias>LifeStage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/LifeStage</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/Attributes">
<alias>Attributes</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Attributes</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/ImageURL">
<alias>ImageURL</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/ImageURL</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/dwcore/RelatedInformation">
<alias>RelatedInformation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/RelatedInformation</doc>
</concept>
</concepts>
</schema>
</cns>
/tags/v1.0-syrah/doc/cns/dwcur_1_4.xml
New file
0,0 → 1,90
<?xml version="1.0" encoding="UTF-8"?>
<cns>
<schema namespace="http://rs.tdwg.org/dwc/curatorial/">
<label>DarwinCore v1.4 Curatorial Extension</label>
<alias>dwcur</alias>
<location>http://rs.tdwg.org/dwc/tdwg_dw_curatorial.xsd</location>
<concepts>
<concept id="http://rs.tdwg.org/dwc/curatorial/CatalogNumberNumeric">
<alias>CatalogNumberNumeric</alias>
<datatype>http://www.w3.org/2001/XMLSchema#double</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/CatalogNumberNumeric</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/IdentifiedBy">
<alias>IdentifiedBy</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/IdentifiedBy</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/DateIdentified">
<alias>DateIdentified</alias>
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/DateIdentified</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/CollectorNumber">
<alias>CollectorNumber</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/CollectorNumber</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/FieldNumber">
<alias>FieldNumber</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/FieldNumber</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/FieldNotes">
<alias>FieldNotes</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/FieldNotes</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/VerbatimCollectingDate">
<alias>VerbatimCollectingDate</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/VerbatimCollectingDate</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/VerbatimElevation">
<alias>VerbatimElevation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/VerbatimElevation</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/VerbatimDepth">
<alias>VerbatimDepth</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/VerbatimDepth</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/Preparations">
<alias>Preparations</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Preparations</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/TypeStatus">
<alias>TypeStatus</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/TypeStatus</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/GenBankNumber">
<alias>GenBankNumber</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/GenBankNumber</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/OtherCatalogNumbers">
<alias>OtherCatalogNumbers</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/OtherCatalogNumbers</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/RelatedCatalogedItems">
<alias>RelatedCatalogedItems</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/RelatedCatalogedItems</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/Disposition">
<alias>Disposition</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Disposition</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/curatorial/IndividualCount">
<alias>IndividualCount</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/IndividualCount</doc>
</concept>
</concepts>
</schema>
</cns>
/tags/v1.0-syrah/doc/cns/dwgeo_1_4.xml
New file
0,0 → 1,85
<?xml version="1.0" encoding="UTF-8"?>
<cns>
<schema namespace="http://rs.tdwg.org/dwc/geospatial/">
<label>DarwinCore v1.4 Geospatial Extension</label>
<alias>dwgeo_1_4</alias>
<location>http://rs.tdwg.org/dwc/tdwg_dw_geospatial.xsd</location>
<concepts>
<concept id="http://rs.tdwg.org/dwc/geospatial/DecimalLatitude">
<alias>DecimalLatitude</alias>
<datatype>http://www.w3.org/2001/XMLSchema#double</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/DecimalLatitude</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/DecimalLongitude">
<alias>DecimalLongitude</alias>
<datatype>http://www.w3.org/2001/XMLSchema#double</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/DecimalLongitude</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/GeodeticDatum">
<alias>GeodeticDatum</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/GeodeticDatum</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/CoordinateUncertaintyInMeters">
<alias>CoordinateUncertaintyInMeters</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/CoordinateUncertaintyInMeters</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/PointRadiusSpatialFit">
<alias>PointRadiusSpatialFit</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/PointRadiusSpatialFit</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/FootprintWKT">
<alias>FootprintWKT</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/FootprintWKT</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/FootprintSpatialFit">
<alias>FootprintSpatialFit</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/FootprintSpatialFit</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/VerbatimCoordinates">
<alias>VerbatimCoordinates</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/VerbatimCoordinates</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/VerbatimLatitude">
<alias>VerbatimLatitude</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/VerbatimLatitude</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/VerbatimLongitude">
<alias>VerbatimLongitude</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/VerbatimLongitude</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/VerbatimCoordinateSystem">
<alias>VerbatimCoordinateSystem</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/VerbatimCoordinateSystem</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/GeoreferenceProtocol">
<alias>GeoreferenceProtocol</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/GeoreferenceProtocol</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/GeoreferenceSources">
<alias>GeoreferenceSources</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/GeoreferenceSources</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/GeoreferenceVerificationStatus">
<alias>GeoreferenceVerificationStatus</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/GeoreferenceVerificationStatus</doc>
</concept>
<concept id="http://rs.tdwg.org/dwc/geospatial/GeoreferenceRemarks">
<alias>GeoreferenceRemarks</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
<doc>http://wiki.tdwg.org/twiki/bin/view/DarwinCore/GeoreferenceRemarks</doc>
</concept>
</concepts>
</schema>
</cns>
/tags/v1.0-syrah/doc/cns/coelstr_1_00.xml
New file
0,0 → 1,50
<?xml version="1.0" encoding="UTF-8"?>
<cns>
<schema namespace="http://www.tela-botanica.org/coel/str/">
<label>Coel Structure v1.00</label>
<alias>coelstr_1_00</alias>
<location>http://localhost/coel/doc/xsd/tb_coel_str.xsd</location>
<concepts>
<concept id="http://www.tela-botanica.org/appli:coel/doc/v1.00/concept/str/id_structure" required="true">
<alias>IdStructure</alias>
<datatype>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</datatype>
<doc>http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_id_structure</doc>
</concept>
<concept id="http://www.tela-botanica.org/appli:coel/doc/v1.00/concept/str/ce_projet" required="true">
<alias>CeProjet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</datatype>
<doc>http://www.tela-botanica.org/appli:coel/doc/v1.00//coel_table_coel_structure.html#cs_ce_projet</doc>
</concept>
<concept id="http://www.tela-botanica.org/appli:coel/doc/v1.00/concept/str/ce_mere">
<alias>CeMere</alias>
<datatype>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</datatype>
<doc>http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_ce_mere</doc>
</concept>
<concept id="http://www.tela-botanica.org/appli:coel/doc/v1.00/concept/str/guid" required="true">
<alias>Guid</alias>
<datatype>http://www.w3.org/2001/XMLSchema#String</datatype>
<doc>http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_guid</doc>
</concept>
<concept id="http://www.tela-botanica.org/appli:coel/doc/v1.00/concept/str/truk_identifiant_alternatif">
<alias>TrukIdentifiantAlternatif</alias>
<datatype>http://www.w3.org/2001/XMLSchema#String</datatype>
<doc>http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_truk_identifiant_alternatif</doc>
</concept>
<concept id="http://www.tela-botanica.org/appli:coel/doc/v1.00/concept/str/nom" required="true">
<alias>Nom</alias>
<datatype>http://www.w3.org/2001/XMLSchema#String</datatype>
<doc>http://www.tela-botanica.org/appli:coel/doc/bdd/coel_table_coel_structure.html#cs_nom</doc>
</concept>
<concept id="http://www.tela-botanica.org/appli:coel/doc/v1.00/concept/str/date_modification" required="true">
<alias>DateModification</alias>
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
<doc>http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_meta_historique_ligne.html#cmhl_date_modification</doc>
</concept>
<concept id="http://www.tela-botanica.org/appli:coel/doc/v1.00/concept/str/ce_etat" required="true">
<alias>CeEtat</alias>
<datatype>http://www.w3.org/2001/XMLSchema#nonNegativeInteger</datatype>
<doc>http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_meta_historique_ligne.html#cmhl_ce_etat</doc>
</concept>
</concepts>
</schema>
</cns>
/tags/v1.0-syrah/doc/cns/abcd_2_06.xml
New file
0,0 → 1,3351
<?xml version="1.0" encoding="UTF-8"?>
<cns>
<schema namespace="http://www.tdwg.org/schemas/abcd/2.06">
<label>ABCD v2.06</label>
<alias>abcd206</alias>
<location>http://www.bgbm.org/TDWG/CODATA/Schema/ABCD_2.06/ABCD_2.06.XSD</location>
<concepts>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/ContentContacts/ContentContact/Address">
<alias>ContentContactAddress</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/ContentContacts/ContentContact/Email">
<alias>ContentContactEmail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/ContentContacts/ContentContact/Name" required="true">
<alias>ContentContactName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/ContentContacts/ContentContact/Phone">
<alias>ContentContactPhone</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/ContentContacts/ContentContact/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/DatasetGUID">
<alias>DatasetGUID</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Description/Representation/Coverage">
<alias>DatasetDescriptionCoverage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Description/Representation/Details">
<alias>DatasetDescriptionDetails</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Description/Representation/Title" required="true">
<alias>DatasetDescriptionTitle</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Description/Representation/URI">
<alias>DatasetDescriptionURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Description/Representation/@language" required="true">
<alias>DatasetDescriptionLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Acknowledgements/Acknowledgement/Details">
<alias>DatasetAcknowledgementDetails</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Acknowledgements/Acknowledgement/Text">
<alias>DatasetAcknowledgementText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Acknowledgements/Acknowledgement/URI">
<alias>DatasetAcknowledgementURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Acknowledgements/Acknowledgement/@language">
<alias>DatasetAcknowledgementLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Citations/Citation/Details">
<alias>DatasetCitationDetails</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Citations/Citation/Text">
<alias>DatasetCitationText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Citations/Citation/URI">
<alias>DatasetCitationURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Citations/Citation/@language">
<alias>DatasetCitationLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Copyrights/Copyright/Details">
<alias>DatasetCopyrightDetails</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Copyrights/Copyright/Text">
<alias>DatasetCopyrightText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Copyrights/Copyright/URI">
<alias>DatasetCopyrightURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Copyrights/Copyright/@language">
<alias>DatasetCopyrightLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Disclaimers/Disclaimer/Details">
<alias>DatasetDisclaimerDetails</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Disclaimers/Disclaimer/Text">
<alias>DatasetDisclaimerText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Disclaimers/Disclaimer/URI">
<alias>DatasetDisclaimerURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Disclaimers/Disclaimer/@language">
<alias>DatasetDisclaimerLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/IPRDeclarations/IPRDeclaration/Details">
<alias>DatasetIPRDeclarationDetails</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/IPRDeclarations/IPRDeclaration/Text">
<alias>DatasetIPRDeclarationText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/IPRDeclarations/IPRDeclaration/URI">
<alias>DatasetIPRDeclarationURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/IPRDeclarations/IPRDeclaration/@language">
<alias>DatasetIPRDeclarationLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Licenses/License/Details">
<alias>DatasetLicenseDetails</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Licenses/License/Text">
<alias>DatasetLicenseText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Licenses/License/URI">
<alias>DatasetLicenseURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/Licenses/License/@language">
<alias>DatasetLicenseLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/TermsOfUseStatements/TermsOfUse/Details">
<alias>DatasetTermsOfUseDetails</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/TermsOfUseStatements/TermsOfUse/Text">
<alias>DatasetTermsOfUseText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/TermsOfUseStatements/TermsOfUse/URI">
<alias>DatasetIPRStatementsURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IPRStatements/TermsOfUseStatements/TermsOfUse/@language">
<alias>DatasetTermsOfUseLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/IconURI">
<alias>DatasetIconURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Addresses/Address">
<alias>DatasetOwnerAddress</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Addresses/Address/@language">
<alias>DatasetOwnerAddressLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Addresses/Address/@preferred">
<alias>DatasetOwnerAddressPreferred</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/EmailAddresses/EmailAddress">
<alias>DatasetOwnerEmailAddress</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/EmailAddresses/EmailAddress/@preferred">
<alias>DatasetOwnerEmailAddressPreferred</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/LogoURI">
<alias>DatasetOwnerLogoURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Organisation/Name/Representation/Abbreviation">
<alias>DatasetOwnerOrgAbbreviation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Organisation/Name/Representation/Text">
<alias>DatasetOwnerOrgText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Organisation/Name/Representation/@language">
<alias>DatasetOwnerOrgNameLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Organisation/OrgUnits/OrgUnit">
<alias>DatasetOwnerOrgUnit</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Organisation/OrgUnits/OrgUnit/@language">
<alias>DatasetOwnerOrgUnitLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Person/AtomisedName/GivenNames">
<alias>DatasetOwnerGivenNames</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Person/AtomisedName/InheritedName">
<alias>DatasetOwnerInheritedName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Person/AtomisedName/PreferredName">
<alias>DatasetOwnerPreferredName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Person/AtomisedName/Prefix">
<alias>DatasetOwnerPrefix</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Person/AtomisedName/Suffix">
<alias>DatasetOwnerSuffix</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Person/FullName">
<alias>DatasetOwnerFullName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Person/SortingName">
<alias>DatasetOwnerSortingName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Roles/Role">
<alias>DatasetOwnerRole</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/Roles/Role/@language">
<alias>DatasetOwnerRoleLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/TelephoneNumbers/TelephoneNumber/Device">
<alias>DatasetOwnerDevice</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/TelephoneNumbers/TelephoneNumber/Number">
<alias>DatasetOwnerNumber</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/TelephoneNumbers/TelephoneNumber/UsageNotes">
<alias>DatasetOwnerUsageNotes</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/TelephoneNumbers/TelephoneNumber/UsageNotes/@language">
<alias>DatasetOwnerUsageNotesLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/TelephoneNumbers/TelephoneNumber/@preferred">
<alias>DatasetOwnerTelephoneNumberPreferred</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/URIs/URL">
<alias>DatasetOwnerURL</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Owners/Owner/URIs/URL/@preferred">
<alias>DatasetOwnerURLPreferred</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/RevisionData/Contributors">
<alias>DatasetContributors</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/RevisionData/Creators">
<alias>DatasetCreators</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/RevisionData/DateCreated">
<alias>DatasetDateCreated</alias>
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/RevisionData/DateModified" required="true">
<alias>DatasetDateModified</alias>
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Scope/GeoecologicalTerms/GeoEcologicalTerm">
<alias>DatasetGeoEcologicalTerm</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Scope/GeoecologicalTerms/GeoEcologicalTerm/@language">
<alias>DatasetGeoEcologicalTermLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Scope/TaxonomicTerms/TaxonomicTerm">
<alias>DatasetTaxonomicTerm</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Scope/TaxonomicTerms/TaxonomicTerm/@language">
<alias>DatasetTaxonomicTermLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Version/DateIssued">
<alias>DatasetDateIssued</alias>
<datatype>http://www.w3.org/2001/XMLSchema#date</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Version/Major">
<alias>DatasetMajorVersion</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Version/Minor">
<alias>DatasetMinorVersion</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Metadata/Version/Modifier">
<alias>DatasetModifier</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/OtherProviders/OtherProvider">
<alias>DatasetOtherProvider</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/TechnicalContacts/TechnicalContact/Address">
<alias>TechnicalContactAddress</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/TechnicalContacts/TechnicalContact/Email">
<alias>TechnicalContactEmail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/TechnicalContacts/TechnicalContact/Name" required="true">
<alias>TechnicalContactName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/TechnicalContacts/TechnicalContact/Phone">
<alias>TechnicalContactPhone</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/TechnicalContacts/TechnicalContact/@preferred">
<alias>TechnicalContactPreferred</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Age">
<alias>Age</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Assemblages/UnitAssemblage/AssemblageID">
<alias>AssemblageID</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Assemblages/UnitAssemblage/AssemblageName">
<alias>AssemblageName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Assemblages/UnitAssemblage/AssemblageName/@language">
<alias>AssemblageNameLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Associations/UnitAssociation/AssociatedUnitID">
<alias>AssociatedUnitID</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Associations/UnitAssociation/AssociatedUnitSourceInstitutionCode">
<alias>AssociatedUnitSourceInstitutionCode</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Associations/UnitAssociation/AssociatedUnitSourceName">
<alias>AssociatedUnitSourceName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Associations/UnitAssociation/AssociationType">
<alias>AssociationType</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Associations/UnitAssociation/AssociationType/@language">
<alias>AssociationTypeLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Associations/UnitAssociation/Comment">
<alias>AssociationComment</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Associations/UnitAssociation/Comment/@language">
<alias>AssociationCommentLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/AccessionLineage">
<alias>BotanicalGardenUnitAccessionLineage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/AccessionMaterialType">
<alias>BotanicalGardenUnitAccessionMaterialType</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/AccessionSpecimenNumbers">
<alias>BotanicalGardenUnitAccessionSpecimenNumbers</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/AccessionStatus">
<alias>BotanicalGardenUnitAccessionStatus</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/Cultivation">
<alias>BotanicalGardenUnitCultivation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/DonorCategory">
<alias>BotanicalGardenUnitDonorCategory</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/Hardiness">
<alias>BotanicalGardenUnitHardiness</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/IPEN">
<alias>BotanicalGardenUnitIPEN</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/LocationInGarden">
<alias>BotanicalGardenUnitLocationInGarden</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/Propagation">
<alias>BotanicalGardenUnitPropagation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/PropagationHistoryCode">
<alias>BotanicalGardenUnitPropagationHistoryCode</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/BotanicalGardenUnit/ProvenanceCategory">
<alias>BotanicalGardenUnitProvenanceCategory</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CollectorsFieldNumber">
<alias>CollectorsFieldNumber</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/Applications">
<alias>CultureCollectionUnitApplications</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/Applications/@language">
<alias>CultureCollectionUnitApplicationsLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/CultureNames/CultureName">
<alias>CultureCollectionUnitCultureName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/CultureNames/CultureName/@language">
<alias>CultureCollectionUnitCultureNameLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/FormOfSupply">
<alias>CultureCollectionUnitFormOfSupply</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/FormOfSupply/@language">
<alias>CultureCollectionUnitFormOfSupplyLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/Genotype">
<alias>CultureCollectionUnitGenotype</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/GrowthConditionAtomised/Aerobicity">
<alias>CultureCollectionUnitAerobicity</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/GrowthConditionAtomised/Aerobicity/@language">
<alias>CultureCollectionUnitAerobicityLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/GrowthConditionAtomised/CultureMedium">
<alias>CultureCollectionUnitCultureMedium</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/GrowthConditionAtomised/CultureMedium/@language">
<alias>CultureCollectionUnitCultureMediumLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/GrowthConditionAtomised/Temperature">
<alias>CultureCollectionUnitTemperature</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/GrowthConditionAtomised/Temperature/@TemperatureType">
<alias>CultureCollectionUnitTemperatureType</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/GrowthConditions">
<alias>CultureCollectionUnitGrowthConditions</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/GrowthConditions/@language">
<alias>CultureCollectionUnitGrowthConditionsLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/Hazard">
<alias>CultureCollectionUnitHazard</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/Hazard/@language">
<alias>CultureCollectionUnitHazardLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/InfrasubspecificName">
<alias>CultureCollectionUnitInfrasubspecificName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/Mutant">
<alias>CultureCollectionUnitMutant</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/OrganismType">
<alias>CultureCollectionUnitOrganismType</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/References/Reference/CitationDetail">
<alias>CultureCollectionUnitCitationDetail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/References/Reference/TitleCitation">
<alias>CultureCollectionUnitTitleCitation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/References/Reference/URI">
<alias>CultureCollectionUnitURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/CultureCollectionUnit/SerovarOrSerotype">
<alias>CultureCollectionUnitSerovarOrSerotype</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/DateLastEdited">
<alias>DateLastEdited</alias>
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/EAnnotations/Annotation/AnnotationDate">
<alias>AnnotationDate</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/EAnnotations/Annotation/AnnotationText">
<alias>AnnotationText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/EAnnotations/Annotation/AnnotationText/@language">
<alias>AnnotationTextLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/EAnnotations/Annotation/Annotator">
<alias>Annotator</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/AgentText">
<alias>GatheringAgent</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Organisation/Name/Representation/Abbreviation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Organisation/Name/Representation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Organisation/Name/Representation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Organisation/OrgUnits/OrgUnit">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Organisation/OrgUnits/OrgUnit/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Person/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Person/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Person/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Person/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Person/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Person/FullName">
<alias>GatheringAgentPerson</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/Person/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/@primarycollector">
<alias>GatheringAgentPrimarycollector</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/@sequence">
<alias>GatheringAgentSequence</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgentsText">
<alias>GatheringAgentsText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgentsText/@language">
<alias>GatheringAgentsTextLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/Accuracy">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/AppliesTo">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/AppliesTo/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/Duration">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/IsQuantitative">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/LowerValue">
<alias>Altitude</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/LowerValue/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/MeasuredBy">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/MeasurementDateTime">
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/MeasurementOrFactReference/CitationDetail">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/MeasurementOrFactReference/TitleCitation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/MeasurementOrFactReference/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/Method">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/Method/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/Parameter">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/Parameter/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/UnitOfMeasurement">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/UpperValue">
<alias>AltitudeUpperValue</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactAtomised/UpperValue/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactText">
<alias>AltitudeText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Altitude/MeasurementOrFactText/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/AreaDetail">
<alias>AreaDetail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/AreaDetail/@language">
<alias>AreaDetailLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Aspect/Accuracy">
<alias>AspectAccuracy</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Aspect/CompassBearing">
<alias>AspectCompassBearing</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Aspect/Ordination">
<alias>AspectOrdination</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Aspect/Text">
<alias>AspectText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/ClassificationScheme">
<alias>BiotopeClassificationScheme</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/ClassificationScheme/@language">
<alias>BiotopeClassificationSchemeLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/Accuracy">
<alias>BiotopeFactAccuracy</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/AppliesTo">
<alias>BiotopeFactAppliesTo</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/AppliesTo/@language">
<alias>BiotopeFactAppliesToLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/Duration">
<alias>BiotopeFactDuration</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/IsQuantitative">
<alias>BiotopeFactIsQuantitative</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/LowerValue">
<alias>BiotopeFactLowerValue</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/LowerValue/@language">
<alias>BiotopeFactLowerValueLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/MeasuredBy">
<alias>BiotopeFactMeasuredBy</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/MeasurementDateTime">
<alias>BiotopeFactMeasurementDateTime</alias>
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/MeasurementOrFactReference/CitationDetail">
<alias>BiotopeFactReferenceCitationDetail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/MeasurementOrFactReference/TitleCitation">
<alias>BiotopeFactReferenceTitleCitation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/MeasurementOrFactReference/URI">
<alias>BiotopeFactReferenceURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/Method">
<alias>BiotopeFactMethod</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/Method/@language">
<alias>BiotopeFactMethodLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/Parameter">
<alias>BiotopeFactParameter</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/Parameter/@language">
<alias>BiotopeFactParameterLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/UnitOfMeasurement">
<alias>BiotopeFactUnitOfMeasurement</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/UpperValue">
<alias>BiotopeFactUpperValue</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactAtomised/UpperValue/@language">
<alias>BiotopeFactUpperValueLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactText">
<alias>BiotopeFactText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/MeasurementsOrFacts/MeasurementOrFactText/@language">
<alias>BiotopeFactTextLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/Name">
<alias>BiotopeName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/Name/@language">
<alias>BiotopeNameLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/Text">
<alias>BiotopeText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Biotope/Text/@language">
<alias>BiotopeTextLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Code">
<alias>GatheringCode</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Country/ISO3166Code">
<alias>CountryISO3166Code</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Country/Name">
<alias>CountryName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Country/Name/@language">
<alias>CountryNameLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Country/NameDerived">
<alias>CountryNameDerived</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Country/NameDerived/@language">
<alias>CountryNameDerivedLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/DateTime/DateText">
<alias>GatheringDateText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/DateTime/DayNumberBegin">
<alias>GatheringDayNumber</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/DateTime/DayNumberEnd">
<alias>GatheringDayNumberEnd</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/DateTime/ISODateTimeBegin">
<alias>GatheringDateTimeISO</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/DateTime/ISODateTimeEnd">
<alias>GatheringDateTimeISOEnd</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/DateTime/PeriodExplicit">
<alias>GatheringDateTimePeriodExplicit</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/DateTime/TimeOfDayBegin">
<alias>GatheringTimeOfDay</alias>
<datatype>http://www.w3.org/2001/XMLSchema#time</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/DateTime/TimeOfDayEnd">
<alias>GatheringTimeOfDayEnd</alias>
<datatype>http://www.w3.org/2001/XMLSchema#time</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/DateTime/TimeZone">
<alias>GatheringTimeZone</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/Accuracy">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/AppliesTo">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/AppliesTo/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/Duration">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/IsQuantitative">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/LowerValue">
<alias>DepthLowerValue</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/LowerValue/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/MeasuredBy">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/MeasurementDateTime">
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/MeasurementOrFactReference/CitationDetail">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/MeasurementOrFactReference/TitleCitation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/MeasurementOrFactReference/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/Method">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/Method/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/Parameter">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/Parameter/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/UnitOfMeasurement">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/UpperValue">
<alias>DepthUpperValue</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactAtomised/UpperValue/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactText">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/MeasurementOrFactText/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Depth/@datum">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/GML">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/Accuracy">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/AppliesTo">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/AppliesTo/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/Duration">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/IsQuantitative">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/LowerValue">
<alias>Height</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/LowerValue/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/MeasuredBy">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/MeasurementDateTime">
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/MeasurementOrFactReference/CitationDetail">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/MeasurementOrFactReference/TitleCitation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/MeasurementOrFactReference/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/Method">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/Method/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/Parameter">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/Parameter/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/UnitOfMeasurement">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/UpperValue">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactAtomised/UpperValue/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactText">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/MeasurementOrFactText/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Height/@datum">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/LocalityText">
<alias>LocalityText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/LocalityText/@language">
<alias>LocalityTextLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Method">
<alias>GatheringMethod</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Method/@language">
<alias>GatheringMethodLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NamedAreas/NamedArea/AreaClass">
<alias>NamedAreaClass</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NamedAreas/NamedArea/AreaClass/@language">
<alias>NamedAreaClassLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NamedAreas/NamedArea/AreaCode">
<alias>NamedAreaCode</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NamedAreas/NamedArea/AreaCodeStandard">
<alias>NamedAreaCodeStandard</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NamedAreas/NamedArea/AreaName">
<alias>NamedArea</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NamedAreas/NamedArea/AreaName/@language">
<alias>NamedAreaLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NamedAreas/NamedArea/DataSource">
<alias>NamedAreaDataSource</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NamedAreas/NamedArea/@sequence">
<alias>NamedAreaSequence</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NearNamedPlaces/NamedPlaceRelation/NearNamedPlace">
<alias>NearNamedPlace</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NearNamedPlaces/NamedPlaceRelation/NearNamedPlace/@language">
<alias>NearNamedPlaceLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NearNamedPlaces/NamedPlaceRelation/NearNamedPlaceRelationTo">
<alias>NearNamedPlaceRelationTo</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NearNamedPlaces/NamedPlaceRelation/NearNamedPlaceRelationTo/@language">
<alias>NearNamedPlaceRelationToLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/NearNamedPlaces/NamedPlaceRelation/@DerivedFlag">
<alias>NamedPlaceRelationDerivedFlag</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Notes">
<alias>GatheringNotes</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Notes/@language">
<alias>GatheringNotesLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Permits/Permit">
<alias>GatheringPermit</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Permits/Permit/@language">
<alias>GatheringPermitLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/PlatformName">
<alias>PlatformName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Addresses/Address">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Addresses/Address/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Addresses/Address/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/EmailAddresses/EmailAddress">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/EmailAddresses/EmailAddress/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/LogoURI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Organisation/Name/Representation/Abbreviation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Organisation/Name/Representation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Organisation/Name/Representation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Organisation/OrgUnits/OrgUnit">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Organisation/OrgUnits/OrgUnit/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Person/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Person/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Person/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Person/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Person/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Person/FullName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Person/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Roles/Role">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/Roles/Role/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/TelephoneNumbers/TelephoneNumber/Device">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/TelephoneNumbers/TelephoneNumber/Number">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/TelephoneNumbers/TelephoneNumber/UsageNotes">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/TelephoneNumbers/TelephoneNumber/UsageNotes/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/TelephoneNumbers/TelephoneNumber/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/URIs/URL">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/Contact/URIs/URL/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/ProjectTitle">
<alias>ProjectTitle</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Project/ProjectTitle/@language">
<alias>ProjectTitleLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinateMethod">
<alias>CoordinatesMethod</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesGrid/GridCellCode">
<alias>GridCellCode</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesGrid/GridCellSystem">
<alias>GridCellSystem</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesGrid/GridQualifier">
<alias>GridQualifier</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesLatLong/AccuracyStatement">
<alias>CoordinatesAccuracyStatement</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesLatLong/CoordinateErrorDistanceInMeters">
<alias>CoordinatesErrorDistanceInMeters</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesLatLong/CoordinateErrorMethod">
<alias>CoordinatesErrorMethod</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesLatLong/LatitudeDecimal">
<alias>Latitude</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesLatLong/LongitudeDecimal">
<alias>Longitude</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesLatLong/SpatialDatum">
<alias>SpatialDatum</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesUTM/UTMEasting">
<alias>UTMEasting</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesUTM/UTMNorthing">
<alias>UTMNorthing</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesUTM/UTMText">
<alias>UTMText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/CoordinatesUTM/UTMZone">
<alias>UTMZone</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/@begin">
<alias>CoordinatesBegin</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/@end">
<alias>CoordinatesEnd</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteCoordinateSets/SiteCoordinates/@original">
<alias>CoordinatesOriginal</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/CaptureEquipment">
<alias>SiteImageCaptureEquipment</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/Comment">
<alias>SiteImageComment</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/Comment/@language">
<alias>SiteImageCommentLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/Context">
<alias>SiteImageContext</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/Context/@language">
<alias>SiteImageContextLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/CreatedDate">
<alias>SiteImageCreatedDate</alias>
<datatype>http://www.w3.org/2001/XMLSchema#date</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/Creator">
<alias>SiteImageCreator</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/FileSize">
<alias>SiteImageFileSize</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/FileURI">
<alias>SiteImageFileURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/Format">
<alias>SiteImageFormat</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/ID">
<alias>SiteImageID</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Acknowledgements/Acknowledgement/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Acknowledgements/Acknowledgement/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Acknowledgements/Acknowledgement/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Acknowledgements/Acknowledgement/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Citations/Citation/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Citations/Citation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Citations/Citation/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Citations/Citation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Copyrights/Copyright/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Copyrights/Copyright/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Copyrights/Copyright/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Copyrights/Copyright/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Disclaimers/Disclaimer/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Disclaimers/Disclaimer/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Disclaimers/Disclaimer/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Disclaimers/Disclaimer/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/IPRDeclarations/IPRDeclaration/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/IPRDeclarations/IPRDeclaration/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/IPRDeclarations/IPRDeclaration/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/IPRDeclarations/IPRDeclaration/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Licenses/License/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Licenses/License/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Licenses/License/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/Licenses/License/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/TermsOfUseStatements/TermsOfUse/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/TermsOfUseStatements/TermsOfUse/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/TermsOfUseStatements/TermsOfUse/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/IPR/TermsOfUseStatements/TermsOfUse/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/ImageColorSpace/Profile_Name">
<alias>SiteImageColorSpaceProfileName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/ImageColorSpace/Profile_Ref">
<alias>SiteImageColorSpaceProfileRef</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/ImageResolution">
<alias>SiteImageResolution</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/ImageSize/Height">
<alias>SiteImageSizeHeight</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/ImageSize/Width">
<alias>SiteImageSizeWidth</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteImages/SiteImage/ProductURI">
<alias>SiteImageSizeProductURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/Accuracy">
<alias>SiteFactAccuracy</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/AppliesTo">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/AppliesTo/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/Duration">
<alias>SiteFactDuration</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/IsQuantitative">
<alias>SiteFactIsQuantitative</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/LowerValue">
<alias>SiteFactLowerValue</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/LowerValue/@language">
<alias>SiteFactLowerValueLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/MeasuredBy">
<alias>SiteFactMeasuredBy</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/MeasurementDateTime">
<alias>SiteFactMeasurementDateTime</alias>
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/MeasurementOrFactReference/CitationDetail">
<alias>SiteFactReferenceCitationDetail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/MeasurementOrFactReference/TitleCitation">
<alias>SiteFactReferenceTitleCitation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/MeasurementOrFactReference/URI">
<alias>SiteFactReferenceURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/Method">
<alias>SiteFactMethod</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/Method/@language">
<alias>SiteFactMethodLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/Parameter">
<alias>SiteFactParameter</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/Parameter/@language">
<alias>SiteFactParameterLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/UnitOfMeasurement">
<alias>SiteFactUnitOfMeasurement</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/UpperValue">
<alias>SiteFactUpperValue</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactAtomised/UpperValue/@language">
<alias>SiteFactUpperValueLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactText">
<alias>SiteFactText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/SiteMeasurementsOrFacts/SiteMeasurementOrFact/MeasurementOrFactText/@language">
<alias>SiteFactTextLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/BiostratigraphicTerms/BiostratigraphicTerm/Comment">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/BiostratigraphicTerms/BiostratigraphicTerm/Domain">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/BiostratigraphicTerms/BiostratigraphicTerm/SourceName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/BiostratigraphicTerms/BiostratigraphicTerm/SourceNameVersion">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/BiostratigraphicTerms/BiostratigraphicTerm/Term">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/BiostratigraphicTerms/BiostratigraphicTerm/@Language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/ChronostratigraphicTerms/ChronostratigraphicTerm/Comment">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/ChronostratigraphicTerms/ChronostratigraphicTerm/Domain">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/ChronostratigraphicTerms/ChronostratigraphicTerm/SourceName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/ChronostratigraphicTerms/ChronostratigraphicTerm/SourceNameVersion">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/ChronostratigraphicTerms/ChronostratigraphicTerm/Term">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/ChronostratigraphicTerms/ChronostratigraphicTerm/@Language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/LithostratigraphicTerms/LithostratigraphicTerm/Comment">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/LithostratigraphicTerms/LithostratigraphicTerm/Domain">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/LithostratigraphicTerms/LithostratigraphicTerm/SourceName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/LithostratigraphicTerms/LithostratigraphicTerm/SourceNameVersion">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/LithostratigraphicTerms/LithostratigraphicTerm/Term">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/LithostratigraphicTerms/LithostratigraphicTerm/@Language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/StratigraphyText">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Stratigraphy/StratigraphyText/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/Code">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/HigherTaxa/HigherTaxon/HigherTaxonName">
<alias>AssociatedTaxaHigherTaxonName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/HigherTaxa/HigherTaxon/HigherTaxonRank">
<alias>AssociatedTaxaHigherTaxonRank</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/InformalNameString">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/InformalNameString/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/NameComments">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/NameComments/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/FullScientificNameString">
<alias>AssociatedTaxaFullScientificName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/IdentificationQualifier">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/IdentificationQualifier/@insertionpoint">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAddendum">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Bacterial/AuthorTeamAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Bacterial/GenusOrMonomial">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Bacterial/NameApprobation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Bacterial/ParentheticalAuthorTeamAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Bacterial/SpeciesEpithet">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Bacterial/Subgenus">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Bacterial/SubgenusAuthorAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Bacterial/SubspeciesEpithet">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/AuthorTeam">
<alias>AssociatedTaxaBotanicalAuthorTeam</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/AuthorTeamParenthesis">
<alias>AssociatedTaxaBotanicalAuthorTeamParenthesis</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/CultivarGroupName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/CultivarName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/FirstEpithet">
<alias>AssociatedTaxaBotanicalFirstEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/GenusOrMonomial">
<alias>AssociatedTaxaBotanicalGenusOrMonomial</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/HybridFlag">
<alias>AssociatedTaxaBotanicalHybridFlag</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/HybridFlag/@insertionpoint">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/InfraspecificEpithet">
<alias>AssociatedTaxaBotanicalInfraspecificEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/Rank">
<alias>AssociatedTaxaBotanicalRank</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Botanical/TradeDesignationNames/TradeDesignationName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Viral/GenusOrMonomial">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Viral/ViralSpeciesDesignation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Zoological/AuthorTeamOriginalAndYear">
<alias>AssociatedTaxaZoologicalAuthorTeamOriginalAndYear</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Zoological/AuthorTeamParenthesisAndYear">
<alias>AssociatedTaxaZoologicalAuthorTeamParenthesisAndYear</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Zoological/Breed">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Zoological/CombinationAuthorTeamAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Zoological/GenusOrMonomial">
<alias>AssociatedTaxaZoologicalGenusOrMonomial</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Zoological/NamedIndividual">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Zoological/SpeciesEpithet">
<alias>AssociatedTaxaZoologicalSpeciesEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Zoological/Subgenus">
<alias>AssociatedTaxaZoologicalSubgenus</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/AssociatedTaxa/TaxonIdentified/ScientificName/NameAtomised/Zoological/SubspeciesEpithet">
<alias>AssociatedTaxaZoologicalSubspeciesEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/Comment">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/Comment/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/Synecology/Syntaxon">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/WFS">
<alias>WFS</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Gathering/WMSURL">
<alias>WMSURL</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/HerbariumUnit/DuplicatesDistributedTo">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/HerbariumUnit/Exsiccatum">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/HerbariumUnit/LoanDate">
<datatype>http://www.w3.org/2001/XMLSchema#date</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/HerbariumUnit/LoanDespatchMethod">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/HerbariumUnit/LoanDestination">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/HerbariumUnit/LoanForBotanist">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/HerbariumUnit/LoanIdentifier">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/HerbariumUnit/LoanReturnDate">
<datatype>http://www.w3.org/2001/XMLSchema#date</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/HerbariumUnit/LoanSequenceNo">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Acknowledgements/Acknowledgement/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Acknowledgements/Acknowledgement/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Acknowledgements/Acknowledgement/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Acknowledgements/Acknowledgement/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Citations/Citation/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Citations/Citation/Text">
<alias>UnitCitationText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Citations/Citation/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Citations/Citation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Copyrights/Copyright/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Copyrights/Copyright/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Copyrights/Copyright/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Copyrights/Copyright/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Disclaimers/Disclaimer/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Disclaimers/Disclaimer/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Disclaimers/Disclaimer/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Disclaimers/Disclaimer/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/IPRDeclarations/IPRDeclaration/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/IPRDeclarations/IPRDeclaration/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/IPRDeclarations/IPRDeclaration/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/IPRDeclarations/IPRDeclaration/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Licenses/License/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Licenses/License/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Licenses/License/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/Licenses/License/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/TermsOfUseStatements/TermsOfUse/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/TermsOfUseStatements/TermsOfUse/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/TermsOfUseStatements/TermsOfUse/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/IPRStatements/TermsOfUseStatements/TermsOfUse/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Date/DateText">
<alias>IdentificationDateText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Date/DayNumberBegin">
<alias>IdentificationDayNumber</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Date/DayNumberEnd">
<alias>IdentificationDayNumberEnd</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Date/ISODateTimeBegin">
<alias>IdentificationISODateTime</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Date/ISODateTimeEnd">
<alias>IdentificationISODateTimeEnd</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Date/PeriodExplicit">
<alias>IdentificationPeriodExplicit</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Date/TimeOfDayBegin">
<alias>IdentificationTimeOfDay</alias>
<datatype>http://www.w3.org/2001/XMLSchema#time</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Date/TimeOfDayEnd">
<alias>IdentificationTimeOfDayEnd</alias>
<datatype>http://www.w3.org/2001/XMLSchema#time</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Date/TimeZone">
<alias>IdentificationTimeZone</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/IdentificationSource/CitationDetail">
<alias>IdentificationSourceCitationDetail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/IdentificationSource/TitleCitation">
<alias>IdentificationSourceTitleCitation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/IdentificationSource/URI">
<alias>IdentificationSourceURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/Organisation/Name/Representation/Abbreviation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/Organisation/Name/Representation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/Organisation/Name/Representation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/Organisation/OrgUnits/OrgUnit">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/Organisation/OrgUnits/OrgUnit/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/PersonName/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/PersonName/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/PersonName/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/PersonName/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/PersonName/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/PersonName/FullName">
<alias>Identifier</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifiers/Identifier/PersonName/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Method">
<alias>IdentificationMethod</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Method/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/NonFlag">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Notes">
<alias>IdentificationNotes</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Notes/@language">
<alias>IdentificationNotesLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/PreferredFlag">
<alias>IdentificationPreferredFlag</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/References/Reference/CitationDetail">
<alias>IdentificationReferenceCitationDetail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/References/Reference/TitleCitation">
<alias>IdentificationReferenceTitleCitation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/References/Reference/URI">
<alias>IdentificationReferenceURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/Extension">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/MaterialIdentified">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/MaterialIdentified/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/Code">
<alias>Code</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/HigherTaxa/HigherTaxon/HigherTaxonName">
<alias>HigherTaxon</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/HigherTaxa/HigherTaxon/HigherTaxonRank">
<alias>HigherTaxonRank</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/InformalNameString">
<alias>InformalNameString</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/InformalNameString/@language">
<alias>InformalNameStringLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/NameComments">
<alias>NameComments</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/NameComments/@language">
<alias>NameCommentsLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/FullScientificNameString">
<alias>FullScientificName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/IdentificationQualifier">
<alias>IdentificationQualifier</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/IdentificationQualifier/@insertionpoint">
<alias>IdentificationQualifierInsertionpoint</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAddendum">
<alias>NameAddendum</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Bacterial/AuthorTeamAndYear">
<alias>BacterialAuthorTeamAndYear</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Bacterial/GenusOrMonomial">
<alias>BacterialGenusOrMonomial</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Bacterial/NameApprobation">
<alias>BacterialNameApprobation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Bacterial/ParentheticalAuthorTeamAndYear">
<alias>BacterialParentheticalAuthorTeamAndYear</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Bacterial/SpeciesEpithet">
<alias>BacterialSpeciesEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Bacterial/Subgenus">
<alias>BacterialSubgenus</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Bacterial/SubgenusAuthorAndYear">
<alias>BacterialSubgenusAuthorAndYear</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Bacterial/SubspeciesEpithet">
<alias>BacterialSubspeciesEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/AuthorTeam">
<alias>BotanicalAuthorTeam</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/AuthorTeamParenthesis">
<alias>BotanicalAuthorTeamParenthesis</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/CultivarGroupName">
<alias>BotanicalCultivarGroupName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/CultivarName">
<alias>BotanicalCultivarName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/FirstEpithet">
<alias>BotanicalFirstEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/GenusOrMonomial">
<alias>BotanicalBotanicalGenusOrMonomial</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/HybridFlag">
<alias>BotanicalHybridFlag</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/HybridFlag/@insertionpoint">
<alias>BotanicalHybridFlagInsertionpoint</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/InfraspecificEpithet">
<alias>BotanicalInfraspecificEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/Rank">
<alias>BotanicalRank</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Botanical/TradeDesignationNames/TradeDesignationName">
<alias>BotanicalTradeDesignationName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Viral/GenusOrMonomial">
<alias>ViralGenusOrMonomial</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Viral/ViralSpeciesDesignation">
<alias>ViralSpeciesDesignation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Zoological/AuthorTeamOriginalAndYear">
<alias>ZoologicalAuthorTeamOriginalAndYear</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Zoological/AuthorTeamParenthesisAndYear">
<alias>ZoologicalAuthorTeamParenthesisAndYear</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Zoological/Breed">
<alias>ZoologicalBreed</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Zoological/CombinationAuthorTeamAndYear">
<alias>ZoologicalCombinationAuthorTeamAndYear</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Zoological/GenusOrMonomial">
<alias>ZoologicalZoologicalGenusOrMonomial</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Zoological/NamedIndividual">
<alias>ZoologicalNamedIndividual</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Zoological/SpeciesEpithet">
<alias>ZoologicalSpeciesEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Zoological/Subgenus">
<alias>ZoologicalSubgenus</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/NameAtomised/Zoological/SubspeciesEpithet">
<alias>ZoologicalSubspeciesEpithet</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/ResultRole">
<alias>IdentificationResultRole</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/ResultRole/@language">
<alias>IdentificationResultRoleLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/StoredUnderFlag">
<alias>IdentificationStoredUnderFlag</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/VerificationLevel">
<alias>IdentificationVerificationLevel</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/IdentificationHistory">
<alias>IdentificationIdentificationHistory</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/KindOfUnit">
<alias>KindOfUnit</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/KindOfUnit/@language">
<alias>KindOfUnitLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/LastEditor">
<alias>LastEditor</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/Accuracy">
<alias>FactAccuracy</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/AppliesTo">
<alias>FactAppliesTo</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/AppliesTo/@language">
<alias>FactAppliesToLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/Duration">
<alias>FactDuration</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/IsQuantitative">
<alias>FactIsQuantitative</alias>
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/LowerValue">
<alias>Fact</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/LowerValue/@language">
<alias>FactLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/MeasuredBy">
<alias>FactMeasuredBy</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/MeasurementDateTime">
<alias>FactMeasurementDateTime</alias>
<datatype>http://www.w3.org/2001/XMLSchema#dateTime</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/MeasurementOrFactReference/CitationDetail">
<alias>FactReferenceCitationDetail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/MeasurementOrFactReference/TitleCitation">
<alias>FactReferenceCitationTitle</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/MeasurementOrFactReference/URI">
<alias>FactReferenceURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/Method">
<alias>FactMethod</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/Method/@language">
<alias>FactMethodLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/Parameter">
<alias>FactParameter</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/Parameter/@language">
<alias>FactParameterLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/UnitOfMeasurement">
<alias>FactUnitOfMeasurement</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/UpperValue">
<alias>FactUpperValue</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactAtomised/UpperValue/@language">
<alias>FactUpperValueLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactText">
<alias>FactText</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MeasurementsOrFacts/MeasurementOrFact/MeasurementOrFactText/@language">
<alias>FactTextLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/CaptureEquipment">
<alias>MultiMediaObjectCaptureEquipment</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/Comment">
<alias>MultiMediaObjectComment</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/Comment/@language">
<alias>MultiMediaObjectCommentLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/Context">
<alias>MultiMediaObjectContext</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/Context/@language">
<alias>MultiMediaObjectContextLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/CreatedDate">
<alias>MultiMediaObjectCreatedDate</alias>
<datatype>http://www.w3.org/2001/XMLSchema#date</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/Creator">
<alias>MultiMediaObjectCreator</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/FileSize">
<alias>MultiMediaObjectFileSize</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/FileURI">
<alias>MultiMediaObjectFileURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/Format">
<alias>MultiMediaObjectFormat</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/ID">
<alias>MultiMediaObjectID</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Acknowledgements/Acknowledgement/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Acknowledgements/Acknowledgement/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Acknowledgements/Acknowledgement/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Acknowledgements/Acknowledgement/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Citations/Citation/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Citations/Citation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Citations/Citation/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Citations/Citation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Copyrights/Copyright/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Copyrights/Copyright/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Copyrights/Copyright/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Copyrights/Copyright/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Disclaimers/Disclaimer/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Disclaimers/Disclaimer/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Disclaimers/Disclaimer/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Disclaimers/Disclaimer/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/IPRDeclarations/IPRDeclaration/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/IPRDeclarations/IPRDeclaration/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/IPRDeclarations/IPRDeclaration/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/IPRDeclarations/IPRDeclaration/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Licenses/License/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Licenses/License/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Licenses/License/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/Licenses/License/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/TermsOfUseStatements/TermsOfUse/Details">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/TermsOfUseStatements/TermsOfUse/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/TermsOfUseStatements/TermsOfUse/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/IPR/TermsOfUseStatements/TermsOfUse/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/ImageColorSpace/Profile_Name">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/ImageColorSpace/Profile_Ref">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/ImageResolution">
<alias>MultiMediaObjectImageResolution</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/ImageSize/Height">
<alias>MultiMediaObjectImageHeight</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/ImageSize/Width">
<alias>MultiMediaObjectImageWidth</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MultiMediaObjects/MultiMediaObject/ProductURI">
<alias>MultiMediaObjectProductURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MycologicalUnit/LichenMorphotype">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MycologicalUnit/MycologicalLiveStages/MycologicalLiveStage">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MycologicalUnit/MycologicalLiveStages/MycologicalLiveStage/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/MycologicalUnit/MycologicalSexualStage">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/NamedCollectionsOrSurveys/NamedCollectionOrSurvey">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/NamedCollectionsOrSurveys/NamedCollectionOrSurvey/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Notes">
<alias>Notes</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Notes/@language">
<alias>NotesLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/ObservationUnit/ObservationUnitIdentifiers/ObservationUnitIdentifier">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/ObservationUnit/ObservationUnitIdentifiers/ObservationUnitIdentifier/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Addresses/Address">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Addresses/Address/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Addresses/Address/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/EmailAddresses/EmailAddress">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/EmailAddresses/EmailAddress/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/LogoURI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Organisation/Name/Representation/Abbreviation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Organisation/Name/Representation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Organisation/Name/Representation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Organisation/OrgUnits/OrgUnit">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Organisation/OrgUnits/OrgUnit/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Person/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Person/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Person/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Person/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Person/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Person/FullName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Person/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Roles/Role">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/Roles/Role/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/TelephoneNumbers/TelephoneNumber/Device">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/TelephoneNumbers/TelephoneNumber/Number">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/TelephoneNumbers/TelephoneNumber/UsageNotes">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/TelephoneNumbers/TelephoneNumber/UsageNotes/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/TelephoneNumbers/TelephoneNumber/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/URIs/URL">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Owner/URIs/URL/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Completeness">
<alias>PalaeontologicalUnitCompleteness</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Completeness/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Form">
<alias>PalaeontologicalUnitForm</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Form/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Matrix">
<alias>PalaeontologicalUnitMatrix</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Matrix/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Mineralisation">
<alias>PalaeontologicalUnitMineralisation</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Mineralisation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Taphonomy">
<alias>PalaeontologicalUnitTaphonomy</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/Preservation/Taphonomy/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PalaeontologicalUnit/TimeRange">
<alias>PalaeontologicalUnitTimeRange</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/AncestralData">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/AncestralData/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/BiologicalStatus">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/BreedingInstitutionCode">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/CollectingAcquisitionSource">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/DecodedBreedingInstitute">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/DecodedDonorInstitute">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/DecodedLocationSafetyDuplicates">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/LocationSafetyDuplicates">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/NationalInventoryCode">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/OtherIdentification">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/PlantGeneticResourcesUnit/TypeGermplasmStorage">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/RecordBasis">
<alias>RecordBasis</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/RecordURI">
<alias>RecordURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/Database">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/Database/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/ID-in-Database">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/Length">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/Method">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/Method/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/Reference/CitationDetail">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/Reference/TitleCitation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/Reference/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencedPart">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencedPart/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Addresses/Address">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Addresses/Address/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Addresses/Address/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/EmailAddresses/EmailAddress">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/EmailAddresses/EmailAddress/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/LogoURI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Organisation/Name/Representation/Abbreviation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Organisation/Name/Representation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Organisation/Name/Representation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Organisation/OrgUnits/OrgUnit">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Organisation/OrgUnits/OrgUnit/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Person/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Person/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Person/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Person/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Person/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Person/FullName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Person/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Roles/Role">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/Roles/Role/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/TelephoneNumbers/TelephoneNumber/Device">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/TelephoneNumbers/TelephoneNumber/Number">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/TelephoneNumbers/TelephoneNumber/UsageNotes">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/TelephoneNumbers/TelephoneNumber/UsageNotes/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/TelephoneNumbers/TelephoneNumber/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/URIs/URL">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sequences/Sequence/SequencingAgent/URIs/URL/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Sex">
<alias>Sex</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SourceID" required="true">
<alias>SourceID</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SourceInstitutionID" required="true">
<alias>SourceInstitutionID</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SourceReference/CitationDetail">
<alias>SourceReferenceCitationDetail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SourceReference/TitleCitation">
<alias>SourceReferenceCitationTitle</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SourceReference/URI">
<alias>SourceReferenceURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Accessions/AccessionCatalogue">
<alias>AccessionCatalogue</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Accessions/AccessionDate">
<alias>AccessionDate</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Accessions/AccessionNumber">
<alias>AccessionNumber</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Addresses/Address">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Addresses/Address/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Addresses/Address/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/EmailAddresses/EmailAddress">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/EmailAddresses/EmailAddress/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/LogoURI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Organisation/Name/Representation/Abbreviation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Organisation/Name/Representation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Organisation/Name/Representation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Organisation/OrgUnits/OrgUnit">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Organisation/OrgUnits/OrgUnit/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Person/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Person/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Person/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Person/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Person/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Person/FullName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Person/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Roles/Role">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/Roles/Role/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/TelephoneNumbers/TelephoneNumber/Device">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/TelephoneNumbers/TelephoneNumber/Number">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/TelephoneNumbers/TelephoneNumber/UsageNotes">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/TelephoneNumbers/TelephoneNumber/UsageNotes/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/TelephoneNumbers/TelephoneNumber/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/URIs/URL">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquiredFrom/URIs/URL/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquisitionDate">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquisitionSourceText">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquisitionSourceText/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquisitionType">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Acquisition/AcquisitionType/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Comment">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Comment/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Date/DateText">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Date/DayNumberBegin">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Date/DayNumberEnd">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Date/ISODateTimeBegin">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Date/ISODateTimeEnd">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Date/PeriodExplicit">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Date/TimeOfDayBegin">
<datatype>http://www.w3.org/2001/XMLSchema#time</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Date/TimeOfDayEnd">
<datatype>http://www.w3.org/2001/XMLSchema#time</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/Date/TimeZone">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/PreviousSourceID">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/PreviousUnitID">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/PreviousUnitText">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/PreviousUnitText/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/History/PreviousUnits/PreviousUnit/@sequence">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/Images/ImageID">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/MarkAuthor">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/MarkComment">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/MarkComment/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/MarkText">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/MarkText/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/MarkType">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/MarkType/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/PositionOnObject">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Marks/Mark/PositionOnObject/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/CodeAssessment">
<alias>CodeAssessment</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/DoubtfulFlag">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/NomenclaturalReference/CitationDetail">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/NomenclaturalReference/TitleCitation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/NomenclaturalReference/URI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypeStatus">
<alias>TypeStatus</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/FullScientificNameString">
<alias>TypifiedName</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Bacterial/AuthorTeamAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Bacterial/GenusOrMonomial">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Bacterial/NameApprobation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Bacterial/ParentheticalAuthorTeamAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Bacterial/SpeciesEpithet">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Bacterial/Subgenus">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Bacterial/SubgenusAuthorAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Bacterial/SubspeciesEpithet">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/AuthorTeam">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/AuthorTeamParenthesis">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/CultivarGroupName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/CultivarName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/FirstEpithet">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/GenusOrMonomial">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/HybridFlag">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/HybridFlag/@insertionpoint">
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/InfraspecificEpithet">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/Rank">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Botanical/TradeDesignationNames/TradeDesignationName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Viral/GenusOrMonomial">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Viral/ViralSpeciesDesignation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Zoological/AuthorTeamOriginalAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Zoological/AuthorTeamParenthesisAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Zoological/Breed">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Zoological/CombinationAuthorTeamAndYear">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Zoological/GenusOrMonomial">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Zoological/NamedIndividual">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Zoological/SpeciesEpithet">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Zoological/Subgenus">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/TypifiedName/NameAtomised/Zoological/SubspeciesEpithet">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/VerificationDate">
<datatype>http://www.w3.org/2001/XMLSchema#date</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/VerificationNotes">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/VerificationNotes/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/Verifier/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/Verifier/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/Verifier/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/Verifier/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/Verifier/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/Verifier/FullName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/NomenclaturalTypeDesignations/NomenclaturalTypeDesignation/Verifier/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Addresses/Address">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Addresses/Address/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Addresses/Address/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/EmailAddresses/EmailAddress">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/EmailAddresses/EmailAddress/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/LogoURI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Organisation/Name/Representation/Abbreviation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Organisation/Name/Representation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Organisation/Name/Representation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Organisation/OrgUnits/OrgUnit">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Organisation/OrgUnits/OrgUnit/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Person/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Person/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Person/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Person/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Person/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Person/FullName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Person/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Roles/Role">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/Roles/Role/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/TelephoneNumbers/TelephoneNumber/Device">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/TelephoneNumbers/TelephoneNumber/Number">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/TelephoneNumbers/TelephoneNumber/UsageNotes">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/TelephoneNumbers/TelephoneNumber/UsageNotes/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/TelephoneNumbers/TelephoneNumber/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/URIs/URL">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Owner/URIs/URL/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Addresses/Address">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Addresses/Address/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Addresses/Address/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/EmailAddresses/EmailAddress">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/EmailAddresses/EmailAddress/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/LogoURI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Organisation/Name/Representation/Abbreviation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Organisation/Name/Representation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Organisation/Name/Representation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Organisation/OrgUnits/OrgUnit">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Organisation/OrgUnits/OrgUnit/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Person/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Person/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Person/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Person/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Person/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Person/FullName">
<alias>PreparationAgent</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Person/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Roles/Role">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/Roles/Role/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/TelephoneNumbers/TelephoneNumber/Device">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/TelephoneNumbers/TelephoneNumber/Number">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/TelephoneNumbers/TelephoneNumber/UsageNotes">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/TelephoneNumbers/TelephoneNumber/UsageNotes/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/TelephoneNumbers/TelephoneNumber/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/URIs/URL">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationAgent/URIs/URL/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationMaterials">
<alias>PreparationMaterials</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationMaterials/@language">
<alias>PreparationMaterialsLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationProcess">
<alias>PreparationProcess</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationProcess/@language">
<alias>PreparationProcessLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationType">
<alias>PreparationType</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/PreparationType/@language">
<alias>PreparationTypeLanguage</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/SpecimenUnit/Preparations/Preparation/@sequence">
<alias>PreparationSequence</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Addresses/Address">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Addresses/Address/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Addresses/Address/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/EmailAddresses/EmailAddress">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/EmailAddresses/EmailAddress/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/LogoURI">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Organisation/Name/Representation/Abbreviation">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Organisation/Name/Representation/Text">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Organisation/Name/Representation/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Organisation/OrgUnits/OrgUnit">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Organisation/OrgUnits/OrgUnit/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Person/AtomisedName/GivenNames">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Person/AtomisedName/InheritedName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Person/AtomisedName/PreferredName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Person/AtomisedName/Prefix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Person/AtomisedName/Suffix">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Person/FullName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Person/SortingName">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Roles/Role">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/Roles/Role/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/TelephoneNumbers/TelephoneNumber/Device">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/TelephoneNumbers/TelephoneNumber/Number">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/TelephoneNumbers/TelephoneNumber/UsageNotes">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/TelephoneNumbers/TelephoneNumber/UsageNotes/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/TelephoneNumbers/TelephoneNumber/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/URIs/URL">
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/URIs/URL/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitContentContacts/UnitContentContact/@preferred">
<datatype>http://www.w3.org/2001/XMLSchema#boolean</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitExtension">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitGUID">
<alias>UnitGUID</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitID" required="true">
<alias>UnitID</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitIDNumeric">
<alias>UnitIDNumeric</alias>
<datatype>http://www.w3.org/2001/XMLSchema#decimal</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitReferences/UnitReference/CitationDetail">
<alias>UnitReferenceCitationDetail</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitReferences/UnitReference/TitleCitation">
<alias>UnitReferenceCitationTitle</alias>
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/UnitReferences/UnitReference/URI">
<alias>UnitReferenceURI</alias>
<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/ZoologicalUnit/PhasesOrStages/PhaseOrStage">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/ZoologicalUnit/PhasesOrStages/PhaseOrStage/@language">
<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>
</concept>
</concepts>
</schema>
</cns>
/tags/v1.0-syrah/doc/bdd/coel_table_coel_collection_botanique.html
New file
0,0 → 1,777
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Collection - coel_collection_botanique</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Collection.html">Collection</a> > coel_collection_botanique</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_collection_botanique</h1>
<h2> Description générale </h2>
<p>
Toutes les informations spécialisées sur une collection de type : botanique
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="ccb_id_collection" class="pair" >
<td> 1 </td>
<td> ccb_id_collection </td>
<td> ccb_id_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Type(s) unité de rangement de la collection botanique. \<br />Pour chaque type : indication du nombre d'unité, de la précision du nom (exact, approximatif), des formats. </td>
</tr>
<tr id="ccb_nbre_echantillon" class="pair" >
<td> 2 </td>
<td> ccb_nbre_echantillon </td>
<td> ccb_ne </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nombre de cartons ou liasses échantillonnées. </td>
</tr>
<tr id="ccb_ce_truk_type" class="pair" >
<td> 3 </td>
<td> ccb_ce_truk_type </td>
<td> ccb_ce_tt </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Type(s) de collection botanique. </td>
</tr>
<tr id="ccb_truk_unite_rangement" class="pair" >
<td> 4 </td>
<td> ccb_truk_unite_rangement </td>
<td> ccb_tur </td>
<td> VARCHAR(510) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) unité de rangement de la collection botanique. \<br />Pour chaque type : indication du nombre d'unité, de la précision du nom (exact, approximatif), des formats. </td>
</tr>
<tr id="ccb_ce_unite_rangement_etat" class="pair" >
<td> 5 </td>
<td> ccb_ce_unite_rangement_etat </td>
<td> ccb_ce_ure </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> État de la majorité des unités de rangements (état des rubans, des poignées, des sangles, des cartons...). </td>
</tr>
<tr id="ccb_truk_unite_base" class="pair" >
<td> 6 </td>
<td> ccb_truk_unite_base </td>
<td> ccb_tub </td>
<td> VARCHAR(510) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) d'unité de base de la collection, si différent de l'unité de rangement. \\ Ex. : si l'unité de rangement est un carton, l'unité de base peut être une enveloppe. \\ Pour chaque type : indication du nombre d'unité, de la précision du nom (exact = 1, approximatif = 0), des formats (Lxl cm), du nombre de parts, de la précision sur le nombre de parts (exact = 1, approximatif = 0), du nombre d'espèces, de la précision sur le nombre d'espèces (exact, approximatif). </td>
</tr>
<tr id="ccb_truk_conservation_papier_type" class="pair" >
<td> 7 </td>
<td> ccb_truk_conservation_papier_type </td>
<td> ccb_tcpt </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) du papier de conservation. </td>
</tr>
<tr id="ccb_truk_conservation_methode" class="pair" >
<td> 8 </td>
<td> ccb_truk_conservation_methode </td>
<td> ccb_tcm </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) de méthode de conservation. </td>
</tr>
<tr id="ccb_specimen_fixation_pourcent" class="pair" >
<td> 9 </td>
<td> ccb_specimen_fixation_pourcent </td>
<td> ccb_sfp </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Pourcentage de spécimens fixés. </td>
</tr>
<tr id="ccb_etiquette_fixation_pourcent" class="pair" >
<td> 10 </td>
<td> ccb_etiquette_fixation_pourcent </td>
<td> ccb_efp </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Pourcentage d'étiquettes fixées. </td>
</tr>
<tr id="ccb_truk_specimen_fixation_methode" class="pair" >
<td> 11 </td>
<td> ccb_truk_specimen_fixation_methode </td>
<td> ccb_tsfm </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) de fixation des spécimens. </td>
</tr>
<tr id="ccb_truk_etiquette_fixation_support" class="pair" >
<td> 12 </td>
<td> ccb_truk_etiquette_fixation_support </td>
<td> ccb_tefs </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) de fixation des étiquettes fixées au support. </td>
</tr>
<tr id="ccb_truk_etiquette_fixation_specimen" class="pair" >
<td> 13 </td>
<td> ccb_truk_etiquette_fixation_specimen </td>
<td> ccb_tefs </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) de fixation des étiquettes fixées au spécimen. </td>
</tr>
<tr id="ccb_truk_etiquette_ecriture" class="pair" >
<td> 14 </td>
<td> ccb_truk_etiquette_ecriture </td>
<td> ccb_tee </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) d'écriture sur les étiquettes. </td>
</tr>
<tr id="ccb_ce_traitement" class="pair" >
<td> 15 </td>
<td> ccb_ce_traitement </td>
<td> ccb_ce_t </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> La collection botanique semble-t-elle avoir été empoisonnée ou désinsectisée lors de sa réalisation ? </td>
</tr>
<tr id="ccb_truk_traitement_poison" class="pair" >
<td> 16 </td>
<td> ccb_truk_traitement_poison </td>
<td> ccb_ttp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) d'empoisonement de la collection. </td>
</tr>
<tr id="ccb_truk_traitement_insecte" class="pair" >
<td> 17 </td>
<td> ccb_truk_traitement_insecte </td>
<td> ccb_tti </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) de désinctisation de la collection. </td>
</tr>
<tr id="ccb_ce_etat_general" class="pair" >
<td> 18 </td>
<td> ccb_ce_etat_general </td>
<td> ccb_ce_eg </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> État général de la collection (grosses attaques d'insectes, pourriture, papier très fragile, etc... de 1 très mauvais à 5 très bon état). </td>
</tr>
<tr id="ccb_truk_degradation_specimen" class="pair" >
<td> 19 </td>
<td> ccb_truk_degradation_specimen </td>
<td> ccb_tds </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) de causes des dégradations des spécimens notées de 1 très mauvais à 5 très bon état. </td>
</tr>
<tr id="ccb_truk_degradation_presentation" class="pair" >
<td> 20 </td>
<td> ccb_truk_degradation_presentation </td>
<td> ccb_tdp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Type(s) de causes des dégradations de la présentation notées de 1 très mauvais à 5 très bon état. </td>
</tr>
<tr id="ccb_ce_determination" class="pair" >
<td> 21 </td>
<td> ccb_ce_determination </td>
<td> ccb_ce_d </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Les échantillons sont-ils déterminables ? (de 1 : quelques fragment de plantes à 5 plantes entières). </td>
</tr>
<tr id="ccb_truk_nature" class="pair" >
<td> 22 </td>
<td> ccb_truk_nature </td>
<td> ccb_tn </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nature de l'herbier. </td>
</tr>
<tr id="ccb_specialite" class="pair" >
<td> 23 </td>
<td> ccb_specialite </td>
<td> ccb_s </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Collection botanique spécialisée (ex. herbier de céréales...) </td>
</tr>
<tr id="ccb_recolte_date_debut" class="pair" >
<td> 24 </td>
<td> ccb_recolte_date_debut </td>
<td> ccb_rdd </td>
<td> DATE </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Date extrême de début de récolte. </td>
</tr>
<tr id="ccb_ce_recolte_date_debut_type" class="pair" >
<td> 25 </td>
<td> ccb_ce_recolte_date_debut_type </td>
<td> ccb_ce_rddt </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Type de date extrême de début de récolte. </td>
</tr>
<tr id="ccb_recolte_date_fin" class="pair" >
<td> 26 </td>
<td> ccb_recolte_date_fin </td>
<td> ccb_rdf </td>
<td> DATE </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Date extrême de fin de récolte. </td>
</tr>
<tr id="ccb_ce_recolte_date_fin_type" class="pair" >
<td> 27 </td>
<td> ccb_ce_recolte_date_fin_type </td>
<td> ccb_ce_rdft </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Type de date extrême de fin de récolte. </td>
</tr>
<tr id="ccb_annotation_classement" class="pair" >
<td> 28 </td>
<td> ccb_annotation_classement </td>
<td> ccb_ac </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Indiquer le type de classement ou des informations concernant un éventuel classement. </td>
</tr>
<tr id="ccb_ce_classement_etat" class="pair" >
<td> 29 </td>
<td> ccb_ce_classement_etat </td>
<td> ccb_ce_ce </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> État du classement (de 1 très mauvais à 5 très bon). </td>
</tr>
<tr id="ccb_truk_etiquette_renseignement" class="pair" >
<td> 30 </td>
<td> ccb_truk_etiquette_renseignement </td>
<td> ccb_ter </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Pourcentage pour chaque type de renseignements portés sur l'étiquette ou sur la part. </td>
</tr>
<tr id="ccb_ce_precision_localite" class="pair" >
<td> 31 </td>
<td> ccb_ce_precision_localite </td>
<td> ccb_ce_pl </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Les localités sont elles précises? </td>
</tr>
<tr id="ccb_ce_precision_date" class="pair" >
<td> 32 </td>
<td> ccb_ce_precision_date </td>
<td> ccb_ce_pd </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Les dates sont elles précises? </td>
</tr>
<tr id="ccb_annotation_diverse" class="pair" >
<td> 33 </td>
<td> ccb_annotation_diverse </td>
<td> ccb_ad </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Autres annotations (dons, annotations personnelles, recettes, utilisations médicales...). </td>
</tr>
<tr id="ccb_ce_collection_integre" class="pair" >
<td> 34 </td>
<td> ccb_ce_collection_integre </td>
<td> ccb_ce_ci </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> La collection observée intègre-t-elle des collections botaniques antérieures ? </td>
</tr>
<tr id="ccb_ce_collection_integre_info" class="pair" >
<td> 35 </td>
<td> ccb_ce_collection_integre_info </td>
<td> ccb_ce_cii </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Les noms de ces collections sont-ils notés sur les étiquettes de chaque échantillon ? </td>
</tr>
<tr id="ccb_ce_inventaire" class="pair" >
<td> 36 </td>
<td> ccb_ce_inventaire </td>
<td> ccb_ce_i </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Existe-t-il un inventaire de cette collection? </td>
</tr>
<tr id="ccb_ce_inventaire_auteur" class="pair" >
<td> 37 </td>
<td> ccb_ce_inventaire_auteur </td>
<td> ccb_ce_ia </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> L'auteur de la collection a-t-il participé à cet inventaire? </td>
</tr>
<tr id="ccb_ce_inventaire_forme" class="pair" >
<td> 38 </td>
<td> ccb_ce_inventaire_forme </td>
<td> ccb_ce_if </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Forme de l'inventaire (manuscrit, informatique...). </td>
</tr>
<tr id="ccb_inventaire_info" class="pair" >
<td> 39 </td>
<td> ccb_inventaire_info </td>
<td> ccb_ii </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Quelles informations retrouve-t-on? </td>
</tr>
<tr id="ccb_ce_truk_inventaire_digital" class="pair" >
<td> 40 </td>
<td> ccb_ce_truk_inventaire_digital </td>
<td> ccb_ce_tid </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Si inventaire digital, quel logiciel utilisez vous? </td>
</tr>
<tr id="ccb_inventaire_digital_pourcent" class="pair" >
<td> 41 </td>
<td> ccb_inventaire_digital_pourcent </td>
<td> ccb_idp </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Pourcentage de la documentation en base de données. </td>
</tr>
<tr id="ccb_ce_inventaire_etat" class="pair" >
<td> 42 </td>
<td> ccb_ce_inventaire_etat </td>
<td> ccb_ce_ie </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> L'inventaire est il complet ou partiel? </td>
</tr>
<tr id="ccb_inventaire_donnee_type" class="pair" >
<td> 43 </td>
<td> ccb_inventaire_donnee_type </td>
<td> ccb_idt </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Quels sont les éléments qui ont déjà été inventoriés (Ex. : familles, localités...) ? </td>
</tr>
<tr id="ccb_ce_meta" class="pair" >
<td> 44 </td>
<td> ccb_ce_meta </td>
<td> ccb_ce_m </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cc_ccb </td>
<td> ccb_id_collection </td>
<td> cc_id_collection </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cmlv_ccb_unitte_rangement_etat </td>
<td> ccb_ce_unite_rangement_etat </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmlv_ccb_traitement </td>
<td> ccb_ce_traitement </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cmlv_ccb_etat_general </td>
<td> ccb_ce_etat_general </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cmlv_ccb_determination </td>
<td> ccb_ce_determination </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 6 </td>
<td> fk_cmlv_ccb_recolte_date_debut_type </td>
<td> ccb_ce_recolte_date_debut_type </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 7 </td>
<td> fk_cmlv_ccb_recolte_date_fin_type </td>
<td> ccb_ce_recolte_date_fin_type </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 8 </td>
<td> fk_cmlv_ccb_classement_etat </td>
<td> ccb_ce_classement_etat </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 9 </td>
<td> fk_cmlv_ccb_precision_localite </td>
<td> ccb_ce_precision_localite </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 10 </td>
<td> fk_cmlv_ccb_precision_date </td>
<td> ccb_ce_precision_date </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 11 </td>
<td> fk_cmlv_ccb_collection_integre </td>
<td> ccb_ce_collection_integre </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 12 </td>
<td> fk_cmlv_ccb_collection_integre_info </td>
<td> ccb_ce_collection_integre_info </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 13 </td>
<td> fk_cmlv_ccb_inventaire </td>
<td> ccb_ce_inventaire </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 14 </td>
<td> fk_cmlv_ccb_inventaire_auteur </td>
<td> ccb_ce_inventaire_auteur </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 15 </td>
<td> fk_cmlv_ccb_inventaire_forme </td>
<td> ccb_ce_inventaire_forme </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 16 </td>
<td> fk_cmlv_ccb_inventaire_digital </td>
<td> ccb_ce_truk_inventaire_digital </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 17 </td>
<td> fk_cmlv_ccb_inventaire_etat </td>
<td> ccb_ce_inventaire_etat </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 18 </td>
<td> fk_cmhl_ccb_meta </td>
<td> ccb_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_collection_botanique">
discussion sur la table coel_collection_botanique
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_meta_colonne.html
New file
0,0 → 1,273
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Métadonnée - coel_meta_colonne</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Metadonnee.html">Métadonnée</a> > coel_meta_colonne</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_meta_colonne</h1>
<h2> Description générale </h2>
<p>
Contient l'ensemble des champs des tables de la base de données.<br />INFO : cmc_nom
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cmc_id_champ" class="pair" >
<td> 1 </td>
<td> cmc_id_champ </td>
<td> cmc_id_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant du nom du champ dans la table. </td>
</tr>
<tr id="cmc_ce_projet" class="pair" >
<td> 2 </td>
<td> cmc_ce_projet </td>
<td> cmc_ce_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du projet. </td>
</tr>
<tr id="cmc_ce_liste" class="pair" >
<td> 3 </td>
<td> cmc_ce_liste </td>
<td> cmc_ce_l </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la liste de valeur possédée par cette colonne. </td>
</tr>
<tr id="cmc_ce_table" class="pair" >
<td> 4 </td>
<td> cmc_ce_table </td>
<td> cmc_ce_t </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la table à laquelle ce champ appartient. </td>
</tr>
<tr id="cmc_nom" class="pair" >
<td> 5 </td>
<td> cmc_nom </td>
<td> cmc_n </td>
<td> VARCHAR(50) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Intitulé du champ. </td>
</tr>
<tr id="cmc_abreviation" class="pair" >
<td> 6 </td>
<td> cmc_abreviation </td>
<td> cmc_a </td>
<td> VARCHAR(20) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Abréviation du champ. </td>
</tr>
<tr id="cmc_description" class="pair" >
<td> 7 </td>
<td> cmc_description </td>
<td> cmc_d </td>
<td> VARCHAR(510) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Description du champ. </td>
</tr>
<tr id="cmc_ce_format_sql" class="pair" >
<td> 8 </td>
<td> cmc_ce_format_sql </td>
<td> cmc_ce_fs </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du format SQL utilisé pour ce champ. </td>
</tr>
<tr id="cmc_taille" class="pair" >
<td> 9 </td>
<td> cmc_taille </td>
<td> cmc_t </td>
<td> VARCHAR(20) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Taille du format SQL du champ. </td>
</tr>
<tr id="cmc_ce_meta" class="pair" >
<td> 10 </td>
<td> cmc_ce_meta </td>
<td> cmc_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cmc_cmd </td>
<td> cmc_id_champ </td>
<td> cmd_ce_champ </td>
<td> <a href="coel_table_coel_meta_donnee.html">coel_meta_donnee</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cmlv_cmc_liste </td>
<td> cmc_ce_liste </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cpr_cmc </td>
<td> cmc_ce_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cmhl_cmc_meta </td>
<td> cmc_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cmlv_cmc_table </td>
<td> cmc_ce_table </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 6 </td>
<td> fk_cmlv_cmc_format_sql </td>
<td> cmc_ce_format_sql </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_meta_colonne">
discussion sur la table coel_meta_colonne
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel.xml
New file
0,0 → 1,2517
<?xml version="1.0" standalone="yes" ?>
<DBMODEL Version="4.0">
<SETTINGS>
<GLOBALSETTINGS ModelName="coel" IDModel="0" IDVersion="0" VersionStr="1.0.0.0" Comments="BDD_NOM : tb_coel" UseVersionHistroy="1" AutoIncVersion="1" DatabaseType="MySQL" ZoomFac="92.00" XPos="0" YPos="0" DefaultDataType="5" DefaultTablePrefix="0" DefSaveDBConn="" DefSyncDBConn="" DefQueryDBConn="" Printer="" HPageCount="4.0" PageAspectRatio="1.440892512336408" PageOrientation="1" PageFormat="A4 (210x297 mm, 8.26x11.7 inches)" SelectedPages="" UsePositionGrid="0" PositionGridX="20" PositionGridY="20" TableNameInRefs="0" DefaultTableType="0" ActivateRefDefForNewRelations="0" FKPrefix="" FKPostfix="" CreateFKRefDefIndex="0" DBQuoteCharacter="`" CreateSQLforLinkedObjects="0" DefModelFont="nimbus sans l" CanvasWidth="4096" CanvasHeight="2842" />
<DATATYPEGROUPS>
<DATATYPEGROUP Name="Numeric Types" Icon="1" />
<DATATYPEGROUP Name="Date and Time Types" Icon="2" />
<DATATYPEGROUP Name="String Types" Icon="3" />
<DATATYPEGROUP Name="Blob and Text Types" Icon="4" />
<DATATYPEGROUP Name="User defined Types" Icon="5" />
<DATATYPEGROUP Name="Geographic Types" Icon="6" />
</DATATYPEGROUPS>
<DATATYPES>
<DATATYPE ID="1" IDGroup="0" TypeName="TINYINT" Description="A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255." ParamCount="1" OptionCount="2" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
<OPTIONS>
<OPTION Name="UNSIGNED" Default="1" />
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="2" IDGroup="0" TypeName="SMALLINT" Description="A small integer. The signed range is -32768 to 32767. The unsigned range is 0 to 65535." ParamCount="1" OptionCount="2" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
<OPTIONS>
<OPTION Name="UNSIGNED" Default="1" />
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="3" IDGroup="0" TypeName="MEDIUMINT" Description="A medium-size integer. The signed range is -8388608 to 8388607. The unsigned range is 0 to 16777215." ParamCount="1" OptionCount="2" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
<OPTIONS>
<OPTION Name="UNSIGNED" Default="1" />
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="4" IDGroup="0" TypeName="INT" Description="A normal-size integer. The signed range is -2147483648 to 2147483647. The unsigned range is 0 to 4294967295." ParamCount="1" OptionCount="2" ParamRequired="0" EditParamsAsString="0" SynonymGroup="1" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
<OPTIONS>
<OPTION Name="UNSIGNED" Default="0" />
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="5" IDGroup="0" TypeName="INTEGER" Description="A normal-size integer. The signed range is -2147483648 to 2147483647. The unsigned range is 0 to 4294967295." ParamCount="1" OptionCount="2" ParamRequired="0" EditParamsAsString="0" SynonymGroup="1" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
<OPTIONS>
<OPTION Name="UNSIGNED" Default="1" />
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="6" IDGroup="0" TypeName="BIGINT" Description="A large integer. The signed range is -9223372036854775808 to 9223372036854775807. The unsigned range is 0 to 18446744073709551615." ParamCount="1" OptionCount="2" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
<OPTIONS>
<OPTION Name="UNSIGNED" Default="0" />
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="7" IDGroup="0" TypeName="FLOAT" Description="A small (single-precision) floating-point number. Cannot be unsigned. Allowable values are -3.402823466E+38 to -1.175494351E-38, 0, and 1.175494351E-38 to 3.402823466E+38." ParamCount="1" OptionCount="1" ParamRequired="1" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="precision" />
</PARAMS>
<OPTIONS>
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="8" IDGroup="0" TypeName="FLOAT" Description="A small (single-precision) floating-point number. Cannot be unsigned. Allowable values are -3.402823466E+38 to -1.175494351E-38, 0, and 1.175494351E-38 to 3.402823466E+38." ParamCount="2" OptionCount="1" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
<PARAM Name="decimals" />
</PARAMS>
<OPTIONS>
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="9" IDGroup="0" TypeName="DOUBLE" Description="A normal-size (double-precision) floating-point number. Cannot be unsigned. Allowable values are -1.7976931348623157E+308 to -2.2250738585072014E-308, 0, and 2.2250738585072014E-308 to 1.7976931348623157E+308." ParamCount="2" OptionCount="1" ParamRequired="0" EditParamsAsString="0" SynonymGroup="2" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
<PARAM Name="decimals" />
</PARAMS>
<OPTIONS>
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="10" IDGroup="0" TypeName="DOUBLE PRECISION" Description="This is a synonym for DOUBLE." ParamCount="2" OptionCount="1" ParamRequired="0" EditParamsAsString="0" SynonymGroup="2" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
<PARAM Name="decimals" />
</PARAMS>
<OPTIONS>
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="11" IDGroup="0" TypeName="REAL" Description="This is a synonym for DOUBLE." ParamCount="2" OptionCount="1" ParamRequired="0" EditParamsAsString="0" SynonymGroup="2" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
<PARAM Name="decimals" />
</PARAMS>
<OPTIONS>
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="12" IDGroup="0" TypeName="DECIMAL" Description="An unpacked floating-point number. Cannot be unsigned. Behaves like a CHAR column." ParamCount="2" OptionCount="1" ParamRequired="0" EditParamsAsString="0" SynonymGroup="3" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
<PARAM Name="decimals" />
</PARAMS>
<OPTIONS>
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="13" IDGroup="0" TypeName="NUMERIC" Description="This is a synonym for DECIMAL." ParamCount="2" OptionCount="1" ParamRequired="1" EditParamsAsString="0" SynonymGroup="3" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
<PARAM Name="decimals" />
</PARAMS>
<OPTIONS>
<OPTION Name="ZEROFILL" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="14" IDGroup="1" TypeName="DATE" Description="A date. The supported range is \a1000-01-01\a to \a9999-12-31\a." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="15" IDGroup="1" TypeName="DATETIME" Description="A date and time combination. The supported range is \a1000-01-01 00:00:00\a to \a9999-12-31 23:59:59\a." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="16" IDGroup="1" TypeName="TIMESTAMP" Description="A timestamp. The range is \a1970-01-01 00:00:00\a to sometime in the year 2037. The length can be 14 (or missing), 12, 10, 8, 6, 4, or 2 representing YYYYMMDDHHMMSS, ... , YYYYMMDD, ... , YY formats." ParamCount="1" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
</DATATYPE>
<DATATYPE ID="17" IDGroup="1" TypeName="TIME" Description="A time. The range is \a-838:59:59\a to \a838:59:59\a." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="18" IDGroup="1" TypeName="YEAR" Description="A year in 2- or 4-digit format (default is 4-digit)." ParamCount="1" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
</DATATYPE>
<DATATYPE ID="19" IDGroup="2" TypeName="CHAR" Description="A fixed-length string (1 to 255 characters) that is always right-padded with spaces to the specified length when stored. values are sorted and compared in case-insensitive fashion according to the default character set unless the BINARY keyword is given." ParamCount="1" OptionCount="1" ParamRequired="1" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
<OPTIONS>
<OPTION Name="BINARY" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="20" IDGroup="2" TypeName="VARCHAR" Description="A variable-length string (1 to 255 characters). Values are sorted and compared in case-sensitive fashion unless the BINARY keyword is given." ParamCount="1" OptionCount="1" ParamRequired="1" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="length" />
</PARAMS>
<OPTIONS>
<OPTION Name="BINARY" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="21" IDGroup="2" TypeName="BIT" Description="This is a synonym for CHAR(1)." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="22" IDGroup="2" TypeName="BOOL" Description="This is a synonym for CHAR(1)." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="23" IDGroup="3" TypeName="TINYBLOB" Description="A column maximum length of 255 (2^8 - 1) characters. Values are sorted and compared in case-sensitive fashion." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="24" IDGroup="3" TypeName="BLOB" Description="A column maximum length of 65535 (2^16 - 1) characters. Values are sorted and compared in case-sensitive fashion." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="25" IDGroup="3" TypeName="MEDIUMBLOB" Description="A column maximum length of 16777215 (2^24 - 1) characters. Values are sorted and compared in case-sensitive fashion." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="26" IDGroup="3" TypeName="LONGBLOB" Description="A column maximum length of 4294967295 (2^32 - 1) characters. Values are sorted and compared in case-sensitive fashion." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="27" IDGroup="3" TypeName="TINYTEXT" Description="A column maximum length of 255 (2^8 - 1) characters." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="28" IDGroup="3" TypeName="TEXT" Description="A column maximum length of 65535 (2^16 - 1) characters." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="29" IDGroup="3" TypeName="MEDIUMTEXT" Description="A column maximum length of 16777215 (2^24 - 1) characters." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="30" IDGroup="3" TypeName="LONGTEXT" Description="A column maximum length of 4294967295 (2^32 - 1) characters." ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="31" IDGroup="3" TypeName="ENUM" Description="An enumeration. A string object that can have only one value, chosen from the list of values." ParamCount="1" OptionCount="0" ParamRequired="1" EditParamsAsString="1" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="values" />
</PARAMS>
</DATATYPE>
<DATATYPE ID="32" IDGroup="3" TypeName="SET" Description="A set. A string object that can have zero or more values, each of which must be chosen from the list of values." ParamCount="1" OptionCount="0" ParamRequired="1" EditParamsAsString="1" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<PARAMS>
<PARAM Name="values" />
</PARAMS>
</DATATYPE>
<DATATYPE ID="33" IDGroup="4" TypeName="Varchar(20)" Description="" ParamCount="0" OptionCount="1" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<OPTIONS>
<OPTION Name="BINARY" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="34" IDGroup="4" TypeName="Varchar(45)" Description="" ParamCount="0" OptionCount="1" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<OPTIONS>
<OPTION Name="BINARY" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="35" IDGroup="4" TypeName="Varchar(255)" Description="" ParamCount="0" OptionCount="1" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
<OPTIONS>
<OPTION Name="BINARY" Default="0" />
</OPTIONS>
</DATATYPE>
<DATATYPE ID="36" IDGroup="5" TypeName="GEOMETRY" Description="Geographic Datatype" ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="38" IDGroup="5" TypeName="LINESTRING" Description="Geographic Datatype" ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="39" IDGroup="5" TypeName="POLYGON" Description="Geographic Datatype" ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="40" IDGroup="5" TypeName="MULTIPOINT" Description="Geographic Datatype" ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="41" IDGroup="5" TypeName="MULTILINESTRING" Description="Geographic Datatype" ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="42" IDGroup="5" TypeName="MULTIPOLYGON" Description="Geographic Datatype" ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
<DATATYPE ID="43" IDGroup="5" TypeName="GEOMETRYCOLLECTION" Description="Geographic Datatype" ParamCount="0" OptionCount="0" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" >
</DATATYPE>
</DATATYPES>
<COMMON_DATATYPES>
<COMMON_DATATYPE ID="5" />
<COMMON_DATATYPE ID="8" />
<COMMON_DATATYPE ID="20" />
<COMMON_DATATYPE ID="15" />
<COMMON_DATATYPE ID="22" />
<COMMON_DATATYPE ID="28" />
<COMMON_DATATYPE ID="26" />
<COMMON_DATATYPE ID="33" />
<COMMON_DATATYPE ID="34" />
<COMMON_DATATYPE ID="35" />
</COMMON_DATATYPES>
<TABLEPREFIXES>
<TABLEPREFIX Name="Defaut (pas de prefixe)" />
</TABLEPREFIXES>
<REGIONCOLORS>
<REGIONCOLOR Color="Red=#FFEEEC" />
<REGIONCOLOR Color="Yellow=#FEFDED" />
<REGIONCOLOR Color="Green=#EAFFE5" />
<REGIONCOLOR Color="Cyan=#ECFDFF" />
<REGIONCOLOR Color="Blue=#F0F1FE" />
<REGIONCOLOR Color="Magenta=#FFEBFA" />
<REGIONCOLOR Color="Orange=#FFD980" />
<REGIONCOLOR Color="Vert=#E6FFBF" />
</REGIONCOLORS>
<POSITIONMARKERS>
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
<POSITIONMARKER ZoomFac="-1.0" X="0" Y="0" />
</POSITIONMARKERS>
</SETTINGS>
<METADATA>
<REGIONS>
<REGION ID="21985" RegionName="Commentaire" XPos="790" YPos="2355" Width="694" Height="287" RegionColor="6" TablePrefix="0" TableType="0" OverwriteTablePrefix="0" OverwriteTableType="0" Comments="Module contenant les tables permettant de g\195\169rer les commentaires.\nAbreviation : CCM\nAide : OK\nEtat: OK\nRevision : $Revision$" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="68" />
<REGION ID="1443" RegionName="Collection" XPos="28" YPos="924" Width="741" Height="1421" RegionColor="0" TablePrefix="0" TableType="0" OverwriteTablePrefix="0" OverwriteTableType="0" Comments="Module de gestion des Collections.\nAbreviation : CC\nAide : OK\nEtat: OK\nRevision : $Revision$" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="2" />
<REGION ID="18416" RegionName="Structure" XPos="785" YPos="1386" Width="701" Height="959" RegionColor="1" TablePrefix="0" TableType="0" OverwriteTablePrefix="0" OverwriteTableType="0" Comments="Module de gestion des Structures.\nAbreviation : CS\nAide : OK\nEtat: OK\nRevision : $Revision$" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="15" />
<REGION ID="18417" RegionName="Personne" XPos="784" YPos="505" Width="700" Height="872" RegionColor="2" TablePrefix="0" TableType="0" OverwriteTablePrefix="0" OverwriteTableType="0" Comments="Module de gestion des Personnes.\nAbreviation : CP\nAide : OK\nEtat: OK\nRevision : $Revision$" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="16" />
<REGION ID="18447" RegionName="M\195\169tadonn\195\169e" XPos="20" YPos="16" Width="1464" Height="480" RegionColor="3" TablePrefix="0" TableType="0" OverwriteTablePrefix="0" OverwriteTableType="0" Comments="Module de gestion des M\195\169tadonn\195\169es.\nAbreviation : CM\nAide : OK\nEtat: OK\nRevision : $Revision$" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="19" />
<REGION ID="21218" RegionName="Publication" XPos="24" YPos="2357" Width="747" Height="286" RegionColor="4" TablePrefix="0" TableType="0" OverwriteTablePrefix="0" OverwriteTableType="0" Comments="Module de gestion des Publications.\nAbreviation : CPU\nAide : OK\nEtat: OK\nRevision : $Revision$" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="64" />
<REGION ID="21340" RegionName="Projet" XPos="28" YPos="504" Width="744" Height="410" RegionColor="5" TablePrefix="0" TableType="0" OverwriteTablePrefix="0" OverwriteTableType="0" Comments="Module de gestion des Projets.\nAbreviation : CPR\nAide : OK\nEtat: OK\nRevision : $Revision$" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="75" />
</REGIONS>
<TABLES>
<TABLE ID="1444" Tablename="coel_collection" PrevTableName="Table_01" XPos="36" YPos="1151" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Contient les informations sur les collections.INFO : cc_nom\n" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="5" >
<COLUMNS>
<COLUMN ID="1449" ColName="cc_id_collection" PrevColName="" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21630" ColName="cc_ce_projet" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du projet dans lequel les informations de la collection sont saisies.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21167" ColName="cc_ce_mere" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="0" Comments="Identifiant de la collection parente. Si la collection courrante n\aa pas de parente laisser la valeur 0 par d\195\169faut.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20821" ColName="cc_ce_structure" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="0" Comments="Identifiant de la structure habritant physiquement la collection. Si c\aest un particulier, laisser la valeur 0 par d\195\169faut et utiliser la table liant les collections aux personnes.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21095" ColName="cc_guid" PrevColName="" Pos="7" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Identifiant global unique de type LSID ou URI.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21099" ColName="cc_truk_identifiant_alternatif" PrevColName="" Pos="9" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Autres identifiants de la structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21096" ColName="cc_truk_code" PrevColName="cc_truk_sigle_usage" Pos="8" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Code(s) de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21100" ColName="cc_nom" PrevColName="" Pos="10" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom de la collection dans la langue d\aorigine. Afficher vis \195\160 vis du public.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21101" ColName="cc_truk_nom_alternatif" PrevColName="" Pos="11" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom alternatif de la collection.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21141" ColName="cc_description" PrevColName="" Pos="12" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Description principale de la collection pour un large public.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21142" ColName="cc_description_specialiste" PrevColName="" Pos="13" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Description de la collection pour un public de sp\195\169cialistes.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21187" ColName="cc_historique" PrevColName="" Pos="20" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Historique de la collection (acquisition, diff\195\169rentes interventions de restauration, de traitement ...).">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21182" ColName="cc_truk_url" PrevColName="cc_url" Pos="18" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="URL(s) du site web ou de la page concernant la collection (WEB), d\aun web service (WS) ou d\aune page permettant d\aacc\195\168der \195\160 des informations sur les objets de la collection (OBJ).">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21262" ColName="cc_truk_groupement_principe" PrevColName="cc_ce_truk_principe_groupe" Pos="21" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Principal but de groupement de la collection au niveau int\195\169lectuel plut\195\180t que physique.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21265" ColName="cc_truk_groupement_but" PrevColName="" Pos="22" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Principal but de r\195\169alisation de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21146" ColName="cc_ce_type" PrevColName="" Pos="14" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Type de la collection vis \195\160 vis du standard NCD.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21177" ColName="cc_ce_type_depot" PrevColName="" Pos="17" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Type de d\195\169p\195\180t de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21175" ColName="cc_cote" PrevColName="" Pos="15" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="C\195\180te de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21176" ColName="cc_dimenssion" PrevColName="" Pos="16" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Dimenssion, taille de la collection sous forme de texte libre.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21307" ColName="cc_condition_acces" PrevColName="" Pos="23" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Condition d\aacc\195\168s \195\160 la collection. Peut \195\170tre d\195\169finit par d\195\169faut par la structure.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21308" ColName="cc_condition_usage" PrevColName="" Pos="24" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Condition d\ausages de la collection. Peut \195\170tre d\195\169finit par d\195\169faut par la structure.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21183" ColName="cc_truk_couverture_vernaculaire" PrevColName="cc_truk_nature" Pos="19" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nature de la collection sous forme de nom(s) vernaculaire(s).">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21313" ColName="cc_truk_couverture_taxonomique" PrevColName="cc_couverture_taxonomique" Pos="25" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom de famille ou de taxons sup\195\169rieurs pr\195\169sent dans la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21327" ColName="cc_truk_couverture_regne" PrevColName="" Pos="32" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Liste des r\195\168gnes couverts par la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21314" ColName="cc_truk_couverture_temporelle" PrevColName="cc_couverture_temporelle" Pos="26" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="P\195\169riode de temps couverte par la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21326" ColName="cc_truk_couverture_vie" PrevColName="cc_truk_couverture_periode_vie" Pos="31" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="P\195\169riode de temps durant laquelle le mat\195\169riel biologique \195\169tait en vie. Inclu les p\195\169riodes de temps pal\195\169ontologiques.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20841" ColName="cc_truk_conservation_statut" PrevColName="cc_ce_etat" Pos="6" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Indiquer la date d\aune estimation s\195\169par\195\169e par un di\195\168se du statut estim\195\169 utilisant l\a\195\169chelle de McGinley. Plusieurs estimations seront s\195\169par\195\169s par un point virgule.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21328" ColName="cc_truk_preservation" PrevColName="" Pos="33" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Liste indiquant les proc\195\169dures ou techniques de conservation utilis\195\169es pour les collections non vivantes.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21335" ColName="cc_ce_developpement" PrevColName="" Pos="35" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Indique le changement potentiel dans la port\195\169e de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21337" ColName="cc_truk_periode_constitution" PrevColName="cc_truk_periode_formation" Pos="36" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Liste de p\195\169riodes de temps durant laquelle la collection a \195\169t\195\169 assembl\195\169e.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21338" ColName="cc_truk_couverture_lieu" PrevColName="" Pos="37" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Liste de lieux (continent, pays, region, d\195\169partement, commune, autres lieux historique ou texte libre) desquels le mat\195\169riel de la collection est originaire.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21339" ColName="cc_truk_coordonnee" PrevColName="" Pos="38" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Liste de coordonn\195\169es d\195\169cimales des lieux d\aorigine du mat\195\169riel de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21325" ColName="cc_ce_specimen_type" PrevColName="cc_mark_specimen_type" Pos="30" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Y-a-t\ail des \195\169chantillons-types?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21506" ColName="cc_specimen_type_nbre" PrevColName="" Pos="41" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nombre de sp\195\169cimen type pr\195\169sent dans la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27966" ColName="cc_ce_specimen_type_nbre_precision" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du type de pr\195\169cision du nombre de sp\195\169cimen type.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21508" ColName="cc_ce_specimen_type_classement" PrevColName="" Pos="42" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Type de classement des specimens types.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21345" ColName="cc_expedition_nom" PrevColName="" Pos="39" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom de l\aexp\195\169dition durant laquelle le mat\195\169riel a \195\169t\195\169 collect\195\169.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21323" ColName="cc_truk_digital_medium" PrevColName="" Pos="29" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Pour les collections digitales, listes des types de support d\aenregistrement. Ex. : DVD-R.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21322" ColName="cc_truk_digital_format" PrevColName="" Pos="28" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Pour les collections digitales, listes des types MIME.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27933" ColName="cc_mark_public" PrevColName="" Pos="41" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="0" Comments="Indique si oui (=1) ou non (=0) les donn\195\169es de cette collection sont publiques.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20839" ColName="cc_ce_meta" PrevColName="cc_date_derniere_modif" Pos="4" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_START>
<RELATION_START ID="20819" />
<RELATION_START ID="21108" />
<RELATION_START ID="21152" />
<RELATION_START ID="21223" />
<RELATION_START ID="21496" />
<RELATION_START ID="21498" />
<RELATION_START ID="22037" />
</RELATIONS_START>
<RELATIONS_END>
<RELATION_END ID="20817" />
<RELATION_END ID="20819" />
<RELATION_END ID="21628" />
<RELATION_END ID="22079" />
<RELATION_END ID="22158" />
<RELATION_END ID="22160" />
<RELATION_END ID="22162" />
<RELATION_END ID="22164" />
<RELATION_END ID="27872" />
<RELATION_END ID="27959" />
</RELATIONS_END>
<INDICES>
<INDEX ID="1450" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="1449" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="1445" Tablename="coel_structure" PrevTableName="Table_02" XPos="806" YPos="1410" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Contient les informations sur les structures.\nINFO : cs_nom" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="41" >
<COLUMNS>
<COLUMN ID="18411" ColName="cs_id_structure" PrevColName="idcoel_structure" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant de la structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21627" ColName="cs_ce_projet" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="0" Comments="Identifiant du projet dans lequel les informations de la structure sont saisies.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21165" ColName="cs_ce_mere" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="0" Comments="Identifiant de la structure m\195\168re.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18555" ColName="cs_guid" PrevColName="cs_uri" Pos="1" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="URI (LSID ou URL) de la structure. Dans le format RDF, cela sera utilis\195\169 comme URI des donn\195\169es de l\ainstitutions.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18561" ColName="cs_truk_identifiant_alternatif" PrevColName="cs_identifiant_alternatif" Pos="6" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Identifiant alternatif. Par exemple, l\aacronyme de l\aIndex Herbariorum ou du MNHN. S\195\169parer les diff\195\169rentes valeurs par un point virgule \A;\A et le type d\aidentifiant de sa valeur par un di\195\168ze \A#\A. Exemple : IH#MPU;MNHN#163">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18556" ColName="cs_nom" PrevColName="cs_intitule" Pos="2" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom officiel de la structure dans sa langue d\aorigine.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18557" ColName="cs_truk_nom_alternatif" PrevColName="cs_intitule_alternatif" Pos="3" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Autres noms de la structures. S\195\169parer les diff\195\169rentes valeurs par un point virgule \A;\A.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18560" ColName="cs_description" PrevColName="" Pos="5" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Description de la structure pour le public.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20789" ColName="cs_ce_type" PrevColName="cs_ce_statut" Pos="17" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du type de la structure vis \195\160 vis du standard NCD.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21169" ColName="cs_ce_truk_type_prive" PrevColName="" Pos="24" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Type priv\195\169 de structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21170" ColName="cs_ce_truk_type_public" PrevColName="" Pos="25" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Type public de structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20777" ColName="cs_adresse_01" PrevColName="" Pos="7" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Adresse principale.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20778" ColName="cs_adresse_02" PrevColName="" Pos="8" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Compl\195\169ment d\aadresse.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20780" ColName="cs_date_fondation" PrevColName="" Pos="9" idDatatype="14" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Date de fondation de la structure.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20781" ColName="cs_code_postal" PrevColName="" Pos="10" idDatatype="20" DatatypeParams="(16)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Code postal.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20782" ColName="cs_ville" PrevColName="" Pos="11" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Ville.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20783" ColName="cs_ce_truk_region" PrevColName="cs_region" Pos="12" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Identifiant du nom de la r\195\169gion (\195\169tat, province) o\195\185 est situ\195\169 la structure. Utiliser les noms du standard ISO-3166-2. Sinon utiliser \AAUTRE\A pour stocker d\a\195\169ventuel valeur non pr\195\169sente dans ISO-3166-2. ">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20784" ColName="cs_ce_truk_pays" PrevColName="cs_pays" Pos="13" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Identifiant du nom du pays de la structure. Utiliser les noms du standard ISO-3166-1. Sinon utiliser \AAUTRE\A pour stocker d\a\195\169ventuel valeur non pr\195\169sente dans ISO-3166-1.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27881" ColName="cs_latitude" PrevColName="" Pos="27" idDatatype="7" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Latitude du local de la structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27882" ColName="cs_longitude" PrevColName="" Pos="28" idDatatype="7" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Longitude du local de la structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20785" ColName="cs_truk_telephone" PrevColName="cs_telephone" Pos="14" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="T\195\169l\195\169phone(s) principaux de la structure (fixe, fax, portable...).">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20787" ColName="cs_courriel" PrevColName="" Pos="16" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Courriel principal de contact de l\aorganisation ex : accueil@organisation.org, pas de mail individuel.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21159" ColName="cs_truk_url" PrevColName="" Pos="22" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="URL(s) du site web principal de la structure, du logo de la structure ou d\aune page web particuli\195\168re.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20816" ColName="cs_nbre_personne" PrevColName="" Pos="19" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nombre de personne pr\195\169sentent dans la structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21310" ColName="cs_condition_acces" PrevColName="" Pos="26" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Conditions d\aacc\195\168s \195\160 la structure.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21311" ColName="cs_condition_usage" PrevColName="" Pos="27" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Conditions d\ausage g\195\169n\195\169rales des collections de la structure.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27935" ColName="cs_mark_public" PrevColName="" Pos="28" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="0" Comments="Indique si oui (=1) ou non (=0) les donn\195\169es de cette structure sont publiques.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20825" ColName="cs_ce_meta" PrevColName="cs_date_derniere_modif" Pos="21" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_START>
<RELATION_START ID="18419" />
<RELATION_START ID="20817" />
<RELATION_START ID="20859" />
<RELATION_START ID="20861" />
<RELATION_START ID="21163" />
<RELATION_START ID="21616" />
<RELATION_START ID="27904" />
</RELATIONS_START>
<RELATIONS_END>
<RELATION_END ID="21163" />
<RELATION_END ID="21625" />
<RELATION_END ID="21957" />
<RELATION_END ID="21959" />
<RELATION_END ID="21961" />
<RELATION_END ID="21964" />
</RELATIONS_END>
<INDICES>
<INDEX ID="18412" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="18411" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="1446" Tablename="coel_personne" PrevTableName="Table_03" XPos="1204" YPos="540" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Contient les informations sur les personnes.\nPar personne nous entendons \195\160 la fois les utilisateurs de l\aapplication mais aussi les personnes contacts, les botanistes collecteurs, auteurs...\nINFO : cp_fmt_nom_complet" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="68" >
<COLUMNS>
<COLUMN ID="1456" ColName="cp_id_personne" PrevColName="cco_id_contact" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant d\aun contact.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21624" ColName="cp_ce_projet" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du projet auquel la personne appartient. Exemple : utilisateur appli coel, HUH, IPNI...">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="1458" ColName="cp_fmt_nom_complet" PrevColName="cco_nom_complet" Pos="1" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom complet du contact format\195\169 pour l\aaffichage (le format peut \195\170tre diff\195\169rent en fonction du projet).">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="1462" ColName="cp_ce_truk_prefix" PrevColName="cco_prefix" Pos="5" idDatatype="20" DatatypeParams="(20)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Pr\195\169fixe du nom principal. Exemple : Dr., Prof., Mr., Lord, von...">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="1460" ColName="cp_prenom" PrevColName="cco_prenom" Pos="3" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Pr\195\169nom principal (le plus connu, r\195\169pandu) de la personne. Un point virgule peut s\195\169parer le pr\195\169nom principal de pr\195\169noms secondaires \195\160 ne pas afficher dans le nom complet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="1459" ColName="cp_nom" PrevColName="cco_nom" Pos="2" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Indiquer les lieux de r\195\169colte (code ISO des pays) s\195\169par\195\169s par des points virgules. Apr\195\168s chaque code ISO indiqu\195\169 les ann\195\169es de r\195\169colte s\195\169par\195\169es par des vigules ou des tirets pour les p\195\169riodes continues). Si le pays de r\195\169colte est inconnu utilis\195\169 un point d\ainterogration. Exemple : FR#1905-1908,1910;PS#1912.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="1463" ColName="cp_ce_truk_suffix" PrevColName="cco_suffix" Pos="6" idDatatype="20" DatatypeParams="(20)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Suffixe du nom principal. Exemple : Jr, III.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="1461" ColName="cp_truk_nom_autre" PrevColName="cco_nom_complement" Pos="4" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom(s) complet alternatif et surnoms. Pour les valeurs, s\195\169parez l\aidentifiant de l\aabreviation par un symbole pipe \A|\A. Exemple: HUH#105714|Sharp, Aaron John;APN#9544-1|Sharp, Aaron John (\aJack\a)">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21132" ColName="cp_abreviation" PrevColName="" Pos="35" idDatatype="20" DatatypeParams="(50)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Abreviation retenu du nom.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21133" ColName="cp_truk_abreviation_autre" PrevColName="" Pos="36" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Autres abr\195\169viations du nom.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21123" ColName="cp_naissance_date" PrevColName="cp_date_naissance" Pos="30" idDatatype="14" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="0000-00-00" Comments="Date de naissance de la personne.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21126" ColName="cp_naissance_lieu" PrevColName="" Pos="32" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Lieu de naissance de la personne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27943" ColName="cp_ce_deces" PrevColName="" Pos="40" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Permet de savoir si la personne est d\195\169c\195\169d\195\169e ou pas, ou que l\ainformation est ind\195\169termin\195\169e.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21124" ColName="cp_deces_date" PrevColName="cp_date_deces" Pos="31" idDatatype="14" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Date de d\195\169c\195\169s de la personne. Par d\195\169faut, si la personne n\aest pas d\195\169c\195\169d\195\169 le champ reste null. Si la personne est d\195\169c\195\169d\195\169e mais que l\aon ne connait pas la date mettre : 0000-00-00">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21127" ColName="cp_deces_lieu" PrevColName="" Pos="33" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Lieu de d\195\169c\195\169s de la personne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21974" ColName="cp_ce_sexe" PrevColName="" Pos="38" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Indique si la personne est un homme ou une femme...">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21968" ColName="cp_description" PrevColName="" Pos="35" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Informations diverses sur la personne.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21258" ColName="cp_biographie" PrevColName="" Pos="35" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Vie et renomm\195\169e (locale, r\195\169gionale, ...) de la personne.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18392" ColName="cp_adresse_01" PrevColName="cco_perso_adresse" Pos="13" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Adresse de la personne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18391" ColName="cp_adresse_02" PrevColName="cco_perso_adresse_complement" Pos="12" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Compl\195\169ment d\aadresse personnelle.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18394" ColName="cp_ce_truk_region" PrevColName="cco_perso_region" Pos="15" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du nom de la r\195\169gion (\195\169tat, province) o\195\185 vit la personne. Utiliser les noms du standard ISO-3166-2. Sinon utiliser \AAUTRE\A pour stocker d\a\195\169ventuel valeur non pr\195\169sente dans ISO-3166-2.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18390" ColName="cp_bp" PrevColName="cco_perso_bp" Pos="11" idDatatype="20" DatatypeParams="(20)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Boite postale de l\aadresse de la personne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18395" ColName="cp_code_postal" PrevColName="cco_perso_code_postal" Pos="16" idDatatype="20" DatatypeParams="(10)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Code postal (zip) personnel.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18393" ColName="cp_ville" PrevColName="cco_perso_ville" Pos="14" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom de la localit\195\169 (ville) o\195\185 vit la personne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18396" ColName="cp_ce_truk_pays" PrevColName="cco_perso_pays" Pos="17" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du pays o\195\185 vit la personne. Utiliser les noms du standard ISO-3166-1. Sinon utiliser \AAUTRE\A pour stocker d\a\195\169ventuel valeur non pr\195\169sente dans ISO-3166-1.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18400" ColName="cp_truk_telephone" PrevColName="cco_perso_tel_complement" Pos="21" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Num\195\169ro(s) de t\195\169l\195\169phone fixe (FIX), portable (GSM), Fax (FAX), pager (PAG)... personnels.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18401" ColName="cp_truk_courriel" PrevColName="cco_perso_courriel" Pos="22" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Adresse(s) de courriel personnel. Ajouter les adresses dans leur ordre d\aimportance.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18402" ColName="cp_truk_url" PrevColName="cco_perso_url" Pos="23" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="URL(s) de site web personnel. Ajouter les adresses dans leur ordre d\aimportance.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18403" ColName="cp_truk_logo" PrevColName="cco_perso_logo" Pos="24" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="URL(s) des logo, avatar, portrait ou photo de la personne. Ajouter les URL(s) dans leur ordre d\aimportance.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18436" ColName="cp_ce_truk_specialite" PrevColName="cp_bota_specialite" Pos="29" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Indiquer s\195\169parer par des points virgules \A;\A les sp\195\169cialit\195\169s naturalistes de la personne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21129" ColName="cp_truk_recolte" PrevColName="" Pos="34" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Indiquer les lieux de r\195\169colte s\195\169par\195\169s par des points virgules. Indiquer le r\195\169f\195\169rentiel g\195\169ographique utilis\195\169 puis apr\195\168s un # mettre le code ou identitifiant de la zone g\195\169ographique. Apr\195\168s chaque code ISO un peut signe pipe | peut \195\170tre suivi des ann\195\169es de r\195\169colte s\195\169par\195\169es par des vigules ou des tirets pour les p\195\169riodes continues). Si le pays de r\195\169colte est inconnu utilis\195\169 un point d\ainterogration. Exemple : ISO-3166-1#FR|1905-1908,1910;ISO-3166-1#PS|1912;ISO-3166-2#FR-34|1917.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21554" ColName="cp_ce_truk_role" PrevColName="" Pos="36" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="R\195\180le g\195\169n\195\169rale de la personne vis \195\160 vis de l\aensemble des projets : superadmin, admin...">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18446" ColName="cp_mark_licence" PrevColName="cp_bool_licence" Pos="33" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="0" Comments="Indique quand la valeur vaut 1 que l\autilisateur a accept\195\169 la licence d\autilisation de l\aapplication. ">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21972" ColName="cp_parametre" PrevColName="" Pos="37" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Parametres de l\autilisateur vis \195\160 vis de l\aapplication.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21966" ColName="cp_session_id" PrevColName="" Pos="34" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Identifiant de session de la personne utilisatrice de l\aapplication.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18438" ColName="cp_login" PrevColName="" Pos="31" idDatatype="20" DatatypeParams="(50)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Login de la personne pour acc\195\169der \195\160 l\aapplication.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18439" ColName="cp_mot_de_passe" PrevColName="" Pos="32" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Mot de passe de la personne pour acc\195\169der \195\160 l\aapplication. Encod\195\169 par SHA1.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21970" ColName="cp_ce_annuaire_tela" PrevColName="" Pos="36" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Identifiant de la personne dans l\aannuaire de Tela Botanica.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27938" ColName="cp_mark_public" PrevColName="" Pos="39" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="0" Comments="Indique si oui (=1) ou non (=0) les donn\195\169es de cette personne sont publiques.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18405" ColName="cp_ce_meta" PrevColName="cco_" Pos="26" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_START>
<RELATION_START ID="18425" />
<RELATION_START ID="21110" />
<RELATION_START ID="21239" />
<RELATION_START ID="21563" />
<RELATION_START ID="21666" />
<RELATION_START ID="21789" />
</RELATIONS_START>
<RELATIONS_END>
<RELATION_END ID="21622" />
<RELATION_END ID="22062" />
<RELATION_END ID="22099" />
<RELATION_END ID="22101" />
<RELATION_END ID="22133" />
<RELATION_END ID="22135" />
<RELATION_END ID="22137" />
<RELATION_END ID="27948" />
<RELATION_END ID="27950" />
<RELATION_END ID="27952" />
</RELATIONS_END>
<INDICES>
<INDEX ID="1457" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="1456" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="1447" Tablename="coel_structure_a_personne" PrevTableName="Table_04" XPos="1203" YPos="1523" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Table de liaison permettant d\aindiquer la composition de la structure en personnel.\nElle permet d\aindiquer pour une personne vis \195\160 vis d\aune structure :\n - si elle est contact\n - les informations de la personne sp\195\169cifique \195\160 cette structure (ex. : t\195\169l\195\169phone du travail, fonction, service, statut...)." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="60" >
<COLUMNS>
<COLUMN ID="21568" ColName="csap_id_structure" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21567" ColName="csap_id_personne" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant d\aune personne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21609" ColName="csap_id_role" PrevColName="cspa_id_role" Pos="11" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="R\195\180le de la personne vis \195\160 vis de la structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18533" ColName="csap_ce_truk_fonction" PrevColName="csae_fonction" Pos="7" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Intitul\195\169 de la fonction de la personne dans son travail.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18534" ColName="csap_service" PrevColName="csae_service" Pos="8" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom du service ou d\195\169partement dans lequel la personne travaille.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18537" ColName="csap_ce_truk_statut" PrevColName="csae_statut" Pos="9" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Statut(s) de la personne : salari\195\169, b\195\169n\195\169vole...">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18433" ColName="csap_mark_contact" PrevColName="csae_bool_contact" Pos="2" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="0" Comments="Si la personne est un contact la valeur vaut 1 sinon c\aest 0.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18546" ColName="csap_bota_travail_hebdo_tps" PrevColName="csae_bota_travail_hebdo_tps" Pos="10" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Date de la derni\195\168re modification sur cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18442" ColName="csap_ce_meta" PrevColName="csae_date_derniere_modif" Pos="4" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="18419" />
<RELATION_END ID="18425" />
<RELATION_END ID="22073" />
<RELATION_END ID="22142" />
<RELATION_END ID="22144" />
<RELATION_END ID="27941" />
</RELATIONS_END>
<INDICES>
<INDEX ID="20888" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21568" LengthParam="0" />
<INDEXCOLUMN idColumn="21567" LengthParam="0" />
<INDEXCOLUMN idColumn="21609" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="18452" Tablename="coel_meta_donnee" PrevTableName="Table_06" XPos="272" YPos="312" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Contient les champs suppl\195\169mentaires (non standard ou de sp\195\169cialisation) de la base de donn\195\169es." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="30" >
<COLUMNS>
<COLUMN ID="18454" ColName="cmd_id_donnee" PrevColName="cmt_id_donnee" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant de la donn\195\169e.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21806" ColName="cmd_ce_table" PrevColName="" Pos="4" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la table.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20804" ColName="cmd_ce_ligne" PrevColName="cmd_ce_identifiant" Pos="3" idDatatype="20" DatatypeParams="(64)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Identifiant de la ligne \195\160 laquelle le champ dans la table d\aorigine appartient. Pour les tables \195\160 cl\195\169 primaire multi colonnes, bien respecter l\aordre des champs de la cl\195\169 et inscrire chaque valeur de cl\195\169 s\195\169par\195\169e par un tiret \A-\A.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21797" ColName="cmd_ce_champ" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du champ.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18479" ColName="cmd_valeur" PrevColName="" Pos="3" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Valeur.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="18470" />
<RELATION_END ID="22091" />
</RELATIONS_END>
<INDICES>
<INDEX ID="18455" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="18454" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="18456" Tablename="coel_meta_colonne" PrevTableName="Table_07" XPos="572" YPos="93" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Contient l\aensemble des champs des tables de la base de donn\195\169es.\nINFO : cmc_nom" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="26" >
<COLUMNS>
<COLUMN ID="18458" ColName="cmc_id_champ" PrevColName="cmc_id_caracteristique" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant du nom du champ dans la table.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21832" ColName="cmc_ce_projet" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du projet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21824" ColName="cmc_ce_liste" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la liste de valeur poss\195\169d\195\169e par cette colonne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21800" ColName="cmc_ce_table" PrevColName="" Pos="5" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la table \195\160 laquelle ce champ appartient.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="18503" ColName="cmc_nom" PrevColName="cmc_intitule" Pos="2" idDatatype="20" DatatypeParams="(50)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Intitul\195\169 du champ.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21732" ColName="cmc_abreviation" PrevColName="" Pos="3" idDatatype="20" DatatypeParams="(20)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Abr\195\169viation du champ.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21733" ColName="cmc_description" PrevColName="" Pos="4" idDatatype="20" DatatypeParams="(510)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Description du champ.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21809" ColName="cmc_ce_format_sql" PrevColName="" Pos="5" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du format SQL utilis\195\169 pour ce champ.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21810" ColName="cmc_taille" PrevColName="" Pos="6" idDatatype="20" DatatypeParams="(20)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Taille du format SQL du champ.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21835" ColName="cmc_ce_meta" PrevColName="cmc_ce_modifier_par" Pos="10" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_START>
<RELATION_START ID="18470" />
</RELATIONS_START>
<RELATIONS_END>
<RELATION_END ID="21822" />
<RELATION_END ID="21830" />
<RELATION_END ID="21863" />
<RELATION_END ID="22087" />
<RELATION_END ID="22089" />
</RELATIONS_END>
<INDICES>
<INDEX ID="18459" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="18458" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="18466" Tablename="coel_meta_liste_valeur" PrevTableName="Table_09" XPos="108" YPos="57" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Liste l\aensemble des valeurs des tables de type liste.\nUn champ contient des valeurs dans cette table quand il est de type \ALISTE\A.\nINFO : cmlv_nom" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="25" >
<COLUMNS>
<COLUMN ID="18468" ColName="cmlv_id_valeur" PrevColName="cmv_id_valeur" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant d\aune valeur de liste. Notez que les listes sont des valeurs de la liste des listes.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21821" ColName="cmlv_ce_parent" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la cat\195\169gorie ou des informations sur la liste. Les listes ont pour parent la valeur 0 qui correspond \195\160 la liste des listes.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21818" ColName="cmlv_ce_projet" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du projet de la valeur.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21723" ColName="cmlv_nom" PrevColName="cmv_nom" Pos="2" idDatatype="20" DatatypeParams="(100)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom de la valeur.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21724" ColName="cmlv_abreviation" PrevColName="cmv_abreviation" Pos="3" idDatatype="20" DatatypeParams="(50)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Abr\195\169viation, code ou identifiant de la valeur.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21725" ColName="cmlv_description" PrevColName="cmv_description" Pos="4" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Description de cette valeur.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21814" ColName="cmlv_ce_meta" PrevColName="cmlv_ce_modifier_par" Pos="6" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_START>
<RELATION_START ID="21819" />
<RELATION_START ID="21822" />
<RELATION_START ID="21959" />
<RELATION_START ID="21961" />
<RELATION_START ID="21964" />
<RELATION_START ID="22071" />
<RELATION_START ID="22087" />
<RELATION_START ID="22089" />
<RELATION_START ID="22091" />
<RELATION_START ID="22093" />
<RELATION_START ID="22096" />
<RELATION_START ID="22099" />
<RELATION_START ID="22101" />
<RELATION_START ID="22133" />
<RELATION_START ID="22135" />
<RELATION_START ID="22137" />
<RELATION_START ID="22142" />
<RELATION_START ID="22144" />
<RELATION_START ID="22146" />
<RELATION_START ID="22148" />
<RELATION_START ID="22150" />
<RELATION_START ID="22152" />
<RELATION_START ID="22154" />
<RELATION_START ID="22158" />
<RELATION_START ID="22160" />
<RELATION_START ID="22162" />
<RELATION_START ID="22164" />
<RELATION_START ID="22170" />
<RELATION_START ID="22172" />
<RELATION_START ID="22174" />
<RELATION_START ID="22178" />
<RELATION_START ID="22301" />
<RELATION_START ID="22306" />
<RELATION_START ID="22308" />
<RELATION_START ID="22309" />
<RELATION_START ID="22311" />
<RELATION_START ID="22313" />
<RELATION_START ID="22315" />
<RELATION_START ID="22318" />
<RELATION_START ID="22320" />
<RELATION_START ID="22322" />
<RELATION_START ID="22324" />
<RELATION_START ID="22326" />
<RELATION_START ID="27872" />
<RELATION_START ID="27908" />
<RELATION_START ID="27910" />
<RELATION_START ID="27912" />
<RELATION_START ID="27941" />
<RELATION_START ID="27948" />
<RELATION_START ID="27950" />
<RELATION_START ID="27952" />
<RELATION_START ID="27959" />
</RELATIONS_START>
<RELATIONS_END>
<RELATION_END ID="21816" />
<RELATION_END ID="21819" />
<RELATION_END ID="21861" />
</RELATIONS_END>
<INDICES>
<INDEX ID="18469" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="18468" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="20850" Tablename="coel_structure_conservation" PrevTableName="Table_11" XPos="1170" YPos="1795" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Toutes les donn\195\169es sp\195\169cifiques \195\160 la conservation au sein d\aune structure." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="54" >
<COLUMNS>
<COLUMN ID="20978" ColName="csc_id_structure" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20869" ColName="csc_mark_formation" PrevColName="" Pos="1" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="0" Comments="Le personnel s\aoccupant des collections botaniques a-t-il suivi des formations en conservation\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20871" ColName="csc_formation" PrevColName="" Pos="2" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Les formations en conservation suvi par le personnel.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20872" ColName="csc_mark_formation_interet" PrevColName="" Pos="3" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Le personnel s\aoccupant des collections botaniques a-t-il suivi des formations en conservation\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20874" ColName="csc_truk_stockage_local" PrevColName="csc_ce_stockage_local" Pos="4" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Avez-vous des locaux sp\195\169cifiques de stockage des collections botaniques\194\160?">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20912" ColName="csc_truk_stockage_meuble" PrevColName="csc_stockage_meuble" Pos="6" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Avez-vous des meubles sp\195\169cifiques au stockage des collections botaniques\194\160? ">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20914" ColName="csc_truk_stockage_parametre" PrevColName="csc" Pos="8" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Quels param\195\168tres ma\195\174trisez-vous ?">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20952" ColName="csc_mark_collection_commune" PrevColName="" Pos="7" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="0" Comments="Les collections botaniques sont-elles conserv\195\169es avec d\aautres collections dans les m\195\170mes locaux\194\160(probl\195\168me de conservation en commun) ? ">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20954" ColName="csc_truk_collection_autre" PrevColName="csc_truk_collection_ature" Pos="8" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Actuellement, vos collections botaniques s\aaccroissent-elles de nouvelles acquisitions\194\160?">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20960" ColName="csc_mark_acces_controle" PrevColName="" Pos="9" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="L\aacc\195\168s \195\160 vos collections botaniques est-il contr\195\180l\195\169 (ex.\194\160: manipulation r\195\169serv\195\169e \195\160 des personnes comp\195\169tentes)\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20961" ColName="csc_mark_restauration" PrevColName="" Pos="10" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Effectuez-vous actuellement des op\195\169rations de restauration ou de remise en \195\169tat de vos collections botaniques\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20963" ColName="csc_truk_restauration_operation" PrevColName="" Pos="11" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Les diff\195\169rentes op\195\169rations de restauration actuellement men\195\169es.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20964" ColName="csc_ce_materiel_conservation" PrevColName="" Pos="12" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Utilisez-vous du mat\195\169riel de conservation ?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20967" ColName="csc_truk_materiel_autre" PrevColName="" Pos="13" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Le mat\195\169riel, dit de \Anon conservation\A utilis\195\169.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20969" ColName="csc_mark_traitement" PrevColName="" Pos="14" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="R\195\169alisez-vous actuellement des traitements globaux contre les insectes\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20970" ColName="csc_truk_traitement" PrevColName="" Pos="15" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Traitements globaux contre les insectes.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20971" ColName="csc_mark_acquisition_collection" PrevColName="csc_mark_acquisition" Pos="16" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Actuellement, vos collections botaniques s\aaccroissent-elles de nouvelles acquisitions\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20973" ColName="csc_mark_acquisition_echantillon" PrevColName="" Pos="17" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Actuellement mettez-vous en herbier de nouveaux \195\169chantillons\194\160? ">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20974" ColName="csc_mark_acquisition_traitement" PrevColName="" Pos="18" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Si oui, faites-vous un traitement contre les insectes avant l\aint\195\169gration dans vos collections\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20975" ColName="csc_truk_acquisition_traitement_poison" PrevColName="" Pos="19" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Traitement de type empoisonnement effectu\195\169 lors des des acquisitions.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20976" ColName="csc_truk_acquisition_traitement_insecte" PrevColName="" Pos="20" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Traitement de type d\195\169sinctisation effectu\195\169 lors des des acquisitions.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27914" ColName="csc_ce_meta" PrevColName="" Pos="21" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="20859" />
<RELATION_END ID="22146" />
<RELATION_END ID="27921" />
</RELATIONS_END>
<INDICES>
<INDEX ID="20979" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="20978" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="20854" Tablename="coel_structure_valorisation" PrevTableName="Table_12" XPos="827" YPos="2027" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Toutes les donn\195\169es sp\195\169cifiques \195\160 la valorisation au sein d\aune structure." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="42" >
<COLUMNS>
<COLUMN ID="20866" ColName="csv_id_structure" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la structure.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20981" ColName="csv_mark_action" PrevColName="" Pos="1" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Avez-vous r\195\169alis\195\169 des actions de valorisation de vos collections botaniques\194\160ou avez-vous \195\169t\195\169 sollicit\195\169s pour la valorisation de ces collections ?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20982" ColName="csv_truk_action" PrevColName="" Pos="2" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Les actions de valorisation r\195\169alis\195\169es.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20983" ColName="csv_publication" PrevColName="" Pos="3" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Quelques titres des ouvrages, articles scientifiques, ... ?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20984" ColName="csv_collection_autre" PrevColName="" Pos="4" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="L\aorganisme dispose-t-il d\aautres collections (permettant une valorisation pluridisciplinaire)\194\160?">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20985" ColName="csv_mark_action_future" PrevColName="" Pos="5" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Envisagez-vous des actions de valorisation dans le cadre de votre politique culturelle\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20986" ColName="csv_action_future" PrevColName="" Pos="6" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Les actions de valorisation futures envisag\195\169es.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20987" ColName="csv_mark_recherche" PrevColName="" Pos="7" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Vos collections botaniques sont-elles utilis\195\169es pour des recherches scientifiques\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20988" ColName="csv_truk_recherche_provenance" PrevColName="" Pos="8" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Si oui, par des chercheurs (professionnels ou amateurs ) de quelle provenance\194\160?">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20990" ColName="csv_truk_recherche_type" PrevColName="" Pos="9" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Et pour quelles types de recherches\194\160? ">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20992" ColName="csv_mark_acces_ss_motif" PrevColName="" Pos="10" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Peut-on consulter vos collections botaniques sans motif de recherches scientifiques ?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20993" ColName="csv_acces_ss_motif" PrevColName="" Pos="11" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Si oui, quelles d\195\169marches doit-on faire pour les consulter\194\160?">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20994" ColName="csv_mark_visite_avec_motif" PrevColName="csv_mark_visite_ss_motif" Pos="12" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Peut-on visiter vos collections botaniques en avec des objectifs de recherches scientifiques\194\160?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="20995" ColName="csv_visite_avec_motif" PrevColName="csv_visite_ss_motif" Pos="13" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Si oui, quelles d\195\169marches doit-on faire pour les visiter\194\160?">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27918" ColName="csv_ce_meta" PrevColName="" Pos="14" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="20861" />
<RELATION_END ID="27924" />
</RELATIONS_END>
<INDICES>
<INDEX ID="20867" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="20866" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21104" Tablename="coel_collection_a_personne" PrevTableName="Table_14" XPos="473" YPos="1068" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Permet de lister les personnes en rapport avec une collection." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="22" >
<COLUMNS>
<COLUMN ID="21106" ColName="ccap_id_collection" PrevColName="" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la collection associ\195\169e \195\160 une personne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21112" ColName="ccap_id_personne" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la personne associ\195\169e \195\160 une collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21139" ColName="ccap_id_role" PrevColName="ccap_ce_truk_role" Pos="6" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="R\195\180le(s) de la personne : auteur, collecteur... permet aussi de conna\195\174tre qui a les droits de modification sur la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21115" ColName="ccap_ce_meta" PrevColName="ccap_date_derniere_modif" Pos="3" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="21108" />
<RELATION_END ID="21110" />
<RELATION_END ID="22077" />
<RELATION_END ID="22154" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21107" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21106" LengthParam="0" />
<INDEXCOLUMN idColumn="21112" LengthParam="0" />
<INDEXCOLUMN idColumn="21139" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21148" Tablename="coel_collection_botanique" PrevTableName="Table_14" XPos="443" YPos="1329" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Toutes les informations sp\195\169cialis\195\169es sur une collection de type : botanique" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="8" >
<COLUMNS>
<COLUMN ID="21150" ColName="ccb_id_collection" PrevColName="" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="1" DefaultValue="" Comments="Type(s) unit\195\169 de rangement de la collection botanique. \\\nPour chaque type : indication du nombre d\aunit\195\169, de la pr\195\169cision du nom (exact, approximatif), des formats.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27946" ColName="ccb_nbre_echantillon" PrevColName="" Pos="43" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nombre de cartons ou liasses \195\169chantillonn\195\169es.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="26508" ColName="ccb_ce_truk_type" PrevColName="" Pos="41" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) de collection botanique.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21343" ColName="ccb_truk_unite_rangement" PrevColName="ccb_truk" Pos="2" idDatatype="20" DatatypeParams="(510)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) unit\195\169 de rangement de la collection botanique. \\\nPour chaque type : indication du nombre d\aunit\195\169, de la pr\195\169cision du nom (exact, approximatif), des formats.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21348" ColName="ccb_ce_unite_rangement_etat" PrevColName="" Pos="3" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="\195\137tat de la majorit\195\169 des unit\195\169s de rangements (\195\169tat des rubans, des poign\195\169es, des sangles, des cartons...).">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21350" ColName="ccb_truk_unite_base" PrevColName="" Pos="4" idDatatype="20" DatatypeParams="(510)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) d\aunit\195\169 de base de la collection,\194\160 si diff\195\169rent de l\aunit\195\169 de rangement. \\ Ex. : si l\aunit\195\169 de rangement est un carton, l\aunit\195\169 de base peut \195\170tre une enveloppe. \\ Pour chaque type : indication du nombre d\aunit\195\169, de la pr\195\169cision du nom (exact = 1, approximatif = 0), des formats (Lxl cm), du nombre de parts, de la pr\195\169cision sur le nombre de parts (exact = 1, approximatif = 0), du nombre d\aesp\195\168ces, de la pr\195\169cision sur le nombre d\aesp\195\168ces (exact, approximatif).">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21355" ColName="ccb_truk_conservation_papier_type" PrevColName="" Pos="5" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) du papier de conservation.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21356" ColName="ccb_truk_conservation_methode" PrevColName="" Pos="6" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) de m\195\169thode de conservation.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21357" ColName="ccb_specimen_fixation_pourcent" PrevColName="" Pos="7" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Pourcentage de sp\195\169cimens fix\195\169s.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21358" ColName="ccb_etiquette_fixation_pourcent" PrevColName="" Pos="8" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Pourcentage d\a\195\169tiquettes fix\195\169es.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21359" ColName="ccb_truk_specimen_fixation_methode" PrevColName="" Pos="9" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) de fixation des sp\195\169cimens.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21361" ColName="ccb_truk_etiquette_fixation_support" PrevColName="" Pos="10" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) de fixation des \195\169tiquettes fix\195\169es au support.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21362" ColName="ccb_truk_etiquette_fixation_specimen" PrevColName="" Pos="11" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) de fixation des \195\169tiquettes fix\195\169es au sp\195\169cimen.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21364" ColName="ccb_truk_etiquette_ecriture" PrevColName="" Pos="12" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) d\a\195\169criture sur les \195\169tiquettes.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21365" ColName="ccb_ce_traitement" PrevColName="" Pos="13" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="La collection botanique semble-t-elle avoir \195\169t\195\169 empoisonn\195\169e ou d\195\169sinsectis\195\169e lors de sa r\195\169alisation ?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21366" ColName="ccb_truk_traitement_poison" PrevColName="" Pos="14" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) d\aempoisonement de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21367" ColName="ccb_truk_traitement_insecte" PrevColName="ccb_truk_traitement_isecte" Pos="15" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) de d\195\169sinctisation de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21368" ColName="ccb_ce_etat_general" PrevColName="" Pos="16" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="\195\137tat g\195\169n\195\169ral de la collection\194\160(grosses attaques d\ainsectes, pourriture, papier tr\195\168s fragile, etc... de 1 tr\195\168s mauvais \195\160 5 tr\195\168s bon \195\169tat).">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21369" ColName="ccb_truk_degradation_specimen" PrevColName="" Pos="17" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) de causes des d\195\169gradations des sp\195\169cimens not\195\169es de 1 tr\195\168s mauvais \195\160 5 tr\195\168s bon \195\169tat.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21370" ColName="ccb_truk_degradation_presentation" PrevColName="" Pos="18" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Type(s) de causes des d\195\169gradations de la pr\195\169sentation not\195\169es de 1 tr\195\168s mauvais \195\160 5 tr\195\168s bon \195\169tat.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21371" ColName="ccb_ce_determination" PrevColName="" Pos="19" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Les \195\169chantillons sont-ils d\195\169terminables ? (de 1\194\160: quelques fragment de plantes \195\160 5 plantes enti\195\168res).">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21944" ColName="ccb_truk_nature" PrevColName="" Pos="40" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nature de l\aherbier.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21945" ColName="ccb_specialite" PrevColName="" Pos="41" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Collection botanique sp\195\169cialis\195\169e (ex. herbier de c\195\169r\195\169ales...)">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21471" ColName="ccb_recolte_date_debut" PrevColName="" Pos="20" idDatatype="14" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Date extr\195\170me de d\195\169but de r\195\169colte.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="22303" ColName="ccb_ce_recolte_date_debut_type" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Type de date extr\195\170me de d\195\169but de r\195\169colte.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21474" ColName="ccb_recolte_date_fin" PrevColName="" Pos="22" idDatatype="14" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Date extr\195\170me de fin de r\195\169colte.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21475" ColName="ccb_ce_recolte_date_fin_type" PrevColName="" Pos="23" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Type de date extr\195\170me de fin de r\195\169colte.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21477" ColName="ccb_annotation_classement" PrevColName="ccb_classement" Pos="24" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Indiquer le type de classement ou des informations concernant un \195\169ventuel classement.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21478" ColName="ccb_ce_classement_etat" PrevColName="" Pos="25" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="\195\137tat du classement (de 1 tr\195\168s mauvais \195\160 5 tr\195\168s bon).">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21479" ColName="ccb_truk_etiquette_renseignement" PrevColName="" Pos="26" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Pourcentage pour chaque type de renseignements port\195\169s sur l\a\195\169tiquette\194\160ou sur la part.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21480" ColName="ccb_ce_precision_localite" PrevColName="" Pos="27" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Les localit\195\169s sont elles pr\195\169cises?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21481" ColName="ccb_ce_precision_date" PrevColName="" Pos="28" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Les dates sont elles pr\195\169cises?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21483" ColName="ccb_annotation_diverse" PrevColName="ccb_truk_annotation" Pos="29" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Autres annotations (dons, annotations personnelles, recettes, utilisations m\195\169dicales...).">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21501" ColName="ccb_ce_collection_integre" PrevColName="" Pos="30" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="La collection observ\195\169e int\195\168gre-t-elle des collections botaniques ant\195\169rieures ?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21502" ColName="ccb_ce_collection_integre_info" PrevColName="ccb_collection_integre_info" Pos="31" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Les noms de ces collections sont-ils not\195\169s sur les \195\169tiquettes de chaque \195\169chantillon\194\160?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21514" ColName="ccb_ce_inventaire" PrevColName="" Pos="32" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Existe-t-il un inventaire de cette collection?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21515" ColName="ccb_ce_inventaire_auteur" PrevColName="" Pos="33" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="L\aauteur de la collection a-t-il particip\195\169 \195\160 cet inventaire?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21517" ColName="ccb_ce_inventaire_forme" PrevColName="" Pos="35" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Forme de l\ainventaire (manuscrit, informatique...).">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21516" ColName="ccb_inventaire_info" PrevColName="" Pos="34" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Quelles informations retrouve-t-on?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21518" ColName="ccb_ce_truk_inventaire_digital" PrevColName="" Pos="36" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Si inventaire digital, quel logiciel utilisez vous?">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21519" ColName="ccb_inventaire_digital_pourcent" PrevColName="" Pos="37" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Pourcentage de la documentation en base de donn\195\169es.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21520" ColName="ccb_ce_inventaire_etat" PrevColName="ccb_inventaire_etat" Pos="38" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="L\ainventaire est il complet ou partiel?">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21521" ColName="ccb_inventaire_donnee_type" PrevColName="" Pos="39" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Quels sont les \195\169l\195\169ments qui ont d\195\169j\195\160 \195\169t\195\169 inventori\195\169s (Ex. : familles, localit\195\169s...) ?">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27920" ColName="ccb_ce_meta" PrevColName="" Pos="42" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="21152" />
<RELATION_END ID="22170" />
<RELATION_END ID="22172" />
<RELATION_END ID="22174" />
<RELATION_END ID="22178" />
<RELATION_END ID="22301" />
<RELATION_END ID="22306" />
<RELATION_END ID="22308" />
<RELATION_END ID="22309" />
<RELATION_END ID="22311" />
<RELATION_END ID="22313" />
<RELATION_END ID="22315" />
<RELATION_END ID="22318" />
<RELATION_END ID="22320" />
<RELATION_END ID="22322" />
<RELATION_END ID="22324" />
<RELATION_END ID="22326" />
<RELATION_END ID="27927" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21151" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21150" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21188" Tablename="coel_publication" PrevTableName="Table_15" XPos="98" YPos="2368" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Publication de type articles scientifiques, ouvrages ou sites web.\nINFO : cpu_fmt_nom_complet" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="76" >
<COLUMNS>
<COLUMN ID="21190" ColName="cpu_id_publication" PrevColName="cp_id_publication" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant de la publication.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21633" ColName="cpu_ce_projet" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du projet dans lequel les donn\195\169es de cet enregistrement ont \195\169t\195\169 saisies.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21955" ColName="cpu_fmt_nom_complet" PrevColName="cpu_fmt_nom" Pos="13" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Intitul\195\169 de la publication complet : fmt_auteur, date_parution(ann\195\169e). titre. Editeur (nom), collection, fascicule, indication_nvt. pages.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21305" ColName="cpu_uri" PrevColName="" Pos="15" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="URI de la publication qui peut \195\170tre un site web...">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21205" ColName="cpu_fmt_auteur" PrevColName="cpu_truk_auteur" Pos="6" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Contient le nom format\195\169 de l\aintitul\195\169 auteur(s). Si plusieurs personnes sont auteurs, l\aintitul\195\169 est format\195\169 ici.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21193" ColName="cpu_titre" PrevColName="cp_titre" Pos="1" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Titre de l\aarticle ou de l\aouvrage.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="26510" ColName="cpu_ce_truk_editeur" PrevColName="" Pos="1" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la structure \195\169ditrice de la publication. S\ail n\aest pas renseignn\195\169 dans la table Structure, contient AUTRE# suivit du nom complet de la structure \195\169ditrice.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21198" ColName="cpu_collection" PrevColName="cpu_intitule_collection" Pos="3" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Intitul\195\169 de la collection, c\aest \195\160 dire de la revue.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21206" ColName="cpu_date_parution" PrevColName="" Pos="7" idDatatype="14" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Date de parution de la publication.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21211" ColName="cpu_indication_nvt" PrevColName="" Pos="8" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Indication du num\195\169ro, volume ou tome de la publication. Plut\195\180t utilis\195\169 pour les ouvrages et non les articles de revue.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21212" ColName="cpu_fascicule" PrevColName="cpu_titre_fascicule" Pos="9" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Indication du titre du fascicule. Surtout utilis\195\169 pour les revues.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21213" ColName="cpu_truk_pages" PrevColName="" Pos="10" idDatatype="20" DatatypeParams="(25)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Indication du nombre de pages (pour les ouvrages) ou des pages de d\195\169but et de fin pour un article. Dans le cas des ouvrages un nombre doit \195\170tre pr\195\169sent. Pour les articles deux nombres ou point d\aint\195\169rogation s\195\169par\195\169s par un tiret.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21215" ColName="cpu_ce_meta" PrevColName="cpu_date_derniere_modif" Pos="12" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_START>
<RELATION_START ID="21226" />
<RELATION_START ID="21241" />
</RELATIONS_START>
<RELATIONS_END>
<RELATION_END ID="21616" />
<RELATION_END ID="21631" />
<RELATION_END ID="22083" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21191" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21190" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21219" Tablename="coel_collection_a_publication" PrevTableName="Table_16" XPos="45" YPos="2181" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Permet de lister les publication li\195\169es \195\160 une collection." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="21" >
<COLUMNS>
<COLUMN ID="21225" ColName="ccapu_id_collection" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21244" ColName="ccapu_id_publication" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la publication.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21316" ColName="ccapu_mark_licence" PrevColName="" Pos="6" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Bool\195\169en indiquant si la publication indiqu\195\169 correspond aux droits de propri\195\169t\195\169s intellectuelles de la collection.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21232" ColName="ccapu_ce_meta" PrevColName="ccapu_date_derniere_modif" Pos="3" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="21223" />
<RELATION_END ID="21226" />
<RELATION_END ID="22081" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21222" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21225" LengthParam="0" />
<INDEXCOLUMN idColumn="21244" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21235" Tablename="coel_publication_a_personne" PrevTableName="Table_17" XPos="508" YPos="2404" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Permet de lister les publications d\aune personne." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="77" >
<COLUMNS>
<COLUMN ID="21571" ColName="cpuap_id_publication" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant d\aune publication.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21572" ColName="cpuap_id_personne" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant d\aune personne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21611" ColName="cpuap_id_role" PrevColName="cpupa_id_role" Pos="7" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="R\195\180le de la personne vis \195\160 vis de la publication : contributeur, auteur...">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21247" ColName="cpuap_ce_truk_type" PrevColName="cpap_ce_truk_type" Pos="2" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Contient le type de r\195\169f\195\169rence bibliographique : n\195\169crologie, biographie, publication personnelle...">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21249" ColName="cpuap_ce_meta" PrevColName="cpap_date_derniere_modif" Pos="4" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="21239" />
<RELATION_END ID="21241" />
<RELATION_END ID="22085" />
<RELATION_END ID="22148" />
<RELATION_END ID="22150" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21238" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21571" LengthParam="0" />
<INDEXCOLUMN idColumn="21572" LengthParam="0" />
<INDEXCOLUMN idColumn="21611" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21486" Tablename="coel_collection_a_relation" PrevTableName="Table_18" XPos="76" YPos="955" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Permet de lister les relations entre collection autre que hi\195\169rarchique." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="20" >
<COLUMNS>
<COLUMN ID="21660" ColName="ccar_id_collection_01" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la collection n\194\1761.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21661" ColName="ccar_id_collection_02" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la collection n\194\1762.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21491" ColName="ccar_id_relation" PrevColName="ccr_ce_relation" Pos="2" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Indentifiant du type de la relation.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21493" ColName="ccar_ce_meta" PrevColName="ccr_date_derniere_modif" Pos="4" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="21496" />
<RELATION_END ID="21498" />
<RELATION_END ID="22075" />
<RELATION_END ID="22152" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21489" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21660" LengthParam="0" />
<INDEXCOLUMN idColumn="21661" LengthParam="0" />
<INDEXCOLUMN idColumn="21491" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21522" Tablename="coel_projet" PrevTableName="EFLORE_PROJET" XPos="57" YPos="541" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Contient les informations sur un projet de donn\195\169es.\nINFO : cpr_nom" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="3" >
<COLUMNS>
<COLUMN ID="21523" ColName="cpr_id_projet" PrevColName="EPR_ID_PROJET" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant d\aun projet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21526" ColName="cpr_nom" PrevColName="EPR_INTITULE_PROJET" Pos="4" idDatatype="20" DatatypeParams="(255)" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom du projet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21527" ColName="cpr_abreviation" PrevColName="EPR_ABREVIATION_PROJET" Pos="5" idDatatype="20" DatatypeParams="(40)" Width="0" Prec="0" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Abr\195\169viation du projet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21528" ColName="cpr_resume" PrevColName="EPR_DESCRIPTION_PROJET" Pos="6" idDatatype="20" DatatypeParams="(255)" Width="0" Prec="0" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="R\195\169sum\195\169 du projet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21538" ColName="cpr_description" PrevColName="" Pos="6" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Description d\195\169taill\195\169e du projet.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21529" ColName="cpr_url" PrevColName="EPR_LIEN_WEB" Pos="7" idDatatype="20" DatatypeParams="(255)" Width="0" Prec="0" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="URL principal o\195\185 trouver des compl\195\169ments d\ainformation sur le projet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27885" ColName="cpr_mot_cles" PrevColName="" Pos="9" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Mots cl\195\169s correspondant au projet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27886" ColName="cpr_citation" PrevColName="" Pos="10" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Indication sur la fa\195\167on de citer le projet pour r\195\169aliser une bibliographie.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27887" ColName="cpr_licence" PrevColName="" Pos="11" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Url ou texte pr\195\169sentant la licence des donn\195\169es du projet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27888" ColName="cpr_ce_langue" PrevColName="" Pos="12" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Langue principale des donn\195\169es du projet (selon l\aISO-639-1).">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27889" ColName="cpr_indexation_heure" PrevColName="" Pos="13" idDatatype="17" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Pr\195\169f\195\169rence de l\aheure de d\195\169part pour les proc\195\169dures d\aindexation externe.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27890" ColName="cpr_ce_indexation_duree" PrevColName="" Pos="14" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Dur\195\169e maximum acceptable pour une proc\195\169dure d\aindexation externe.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27891" ColName="cpr_ce_indexation_freq" PrevColName="" Pos="15" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Fr\195\169quence maximum acceptable pour une proc\195\169dure d\aindexation externe.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="26513" ColName="cpr_mark_public" PrevColName="cpr_autorisation" Pos="7" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="0" Comments="Indique si oui (=1) ou non (=0) ce projet est public. Si oui, il peut \195\170tre publi\195\169 dans eFlore.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27968" ColName="cpr_mark_editable" PrevColName="" Pos="15" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Indique si oui (=1) ou non (=0) ce projet est \195\169ditable. Si nom, l\aapplication doit seulement permettre de consulter les donn\195\169es.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21539" ColName="cpr_ce_meta" PrevColName="cpr_date_derniere_modif" Pos="7" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_START>
<RELATION_START ID="21560" />
<RELATION_START ID="21622" />
<RELATION_START ID="21625" />
<RELATION_START ID="21628" />
<RELATION_START ID="21631" />
<RELATION_START ID="21650" />
<RELATION_START ID="21816" />
<RELATION_START ID="21830" />
<RELATION_START ID="22018" />
<RELATION_START ID="27902" />
</RELATIONS_START>
<RELATIONS_END>
<RELATION_END ID="22066" />
<RELATION_END ID="27908" />
<RELATION_END ID="27910" />
<RELATION_END ID="27912" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21532" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21523" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21544" Tablename="coel_personne_a_relation" PrevTableName="Table_20" XPos="817" YPos="568" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Relation entre deux personnes vis \195\160 vis d\aun projet." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="69" >
<COLUMNS>
<COLUMN ID="21664" ColName="cpar_id_personne_01" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la personne n\194\1761.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21668" ColName="cpar_id_personne_02" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la personne n\194\1762.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21665" ColName="cpar_id_projet" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du projet dans lequel la relation entre les deux personnes s\a\195\169tablie.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21549" ColName="cpar_id_role" PrevColName="cpap_ce_role" Pos="2" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du r\195\180le ou de la valeur \195\169tablie entre les deux personnes.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21557" ColName="cpar_ce_meta" PrevColName="cpap_date_derniere_modif" Pos="4" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="21560" />
<RELATION_END ID="21563" />
<RELATION_END ID="21666" />
<RELATION_END ID="22064" />
<RELATION_END ID="22096" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21547" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21664" LengthParam="0" />
<INDEXCOLUMN idColumn="21668" LengthParam="0" />
<INDEXCOLUMN idColumn="21665" LengthParam="0" />
<INDEXCOLUMN idColumn="21549" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21634" Tablename="coel_projet_version" PrevTableName="eflore_projet_version" XPos="500" YPos="526" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Table contenant les informations sur la version d\aun projet.\nINFO : cprv_nom" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="11447" OrderPos="4" >
<COLUMNS>
<COLUMN ID="21635" ColName="cprv_id_version" PrevColName="eprv_id_version" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant d\aune version de projet.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21652" ColName="cprv_ce_projet" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du projet de la version.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21637" ColName="cprv_nom" PrevColName="eprv_nom" Pos="11" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Nom \195\169ventuel de la version.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21638" ColName="cprv_code" PrevColName="eprv_code" Pos="5" idDatatype="20" DatatypeParams="(25)" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Num\195\169ro ou code de la version.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21640" ColName="cprv_date_debut" PrevColName="eprv_date_debut" Pos="6" idDatatype="15" DatatypeParams="" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="0000-00-00 00:00:00" Comments="Date de d\195\169but de la version.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21641" ColName="cprv_date_fin" PrevColName="eprv_date_fin" Pos="7" idDatatype="15" DatatypeParams="" Width="0" Prec="0" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Date de fin de la version.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21644" ColName="cprv_ce_meta" PrevColName="eprv_date_derniere_modif" Pos="8" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="21650" />
<RELATION_END ID="22068" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21648" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21635" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21757" Tablename="coel_meta_historique_ligne" PrevTableName="Table_22" XPos="1168" YPos="98" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Contient les m\195\169tadonn\195\169es sur l\ahistorique des enregistrements des tables de la base de donn\195\169es.\nINFO : cmhl_date_modification" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="38" >
<COLUMNS>
<COLUMN ID="21759" ColName="cmhl_id_historique_ligne" PrevColName="cmhl_id_historisque_ligne" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant de l\ahistorique des lignes.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21804" ColName="cmhl_ce_table" PrevColName="" Pos="7" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la table.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21765" ColName="cmhl_cle_ligne" PrevColName="cmhl_ce_ligne" Pos="3" idDatatype="20" DatatypeParams="(64)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Identifiant de la ligne. Pour les tables \195\160 cl\195\169 primaire multi colonnes, bien respecter l\aordre des champs de la cl\195\169 et inscrire chaque valeur de cl\195\169 s\195\169par\195\169e par un tiret \A-\A.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21844" ColName="cmhl_enregistrement" PrevColName="" Pos="8" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Contient les donn\195\169es au format XML pour les enregistrements supprim\195\169s uniquement, sinon poss\195\168de la valeur NULL. Format XML : \kxml encoding=\AUTF-8\g\kligne\g\knom_du_champ_01\gvaleur_du_champ_01\k/nom_du_champ_01\g\knom_du_champ_02\gvaleur_du_champ_02\k/nom_du_champ_02\g...\k/ligne\g\k/xml\g.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21766" ColName="cmhl_date_modification" PrevColName="cmhl_date" Pos="4" idDatatype="15" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Date de modification de la ligne.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21767" ColName="cmhl_notes" PrevColName="" Pos="4" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Notes sur la modification effectu\195\169e sur la ligne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27956" ColName="cmhl_source" PrevColName="" Pos="10" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Source des donn\195\169es de l\aenregistrement, si le cr\195\169ateur/modificateur de l\aenregistrement n\aen est pas l\aauteur.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21769" ColName="cmhl_ce_modifier_par" PrevColName="" Pos="6" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la personne ayant effectu\195\169 cette modification sur la ligne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21768" ColName="cmhl_ce_etat" PrevColName="" Pos="5" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de l\a\195\169tat de la ligne.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21770" ColName="cmhl_ip" PrevColName="cmhl_ip_mac" Pos="7" idDatatype="20" DatatypeParams="(50)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Adresse IP depuis laquelle la modification a eu lieu.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27929" ColName="cmhl_session_id" PrevColName="" Pos="9" idDatatype="20" DatatypeParams="(40)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Identifiant de session del \autilisateur.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_START>
<RELATION_START ID="21861" />
<RELATION_START ID="21863" />
<RELATION_START ID="21957" />
<RELATION_START ID="22016" />
<RELATION_START ID="22043" />
<RELATION_START ID="22062" />
<RELATION_START ID="22064" />
<RELATION_START ID="22066" />
<RELATION_START ID="22068" />
<RELATION_START ID="22073" />
<RELATION_START ID="22075" />
<RELATION_START ID="22077" />
<RELATION_START ID="22079" />
<RELATION_START ID="22081" />
<RELATION_START ID="22083" />
<RELATION_START ID="22085" />
<RELATION_START ID="27906" />
<RELATION_START ID="27921" />
<RELATION_START ID="27924" />
<RELATION_START ID="27927" />
</RELATIONS_START>
<RELATIONS_END>
<RELATION_END ID="21789" />
<RELATION_END ID="22071" />
<RELATION_END ID="22093" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21760" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21759" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="21986" Tablename="coel_commentaire" PrevTableName="Table_21" XPos="826" YPos="2390" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Contient les commentaires.\nINFO : ccm_titre" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="83" >
<COLUMNS>
<COLUMN ID="21989" ColName="ccm_id_commentaire" PrevColName="" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="1" IsForeignKey="0" DefaultValue="" Comments="Identifiant d\aun commentaire.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="22031" ColName="ccm_ce_pere" PrevColName="" Pos="7" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="0" Comments="Identifiant du commentaire p\195\168re.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21991" ColName="ccm_ce_projet" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du projet dans lequel le commentaire est fait.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21993" ColName="ccm_titre" PrevColName="" Pos="2" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Titre du commentaire.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21994" ColName="ccm_texte" PrevColName="" Pos="3" idDatatype="28" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Texte du commentaire.">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21996" ColName="ccm_ponderation" PrevColName="" Pos="4" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Pond\195\169ration du commentaire (importance). Valeur de 1 \195\160 10.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27940" ColName="ccm_mark_public" PrevColName="" Pos="7" idDatatype="22" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="0" Comments="Indique si oui (=1) ou non (=0) ce commentaire est public .">
<OPTIONSELECTED>
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="21997" ColName="ccm_ce_meta" PrevColName="" Pos="5" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_START>
<RELATION_START ID="22035" />
<RELATION_START ID="22039" />
</RELATIONS_START>
<RELATIONS_END>
<RELATION_END ID="22016" />
<RELATION_END ID="22018" />
<RELATION_END ID="22035" />
</RELATIONS_END>
<INDICES>
<INDEX ID="21990" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="21989" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="22023" Tablename="coel_collection_a_commentaire" PrevTableName="Table_23" XPos="427" YPos="2183" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="Permet de lister les commentaires / notes faits sur une collection." Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="24" >
<COLUMNS>
<COLUMN ID="22025" ColName="ccac_id_collection" PrevColName="" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant de la collection.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="22027" ColName="ccac_id_commentaire" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant du commentaire.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="22385" ColName="ccac_truk_type" PrevColName="" Pos="3" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="Liste des types du commentaire s\195\169par\195\169s par des points virgules.">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="22029" ColName="ccac_ce_meta" PrevColName="" Pos="3" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="22037" />
<RELATION_END ID="22039" />
<RELATION_END ID="22043" />
</RELATIONS_END>
<INDICES>
<INDEX ID="22026" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="22025" LengthParam="0" />
<INDEXCOLUMN idColumn="22027" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
<TABLE ID="27893" Tablename="coel_projet_a_structure" PrevTableName="Table_23" XPos="451" YPos="762" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="\n" TableOptions="DelayKeyTblUpdates=0\nPackKeys=0\nRowChecksum=0\nRowFormat=0\nUseRaid=0\nRaidType=0\n" Comments="" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="126" >
<COLUMNS>
<COLUMN ID="27895" ColName="cpras_id_projet" PrevColName="" Pos="0" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27897" ColName="cpras_id_structure" PrevColName="" Pos="1" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="1" NotNull="1" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27900" ColName="cpras_truk_role" PrevColName="" Pos="2" idDatatype="20" DatatypeParams="(255)" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="">
<OPTIONSELECTED>
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
<COLUMN ID="27901" ColName="cpras_ce_meta" PrevColName="" Pos="3" idDatatype="5" DatatypeParams="" Width="-1" Prec="-1" PrimaryKey="0" NotNull="0" AutoInc="0" IsForeignKey="1" DefaultValue="" Comments="">
<OPTIONSELECTED>
<OPTIONSELECT Value="1" />
<OPTIONSELECT Value="0" />
</OPTIONSELECTED>
</COLUMN>
</COLUMNS>
<RELATIONS_END>
<RELATION_END ID="27902" />
<RELATION_END ID="27904" />
<RELATION_END ID="27906" />
</RELATIONS_END>
<INDICES>
<INDEX ID="27896" IndexName="PRIMARY" IndexKind="0" FKRefDef_Obj_id="-1">
<INDEXCOLUMNS>
<INDEXCOLUMN idColumn="27895" LengthParam="0" />
<INDEXCOLUMN idColumn="27897" LengthParam="0" />
</INDEXCOLUMNS>
</INDEX>
</INDICES>
</TABLE>
</TABLES>
<RELATIONS>
<RELATION ID="18419" RelationName="fk_cs_csap" Kind="1" SrcTable="1445" DestTable="1447" FKFields="cs_id_structure=csap_id_structure\n" FKFieldsComments="Identifiant de la structure.\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-9" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="1" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="17" />
<RELATION ID="18425" RelationName="fk_cp_csap" Kind="1" SrcTable="1446" DestTable="1447" FKFields="cp_id_personne=csap_id_personne\n" FKFieldsComments="Identifiant de la personne constituant l\a\195\169quipe d\aun service d\aune structure.\n" relDirection="3" MidOffset="6" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="1" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="18" />
<RELATION ID="18470" RelationName="fk_cmc_cmd" Kind="2" SrcTable="18456" DestTable="18452" FKFields="cmc_id_champ=cmd_ce_champ\n" FKFieldsComments="\n" relDirection="4" MidOffset="-6" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="57" CaptionOffsetY="-25" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="1" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="34" />
<RELATION ID="20817" RelationName="fk_cs_cc" Kind="2" SrcTable="1445" DestTable="1444" FKFields="cs_id_structure=cc_ce_structure\n" FKFieldsComments="\n" relDirection="4" MidOffset="201" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="5" CaptionOffsetY="1" StartIntervalOffsetX="-6" StartIntervalOffsetY="2" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="45" />
<RELATION ID="20819" RelationName="fk_cc_cc_parente" Kind="2" SrcTable="1444" DestTable="1444" FKFields="cc_id_collection=cc_ce_mere\n" FKFieldsComments="Identifiant de la collection parente.\n" relDirection="2" MidOffset="13" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-17" CaptionOffsetY="2" StartIntervalOffsetX="9" StartIntervalOffsetY="-28" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="46" />
<RELATION ID="20859" RelationName="fk_cs_csc" Kind="4" SrcTable="1445" DestTable="20850" FKFields="cs_id_structure=csc_id_structure\n" FKFieldsComments="Identifiant de la structure.\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="58" />
<RELATION ID="20861" RelationName="fk_cs_csv" Kind="4" SrcTable="1445" DestTable="20854" FKFields="cs_id_structure=csv_id_structure\n" FKFieldsComments="Identifiant de la structure.\n" relDirection="3" MidOffset="1" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="59" />
<RELATION ID="21108" RelationName="fk_cc_ccap" Kind="1" SrcTable="1444" DestTable="21104" FKFields="cc_id_collection=ccap_id_collection\n" FKFieldsComments="Identifiant de la collection associ\195\169 \195\160 une personne.\n" relDirection="2" MidOffset="21" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="-1" StartIntervalOffsetY="3" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="57" />
<RELATION ID="21110" RelationName="fk_cp_ccap" Kind="1" SrcTable="1446" DestTable="21104" FKFields="cp_id_personne=ccap_id_personne\n" FKFieldsComments="Identifiant de la personne associ\195\169 \195\160 une collection.\n" relDirection="4" MidOffset="-170" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="58" />
<RELATION ID="21152" RelationName="fk_cc_ccb" Kind="4" SrcTable="1444" DestTable="21148" FKFields="cc_id_collection=ccb_id_collection\n" FKFieldsComments="Identifiant de la collection botanique.\n" relDirection="2" MidOffset="7" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="60" />
<RELATION ID="21163" RelationName="fk_cs_cs_parente" Kind="2" SrcTable="1445" DestTable="1445" FKFields="cs_id_structure=cs_ce_mere\n" FKFieldsComments="Identifiant de la structure parente.\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-35" CaptionOffsetY="-3" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="62" />
<RELATION ID="21223" RelationName="fk_cc_ccapu" Kind="1" SrcTable="1444" DestTable="21219" FKFields="cc_id_collection=ccapu_id_collection\n" FKFieldsComments="Identifiant de la collection ayant des publications.\n" relDirection="3" MidOffset="-3" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-49" CaptionOffsetY="-7" StartIntervalOffsetX="0" StartIntervalOffsetY="3" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="66" />
<RELATION ID="21226" RelationName="fk_cpu_ccapu" Kind="1" SrcTable="21188" DestTable="21219" FKFields="cpu_id_publication=ccapu_id_publication\n" FKFieldsComments="Identifiant de la publication traitant d\aune collection.\n" relDirection="1" MidOffset="31" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="25" CaptionOffsetY="-3" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="67" />
<RELATION ID="21239" RelationName="fk_cp_cpuap" Kind="1" SrcTable="1446" DestTable="21235" FKFields="cp_id_personne=cpuap_id_personne\n" FKFieldsComments="Identifiant de la personne ayant un rapport avec une publication.\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="53" CaptionOffsetY="-20" StartIntervalOffsetX="99" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="1" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="71" />
<RELATION ID="21241" RelationName="fk_cpu_cpuap" Kind="1" SrcTable="21188" DestTable="21235" FKFields="cpu_id_publication=cpuap_id_publication\n" FKFieldsComments="Identifiant de la publication li\195\169e \195\160 une personne.\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="-2" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="72" />
<RELATION ID="21496" RelationName="fk_cc_ccar_01" Kind="1" SrcTable="1444" DestTable="21486" FKFields="cc_id_collection=ccar_id_collection_01\n" FKFieldsComments="Identifiant de la collection n\194\1761.\n" relDirection="1" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="39" CaptionOffsetY="-2" StartIntervalOffsetX="7" StartIntervalOffsetY="-2" EndIntervalOffsetX="6" EndIntervalOffsetY="3" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="65" />
<RELATION ID="21498" RelationName="fk_cc_ccar_02" Kind="1" SrcTable="1444" DestTable="21486" FKFields="cc_id_collection=ccar_id_collection_02\n" FKFieldsComments="Identifiant de la collection n\194\1762.\n" relDirection="1" MidOffset="22" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-44" CaptionOffsetY="-2" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="4" EndIntervalOffsetY="6" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="66" />
<RELATION ID="21560" RelationName="fk_cpr_cpar" Kind="1" SrcTable="21522" DestTable="21544" FKFields="cpr_id_projet=cpar_id_projet\n" FKFieldsComments="Identifiant du projet dans lequel la relation entre les deux personnes s\a\195\169tablie.\n" relDirection="2" MidOffset="215" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="1" CaptionOffsetY="-44" StartIntervalOffsetX="5" StartIntervalOffsetY="-27" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="70" />
<RELATION ID="21563" RelationName="fk_cp_cpar_01" Kind="1" SrcTable="1446" DestTable="21544" FKFields="cp_id_personne=cpar_id_personne_01\n" FKFieldsComments="Identifiant de la personne n\194\1761.\n" relDirection="4" MidOffset="13" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="71" />
<RELATION ID="21616" RelationName="fk_cs_cpu_editeur" Kind="2" SrcTable="1445" DestTable="21188" FKFields="cs_id_structure=cpu_ce_truk_editeur\n" FKFieldsComments="Identifiant de la structure \195\169ditrice de la publication. S\ail n\aest pas renseignn\195\169 dans la table Structure, contient AUTRE# suivit du nom complet de la structure \195\169ditrice.\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="-6" StartIntervalOffsetY="-29" EndIntervalOffsetX="8" EndIntervalOffsetY="11" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="1" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="72" />
<RELATION ID="21622" RelationName="fk_cpr_cp" Kind="2" SrcTable="21522" DestTable="1446" FKFields="cpr_id_projet=cp_ce_projet\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="73" />
<RELATION ID="21625" RelationName="fk_cpr_cs" Kind="2" SrcTable="21522" DestTable="1445" FKFields="cpr_id_projet=cs_ce_projet\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="74" />
<RELATION ID="21628" RelationName="fk_cpr_cc" Kind="2" SrcTable="21522" DestTable="1444" FKFields="cpr_id_projet=cc_ce_projet\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="75" />
<RELATION ID="21631" RelationName="fk_cpr_cpu" Kind="2" SrcTable="21522" DestTable="21188" FKFields="cpr_id_projet=cpu_ce_projet\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="76" />
<RELATION ID="21650" RelationName="fk_cpr_cprv" Kind="2" SrcTable="21522" DestTable="21634" FKFields="cpr_id_projet=cprv_ce_projet\n" FKFieldsComments="Identifiant du projet de la version.\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="43" CaptionOffsetY="-2" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="78" />
<RELATION ID="21666" RelationName="fk_cp_cpar_02" Kind="1" SrcTable="1446" DestTable="21544" FKFields="cp_id_personne=cpar_id_personne_02\n" FKFieldsComments="Identifiant de la personne n\194\1762.\n" relDirection="4" MidOffset="-46" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-2" CaptionOffsetY="-50" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="72" />
<RELATION ID="21789" RelationName="fk_cp_cmhl_modifier_par" Kind="2" SrcTable="1446" DestTable="21757" FKFields="cp_id_personne=cmhl_ce_modifier_par\n" FKFieldsComments="\n" relDirection="1" MidOffset="89" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-7" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="79" />
<RELATION ID="21816" RelationName="fk_cpr_cmlv" Kind="2" SrcTable="21522" DestTable="18466" FKFields="cpr_id_projet=cmlv_ce_projet\n" FKFieldsComments="\n" relDirection="1" MidOffset="146" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="58" />
<RELATION ID="21819" RelationName="fk_cmlv_cmlv_parent" Kind="2" SrcTable="18466" DestTable="18466" FKFields="cmlv_id_valeur=cmlv_ce_parent\n" FKFieldsComments="\n" relDirection="2" MidOffset="4" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-75" CaptionOffsetY="-14" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="-24" EndIntervalOffsetY="-22" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="59" />
<RELATION ID="21822" RelationName="fk_cmlv_cmc_liste" Kind="2" SrcTable="18466" DestTable="18456" FKFields="cmlv_id_valeur=cmc_ce_liste\n" FKFieldsComments="\n" relDirection="2" MidOffset="-3" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="7" StartIntervalOffsetY="-32" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="60" />
<RELATION ID="21830" RelationName="fk_cpr_cmc" Kind="2" SrcTable="21522" DestTable="18456" FKFields="cpr_id_projet=cmc_ce_projet\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="42" CaptionOffsetY="30" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="61" />
<RELATION ID="21861" RelationName="fk_cmhl_cmlv_meta" Kind="2" SrcTable="21757" DestTable="18466" FKFields="cmhl_id_historique_ligne=cmlv_ce_meta\n" FKFieldsComments="\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="63" />
<RELATION ID="21863" RelationName="fk_cmhl_cmc_meta" Kind="2" SrcTable="21757" DestTable="18456" FKFields="cmhl_id_historique_ligne=cmc_ce_meta\n" FKFieldsComments="\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="64" />
<RELATION ID="21957" RelationName="fk_cmhl_cs" Kind="2" SrcTable="21757" DestTable="1445" FKFields="cmhl_id_historique_ligne=cs_ce_meta\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="64" />
<RELATION ID="21959" RelationName="fk_cmlv_cs_type" Kind="2" SrcTable="18466" DestTable="1445" FKFields="cmlv_id_valeur=cs_ce_type\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-30" CaptionOffsetY="-2" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="65" />
<RELATION ID="21961" RelationName="fk_cmlv_cs_type_prive" Kind="2" SrcTable="18466" DestTable="1445" FKFields="cmlv_id_valeur=cs_ce_truk_type_prive\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-112" CaptionOffsetY="13" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="66" />
<RELATION ID="21964" RelationName="fk_cmlv_cs_type_public" Kind="2" SrcTable="18466" DestTable="1445" FKFields="cmlv_id_valeur=cs_ce_truk_type_public\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="67" />
<RELATION ID="22016" RelationName="fk_cmhl_ccm_meta" Kind="2" SrcTable="21757" DestTable="21986" FKFields="cmhl_id_historique_ligne=ccm_ce_meta\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="75" />
<RELATION ID="22018" RelationName="fk_cpr_ccm" Kind="2" SrcTable="21522" DestTable="21986" FKFields="cpr_id_projet=ccm_ce_projet\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="76" />
<RELATION ID="22035" RelationName="fk_ccm_ccm_pere" Kind="2" SrcTable="21986" DestTable="21986" FKFields="ccm_id_commentaire=ccm_ce_pere\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="-71" CaptionOffsetY="-20" StartIntervalOffsetX="9" StartIntervalOffsetY="0" EndIntervalOffsetX="-20" EndIntervalOffsetY="-28" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="73" />
<RELATION ID="22037" RelationName="fk_cc_ccac" Kind="1" SrcTable="1444" DestTable="22023" FKFields="cc_id_collection=ccac_id_collection\n" FKFieldsComments="\n" relDirection="3" MidOffset="117" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="74" />
<RELATION ID="22039" RelationName="fk_ccm_ccac" Kind="1" SrcTable="21986" DestTable="22023" FKFields="ccm_id_commentaire=ccac_id_commentaire\n" FKFieldsComments="\n" relDirection="4" MidOffset="36" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="75" />
<RELATION ID="22043" RelationName="fk_cmhl_ccac_meta" Kind="2" SrcTable="21757" DestTable="22023" FKFields="cmhl_id_historique_ligne=ccac_ce_meta\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="77" />
<RELATION ID="22062" RelationName="fk_cmhl_cp_meta" Kind="2" SrcTable="21757" DestTable="1446" FKFields="cmhl_id_historique_ligne=cp_ce_meta\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="78" />
<RELATION ID="22064" RelationName="fk_cmhl_cpar_meta" Kind="2" SrcTable="21757" DestTable="21544" FKFields="cmhl_id_historique_ligne=cpar_ce_meta\n" FKFieldsComments="\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="79" />
<RELATION ID="22066" RelationName="fk_cmhl_cpr_meta" Kind="2" SrcTable="21757" DestTable="21522" FKFields="cmhl_id_historique_ligne=cpr_ce_meta\n" FKFieldsComments="\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="80" />
<RELATION ID="22068" RelationName="fk_cmhl_cprv_meta" Kind="2" SrcTable="21757" DestTable="21634" FKFields="cmhl_id_historique_ligne=cprv_ce_meta\n" FKFieldsComments="\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="81" />
<RELATION ID="22071" RelationName="fk_cmlv_cmhl_val" Kind="2" SrcTable="18466" DestTable="21757" FKFields="cmlv_id_valeur=cmhl_ce_etat\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="82" />
<RELATION ID="22073" RelationName="fk_cmhl_csap_meta" Kind="2" SrcTable="21757" DestTable="1447" FKFields="cmhl_id_historique_ligne=csap_ce_meta\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="82" />
<RELATION ID="22075" RelationName="fk_cmhl_ccar_meta" Kind="2" SrcTable="21757" DestTable="21486" FKFields="cmhl_id_historique_ligne=ccar_ce_meta\n" FKFieldsComments="\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="83" />
<RELATION ID="22077" RelationName="fk_cmhl_ccap_meta" Kind="2" SrcTable="21757" DestTable="21104" FKFields="cmhl_id_historique_ligne=ccap_ce_meta\n" FKFieldsComments="\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="84" />
<RELATION ID="22079" RelationName="fk_cmhl_cc_meta" Kind="2" SrcTable="21757" DestTable="1444" FKFields="cmhl_id_historique_ligne=cc_ce_meta\n" FKFieldsComments="\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="5" CaptionOffsetY="-5" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="85" />
<RELATION ID="22081" RelationName="fk_cmhl_ccapu_meta" Kind="2" SrcTable="21757" DestTable="21219" FKFields="cmhl_id_historique_ligne=ccapu_ce_meta\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="86" />
<RELATION ID="22083" RelationName="fk_cmhl_cpu_meta" Kind="2" SrcTable="21757" DestTable="21188" FKFields="cmhl_id_historique_ligne=cpu_ce_meta\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="87" />
<RELATION ID="22085" RelationName="fk_cmhl_cpuap_meta" Kind="2" SrcTable="21757" DestTable="21235" FKFields="cmhl_id_historique_ligne=cpuap_ce_meta\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="88" />
<RELATION ID="22087" RelationName="fk_cmlv_cmc_table" Kind="2" SrcTable="18466" DestTable="18456" FKFields="cmlv_id_valeur=cmc_ce_table\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="89" />
<RELATION ID="22089" RelationName="fk_cmlv_cmc_format_sql" Kind="2" SrcTable="18466" DestTable="18456" FKFields="cmlv_id_valeur=cmc_ce_format_sql\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="90" />
<RELATION ID="22091" RelationName="fk_cmlv_cmd_table" Kind="2" SrcTable="18466" DestTable="18452" FKFields="cmlv_id_valeur=cmd_ce_table\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="91" />
<RELATION ID="22093" RelationName="fk_cmlv_cmhl_table" Kind="2" SrcTable="18466" DestTable="21757" FKFields="cmlv_id_valeur=cmhl_ce_table\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="92" />
<RELATION ID="22096" RelationName="fk_cmlv_cpar_role" Kind="1" SrcTable="18466" DestTable="21544" FKFields="cmlv_id_valeur=cpar_id_role\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="93" />
<RELATION ID="22099" RelationName="fk_cmlv_cp_prefix" Kind="2" SrcTable="18466" DestTable="1446" FKFields="cmlv_id_valeur=cp_ce_truk_prefix\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="94" />
<RELATION ID="22101" RelationName="fk_cmlv_cp_suffix" Kind="2" SrcTable="18466" DestTable="1446" FKFields="cmlv_id_valeur=cp_ce_truk_suffix\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="95" />
<RELATION ID="22133" RelationName="fk_cmlv_cp_sexe" Kind="2" SrcTable="18466" DestTable="1446" FKFields="cmlv_id_valeur=cp_ce_sexe\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="96" />
<RELATION ID="22135" RelationName="fk_cmlv_cp_specialite" Kind="2" SrcTable="18466" DestTable="1446" FKFields="cmlv_id_valeur=cp_ce_truk_specialite\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="97" />
<RELATION ID="22137" RelationName="fk_cmlv_cp_role" Kind="2" SrcTable="18466" DestTable="1446" FKFields="cmlv_id_valeur=cp_ce_truk_role\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="98" />
<RELATION ID="22142" RelationName="fk_cmlv_csap_fonction" Kind="2" SrcTable="18466" DestTable="1447" FKFields="cmlv_id_valeur=csap_ce_truk_fonction\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="99" />
<RELATION ID="22144" RelationName="fk_cmlv_csap_statut" Kind="2" SrcTable="18466" DestTable="1447" FKFields="cmlv_id_valeur=csap_ce_truk_statut\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="32" CaptionOffsetY="5" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="100" />
<RELATION ID="22146" RelationName="fk_cmlv_csc_materiel_conservation" Kind="2" SrcTable="18466" DestTable="20850" FKFields="cmlv_id_valeur=csc_ce_materiel_conservation\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="101" />
<RELATION ID="22148" RelationName="fk_cmlv_cpuap_type" Kind="2" SrcTable="18466" DestTable="21235" FKFields="cmlv_id_valeur=cpuap_ce_truk_type\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="102" />
<RELATION ID="22150" RelationName="fk_cmlv_cpuap_role" Kind="1" SrcTable="18466" DestTable="21235" FKFields="cmlv_id_valeur=cpuap_id_role\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="103" />
<RELATION ID="22152" RelationName="fk_cmlv_ccar_relation" Kind="1" SrcTable="18466" DestTable="21486" FKFields="cmlv_id_valeur=ccar_id_relation\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="104" />
<RELATION ID="22154" RelationName="fk_cmlv_ccap_role" Kind="1" SrcTable="18466" DestTable="21104" FKFields="cmlv_id_valeur=ccap_id_role\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="105" />
<RELATION ID="22158" RelationName="fk_cmlv_cc_type" Kind="2" SrcTable="18466" DestTable="1444" FKFields="cmlv_id_valeur=cc_ce_type\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="106" />
<RELATION ID="22160" RelationName="fk_cmlv_cc_developpement" Kind="2" SrcTable="18466" DestTable="1444" FKFields="cmlv_id_valeur=cc_ce_developpement\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="107" />
<RELATION ID="22162" RelationName="fk_cmlv_cc_specimen_type" Kind="2" SrcTable="18466" DestTable="1444" FKFields="cmlv_id_valeur=cc_ce_specimen_type\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="108" />
<RELATION ID="22164" RelationName="fk_cmlv_cc_specimen_type_classement" Kind="2" SrcTable="18466" DestTable="1444" FKFields="cmlv_id_valeur=cc_ce_specimen_type_classement\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="109" />
<RELATION ID="22170" RelationName="fk_cmlv_ccb_unitte_rangement_etat" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_unite_rangement_etat\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="111" />
<RELATION ID="22172" RelationName="fk_cmlv_ccb_traitement" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_traitement\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="112" />
<RELATION ID="22174" RelationName="fk_cmlv_ccb_etat_general" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_etat_general\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="113" />
<RELATION ID="22178" RelationName="fk_cmlv_ccb_determination" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_determination\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="114" />
<RELATION ID="22301" RelationName="fk_cmlv_ccb_recolte_date_debut_type" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_recolte_date_debut_type\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="116" />
<RELATION ID="22306" RelationName="fk_cmlv_ccb_recolte_date_fin_type" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_recolte_date_fin_type\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="117" />
<RELATION ID="22308" RelationName="fk_cmlv_ccb_classement_etat" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_classement_etat\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="118" />
<RELATION ID="22309" RelationName="fk_cmlv_ccb_precision_localite" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_precision_localite\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="118" />
<RELATION ID="22311" RelationName="fk_cmlv_ccb_precision_date" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_precision_date\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="119" />
<RELATION ID="22313" RelationName="fk_cmlv_ccb_collection_integre" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_collection_integre\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="120" />
<RELATION ID="22315" RelationName="fk_cmlv_ccb_collection_integre_info" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_collection_integre_info\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="121" />
<RELATION ID="22318" RelationName="fk_cmlv_ccb_inventaire" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_inventaire\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="122" />
<RELATION ID="22320" RelationName="fk_cmlv_ccb_inventaire_auteur" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_inventaire_auteur\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="123" />
<RELATION ID="22322" RelationName="fk_cmlv_ccb_inventaire_forme" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_inventaire_forme\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="124" />
<RELATION ID="22324" RelationName="fk_cmlv_ccb_inventaire_digital" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_truk_inventaire_digital\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="125" />
<RELATION ID="22326" RelationName="fk_cmlv_ccb_inventaire_etat" Kind="2" SrcTable="18466" DestTable="21148" FKFields="cmlv_id_valeur=ccb_ce_inventaire_etat\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="126" />
<RELATION ID="27872" RelationName="fk_cmlv_cc_type_depot" Kind="2" SrcTable="18466" DestTable="1444" FKFields="cmlv_id_valeur=cc_ce_type_depot\n" FKFieldsComments="Type de d\195\169p\195\180t de la collection (pr\195\170t, d\195\169p\195\180t permanent...).\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="125" />
<RELATION ID="27902" RelationName="fk_cpr_cpras" Kind="1" SrcTable="21522" DestTable="27893" FKFields="cpr_id_projet=cpras_id_projet\n" FKFieldsComments="\n" relDirection="2" MidOffset="18" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="127" />
<RELATION ID="27904" RelationName="fk_cs_cpras" Kind="1" SrcTable="1445" DestTable="27893" FKFields="cs_id_structure=cpras_id_structure\n" FKFieldsComments="\n" relDirection="1" MidOffset="-150" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="1" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="128" />
<RELATION ID="27906" RelationName="fk_cmhl_cpras_meta" Kind="2" SrcTable="21757" DestTable="27893" FKFields="cmhl_id_historique_ligne=cpras_ce_meta\n" FKFieldsComments="\n" relDirection="4" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="129" />
<RELATION ID="27908" RelationName="fk_cmlv_cpr_langue" Kind="2" SrcTable="18466" DestTable="21522" FKFields="cmlv_id_valeur=cpr_ce_langue\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="130" />
<RELATION ID="27910" RelationName="fk_cmlv_cpr_idx_duree" Kind="2" SrcTable="18466" DestTable="21522" FKFields="cmlv_id_valeur=cpr_ce_indexation_duree\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="131" />
<RELATION ID="27912" RelationName="fk_cmlv_cpr_idx_freq" Kind="2" SrcTable="18466" DestTable="21522" FKFields="cmlv_id_valeur=cpr_ce_indexation_freq\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="132" />
<RELATION ID="27921" RelationName="fk_cmhl_csc_meta" Kind="2" SrcTable="21757" DestTable="20850" FKFields="cmhl_id_historique_ligne=csc_ce_meta\n" FKFieldsComments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="133" />
<RELATION ID="27924" RelationName="fk_cmhl_csv_meta" Kind="2" SrcTable="21757" DestTable="20854" FKFields="cmhl_id_historique_ligne=csv_ce_meta\n" FKFieldsComments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="134" />
<RELATION ID="27927" RelationName="fk_cmhl_ccb_meta" Kind="2" SrcTable="21757" DestTable="21148" FKFields="cmhl_id_historique_ligne=ccb_ce_meta\n" FKFieldsComments="Identifiant des m\195\169tadonn\195\169es de cet enregistrement.\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="135" />
<RELATION ID="27941" RelationName="fk_cmlv_csap_role" Kind="1" SrcTable="18466" DestTable="1447" FKFields="cmlv_id_valeur=csap_id_role\n" FKFieldsComments="Identifiant du r\195\180le de la personne vis \195\160 vis de la structure.\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="136" />
<RELATION ID="27948" RelationName="fk_cmlv_cp_deces" Kind="2" SrcTable="18466" DestTable="1446" FKFields="cmlv_id_valeur=cp_ce_deces\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="134" />
<RELATION ID="27950" RelationName="fk_cmlv_cp_pays" Kind="2" SrcTable="18466" DestTable="1446" FKFields="cmlv_id_valeur=cp_ce_truk_pays\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="135" />
<RELATION ID="27952" RelationName="fk_cmlv_cp_region" Kind="2" SrcTable="18466" DestTable="1446" FKFields="cmlv_id_valeur=cp_ce_truk_region\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="136" />
<RELATION ID="27959" RelationName="fk_cmlv_cc_type_nbre_precision" Kind="2" SrcTable="18466" DestTable="1444" FKFields="cmlv_id_valeur=cc_ce_specimen_type_nbre_precision\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="0" Invisible="1" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="137" />
</RELATIONS>
<NOTES>
</NOTES>
<IMAGES>
</IMAGES>
</METADATA>
<PLUGINDATA>
<PLUGINDATARECORDS>
</PLUGINDATARECORDS>
</PLUGINDATA>
<QUERYDATA>
<QUERYRECORDS>
</QUERYRECORDS>
</QUERYDATA>
<LINKEDMODELS>
</LINKEDMODELS>
</DBMODEL>
Property changes:
Added: svn:keywords
+LastChangedRevision
\ No newline at end of property
/tags/v1.0-syrah/doc/bdd/coel_table_coel_meta_liste_valeur.html
New file
0,0 → 1,621
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Métadonnée - coel_meta_liste_valeur</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Metadonnee.html">Métadonnée</a> > coel_meta_liste_valeur</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_meta_liste_valeur</h1>
<h2> Description générale </h2>
<p>
Liste l'ensemble des valeurs des tables de type liste.<br />Un champ contient des valeurs dans cette table quand il est de type "LISTE".<br />INFO : cmlv_nom
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cmlv_id_valeur" class="pair" >
<td> 1 </td>
<td> cmlv_id_valeur </td>
<td> cmlv_id_v </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant d'une valeur de liste. Notez que les listes sont des valeurs de la liste des listes. </td>
</tr>
<tr id="cmlv_ce_parent" class="pair" >
<td> 2 </td>
<td> cmlv_ce_parent </td>
<td> cmlv_ce_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la catégorie ou des informations sur la liste. Les listes ont pour parent la valeur 0 qui correspond à la liste des listes. </td>
</tr>
<tr id="cmlv_ce_projet" class="pair" >
<td> 3 </td>
<td> cmlv_ce_projet </td>
<td> cmlv_ce_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du projet de la valeur. </td>
</tr>
<tr id="cmlv_nom" class="pair" >
<td> 4 </td>
<td> cmlv_nom </td>
<td> cmlv_n </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom de la valeur. </td>
</tr>
<tr id="cmlv_abreviation" class="pair" >
<td> 5 </td>
<td> cmlv_abreviation </td>
<td> cmlv_a </td>
<td> VARCHAR(50) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Abréviation, code ou identifiant de la valeur. </td>
</tr>
<tr id="cmlv_description" class="pair" >
<td> 6 </td>
<td> cmlv_description </td>
<td> cmlv_d </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Description de cette valeur. </td>
</tr>
<tr id="cmlv_ce_meta" class="pair" >
<td> 7 </td>
<td> cmlv_ce_meta </td>
<td> cmlv_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cpr_cmlv </td>
<td> cmlv_ce_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cmlv_cmlv_parent </td>
<td> cmlv_id_valeur </td>
<td> cmlv_ce_parent </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmlv_cmc_liste </td>
<td> cmlv_id_valeur </td>
<td> cmc_ce_liste </td>
<td> <a href="coel_table_coel_meta_colonne.html">coel_meta_colonne</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cmhl_cmlv_meta </td>
<td> cmlv_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cmlv_cs_type </td>
<td> cmlv_id_valeur </td>
<td> cs_ce_type </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 6 </td>
<td> fk_cmlv_cs_type_prive </td>
<td> cmlv_id_valeur </td>
<td> cs_ce_truk_type_prive </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 7 </td>
<td> fk_cmlv_cs_type_public </td>
<td> cmlv_id_valeur </td>
<td> cs_ce_truk_type_public </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 8 </td>
<td> fk_cmlv_cmhl_val </td>
<td> cmlv_id_valeur </td>
<td> cmhl_ce_etat </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 9 </td>
<td> fk_cmlv_cmc_table </td>
<td> cmlv_id_valeur </td>
<td> cmc_ce_table </td>
<td> <a href="coel_table_coel_meta_colonne.html">coel_meta_colonne</a> </td>
</tr>
<tr class="pair" >
<td> 10 </td>
<td> fk_cmlv_cmc_format_sql </td>
<td> cmlv_id_valeur </td>
<td> cmc_ce_format_sql </td>
<td> <a href="coel_table_coel_meta_colonne.html">coel_meta_colonne</a> </td>
</tr>
<tr class="pair" >
<td> 11 </td>
<td> fk_cmlv_cmd_table </td>
<td> cmlv_id_valeur </td>
<td> cmd_ce_table </td>
<td> <a href="coel_table_coel_meta_donnee.html">coel_meta_donnee</a> </td>
</tr>
<tr class="pair" >
<td> 12 </td>
<td> fk_cmlv_cmhl_table </td>
<td> cmlv_id_valeur </td>
<td> cmhl_ce_table </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 13 </td>
<td> fk_cmlv_cpar_role </td>
<td> cmlv_id_valeur </td>
<td> cpar_id_role </td>
<td> <a href="coel_table_coel_personne_a_relation.html">coel_personne_a_relation</a> </td>
</tr>
<tr class="pair" >
<td> 14 </td>
<td> fk_cmlv_cp_prefix </td>
<td> cmlv_id_valeur </td>
<td> cp_ce_truk_prefix </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 15 </td>
<td> fk_cmlv_cp_suffix </td>
<td> cmlv_id_valeur </td>
<td> cp_ce_truk_suffix </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 16 </td>
<td> fk_cmlv_cp_sexe </td>
<td> cmlv_id_valeur </td>
<td> cp_ce_sexe </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 17 </td>
<td> fk_cmlv_cp_specialite </td>
<td> cmlv_id_valeur </td>
<td> cp_ce_truk_specialite </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 18 </td>
<td> fk_cmlv_cp_role </td>
<td> cmlv_id_valeur </td>
<td> cp_ce_truk_role </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 19 </td>
<td> fk_cmlv_csap_fonction </td>
<td> cmlv_id_valeur </td>
<td> csap_ce_truk_fonction </td>
<td> <a href="coel_table_coel_structure_a_personne.html">coel_structure_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 20 </td>
<td> fk_cmlv_csap_statut </td>
<td> cmlv_id_valeur </td>
<td> csap_ce_truk_statut </td>
<td> <a href="coel_table_coel_structure_a_personne.html">coel_structure_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 21 </td>
<td> fk_cmlv_csc_materiel_conservation </td>
<td> cmlv_id_valeur </td>
<td> csc_ce_materiel_conservation </td>
<td> <a href="coel_table_coel_structure_conservation.html">coel_structure_conservation</a> </td>
</tr>
<tr class="pair" >
<td> 22 </td>
<td> fk_cmlv_cpuap_type </td>
<td> cmlv_id_valeur </td>
<td> cpuap_ce_truk_type </td>
<td> <a href="coel_table_coel_publication_a_personne.html">coel_publication_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 23 </td>
<td> fk_cmlv_cpuap_role </td>
<td> cmlv_id_valeur </td>
<td> cpuap_id_role </td>
<td> <a href="coel_table_coel_publication_a_personne.html">coel_publication_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 24 </td>
<td> fk_cmlv_ccar_relation </td>
<td> cmlv_id_valeur </td>
<td> ccar_id_relation </td>
<td> <a href="coel_table_coel_collection_a_relation.html">coel_collection_a_relation</a> </td>
</tr>
<tr class="pair" >
<td> 25 </td>
<td> fk_cmlv_ccap_role </td>
<td> cmlv_id_valeur </td>
<td> ccap_id_role </td>
<td> <a href="coel_table_coel_collection_a_personne.html">coel_collection_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 26 </td>
<td> fk_cmlv_cc_type </td>
<td> cmlv_id_valeur </td>
<td> cc_ce_type </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 27 </td>
<td> fk_cmlv_cc_developpement </td>
<td> cmlv_id_valeur </td>
<td> cc_ce_developpement </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 28 </td>
<td> fk_cmlv_cc_specimen_type </td>
<td> cmlv_id_valeur </td>
<td> cc_ce_specimen_type </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 29 </td>
<td> fk_cmlv_cc_specimen_type_classement </td>
<td> cmlv_id_valeur </td>
<td> cc_ce_specimen_type_classement </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 30 </td>
<td> fk_cmlv_ccb_unitte_rangement_etat </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_unite_rangement_etat </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 31 </td>
<td> fk_cmlv_ccb_traitement </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_traitement </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 32 </td>
<td> fk_cmlv_ccb_etat_general </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_etat_general </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 33 </td>
<td> fk_cmlv_ccb_determination </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_determination </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 34 </td>
<td> fk_cmlv_ccb_recolte_date_debut_type </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_recolte_date_debut_type </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 35 </td>
<td> fk_cmlv_ccb_recolte_date_fin_type </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_recolte_date_fin_type </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 36 </td>
<td> fk_cmlv_ccb_classement_etat </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_classement_etat </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 37 </td>
<td> fk_cmlv_ccb_precision_localite </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_precision_localite </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 38 </td>
<td> fk_cmlv_ccb_precision_date </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_precision_date </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 39 </td>
<td> fk_cmlv_ccb_collection_integre </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_collection_integre </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 40 </td>
<td> fk_cmlv_ccb_collection_integre_info </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_collection_integre_info </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 41 </td>
<td> fk_cmlv_ccb_inventaire </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_inventaire </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 42 </td>
<td> fk_cmlv_ccb_inventaire_auteur </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_inventaire_auteur </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 43 </td>
<td> fk_cmlv_ccb_inventaire_forme </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_inventaire_forme </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 44 </td>
<td> fk_cmlv_ccb_inventaire_digital </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_truk_inventaire_digital </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 45 </td>
<td> fk_cmlv_ccb_inventaire_etat </td>
<td> cmlv_id_valeur </td>
<td> ccb_ce_inventaire_etat </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 46 </td>
<td> fk_cmlv_cc_type_depot </td>
<td> cmlv_id_valeur </td>
<td> cc_ce_type_depot </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 47 </td>
<td> fk_cmlv_cpr_langue </td>
<td> cmlv_id_valeur </td>
<td> cpr_ce_langue </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 48 </td>
<td> fk_cmlv_cpr_idx_duree </td>
<td> cmlv_id_valeur </td>
<td> cpr_ce_indexation_duree </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 49 </td>
<td> fk_cmlv_cpr_idx_freq </td>
<td> cmlv_id_valeur </td>
<td> cpr_ce_indexation_freq </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 50 </td>
<td> fk_cmlv_csap_role </td>
<td> cmlv_id_valeur </td>
<td> csap_id_role </td>
<td> <a href="coel_table_coel_structure_a_personne.html">coel_structure_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 51 </td>
<td> fk_cmlv_cp_deces </td>
<td> cmlv_id_valeur </td>
<td> cp_ce_deces </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 52 </td>
<td> fk_cmlv_cp_pays </td>
<td> cmlv_id_valeur </td>
<td> cp_ce_truk_pays </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 53 </td>
<td> fk_cmlv_cp_region </td>
<td> cmlv_id_valeur </td>
<td> cp_ce_truk_region </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 54 </td>
<td> fk_cmlv_cc_type_nbre_precision </td>
<td> cmlv_id_valeur </td>
<td> cc_ce_specimen_type_nbre_precision </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_meta_liste_valeur">
discussion sur la table coel_meta_liste_valeur
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_module_Publication.html
New file
0,0 → 1,91
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Publication</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > Publication</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<h1> Module Publication</h1>
<p id="miniature" >
<a href="images/modules/Publication.png" title="Voir cette image avec un zoom de 100%.">
<img src="images/miniatures/miniature_Publication.png" alt="Miniature du modèle du module Publication" />
</a>
</p>
<h2> Description générale </h2>
<p>
Module de gestion des Publications.<br />
<br />
<b>Révision : </b>903
</p>
<h2> Liste des tables </h2>
<ol class="type_01">
<li><a href="coel_table_coel_publication.html">coel_publication</a> : Publication de type articles scientifiques, ouvrages ou sites web.<br />INFO : cpu_fmt_nom_complet</li>
<li><a href="coel_table_coel_publication_a_personne.html">coel_publication_a_personne</a> : Permet de lister les publications d'une personne.</li>
</ol>
<h2> Dépot SVN </h2>
<p>
Voir la page concernant ce module sur le dépot SVN :
<a href="http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.coel&path=%2Ftrunk%2Fdoc%2Fbdd%2Fcoel.xml">
coel.xml
</a>
</p>
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant ce module :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_Publication">
discussion sur le module Publication
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
/tags/v1.0-syrah/doc/bdd/migration_bdd_herbiers_vers_coel.sql
New file
0,0 → 1,397
#------------------------------------------------------------------------------------------------------------------------
# SCRIPT de MIGRATION de HERBIERS vers COEL v1.0
#------------------------------------------------------------------------------------------------------------------------
# TODO : remplacer les valeurs vides par NULL -> utiliser le script remplacer_vide_par_null.php
 
#---------------------------------------------------------------------------------------------------------------------#
# Variables
SET @idm = 29170;# Identifiant pour les métadonnées
SET @idm_tmp = @idm;# Identifiant pour les métadonnées temporaire
SET @idm_max = 99999;# Identifiant pour les métadonnées maximum si déjà des données dans la base
#---------------------------------------------------------------------------------------------------------------------#
# Nettoyage des tables
# coel_projet
DELETE FROM tb_coel.coel_projet WHERE cpr_id_projet IN (2,3);
# coel_projet_version
DELETE FROM tb_coel.coel_projet_version WHERE cprv_id_version IN (1,2);
# coel_meta_historique_ligne
DELETE FROM tb_coel.coel_meta_historique_ligne WHERE cmhl_id_historique_ligne >= @idm AND cmhl_id_historique_ligne < @idm_max;
# coel_structure
DELETE FROM tb_coel.coel_structure WHERE cs_id_structure IN (SELECT ID_ORG FROM tb_herbiers.HERBIERS_ORGANISATION ORDER BY ID_ORG ASC);
# coel_structure_a_personne
DELETE FROM tb_coel.coel_structure_a_personne WHERE csap_id_role IN ('2026', '2027');
# coel_personne
DELETE FROM tb_coel.coel_personne WHERE cp_ce_projet IN ('2', '3');
# coel_personne_a_relation
DELETE FROM tb_coel.coel_personne_a_relation WHERE cpar_id_projet = '2';
# coel_collection_botanique
DELETE FROM tb_coel.coel_collection_botanique WHERE ccb_id_collection IN (SELECT cc_id_collection FROM tb_coel.coel_collection WHERE cc_ce_projet IN ('2'));
# coel_collection_a_commentaire
DELETE FROM tb_coel.coel_collection_a_commentaire ;
# coel_collection
DELETE FROM tb_coel.coel_collection WHERE cc_ce_projet IN ('2');
# coel_commentaire
DELETE FROM tb_coel.coel_commentaire WHERE ccm_ce_projet IN ('2');
 
#---------------------------------------------------------------------------------------------------------------------#
# EFLORE_PROJET vers coel_projet
# Insertion du projet Inventaire des Herbiers de France - Version 1
INSERT INTO tb_coel.coel_projet (cpr_id_projet, cpr_nom, cpr_abreviation, cpr_description, cpr_url, cpr_mark_public, cpr_ce_meta)
SELECT 2, CONVERT(EPR_INTITULE_PROJET USING utf8), CONVERT(EPR_ABREVIATION_PROJET USING utf8), CONVERT(EPR_DESCRIPTION_PROJET USING utf8), EPR_LIEN_WEB, 1, @idm := @idm+1
FROM tb_herbiers.EFLORE_PROJET;
INSERT INTO tb_coel.coel_meta_historique_ligne (cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
VALUES (@idm_tmp := @idm_tmp+1, '115', '2', NULL , NOW( ) , 'Ajout du projet IHF', '1', '1', '162.38.234.1');
# Insertion du projet Utilisateur de l''application COEL - Version 1
INSERT INTO tb_coel.coel_projet (cpr_id_projet, cpr_nom, cpr_abreviation, cpr_description, cpr_url, cpr_mark_public, cpr_ce_meta)
VALUES (3, 'Utilisateurs', 'COEL-U', 'Les utilisateurs de l''application COEL.', NULL, 0, @idm := @idm+1);
INSERT INTO tb_coel.coel_meta_historique_ligne (cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
VALUES (@idm_tmp := @idm_tmp+1, '115', '2', NULL , NOW( ) , 'Ajout du projet U', '1', '1', '162.38.234.1');
 
#---------------------------------------------------------------------------------------------------------------------#
# coel_projet_version
# Insertion de la version 1 en cours du projet Inventaire des Herbiers de France
INSERT INTO tb_coel.coel_projet_version (cprv_id_version, cprv_ce_projet, cprv_nom, cprv_code, cprv_date_debut, cprv_date_fin, cprv_ce_meta)
VALUES (1, 2, 'IHF - version 1.00', 'IHF-v1.00', '2002-03-07 00:00:00', NULL, @idm := @idm+1);
INSERT INTO tb_coel.coel_meta_historique_ligne (cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
VALUES (@idm_tmp := @idm_tmp+1, '117', '1', NULL , NOW( ) , 'Ajout de la version 1 du projet IHF', '1', '1', '162.38.234.1');
# Insertion de la version 1 du projet Utilisateur de l''application COEL
INSERT INTO tb_coel.coel_projet_version (cprv_id_version, cprv_ce_projet, cprv_nom, cprv_code, cprv_date_debut, cprv_date_fin, cprv_ce_meta)
VALUES (2, 3, 'COEL-U - version 1.00', 'COEL-U-v1.00', '2002-03-07 00:00:00', NULL, @idm := @idm+1);
INSERT INTO tb_coel.coel_meta_historique_ligne (cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
VALUES (@idm_tmp := @idm_tmp+1, '117', '2', NULL , NOW( ) , 'Ajout de la version 1 du projet COEL-U', '1', '1', '162.38.234.1');
 
#------------------------------------------------------------------------------------------------------------------------
# HERBIERS_ORGANISATION vers coel_structure
ALTER TABLE tb_herbiers.HERBIERS_ORGANISATION ORDER BY ID_ORG;# Classement des organisations par ID croissant
#ALTER TABLE tb_herbiers.HERBIERS_ORGANISATION DROP NUM_COLLECTION, DROP ADRESS_TEXT, DROP TIME_ZONE ;# Suppression des champs inutiles
 
INSERT INTO tb_coel.coel_structure
(cs_id_structure, cs_ce_projet, cs_ce_mere, cs_guid, cs_truk_identifiant_alternatif,
cs_nom, cs_adresse_01, cs_code_postal, cs_ville,
cs_ce_truk_region,
cs_ce_truk_pays,
cs_truk_telephone,
cs_courriel,
cs_description,
cs_truk_url,
cs_condition_acces,
cs_ce_meta)
SELECT ID_ORG, '2', '0', CONCAT("urn:lsid:tela-botanica.org:ihf:str",ID_ORG) AS GUID, IF(INDEX_HERB != '', CONCAT('IH##',INDEX_HERB), NULL) AS IDENTIFIANT_ALTERNATIF,
REPLACE(CONVERT(INSTITUTION_NAME USING utf8), '\r\n', ''), CONVERT(ADRESS_LINE USING utf8), ZIP, CONVERT(TOWN USING utf8),
IF(REGION != '', CONCAT('AUTRE##',CONVERT(REGION USING utf8)), NULL),
IF(COUNTRY_CODE = 'fr', '2654', CONCAT('AUTRE##', CONVERT(COUNTRY_CODE USING utf8))) AS PAYS,
CONCAT(IF(TEL != '', CONCAT('(+33)', REPLACE(TEL,'[33]','')), NULL), IF(FAX != '', CONCAT(IF(TEL != '', ';;', ''), 'FAX##(+33)', REPLACE(FAX,'[33]','')), NULL)),
EMAIL,
IF(SOURCE_DES_DONNEES != '', CONVERT(CONCAT("Source des données : ",SOURCE_DES_DONNEES) USING utf8), NULL) AS DESCRIPTION,
CONCAT(IF(HO_URL != 'http://' AND HO_URL != '', CONCAT('WEB##',HO_URL), ''), IF(HO_URL != 'http://' AND HO_URL != '' AND LOGO != '', ';;', ''), IF(LOGO != '', CONCAT('LOGO##',LOGO),'')) AS URLS,
CONVERT(ACCESS_RESTRICTION USING utf8),
@idm := @idm+1
FROM tb_herbiers.HERBIERS_ORGANISATION
ORDER BY ID_ORG ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification,
cmhl_notes,
cmhl_ce_modifier_par, cmhl_ce_etat, cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '120', ID_ORG, NULL, IF(DATE_DERNIERE_MODIF = '0000-00-00 00:00:00', NOW(), DATE_DERNIERE_MODIF),
CONCAT('Importation de l''enregistrement #',ID_ORG,' de la table HERBIERS_ORGANISATION.'),
IF(CE_MODIFIER_PAR = '0', '1', CE_MODIFIER_PAR), '1', '162.38.234.1'
FROM tb_herbiers.HERBIERS_ORGANISATION
ORDER BY ID_ORG ASC;
 
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, '-', '') WHERE cs_truk_telephone LIKE '%-%';
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, '.', '') WHERE cs_truk_telephone LIKE '%.%';
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, ' ', '') WHERE cs_truk_telephone LIKE '% %';
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, '2;04', '2;;FIX##(+33)04') WHERE cs_truk_telephone LIKE '%2;04%';
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, '1;04', '1;;FIX##(+33)04') WHERE cs_truk_telephone LIKE '%1;04%';
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, ',', ';; (+33)') WHERE cs_truk_telephone LIKE '%,%';
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, '(+33)689', '(+689)') WHERE cs_truk_telephone LIKE '%(+33)689%';# Polynésie
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, '(+33)(687)', '(+687)') WHERE cs_truk_telephone LIKE '%(+33)(687)%';# Nouvelle-Calédonie
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, '(+33)594', '(+594)0594') WHERE cs_truk_telephone LIKE '%(+33)594%';# Guyanne
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, '(+33)(590)(0)590', '(+590)0590') WHERE cs_truk_telephone LIKE '%(+33)(590)(0)590%';# Guadeloupe
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, '(+33)(0)', '(+33)0') WHERE cs_truk_telephone LIKE '%(+33)(0)%';
UPDATE tb_coel.coel_structure SET cs_truk_telephone = REPLACE(cs_truk_telephone, ';;0', ';; (+33)0') WHERE cs_truk_telephone LIKE '%;;0%';
UPDATE tb_coel.coel_structure SET cs_truk_telephone = IF( cs_truk_telephone LIKE '(+33)06%', CONCAT('GSM##', cs_truk_telephone), CONCAT('FIX##', cs_truk_telephone)) WHERE cs_truk_telephone LIKE '(+33)__%';
UPDATE tb_coel.coel_structure SET cs_truk_telephone = IF(cs_truk_telephone LIKE '%;; (+33)06%', REPLACE(cs_truk_telephone, ';; (+33)', ';;GSM##(+33)'), REPLACE(cs_truk_telephone, ';; (+33)', ';;FIX##(+33)')) WHERE cs_truk_telephone LIKE '%;;%';
 
#------------------------------------------------------------------------------------------------------------------------
#EFLORE_DROIT_POSSEDER vers coel_personne_a_relation
INSERT INTO tb_coel.coel_personne_a_relation
(cpar_id_personne_01, cpar_id_personne_02, cpar_id_projet, cpar_id_role, cpar_ce_meta)
SELECT EDP_ID_UTILISATEUR, EDP_ID_UTILISATEUR, '2', IF(EDP_ID_DROIT = '1', '2022', IF(EDP_ID_DROIT = '2', 2023, IF(EDP_ID_DROIT = '3', '2024', '0'))), @idm := @idm+1
FROM tb_herbiers.EFLORE_DROIT_POSSEDER
ORDER BY EDP_ID_UTILISATEUR ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '114', CONCAT(EDP_ID_UTILISATEUR, '-', EDP_ID_UTILISATEUR, '-2-', IF(EDP_ID_DROIT = '1', '2022', IF(EDP_ID_DROIT = '2', '2023', IF(EDP_ID_DROIT = '3', '2024', 0)))), NULL, NOW(),
CONCAT('Importation des droits l''utilisateur #',EDP_ID_UTILISATEUR,' de la table EFLORE_DROIT_POSSEDER.'), '1', '1', '162.38.234.1'
FROM tb_herbiers.EFLORE_DROIT_POSSEDER
ORDER BY EDP_ID_UTILISATEUR ASC;
 
#------------------------------------------------------------------------------------------------------------------------
# HERBIERS_COORDONNE vers coel_personne_a_relation
INSERT INTO tb_coel.coel_personne_a_relation
(cpar_id_personne_01, cpar_id_personne_02, cpar_id_projet, cpar_id_role, cpar_ce_meta)
SELECT HC_ID_COORDINATEUR, HC_ID_REDACTEUR, '2', '2025', @idm := @idm+1
FROM tb_herbiers.HERBIERS_COORDONNE
ORDER BY HC_ID_COORDINATEUR, HC_ID_REDACTEUR ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '114', CONCAT(HC_ID_COORDINATEUR, '-', HC_ID_REDACTEUR, '-2-2025'), NULL,
NOW(), CONCAT('Importation des relations de coordination de l''utilisateur #',HC_ID_COORDINATEUR,' de la table HERBIER_COORDONNE.'), '1', '1', '162.38.234.1'
FROM tb_herbiers.HERBIERS_COORDONNE
ORDER BY HC_ID_COORDINATEUR, HC_ID_REDACTEUR ASC;
 
#------------------------------------------------------------------------------------------------------------------------
# EFLORE_DROIT_POSSEDER et annuaire_tela vers coel_personne
# Pour l''identifiant on garde celui de l''annuaire Tela. Les autres projets commenceront à partir de 100 000
INSERT INTO tb_coel.coel_personne
(cp_id_personne, cp_ce_projet, cp_fmt_nom_complet, cp_prenom, cp_nom,
cp_adresse_01, cp_adresse_02, cp_ce_truk_region, cp_code_postal, cp_ville, cp_ce_truk_pays,
cp_truk_courriel, cp_truk_url,
cp_description,
cp_ce_truk_role,
cp_mot_de_passe, cp_login, cp_ce_annuaire_tela, cp_parametre,
cp_ce_meta)
SELECT U_ID, '3', CONCAT(CONVERT(U_SURNAME USING utf8),' ',UPPER(CONVERT(U_NAME USING utf8))) AS NOM_COMPLET, CONVERT(U_SURNAME USING utf8), UPPER(CONVERT(U_NAME USING utf8)),
CONVERT(U_ADDR1 USING utf8), CONVERT(U_ADDR2 USING utf8), CONCAT('AUTRE##', CONVERT(U_STATE USING utf8)), U_ZIP_CODE, CONVERT(U_CITY USING utf8), CONCAT('AUTRE##', CONVERT(CP.CP_Intitule_pays USING utf8)),
LOWER(U_MAIL), U_WEB,
CONCAT('Spécialités systématiques : ', CONVERT(U_SPE USING utf8), '\nSpécialités géographiques : ', CONVERT(U_GEO USING utf8), '\nFonction : ', CONVERT(U_FONCTION USING utf8), '\nStructure : ', CONVERT(U_TITLE USING utf8)),
IF(EDP_ID_DROIT = '1', '2022', IF(EDP_ID_DROIT = '2', '2023', IF(EDP_ID_DROIT = '3', '2024', 0))),
U_PASSWD, U_MAIL, U_ID, CONCAT('<?xml version="1.0" encoding="UTF-8"?><parametres><niveau_bota>', U_NIV,'</niveau_bota></parametres>'),
@idm := @idm+1
FROM tb_herbiers.EFLORE_DROIT_POSSEDER AS EDP
LEFT JOIN tb_v4.annuaire_tela AS AT ON (EDP.EDP_ID_UTILISATEUR = AT.U_ID)
LEFT JOIN tb_v4.carto_PAYS AS CP ON (AT.U_COUNTRY = CP.CP_ID_Pays)
ORDER BY U_ID ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification,
cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '113', U_ID, NULL, U_DATE,
CONCAT('Importation de l''utilisateur #', U_ID,' de la table annuaire_tela liée à EFLORE_DROIT_POSSEDER.'), '1', '1', '162.38.234.1'
FROM tb_herbiers.EFLORE_DROIT_POSSEDER AS EDP
LEFT JOIN tb_v4.annuaire_tela AS AT ON (EDP.EDP_ID_UTILISATEUR = AT.U_ID)
ORDER BY U_ID ASC;
 
#------------------------------------------------------------------------------------------------------------------------
# HERBIERS_ADMINISTRER et annuaire_tela vers coel_personne
# Pour l''identifiant on garde celui de l''annuaire Tela. Les autres projets commenceront à partir de 100 000
INSERT INTO tb_coel.coel_personne
(cp_id_personne, cp_ce_projet, cp_fmt_nom_complet, cp_prenom, cp_nom,
cp_adresse_01, cp_adresse_02, cp_ce_truk_region, cp_code_postal, cp_ville, cp_ce_truk_pays,
cp_truk_courriel, cp_truk_url,
cp_description,
cp_mot_de_passe, cp_login, cp_ce_annuaire_tela, cp_parametre,
cp_ce_meta)
SELECT DISTINCT U_ID, '3', CONCAT(CONVERT(U_SURNAME USING utf8),' ',UPPER(CONVERT(U_NAME USING utf8))) AS NOM_COMPLET, CONVERT(U_SURNAME USING utf8), UPPER(CONVERT(U_NAME USING utf8)),
CONVERT(U_ADDR1 USING utf8), CONVERT(U_ADDR2 USING utf8), CONCAT('AUTRE##', CONVERT(U_STATE USING utf8)), U_ZIP_CODE, CONVERT(U_CITY USING utf8), CONCAT('AUTRE##', CONVERT(CP.CP_Intitule_pays USING utf8)),
LOWER(U_MAIL), U_WEB,
CONCAT('Spécialités systématiques : ', CONVERT(U_SPE USING utf8), '\nSpécialités géographiques : ', CONVERT(U_GEO USING utf8), '\nFonction : ', CONVERT(U_FONCTION USING utf8), '\nStructure : ', CONVERT(U_TITLE USING utf8)),
U_PASSWD, U_MAIL, U_ID, CONCAT('<?xml version="1.0" encoding="UTF-8"><parametres><niveau_bota>', U_NIV,'</niveau_bota></parametres>'),
@idm := @idm+1
FROM tb_herbiers.HERBIERS_ADMINISTRER AS HA
LEFT JOIN tb_v4.annuaire_tela AS AT ON (HA.HA_ID_ANNUAIRE = AT.U_ID)
LEFT JOIN tb_v4.carto_PAYS AS CP ON (AT.U_COUNTRY = CP.CP_ID_Pays)
WHERE U_ID NOT IN (SELECT DISTINCT EDP_ID_UTILISATEUR FROM tb_herbiers.EFLORE_DROIT_POSSEDER)
ORDER BY U_ID ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification,
cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
SELECT DISTINCT @idm_tmp := @idm_tmp+1, '113', U_ID, NULL, U_DATE,
CONCAT('Importation de l''utilisateur #', U_ID,' de la table annuaire_tela liée à HERBIERS_ADMINISTRER.'), '1', '1', '162.38.234.1'
FROM tb_herbiers.HERBIERS_ADMINISTRER AS HA
LEFT JOIN tb_v4.annuaire_tela AS AT ON (HA.HA_ID_ANNUAIRE = AT.U_ID)
WHERE U_ID NOT IN (SELECT DISTINCT EDP_ID_UTILISATEUR FROM tb_herbiers.EFLORE_DROIT_POSSEDER)
ORDER BY U_ID ASC;
 
#------------------------------------------------------------------------------------------------------------------------
# HERBIERS_ADMINISTRER vers coel_structure_a_personne
INSERT INTO tb_coel.coel_structure_a_personne
(csap_id_structure, csap_id_personne, csap_id_role, csap_ce_meta)
SELECT HA_ID_ORG, HA_ID_ANNUAIRE, '2026', @idm := @idm+1
FROM tb_herbiers.HERBIERS_ADMINISTRER
ORDER BY HA_ID_ANNUAIRE, HA_ID_ORG ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '121', CONCAT(HA_ID_ORG, '-', HA_ID_ANNUAIRE, '-2026'), NULL,
NOW(), CONCAT('Importation de l''administrateur #',HA_ID_ANNUAIRE,' de la structure #', HA_ID_ORG,' de la table HERBIER_ADMINISTRER.'), '1', '1', '162.38.234.1'
FROM tb_herbiers.HERBIERS_ADMINISTRER
ORDER BY HA_ID_ANNUAIRE, HA_ID_ORG ASC;
#------------------------------------------------------------------------------------------------------------------------
#HERBIERS_STAFF vers coel_personne
INSERT INTO tb_coel.coel_personne
(cp_id_personne, cp_ce_projet, cp_fmt_nom_complet, cp_nom, cp_prenom, cp_adresse_01, cp_adresse_02, cp_code_postal, cp_ville, cp_truk_courriel,
cp_truk_telephone,
cp_ce_meta)
SELECT 100000+ID_STAFF, '2', CONCAT(CONVERT(PRENOM USING utf8),' ', UPPER(CONVERT(NOM USING utf8))) AS NOM_COMPLET, UPPER(CONVERT(NOM USING utf8)), CONVERT(PRENOM USING utf8), CONVERT(ADRESSE1 USING utf8), CONVERT(ADRESSE2 USING utf8), CP, CONVERT(VILLE USING utf8), LOWER(MAIL),
CONCAT(IF(TEL != '', CONCAT('(+33)', REPLACE(TEL,'[33]','')), NULL), IF(FAX != '', CONCAT(IF(TEL != '', ';;', ''), 'FAX##(+33)', REPLACE(FAX,'[33]','')), NULL)),
@idm := @idm+1
FROM tb_herbiers.HERBIERS_STAFF
ORDER BY ID_STAFF ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '113', 100000+ID_STAFF, NULL, IF(DATE_DERNIERE_MODIF != '0000-00-00 00:00:00', DATE_DERNIERE_MODIF, NOW()),
CONCAT('Importation de l''utilisateur #', 100000+ID_STAFF,' de la table HERBIERS_STAFF'), '1', '1', '162.38.234.1'
FROM tb_herbiers.HERBIERS_STAFF
ORDER BY ID_STAFF ASC;
 
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, ' ', '') WHERE cp_truk_telephone LIKE '% %';
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, '-', '') WHERE cp_truk_telephone LIKE '%-%';
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, '.', '') WHERE cp_truk_telephone LIKE '%.%';
# Gérer les séparateurs ; au cas par cas
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, '1;04', '1;;FIX##(+33)04') WHERE cp_truk_telephone LIKE '%1;04%';
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, ',', ';; (+33)') WHERE cp_truk_telephone LIKE '%,%';
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, '(+33)+33', '(+33)') WHERE cp_truk_telephone LIKE '%(+33)+33%';
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, '(+33)689', '(+689)') WHERE cp_truk_telephone LIKE '%(+33)689%';# Polynésie
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, '(+33)(687)', '(+687)') WHERE cp_truk_telephone LIKE '%(+33)(687)%';# Nouvelle-Calédonie
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, '(+33)594', '(+594)0594') WHERE cp_truk_telephone LIKE '%(+33)594%';# Guyanne
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, '(+33)(590)(0)590', '(+590)0590') WHERE cp_truk_telephone LIKE '%(+33)(590)(0)590%';# Guadeloupe
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, '(+33)(0)', '(+33)0') WHERE cp_truk_telephone LIKE '%(+33)(0)%';
UPDATE tb_coel.coel_personne SET cp_truk_telephone = REPLACE(cp_truk_telephone, ';;0', ';; (+33)0') WHERE cp_truk_telephone LIKE '%;;0%';
UPDATE tb_coel.coel_personne SET cp_truk_telephone = IF( cp_truk_telephone LIKE '(+33)06%', CONCAT('GSM##', cp_truk_telephone), CONCAT('FIX##', cp_truk_telephone)) WHERE cp_truk_telephone LIKE '(+33)__%';
UPDATE tb_coel.coel_personne SET cp_truk_telephone = IF(cp_truk_telephone LIKE '%;; (+33)06%', REPLACE(cp_truk_telephone, ';; (+33)', ';;GSM##(+33)'), REPLACE(cp_truk_telephone, ';; (+33)', ';;FIX##(+33)')) WHERE cp_truk_telephone LIKE '%;;%';
 
ALTER TABLE tb_coel.coel_personne ORDER BY cp_id_personne;
 
#------------------------------------------------------------------------------------------------------------------------
# HERBIERS_ont_un_staff vers coel_structure_a_personne
# ATTENTION : Nous ignorons les liaisons qui n ont pas de correspondance dans la table HERBIER_STAFF
INSERT INTO tb_coel.coel_structure_a_personne
(csap_id_structure, csap_id_personne, csap_id_role, csap_mark_contact, csap_ce_truk_fonction, csap_ce_meta)
SELECT ID_ORG, 100000+hous.ID_STAFF, '2027', IF(LOWER(CONTACT) = 'oui', 1, 0) AS CONTACT, IF(FONCTION != '', CONCAT('AUTRE##', CONVERT(FONCTION USING utf8)), NULL) AS FONCTION, @idm := @idm+1
FROM tb_herbiers.HERBIERS_STAFF AS hs LEFT JOIN tb_herbiers.HERBIERS_ont_un_staff AS hous ON (hous.ID_STAFF = hs.ID_STAFF)
WHERE hous.ID_ORG != 0
ORDER BY hous.ID_ORG, hous.ID_STAFF ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '121', CONCAT(ID_ORG, '-', 100000+hous.ID_STAFF, '-2027'), NULL,
NOW(), CONCAT('Importation de la personne #',100000+hous.ID_STAFF,' de la structure #', ID_ORG,' de la table HERBIERS_ont_un_staff.'), '1', '1', '162.38.234.1'
FROM tb_herbiers.HERBIERS_STAFF AS hs LEFT JOIN tb_herbiers.HERBIERS_ont_un_staff AS hous ON (hous.ID_STAFF = hs.ID_STAFF)
WHERE hous.ID_ORG != 0
ORDER BY hous.ID_ORG, hous.ID_STAFF ASC;
UPDATE tb_coel.coel_structure_a_personne
SET csap_ce_truk_fonction = IF(csap_ce_truk_fonction IS NOT NULL, IF(csap_ce_truk_fonction LIKE '%irecteur%', '2028',
IF(csap_ce_truk_fonction LIKE '%onservateur%', '2029', IF(csap_ce_truk_fonction LIKE '%echnicien%', '2030', csap_ce_truk_fonction))), NULL)
WHERE csap_id_role = '2027' ;
#------------------------------------------------------------------------------------------------------------------------
#HERBIER_COLLECTION vers coel_collection
INSERT INTO tb_coel.coel_collection
(cc_id_collection, cc_ce_projet, cc_ce_structure, cc_guid, cc_truk_code, cc_nom, cc_description,
cc_ce_type_depot,
cc_description_specialiste, cc_truk_url,
cc_ce_type,
cc_ce_specimen_type,
cc_truk_preservation,
cc_ce_meta)
SELECT hc.ID, '2', PARENT_ID, CONCAT("urn:lsid:tela-botanica.org:ihf:col",hc.ID) AS GUID, COLLECTION_CODE, CONVERT(NOM_COLLECTION USING utf8), CONVERT(DESCRIPTION USING utf8),
IF(STATUT = 1, '2159', IF(STATUT = 2, '2160', IF(STATUT = 3, '2161', IF(STATUT = 4, '2162', NULL)))),
CONCAT(IF(DOC_STATE = '', '', IF(DOC_STATE IS NULL, '', CONCAT('Etat documentation : \n', CONVERT(DOC_STATE USING utf8)))),IF(COLLECTEURS = '', '', IF(COLLECTEURS IS NULL, '', CONCAT('\nCollecteurs : \n', CONVERT(COLLECTEURS USING utf8))))) AS DESCRIPTION_SPECIALISTE, IF(URL = '', NULL, URL) AS URL,
'2157',
IF(INCLUDED_TYPE = '0', '2239', IF (INCLUDED_TYPE = '1', '2242', IF (INCLUDED_TYPE = '2', '2241', NULL))) AS INCLUDED_TYPE,
CAST(GROUP_CONCAT(DISTINCT CASE ID_PRES WHEN '1' THEN '2204' WHEN '2' THEN '2222' WHEN '3' THEN '2215' WHEN '4' THEN '2203' WHEN '5' THEN '2211' WHEN '6' THEN '2223' WHEN '7' THEN '2207' WHEN '8' THEN '2209' WHEN '9' THEN '2224' WHEN '10' THEN '2218' WHEN '12' THEN '2212' WHEN '13' THEN 'AUTRE##non précisé' ELSE ID_PRES END SEPARATOR ";;") AS CHAR) AS PRESENTATION,
@idm := @idm+1
FROM tb_herbiers.HERBIERS_COLLECTION AS hc LEFT JOIN tb_herbiers.HERBIERS_ont_pres AS hop ON (hc.ID = hop.ID)
WHERE hc.ID != 4
GROUP BY hc.ID
ORDER BY hc.ID ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat, cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '101', ID, NULL,
IF(DATE_DERNIERE_MODIF != '0000-00-00 00:00:00', DATE_DERNIERE_MODIF, NOW()) , CONCAT('Ajout de la collection #',ID,' de la table HERBIER_COLLECTION.'), IF(CE_MODIFIER_PAR != '0', CE_MODIFIER_PAR, '1'), '1', IF(CE_MODIFIER_PAR != '0', NULL, '162.38.234.1')
FROM tb_herbiers.HERBIERS_COLLECTION
WHERE ID != 4
ORDER BY ID ASC;
#------------------------------------------------------------------------------------------------------------------------
#HERBIER_COLLECTION vers coel_collection_botanique
INSERT INTO tb_coel.coel_collection_botanique
(ccb_id_collection, ccb_truk_unite_base,
ccb_recolte_date_debut, ccb_ce_recolte_date_debut_type, ccb_recolte_date_fin, ccb_ce_recolte_date_fin_type,
ccb_inventaire_info,
ccb_ce_classement_etat,
ccb_truk_degradation_specimen,
ccb_truk_degradation_presentation,
ccb_annotation_classement,
ccb_ce_meta)
SELECT ID, CONCAT('2270##0||||||',NUM_SPECIMENS,'||', IF(PREC_SPECIMENS = '1', 'E', IF(PREC_SPECIMENS = '2', 'A', IF(PREC_SPECIMENS = '3', 'A', 'NULL'))), '||', NUM_SPECIES, '||', IF(PREC_SPECIES = '1', 'E', IF(PREC_SPECIES = '2', 'A', IF(PREC_SPECIES = '3', 'A', 'NULL')))),
DATE_DEBUT, IF(DATE_DEBUT_CARAC = '1', '2316', IF (DATE_DEBUT_CARAC = '2', '2317', IF (DATE_DEBUT_CARAC = '3', '2318', IF(DATE_DEBUT_CARAC = '4', '2319', IF (DATE_DEBUT_CARAC = '5', '2320', NULL))))),
DATE_FIN, IF( DATE_FIN_CARAC = '1', '2321', IF (DATE_FIN_CARAC = '2', '2322', IF(DATE_FIN_CARAC = '3', '2323', IF (DATE_FIN_CARAC = '4', '2325', IF(DATE_FIN_CARAC = '5', '2324', IF (DATE_FIN_CARAC = '6', '2326', NULL)))))),
CONCAT('Pourcentage de la documentation en base de données : ',PERCENT_DATABASED,'%'),
IF(ETAT_CLASSEMENT = 1, '2328', IF(ETAT_CLASSEMENT = 2, '2329', IF(ETAT_CLASSEMENT = 3, '2330', IF(ETAT_CLASSEMENT = 4, '2331', NULL)))),
CONCAT('Diverses##',IF(ETAT_SPECIMENS = 1, '30748', IF(ETAT_SPECIMENS = 2, '30749', IF(ETAT_SPECIMENS = 3, '30751', IF(ETAT_SPECIMENS = 4, '30752', NULL))))),
CONCAT('Diverses##',IF(ETAT_PRESENTATION = 1, '30748', IF(ETAT_PRESENTATION = 2, '30749', IF(ETAT_PRESENTATION = 3, '30751', IF(ETAT_PRESENTATION = 4, '30752', NULL))))),
IF(MODE_CLASSEMENT IS NOT NULL, IF(MODE_CLASSEMENT != '', CONVERT(MODE_CLASSEMENT USING utf8), NULL), NULL),
@idm := @idm+1
FROM tb_herbiers.HERBIERS_COLLECTION
WHERE ID != 4
ORDER BY ID ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat, cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '106', ID, NULL,
IF(DATE_DERNIERE_MODIF != '0000-00-00 00:00:00', DATE_DERNIERE_MODIF, NOW()) , CONCAT('Ajout de la collection #',ID,' de la table HERBIER_COLLECTION.'), IF(CE_MODIFIER_PAR != '0', CE_MODIFIER_PAR, '1'), '1', IF(CE_MODIFIER_PAR != '0', NULL, '162.38.234.1')
FROM tb_herbiers.HERBIERS_COLLECTION
WHERE ID != 4
ORDER BY ID ASC;
#------------------------------------------------------------------------------------------------------------------------
#HERBIERS_INDIC vers coel_commentaires
INSERT INTO tb_coel.coel_commentaire
(ccm_id_commentaire, ccm_ce_projet, ccm_titre,
ccm_texte, ccm_ponderation, ccm_ce_meta)
SELECT ID_INDIC, '2', IF(REM_INDIC IS NOT NULL, IF(REM_INDIC != '', CONVERT(REM_INDIC USING utf8), CONCAT(SUBSTRING(REPLACE(REPLACE(CONVERT(TXT_INDIC USING utf8),'<i>',''),'</i>',''), 1, 50),'...')), CONCAT(SUBSTRING(REPLACE(REPLACE(CONVERT(TXT_INDIC USING utf8),'<i>',''),'</i>',''), 1, 50),'...')) AS TITRE,
CONVERT(TXT_INDIC USING utf8), 0, @idm := @idm+1
FROM tb_herbiers.HERBIERS_INDIC
ORDER BY ID_INDIC ASC;
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat, cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '107', hi.ID_INDIC, NULL,
FROM_UNIXTIME(MAX(MAJ_INDIC)) , CONCAT('Ajout du commentaire #',hi.ID_INDIC,' de la table HERBIER_INDIC.'), IF(ID_INDICATEUR != '0', ID_INDICATEUR, '1'), '1', IF(ID_INDICATEUR != '0', NULL, '162.38.234.1')
FROM tb_herbiers.HERBIERS_INDIC AS hi LEFT JOIN tb_herbiers.HERBIERS_INDIC_HISTORIQUE AS hih ON (hi.ID_INDIC = hih.ID_INDIC)
GROUP BY hi.ID_INDIC
ORDER BY hi.ID_INDIC ASC;
#------------------------------------------------------------------------------------------------------------------------
# HERBIERS_A_UN_TYPE vers coel_collection_a_commentaire
INSERT INTO tb_coel.coel_collection_a_commentaire
(ccac_id_collection, ccac_id_commentaire,
ccac_truk_type,
ccac_ce_meta)
SELECT hi.ID_INDIC, ID,
CAST(GROUP_CONCAT(DISTINCT CASE ID_TYPE WHEN '1' THEN '2368' WHEN '2' THEN '2369' WHEN '3' THEN '2370' WHEN '4' THEN '2371' WHEN '5' THEN '2372' WHEN '6' THEN '2373' ELSE NULL END SEPARATOR ";;") AS CHAR) AS TYPE,
@idm := @idm+1
FROM tb_herbiers.HERBIERS_INDIC AS hi LEFT JOIN tb_herbiers.HERBIERS_A_UN_TYPE AS haut ON (hi.ID_INDIC = haut.ID_INDIC)
WHERE ID IN (SELECT ccm_id_commentaire FROM tb_coel.coel_commentaire)
GROUP BY hi.ID_INDIC
ORDER BY hi.ID_INDIC ASC;
# ATTENTION : ajoute moins de valeurs à @
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat, cmhl_ip)
SELECT @idm_tmp := @idm_tmp+1, '102', CONCAT(hi.ID_INDIC,'-',ID), NULL,
FROM_UNIXTIME(MAX(MAJ_INDIC)) , CONCAT('Ajout des types du commentaire #',hi.ID_INDIC,' de la table HERBIERS_A_UN_TYPE.'), IF(ID_INDICATEUR != '0', ID_INDICATEUR, '1'), '1', IF(ID_INDICATEUR != '0', NULL, '162.38.234.1')
FROM tb_herbiers.HERBIERS_INDIC AS hi LEFT JOIN tb_herbiers.HERBIERS_A_UN_TYPE AS haut ON (hi.ID_INDIC = haut.ID_INDIC) LEFT JOIN tb_herbiers.HERBIERS_INDIC_HISTORIQUE AS hih ON (hi.ID_INDIC = hih.ID_INDIC)
WHERE ID IN (SELECT ccm_id_commentaire FROM tb_coel.coel_commentaire)
GROUP BY hi.ID_INDIC
ORDER BY hi.ID_INDIC ASC;
 
# Mise à jour des id de personne inexistant dans l''annuaire Tela dans la table : coel_meta_historique_ligne
# Récupération manuelle...
INSERT INTO tb_coel.coel_personne
(cp_id_personne, cp_ce_projet, cp_fmt_nom_complet, cp_prenom, cp_nom, cp_description, cp_ce_annuaire_tela, cp_ce_meta)
VALUES (19, 3, 'Inconnu #19', 'Inconnu', 'INCONNU', 'Individu non présent dans l''annuaire Tela Botanica.', 19, @idm := @idm+1),
(920, 3, 'Inconnu #920', 'Inconnu', 'INCONNU', 'Individu non présent dans l''annuaire Tela Botanica.', 920, @idm := @idm+1);
INSERT INTO tb_coel.coel_meta_historique_ligne
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification,
cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
VALUES (@idm_tmp := @idm_tmp+1, '113', 19, NULL, NOW(), 'Création de l''utilisateur inconnu #19 non présent la table annuaire_tela.', '1', '1', '162.38.234.1'),
(@idm_tmp := @idm_tmp+1, '113', 920, NULL, NOW(), 'Création de l''utilisateur inconnu #920 non présent la table annuaire_tela.', '1', '1', '162.38.234.1');
/tags/v1.0-syrah/doc/bdd/coel_table_coel_structure_a_personne.html
New file
0,0 → 1,261
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Structure - coel_structure_a_personne</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Structure.html">Structure</a> > coel_structure_a_personne</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_structure_a_personne</h1>
<h2> Description générale </h2>
<p>
Table de liaison permettant d'indiquer la composition de la structure en personnel.<br />Elle permet d'indiquer pour une personne vis à vis d'une structure :<br /> - si elle est contact<br /> - les informations de la personne spécifique à cette structure (ex. : téléphone du travail, fonction, service, statut...).
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="csap_id_structure" class="pair" >
<td> 1 </td>
<td> csap_id_structure </td>
<td> csap_id_s </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la structure. </td>
</tr>
<tr id="csap_id_personne" class="pair" >
<td> 2 </td>
<td> csap_id_personne </td>
<td> csap_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant d'une personne. </td>
</tr>
<tr id="csap_id_role" class="pair" >
<td> 3 </td>
<td> csap_id_role </td>
<td> csap_id_r </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Rôle de la personne vis à vis de la structure. </td>
</tr>
<tr id="csap_ce_truk_fonction" class="pair" >
<td> 4 </td>
<td> csap_ce_truk_fonction </td>
<td> csap_ce_tf </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Intitulé de la fonction de la personne dans son travail. </td>
</tr>
<tr id="csap_service" class="pair" >
<td> 5 </td>
<td> csap_service </td>
<td> csap_s </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom du service ou département dans lequel la personne travaille. </td>
</tr>
<tr id="csap_ce_truk_statut" class="pair" >
<td> 6 </td>
<td> csap_ce_truk_statut </td>
<td> csap_ce_ts </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Statut(s) de la personne : salarié, bénévole... </td>
</tr>
<tr id="csap_mark_contact" class="pair" >
<td> 7 </td>
<td> csap_mark_contact </td>
<td> csap_mc </td>
<td> BOOL </td>
<td> non </td>
<td> 0 </td>
<td> standard </td>
<td> non </td>
<td> Si la personne est un contact la valeur vaut 1 sinon c'est 0. </td>
</tr>
<tr id="csap_bota_travail_hebdo_tps" class="pair" >
<td> 8 </td>
<td> csap_bota_travail_hebdo_tps </td>
<td> csap_btht </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Date de la dernière modification sur cet enregistrement. </td>
</tr>
<tr id="csap_ce_meta" class="pair" >
<td> 9 </td>
<td> csap_ce_meta </td>
<td> csap_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cs_csap </td>
<td> csap_id_structure </td>
<td> cs_id_structure </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cp_csap </td>
<td> csap_id_personne </td>
<td> cp_id_personne </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmhl_csap_meta </td>
<td> csap_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cmlv_csap_fonction </td>
<td> csap_ce_truk_fonction </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cmlv_csap_statut </td>
<td> csap_ce_truk_statut </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 6 </td>
<td> fk_cmlv_csap_role </td>
<td> csap_id_role </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_structure_a_personne">
discussion sur la table coel_structure_a_personne
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_module_Metadonnee.html
New file
0,0 → 1,95
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Métadonnée</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > Métadonnée</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<h1> Module Métadonnée</h1>
<p id="miniature" >
<a href="images/modules/Metadonnee.png" title="Voir cette image avec un zoom de 100%.">
<img src="images/miniatures/miniature_Metadonnee.png" alt="Miniature du modèle du module Métadonnée" />
</a>
</p>
<h2> Description générale </h2>
<p>
Module de gestion des Métadonnées.<br />
<br />
<b>Révision : </b>903
</p>
<h2> Liste des tables </h2>
<ol class="type_01">
<li><a href="coel_table_coel_meta_colonne.html">coel_meta_colonne</a> : Contient l'ensemble des champs des tables de la base de données.<br />INFO : cmc_nom</li>
<li><a href="coel_table_coel_meta_donnee.html">coel_meta_donnee</a> : Contient les champs supplémentaires (non standard ou de spécialisation) de la base de données.</li>
<li><a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> : Contient les métadonnées sur l'historique des enregistrements des tables de la base de données.<br />INFO : cmhl_date_modification</li>
<li><a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> : Liste l'ensemble des valeurs des tables de type liste.<br />Un champ contient des valeurs dans cette table quand il est de type "LISTE".<br />INFO : cmlv_nom</li>
</ol>
<h2> Dépot SVN </h2>
<p>
Voir la page concernant ce module sur le dépot SVN :
<a href="http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.coel&path=%2Ftrunk%2Fdoc%2Fbdd%2Fcoel.xml">
coel.xml
</a>
</p>
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant ce module :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_Métadonnée">
discussion sur le module Métadonnée
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
/tags/v1.0-syrah/doc/bdd/coel_table_coel_collection_a_commentaire.html
New file
0,0 → 1,177
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Collection - coel_collection_a_commentaire</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Collection.html">Collection</a> > coel_collection_a_commentaire</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_collection_a_commentaire</h1>
<h2> Description générale </h2>
<p>
Permet de lister les commentaires / notes faits sur une collection.
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="ccac_id_collection" class="pair" >
<td> 1 </td>
<td> ccac_id_collection </td>
<td> ccac_id_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la collection. </td>
</tr>
<tr id="ccac_id_commentaire" class="pair" >
<td> 2 </td>
<td> ccac_id_commentaire </td>
<td> ccac_id_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant du commentaire. </td>
</tr>
<tr id="ccac_truk_type" class="pair" >
<td> 3 </td>
<td> ccac_truk_type </td>
<td> ccac_tt </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Liste des types du commentaire séparés par des points virgules. </td>
</tr>
<tr id="ccac_ce_meta" class="pair" >
<td> 4 </td>
<td> ccac_ce_meta </td>
<td> ccac_ce_m </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cc_ccac </td>
<td> ccac_id_collection </td>
<td> cc_id_collection </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_ccm_ccac </td>
<td> ccac_id_commentaire </td>
<td> ccm_id_commentaire </td>
<td> <a href="coel_table_coel_commentaire.html">coel_commentaire</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmhl_ccac_meta </td>
<td> ccac_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_collection_a_commentaire">
discussion sur la table coel_collection_a_commentaire
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_meta_historique_ligne.html
New file
0,0 → 1,421
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Métadonnée - coel_meta_historique_ligne</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Metadonnee.html">Métadonnée</a> > coel_meta_historique_ligne</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_meta_historique_ligne</h1>
<h2> Description générale </h2>
<p>
Contient les métadonnées sur l'historique des enregistrements des tables de la base de données.<br />INFO : cmhl_date_modification
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cmhl_id_historique_ligne" class="pair" >
<td> 1 </td>
<td> cmhl_id_historique_ligne </td>
<td> cmhl_id_hl </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant de l'historique des lignes. </td>
</tr>
<tr id="cmhl_ce_table" class="pair" >
<td> 2 </td>
<td> cmhl_ce_table </td>
<td> cmhl_ce_t </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la table. </td>
</tr>
<tr id="cmhl_cle_ligne" class="pair" >
<td> 3 </td>
<td> cmhl_cle_ligne </td>
<td> cmhl_cl </td>
<td> VARCHAR(64) </td>
<td> oui </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Identifiant de la ligne. Pour les tables à clé primaire multi colonnes, bien respecter l'ordre des champs de la clé et inscrire chaque valeur de clé séparée par un tiret "-". </td>
</tr>
<tr id="cmhl_enregistrement" class="pair" >
<td> 4 </td>
<td> cmhl_enregistrement </td>
<td> cmhl_e </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Contient les données au format XML pour les enregistrements supprimés uniquement, sinon possède la valeur NULL. Format XML : \kxml encoding="UTF-8\g\kligne\g\knom_du_champ_01\gvaleur_du_champ_01\k/nom_du_champ_01\g\knom_du_champ_02\gvaleur_du_champ_02\k/nom_du_champ_02\g...\k/ligne\g\k/xml\g. </td>
</tr>
<tr id="cmhl_date_modification" class="pair" >
<td> 5 </td>
<td> cmhl_date_modification </td>
<td> cmhl_dm </td>
<td> DATETIME </td>
<td> oui </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Date de modification de la ligne. </td>
</tr>
<tr id="cmhl_notes" class="pair" >
<td> 6 </td>
<td> cmhl_notes </td>
<td> cmhl_n </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Notes sur la modification effectuée sur la ligne. </td>
</tr>
<tr id="cmhl_source" class="pair" >
<td> 7 </td>
<td> cmhl_source </td>
<td> cmhl_s </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Source des données de l'enregistrement, si le créateur/modificateur de l'enregistrement n'en est pas l'auteur. </td>
</tr>
<tr id="cmhl_ce_modifier_par" class="pair" >
<td> 8 </td>
<td> cmhl_ce_modifier_par </td>
<td> cmhl_ce_mp </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la personne ayant effectué cette modification sur la ligne. </td>
</tr>
<tr id="cmhl_ce_etat" class="pair" >
<td> 9 </td>
<td> cmhl_ce_etat </td>
<td> cmhl_ce_e </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de l'état de la ligne. </td>
</tr>
<tr id="cmhl_ip" class="pair" >
<td> 10 </td>
<td> cmhl_ip </td>
<td> cmhl_i </td>
<td> VARCHAR(50) </td>
<td> oui </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Adresse IP depuis laquelle la modification a eu lieu. </td>
</tr>
<tr id="cmhl_session_id" class="pair" >
<td> 11 </td>
<td> cmhl_session_id </td>
<td> cmhl_si </td>
<td> VARCHAR(40) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Identifiant de session del 'utilisateur. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cp_cmhl_modifier_par </td>
<td> cmhl_ce_modifier_par </td>
<td> cp_id_personne </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cmhl_cmlv_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cmlv_ce_meta </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmhl_cmc_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cmc_ce_meta </td>
<td> <a href="coel_table_coel_meta_colonne.html">coel_meta_colonne</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cmhl_cs </td>
<td> cmhl_id_historique_ligne </td>
<td> cs_ce_meta </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cmhl_ccm_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> ccm_ce_meta </td>
<td> <a href="coel_table_coel_commentaire.html">coel_commentaire</a> </td>
</tr>
<tr class="pair" >
<td> 6 </td>
<td> fk_cmhl_ccac_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> ccac_ce_meta </td>
<td> <a href="coel_table_coel_collection_a_commentaire.html">coel_collection_a_commentaire</a> </td>
</tr>
<tr class="pair" >
<td> 7 </td>
<td> fk_cmhl_cp_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cp_ce_meta </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 8 </td>
<td> fk_cmhl_cpar_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cpar_ce_meta </td>
<td> <a href="coel_table_coel_personne_a_relation.html">coel_personne_a_relation</a> </td>
</tr>
<tr class="pair" >
<td> 9 </td>
<td> fk_cmhl_cpr_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cpr_ce_meta </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 10 </td>
<td> fk_cmhl_cprv_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cprv_ce_meta </td>
<td> <a href="coel_table_coel_projet_version.html">coel_projet_version</a> </td>
</tr>
<tr class="pair" >
<td> 11 </td>
<td> fk_cmlv_cmhl_val </td>
<td> cmhl_ce_etat </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 12 </td>
<td> fk_cmhl_csap_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> csap_ce_meta </td>
<td> <a href="coel_table_coel_structure_a_personne.html">coel_structure_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 13 </td>
<td> fk_cmhl_ccar_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> ccar_ce_meta </td>
<td> <a href="coel_table_coel_collection_a_relation.html">coel_collection_a_relation</a> </td>
</tr>
<tr class="pair" >
<td> 14 </td>
<td> fk_cmhl_ccap_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> ccap_ce_meta </td>
<td> <a href="coel_table_coel_collection_a_personne.html">coel_collection_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 15 </td>
<td> fk_cmhl_cc_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cc_ce_meta </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 16 </td>
<td> fk_cmhl_ccapu_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> ccapu_ce_meta </td>
<td> <a href="coel_table_coel_collection_a_publication.html">coel_collection_a_publication</a> </td>
</tr>
<tr class="pair" >
<td> 17 </td>
<td> fk_cmhl_cpu_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cpu_ce_meta </td>
<td> <a href="coel_table_coel_publication.html">coel_publication</a> </td>
</tr>
<tr class="pair" >
<td> 18 </td>
<td> fk_cmhl_cpuap_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cpuap_ce_meta </td>
<td> <a href="coel_table_coel_publication_a_personne.html">coel_publication_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 19 </td>
<td> fk_cmlv_cmhl_table </td>
<td> cmhl_ce_table </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 20 </td>
<td> fk_cmhl_cpras_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> cpras_ce_meta </td>
<td> <a href="coel_table_coel_projet_a_structure.html">coel_projet_a_structure</a> </td>
</tr>
<tr class="pair" >
<td> 21 </td>
<td> fk_cmhl_csc_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> csc_ce_meta </td>
<td> <a href="coel_table_coel_structure_conservation.html">coel_structure_conservation</a> </td>
</tr>
<tr class="pair" >
<td> 22 </td>
<td> fk_cmhl_csv_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> csv_ce_meta </td>
<td> <a href="coel_table_coel_structure_valorisation.html">coel_structure_valorisation</a> </td>
</tr>
<tr class="pair" >
<td> 23 </td>
<td> fk_cmhl_ccb_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> ccb_ce_meta </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_meta_historique_ligne">
discussion sur la table coel_meta_historique_ligne
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_projet_a_structure.html
New file
0,0 → 1,177
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Projet - coel_projet_a_structure</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Projet.html">Projet</a> > coel_projet_a_structure</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_projet_a_structure</h1>
<h2> Description générale </h2>
<p>
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cpras_id_projet" class="pair" >
<td> 1 </td>
<td> cpras_id_projet </td>
<td> cpras_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> </td>
</tr>
<tr id="cpras_id_structure" class="pair" >
<td> 2 </td>
<td> cpras_id_structure </td>
<td> cpras_id_s </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> </td>
</tr>
<tr id="cpras_truk_role" class="pair" >
<td> 3 </td>
<td> cpras_truk_role </td>
<td> cpras_tr </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> </td>
</tr>
<tr id="cpras_ce_meta" class="pair" >
<td> 4 </td>
<td> cpras_ce_meta </td>
<td> cpras_ce_m </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cpr_cpras </td>
<td> cpras_id_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cs_cpras </td>
<td> cpras_id_structure </td>
<td> cs_id_structure </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmhl_cpras_meta </td>
<td> cpras_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_projet_a_structure">
discussion sur la table coel_projet_a_structure
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_collection_a_publication.html
New file
0,0 → 1,177
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Collection - coel_collection_a_publication</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Collection.html">Collection</a> > coel_collection_a_publication</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_collection_a_publication</h1>
<h2> Description générale </h2>
<p>
Permet de lister les publication liées à une collection.
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="ccapu_id_collection" class="pair" >
<td> 1 </td>
<td> ccapu_id_collection </td>
<td> ccapu_id_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de collection. </td>
</tr>
<tr id="ccapu_id_publication" class="pair" >
<td> 2 </td>
<td> ccapu_id_publication </td>
<td> ccapu_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la publication. </td>
</tr>
<tr id="ccapu_mark_licence" class="pair" >
<td> 3 </td>
<td> ccapu_mark_licence </td>
<td> ccapu_ml </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Booléen indiquant si la publication indiqué correspond aux droits de propriétés intellectuelles de la collection. </td>
</tr>
<tr id="ccapu_ce_meta" class="pair" >
<td> 4 </td>
<td> ccapu_ce_meta </td>
<td> ccapu_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cc_ccapu </td>
<td> ccapu_id_collection </td>
<td> cc_id_collection </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cpu_ccapu </td>
<td> ccapu_id_publication </td>
<td> cpu_id_publication </td>
<td> <a href="coel_table_coel_publication.html">coel_publication</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmhl_ccapu_meta </td>
<td> ccapu_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_collection_a_publication">
discussion sur la table coel_collection_a_publication
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_personne_a_relation.html
New file
0,0 → 1,205
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Personne - coel_personne_a_relation</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Personne.html">Personne</a> > coel_personne_a_relation</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_personne_a_relation</h1>
<h2> Description générale </h2>
<p>
Relation entre deux personnes vis à vis d'un projet.
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cpar_id_personne_01" class="pair" >
<td> 1 </td>
<td> cpar_id_personne_01 </td>
<td> cpar_id_p0 </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la personne n\194\1761. </td>
</tr>
<tr id="cpar_id_personne_02" class="pair" >
<td> 2 </td>
<td> cpar_id_personne_02 </td>
<td> cpar_id_p0 </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la personne n\194\1762. </td>
</tr>
<tr id="cpar_id_projet" class="pair" >
<td> 3 </td>
<td> cpar_id_projet </td>
<td> cpar_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant du projet dans lequel la relation entre les deux personnes s'établie. </td>
</tr>
<tr id="cpar_id_role" class="pair" >
<td> 4 </td>
<td> cpar_id_role </td>
<td> cpar_id_r </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant du rôle ou de la valeur établie entre les deux personnes. </td>
</tr>
<tr id="cpar_ce_meta" class="pair" >
<td> 5 </td>
<td> cpar_ce_meta </td>
<td> cpar_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cpr_cpar </td>
<td> cpar_id_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cp_cpar_01 </td>
<td> cpar_id_personne_01 </td>
<td> cp_id_personne </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cp_cpar_02 </td>
<td> cpar_id_personne_02 </td>
<td> cp_id_personne </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cmhl_cpar_meta </td>
<td> cpar_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cmlv_cpar_role </td>
<td> cpar_id_role </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_personne_a_relation">
discussion sur la table coel_personne_a_relation
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_collection_a_relation.html
New file
0,0 → 1,185
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Collection - coel_collection_a_relation</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Collection.html">Collection</a> > coel_collection_a_relation</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_collection_a_relation</h1>
<h2> Description générale </h2>
<p>
Permet de lister les relations entre collection autre que hiérarchique.
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="ccar_id_collection_01" class="pair" >
<td> 1 </td>
<td> ccar_id_collection_01 </td>
<td> ccar_id_c0 </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la collection n\194\1761. </td>
</tr>
<tr id="ccar_id_collection_02" class="pair" >
<td> 2 </td>
<td> ccar_id_collection_02 </td>
<td> ccar_id_c0 </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la collection n\194\1762. </td>
</tr>
<tr id="ccar_id_relation" class="pair" >
<td> 3 </td>
<td> ccar_id_relation </td>
<td> ccar_id_r </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Indentifiant du type de la relation. </td>
</tr>
<tr id="ccar_ce_meta" class="pair" >
<td> 4 </td>
<td> ccar_ce_meta </td>
<td> ccar_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cc_ccar_01 </td>
<td> ccar_id_collection_01 </td>
<td> cc_id_collection </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cc_ccar_02 </td>
<td> ccar_id_collection_02 </td>
<td> cc_id_collection </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmhl_ccar_meta </td>
<td> ccar_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cmlv_ccar_relation </td>
<td> ccar_id_relation </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_collection_a_relation">
discussion sur la table coel_collection_a_relation
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_personne.html
New file
0,0 → 1,713
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Personne - coel_personne</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Personne.html">Personne</a> > coel_personne</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_personne</h1>
<h2> Description générale </h2>
<p>
Contient les informations sur les personnes.<br />Par personne nous entendons à la fois les utilisateurs de l'application mais aussi les personnes contacts, les botanistes collecteurs, auteurs...<br />INFO : cp_fmt_nom_complet
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cp_id_personne" class="pair" >
<td> 1 </td>
<td> cp_id_personne </td>
<td> cp_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant d'un contact. </td>
</tr>
<tr id="cp_ce_projet" class="pair" >
<td> 2 </td>
<td> cp_ce_projet </td>
<td> cp_ce_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du projet auquel la personne appartient. Exemple : utilisateur appli coel, HUH, IPNI... </td>
</tr>
<tr id="cp_fmt_nom_complet" class="pair" >
<td> 3 </td>
<td> cp_fmt_nom_complet </td>
<td> cp_fnc </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom complet du contact formaté pour l'affichage (le format peut être différent en fonction du projet). </td>
</tr>
<tr id="cp_ce_truk_prefix" class="pair" >
<td> 4 </td>
<td> cp_ce_truk_prefix </td>
<td> cp_ce_tp </td>
<td> VARCHAR(20) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Préfixe du nom principal. Exemple : Dr., Prof., Mr., Lord, von... </td>
</tr>
<tr id="cp_prenom" class="pair" >
<td> 5 </td>
<td> cp_prenom </td>
<td> cp_p </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Prénom principal (le plus connu, répandu) de la personne. Un point virgule peut séparer le prénom principal de prénoms secondaires à ne pas afficher dans le nom complet. </td>
</tr>
<tr id="cp_nom" class="pair" >
<td> 6 </td>
<td> cp_nom </td>
<td> cp_n </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Indiquer les lieux de récolte (code ISO des pays) séparés par des points virgules. Après chaque code ISO indiqué les années de récolte séparées par des vigules ou des tirets pour les périodes continues). Si le pays de récolte est inconnu utilisé un point d'interogration. Exemple : FR#1905-1908,1910;PS#1912. </td>
</tr>
<tr id="cp_ce_truk_suffix" class="pair" >
<td> 7 </td>
<td> cp_ce_truk_suffix </td>
<td> cp_ce_ts </td>
<td> VARCHAR(20) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Suffixe du nom principal. Exemple : Jr, III. </td>
</tr>
<tr id="cp_truk_nom_autre" class="pair" >
<td> 8 </td>
<td> cp_truk_nom_autre </td>
<td> cp_tna </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom(s) complet alternatif et surnoms. Pour les valeurs, séparez l'identifiant de l'abreviation par un symbole pipe "|". Exemple: HUH#105714|Sharp, Aaron John;APN#9544-1|Sharp, Aaron John ('Jack') </td>
</tr>
<tr id="cp_abreviation" class="pair" >
<td> 9 </td>
<td> cp_abreviation </td>
<td> cp_a </td>
<td> VARCHAR(50) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Abreviation retenu du nom. </td>
</tr>
<tr id="cp_truk_abreviation_autre" class="pair" >
<td> 10 </td>
<td> cp_truk_abreviation_autre </td>
<td> cp_taa </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Autres abréviations du nom. </td>
</tr>
<tr id="cp_naissance_date" class="pair" >
<td> 11 </td>
<td> cp_naissance_date </td>
<td> cp_nd </td>
<td> DATE </td>
<td> non </td>
<td> 0000-00-00 </td>
<td> standard </td>
<td> non </td>
<td> Date de naissance de la personne. </td>
</tr>
<tr id="cp_naissance_lieu" class="pair" >
<td> 12 </td>
<td> cp_naissance_lieu </td>
<td> cp_nl </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Lieu de naissance de la personne. </td>
</tr>
<tr id="cp_ce_deces" class="pair" >
<td> 13 </td>
<td> cp_ce_deces </td>
<td> cp_ce_d </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Permet de savoir si la personne est décédée ou pas, ou que l'information est indéterminée. </td>
</tr>
<tr id="cp_deces_date" class="pair" >
<td> 14 </td>
<td> cp_deces_date </td>
<td> cp_dd </td>
<td> DATE </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Date de décés de la personne. Par défaut, si la personne n'est pas décédé le champ reste null. Si la personne est décédée mais que l'on ne connait pas la date mettre : 0000-00-00 </td>
</tr>
<tr id="cp_deces_lieu" class="pair" >
<td> 15 </td>
<td> cp_deces_lieu </td>
<td> cp_dl </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Lieu de décés de la personne. </td>
</tr>
<tr id="cp_ce_sexe" class="pair" >
<td> 16 </td>
<td> cp_ce_sexe </td>
<td> cp_ce_s </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Indique si la personne est un homme ou une femme... </td>
</tr>
<tr id="cp_description" class="pair" >
<td> 17 </td>
<td> cp_description </td>
<td> cp_d </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Informations diverses sur la personne. </td>
</tr>
<tr id="cp_biographie" class="pair" >
<td> 18 </td>
<td> cp_biographie </td>
<td> cp_b </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Vie et renommée (locale, régionale, ...) de la personne. </td>
</tr>
<tr id="cp_adresse_01" class="pair" >
<td> 19 </td>
<td> cp_adresse_01 </td>
<td> cp_a0 </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Adresse de la personne. </td>
</tr>
<tr id="cp_adresse_02" class="pair" >
<td> 20 </td>
<td> cp_adresse_02 </td>
<td> cp_a0 </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Complément d'adresse personnelle. </td>
</tr>
<tr id="cp_ce_truk_region" class="pair" >
<td> 21 </td>
<td> cp_ce_truk_region </td>
<td> cp_ce_tr </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du nom de la région (état, province) où vit la personne. Utiliser les noms du standard ISO-3166-2. Sinon utiliser "AUTRE" pour stocker d'éventuel valeur non présente dans ISO-3166-2. </td>
</tr>
<tr id="cp_bp" class="pair" >
<td> 22 </td>
<td> cp_bp </td>
<td> cp_b </td>
<td> VARCHAR(20) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Boite postale de l'adresse de la personne. </td>
</tr>
<tr id="cp_code_postal" class="pair" >
<td> 23 </td>
<td> cp_code_postal </td>
<td> cp_cp </td>
<td> VARCHAR(10) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Code postal (zip) personnel. </td>
</tr>
<tr id="cp_ville" class="pair" >
<td> 24 </td>
<td> cp_ville </td>
<td> cp_v </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom de la localité (ville) où vit la personne. </td>
</tr>
<tr id="cp_ce_truk_pays" class="pair" >
<td> 25 </td>
<td> cp_ce_truk_pays </td>
<td> cp_ce_tp </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du pays où vit la personne. Utiliser les noms du standard ISO-3166-1. Sinon utiliser "AUTRE" pour stocker d'éventuel valeur non présente dans ISO-3166-1. </td>
</tr>
<tr id="cp_truk_telephone" class="pair" >
<td> 26 </td>
<td> cp_truk_telephone </td>
<td> cp_tt </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Numéro(s) de téléphone fixe (FIX), portable (GSM), Fax (FAX), pager (PAG)... personnels. </td>
</tr>
<tr id="cp_truk_courriel" class="pair" >
<td> 27 </td>
<td> cp_truk_courriel </td>
<td> cp_tc </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Adresse(s) de courriel personnel. Ajouter les adresses dans leur ordre d'importance. </td>
</tr>
<tr id="cp_truk_url" class="pair" >
<td> 28 </td>
<td> cp_truk_url </td>
<td> cp_tu </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> URL(s) de site web personnel. Ajouter les adresses dans leur ordre d'importance. </td>
</tr>
<tr id="cp_truk_logo" class="pair" >
<td> 29 </td>
<td> cp_truk_logo </td>
<td> cp_tl </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> URL(s) des logo, avatar, portrait ou photo de la personne. Ajouter les URL(s) dans leur ordre d'importance. </td>
</tr>
<tr id="cp_ce_truk_specialite" class="pair" >
<td> 30 </td>
<td> cp_ce_truk_specialite </td>
<td> cp_ce_ts </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Indiquer séparer par des points virgules ";" les spécialités naturalistes de la personne. </td>
</tr>
<tr id="cp_truk_recolte" class="pair" >
<td> 31 </td>
<td> cp_truk_recolte </td>
<td> cp_tr </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Indiquer les lieux de récolte séparés par des points virgules. Indiquer le référentiel géographique utilisé puis après un # mettre le code ou identitifiant de la zone géographique. Après chaque code ISO un peut signe pipe | peut être suivi des années de récolte séparées par des vigules ou des tirets pour les périodes continues). Si le pays de récolte est inconnu utilisé un point d'interogration. Exemple : ISO-3166-1#FR|1905-1908,1910;ISO-3166-1#PS|1912;ISO-3166-2#FR-34|1917. </td>
</tr>
<tr id="cp_ce_truk_role" class="pair" >
<td> 32 </td>
<td> cp_ce_truk_role </td>
<td> cp_ce_tr </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Rôle générale de la personne vis à vis de l'ensemble des projets : superadmin, admin... </td>
</tr>
<tr id="cp_mark_licence" class="pair" >
<td> 33 </td>
<td> cp_mark_licence </td>
<td> cp_ml </td>
<td> BOOL </td>
<td> non </td>
<td> 0 </td>
<td> standard </td>
<td> non </td>
<td> Indique quand la valeur vaut 1 que l'utilisateur a accepté la licence d'utilisation de l'application. </td>
</tr>
<tr id="cp_parametre" class="pair" >
<td> 34 </td>
<td> cp_parametre </td>
<td> cp_p </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Parametres de l'utilisateur vis à vis de l'application. </td>
</tr>
<tr id="cp_session_id" class="pair" >
<td> 35 </td>
<td> cp_session_id </td>
<td> cp_si </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Identifiant de session de la personne utilisatrice de l'application. </td>
</tr>
<tr id="cp_login" class="pair" >
<td> 36 </td>
<td> cp_login </td>
<td> cp_l </td>
<td> VARCHAR(50) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Login de la personne pour accéder à l'application. </td>
</tr>
<tr id="cp_mot_de_passe" class="pair" >
<td> 37 </td>
<td> cp_mot_de_passe </td>
<td> cp_mdp </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Mot de passe de la personne pour accéder à l'application. Encodé par SHA1. </td>
</tr>
<tr id="cp_ce_annuaire_tela" class="pair" >
<td> 38 </td>
<td> cp_ce_annuaire_tela </td>
<td> cp_ce_at </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la personne dans l'annuaire de Tela Botanica. </td>
</tr>
<tr id="cp_mark_public" class="pair" >
<td> 39 </td>
<td> cp_mark_public </td>
<td> cp_mp </td>
<td> BOOL </td>
<td> non </td>
<td> 0 </td>
<td> standard </td>
<td> non </td>
<td> Indique si oui (=1) ou non (=0) les données de cette personne sont publiques. </td>
</tr>
<tr id="cp_ce_meta" class="pair" >
<td> 40 </td>
<td> cp_ce_meta </td>
<td> cp_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cp_csap </td>
<td> cp_id_personne </td>
<td> csap_id_personne </td>
<td> <a href="coel_table_coel_structure_a_personne.html">coel_structure_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cp_ccap </td>
<td> cp_id_personne </td>
<td> ccap_id_personne </td>
<td> <a href="coel_table_coel_collection_a_personne.html">coel_collection_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cp_cpuap </td>
<td> cp_id_personne </td>
<td> cpuap_id_personne </td>
<td> <a href="coel_table_coel_publication_a_personne.html">coel_publication_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cp_cpar_01 </td>
<td> cp_id_personne </td>
<td> cpar_id_personne_01 </td>
<td> <a href="coel_table_coel_personne_a_relation.html">coel_personne_a_relation</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cpr_cp </td>
<td> cp_ce_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 6 </td>
<td> fk_cp_cpar_02 </td>
<td> cp_id_personne </td>
<td> cpar_id_personne_02 </td>
<td> <a href="coel_table_coel_personne_a_relation.html">coel_personne_a_relation</a> </td>
</tr>
<tr class="pair" >
<td> 7 </td>
<td> fk_cp_cmhl_modifier_par </td>
<td> cp_id_personne </td>
<td> cmhl_ce_modifier_par </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 8 </td>
<td> fk_cmhl_cp_meta </td>
<td> cp_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 9 </td>
<td> fk_cmlv_cp_prefix </td>
<td> cp_ce_truk_prefix </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 10 </td>
<td> fk_cmlv_cp_suffix </td>
<td> cp_ce_truk_suffix </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 11 </td>
<td> fk_cmlv_cp_sexe </td>
<td> cp_ce_sexe </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 12 </td>
<td> fk_cmlv_cp_specialite </td>
<td> cp_ce_truk_specialite </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 13 </td>
<td> fk_cmlv_cp_role </td>
<td> cp_ce_truk_role </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 14 </td>
<td> fk_cmlv_cp_deces </td>
<td> cp_ce_deces </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 15 </td>
<td> fk_cmlv_cp_pays </td>
<td> cp_ce_truk_pays </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 16 </td>
<td> fk_cmlv_cp_region </td>
<td> cp_ce_truk_region </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_personne">
discussion sur la table coel_personne
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_structure_valorisation.html
New file
0,0 → 1,301
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Structure - coel_structure_valorisation</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Structure.html">Structure</a> > coel_structure_valorisation</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_structure_valorisation</h1>
<h2> Description générale </h2>
<p>
Toutes les données spécifiques à la valorisation au sein d'une structure.
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="csv_id_structure" class="pair" >
<td> 1 </td>
<td> csv_id_structure </td>
<td> csv_id_s </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la structure. </td>
</tr>
<tr id="csv_mark_action" class="pair" >
<td> 2 </td>
<td> csv_mark_action </td>
<td> csv_ma </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Avez-vous réalisé des actions de valorisation de vos collections botaniques ou avez-vous été sollicités pour la valorisation de ces collections ? </td>
</tr>
<tr id="csv_truk_action" class="pair" >
<td> 3 </td>
<td> csv_truk_action </td>
<td> csv_ta </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Les actions de valorisation réalisées. </td>
</tr>
<tr id="csv_publication" class="pair" >
<td> 4 </td>
<td> csv_publication </td>
<td> csv_p </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Quelques titres des ouvrages, articles scientifiques, ... ? </td>
</tr>
<tr id="csv_collection_autre" class="pair" >
<td> 5 </td>
<td> csv_collection_autre </td>
<td> csv_ca </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> L'organisme dispose-t-il d'autres collections (permettant une valorisation pluridisciplinaire) ? </td>
</tr>
<tr id="csv_mark_action_future" class="pair" >
<td> 6 </td>
<td> csv_mark_action_future </td>
<td> csv_maf </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Envisagez-vous des actions de valorisation dans le cadre de votre politique culturelle ? </td>
</tr>
<tr id="csv_action_future" class="pair" >
<td> 7 </td>
<td> csv_action_future </td>
<td> csv_af </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Les actions de valorisation futures envisagées. </td>
</tr>
<tr id="csv_mark_recherche" class="pair" >
<td> 8 </td>
<td> csv_mark_recherche </td>
<td> csv_mr </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Vos collections botaniques sont-elles utilisées pour des recherches scientifiques ? </td>
</tr>
<tr id="csv_truk_recherche_provenance" class="pair" >
<td> 9 </td>
<td> csv_truk_recherche_provenance </td>
<td> csv_trp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Si oui, par des chercheurs (professionnels ou amateurs ) de quelle provenance ? </td>
</tr>
<tr id="csv_truk_recherche_type" class="pair" >
<td> 10 </td>
<td> csv_truk_recherche_type </td>
<td> csv_trt </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Et pour quelles types de recherches ? </td>
</tr>
<tr id="csv_mark_acces_ss_motif" class="pair" >
<td> 11 </td>
<td> csv_mark_acces_ss_motif </td>
<td> csv_masm </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Peut-on consulter vos collections botaniques sans motif de recherches scientifiques ? </td>
</tr>
<tr id="csv_acces_ss_motif" class="pair" >
<td> 12 </td>
<td> csv_acces_ss_motif </td>
<td> csv_asm </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Si oui, quelles démarches doit-on faire pour les consulter ? </td>
</tr>
<tr id="csv_mark_visite_avec_motif" class="pair" >
<td> 13 </td>
<td> csv_mark_visite_avec_motif </td>
<td> csv_mvam </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Peut-on visiter vos collections botaniques en avec des objectifs de recherches scientifiques ? </td>
</tr>
<tr id="csv_visite_avec_motif" class="pair" >
<td> 14 </td>
<td> csv_visite_avec_motif </td>
<td> csv_vam </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Si oui, quelles démarches doit-on faire pour les visiter ? </td>
</tr>
<tr id="csv_ce_meta" class="pair" >
<td> 15 </td>
<td> csv_ce_meta </td>
<td> csv_ce_m </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cs_csv </td>
<td> csv_id_structure </td>
<td> cs_id_structure </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cmhl_csv_meta </td>
<td> csv_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_structure_valorisation">
discussion sur la table coel_structure_valorisation
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_collection.html
New file
0,0 → 1,725
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Collection - coel_collection</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Collection.html">Collection</a> > coel_collection</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_collection</h1>
<h2> Description générale </h2>
<p>
Contient les informations sur les collections.INFO : cc_nom<br />
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cc_id_collection" class="pair" >
<td> 1 </td>
<td> cc_id_collection </td>
<td> cc_id_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant de la collection. </td>
</tr>
<tr id="cc_ce_projet" class="pair" >
<td> 2 </td>
<td> cc_ce_projet </td>
<td> cc_ce_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du projet dans lequel les informations de la collection sont saisies. </td>
</tr>
<tr id="cc_ce_mere" class="pair" >
<td> 3 </td>
<td> cc_ce_mere </td>
<td> cc_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> 0 </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la collection parente. Si la collection courrante n'a pas de parente laisser la valeur 0 par défaut. </td>
</tr>
<tr id="cc_ce_structure" class="pair" >
<td> 4 </td>
<td> cc_ce_structure </td>
<td> cc_ce_s </td>
<td> INTEGER </td>
<td> oui </td>
<td> 0 </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la structure habritant physiquement la collection. Si c'est un particulier, laisser la valeur 0 par défaut et utiliser la table liant les collections aux personnes. </td>
</tr>
<tr id="cc_guid" class="pair" >
<td> 5 </td>
<td> cc_guid </td>
<td> cc_g </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Identifiant global unique de type LSID ou URI. </td>
</tr>
<tr id="cc_truk_identifiant_alternatif" class="pair" >
<td> 6 </td>
<td> cc_truk_identifiant_alternatif </td>
<td> cc_tia </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Autres identifiants de la structure. </td>
</tr>
<tr id="cc_truk_code" class="pair" >
<td> 7 </td>
<td> cc_truk_code </td>
<td> cc_tc </td>
<td> VARCHAR(100) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Code(s) de la collection. </td>
</tr>
<tr id="cc_nom" class="pair" >
<td> 8 </td>
<td> cc_nom </td>
<td> cc_n </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom de la collection dans la langue d'origine. Afficher vis à vis du public. </td>
</tr>
<tr id="cc_truk_nom_alternatif" class="pair" >
<td> 9 </td>
<td> cc_truk_nom_alternatif </td>
<td> cc_tna </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom alternatif de la collection. </td>
</tr>
<tr id="cc_description" class="pair" >
<td> 10 </td>
<td> cc_description </td>
<td> cc_d </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Description principale de la collection pour un large public. </td>
</tr>
<tr id="cc_description_specialiste" class="pair" >
<td> 11 </td>
<td> cc_description_specialiste </td>
<td> cc_ds </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Description de la collection pour un public de spécialistes. </td>
</tr>
<tr id="cc_historique" class="pair" >
<td> 12 </td>
<td> cc_historique </td>
<td> cc_h </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Historique de la collection (acquisition, différentes interventions de restauration, de traitement ...). </td>
</tr>
<tr id="cc_truk_url" class="pair" >
<td> 13 </td>
<td> cc_truk_url </td>
<td> cc_tu </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> URL(s) du site web ou de la page concernant la collection (WEB), d'un web service (WS) ou d'une page permettant d'accèder à des informations sur les objets de la collection (OBJ). </td>
</tr>
<tr id="cc_truk_groupement_principe" class="pair" >
<td> 14 </td>
<td> cc_truk_groupement_principe </td>
<td> cc_tgp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Principal but de groupement de la collection au niveau intélectuel plutôt que physique. </td>
</tr>
<tr id="cc_truk_groupement_but" class="pair" >
<td> 15 </td>
<td> cc_truk_groupement_but </td>
<td> cc_tgb </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Principal but de réalisation de la collection. </td>
</tr>
<tr id="cc_ce_type" class="pair" >
<td> 16 </td>
<td> cc_ce_type </td>
<td> cc_ce_t </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Type de la collection vis à vis du standard NCD. </td>
</tr>
<tr id="cc_ce_type_depot" class="pair" >
<td> 17 </td>
<td> cc_ce_type_depot </td>
<td> cc_ce_td </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Type de dépôt de la collection. </td>
</tr>
<tr id="cc_cote" class="pair" >
<td> 18 </td>
<td> cc_cote </td>
<td> cc_c </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Côte de la collection. </td>
</tr>
<tr id="cc_dimenssion" class="pair" >
<td> 19 </td>
<td> cc_dimenssion </td>
<td> cc_d </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Dimenssion, taille de la collection sous forme de texte libre. </td>
</tr>
<tr id="cc_condition_acces" class="pair" >
<td> 20 </td>
<td> cc_condition_acces </td>
<td> cc_ca </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Condition d'accès à la collection. Peut être définit par défaut par la structure. </td>
</tr>
<tr id="cc_condition_usage" class="pair" >
<td> 21 </td>
<td> cc_condition_usage </td>
<td> cc_cu </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Condition d'usages de la collection. Peut être définit par défaut par la structure. </td>
</tr>
<tr id="cc_truk_couverture_vernaculaire" class="pair" >
<td> 22 </td>
<td> cc_truk_couverture_vernaculaire </td>
<td> cc_tcv </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nature de la collection sous forme de nom(s) vernaculaire(s). </td>
</tr>
<tr id="cc_truk_couverture_taxonomique" class="pair" >
<td> 23 </td>
<td> cc_truk_couverture_taxonomique </td>
<td> cc_tct </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom de famille ou de taxons supérieurs présent dans la collection. </td>
</tr>
<tr id="cc_truk_couverture_regne" class="pair" >
<td> 24 </td>
<td> cc_truk_couverture_regne </td>
<td> cc_tcr </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Liste des règnes couverts par la collection. </td>
</tr>
<tr id="cc_truk_couverture_temporelle" class="pair" >
<td> 25 </td>
<td> cc_truk_couverture_temporelle </td>
<td> cc_tct </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Période de temps couverte par la collection. </td>
</tr>
<tr id="cc_truk_couverture_vie" class="pair" >
<td> 26 </td>
<td> cc_truk_couverture_vie </td>
<td> cc_tcv </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Période de temps durant laquelle le matériel biologique était en vie. Inclu les périodes de temps paléontologiques. </td>
</tr>
<tr id="cc_truk_conservation_statut" class="pair" >
<td> 27 </td>
<td> cc_truk_conservation_statut </td>
<td> cc_tcs </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Indiquer la date d'une estimation séparée par un dièse du statut estimé utilisant l'échelle de McGinley. Plusieurs estimations seront séparés par un point virgule. </td>
</tr>
<tr id="cc_truk_preservation" class="pair" >
<td> 28 </td>
<td> cc_truk_preservation </td>
<td> cc_tp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Liste indiquant les procédures ou techniques de conservation utilisées pour les collections non vivantes. </td>
</tr>
<tr id="cc_ce_developpement" class="pair" >
<td> 29 </td>
<td> cc_ce_developpement </td>
<td> cc_ce_d </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Indique le changement potentiel dans la portée de la collection. </td>
</tr>
<tr id="cc_truk_periode_constitution" class="pair" >
<td> 30 </td>
<td> cc_truk_periode_constitution </td>
<td> cc_tpc </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Liste de périodes de temps durant laquelle la collection a été assemblée. </td>
</tr>
<tr id="cc_truk_couverture_lieu" class="pair" >
<td> 31 </td>
<td> cc_truk_couverture_lieu </td>
<td> cc_tcl </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Liste de lieux (continent, pays, region, département, commune, autres lieux historique ou texte libre) desquels le matériel de la collection est originaire. </td>
</tr>
<tr id="cc_truk_coordonnee" class="pair" >
<td> 32 </td>
<td> cc_truk_coordonnee </td>
<td> cc_tc </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Liste de coordonnées décimales des lieux d'origine du matériel de la collection. </td>
</tr>
<tr id="cc_ce_specimen_type" class="pair" >
<td> 33 </td>
<td> cc_ce_specimen_type </td>
<td> cc_ce_st </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Y-a-t'il des échantillons-types? </td>
</tr>
<tr id="cc_specimen_type_nbre" class="pair" >
<td> 34 </td>
<td> cc_specimen_type_nbre </td>
<td> cc_stn </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nombre de spécimen type présent dans la collection. </td>
</tr>
<tr id="cc_ce_specimen_type_nbre_precision" class="pair" >
<td> 35 </td>
<td> cc_ce_specimen_type_nbre_precision </td>
<td> cc_ce_stnp </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du type de précision du nombre de spécimen type. </td>
</tr>
<tr id="cc_ce_specimen_type_classement" class="pair" >
<td> 36 </td>
<td> cc_ce_specimen_type_classement </td>
<td> cc_ce_stc </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Type de classement des specimens types. </td>
</tr>
<tr id="cc_expedition_nom" class="pair" >
<td> 37 </td>
<td> cc_expedition_nom </td>
<td> cc_en </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom de l'expédition durant laquelle le matériel a été collecté. </td>
</tr>
<tr id="cc_truk_digital_medium" class="pair" >
<td> 38 </td>
<td> cc_truk_digital_medium </td>
<td> cc_tdm </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Pour les collections digitales, listes des types de support d'enregistrement. Ex. : DVD-R. </td>
</tr>
<tr id="cc_truk_digital_format" class="pair" >
<td> 39 </td>
<td> cc_truk_digital_format </td>
<td> cc_tdf </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Pour les collections digitales, listes des types MIME. </td>
</tr>
<tr id="cc_mark_public" class="pair" >
<td> 40 </td>
<td> cc_mark_public </td>
<td> cc_mp </td>
<td> BOOL </td>
<td> non </td>
<td> 0 </td>
<td> standard </td>
<td> non </td>
<td> Indique si oui (=1) ou non (=0) les données de cette collection sont publiques. </td>
</tr>
<tr id="cc_ce_meta" class="pair" >
<td> 41 </td>
<td> cc_ce_meta </td>
<td> cc_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cs_cc </td>
<td> cc_ce_structure </td>
<td> cs_id_structure </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cc_cc_parente </td>
<td> cc_id_collection </td>
<td> cc_ce_mere </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cc_ccap </td>
<td> cc_id_collection </td>
<td> ccap_id_collection </td>
<td> <a href="coel_table_coel_collection_a_personne.html">coel_collection_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cc_ccb </td>
<td> cc_id_collection </td>
<td> ccb_id_collection </td>
<td> <a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cc_ccapu </td>
<td> cc_id_collection </td>
<td> ccapu_id_collection </td>
<td> <a href="coel_table_coel_collection_a_publication.html">coel_collection_a_publication</a> </td>
</tr>
<tr class="pair" >
<td> 6 </td>
<td> fk_cc_ccar_01 </td>
<td> cc_id_collection </td>
<td> ccar_id_collection_01 </td>
<td> <a href="coel_table_coel_collection_a_relation.html">coel_collection_a_relation</a> </td>
</tr>
<tr class="pair" >
<td> 7 </td>
<td> fk_cc_ccar_02 </td>
<td> cc_id_collection </td>
<td> ccar_id_collection_02 </td>
<td> <a href="coel_table_coel_collection_a_relation.html">coel_collection_a_relation</a> </td>
</tr>
<tr class="pair" >
<td> 8 </td>
<td> fk_cpr_cc </td>
<td> cc_ce_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 9 </td>
<td> fk_cc_ccac </td>
<td> cc_id_collection </td>
<td> ccac_id_collection </td>
<td> <a href="coel_table_coel_collection_a_commentaire.html">coel_collection_a_commentaire</a> </td>
</tr>
<tr class="pair" >
<td> 10 </td>
<td> fk_cmhl_cc_meta </td>
<td> cc_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 11 </td>
<td> fk_cmlv_cc_type </td>
<td> cc_ce_type </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 12 </td>
<td> fk_cmlv_cc_developpement </td>
<td> cc_ce_developpement </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 13 </td>
<td> fk_cmlv_cc_specimen_type </td>
<td> cc_ce_specimen_type </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 14 </td>
<td> fk_cmlv_cc_specimen_type_classement </td>
<td> cc_ce_specimen_type_classement </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 15 </td>
<td> fk_cmlv_cc_type_depot </td>
<td> cc_ce_type_depot </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 16 </td>
<td> fk_cmlv_cc_type_nbre_precision </td>
<td> cc_ce_specimen_type_nbre_precision </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_collection">
discussion sur la table coel_collection
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_vocabulaire.ini
New file
0,0 → 1,137
; Encoding UTF-8
; ------------------------------------------------------#
; Référentiel nomenclatural
[referentiel]
source = /home/jpm/web/eflore/doc/bdd/v1.1/eflore_vocabulaire.csv
 
; ------------------------------------------------------#
; TABLES
; Id des tables doivent démarer à 101 (max = 899)
[tables]
coel_collection = 101
coel_collection_a_commentaire = 102
coel_collection_a_personne = 103
coel_collection_a_publication = 104
coel_collection_a_relation = 105
coel_collection_botanique = 106
coel_commentaire = 107
coel_meta_colonne = 108
coel_meta_donnee = 109
coel_meta_historique_ligne = 111
coel_meta_liste_valeur = 112
coel_personne = 113
coel_personne_a_relation = 114
coel_projet = 115
coel_projet_a_structure = 116
coel_projet_version = 117
coel_publication = 118
coel_publication_a_personne = 119
coel_structure = 120
coel_structure_a_personne = 121
coel_structure_conservation = 122
coel_structure_valorisation = 123
 
; ------------------------------------------------------#
; RÉFÉRENTIELS
[referentiels]
pays = 1074
zones_administratives_niveau_01 = 1078
zones_administratives_niveau_02 = 1079
niveau_importance = 1081
 
; ------------------------------------------------------#
; CORRESPONDANCES CHAMP/LISTE
 
[champs]
; Module METADONNÉES
; L'insertion de ces données se fera manuellement.
cmhl_ce_etat = 1001
cmc_ce_format_sql = 1002
cmc_ce_table = 1003
; Module PROJET
cpr_ce_langue = 1071
cpr_ce_indexation_duree = 1072
cpr_ce_indexation_freq = 1073
; Module PERSONNE
cp_ce_truk_prefix = 1004
cp_ce_truk_suffix = 1005
cp_truk_nom_autre = 1006
cp_ce_deces = 1080
cp_ce_sexe = 1067
cp_truk_telephone = 1007
cp_ce_truk_specialite = 1008
cp_ce_truk_role = 1009
cpar_id_role = 1010
; Module STRUCTURE
csap_id_role = 1011
csap_ce_truk_fonction = 1012
csap_ce_truk_statut = 1013
cs_ce_type = 1014
cs_ce_truk_type_prive = 1015
cs_ce_truk_type_public = 1016
cs_truk_identifiant_alternatif = 1017
cs_truk_url = 1066
csc_truk_local_stockage = 1018
csc_truk_local_meuble = 1019
csc_truk_stockage_parametre = 1020
csc_truk_collection_autre = 1021
csc_truk_restauration_operation = 1022
csc_ce_materiel_conservation = 1023
csc_truk_materiel_autre = 1024
csc_truk_traitement_insecte = 1025
csc_ce_truk_acquisition_traitement_poison = 1026
csc_truk_acquisition_traitement_insecte = 1025
csv_truk_action = 1027
csv_collection_autre = 1021
csv_truk_recherche_provenance = 1028
csv_truk_recherche_type = 1029
; Module COLLECTION
ccap_id_role = 1030
ccar_id_relation = 1031
cc_ce_type = 1032
cc_ce_type_depot = 1033
cc_truk_groupement_principe = 1034
cc_truk_groupement_but = 1035
cc_truk_conservation_statut = 1036
cc_truk_couverture_regne = 1037
cc_truk_preservation = 1038
cc_ce_developpement = 1039
cc_truk_periode_constitution = 1040
cc_ce_specimen_type = 1041
cc_ce_specimen_type_nbre_precision = 1082
cc_ce_specimen_type_classement = 1042
ccb_ce_truk_type = 1083
ccb_truk_nature = 1043
ccb_truk_unite_rangement = 1044
ccb_ce_unite_rangement_etat = 1045
ccb_truk_unite_base = 1046
ccb_truk_conservation_papier_type = 1047
ccb_truk_conservation_methode = 1048
ccb_truk_specimen_fixation_methode = 1049
ccb_truk_etiquette_fixation_support = 1049
ccb_truk_etiquette_fixation_specimen = 1050
ccb_truk_etiquette_ecriture = 1051
ccb_ce_traitement = 1041
ccb_truk_traitement_poison = 1026
ccb_truk_traitement_insecte = 1025
ccb_ce_etat_general = 1045
ccb_truk_degradation_specimen = 1052
ccb_truk_degradation_presentation = 1053
ccb_ce_determination = 1054
ccb_ce_recolte_date_debut_type = 1055
ccb_ce_recolte_date_fin_type = 1056
ccb_ce_classement_etat = 1057
ccb_truk_etiquette_renseignement = 1058
ccb_ce_precision_localité = 1059
ccb_ce_precision_date = 1059
ccb_ce_collection_integre = 1041
ccb_ce_collection_integre_info = 1060
ccb_ce_inventaire = 1041
ccb_ce_inventaire_auteur = 1041
ccb_ce_inventaire_forme = 1061
ccb_ce_truk_inventaire_digital = 1062
ccb_ce_inventaire_etat = 1063
ccac_truk_type = 1068
; Module PUBLICATION
cpuap_id_role = 1064
cpuap_ce_truk_type = 1065
Property changes:
Added: svn:mergeinfo
Added: svn:eol-style
+native
\ No newline at end of property
/tags/v1.0-syrah/doc/bdd/coel_table_coel_structure.html
New file
0,0 → 1,537
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Structure - coel_structure</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Structure.html">Structure</a> > coel_structure</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_structure</h1>
<h2> Description générale </h2>
<p>
Contient les informations sur les structures.<br />INFO : cs_nom
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cs_id_structure" class="pair" >
<td> 1 </td>
<td> cs_id_structure </td>
<td> cs_id_s </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant de la structure. </td>
</tr>
<tr id="cs_ce_projet" class="pair" >
<td> 2 </td>
<td> cs_ce_projet </td>
<td> cs_ce_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> 0 </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du projet dans lequel les informations de la structure sont saisies. </td>
</tr>
<tr id="cs_ce_mere" class="pair" >
<td> 3 </td>
<td> cs_ce_mere </td>
<td> cs_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> 0 </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la structure mère. </td>
</tr>
<tr id="cs_guid" class="pair" >
<td> 4 </td>
<td> cs_guid </td>
<td> cs_g </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> URI (LSID ou URL) de la structure. Dans le format RDF, cela sera utilisé comme URI des données de l'institutions. </td>
</tr>
<tr id="cs_truk_identifiant_alternatif" class="pair" >
<td> 5 </td>
<td> cs_truk_identifiant_alternatif </td>
<td> cs_tia </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Identifiant alternatif. Par exemple, l'acronyme de l'Index Herbariorum ou du MNHN. Séparer les différentes valeurs par un point virgule ";" et le type d'identifiant de sa valeur par un dièze "#". Exemple : IH#MPU;MNHN#163 </td>
</tr>
<tr id="cs_nom" class="pair" >
<td> 6 </td>
<td> cs_nom </td>
<td> cs_n </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom officiel de la structure dans sa langue d'origine. </td>
</tr>
<tr id="cs_truk_nom_alternatif" class="pair" >
<td> 7 </td>
<td> cs_truk_nom_alternatif </td>
<td> cs_tna </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Autres noms de la structures. Séparer les différentes valeurs par un point virgule ";". </td>
</tr>
<tr id="cs_description" class="pair" >
<td> 8 </td>
<td> cs_description </td>
<td> cs_d </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Description de la structure pour le public. </td>
</tr>
<tr id="cs_ce_type" class="pair" >
<td> 9 </td>
<td> cs_ce_type </td>
<td> cs_ce_t </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du type de la structure vis à vis du standard NCD. </td>
</tr>
<tr id="cs_ce_truk_type_prive" class="pair" >
<td> 10 </td>
<td> cs_ce_truk_type_prive </td>
<td> cs_ce_ttp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Type privé de structure. </td>
</tr>
<tr id="cs_ce_truk_type_public" class="pair" >
<td> 11 </td>
<td> cs_ce_truk_type_public </td>
<td> cs_ce_ttp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Type public de structure. </td>
</tr>
<tr id="cs_adresse_01" class="pair" >
<td> 12 </td>
<td> cs_adresse_01 </td>
<td> cs_a0 </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Adresse principale. </td>
</tr>
<tr id="cs_adresse_02" class="pair" >
<td> 13 </td>
<td> cs_adresse_02 </td>
<td> cs_a0 </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Complément d'adresse. </td>
</tr>
<tr id="cs_date_fondation" class="pair" >
<td> 14 </td>
<td> cs_date_fondation </td>
<td> cs_df </td>
<td> DATE </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Date de fondation de la structure. </td>
</tr>
<tr id="cs_code_postal" class="pair" >
<td> 15 </td>
<td> cs_code_postal </td>
<td> cs_cp </td>
<td> VARCHAR(16) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Code postal. </td>
</tr>
<tr id="cs_ville" class="pair" >
<td> 16 </td>
<td> cs_ville </td>
<td> cs_v </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Ville. </td>
</tr>
<tr id="cs_ce_truk_region" class="pair" >
<td> 17 </td>
<td> cs_ce_truk_region </td>
<td> cs_ce_tr </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du nom de la région (état, province) où est situé la structure. Utiliser les noms du standard ISO-3166-2. Sinon utiliser "AUTRE" pour stocker d'éventuel valeur non présente dans ISO-3166-2. </td>
</tr>
<tr id="cs_ce_truk_pays" class="pair" >
<td> 18 </td>
<td> cs_ce_truk_pays </td>
<td> cs_ce_tp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du nom du pays de la structure. Utiliser les noms du standard ISO-3166-1. Sinon utiliser "AUTRE" pour stocker d'éventuel valeur non présente dans ISO-3166-1. </td>
</tr>
<tr id="cs_latitude" class="pair" >
<td> 19 </td>
<td> cs_latitude </td>
<td> cs_l </td>
<td> FLOAT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Latitude du local de la structure. </td>
</tr>
<tr id="cs_longitude" class="pair" >
<td> 20 </td>
<td> cs_longitude </td>
<td> cs_l </td>
<td> FLOAT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Longitude du local de la structure. </td>
</tr>
<tr id="cs_truk_telephone" class="pair" >
<td> 21 </td>
<td> cs_truk_telephone </td>
<td> cs_tt </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Téléphone(s) principaux de la structure (fixe, fax, portable...). </td>
</tr>
<tr id="cs_courriel" class="pair" >
<td> 22 </td>
<td> cs_courriel </td>
<td> cs_c </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Courriel principal de contact de l'organisation ex : accueil@organisation.org, pas de mail individuel. </td>
</tr>
<tr id="cs_truk_url" class="pair" >
<td> 23 </td>
<td> cs_truk_url </td>
<td> cs_tu </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> URL(s) du site web principal de la structure, du logo de la structure ou d'une page web particulière. </td>
</tr>
<tr id="cs_nbre_personne" class="pair" >
<td> 24 </td>
<td> cs_nbre_personne </td>
<td> cs_np </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nombre de personne présentent dans la structure. </td>
</tr>
<tr id="cs_condition_acces" class="pair" >
<td> 25 </td>
<td> cs_condition_acces </td>
<td> cs_ca </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Conditions d'accès à la structure. </td>
</tr>
<tr id="cs_condition_usage" class="pair" >
<td> 26 </td>
<td> cs_condition_usage </td>
<td> cs_cu </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Conditions d'usage générales des collections de la structure. </td>
</tr>
<tr id="cs_mark_public" class="pair" >
<td> 27 </td>
<td> cs_mark_public </td>
<td> cs_mp </td>
<td> BOOL </td>
<td> non </td>
<td> 0 </td>
<td> standard </td>
<td> non </td>
<td> Indique si oui (=1) ou non (=0) les données de cette structure sont publiques. </td>
</tr>
<tr id="cs_ce_meta" class="pair" >
<td> 28 </td>
<td> cs_ce_meta </td>
<td> cs_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cs_csap </td>
<td> cs_id_structure </td>
<td> csap_id_structure </td>
<td> <a href="coel_table_coel_structure_a_personne.html">coel_structure_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cs_cc </td>
<td> cs_id_structure </td>
<td> cc_ce_structure </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cs_csc </td>
<td> cs_id_structure </td>
<td> csc_id_structure </td>
<td> <a href="coel_table_coel_structure_conservation.html">coel_structure_conservation</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cs_csv </td>
<td> cs_id_structure </td>
<td> csv_id_structure </td>
<td> <a href="coel_table_coel_structure_valorisation.html">coel_structure_valorisation</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cs_cs_parente </td>
<td> cs_id_structure </td>
<td> cs_ce_mere </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 6 </td>
<td> fk_cs_cpu_editeur </td>
<td> cs_id_structure </td>
<td> cpu_ce_truk_editeur </td>
<td> <a href="coel_table_coel_publication.html">coel_publication</a> </td>
</tr>
<tr class="pair" >
<td> 7 </td>
<td> fk_cpr_cs </td>
<td> cs_ce_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 8 </td>
<td> fk_cmhl_cs </td>
<td> cs_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 9 </td>
<td> fk_cmlv_cs_type </td>
<td> cs_ce_type </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 10 </td>
<td> fk_cmlv_cs_type_prive </td>
<td> cs_ce_truk_type_prive </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 11 </td>
<td> fk_cmlv_cs_type_public </td>
<td> cs_ce_truk_type_public </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 12 </td>
<td> fk_cs_cpras </td>
<td> cs_id_structure </td>
<td> cpras_id_structure </td>
<td> <a href="coel_table_coel_projet_a_structure.html">coel_projet_a_structure</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_structure">
discussion sur la table coel_structure
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_projet.html
New file
0,0 → 1,409
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Projet - coel_projet</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Projet.html">Projet</a> > coel_projet</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_projet</h1>
<h2> Description générale </h2>
<p>
Contient les informations sur un projet de données.<br />INFO : cpr_nom
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cpr_id_projet" class="pair" >
<td> 1 </td>
<td> cpr_id_projet </td>
<td> cpr_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant d'un projet. </td>
</tr>
<tr id="cpr_nom" class="pair" >
<td> 2 </td>
<td> cpr_nom </td>
<td> cpr_n </td>
<td> VARCHAR(255) </td>
<td> oui </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom du projet. </td>
</tr>
<tr id="cpr_abreviation" class="pair" >
<td> 3 </td>
<td> cpr_abreviation </td>
<td> cpr_a </td>
<td> VARCHAR(40) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Abréviation du projet. </td>
</tr>
<tr id="cpr_resume" class="pair" >
<td> 4 </td>
<td> cpr_resume </td>
<td> cpr_r </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Résumé du projet. </td>
</tr>
<tr id="cpr_description" class="pair" >
<td> 5 </td>
<td> cpr_description </td>
<td> cpr_d </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Description détaillée du projet. </td>
</tr>
<tr id="cpr_url" class="pair" >
<td> 6 </td>
<td> cpr_url </td>
<td> cpr_u </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> URL principal où trouver des compléments d'information sur le projet. </td>
</tr>
<tr id="cpr_mot_cles" class="pair" >
<td> 7 </td>
<td> cpr_mot_cles </td>
<td> cpr_mc </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Mots clés correspondant au projet. </td>
</tr>
<tr id="cpr_citation" class="pair" >
<td> 8 </td>
<td> cpr_citation </td>
<td> cpr_c </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Indication sur la fa\195\167on de citer le projet pour réaliser une bibliographie. </td>
</tr>
<tr id="cpr_licence" class="pair" >
<td> 9 </td>
<td> cpr_licence </td>
<td> cpr_l </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Url ou texte présentant la licence des données du projet. </td>
</tr>
<tr id="cpr_ce_langue" class="pair" >
<td> 10 </td>
<td> cpr_ce_langue </td>
<td> cpr_ce_l </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Langue principale des données du projet (selon l'ISO-639-1). </td>
</tr>
<tr id="cpr_indexation_heure" class="pair" >
<td> 11 </td>
<td> cpr_indexation_heure </td>
<td> cpr_ih </td>
<td> TIME </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Préférence de l'heure de départ pour les procédures d'indexation externe. </td>
</tr>
<tr id="cpr_ce_indexation_duree" class="pair" >
<td> 12 </td>
<td> cpr_ce_indexation_duree </td>
<td> cpr_ce_id </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Durée maximum acceptable pour une procédure d'indexation externe. </td>
</tr>
<tr id="cpr_ce_indexation_freq" class="pair" >
<td> 13 </td>
<td> cpr_ce_indexation_freq </td>
<td> cpr_ce_if </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Fréquence maximum acceptable pour une procédure d'indexation externe. </td>
</tr>
<tr id="cpr_mark_public" class="pair" >
<td> 14 </td>
<td> cpr_mark_public </td>
<td> cpr_mp </td>
<td> BOOL </td>
<td> non </td>
<td> 0 </td>
<td> standard </td>
<td> non </td>
<td> Indique si oui (=1) ou non (=0) ce projet est public. Si oui, il peut être publié dans eFlore. </td>
</tr>
<tr id="cpr_mark_editable" class="pair" >
<td> 15 </td>
<td> cpr_mark_editable </td>
<td> cpr_me </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Indique si oui (=1) ou non (=0) ce projet est éditable. Si nom, l'application doit seulement permettre de consulter les données. </td>
</tr>
<tr id="cpr_ce_meta" class="pair" >
<td> 16 </td>
<td> cpr_ce_meta </td>
<td> cpr_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cpr_cpar </td>
<td> cpr_id_projet </td>
<td> cpar_id_projet </td>
<td> <a href="coel_table_coel_personne_a_relation.html">coel_personne_a_relation</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cpr_cp </td>
<td> cpr_id_projet </td>
<td> cp_ce_projet </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cpr_cs </td>
<td> cpr_id_projet </td>
<td> cs_ce_projet </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cpr_cc </td>
<td> cpr_id_projet </td>
<td> cc_ce_projet </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cpr_cpu </td>
<td> cpr_id_projet </td>
<td> cpu_ce_projet </td>
<td> <a href="coel_table_coel_publication.html">coel_publication</a> </td>
</tr>
<tr class="pair" >
<td> 6 </td>
<td> fk_cpr_cprv </td>
<td> cpr_id_projet </td>
<td> cprv_ce_projet </td>
<td> <a href="coel_table_coel_projet_version.html">coel_projet_version</a> </td>
</tr>
<tr class="pair" >
<td> 7 </td>
<td> fk_cpr_cmlv </td>
<td> cpr_id_projet </td>
<td> cmlv_ce_projet </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 8 </td>
<td> fk_cpr_cmc </td>
<td> cpr_id_projet </td>
<td> cmc_ce_projet </td>
<td> <a href="coel_table_coel_meta_colonne.html">coel_meta_colonne</a> </td>
</tr>
<tr class="pair" >
<td> 9 </td>
<td> fk_cpr_ccm </td>
<td> cpr_id_projet </td>
<td> ccm_ce_projet </td>
<td> <a href="coel_table_coel_commentaire.html">coel_commentaire</a> </td>
</tr>
<tr class="pair" >
<td> 10 </td>
<td> fk_cmhl_cpr_meta </td>
<td> cpr_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 11 </td>
<td> fk_cpr_cpras </td>
<td> cpr_id_projet </td>
<td> cpras_id_projet </td>
<td> <a href="coel_table_coel_projet_a_structure.html">coel_projet_a_structure</a> </td>
</tr>
<tr class="pair" >
<td> 12 </td>
<td> fk_cmlv_cpr_langue </td>
<td> cpr_ce_langue </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 13 </td>
<td> fk_cmlv_cpr_idx_duree </td>
<td> cpr_ce_indexation_duree </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 14 </td>
<td> fk_cmlv_cpr_idx_freq </td>
<td> cpr_ce_indexation_freq </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_projet">
discussion sur la table coel_projet
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_commentaire.html
New file
0,0 → 1,233
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Commentaire - coel_commentaire</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Commentaire.html">Commentaire</a> > coel_commentaire</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_commentaire</h1>
<h2> Description générale </h2>
<p>
Contient les commentaires.<br />INFO : ccm_titre
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="ccm_id_commentaire" class="pair" >
<td> 1 </td>
<td> ccm_id_commentaire </td>
<td> ccm_id_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant d'un commentaire. </td>
</tr>
<tr id="ccm_ce_pere" class="pair" >
<td> 2 </td>
<td> ccm_ce_pere </td>
<td> ccm_ce_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> 0 </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du commentaire père. </td>
</tr>
<tr id="ccm_ce_projet" class="pair" >
<td> 3 </td>
<td> ccm_ce_projet </td>
<td> ccm_ce_p </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du projet dans lequel le commentaire est fait. </td>
</tr>
<tr id="ccm_titre" class="pair" >
<td> 4 </td>
<td> ccm_titre </td>
<td> ccm_t </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Titre du commentaire. </td>
</tr>
<tr id="ccm_texte" class="pair" >
<td> 5 </td>
<td> ccm_texte </td>
<td> ccm_t </td>
<td> TEXT </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Texte du commentaire. </td>
</tr>
<tr id="ccm_ponderation" class="pair" >
<td> 6 </td>
<td> ccm_ponderation </td>
<td> ccm_p </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Pondération du commentaire (importance). Valeur de 1 à 10. </td>
</tr>
<tr id="ccm_mark_public" class="pair" >
<td> 7 </td>
<td> ccm_mark_public </td>
<td> ccm_mp </td>
<td> BOOL </td>
<td> non </td>
<td> 0 </td>
<td> standard </td>
<td> non </td>
<td> Indique si oui (=1) ou non (=0) ce commentaire est public . </td>
</tr>
<tr id="ccm_ce_meta" class="pair" >
<td> 8 </td>
<td> ccm_ce_meta </td>
<td> ccm_ce_m </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cmhl_ccm_meta </td>
<td> ccm_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cpr_ccm </td>
<td> ccm_ce_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_ccm_ccm_pere </td>
<td> ccm_id_commentaire </td>
<td> ccm_ce_pere </td>
<td> <a href="coel_table_coel_commentaire.html">coel_commentaire</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_ccm_ccac </td>
<td> ccm_id_commentaire </td>
<td> ccac_id_commentaire </td>
<td> <a href="coel_table_coel_collection_a_commentaire.html">coel_collection_a_commentaire</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_commentaire">
discussion sur la table coel_commentaire
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_collection_a_personne.html
New file
0,0 → 1,185
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Collection - coel_collection_a_personne</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Collection.html">Collection</a> > coel_collection_a_personne</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_collection_a_personne</h1>
<h2> Description générale </h2>
<p>
Permet de lister les personnes en rapport avec une collection.
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="ccap_id_collection" class="pair" >
<td> 1 </td>
<td> ccap_id_collection </td>
<td> ccap_id_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la collection associée à une personne. </td>
</tr>
<tr id="ccap_id_personne" class="pair" >
<td> 2 </td>
<td> ccap_id_personne </td>
<td> ccap_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la personne associée à une collection. </td>
</tr>
<tr id="ccap_id_role" class="pair" >
<td> 3 </td>
<td> ccap_id_role </td>
<td> ccap_id_r </td>
<td> VARCHAR(255) </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Rôle(s) de la personne : auteur, collecteur... permet aussi de connaître qui a les droits de modification sur la collection. </td>
</tr>
<tr id="ccap_ce_meta" class="pair" >
<td> 4 </td>
<td> ccap_ce_meta </td>
<td> ccap_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cc_ccap </td>
<td> ccap_id_collection </td>
<td> cc_id_collection </td>
<td> <a href="coel_table_coel_collection.html">coel_collection</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cp_ccap </td>
<td> ccap_id_personne </td>
<td> cp_id_personne </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmhl_ccap_meta </td>
<td> ccap_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cmlv_ccap_role </td>
<td> ccap_id_role </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_collection_a_personne">
discussion sur la table coel_collection_a_personne
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_projet_version.html
New file
0,0 → 1,205
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Projet - coel_projet_version</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Projet.html">Projet</a> > coel_projet_version</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_projet_version</h1>
<h2> Description générale </h2>
<p>
Table contenant les informations sur la version d'un projet.<br />INFO : cprv_nom
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cprv_id_version" class="pair" >
<td> 1 </td>
<td> cprv_id_version </td>
<td> cprv_id_v </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant d'une version de projet. </td>
</tr>
<tr id="cprv_ce_projet" class="pair" >
<td> 2 </td>
<td> cprv_ce_projet </td>
<td> cprv_ce_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du projet de la version. </td>
</tr>
<tr id="cprv_nom" class="pair" >
<td> 3 </td>
<td> cprv_nom </td>
<td> cprv_n </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Nom éventuel de la version. </td>
</tr>
<tr id="cprv_code" class="pair" >
<td> 4 </td>
<td> cprv_code </td>
<td> cprv_c </td>
<td> VARCHAR(25) </td>
<td> oui </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Numéro ou code de la version. </td>
</tr>
<tr id="cprv_date_debut" class="pair" >
<td> 5 </td>
<td> cprv_date_debut </td>
<td> cprv_dd </td>
<td> DATETIME </td>
<td> oui </td>
<td> 0000-00-00 00:00:00 </td>
<td> standard </td>
<td> non </td>
<td> Date de début de la version. </td>
</tr>
<tr id="cprv_date_fin" class="pair" >
<td> 6 </td>
<td> cprv_date_fin </td>
<td> cprv_df </td>
<td> DATETIME </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Date de fin de la version. </td>
</tr>
<tr id="cprv_ce_meta" class="pair" >
<td> 7 </td>
<td> cprv_ce_meta </td>
<td> cprv_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cpr_cprv </td>
<td> cprv_ce_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cmhl_cprv_meta </td>
<td> cprv_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_projet_version">
discussion sur la table coel_projet_version
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_publication.html
New file
0,0 → 1,301
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Publication - coel_publication</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Publication.html">Publication</a> > coel_publication</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_publication</h1>
<h2> Description générale </h2>
<p>
Publication de type articles scientifiques, ouvrages ou sites web.<br />INFO : cpu_fmt_nom_complet
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cpu_id_publication" class="pair" >
<td> 1 </td>
<td> cpu_id_publication </td>
<td> cpu_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant de la publication. </td>
</tr>
<tr id="cpu_ce_projet" class="pair" >
<td> 2 </td>
<td> cpu_ce_projet </td>
<td> cpu_ce_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du projet dans lequel les données de cet enregistrement ont été saisies. </td>
</tr>
<tr id="cpu_fmt_nom_complet" class="pair" >
<td> 3 </td>
<td> cpu_fmt_nom_complet </td>
<td> cpu_fnc </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Intitulé de la publication complet : fmt_auteur, date_parution(année). titre. Editeur (nom), collection, fascicule, indication_nvt. pages. </td>
</tr>
<tr id="cpu_uri" class="pair" >
<td> 4 </td>
<td> cpu_uri </td>
<td> cpu_u </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> URI de la publication qui peut être un site web... </td>
</tr>
<tr id="cpu_fmt_auteur" class="pair" >
<td> 5 </td>
<td> cpu_fmt_auteur </td>
<td> cpu_fa </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Contient le nom formaté de l'intitulé auteur(s). Si plusieurs personnes sont auteurs, l'intitulé est formaté ici. </td>
</tr>
<tr id="cpu_titre" class="pair" >
<td> 6 </td>
<td> cpu_titre </td>
<td> cpu_t </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Titre de l'article ou de l'ouvrage. </td>
</tr>
<tr id="cpu_ce_truk_editeur" class="pair" >
<td> 7 </td>
<td> cpu_ce_truk_editeur </td>
<td> cpu_ce_te </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la structure éditrice de la publication. S'il n'est pas renseignné dans la table Structure, contient AUTRE# suivit du nom complet de la structure éditrice. </td>
</tr>
<tr id="cpu_collection" class="pair" >
<td> 8 </td>
<td> cpu_collection </td>
<td> cpu_c </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Intitulé de la collection, c'est à dire de la revue. </td>
</tr>
<tr id="cpu_date_parution" class="pair" >
<td> 9 </td>
<td> cpu_date_parution </td>
<td> cpu_dp </td>
<td> DATE </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Date de parution de la publication. </td>
</tr>
<tr id="cpu_indication_nvt" class="pair" >
<td> 10 </td>
<td> cpu_indication_nvt </td>
<td> cpu_in </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Indication du numéro, volume ou tome de la publication. Plutôt utilisé pour les ouvrages et non les articles de revue. </td>
</tr>
<tr id="cpu_fascicule" class="pair" >
<td> 11 </td>
<td> cpu_fascicule </td>
<td> cpu_f </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Indication du titre du fascicule. Surtout utilisé pour les revues. </td>
</tr>
<tr id="cpu_truk_pages" class="pair" >
<td> 12 </td>
<td> cpu_truk_pages </td>
<td> cpu_tp </td>
<td> VARCHAR(25) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Indication du nombre de pages (pour les ouvrages) ou des pages de début et de fin pour un article. Dans le cas des ouvrages un nombre doit être présent. Pour les articles deux nombres ou point d'intérogation séparés par un tiret. </td>
</tr>
<tr id="cpu_ce_meta" class="pair" >
<td> 13 </td>
<td> cpu_ce_meta </td>
<td> cpu_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cpu_ccapu </td>
<td> cpu_id_publication </td>
<td> ccapu_id_publication </td>
<td> <a href="coel_table_coel_collection_a_publication.html">coel_collection_a_publication</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cpu_cpuap </td>
<td> cpu_id_publication </td>
<td> cpuap_id_publication </td>
<td> <a href="coel_table_coel_publication_a_personne.html">coel_publication_a_personne</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cs_cpu_editeur </td>
<td> cpu_ce_truk_editeur </td>
<td> cs_id_structure </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cpr_cpu </td>
<td> cpu_ce_projet </td>
<td> cpr_id_projet </td>
<td> <a href="coel_table_coel_projet.html">coel_projet</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cmhl_cpu_meta </td>
<td> cpu_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_publication">
discussion sur la table coel_publication
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/Fiche inventaire Herbiers LR.doc
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/tags/v1.0-syrah/doc/bdd/Fiche inventaire Herbiers LR.doc
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/tags/v1.0-syrah/doc/bdd/coel.sh
New file
0,0 → 1,54
#!/bin/bash
###############################################################################
# But : Met à jour la base de données Coel.
# Auteur : Jean-Pascal Milcent <jpm@tela-botanica.org> (translate bat file to shell script)
# License : GPL v3
# Création : 01 octobre 2009
# Version: 0.1
# $Id$
###############################################################################
# Constante
NBREPARAM=$#
 
# Aide
E_OPTERR=65
if [ "$1" = '--help' ]
then # Le script a besoin d'au moins un argument sur la ligne de commande
echo "Usage $0 -[parameters -u, -p]"
echo "Paramétres obligatoires : "
echo " -u: indiquer le nom de l'utilisateur mysql"
echo " -p: indiquer le mot de passe de l'utilisateur mysql (utiliser les guillemets \"\" pour un mot de passe vide)"
exit $E_OPTERR
fi
 
# Récupération des paramètres et des options de la ligne de commande
TEMP=`getopt -o u:p:h: -l help: -- "$@"`
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
eval set -- "$TEMP"
while [ ! -z "$1" ] ; do
#echo $1" # "$2
case "$1" in
-h) HOST=$2;;
-u) MYSQL_USER=$2;;
-p) MYSQL_PASSWD=$2;;
--) shift ; break ;;
*) echo "Internal error!" ; exit 1 ;;
esac
shift 2
done
# Vérifions que nous avions bien le mot de passe et l'utilisateur mysql
if [ $NBREPARAM -ne 4 ]; then
echo "Paramètres requis, utiliser la commande pour voir lesquels : coel.sh --help."
else
# Nous devons être dans le dossier de ce script pour que tout fonctionne
echo "Vérifions que le fichier sql de l'application Coel existe : ";
if [ -f $PWD/coel.sql.bz2 ]; then
echo "OK";
echo "Mise à jour de la bdd COEL dans Mysql :";
bunzip2 $PWD/coel.sql.bz2
/opt/lampp/bin/mysql -u $MYSQL_USER -p$MYSQL_PASSWD --default-character-set=utf8 --database=tb_coel < $PWD/coel.sql
bzip2 -q $PWD/coel.sql
else
echo "Le fichier coel.sql.bz2 n'existe pas. Veuillez mettre à jour votre dépôt SVN et relancer ce script."
fi
fi
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
Added: svn:executable
+*
\ No newline at end of property
/tags/v1.0-syrah/doc/bdd/coel_table_coel_meta_donnee.html
New file
0,0 → 1,181
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Métadonnée - coel_meta_donnee</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Metadonnee.html">Métadonnée</a> > coel_meta_donnee</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_meta_donnee</h1>
<h2> Description générale </h2>
<p>
Contient les champs supplémentaires (non standard ou de spécialisation) de la base de données.
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cmd_id_donnee" class="pair" >
<td> 1 </td>
<td> cmd_id_donnee </td>
<td> cmd_id_d </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� primaire </td>
<td> oui </td>
<td> Identifiant de la donnée. </td>
</tr>
<tr id="cmd_ce_table" class="pair" >
<td> 2 </td>
<td> cmd_ce_table </td>
<td> cmd_ce_t </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la table. </td>
</tr>
<tr id="cmd_ce_ligne" class="pair" >
<td> 3 </td>
<td> cmd_ce_ligne </td>
<td> cmd_ce_l </td>
<td> VARCHAR(64) </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant de la ligne à laquelle le champ dans la table d'origine appartient. Pour les tables à clé primaire multi colonnes, bien respecter l'ordre des champs de la clé et inscrire chaque valeur de clé séparée par un tiret "-". </td>
</tr>
<tr id="cmd_ce_champ" class="pair" >
<td> 4 </td>
<td> cmd_ce_champ </td>
<td> cmd_ce_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant du champ. </td>
</tr>
<tr id="cmd_valeur" class="pair" >
<td> 5 </td>
<td> cmd_valeur </td>
<td> cmd_v </td>
<td> VARCHAR(255) </td>
<td> oui </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Valeur. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cmc_cmd </td>
<td> cmd_ce_champ </td>
<td> cmc_id_champ </td>
<td> <a href="coel_table_coel_meta_colonne.html">coel_meta_colonne</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cmlv_cmd_table </td>
<td> cmd_ce_table </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_meta_donnee">
discussion sur la table coel_meta_donnee
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_meta_historique_colonne.html
New file
0,0 → 1,169
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Métadonnée - coel_meta_historique_colonne</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Metadonnee.html">Métadonnée</a> > coel_meta_historique_colonne</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_meta_historique_colonne</h1>
<h2> Description générale </h2>
<p>
Contient l'historique des valeurs des champs pour les enregistrements des tables de la base de données.<br />
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cmhc_id_historique_colonne" class="pair" >
<td> 1 </td>
<td> cmhc_id_historique_colonne </td>
<td> cmhc_id_hc </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> clé primaire </td>
<td> oui </td>
<td> Identifiant de cet enregistrement historisé. </td>
</tr>
<tr id="cmhc_ce_historique_ligne" class="pair" >
<td> 2 </td>
<td> cmhc_ce_historique_ligne </td>
<td> cmhc_ce_hl </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> clé étrangère </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
<tr id="cmhc_ce_champ" class="pair" >
<td> 3 </td>
<td> cmhc_ce_champ </td>
<td> cmhc_ce_c </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> clé étrangère </td>
<td> non </td>
<td> Identifiant du champ. </td>
</tr>
<tr id="cmhc_valeur" class="pair" >
<td> 4 </td>
<td> cmhc_valeur </td>
<td> cmhc_v </td>
<td> VARCHAR(255) </td>
<td> oui </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Valeur du champ pour cette ligne. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cmc_cmh </td>
<td> cmhc_ce_champ </td>
<td> cmc_id_champ </td>
<td> <a href="coel_table_coel_meta_colonne.html">coel_meta_colonne</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cmhl_cmhc </td>
<td> cmhc_ce_historique_ligne </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_meta_historique_colonne">
discussion sur la table coel_meta_historique_colonne
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 2 septembre 2009 19:56:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_table_coel_publication_a_personne.html
New file
0,0 → 1,205
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Publication - coel_publication_a_personne</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Publication.html">Publication</a> > coel_publication_a_personne</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_publication_a_personne</h1>
<h2> Description générale </h2>
<p>
Permet de lister les publications d'une personne.
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="cpuap_id_publication" class="pair" >
<td> 1 </td>
<td> cpuap_id_publication </td>
<td> cpuap_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant d'une publication. </td>
</tr>
<tr id="cpuap_id_personne" class="pair" >
<td> 2 </td>
<td> cpuap_id_personne </td>
<td> cpuap_id_p </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant d'une personne. </td>
</tr>
<tr id="cpuap_id_role" class="pair" >
<td> 3 </td>
<td> cpuap_id_role </td>
<td> cpuap_id_r </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Rôle de la personne vis à vis de la publication : contributeur, auteur... </td>
</tr>
<tr id="cpuap_ce_truk_type" class="pair" >
<td> 4 </td>
<td> cpuap_ce_truk_type </td>
<td> cpuap_ce_tt </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Contient le type de référence bibliographique : nécrologie, biographie, publication personnelle... </td>
</tr>
<tr id="cpuap_ce_meta" class="pair" >
<td> 5 </td>
<td> cpuap_ce_meta </td>
<td> cpuap_ce_m </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cp_cpuap </td>
<td> cpuap_id_personne </td>
<td> cp_id_personne </td>
<td> <a href="coel_table_coel_personne.html">coel_personne</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cpu_cpuap </td>
<td> cpuap_id_publication </td>
<td> cpu_id_publication </td>
<td> <a href="coel_table_coel_publication.html">coel_publication</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmhl_cpuap_meta </td>
<td> cpuap_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
<tr class="pair" >
<td> 4 </td>
<td> fk_cmlv_cpuap_type </td>
<td> cpuap_ce_truk_type </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 5 </td>
<td> fk_cmlv_cpuap_role </td>
<td> cpuap_id_role </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_publication_a_personne">
discussion sur la table coel_publication_a_personne
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel_module_Personne.html
New file
0,0 → 1,91
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Personne</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > Personne</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<h1> Module Personne</h1>
<p id="miniature" >
<a href="images/modules/Personne.png" title="Voir cette image avec un zoom de 100%.">
<img src="images/miniatures/miniature_Personne.png" alt="Miniature du modèle du module Personne" />
</a>
</p>
<h2> Description générale </h2>
<p>
Module de gestion des Personnes.<br />
<br />
<b>Révision : </b>903
</p>
<h2> Liste des tables </h2>
<ol class="type_01">
<li><a href="coel_table_coel_personne.html">coel_personne</a> : Contient les informations sur les personnes.<br />Par personne nous entendons à la fois les utilisateurs de l'application mais aussi les personnes contacts, les botanistes collecteurs, auteurs...<br />INFO : cp_fmt_nom_complet</li>
<li><a href="coel_table_coel_personne_a_relation.html">coel_personne_a_relation</a> : Relation entre deux personnes vis à vis d'un projet.</li>
</ol>
<h2> Dépot SVN </h2>
<p>
Voir la page concernant ce module sur le dépot SVN :
<a href="http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.coel&path=%2Ftrunk%2Fdoc%2Fbdd%2Fcoel.xml">
coel.xml
</a>
</p>
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant ce module :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_Personne">
discussion sur le module Personne
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
/tags/v1.0-syrah/doc/bdd/coel_module_Collection.html
New file
0,0 → 1,99
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Collection</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > Collection</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<h1> Module Collection</h1>
<p id="miniature" >
<a href="images/modules/Collection.png" title="Voir cette image avec un zoom de 100%.">
<img src="images/miniatures/miniature_Collection.png" alt="Miniature du modèle du module Collection" />
</a>
</p>
<h2> Description générale </h2>
<p>
Module de gestion des Collections.<br />
<br />
<b>Révision : </b>903
</p>
<h2> Liste des tables </h2>
<ol class="type_01">
<li><a href="coel_table_coel_collection.html">coel_collection</a> : Contient les informations sur les collections.INFO : cc_nom<br /></li>
<li><a href="coel_table_coel_collection_a_commentaire.html">coel_collection_a_commentaire</a> : Permet de lister les commentaires / notes faits sur une collection.</li>
<li><a href="coel_table_coel_collection_a_personne.html">coel_collection_a_personne</a> : Permet de lister les personnes en rapport avec une collection.</li>
<li><a href="coel_table_coel_collection_a_publication.html">coel_collection_a_publication</a> : Permet de lister les publication liées à une collection.</li>
<li><a href="coel_table_coel_collection_a_relation.html">coel_collection_a_relation</a> : Permet de lister les relations entre collection autre que hiérarchique.</li>
<li><a href="coel_table_coel_collection_botanique.html">coel_collection_botanique</a> : Toutes les informations spécialisées sur une collection de type : botanique</li>
</ol>
<h2> Dépot SVN </h2>
<p>
Voir la page concernant ce module sur le dépot SVN :
<a href="http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.coel&path=%2Ftrunk%2Fdoc%2Fbdd%2Fcoel.xml">
coel.xml
</a>
</p>
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant ce module :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_Collection">
discussion sur le module Collection
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
/tags/v1.0-syrah/doc/bdd/coel_table_coel_structure_conservation.html
New file
0,0 → 1,393
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Structure - coel_structure_conservation</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > <a href="coel_module_Structure.html">Structure</a> > coel_structure_conservation</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<!-- CONTENU_CORPS -->
<h1> Table coel_structure_conservation</h1>
<h2> Description générale </h2>
<p>
Toutes les données spécifiques à la conservation au sein d'une structure.
</p>
<h2> Liste des colonnes </h2>
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Nom </th>
<th> Code </th>
<th> Type données </th>
<th> Obligatoire </th>
<th> Valeur défaut </th>
<th> Type champ </th>
<th> Index </th>
<th> Description </th>
</thead>
<tbody>
<tr id="csc_id_structure" class="pair" >
<td> 1 </td>
<td> csc_id_structure </td>
<td> csc_id_s </td>
<td> INTEGER </td>
<td> oui </td>
<td> </td>
<td> cl� �trang�re </td>
<td> oui </td>
<td> Identifiant de la structure. </td>
</tr>
<tr id="csc_mark_formation" class="pair" >
<td> 2 </td>
<td> csc_mark_formation </td>
<td> csc_mf </td>
<td> BOOL </td>
<td> non </td>
<td> 0 </td>
<td> standard </td>
<td> non </td>
<td> Le personnel s'occupant des collections botaniques a-t-il suivi des formations en conservation ? </td>
</tr>
<tr id="csc_formation" class="pair" >
<td> 3 </td>
<td> csc_formation </td>
<td> csc_f </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Les formations en conservation suvi par le personnel. </td>
</tr>
<tr id="csc_mark_formation_interet" class="pair" >
<td> 4 </td>
<td> csc_mark_formation_interet </td>
<td> csc_mfi </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Le personnel s'occupant des collections botaniques a-t-il suivi des formations en conservation ? </td>
</tr>
<tr id="csc_truk_stockage_local" class="pair" >
<td> 5 </td>
<td> csc_truk_stockage_local </td>
<td> csc_tsl </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Avez-vous des locaux spécifiques de stockage des collections botaniques ? </td>
</tr>
<tr id="csc_truk_stockage_meuble" class="pair" >
<td> 6 </td>
<td> csc_truk_stockage_meuble </td>
<td> csc_tsm </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Avez-vous des meubles spécifiques au stockage des collections botaniques ? </td>
</tr>
<tr id="csc_truk_stockage_parametre" class="pair" >
<td> 7 </td>
<td> csc_truk_stockage_parametre </td>
<td> csc_tsp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Quels paramètres maîtrisez-vous ? </td>
</tr>
<tr id="csc_mark_collection_commune" class="pair" >
<td> 8 </td>
<td> csc_mark_collection_commune </td>
<td> csc_mcc </td>
<td> BOOL </td>
<td> oui </td>
<td> 0 </td>
<td> standard </td>
<td> non </td>
<td> Les collections botaniques sont-elles conservées avec d'autres collections dans les mêmes locaux (problème de conservation en commun) ? </td>
</tr>
<tr id="csc_truk_collection_autre" class="pair" >
<td> 9 </td>
<td> csc_truk_collection_autre </td>
<td> csc_tca </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Actuellement, vos collections botaniques s'accroissent-elles de nouvelles acquisitions ? </td>
</tr>
<tr id="csc_mark_acces_controle" class="pair" >
<td> 10 </td>
<td> csc_mark_acces_controle </td>
<td> csc_mac </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> L'accès à vos collections botaniques est-il contrôlé (ex. : manipulation réservée à des personnes compétentes) ? </td>
</tr>
<tr id="csc_mark_restauration" class="pair" >
<td> 11 </td>
<td> csc_mark_restauration </td>
<td> csc_mr </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Effectuez-vous actuellement des opérations de restauration ou de remise en état de vos collections botaniques ? </td>
</tr>
<tr id="csc_truk_restauration_operation" class="pair" >
<td> 12 </td>
<td> csc_truk_restauration_operation </td>
<td> csc_tro </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Les différentes opérations de restauration actuellement menées. </td>
</tr>
<tr id="csc_ce_materiel_conservation" class="pair" >
<td> 13 </td>
<td> csc_ce_materiel_conservation </td>
<td> csc_ce_mc </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Utilisez-vous du matériel de conservation ? </td>
</tr>
<tr id="csc_truk_materiel_autre" class="pair" >
<td> 14 </td>
<td> csc_truk_materiel_autre </td>
<td> csc_tma </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Le matériel, dit de "non conservation" utilisé. </td>
</tr>
<tr id="csc_mark_traitement" class="pair" >
<td> 15 </td>
<td> csc_mark_traitement </td>
<td> csc_mt </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Réalisez-vous actuellement des traitements globaux contre les insectes ? </td>
</tr>
<tr id="csc_truk_traitement" class="pair" >
<td> 16 </td>
<td> csc_truk_traitement </td>
<td> csc_tt </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Traitements globaux contre les insectes. </td>
</tr>
<tr id="csc_mark_acquisition_collection" class="pair" >
<td> 17 </td>
<td> csc_mark_acquisition_collection </td>
<td> csc_mac </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Actuellement, vos collections botaniques s'accroissent-elles de nouvelles acquisitions ? </td>
</tr>
<tr id="csc_mark_acquisition_echantillon" class="pair" >
<td> 18 </td>
<td> csc_mark_acquisition_echantillon </td>
<td> csc_mae </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Actuellement mettez-vous en herbier de nouveaux échantillons ? </td>
</tr>
<tr id="csc_mark_acquisition_traitement" class="pair" >
<td> 19 </td>
<td> csc_mark_acquisition_traitement </td>
<td> csc_mat </td>
<td> BOOL </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Si oui, faites-vous un traitement contre les insectes avant l'intégration dans vos collections ? </td>
</tr>
<tr id="csc_truk_acquisition_traitement_poison" class="pair" >
<td> 20 </td>
<td> csc_truk_acquisition_traitement_poison </td>
<td> csc_tatp </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Traitement de type empoisonnement effectué lors des des acquisitions. </td>
</tr>
<tr id="csc_truk_acquisition_traitement_insecte" class="pair" >
<td> 21 </td>
<td> csc_truk_acquisition_traitement_insecte </td>
<td> csc_tati </td>
<td> VARCHAR(255) </td>
<td> non </td>
<td> </td>
<td> standard </td>
<td> non </td>
<td> Traitement de type désinctisation effectué lors des des acquisitions. </td>
</tr>
<tr id="csc_ce_meta" class="pair" >
<td> 22 </td>
<td> csc_ce_meta </td>
<td> csc_ce_m </td>
<td> INTEGER </td>
<td> non </td>
<td> </td>
<td> cl� �trang�re </td>
<td> non </td>
<td> Identifiant des métadonnées de cet enregistrement. </td>
</tr>
</tbody>
</table>
<h2> Liste des relations </h2>
<!-- RELATION_ZONE_DEBUT -->
<table border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> N° </th>
<th> Code </th>
<th> Colonne dans cette table </th>
<th> Colonne dans la table liée </th>
<th> Nom table liée </th>
</thead>
<tbody>
<tr class="pair" >
<td> 1 </td>
<td> fk_cs_csc </td>
<td> csc_id_structure </td>
<td> cs_id_structure </td>
<td> <a href="coel_table_coel_structure.html">coel_structure</a> </td>
</tr>
<tr class="pair" >
<td> 2 </td>
<td> fk_cmlv_csc_materiel_conservation </td>
<td> csc_ce_materiel_conservation </td>
<td> cmlv_id_valeur </td>
<td> <a href="coel_table_coel_meta_liste_valeur.html">coel_meta_liste_valeur</a> </td>
</tr>
<tr class="pair" >
<td> 3 </td>
<td> fk_cmhl_csc_meta </td>
<td> csc_ce_meta </td>
<td> cmhl_id_historique_ligne </td>
<td> <a href="coel_table_coel_meta_historique_ligne.html">coel_meta_historique_ligne</a> </td>
</tr>
</tbody>
</table>
<!-- RELATION_ZONE_FIN -->
<!--
<h2> Régles </h2>
<h2> Domaine </h2>
-->
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant cette table :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_coel_structure_conservation">
discussion sur la table coel_structure_conservation
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel.css
New file
0,0 → 1,221
/*--------------------------------------------------------------------------------------------------------------*/
/* Structure de la page */
 
#zone_bandeau {
position : absolute;
top: 0%;
left: 0%;
width: 98%;
height: 60px;
margin: 5px 5px 5px 5px;
padding: 5px 5px 5px 5px;
}
 
#logo {
float : left;
height: 20%;
width: 40%;
}
 
#rapport_nom {
float : left;
line-height: 5%;
width: 40%;
}
 
#accessibilite {
position : absolute;
bottom: 0px;
right: 0px;
width: 40%;
margin: 0%;
padding: 0%;
text-align: right;
display: none;
}
 
#accessibilite li {
display: inline;
line-height: 5%;
}
 
/*
#zone_menu {
position : absolute;
top: 60px;
left: 0%;
width: 20%;
margin: 5px 0px 50px 5px;
padding: 5px 0px 50px 5px;
}
 
#zone_menu li ul {
display: none;
}
 
#zone_menu li:hover > ul {
display: block;
}
 
#zone_menu #menus_niveau_1 {
margin: 0px 0px 0px 5px;
padding: 0px 0px 0px 0px;
text-align: left;
}
 
#zone_menu #menus_niveau_2 {
margin: 0px 0px 0px 10px;
padding: 0px 0px 0px 0px;
text-align: left;
}
 
#zone_menu #menus_niveau_3 {
margin: 0px 0px 0px 10px;
padding: 0px 0px 0px 0px;
text-align: left;
}
 
#zone_menu #identification {
width: 100%;
}
*/
 
#zone_contenu {
position : absolute;
top: 80px;
left: 0%;
width: 98%;
margin: 5px 5px 5px 5px;
padding: 5px 5px 5px 5px;
}
 
#zone_contenu #zone_contenu_corps {
padding: 5px 5px 5px 5px;
}
 
#zone_contenu #zone_contenu_pied p {
text-align: center;
}
 
#zone_contenu #zone_pied p {
text-align: center;
}
 
#miniature {
float : right;
}
/*--------------------------------------------------------------------------------------------------------------*/
/* Décoration */
#rapport_nom {
font-size: 2.5em;
font-family: arial, verdana, sans-serif;
}
 
body {
font-size: 90%;
font-family: arial, verdana, sans-serif;
color:black;
background-color: #D7F2D7;
margin: 0px 0px 0px 0px;
}
 
h1 {
font-size: 2.1em;
color:green;
background-color:transparent;
text-align:left;
}
 
h2 {
font-size: 1.5em;
color:black;
background-color:transparent;
text-align:left;
}
 
h3 {
font-size: 1.6em;
color:black;
background-color:transparent;
text-align:left;
}
 
p {
background-color:transparent;
text-align:left;
margin-left:0px;
margin-right:0px;
}
 
li {
background-color:transparent;
text-align:left;
margin-left:0px;
margin-right:0px;
}
 
a {
font-weight: bold;
color: black;
background-color:transparent;
text-decoration:none;
}
 
a:link {
color: blue;
}
 
a:visited {
color: #8b008b;
}
 
a:hover {
background-color: #ffd700;
}
 
table {
border: medium solid #6495ed;
border-collapse: collapse;
width: 100%;
}
 
th {
font-family: monospace;
border: thin solid #6495ed;
padding: 5px;
background-color: #D0E3FA;
}
 
td {
font-family: sans-serif;
border: thin solid #6495ed;
padding: 5px
text-align: center;
background-color: #ffffff;
}
 
caption {
font-family: sans-serif;
}
 
#zone_bandeau {
}
 
#zone_bandeau #logo h1 {
font-size: 1em;
}
/*
#zone_menu {
border: 1px dashed blue;
}
 
#zone_menu ul {
font-size: 100%;
list-style-type: none;
}
*/
#zone_contenu_corps {
border: 1px dashed green;
background-color: white;
}
/tags/v1.0-syrah/doc/bdd/coel_module_Structure.html
New file
0,0 → 1,95
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Structure</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > Structure</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<h1> Module Structure</h1>
<p id="miniature" >
<a href="images/modules/Structure.png" title="Voir cette image avec un zoom de 100%.">
<img src="images/miniatures/miniature_Structure.png" alt="Miniature du modèle du module Structure" />
</a>
</p>
<h2> Description générale </h2>
<p>
Module de gestion des Structures.<br />
<br />
<b>Révision : </b>903
</p>
<h2> Liste des tables </h2>
<ol class="type_01">
<li><a href="coel_table_coel_structure.html">coel_structure</a> : Contient les informations sur les structures.<br />INFO : cs_nom</li>
<li><a href="coel_table_coel_structure_a_personne.html">coel_structure_a_personne</a> : Table de liaison permettant d'indiquer la composition de la structure en personnel.<br />Elle permet d'indiquer pour une personne vis à vis d'une structure :<br /> - si elle est contact<br /> - les informations de la personne spécifique à cette structure (ex. : téléphone du travail, fonction, service, statut...).</li>
<li><a href="coel_table_coel_structure_conservation.html">coel_structure_conservation</a> : Toutes les données spécifiques à la conservation au sein d'une structure.</li>
<li><a href="coel_table_coel_structure_valorisation.html">coel_structure_valorisation</a> : Toutes les données spécifiques à la valorisation au sein d'une structure.</li>
</ol>
<h2> Dépot SVN </h2>
<p>
Voir la page concernant ce module sur le dépot SVN :
<a href="http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.coel&path=%2Ftrunk%2Fdoc%2Fbdd%2Fcoel.xml">
coel.xml
</a>
</p>
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant ce module :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_Structure">
discussion sur le module Structure
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
/tags/v1.0-syrah/doc/bdd/index.html
New file
0,0 → 1,160
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Accueil</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore//wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : Accueil</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<h1> Liste des modules </h1>
<p><a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">Pour revenir sur le Wikini d'eFlore, cliquer ici</a> ou sur le logo d'eFlore en haut à gauche.</p>
<h2> Tableau récapitulatif des modules </h2>
<!-- CONTENU_CORPS -->
<table class="eflore_table" border="1" cellpadding="2" cellspacing="0" >
<thead>
<th> Numéro </th>
<th> Nom et liens vers la description du module </th>
<th> Abréviation </th>
<th> Etat du module </th>
<th> Etat de l'aide </th>
<th> Nbre tables </th>
<th> Révision </th>
<th> Commentaires </th>
</thead>
<tbody>
<tr>
<td> 1 </td>
<td> <a href="coel_module_Collection.html">Collection</a> </td>
<td> CC </td>
<td> OK </td>
<td> OK </td>
<td> 22 </td>
<td> 903 </td>
<td> Module de gestion des Collections.<br /> </td>
</tr>
<tr>
<td> 2 </td>
<td> <a href="coel_module_Commentaire.html">Commentaire</a> </td>
<td> CCM </td>
<td> OK </td>
<td> OK </td>
<td> 22 </td>
<td> 903 </td>
<td> Module contenant les tables permettant de gérer les commentaires.<br /> </td>
</tr>
<tr>
<td> 3 </td>
<td> <a href="coel_module_Metadonnee.html">Métadonnée</a> </td>
<td> CM </td>
<td> OK </td>
<td> OK </td>
<td> 22 </td>
<td> 903 </td>
<td> Module de gestion des Métadonnées.<br /> </td>
</tr>
<tr>
<td> 4 </td>
<td> <a href="coel_module_Personne.html">Personne</a> </td>
<td> CP </td>
<td> OK </td>
<td> OK </td>
<td> 22 </td>
<td> 903 </td>
<td> Module de gestion des Personnes.<br /> </td>
</tr>
<tr>
<td> 5 </td>
<td> <a href="coel_module_Projet.html">Projet</a> </td>
<td> CPR </td>
<td> OK </td>
<td> OK </td>
<td> 22 </td>
<td> 903 </td>
<td> Module de gestion des Projets.<br /> </td>
</tr>
<tr>
<td> 6 </td>
<td> <a href="coel_module_Publication.html">Publication</a> </td>
<td> CPU </td>
<td> OK </td>
<td> OK </td>
<td> 22 </td>
<td> 903 </td>
<td> Module de gestion des Publications.<br /> </td>
</tr>
<tr>
<td> 7 </td>
<td> <a href="coel_module_Structure.html">Structure</a> </td>
<td> CS </td>
<td> OK </td>
<td> OK </td>
<td> 22 </td>
<td> 903 </td>
<td> Module de gestion des Structures.<br /> </td>
</tr>
</tbody>
</table>
<p>Nombre total de tables : 154</p>
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant les modules :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussionListeModules">
discussion sur la liste des modules
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
 
/tags/v1.0-syrah/doc/bdd/coel.sql.bz2
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/tags/v1.0-syrah/doc/bdd/coel.sql.bz2
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/tags/v1.0-syrah/doc/bdd/coel_module_Commentaire.html
New file
0,0 → 1,89
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Commentaire</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > Commentaire</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<h1> Module Commentaire</h1>
<p id="miniature" >
<a href="images/modules/Commentaire.png" title="Voir cette image avec un zoom de 100%.">
<img src="images/miniatures/miniature_Commentaire.png" alt="Miniature du modèle du module Commentaire" />
</a>
</p>
<h2> Description générale </h2>
<p>
Module contenant les tables permettant de gérer les commentaires.<br />
<br />
<b>Révision : </b>903
</p>
<h2> Liste des tables </h2>
<ol class="type_01">
<li><a href="coel_table_coel_commentaire.html">coel_commentaire</a> : Contient les commentaires.<br />INFO : ccm_titre</li>
</ol>
<h2> Dépot SVN </h2>
<p>
Voir la page concernant ce module sur le dépot SVN :
<a href="http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.coel&path=%2Ftrunk%2Fdoc%2Fbdd%2Fcoel.xml">
coel.xml
</a>
</p>
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant ce module :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_Commentaire">
discussion sur le module Commentaire
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
/tags/v1.0-syrah/doc/bdd/coel_module_Projet.html
New file
0,0 → 1,93
<?xml version="1.0" encoding="iso-8859-15" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head lang="fr" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coel v1.0 - Projet</title>
<link rel="stylesheet" type="text/css" media="screen" title="Classique" href="coel.css">
</head>
<body xml:lang="fr" lang="fr" >
<div id="zone_bandeau" >
<div id="logo">
<h1>
<a href="/wikini/eflore/wakka.php?wiki=AppliGwtCoel" title="Retourner à la page d'accueil du wiki">
<img src="/wikini/eflore/bibliotheque/images/eflore.jpg" width="110" height="31" alt="Logo" /><br />
Retourner à la page d'accueil du wiki
</a>
</h1>
</div>
<div id="rapport_nom">
<h1>Coel v1.0</h1>
</div>
<ul id="accessibilite">
<li><a href="#zone_contenu_tete">Aller au texte</a></li>
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li>
</ul>
</div>
</div>
<div id="zone_contenu">
<p>Vous êtes ici : <a href="index.html">Accueil</a> > Projet</p>
<div id="zone_contenu_tete">
<!-- CONTENU_TETE -->
</div>
<div id="zone_contenu_corps">
<h1> Module Projet</h1>
<p id="miniature" >
<a href="images/modules/Projet.png" title="Voir cette image avec un zoom de 100%.">
<img src="images/miniatures/miniature_Projet.png" alt="Miniature du modèle du module Projet" />
</a>
</p>
<h2> Description générale </h2>
<p>
Module de gestion des Projets.<br />
<br />
<b>Révision : </b>903
</p>
<h2> Liste des tables </h2>
<ol class="type_01">
<li><a href="coel_table_coel_projet.html">coel_projet</a> : Contient les informations sur un projet de données.<br />INFO : cpr_nom</li>
<li><a href="coel_table_coel_projet_a_structure.html">coel_projet_a_structure</a> : </li>
<li><a href="coel_table_coel_projet_version.html">coel_projet_version</a> : Table contenant les informations sur la version d'un projet.<br />INFO : cprv_nom</li>
</ol>
<h2> Dépot SVN </h2>
<p>
Voir la page concernant ce module sur le dépot SVN :
<a href="http://svn.tela-botanica.net/websvn/filedetails.php?repname=Applications.coel&path=%2Ftrunk%2Fdoc%2Fbdd%2Fcoel.xml">
coel.xml
</a>
</p>
<h2> Commentaires </h2>
<p>N'hésitez pas à  laisser sur le wiki vos suggestions, réactions... concernant ce module :
<a href="http://wiki.tela-botanica.org/eflore/wakka.php?wiki=EfloreV4AppliCoelDiscussion_Projet">
discussion sur le module Projet
</a>.
</p>
</div>
<div id="zone_contenu_pied">
<p>Documentation générée le 17 décembre 2009 17:49:13</p>
<!-- CONTENU_PIED -->
</div>
<div id="zone_pied">
<p> &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> / 2000-2008 - Le réseau des Botanistes Francophones</p>
</div>
</div>
<div id="zone_menu">
<!-- MENU -->
</div>
</body>
</html>
/tags/v1.0-syrah/doc/bdd
New file
Property changes:
Added: svn:mergeinfo
Added: svn:ignore
+coel.sql
/tags/v1.0-syrah/doc/xsd/tdwg_dw_core.xsd
New file
0,0 → 1,283
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- Introduction -->
<!-- ===================================================================== -->
<!-- Darwin Core XML schema -->
<!-- History: -->
<!-- version 0.7 2007-04-23 R. De Giovanni: Changed namespace -->
<!-- version 0.6 2007-04-17 R. De Giovanni: Added qualification for -->
<!-- types included from tdwg_basetypes.xsd -->
<!-- version 0.5 2007-02-14 J. Wieczorek, R. De Giovanni, J. de la Torre -->
<!-- Status: -->
<!-- Ready for testing -->
<!-- See http://wiki.tdwg.org for current status of this standard. -->
<!-- ===================================================================== -->
<!-- Schema -->
<!-- ===================================================================== -->
<xs:schema targetNamespace="http://rs.tdwg.org/dwc/dwcore/" xmlns:dwe="http://rs.tdwg.org/dwc/dwelement" xmlns:dwc="http://rs.tdwg.org/dwc/dwcore/" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="0.7">
 
<!-- ============================================================== -->
<!-- Documentation -->
<!-- ============================================================== -->
<xs:annotation>
<xs:documentation> Protocol independent XML Schema for Darwin Core. For element
documentation, see
http://wiki.tdwg.org/twiki/bin/view/DarwinCore/DarwinCoreDraftStandard.
</xs:documentation>
</xs:annotation>
 
 
<!-- ============================================================== -->
<!-- Includes -->
<!-- ============================================================== -->
<!-- include - inclusions must be top-level elements (children of -->
<!-- the xs:schema element. Inclusion is restricted to the -->
<!-- definition of a single namespace. -->
<!-- ============================================================== -->
<xs:include schemaLocation="http://rs.tdwg.org/dwc/tdwg_basetypes.xsd"/>
 
 
<!-- ============================================================== -->
<!-- Imports -->
<!-- ============================================================== -->
<!-- import - must be used to import definitions from other -->
<!-- namespaces. -->
<!-- ============================================================== -->
<xs:import namespace="http://rs.tdwg.org/dwc/dwelement" schemaLocation="http://rs.tdwg.org/dwc/tdwg_dw_element.xsd"/>
 
 
<!-- ============================================================== -->
<!-- Elements -->
<!-- ============================================================== -->
<xs:element name="GlobalUniqueIdentifier" type="xs:string" substitutionGroup="dwe:dwElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/GlobalUniqueIdentifier" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="DateLastModified" type="xs:dateTime" substitutionGroup="dwe:dwElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/DateLastModified" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="BasisOfRecord" type="xs:string" substitutionGroup="dwe:dwElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/BasisOfRecord" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="InstitutionCode" type="xs:string" substitutionGroup="dwe:dwElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/InstitutionCode" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="CollectionCode" type="xs:string" substitutionGroup="dwe:dwElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/CollectionCode" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="CatalogNumber" type="xs:string" substitutionGroup="dwe:dwElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/CatalogNumber" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="InformationWithheld" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/InformationWithheld" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Remarks" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Remarks" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="ScientificName" type="xs:string" substitutionGroup="dwe:dwElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/ScientificName" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="HigherTaxon" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/HigherTaxon" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Kingdom" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Kingdom" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Phylum" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Phylum" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Class" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Class" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Order" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Order" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Family" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Family" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Genus" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Genus" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="SpecificEpithet" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/SpecificEpithet" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="InfraspecificRank" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/InfraspecificRank" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="InfraspecificEpithet" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/InfraspecificEpithet" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="AuthorYearOfScientificName" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/AuthorYearOfScientificName" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="NomenclaturalCode" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/NomenclaturalCode" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="IdentificationQualifier" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/IdentificationQualifier" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="HigherGeography" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/HigherGeography" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Continent" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Continent" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="WaterBody" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/WaterBody" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="IslandGroup" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/IslandGroup" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Island" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Island" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Country" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Country" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="StateProvince" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/StateProvince" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="County" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/County" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Locality" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Locality" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="MinimumElevationInMeters" type="xs:double" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/MinimumElevationInMeters" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="MaximumElevationInMeters" type="xs:double" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/MaximumElevationInMeters" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="MinimumDepthInMeters" type="xs:double" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/MinimumDepthInMeters" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="MaximumDepthInMeters" type="xs:double" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/MaximumDepthInMeters" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="CollectingMethod" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/CollectingMethod" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="ValidDistributionFlag" type="xs:boolean" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/ValidDistributionFlag" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="EarliestDateCollected" type="dwc:DateTimeISO" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/EarliestDateCollected" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="LatestDateCollected" type="dwc:DateTimeISO" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/LatestDateCollected" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="DayOfYear" type="dwc:dayOfYearDataType" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/DayOfYear" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Collector" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Collector" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Sex" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Sex" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="LifeStage" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/LifeStage" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="Attributes" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/Attributes" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="ImageURL" type="xs:anyURI" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/ImageURL" xml:lang="en"/>
</xs:annotation>
</xs:element>
<xs:element name="RelatedInformation" type="xs:string" substitutionGroup="dwe:dwElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/RelatedInformation" xml:lang="en"/>
</xs:annotation>
</xs:element>
 
</xs:schema>
/tags/v1.0-syrah/doc/xsd/tb_coel_str_element.xsd
New file
0,0 → 1,26
<?xml version="1.0" encoding="UTF-8"?>
<!-- ==================================================================== -->
<!-- Introduction -->
<!-- ==================================================================== -->
<!-- Schema to declare an abstract data element for use in substitution -->
<!-- groups so that arbitrary lists of elements so derived can be used to -->
<!-- compose a record. For example, see DarwinRecord.xsd -->
<!-- History: -->
<!-- version 0.5 2007-02-14 Renato De Giovanni, John Wieczorek -->
<!-- Status: -->
<!-- Ready for testing. -->
<!-- See http://wiki.tdwg.org for current status of this standard -->
<!-- ==================================================================== -->
<!-- Schema -->
<!-- ==================================================================== -->
<xs:schema targetNamespace="http://www.tela-botanica.org/coel/str/element" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="0.1">
 
<!-- ============================================================== -->
<!-- Elements -->
<!-- ============================================================== -->
<xs:element name="coelStrElement" abstract="true"/>
<xs:annotation>
<xs:documentation source="http://www.tela-botanica.org/appli:coel/doc/v1.00/coelStrElement" xml:lang="en"/>
</xs:annotation>
 
</xs:schema>
/tags/v1.0-syrah/doc/xsd/tdwg_dw_element.xsd
New file
0,0 → 1,26
<?xml version="1.0" encoding="UTF-8"?>
<!-- ==================================================================== -->
<!-- Introduction -->
<!-- ==================================================================== -->
<!-- Schema to declare an abstract data element for use in substitution -->
<!-- groups so that arbitrary lists of elements so derived can be used to -->
<!-- compose a record. For example, see DarwinRecord.xsd -->
<!-- History: -->
<!-- version 0.5 2007-02-14 Renato De Giovanni, John Wieczorek -->
<!-- Status: -->
<!-- Ready for testing. -->
<!-- See http://wiki.tdwg.org for current status of this standard -->
<!-- ==================================================================== -->
<!-- Schema -->
<!-- ==================================================================== -->
<xs:schema targetNamespace="http://rs.tdwg.org/dwc/dwelement" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="0.5">
 
<!-- ============================================================== -->
<!-- Elements -->
<!-- ============================================================== -->
<xs:element name="dwElement" abstract="true"/>
<xs:annotation>
<xs:documentation source="http://wiki.tdwg.org/twiki/bin/view/DarwinCore/DarwinElement" xml:lang="en"/>
</xs:annotation>
 
</xs:schema>
/tags/v1.0-syrah/doc/xsd/tb_coel_str.xsd
New file
0,0 → 1,86
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- Introduction -->
<!-- ===================================================================== -->
<!-- Darwin Core XML schema -->
<!-- History: -->
<!-- version 0.7 2007-04-23 R. De Giovanni: Changed namespace -->
<!-- version 0.6 2007-04-17 R. De Giovanni: Added qualification for -->
<!-- types included from tdwg_basetypes.xsd -->
<!-- version 0.5 2007-02-14 J. Wieczorek, R. De Giovanni, J. de la Torre -->
<!-- Status: -->
<!-- Ready for testing -->
<!-- See http://wiki.tdwg.org for current status of this standard. -->
<!-- ===================================================================== -->
<!-- Schema -->
<!-- ===================================================================== -->
<xs:schema targetNamespace="http://www.tela-botanica.org/coel/str/" xmlns:cse="http://www.tela-botanica.org/coel/str/element" xmlns:cs="http://www.tela-botanica.org/coel/str/" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="0.1">
 
<!-- ============================================================== -->
<!-- Documentation -->
<!-- ============================================================== -->
<xs:annotation>
<xs:documentation>Protocole XML Schema pour COEL Structure. Pour la documentation complête voir http://www.tela-botanica.org/appli:coel/doc/v1.00/</xs:documentation>
</xs:annotation>
 
<!-- ============================================================== -->
<!-- Includes -->
<!-- ============================================================== -->
<!-- include - inclusions must be top-level elements (children of -->
<!-- the xs:schema element. Inclusion is restricted to the -->
<!-- definition of a single namespace. -->
<!-- ============================================================== -->
<xs:include schemaLocation="http://rs.tdwg.org/dwc/tdwg_basetypes.xsd"/>
 
<!-- ============================================================== -->
<!-- Imports -->
<!-- ============================================================== -->
<!-- import - must be used to import definitions from other -->
<!-- namespaces. -->
<!-- ============================================================== -->
<xs:import namespace="http://www.tela-botanica.org/coel/str/element" schemaLocation="http://localhost/coel/doc/xsd/tb_coel_str_element.xsd"/>
 
<!-- ============================================================== -->
<!-- Elements -->
<!-- ============================================================== -->
<xs:element name="IdStructure" type="xs:nonNegativeInteger" substitutionGroup="cse:coelStrElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_id_structure" xml:lang="fr"/>
</xs:annotation>
</xs:element>
<xs:element name="CeProjet" type="xs:nonNegativeInteger" substitutionGroup="cse:coelStrElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_ce_projet" xml:lang="fr"/>
</xs:annotation>
</xs:element>
<xs:element name="CeMere" type="xs:nonNegativeInteger" substitutionGroup="cse:coelStrElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_ce_mere" xml:lang="fr"/>
</xs:annotation>
</xs:element>
<xs:element name="Guid" type="xs:string" substitutionGroup="cse:coelStrElement" nillable="false">
<xs:annotation>
<xs:documentation source="http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_guid" xml:lang="fr"/>
</xs:annotation>
</xs:element>
<xs:element name="TrukIdentifiantAlternatif" type="xs:string" substitutionGroup="cse:coelStrElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_truk_identifiant_alternatif" xml:lang="fr"/>
</xs:annotation>
</xs:element>
<xs:element name="Nom" type="xs:string" substitutionGroup="cse:coelStrElement" nillable="true">
<xs:annotation>
<xs:documentation source="http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_structure.html#cs_nom" xml:lang="fr"/>
</xs:annotation>
</xs:element>
<xs:element name="DateModification" type="xs:dateTime">
<xs:annotation>
<xs:documentation source="http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_meta_historique_ligne.html#cmhl_date_modification" xml:lang="fr" />
</xs:annotation>
</xs:element>
<xs:element name="CeEtat" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation source="http://www.tela-botanica.org/appli:coel/doc/v1.00/coel_table_coel_meta_historique_ligne.html#cmhl_ce_etat" xml:lang="fr" />
</xs:annotation>
</xs:element>
</xs:schema>
/tags/v1.0-syrah/Coel-debug
New file
0,0 → 1,8
#!/bin/sh
APPDIR=`dirname $0`;
# Création d'un lien symbolique si nécessaire.
if [ ! -h $APPDIR/../org.tela_botanica.Coel ]; then
cd $APPDIR/..;
ln -s coel/war org.tela_botanica.Coel;
fi;
java -Xmx2048M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=3408,suspend=y -cp "$APPDIR/src:$APPDIR/bin:/opt/gwt-2.0.0/gwt-user.jar:/opt/gwt-2.0.0/gwt-dev.jar:/opt/gxt-2.1.0/gxt.jar" com.google.gwt.dev.DevMode -noserver -port 80 -startupUrl org.tela_botanica.Coel/Coel.html org.tela_botanica.Coel;
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/tags/v1.0-syrah/CoelTest-hosted
New file
0,0 → 1,3
#!/bin/sh
APPDIR=`dirname $0`;
java -Dgwt.args="-out war/coel-test" -Xmx256M -cp "$APPDIR/src:$APPDIR/test:$APPDIR/bin:/opt/eclipse/plugins/org.junit_3.8.2.v20090203-1005/junit.jar:/opt/gwt-2.0.0/gwt-user.jar:/opt/gwt-2.0.0/gwt-dev.jar:/opt/gxt-2.1.0/gxt.jar" junit.textui.TestRunner org.tela_botanica.client.CoelTestSuite "$@";
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/tags/v1.0-syrah/Coel-shell
New file
0,0 → 1,8
#!/bin/sh
APPDIR=`dirname $0`;
# Création d'un lien symbolique si nécessaire.
if [ ! -h $APPDIR/../org.tela_botanica.Coel ]; then
cd $APPDIR/..;
ln -s coel/war org.tela_botanica.Coel;
fi;
java -Xmx1024M -cp "$APPDIR/src:$APPDIR/bin:/opt/gwt-2.0.0/gwt-user.jar:/opt/gwt-2.0.0/gwt-dev.jar:/opt/gxt-2.1.0/gxt.jar" com.google.gwt.dev.DevMode -whitelist http://www.tela-botanica.org -noserver -port 80 -startupUrl org.tela_botanica.Coel/Coel.html org.tela_botanica.Coel;
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/Coel.gwt.xml
New file
0,0 → 1,29
<module rename-to='coel'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name="com.google.gwt.user.User"/>
<inherits name="com.extjs.gxt.ui.GXT"/>
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name="com.google.gwt.user.theme.standard.Standard"/>
<!-- <inherits name="com.google.gwt.user.theme.chrome.Chrome"/> -->
<!-- <inherits name="com.google.gwt.user.theme.dark.Dark"/> -->
 
<!-- Other module inherits -->
<inherits name="com.google.gwt.i18n.I18N"/>
<!-- <inherits name="com.google.gwt.junit.JUnit"/> -->
<extend-property name="locale" values="fr, en"/>
<!-- Specify the app entry point class. -->
<entry-point class="org.tela_botanica.client.Coel"/>
 
<!-- Specify the application specific style sheet. -->
<stylesheet src="Coel.css" />
 
<!-- Specify the application specific Javascript. -->
<script src="config.js" />
<!-- Permet d'accélérer le temps de compilation en compilant que pour Firefox -->
<!-- <set-property name="user.agent" value="gecko1_8"/> -->
</module>
/tags/v1.0-syrah/src/org/tela_botanica/client/Mediateur.java
New file
0,0 → 1,1311
package org.tela_botanica.client;
 
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.composants.AideFenetre;
import org.tela_botanica.client.composants.IdentificationFenetre;
import org.tela_botanica.client.composants.LicenceFenetre;
import org.tela_botanica.client.composants.AproposFenetre;
import org.tela_botanica.client.configuration.APropos;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.i18n.ErrorMessages;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.MenuApplicationId;
import org.tela_botanica.client.modeles.Utilisateur;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionACommentaire;
import org.tela_botanica.client.modeles.collection.CollectionACommentaireAsyncDao;
import org.tela_botanica.client.modeles.collection.CollectionACommentaireListe;
import org.tela_botanica.client.modeles.collection.CollectionAPersonne;
import org.tela_botanica.client.modeles.collection.CollectionAPersonneListe;
import org.tela_botanica.client.modeles.collection.CollectionAPublication;
import org.tela_botanica.client.modeles.collection.CollectionAPublicationListe;
import org.tela_botanica.client.modeles.collection.CollectionListe;
import org.tela_botanica.client.modeles.commentaire.Commentaire;
import org.tela_botanica.client.modeles.commentaire.CommentaireListe;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.personne.PersonneListe;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.publication.PublicationAPersonne;
import org.tela_botanica.client.modeles.publication.PublicationAPersonneListe;
import org.tela_botanica.client.modeles.publication.PublicationListe;
import org.tela_botanica.client.modeles.structure.Structure;
import org.tela_botanica.client.modeles.structure.StructureAPersonne;
import org.tela_botanica.client.modeles.structure.StructureAPersonneListe;
import org.tela_botanica.client.modeles.structure.StructureConservation;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.modeles.structure.StructureValorisation;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.vues.ContenuVue;
import org.tela_botanica.client.vues.EnteteVue;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.NavigationVue;
import org.tela_botanica.client.vues.PopupChargement;
import org.tela_botanica.client.vues.StatutVue;
import org.tela_botanica.client.vues.MenuVue;
import org.tela_botanica.client.vues.accueil.AccueilVue;
import org.tela_botanica.client.vues.collection.CollectionForm;
import org.tela_botanica.client.vues.collection.CollectionListeVue;
import org.tela_botanica.client.vues.collection.CollectionVue;
import org.tela_botanica.client.vues.commentaire.CommentaireForm;
import org.tela_botanica.client.vues.commentaire.CommentaireVue;
import org.tela_botanica.client.vues.personne.PersonneForm;
import org.tela_botanica.client.vues.personne.PersonneVue;
import org.tela_botanica.client.vues.projet.ProjetForm;
import org.tela_botanica.client.vues.projet.ProjetVue;
import org.tela_botanica.client.vues.publication.PublicationForm;
import org.tela_botanica.client.vues.publication.PublicationVue;
import org.tela_botanica.client.vues.structure.StructureForm;
import org.tela_botanica.client.vues.structure.StructureVue;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.MessageBoxEvent;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.Component;
import com.extjs.gxt.ui.client.widget.Dialog;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.extjs.gxt.ui.client.widget.Viewport;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.Dictionary;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.RootPanel;
 
public class Mediateur implements Rafraichissable {
private Viewport viewport;
private Modele modele = null;
public static final Constantes i18nC = getI18nConstante();
public static final ErrorMessages i18nM = getI18nMessage();
private EnteteVue panneauNord = null;
private NavigationVue panneauOuest = null;
private ContenuVue panneauCentre = null;
private StatutVue panneauSud = null;
private IdentificationFenetre fenetreIdentification = null;
private int nbElements = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
public Mediateur() {
// Enregistrement du Médiateur dans le Registre
Registry.register(RegistreId.MEDIATEUR, this);
 
//Initialisation du Registre
initialiserRegistre();
// Création du Modèle qui s'enregistre lui même dans le Registre
modele = new Modele();
 
// Création du Viewport qui contient la disposition globale de l'application
viewport = new Viewport();
viewport.setLayout(new BorderLayout());
 
// Création des différents panneaux
creerPanneauNord();
creerPanneauOuest();
creerPanneauCentral();
creerPanneauSud();
// Connection de l'utilisateur
connecterUtilisateur(null, null);
// Retour à GWT du Viewport une fois constuit
RootPanel.get().add(viewport);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de l'I18N et du REGISTRE
//+----------------------------------------------------------------------------------------------------------------+
protected static Constantes getI18nConstante() {
return GWT.create(Constantes.class);
}
protected static ErrorMessages getI18nMessage() {
return GWT.create(ErrorMessages.class);
}
protected void initialiserRegistre() {
APropos apropos = new APropos();
Registry.register(RegistreId.APPLI_NOM, apropos.getAppliNom());
Registry.register(RegistreId.APPLI_CODE, apropos.getAppliCode());
Registry.register(RegistreId.APPLI_VERSION, apropos.getAppliVersionCode());
Registry.register(RegistreId.APPLI_VERSION_NOM, apropos.getAppliVersionNom());
Registry.register(RegistreId.APPLI_DEVELOPPEURS, apropos.getDeveloppeurs());
Registry.register(RegistreId.APPLI_TRADUCTEURS, apropos.getTraducteurs());
Registry.register(RegistreId.APPLI_LICENCE, apropos.getLicence());
Registry.register(RegistreId.APPLI_REVISION, apropos.getRevisionGlobale());
Registry.register(RegistreId.APPLI_COMPILATION_JAVA_VERSION, apropos.getVersionJavaCompilation());
Registry.register(RegistreId.APPLI_COMPILATION_DATE_HEURE, apropos.getDateHeureCompilation());
 
Registry.register(RegistreId.CONFIG, new Configuration());
Registry.register(RegistreId.POPUP_CHARGEMENT, new PopupChargement(this));
Registry.register(RegistreId.UTILISATEUR_COURANT, new Utilisateur());
Registry.register(RegistreId.PROJET_COURANT, new Projet());
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION des PANNEAUX PRINCIPAUX
//+----------------------------------------------------------------------------------------------------------------+
private void creerPanneauNord() {
panneauNord = new EnteteVue(this);
BorderLayoutData regionNord = new BorderLayoutData(LayoutRegion.NORTH, 100);
regionNord.setCollapsible(true);
regionNord.setFloatable(true);
regionNord.setSplit(false);
regionNord.setMargins(new Margins(5, 5, 0, 5));
viewport.add(panneauNord, regionNord);
}
private void creerPanneauOuest() {
panneauOuest = new NavigationVue(this);
BorderLayoutData regionOuest = new BorderLayoutData(LayoutRegion.WEST, 200);
regionOuest.setSplit(true);
regionOuest.setCollapsible(true);
regionOuest.setMargins(new Margins(5));
 
viewport.add(panneauOuest, regionOuest);
}
 
private void creerPanneauCentral() {
panneauCentre = new ContenuVue(this);
 
BorderLayoutData regionCentre = new BorderLayoutData(LayoutRegion.CENTER);
regionCentre.setMargins(new Margins(5, 5, 5, 0));
 
viewport.add(panneauCentre, regionCentre);
}
private void creerPanneauSud() {
panneauSud = new StatutVue();
BorderLayoutData regionSud = new BorderLayoutData(LayoutRegion.SOUTH, 20);
regionSud.setCollapsible(true);
regionSud.setFloatable(true);
regionSud.setSplit(false);
regionSud.setMargins(new Margins(0));
viewport.add(panneauSud, regionSud);
}
 
public void actualiserPanneauCentral() {
panneauCentre.layout();
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION du MENU
//+----------------------------------------------------------------------------------------------------------------+
public void clicMenu(String codeMenuClique) {
activerChargement(codeMenuClique);
panneauOuest.getMenu().selectionMenu(codeMenuClique);
if (codeMenuClique.equals(MenuApplicationId.ACCUEIL)) {
afficherAccueil();
} else if (codeMenuClique.equals(MenuApplicationId.PROJET)) {
selectionnerProjet(panneauCentre, null);
} else if (codeMenuClique.equals(MenuApplicationId.STRUCTURE)) {
selectionnerStructure(panneauCentre, null);
} else if (codeMenuClique.equals(MenuApplicationId.COLLECTION)) {
selectionnerCollection(panneauCentre, null, null);
} else if (codeMenuClique.equals(MenuApplicationId.PERSONNE)) {
selectionnerPersonne(panneauCentre, null, getProjetId());
} else if (codeMenuClique.equals(MenuApplicationId.PUBLICATION)) {
selectionnerPublication(panneauCentre, null);
} else if (codeMenuClique.equals(MenuApplicationId.COMMENTAIRE)) {
selectionnerCommentaire(panneauCentre, null);
} else {
GWT.log(i18nM.nonImplemente(codeMenuClique), null);
}
panneauCentre.layout();
}
 
public void activerChargement(String message) {
Debug.log(message);
afficherPopinChargement();
panneauSud.showBusy(i18nC.chargement()+" "+message);
}
public void desactiverChargement() {
masquerPopinChargement();
panneauSud.clear();
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES FENÊTRES
//+----------------------------------------------------------------------------------------------------------------+
 
public void ouvrirAide() {
AideFenetre aideFenetre = new AideFenetre();
aideFenetre.show();
// FIXME : apparament le fade In/Fade Out pose problème sur les navigateurs...
//aideFenetre.el().fadeIn(FxConfig.NONE);
}
 
public void ouvrirParametres() {
AproposFenetre parametresFenetre = new AproposFenetre();
parametresFenetre.show();
}
 
public void ouvrirIdentification() {
fenetreIdentification = new IdentificationFenetre(this);
fenetreIdentification.show();
}
 
public void ouvrirUrlExterne(String id) {
if (id.equals(ComposantId.MENU_CEL)) {
Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getUrl("cel"), "Carnet en ligne", "");
} else if (id.equals(ComposantId.MENU_BEL)) {
Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getUrl("cel"), "Biblio en ligne", "");
} else if (id.equals(ComposantId.MENU_BOGUE)) {
Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getUrl("bogue"), "Bogue", "");
} else if (id.equals(ComposantId.MENU_COMMENTAIRE)) {
Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getUrl("commentaire"), "Commentaire", "");
}
}
 
public void afficherFenetreLicence(IdentificationFenetre vue) {
LicenceFenetre lf = new LicenceFenetre(vue);
}
public void accepterLicence(Rafraichissable vue) {
modele.accepterLicence(vue);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de l'UTILISATEUR et de l'IDENTIFICATION
//+----------------------------------------------------------------------------------------------------------------+
/**
* Retourne l'identifiant de l'utilisateur courrant de l'application.
*/
public String getUtilisateurId() {
String id = null;
Utilisateur utilisateurCourant = (Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT);
if (!utilisateurCourant.getId().equals("")) {
id = utilisateurCourant.getId();
}
return id;
}
public Utilisateur getUtilisateur() {
Utilisateur utilisateurCourant = (Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT);
return utilisateurCourant;
}
public void connecterUtilisateur(String login, String mdp) {
modele.connecterUtilisateur(this, login, mdp);
}
public void deconnecterUtilisateur() {
modele.deconnecterUtilisateur(this);
}
public void repandreEtatIdentification(Utilisateur utilisateur) {
// Mise à jour du registre
Registry.register(RegistreId.UTILISATEUR_COURANT, utilisateur);
// Propagation de l'information de mise à jour de l'utilisateur
repandreInfoMiseAJourUtilisateur();
}
public void repandreInfoMiseAJourUtilisateur() {
// Création de l'information de mise à jour de l'utilisateur
Information info = new Information("maj_utilisateur");
 
// Rafraichissement de la fenêtre d'Identification
if (fenetreIdentification != null && fenetreIdentification.isVisible()) {
fenetreIdentification.rafraichir(info);
}
// Rafraichissement du panneau Nord
panneauNord.rafraichir(info);
 
// Rafraichissement du panneau Centre
if (panneauCentre != null) {
panneauCentre.rafraichir(info);
}
}
public void modifierUtilisateur() {
Utilisateur utilisateurCourant = (Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT);
panneauNord.rafraichir(utilisateurCourant);
modele.modifierUtilisateur(this, utilisateurCourant);
}
public void mettreAJourPersonneAnnuaire(Utilisateur utilisateur) {
panneauNord.rafraichir(utilisateur);
modele.mettreAJourPersonneAnnuaire(this, utilisateur);
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES VALEURS ET LISTES
//+----------------------------------------------------------------------------------------------------------------+
 
public void obtenirListeValeurEtRafraichir(Rafraichissable vueARafraichir, String listeId) {
modele.obtenirListeValeurs(vueARafraichir, ((Configuration) Registry.get(RegistreId.CONFIG)).getListeId(listeId));
}
public void obtenirValeurEtRafraichir(Rafraichissable vue, String listeId, String identifiantValeur) {
modele.obtenirValeur(vue, "abv", ((Configuration) Registry.get(RegistreId.CONFIG)).getListeId(listeId), identifiantValeur);
}
public void obtenirListeRegionsEtRafraichir(Rafraichissable vue, String strListeId, String strPays) {
modele.obtenirListeRegion(vue, ((Configuration) Registry.get(RegistreId.CONFIG)).getListeId(strListeId), strPays+".__");
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION des APPLETS de l'ACCUEIL
//+----------------------------------------------------------------------------------------------------------------+
public void afficherAccueil() {
if (!(panneauCentre.getContenu() instanceof AccueilVue)) {
panneauCentre.removeAll();
panneauCentre.add(new AccueilVue(this));
}
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION des PROJETS
//+----------------------------------------------------------------------------------------------------------------+
public void afficherFormProjet(String projetId) {
panneauCentre.removeAll();
ProjetForm projetForm = new ProjetForm(this, projetId);
panneauCentre.add(projetForm);
panneauCentre.layout();
}
public void afficherListeProjets(ProjetListe projetsACharger) {
if (!(panneauCentre.getContenu() instanceof ProjetVue)) {
panneauCentre.removeAll();
panneauCentre.add(new ProjetVue(this));
panneauCentre.setId(ComposantId.PANNEAU_PROJET_LISTE);
panneauCentre.layout();
}
panneauCentre.getContenu().rafraichir(projetsACharger);
mettreFiltreAJour(projetsACharger);
}
public void mettreFiltreAJour(ProjetListe projetsACharger) {
panneauOuest.getFiltre().rafraichir(projetsACharger);
}
public void mettreFiltreAJour(List<Projet> projetsACharger) {
panneauOuest.getFiltre().rafraichir(projetsACharger);
}
public void clicListeProjet(Projet projet) {
panneauCentre.getContenu().rafraichir(projet);
}
 
public void clicSupprimerProjet(final List<Projet> projetListe) {
if (projetListe.size() <= 0) {
MessageBox.alert("Attention", "Vous devez sélectionner un projet", null);
} else {
String message = "Voulez-vous vraiment supprimer ces projets ?";
if (projetListe.size() == 1) {
message = "Voulez-vous vraiment supprimer ce projet ?";
}
final Listener<MessageBoxEvent> listenerSuppression = new Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent ce) {
Dialog dialog = (Dialog) ce.getComponent();
Button btn = ce.getButtonClicked();
if (btn.getText().equals(dialog.yesText)) {
modele.supprimerProjet(panneauCentre.getContenu(), projetListe);
}
}
};
MessageBox.confirm("Supprimer un projet", message, listenerSuppression);
}
}
 
public void clicModifierProjet(List<Projet> projetsSelectionnes) {
if (projetsSelectionnes.size() == 0) {
Info.display("Information", "Veuillez sélectionner un projet.");
} else if (projetsSelectionnes.size() > 1) {
Info.display("Information", "Veuillez sélectionner un seul projet à la fois.");
} else if (projetsSelectionnes.size() == 1) {
afficherFormProjet(projetsSelectionnes.get(0).getId());
} else {
Info.display("Erreur", "Une erreur est survenue dans la méthode clicModifierProjet() du Médiateur.");
}
}
 
public void clicAjouterProjet() {
afficherFormProjet(null);
}
 
public void selectionnerProjet(Rafraichissable vueARafraichir, String projetId) {
selectionnerProjet(vueARafraichir, projetId, null, 0, nbElements);
}
public void selectionnerProjet(Rafraichissable vueARafraichir, String projetId, String nom, int start, int nbElements) {
modele.selectionnerProjet(vueARafraichir, projetId, nom, start, this.nbElements);
}
 
public void ajouterProjet(Rafraichissable vueARafraichir, Projet projetCollecte) {
modele.ajouterProjet(vueARafraichir, projetCollecte);
}
 
public void modifierProjet(Rafraichissable vueARafraichir, Projet projetCollecte) {
modele.modifierProjet(vueARafraichir, projetCollecte);
}
//+----------------------------------------------------------------------------------------------------------------+
// SELECTION : projet
/**
* Retourne l'identifiant du projet courrant de l'application.
*/
public String getProjetId() {
String id = null;
Projet projetCourant = (Projet) Registry.get(RegistreId.PROJET_COURANT);
if (projetCourant != null && !projetCourant.getId().equals("")) {
id = projetCourant.getId();
}
return id;
}
public void selectionnerProjetCourant(Projet projetSelectionne) {
Registry.register(RegistreId.PROJET_COURANT, projetSelectionne);
if (panneauCentre.getContenu() instanceof AccueilVue) {
desactiverChargement();
} else if (panneauCentre.getContenu() instanceof ProjetVue) {
selectionnerProjet(panneauCentre.getContenu(), null);
} else if (panneauCentre.getContenu() instanceof StructureVue) {
selectionnerStructure(panneauCentre.getContenu(), null);
} else if (panneauCentre.getContenu() instanceof CollectionVue) {
selectionnerCollection(panneauCentre.getContenu(), null, null);
} else if (panneauCentre.getContenu() instanceof PersonneVue) {
selectionnerPersonne(panneauCentre.getContenu(), null, getProjetId());
} else if (panneauCentre.getContenu() instanceof PublicationVue) {
selectionnerPublication(panneauCentre.getContenu(), null);
} else if (panneauCentre.getContenu() instanceof CommentaireVue) {
selectionnerCommentaire(panneauCentre.getContenu(), null);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES STRUCTURES
//+----------------------------------------------------------------------------------------------------------------+
 
public void afficherListeStructures(StructureListe structuresACharger) {
if (!(panneauCentre.getContenu() instanceof StructureVue)) {
panneauCentre.removeAll();
panneauCentre.add(new StructureVue(this));
}
panneauCentre.getContenu().rafraichir(structuresACharger);
}
public void afficherFormStructure(String structureId) {
String mode = Formulaire.MODE_AJOUTER;
if (structureId != null) {
mode = Formulaire.MODE_MODIFIER;
}
panneauCentre.removeAll();
StructureForm structureForm = new StructureForm(this, mode);
panneauCentre.add(structureForm);
if (mode.equals(Formulaire.MODE_MODIFIER)) {
selectionnerStructure(structureForm, structureId);
selectionnerStructureAPersonne(structureForm, structureId, StructureAPersonne.ROLE_EQUIPE);
}
panneauCentre.layout();
}
public void clicListeStructure(Structure structure) {
panneauCentre.getContenu().rafraichir(structure);
if (structure != null && structure.getPersonnel() == null) {
selectionnerStructureAPersonne(panneauCentre.getContenu(), structure.getId(), StructureAPersonne.ROLE_EQUIPE);
}
}
 
public void clicAjouterStructure() {
afficherFormStructure(null);
}
public void clicModifierStructure(List<Structure> structureSelection) {
if (structureSelection.size() == 0) {
Info.display("Information", "Veuillez sélectionner une structure.");
} else if (structureSelection.size() > 1) {
Info.display("Information", "Veuillez sélectionner une seule structure à la fois.");
} else if (structureSelection.size() == 1) {
afficherFormStructure(structureSelection.get(0).getId());
} else {
Info.display("Erreur", "Une erreur est survenue dans la méthode clicModifierStructure() du Médiateur.");
}
}
public void clicSupprimerStructure(final Rafraichissable vue, final List<Structure> structureSelection) {
if (structureSelection.size() == 0) {
Info.display("Information", "Veuillez sélectionner une structure.");
} else if(structureSelection.size() > 0) {
String titre = "Supprimer des structures";
String message = "Êtes vous sur de vouloir supprimer les structures sélectionnées ?";
if (structureSelection.size() == 1) {
titre = "Supprimer une structure";
message = "Êtes vous sur de vouloir supprimer la structure sélectionnée ?";
}
final Listener<MessageBoxEvent> suppressionEcouteur = new Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent ce) {
Dialog dialog = (Dialog) ce.getComponent();
Button btn = ce.getButtonClicked();
 
if (btn.getText().equals(dialog.yesText)) {
String idStr = "" ;
for(int i = 0 ; i < structureSelection.size() ; i++) {
idStr += structureSelection.get(i).getId()+",";
}
supprimerStructure(vue, idStr);
}
}
};
MessageBox.confirm(titre, message, suppressionEcouteur);
} else {
Info.display("Erreur", "Une erreur est survenue dans la méthode clicSupprimerStructure() du Médiateur.");
}
}
public void selectionnerStructure(Rafraichissable vueARafraichir, String structureId) {
modele.selectionnerStructure(vueARafraichir, getProjetId(), structureId, null, 0, nbElements);
}
public void selectionnerStructure(Rafraichissable vueARafraichir, String structureId, String projetId, String nom, int start, int nbElements) {
modele.selectionnerStructure(vueARafraichir, getProjetId(), structureId, nom, start, nbElements);
}
public void selectionnerStructureParProjet(Rafraichissable vueARafraichir, String projetId) {
modele.selectionnerStructure(vueARafraichir, projetId, null, null, 0, -1);
}
public void ajouterStructure(Rafraichissable vueARafraichir, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
modele.ajouterStructure(vueARafraichir, structure, conservation, valorisation);
}
public void modifierStructure(Rafraichissable vueARafraichir, String structureId, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
modele.modifierStructure(vueARafraichir, structureId, structure, conservation, valorisation);
}
public void supprimerStructure(Rafraichissable vueARafraichir, String IdentifiantsStructureSepareParVirgule) {
modele.supprimerStructure(vueARafraichir, IdentifiantsStructureSepareParVirgule);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation STRUCTURE A PERSONNE
public void selectionnerStructureAPersonne(Rafraichissable vueARafraichir, String structureId, String roleId) {
modele.selectionnerStructureAPersonne(vueARafraichir, structureId, roleId);
}
public void ajouterStructureAPersonne(Rafraichissable vueARafraichir, String structureId, StructureAPersonneListe personnelAjoute) {
if (personnelAjoute != null && personnelAjoute.size() > 0) {
for (Iterator<String> it = personnelAjoute.keySet().iterator(); it.hasNext();) {
modele.ajouterStructureAPersonne(vueARafraichir, structureId, (StructureAPersonne) personnelAjoute.get(it.next()));
}
}
}
public void modifierStructureAPersonne(Rafraichissable vueARafraichir, StructureAPersonneListe personnelModifie) {
if (personnelModifie != null && personnelModifie.size() > 0) {
for (Iterator<String> it = personnelModifie.keySet().iterator(); it.hasNext();) {
modele.modifierStructureAPersonne(vueARafraichir, (StructureAPersonne) personnelModifie.get(it.next()));
}
}
}
public void supprimerStructureAPersonne(Rafraichissable vueARafraichir, StructureAPersonneListe personnelSupprime) {
if (personnelSupprime != null && personnelSupprime.size() > 0) {
String idStructureAPersonneSepareParVirgule = "" ;
Iterator<String> it = personnelSupprime.keySet().iterator();
while (it.hasNext()) {
idStructureAPersonneSepareParVirgule += personnelSupprime.get(it.next()).getId();
idStructureAPersonneSepareParVirgule += (it.hasNext()) ? "," : "";
}
supprimerStructureAPersonne(vueARafraichir, idStructureAPersonneSepareParVirgule);
}
}
public void supprimerStructureAPersonne(Rafraichissable vueARafraichir, String idStructureAPersonneSeparesParVirgule) {
modele.supprimerStructureAPersonne(vueARafraichir, idStructureAPersonneSeparesParVirgule);
}
public void supprimerStructureAPersonne(final Rafraichissable vueARafraichir, final List<Structure> structuresListe) {
if (structuresListe.size() != 0) {
String idStructureSepareParVirgule = "" ;
Iterator<Structure> it = structuresListe.iterator();
while (it.hasNext()) {
Structure structure = it.next();
idStructureSepareParVirgule += structure.getId();
idStructureSepareParVirgule += it.hasNext() ? "," : "";
}
supprimerStructureAPersonne(vueARafraichir, idStructureSepareParVirgule);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION des COLLECTIONS
//+----------------------------------------------------------------------------------------------------------------+
public void afficherListeCollections(CollectionListe collectionsACharger) {
if (!(panneauCentre.getContenu() instanceof CollectionVue)) {
panneauCentre.removeAll();
panneauCentre.add(new CollectionVue(this));
}
panneauCentre.getContenu().rafraichir(collectionsACharger);
}
public void afficherFormCollection(String collectionId) {
panneauCentre.removeAll();
CollectionForm collectionForm = new CollectionForm(this, collectionId);
panneauCentre.add(collectionForm);
panneauCentre.layout();
}
public void clicListeCollection(Collection collectionCliquee) {
panneauCentre.getContenu().rafraichir(collectionCliquee);
if (collectionCliquee != null) {
selectionnerCollectionAPersonne(panneauCentre.getContenu(), collectionCliquee.getId(), null);
selectionnerCollectionAPublication(panneauCentre.getContenu(), collectionCliquee.getId());
selectionnerCollectionACommentaire(panneauCentre.getContenu(), collectionCliquee.getId());
}
}
public void clicAjouterCollection() {
afficherFormCollection(null);
}
 
public void clicModifierCollection(List<Collection> selection) {
if (selection.size() == 0) {
Info.display("Information", "Veuillez sélectionner une collection.");
} else if (selection.size() > 1) {
Info.display("Information", "Veuillez sélectionner une seule collection à la fois.");
} else if (selection.size() == 1) {
afficherFormCollection(selection.get(0).getId());
} else {
Info.display("Erreur", "Une erreur est survenue dans la méthode clicModifierCollection() du Médiateur.");
}
}
 
public void clicSupprimerCollection(CollectionListeVue collectionListeVue, final List<Collection> collectionsASupprimer) {
if (collectionsASupprimer.size() <= 0) {
MessageBox.alert("Attention", "Vous devez sélectionner au moins une collection", null);
} else {
String message = "Voulez-vous vraiment supprimer ces collections ?";
if (collectionsASupprimer.size() == 1) {
message = "Voulez-vous vraiment supprimer cette collection ?";
}
final Listener<MessageBoxEvent> listenerSuppression = new Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent ce) {
Dialog dialog = (Dialog) ce.getComponent();
Button btn = ce.getButtonClicked();
if (btn.getText().equals(dialog.yesText)) {
supprimerCollection(panneauCentre.getContenu(), collectionsASupprimer);
}
}
};
MessageBox.confirm("Supprimer une collection", message, listenerSuppression);
}
}
 
public void selectionnerCollection(Rafraichissable vueARafraichir, String collectionId, String nom) {
System.out.println(nbElements);
selectionnerCollection(vueARafraichir, collectionId, nom, 0, nbElements);
}
public void selectionnerCollection(Rafraichissable vueARafraichir, String collectionId, String nom, int start, int nbElements) {
modele.selectionnerCollection(vueARafraichir, getProjetId(), collectionId, nom, start, this.nbElements);
}
public void selectionnerCollectionParProjet(Rafraichissable vueARafraichir, String projetId) {
modele.selectionnerCollection(vueARafraichir, projetId, null, null, 0, nbElements);
}
public void ajouterCollection(Rafraichissable vueARafraichir, Collection collection) {
modele.ajouterCollection(vueARafraichir, collection);
}
public void modifierCollection(Rafraichissable vueARafraichir, Collection collection) {
modele.modifierCollection(vueARafraichir, collection);
}
public void supprimerCollection(Rafraichissable vueARafraichir, List<Collection> collectionsListe) {
if (collectionsListe != null && collectionsListe.size() > 0) {
String idCollectionSeparesParVirgule = "" ;
Iterator<Collection> it = collectionsListe.iterator();
while (it.hasNext()) {
idCollectionSeparesParVirgule += it.next().getId();
if (it.hasNext()) {
idCollectionSeparesParVirgule += ",";
}
}
modele.supprimerCollection(vueARafraichir, idCollectionSeparesParVirgule);
modele.supprimerCollectionAPersonne(vueARafraichir, idCollectionSeparesParVirgule);
modele.supprimerCollectionAPublication(vueARafraichir, idCollectionSeparesParVirgule);
//modele.supprimerCollectionACommentaire(vueARafraichir, idCollectionSeparesParVirgule);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation COLLECTION A PERSONNE
public void selectionnerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, String roleId) {
modele.selectionnerCollectionAPersonne(vueARafraichir, collectionId, roleId);
}
public void ajouterCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, CollectionAPersonneListe personnesAjoutees) {
if (personnesAjoutees != null && personnesAjoutees.size() > 0) {
for (Iterator<String> it = personnesAjoutees.keySet().iterator(); it.hasNext();) {
modele.ajouterCollectionAPersonne(vueARafraichir, collectionId, (CollectionAPersonne) personnesAjoutees.get(it.next()));
}
}
}
public void modifierCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPersonneListe personnesModifiees) {
if (personnesModifiees != null && personnesModifiees.size() > 0) {
for (Iterator<String> it = personnesModifiees.keySet().iterator(); it.hasNext();) {
modele.modifierCollectionAPersonne(vueARafraichir, (CollectionAPersonne) personnesModifiees.get(it.next()));
}
}
}
public void supprimerCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPersonneListe personnesSupprimees) {
if (personnesSupprimees != null && personnesSupprimees.size() > 0) {
String idCollectionAPersonneSeparesParVirgule = "" ;
for (Iterator<String> it = personnesSupprimees.keySet().iterator(); it.hasNext();) {
idCollectionAPersonneSeparesParVirgule += personnesSupprimees.get(it.next()).getId();
if (it.hasNext()) {
idCollectionAPersonneSeparesParVirgule += ",";
}
}
modele.supprimerCollectionAPersonne(vueARafraichir, idCollectionAPersonneSeparesParVirgule);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation COLLECTION A PUBLICATION
public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId) {
modele.selectionnerCollectionAPublication(vueARafraichir, collectionId);
}
public void ajouterCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, CollectionAPublicationListe publicationsAjoutees) {
if (publicationsAjoutees != null && publicationsAjoutees.size() > 0) {
for (Iterator<String> it = publicationsAjoutees.keySet().iterator(); it.hasNext();) {
modele.ajouterCollectionAPublication(vueARafraichir, collectionId, (CollectionAPublication) publicationsAjoutees.get(it.next()));
}
}
}
public void modifierCollectionAPublication(Rafraichissable vueARafraichir, CollectionAPublicationListe publicationsModifiees) {
if (publicationsModifiees != null && publicationsModifiees.size() > 0) {
for (Iterator<String> it = publicationsModifiees.keySet().iterator(); it.hasNext();) {
modele.modifierCollectionAPublication(vueARafraichir, (CollectionAPublication) publicationsModifiees.get(it.next()));
}
}
}
public void supprimerCollectionAPublication(Rafraichissable vueARafraichir, CollectionAPublicationListe publicationsSupprimees) {
if (publicationsSupprimees != null && publicationsSupprimees.size() > 0) {
String idCollectionAPublicationSeparesParVirgule = "" ;
for (Iterator<String> it = publicationsSupprimees.keySet().iterator(); it.hasNext();) {
idCollectionAPublicationSeparesParVirgule += publicationsSupprimees.get(it.next()).getId();
if (it.hasNext()) {
idCollectionAPublicationSeparesParVirgule += ",";
}
}
modele.supprimerCollectionAPublication(vueARafraichir, idCollectionAPublicationSeparesParVirgule);
}
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation COLLECTION A COMMENTAIRE
public void selectionnerCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId) {
modele.selectionnerCollectionACommentaire(vueARafraichir, collectionId);
}
public void ajouterCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId, CollectionACommentaireListe commentairesAjoutees) {
if (commentairesAjoutees != null && commentairesAjoutees.size() > 0) {
for (Iterator<String> it = commentairesAjoutees.keySet().iterator(); it.hasNext();) {
modele.ajouterCollectionACommentaire(vueARafraichir, collectionId, (CollectionACommentaire) commentairesAjoutees.get(it.next()));
}
}
}
public void modifierCollectionACommentaire(Rafraichissable vueARafraichir, CollectionACommentaireListe commentairesModifiees) {
if (commentairesModifiees != null && commentairesModifiees.size() > 0) {
for (Iterator<String> it = commentairesModifiees.keySet().iterator(); it.hasNext();) {
modele.modifierCollectionACommentaire(vueARafraichir, (CollectionACommentaire) commentairesModifiees.get(it.next()));
}
}
}
public void supprimerCollectionACommentaire(Rafraichissable vueARafraichir, CollectionACommentaireListe commentairesSupprimees) {
if (commentairesSupprimees != null && commentairesSupprimees.size() > 0) {
String idCollectionACommentaireSeparesParVirgule = "" ;
for (Iterator<String> it = commentairesSupprimees.keySet().iterator(); it.hasNext();) {
idCollectionACommentaireSeparesParVirgule += commentairesSupprimees.get(it.next()).getId();
if (it.hasNext()) {
idCollectionACommentaireSeparesParVirgule += ",";
}
}
modele.supprimerCollectionACommentaire(vueARafraichir, idCollectionACommentaireSeparesParVirgule, CollectionACommentaireAsyncDao.SUPPRESSION_PAR_COLLECTION);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES PERSONNES
//+----------------------------------------------------------------------------------------------------------------+
 
public void afficherListePersonnes(PersonneListe personnesACharger) {
if (!(panneauCentre.getContenu() instanceof PersonneVue)) {
panneauCentre.removeAll();
panneauCentre.add(new PersonneVue(this));
panneauCentre.setId(ComposantId.PANNEAU_PERSONNE_LISTES);
}
panneauCentre.getContenu().rafraichir(personnesACharger);
}
public void afficherFormPersonne(String personneId) {
panneauCentre.removeAll();
PersonneForm personneForm = new PersonneForm(this, personneId);
panneauCentre.add(personneForm);
panneauCentre.layout();
}
 
public void clicListePersonne(Personne personne) {
panneauCentre.getContenu().rafraichir(personne);
}
 
public void clicAjouterPersonne() {
afficherFormPersonne(null);
}
public void clicModifierPersonne(List<Personne> selection) {
if (selection.size() == 0) {
Info.display("Information", "Veuillez sélectionner une personne.");
} else if (selection.size() > 1) {
Info.display("Information", "Veuillez sélectionner une seule personne à la fois.");
} else if (selection.size() == 1) {
afficherFormPersonne(selection.get(0).getId());
} else {
Info.display("Erreur", "Une erreur est survenue dans la méthode clicModifierPersonne() du Médiateur.");
}
}
public void clicSupprimerPersonne(final Rafraichissable vue, final List<Personne> personneSelection) {
//Empecher suppression utilisateur
for (int i=0; i < personneSelection.size(); i++) {
Personne courante = personneSelection.get(i);
if (courante.getId().equals(getUtilisateurId())) {
Info.display("Information", "Vous ne pouvez pas supprimer votre compte");
personneSelection.remove(courante);
}
}
if (personneSelection.size() == 0) {
Info.display("Information", "Veuillez sélectionner une personne.");
} else if(personneSelection.size() > 0) {
String message = "Êtes vous sur de vouloir supprimer les personnes sélectionnées ?";
if (personneSelection.size() == 1) {
message = "Êtes vous sur de vouloir supprimer la personne sélectionnée ?";
}
final Listener<MessageBoxEvent> listenerSuppression = new Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent ce) {
Dialog dialog = (Dialog) ce.getComponent();
Button btn = ce.getButtonClicked();
 
if (btn.getText().equals(dialog.yesText)) {
String idPersonneSepareParVirgule = "" ;
Iterator<Personne> itPersonne = personneSelection.iterator();
while (itPersonne.hasNext()) {
Personne personneCourante = itPersonne.next();
idPersonneSepareParVirgule += personneCourante.getId();
idPersonneSepareParVirgule +=",";
}
modele.supprimerPersonne(vue, idPersonneSepareParVirgule);
}
}
};
MessageBox.confirm("Supprimer une personne", message, listenerSuppression);
} else {
Info.display("Erreur", "Une erreur est survenue dans la méthode clicSupprimerPersonne() du Médiateur.");
}
}
 
public void selectionnerPersonne(Rafraichissable vueARafraichir, Personne personne, String projetId) {
selectionnerPersonne(vueARafraichir, personne, projetId, 0, nbElements);
}
public void selectionnerPersonne(Rafraichissable vueARafraichir, Personne personne, String projetId, int start, int nbElements) {
String personneId = null;
String personneNom = null;
if (personne != null) {
personneId = personne.getId();
personneNom = personne.getNom();
}
modele.selectionnerPersonne(vueARafraichir, personneId, projetId, personneNom, start, nbElements);
}
public void selectionnerPersonneParNomComplet(Rafraichissable vueARafraichir, String projetId, String nomComplet) {
modele.selectionnerPersonne(vueARafraichir, null, projetId, nomComplet, 0, -1);
}
public void selectionnerPersonneParProjet(Rafraichissable vueARafraichir, String projetId) {
modele.selectionnerPersonne(vueARafraichir, null, projetId, null, 0, -1);
}
public void enregistrerPersonne(Rafraichissable vue, Personne personne){
if (personne.getId() != null && !personne.getId().trim().equals("")) {
modele.modifierPersonne(vue, personne);
} else {
modele.ajouterPersonne(vue, personne);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES PUBLICATIONS
//+----------------------------------------------------------------------------------------------------------------+
 
public void afficherListePublication(PublicationListe nouvelleDonnees) {
if (!(panneauCentre.getContenu() instanceof PublicationVue)) {
panneauCentre.removeAll();
panneauCentre.add(new PublicationVue(this));
}
panneauCentre.getContenu().rafraichir(nouvelleDonnees);
}
public void afficherFormPublication(String publicationId) {
panneauCentre.removeAll();
PublicationForm publicationForm = new PublicationForm(this, publicationId);
panneauCentre.add(publicationForm);
panneauCentre.layout();
}
public void clicListePublication(Publication publication) {
if (publication != null) {
panneauCentre.getContenu().rafraichir(publication);
}
}
 
public void clicAjouterPublication() {
afficherFormPublication(null);
}
public void clicModifierPublication(List<Publication> selection) {
if (selection.size() == 0) {
Info.display("Information", "Veuillez sélectionner une publication.");
} else if (selection.size() > 1) {
Info.display("Information", "Veuillez sélectionner une seule publication à la fois.");
} else if (selection.size() == 1) {
afficherFormPublication(selection.get(0).getId());
} else {
Info.display("Erreur", "Une erreur est survenue dans la méthode clicModifierPublication() du Médiateur.");
}
}
public void clicSupprimerPublication(final List<Publication> publicationListe) {
if (publicationListe.size() <= 0) {
MessageBox.alert("Attention", "Vous devez sélectionner une publication", null);
} else {
String message = "Voulez-vous vraiment supprimer ces publications ?";
if (publicationListe.size() == 1) {
message = "Voulez-vous vraiment supprimer cette publication ?";
}
final Listener<MessageBoxEvent> listenerSuppression = new Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent ce) {
Dialog dialog = (Dialog) ce.getComponent();
Button btn = ce.getButtonClicked();
if (btn.getText().equals(dialog.yesText)) {
supprimerPublication(panneauCentre.getContenu(), publicationListe);
}
}
};
MessageBox.confirm("Supprimer une publication", message, listenerSuppression);
}
}
public void selectionnerPublication(Rafraichissable vueARafraichir, String publicationId) {
selectionnerPublication(vueARafraichir, getProjetId(), publicationId, null, 0, nbElements);
}
public void selectionnerPublicationParNomComplet(Rafraichissable vueARafraichir, String projetId, String nomComplet) {
selectionnerPublication(vueARafraichir, projetId, null, nomComplet, 0, nbElements);
}
public void selectionnerPublication(Rafraichissable vueARafraichir, String projetId, String publicationId, String nomComplet, int pageCourante, int nbElements) {
modele.selectionnerPublication(vueARafraichir, publicationId, projetId, nomComplet, nbElements, pageCourante);
}
public void ajouterPublication(Rafraichissable vueARafraichir, Publication publication) {
modele.ajouterPublication(vueARafraichir, publication);
}
public void modifierPublication(Rafraichissable vueARafraichir, Publication publication) {
modele.modifierPublication(vueARafraichir, publication);
}
public void supprimerPublication(Rafraichissable vueARafraichir, List<Publication> publicationsListe) {
if (publicationsListe != null && publicationsListe.size() > 0) {
String idPublicationSeparesParVirgule = "" ;
Iterator<Publication> it = publicationsListe.iterator();
while (it.hasNext()) {
idPublicationSeparesParVirgule += it.next().getId();
if (it.hasNext()) {
idPublicationSeparesParVirgule += ",";
}
}
modele.supprimerPublication(vueARafraichir, idPublicationSeparesParVirgule);
modele.supprimerPublicationAPersonne(vueARafraichir, idPublicationSeparesParVirgule);
}
}
 
public void clicObtenirListeEditeurs(Rafraichissable vueARafraichir) {
selectionnerStructureParProjet(vueARafraichir, null);
}
 
public void clicObtenirListeAuteurs(Rafraichissable vueARafraichir) {
selectionnerPersonneParProjet(vueARafraichir, null);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation PUBLICATION A PERSONNE
 
public void selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
modele.selectionPublicationAPersonne(vueARafraichir, publicationId, personnesId, roleId);
}
public void selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, List<Valeur> roleId) {
String roleIds = "";
Iterator<Valeur> itRole = roleId.iterator();
while (itRole.hasNext()) {
roleIds+= itRole.next().getId();
if (itRole.hasNext()) {
roleIds+=",";
}
}
modele.selectionPublicationAPersonne(vueARafraichir, publicationId, personnesId, roleIds);
}
public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, PublicationAPersonneListe personnesAjoutees, String roleId) {
if (personnesAjoutees != null && personnesAjoutees.size() > 0) {
String idPublicationAPersonneSepareParVirgule = "" ;
for (Iterator<String> it = personnesAjoutees.keySet().iterator(); it.hasNext();) {
idPublicationAPersonneSepareParVirgule += personnesAjoutees.get(it.next()).getIdPersonne();
if (it.hasNext()) {
idPublicationAPersonneSepareParVirgule += ",";
}
}
modele.ajouterPublicationAPersonne(vueARafraichir, publicationId, idPublicationAPersonneSepareParVirgule, roleId);
}
}
public void supprimerPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe personnesSupprimees) {
if (personnesSupprimees != null && personnesSupprimees.size() > 0) {
String idPublicationAPersonneSepareParVirgule = "" ;
for (Iterator<String> it = personnesSupprimees.keySet().iterator(); it.hasNext();) {
idPublicationAPersonneSepareParVirgule += personnesSupprimees.get(it.next()).getId();
if (it.hasNext()) {
idPublicationAPersonneSepareParVirgule += ",";
}
}
modele.supprimerPublicationAPersonne(vueARafraichir, idPublicationAPersonneSepareParVirgule);
}
}
//Lier plusieurs publication à une personne
public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe listePublications, String personneId, String roleId) {
if (listePublications!=null && listePublications.size()>0) {
String idsPubli = "";
String rolesIds = "";
for (Iterator<String> it = listePublications.keySet().iterator(); it.hasNext();) {
PublicationAPersonne publi = listePublications.get(it.next());
idsPubli += publi.getId();
rolesIds += publi.getRole();
if (it.hasNext()) {
idsPubli += ",";
rolesIds += ",";
}
}
modele.ajouterPublicationAPersonne(vueARafraichir, idsPubli, personneId, rolesIds);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES COMMENTAIRES
//+----------------------------------------------------------------------------------------------------------------+
 
public void afficherListeCommentaire(CommentaireListe nouvelleDonnees) {
if (!(panneauCentre.getContenu() instanceof CommentaireVue)) {
panneauCentre.removeAll();
panneauCentre.add(new CommentaireVue(this));
}
panneauCentre.getContenu().rafraichir(nouvelleDonnees);
}
public void afficherFormCommentaire(String commentaireId) {
panneauCentre.removeAll();
CommentaireForm commentaireForm = new CommentaireForm(this, commentaireId);
panneauCentre.add(commentaireForm);
panneauCentre.layout();
}
public void clicListeCommentaire(Commentaire commentaire) {
if (commentaire != null) {
panneauCentre.getContenu().rafraichir(commentaire);
}
}
 
public void clicAjouterCommentaire() {
afficherFormCommentaire(null);
}
public void clicModifierCommentaire(List<Commentaire> selection) {
if (selection.size() == 0) {
Info.display("Information", "Veuillez sélectionner un commentaire.");
} else if (selection.size() > 1) {
Info.display("Information", "Veuillez sélectionner un seul commentaire à la fois.");
} else if (selection.size() == 1) {
afficherFormCommentaire(selection.get(0).getId());
} else {
Info.display("Erreur", "Une erreur est survenue dans la méthode clicModifierCommentaire() du Médiateur.");
}
}
public void clicSupprimerCommentaire(final List<Commentaire> commentaireListe) {
if (commentaireListe.size() <= 0) {
MessageBox.alert("Attention", "Vous devez sélectionner un commentaire", null);
} else {
String message = "Voulez-vous vraiment supprimer ces commentaires ?";
if (commentaireListe.size() == 1) {
message = "Voulez-vous vraiment supprimer ce commentaire ?";
}
final Listener<MessageBoxEvent> listenerSuppression = new Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent ce) {
Dialog dialog = (Dialog) ce.getComponent();
Button btn = ce.getButtonClicked();
if (btn.getText().equals(dialog.yesText)) {
supprimerCommentaire(panneauCentre.getContenu(), commentaireListe);
}
}
};
MessageBox.confirm("Supprimer un commentaire", message, listenerSuppression);
}
}
public void selectionnerCommentaire(Rafraichissable vueARafraichir, String commentaireId) {
selectionnerCommentaire(vueARafraichir, commentaireId, null, 0, nbElements);
}
public void selectionnerCommentaire(Rafraichissable vueARafraichir, String commentaireId, String titre, int pageCourante, int nbElements) {
modele.selectionnerCommentaire(vueARafraichir, commentaireId, getProjetId(), titre, pageCourante, nbElements);
}
public void selectionnerCommentaireParTitre(Rafraichissable vueARafraichir, String titre) {
selectionnerCommentaire(vueARafraichir, null, titre, 0, nbElements);
}
public void ajouterCommentaire(Rafraichissable vueARafraichir, Commentaire commentaire) {
modele.ajouterCommentaire(vueARafraichir, commentaire);
}
public void modifierCommentaire(Rafraichissable vueARafraichir, Commentaire commentaire) {
modele.modifierCommentaire(vueARafraichir, commentaire);
}
public void supprimerCommentaire(Rafraichissable vueARafraichir, List<Commentaire> commentairesListe) {
if (commentairesListe != null && commentairesListe.size() > 0) {
String idCommentaireSeparesParVirgule = "" ;
Iterator<Commentaire> it = commentairesListe.iterator();
while (it.hasNext()) {
idCommentaireSeparesParVirgule += it.next().getId();
if (it.hasNext()) {
idCommentaireSeparesParVirgule += ",";
}
}
modele.supprimerCommentaire(vueARafraichir, idCommentaireSeparesParVirgule);
modele.supprimerCollectionACommentaire(vueARafraichir, idCommentaireSeparesParVirgule, CollectionACommentaireAsyncDao.SUPPRESSION_PAR_COMMENTAIRE);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// RAFRAICHISSEMENT
//+----------------------------------------------------------------------------------------------------------------+
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Utilisateur) {
repandreEtatIdentification((Utilisateur) nouvellesDonnees);
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("modification_personne")) {
repandreInfoMiseAJourUtilisateur();
}
} else {
GWT.log(i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION du STATUT
//+----------------------------------------------------------------------------------------------------------------+
public void afficherPopinChargement() {
((PopupChargement) Registry.get(RegistreId.POPUP_CHARGEMENT)).center();
}
public void masquerPopinChargement() {
((PopupChargement) Registry.get(RegistreId.POPUP_CHARGEMENT)).hide();
}
public String obtenirClasseContenu() {
String classeContenu = null;
if (panneauCentre.getContenu() != null) {
classeContenu = panneauCentre.getContenu().getClass().toString();
}
return classeContenu;
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/http/JsonRestRequestBuilder.java
New file
0,0 → 1,33
package org.tela_botanica.client.http;
 
import org.tela_botanica.client.Mediateur;
 
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
 
public class JsonRestRequestBuilder extends RequestBuilder {
 
public JsonRestRequestBuilder(Method httpMethod, String url) {
super(httpMethod, url);
// TODO Auto-generated constructor stub
}
public Request envoyerRequete(String donneesRequete, RequestCallback retour) {
Request requeteSortie = null;
try {
requeteSortie = sendRequest(donneesRequete, retour);
} catch (RequestException e) {
GWT.log(Mediateur.i18nM.erreurJrest(), e);
}
return requeteSortie;
}
public Request envoyerRequeteSuppression(RequestCallback retour) {
Request requeteSortie = envoyerRequete("action=DELETE", retour);
return requeteSortie;
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/http/JsonRestRequestCallback.java
New file
0,0 → 1,90
package org.tela_botanica.client.http;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.modeles.Information;
 
import com.extjs.gxt.ui.client.widget.Info;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.Response;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONValue;
 
public class JsonRestRequestCallback implements RequestCallback {
 
public void onError(Request request, Throwable exception) {
// Gestion des exceptions déclenchées par l'exécution de la requête
GWT.log(Mediateur.i18nM.erreurServiceJrest(request.toString()), exception);
Info.display(Mediateur.i18nM.erreurRequeteTitre(), Mediateur.i18nM.erreurRequete());
}
public void onErrorHTTP(Request request, Response reponse) {
// Gestion des erreurs HTTP renvoyé par Apache ou JRest
Information info = new Information("erreur_jrest", JSONParser.parse(reponse.getText()).isArray());
GWT.log("Erreur JREST - Code "+reponse.getStatusCode()+"\n"+info.getMessages().toString(), null);
Info.display("Erreur JREST - Code "+reponse.getStatusCode(), info.toString());
}
public void onResponseReceived(Request request, Response response) {
// Affichage du débogage.
afficherDebug(response);
// Si le code de réponse HTTP ne vaut pas 200 OK, on lance le mécanise d'erreur HTTP
if (response.getStatusCode() != 200) {
onErrorHTTP(request, response);
} else {
JSONValue responseValue = null;
if (avoirContenu(response)) {
responseValue = JSONParser.parse(response.getText());
}
surReponse(responseValue);
}
}
 
public void surReponse(JSONValue responseValue) {
}
public String formaterDeboguages(JSONArray jsonArray) {
String deboguageFormate = "";
for (int i = 0 ; i < jsonArray.size() ; i++) {
if (jsonArray.get(i).isString() != null) {
deboguageFormate += jsonArray.get(i).isString().stringValue()+"\n";
}
}
return deboguageFormate;
}
private void afficherDebug(Response reponse) {
if (avoirEnteteDebug(reponse)) {
final JSONValue reponseEnteteDeboguage = JSONParser.parse(reponse.getHeader("X-DebugJrest-Data"));
if (reponseEnteteDeboguage.isArray() != null) {
GWT.log("DEBOGUAGE:\n"+formaterDeboguages(reponseEnteteDeboguage.isArray()), null);
}
}
}
public Boolean avoirEnteteDebug(Response reponse) {
Boolean retour = false;
if (reponse.getHeader("X-DebugJrest-Data") != null && reponse.getHeader("X-DebugJrest-Data").length() != 0) {
retour = true;
}
return retour;
}
public Boolean avoirContenu(Response reponse) {
Boolean retour = false;
if (reponse.getText() != null && reponse.getText().length() != 0) {
retour = true;
} else if (reponse.getText() == null) {
GWT.log("La réponse vaul null", null);
} else if (reponse.getText().length() == 0) {
GWT.log("La réponse a une taille de 0", null);
}
return retour;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/i18n/Constantes.java
New file
0,0 → 1,544
package org.tela_botanica.client.i18n;
 
import com.google.gwt.i18n.client.ConstantsWithLookup;
 
public interface Constantes extends ConstantsWithLookup{
// Identification
String modeAnonyme();
String identificationTitre();
String motDePasse();
String login();
String identificationMauvaise();
String identificationVerification();
String licence();
String licenceAccepter();
String licenceJaccepte();
// Général
String id();
String chargement();
String oui();
String non();
String ok();
String autres();
String nom();
String date();
String lieu();
String informationTitreGenerique();
String total();
String inconnue();
String nonRenseigne();
String donneePublic();
String donneePrivee();
String chercher();
String articleUn();
String articleLe();
String articleLa();
// Fenetre aide
String plierDeplierToutBtn();
String sommaire();
// Boutons
String ajouter();
String modifier();
String supprimer();
String rafraichir();
String reinitialiser();
String appliquer();
String annuler();
String valider();
// Formulaire
String champObligatoire();
String champNumerique();
String projetChamp();
String erreurSaisieTitre();
String demanderValeur();
String valeurDejaPresente();
// Pagination
String page();
String sur();
String parPage();
String afficher();
String elements();
// Erreurs
String selectionnerValeur();
String selectionnerValeurOuNull();
String messageUrlNonValide();
// Téléphone
String FIX();
String GSM();
String FAX();
String PORT1();
String PORT2();
// Navigation
String titreNavigation();
// Menu
String titreMenu();
String txtListeProjetDefaut();
String menuAccueil();
String menuProjet();
String menuStructure();
String menuCollection();
String menuPersonne();
String menuPublication();
String menuCommentaire();
// Filtre
String titreFiltre();
// Entête
String identification();
String deconnexion();
String bienvenue();
String aide();
String doc();
String apropos();
String feedback();
String bogue();
String remarques();
String applicationExterne();
String cel();
String bel();
// A Propos
String aproposTitre();
String aproposCode();
String aproposVersion();
String aproposVersionNom();
String aproposRevision();
String aproposLicence();
String aproposTitreCompilation();
String aproposCompilationDate();
String aproposVersionJava();
String aproposTitreFramework();
String aproposGwt();
String aproposGxt();
String aproposTitreNavigateur();
String aproposNavigateur();
String aproposTitreContributeur();
String aproposDeveloppeur();
String aproposTraducteur();
// +---------------------------------------------------------------------------------------------------------------+
// Accueil
String accueil();
String accueilEnregistrement();
String accueilEnregistrementEnCours();
String accueilEnregistrementSucces();
String accueilChargementSucces();
// +---------------------------------------------------------------------------------------------------------------+
// Projet
String projetSingulier();
String projetTitreFormAjout();
String projetTitreFormModif();
String projetTitreInfoGenerale();
String projetTitreSuppression();
String publicationNomComplet();
String projetNom();
String projetAbreviation();
String projetResume();
String projetDescription();
String projetUrl();
String projetTitreComplement();
String projetMotsCles();
String projetCitation();
String projetLicence();
String projetLangue();
String projetTitreIndexation();
String projetIndexationDuree();
String projetIndexationHeure();
String projetIndexationFrequence();
String projetMarkPublic();
String projetMessageHeureMinute();
String projetMessageNom();
String projetMessageAbreviation();
String projetMessageDescription();
String projetMessageResume();
// +---------------------------------------------------------------------------------------------------------------+
// Structure : titres
String structure();
String structureSingulier();
String titreStructureListe();
String titreAjoutFormStructurePanneau();
String titreModifFormStructurePanneau();
// Structure : actions
String suppressionStructure();
String suppressionStructureAPersonne();
// Structure : identification
String structureInfoGeneral();
String titreCommunication();
String titreAdministratif();
String acronyme();
String acces();
String dateFondation();
String nbrePersonnel();
String description();
String adresse();
String codePostal();
String ville();
String region();
String pays();
String telephone();
String courriel();
String siteWeb();
// Structure : personnel
String structureInfoPersonnel();
String titrePersonnel();
String titreMembre();
String nbrePersonnelCollection();
String fonction();
String courrielPrincipal();
String statut();
String tpsTravail();
String specialite();
String boolContact();
 
// Structure : conservation
String structureInfoConservation();
String titreLocal();
String localSpecifique();
String titreConservationPersonnel();
String formation();
String formationInteret();
String meubleSpecifique();
String localParametre();
String conservationEnCommun();
String accesControle();
String titreOperation();
String restauration();
String materielConservation();
String traitement();
String titreAcquisition();
String acquisitionCollection();
String acquisitionEchantillon();
String acquisitionTraitement();
String acquisitionTraitementInsecte();
String acquisitionTraitementPoison();
 
// Structure : valorisation
String structureInfoValorisation();
String titreActionValorisation();
String titreRechercherScientifique();
String titreAccesUsage();
String action();
String actionPublication();
String collectionAutre();
String actionFuture();
String recherche();
String rechercheProvenance();
String rechercheType();
String visite();
// +---------------------------------------------------------------------------------------------------------------+
// Collection : liste
String collectionSingulier();
String collectionListeTitre();
String collectionTitreFormAjout();
String collectionTitreFormModif();
String suppressionCollection();
// Collection : détail
String collectionGeneral();
String collectionGeneralTitre();
 
String collectionMere();
String idAlternatifCollectionDetail();
String groupementPrincipe();
String groupementBut();
String couvertureGeo();
String specimenTypeCollectionDetail();
String nbreSpecimenTypeCollectionDetail();
String classementSpecimenTypeCollectionDetail();
 
String collectionUniteRangementEtatGeneralDetail();
String typePapierConservationDetail();
String methodeConservationDetail();
String specimenMethodeFixationDetail();
String etiquetteMethodeFixationSurSupportDetail();
String etiquetteMethodeFixationSurSpecimenDetail();
String typeEcritureDetail();
String collectionTraitementDetail();
String collectionTraitementPoisonDetail();
String collectionTraitementInsecteDetail();
String collectionEtatGeneralDetail();
String degradationSpecimenDetail();
String degradationPresentationDetail();
String collectionDeterminationDetail();
String natureVegetaleContenuDetail();
String specialiteCollectionDetail();
String periodeConstitutionDetail();
String dateDebutCollectionDetail();
String dateFinCollectionDetail();
String etatClassementCollectionDetail();
String annotationClassementCollectionDetail();
String etiquetteRenseignementDetail();
String etiquetteAuteurCollection();
String etiquetteFamille();
String etiquetteGenre();
String etiquetteSp();
String etiquetteAuteurSp();
String etiquetteLocalite();
String etiquetteDateRecolte();
String precisionLocaliteDetail();
String precisionDateDetail();
String etiquetteAnnotationDetail();
String integreCollectionDetail();
String infoIntegreCollectionDetail();
String existenceInventaireCollectionDetail();
String auteurInventaireCollectionDetail();
String formeInventaireCollectionDetail();
String infoInventaireCollectionDetail();
String digitalInventaireCollectionDetail();
String pourcentDigitalInventaireCollectionDetail();
String etatInventaireCollectionDetail();
String typeDonneeInventaireCollectionDetail();
// Collection : form
String titreModifFormCollection();
String precisionApproximatif();
String precisionExact();
 
String nomCollection();
String typeCollectionNcd();
String guidCollection();
 
String liaisonTitreCollection();
String lienStructureCollection();
String lienMereCollection();
 
String typeDepot();
String cote();
String idAlternatifCollection();
String intituleAlternatifCollection();
String codeAlternatifCollection();
 
String descriptionSpecialiste();
String historique();
String urlsCollection();
 
String collectionCouvertureTitre();
String groupementPrincipeCollection();
String groupementPrincipeCollectionInfo();
String butCollection();
String lieuCouvertureCollection();
 
String collectionSpecimenTypeTitre();
String specimenTypeCollection();
String specimenTypeCollectionInfo();
String nbreSpecimenTypeCollection();
String precisionNbreSpecimenTypeCollectionChpVide();
String classementSpecimenTypeCollection();
// Collection : Personne liées
String collectionPersonne();
String collectionPersonneTitre();
String chercherPersonneSaisi();
String selectionnerPersonne();
String chargementPersonne();
String typeRelationPersonneCollection();
// Collection : Publications liées
String collectionPublication();
String collectionPublicationTitre();
String chercherPublicationSaisi();
String selectionnerPublication();
String chargementPublication();
// Collection : description
String collectionDescription();
String collectionDescriptionTitre();
String collectionTitrePrecision();
String typeCollectionBotanique();
String nbreEchantillon();
String nbreEchantillonInfo();
String collectionUniteType();
String collectionUniteNbre();
String collectionUnitePrecision();
String collectionUniteFormat();
String collectionUniteRangementTitre();
String selectionnerUniteRangement();
String collectionUniteRangementSaisirType();
String selectionnerUniteRangementAjoute();
String collectionUniteRangementEtatGeneral();
String collectionUniteRangementEtatGeneralInfo();
String collectionUniteRangementEtatGeneralLabel();
String collectionUniteBaseTitre();
String collectionUniteBase();
String collectionUniteBasePart();
String collectionUniteBaseSp();
String selectionnerUniteBase();
String collectionUniteBaseSaisirType();
String selectionnerUniteBaseAjoute();
String collectionTitreConservation();
String typePapierConservation();
String methodeConservation();
String collectionTitreEtiquette();
String fixationPourcent();
String specimenFixationPourcent();
String etiquetteFixationPourcent();
String specimenMethodeFixation();
String etiquetteMethodeFixationSurSupport();
String etiquetteMethodeFixationSurSpecimen();
String typeEcriture();
String collectionTitreTraitement();
String collectionTraitement();
String collectionTraitementPoison();
String collectionTraitementInsecte();
String collectionTitreEtatEtDegradation();
String collectionEtatGeneral();
String collectionEtatGeneralInfo();
String degradationSpecimen();
String degradationPresentation();
String collectionDetermination();
// Collection : contenu
String collectionContenu();
String collectionNatureTitre();
String natureVegetaleContenu();
String specialiteCollection();
String specialiteCollectionInfo();
String collectionConstitutionTitre();
String periodeConstitution();
String dateDebutCollection();
String dateFinCollection();
String dateApproximativeInfo();
String collectionClassementTitre();
String etatClassementCollection();
String annotationClassementCollection();
String annotationClassementCollectionInfo();
String collectionEtiquetteTitre();
String renseignementEtiquetteCollection();
String auteurTitrePourcentCollection();
String famillePourcentCollection();
String genrePourcentCollection();
String spPourcentCollection();
String auteurSpPourcentCollection();
String localitePourcentCollection();
String datePourcentCollection();
String precisionLocaliteCollection();
String precisionDateCollection();
String etiquetteAnnotationCollection();
String etiquetteAnnotationCollectionInfo();
String collectionIntegreeTitre();
String integreCollection();
String infoIntegreCollection();
String infoIntegrationCollection();
 
// Collection : inventaire
String collectionInventaire();
String collectionInventaireTitre();
String existenceInventaireCollection();
String auteurInventaireCollection();
String formeInventaireCollection();
String infoInventaireCollection();
String digitalInventaireCollection();
String pourcentDigitalInventaireCollection();
String etatInventaireCollection();
String typeDonneeInventaireCollection();
String typeDonneeInventaireCollectionInfo();
// Collection : Commentaire liées
String collectionCommentaire();
String collectionCommentaireTitre();
String chercherCommentaireSaisi();
String selectionnerCommentaire();
String chargementCommentaire();
// +---------------------------------------------------------------------------------------------------------------+
//Personne
String personneSingulier();
String personneListeLabel();
String personneModeAjout();
String personneModeModifier();
 
String personneIdentite();
String personnePrefixe();
String personnePrefixeInfo();
String personnePrenom();
String personneNom();
String personneNomAutre();
String personneAbreviation();
String personneAbreviationAutre();
String personneNomComplet();
String personneNaissance();
String personneDateNaissance();
String personneLieuNaissance();
String personneDeces();
String personneEstDecedee();
String personneDecedeeInterogation();
String personneDateDeces();
String personneLieuDeces();
String personneAdresses();
String personneCodePostal();
String personneVille();
String personneCourriel();
String personneLogos();
 
String personneSpecialite();
String personneRecolte();
String personneInfoNat();
String personneProjet();
// +---------------------------------------------------------------------------------------------------------------+
// Publication
String publicationSingulier();
String publicationTitreFormAjout();
String publicationTitreFormModif();
String publicationTitreSuppression();
String publicationAuteursTitre();
String publicationAuteurSingulier();
String publicationAuteurs();
String publicationAuteurBoutonAjouter();
String publicationTitre();
String publicationRevueCollection();
String publicationEditeur();
String publicationDateParution();
String publicationNvt();
String publicationFascicule();
String publicationPage();
// +---------------------------------------------------------------------------------------------------------------+
// Commentaire
String commentaireSingulier();
String commentairePluriel();
String commentaireTitreFormAjout();
String commentaireTitreFormModif();
String commentaireCollection();
String commentaireTitre();
String commentaireTitreSuppression();
String commentaireType();
String commentairePonderation();
String commentaireTexte();
String commentairePublic();
String commentaireMessageTitre();
 
//Pour personne: publications liés
String personnePublication();
String tousProjets();
}
/tags/v1.0-syrah/src/org/tela_botanica/client/i18n/ErrorMessages.java
New file
0,0 → 1,34
package org.tela_botanica.client.i18n;
 
import com.google.gwt.i18n.client.Messages;
 
public interface ErrorMessages extends Messages {
 
// Rafraichir
String erreurRafraichir(Class inClass, Class currentClass);
// Pagination
String elementsAffiches(String labelElement, int de, int a, int total);
// ChampMultiValeur
String valeurNonValideMsg(String exemple);
// Entete
String deconnexion(String nomUtilisateur);
String chargementFenetre(String nomFenetre);
String ouvertureLienExterne(String nomLien);
String ouvertureAppliExterne(String nomAppli);
String titreErreurSaisie();
// Divers
String veuillezSelectionner(String uneValeur);
String selectionObligatoire(String selectionDe, String pour);
String nonImplemente(String codeMenuClique);
String erreurJrest();
String erreurServiceJrest(String service);
String erreurRequete();
String erreurRequeteTitre();
String typeChampMulti();
String erreurJson(String erreur);
}
/tags/v1.0-syrah/src/org/tela_botanica/client/i18n/Constantes.properties
New file
0,0 → 1,555
# Général
id = Id
chargement = Chargement ...
oui = oui
non = non
ok = ok
autres = Autres
nom = Nom
date = Date
lieu = Lieu
informationTitreGenerique = Information
total = TOTAL
inconnue = inconnue
nonRenseigne = Non renseigné
donneePublic = Public
donneePrivee = Privé
chercher = Chercher
articleUn = un
articleLe = le
articleLa = la
 
# Identification
modeAnonyme = Mode anonyme
identificationTitre = Identification
motDePasse = Mot de passe
login = Courriel
identificationMauvaise = Mauvais login ou mot de passe
identificationVerification = Vérification...
licence = <p>En utilisant l'application Collection En Ligne pour transmettre des données sur les collections, vous acceptez de les mettre à disposition sous une licence Creative Commons.</p>\
<p>A l’image d’Internet, système ouvert de communication électronique entre personnes, nous vous invitons à faire avec nous le choix de contenus ouverts, propres à être re-publiés et ré-utilisés.</p>\
<p>Tela Botanica a choisi de publier par défaut son contenu sous licence libre Creative Commons (by-sa) afin d'en faciliter la divulgation.</p>\
<p>Selon cette licence toutes personne sera libre :</p>\
<ul>\
<li>de reproduire, distribuer et communiquer les photos au public</li>\
<li>de les modifier</li>\
</ul>\
<p>Selon les conditions suivantes :</p>\
<ul>\
<li>citer le nom de l'auteur original de l'oeuvre ainsi que celui de Tela Botanica qui l'édite.</li>\
<li>s'il y a modification, transformation ou adaptation des oeuvres, vous n'avez le droit de distribuer la création qui en résulte que sous un contrat identique à celui-ci.</li>\
<li>à chaque réutilisation ou distribution, doit apparaître clairement les conditions contractuelles de mise à disposition de cette création.</li>\
<li>chacune de ces conditions peut être levée s'il y a autorisation du titulaire des droits.</li>\
</ul>
licenceAccepter = Vous devez acceptez la licence d'utilisation de cette application pour pouvoir l'utiliser
licenceJaccepte = J'accepte les conditions de la licence utilisateur
 
# Boutons
ajouter = Ajouter
modifier = Modifier
supprimer = Supprimer
rafraichir = Rafraichir
reinitialiser = Réinitialiser
appliquer = Appliquer
annuler = Annuler
valider = Valider
 
# Formulaire
champObligatoire = Ce champ est obligatoire.
champNumerique = Ce champ doit contenir un nombre
projetChamp = Projet
 
# Pagination
page = Page
sur = sur
parPage = par page
afficher = Afficher
elements = elements
 
# Téléphone
FIX = Tél. Fixe
GSM = Tel. Portable
FAX = Fax
PORT2 = Tél. Portable
PORT1 = Tél. Portable
 
# Erreurs
erreurSaisieTitre = Erreur de saisie
demanderValeur = Vous devez saisir une valeur
valeurDejaPresente = La valeur saisie est déjà présente dans la liste
selectionnerValeur = Veuillez sélectionner une valeur
selectionnerValeurOuNull = Veuillez sélectionner une valeur ou laisser le champ vide
messageUrlNonValide = L'URL saisie n'est pas valide !
 
# Navigation
titreNavigation = Navigation
 
# Menus
titreMenu = Menu
txtListeProjetDefaut = Choisissez un projet...
tousProjets = Tous les projets
menuAccueil = Accueil
menuProjet = Projets
menuStructure = Institutions
menuCollection = Collections
menuPersonne = Personnes
menuPublication = Publications
menuCommentaire = Notes
 
# Filtre
titreFiltre = Filtre
 
# Entête
identification = Identifiez vous...
deconnexion = Deconnexion
bienvenue = Bienvenue :
aide = Aide
doc = Documentation
apropos = À propos
feedback = Retour d'expériences...
bogue = Bogues et fonctionnalités
remarques = Commentaires
applicationExterne = Changez d'application...
cel = Carnet en ligne
bel = Biblio en ligne
 
#Aide
plierDeplierToutBtn = Étendre le sommaire
sommaire = Sommaire
 
# A Propos
aproposTitre = À propos...
aproposCode = Code
aproposVersion = Numéro de version
aproposVersionNom = Nom de la version
aproposRevision = Révision
aproposLicence = Licence
aproposTitreCompilation = Compilation
aproposCompilationDate = Date
aproposVersionJava = Version de Java
aproposTitreFramework = Cadre de travail
aproposGwt = Version de GWT
aproposGxt = Version de GXT
aproposTitreNavigateur = Navigateur
aproposNavigateur = COEL fonctionne actuellement dans
aproposTitreContributeur = Contributeurs
aproposDeveloppeur = Développeurs
aproposTraducteur = Traducteurs
 
# +--------------------------------------------------------------------------------------------------------------------+
# Accueil
accueil = Page d'accueil
accueilEnregistrement = Enregistrement de votre page d'accueil
accueilEnregistrementEnCours = Veuillez patientez, enregistrement en cours...
accueilEnregistrementSucces = Votre page d'accueil a été correctement enregistrée
accueilChargementSucces = Votre page d'accueil a été correctement chargée
 
# +--------------------------------------------------------------------------------------------------------------------+
# projet
projetSingulier = projet
projetTitreFormAjout = Ajout d'un projet
projetTitreFormModif = Modification d'un projet
projetTitreInfoGenerale = Informations générales
projetTitreSuppression = Suppression de projet(s)
publicationNomComplet = Nom complet
projetNom = Nom
projetAbreviation = Abréviation
projetResume = Résumé
projetDescription = Description
projetUrl = Url
projetTitreComplement = Complément
projetMotsCles = Mots-clés
projetCitation = Citation
projetLicence = Licence
projetLangue = Langue
projetTitreIndexation = Indexation
projetIndexationDuree = Durée d'indexation
projetIndexationHeure = Heure d'indexation
projetIndexationFrequence = Fréquence d'indexation
projetMarkPublic = Public
projetMessageHeureMinute = L'heure d'indexation doit être au format 'HH:mm'. Exemples : 15:23, 00:00 ou 23:05.
projetMessageNom = Veuillez saisir le nom du projet !
projetMessageAbreviation = Veuillez saisir l'abréviation du projet !
projetMessageDescription = Veuillez saisir la description du projet !
projetMessageResume = Veuillez saisir le résumé du projet !
 
# +--------------------------------------------------------------------------------------------------------------------+
# Structure : titres
structure = Institution
structureSingulier = institution
titreStructureListe = Institutions
titreAjoutFormStructurePanneau = Ajout d'une institution
titreModifFormStructurePanneau = Modification d'une institution
 
# Structure : actions
suppressionStructure = Suppression d'une institution
suppressionStructureAPersonne = Suppression du personnel de l'institution
 
# Grille/Table personnel
fonction = Fonction
courrielPrincipal = Courriel principal
statut = Statut
tpsTravail = Temps de travail
specialite = Spécialité principale
boolContact = Contact ?
 
# Structure : identification
structureInfoGeneral = Général
titreAdministratif = Renseignements administratifs
titreCommunication = Communication
acronyme = Acronyme
acces = Condition d'accès
dateFondation = Date de fondation
nbrePersonnel = Personne travaillant dans l'institution
description = Description
adresse = Adresse
codePostal = Code Postal
ville = Ville
region = Région
pays = Pays
telephone = Téléphone
courriel = Courriel
siteWeb = Site web
 
# Structure : personnel
structureInfoPersonnel = Personnel
titrePersonnel = Personnel
titreMembre = Membres du personnel
nbrePersonnelCollection = Personnel des collections
 
# Structure : conservation
structureInfoConservation = Conservation
titreLocal = Local
titreConservationPersonnel = Formation du personnel à la conservation
titreOperation = Opérations & matériels
titreAcquisition = Acquisitions
formation = Formation en conservation
formationInteret = Intérêt pour une formation
localSpecifique = Locaux spécifiques aux collections
meubleSpecifique = Meubles spécifiques aux collections
localParametre = Paramêtres maîtrisés
conservationEnCommun = Conservation des collections en commun
accesControle = Accès contrôlé
restauration = Opérations actuelles de restauration
materielConservation = Utilisation de matériel de conservation
traitement = Traitements globaux
acquisitionCollection = Acquisition de nouvelles collections
acquisitionEchantillon = Mise en herbier de nouveaux échnatillons
acquisitionTraitement = Traitement avant intégration
acquisitionTraitementInsecte = Désinsectisation
acquisitionTraitementPoison = Empoisonnement
 
# Structure : valorisation
structureInfoValorisation = Valorisation
titreActionValorisation = Actions de valorisation
titreRechercherScientifique = Recherches scientifiques
titreAccesUsage = Accès & Usages
action = Réalisation d'actions de valorisation
actionPublication = Publications
collectionAutre = Autres collections
actionFuture = Futures actions de valorisation
recherche = Utilisation pour la recherche
rechercheProvenance = Provenance des chercheurs
rechercheType = Type de recherche
visite = Condition de visite
 
# +--------------------------------------------------------------------------------------------------------------------+
# Collection : liste
collectionSingulier = collection
collectionListeTitre = Collections
suppressionCollection = Suppression d'une collection
collectionTitreFormAjout = Ajout d'une collection
collectionTitreFormModif = Modification d'une collection
 
# Collection : détail
collectionGeneral = Général
 
collectionMere = À pour collection parente
idAlternatifCollectionDetail = Acronymes
 
collectionCouvertureTitre = Couvertures
groupementPrincipe = Principe de groupement
groupementBut = But du groupement
couvertureGeo = Lieux concernés
 
specimenTypeCollectionDetail = Présence
nbreSpecimenTypeCollectionDetail = Nombre
classementSpecimenTypeCollectionDetail = Classement
 
collectionUniteRangementEtatGeneralDetail = État général
typePapierConservationDetail = Type de papier
methodeConservationDetail = Méthode
 
specimenMethodeFixationDetail = Méthode de fixation du spécimen
etiquetteMethodeFixationSurSupportDetail = Méthode de fixation des étiquettes au support
etiquetteMethodeFixationSurSpecimenDetail = Méthode de fixation des étiquettes au spécimen
typeEcritureDetail = Type d'écriture des étiquettes
 
collectionTraitementDetail = Traitement
collectionTraitementPoisonDetail = Empoisonnement
collectionTraitementInsecteDetail = Pesticide
 
collectionEtatGeneralDetail = État général
degradationSpecimenDetail = Causes de dégradation des spécimens
degradationPresentationDetail = Causes de dégradation de la présentation
collectionDeterminationDetail = Détermination des échantillons
 
natureVegetaleContenuDetail = Nature de la collection
specialiteCollectionDetail = Collection spécialisée
 
periodeConstitutionDetail = Période de constitution
dateDebutCollectionDetail = Date de DÉBUT de récolte
dateFinCollectionDetail = Date de FIN de récolte
 
etatClassementCollectionDetail = État du classement
annotationClassementCollectionDetail = Principe de classement
 
etiquetteRenseignementDetail = Renseignements
etiquetteAuteurCollection = auteur ou titre de la collection
etiquetteFamille = famille
etiquetteGenre = genre
etiquetteSp = espèce
etiquetteAuteurSp = auteur de l'espèce
etiquetteLocalite = localité
etiquetteDateRecolte = date de récolte
precisionLocaliteDetail = Localités précises
precisionDateDetail = Dates précises
etiquetteAnnotationDetail = Annotations
 
integreCollectionDetail = Intégration de collection antérieures
infoIntegreCollectionDetail Nom de la collection sur les étiquettes
 
existenceInventaireCollectionDetail = Existence inventaire
auteurInventaireCollectionDetail = Participation de l'auteur
formeInventaireCollectionDetail = Forme de l'inventaire
infoInventaireCollectionDetail = Informations disponibles
digitalInventaireCollectionDetail = Logiciel utilisé
pourcentDigitalInventaireCollectionDetail = % en base de données
etatInventaireCollectionDetail = État inventaire
typeDonneeInventaireCollectionDetail = Éléments inventoriés
 
# Collection : form
titreModifFormCollection = Modification d'une collection
 
precisionApproximatif = Approximatif
precisionExact = Exact
 
nomCollection = Intitulé principal
typeCollectionNcd = Type de collection
 
liaisonTitreCollection = Liens de la collection
lienStructureCollection = Institution hébergeant cette collection
lienMereCollection = Lier cette collection à une autre collection
 
collectionGeneralTitre = Statut, intitulés et codes
typeDepot = Statut
cote = Cote
intituleAlternatifCollection = Autres intitulés
codeAlternatifCollection = Acronymes
idAlternatifCollection = Identifiants alternatifs
guidCollection = Identifiant global unique (GUID)
 
descriptionSpecialiste = Description spécialiste
historique = Historique
urlsCollection = Adresses de sites web concernant la collection
 
groupementPrincipeCollection = Principal but de groupement
groupementPrincipeCollectionInfo = Principal but de groupement au niveau intellectuel plutôt que physique
butCollection = Principal but de réalisation
lieuCouvertureCollection = Couverture géographique (Pays, régions, départements, communes...)
 
collectionSpecimenTypeTitre = Spécimens «types»
specimenTypeCollection = La collection renferme-t-elle des spécimens «types» ?
specimenTypeCollectionInfo = Types : parts d'herbier ayant servi de base pour la publication d'un nom nouveau, par exemple celui d'une espèce considérée comme nouvelle ou d'un nouveau taxon infraspécifique.
nbreSpecimenTypeCollection = Quel est le nombre (exact ou approximatif) de spécimens «types» présents dans la collection ?
precisionNbreSpecimenTypeCollectionChpVide = Indiquez la précision...
classementSpecimenTypeCollection = Comment sont-ils classés ?
 
# Collection : Personne liées
collectionPersonne = Personnes
collectionPersonneTitre = Personne(s) liées à la collection
chercherPersonneSaisi = Chercher une personne saisie...
selectionnerPersonne = Veuillez sélectionner une personne
chargementPersonne = Chargement des Personnes
typeRelationPersonneCollection = Relation
 
# Collection : Publications liées
collectionPublication = Publications
collectionPublicationTitre = Publication(s) de la collection
chercherPublicationSaisi = Chercher une publication saisie...
selectionnerPublication = Veuillez sélectionner une publication
chargementPublication = Chargement des publications
 
# Collection : Description
collectionDescription = Description
collectionDescriptionTitre = Description et état de la collection
collectionTitrePrecision = Précisions
typeCollectionBotanique = Type d'herbier
nbreEchantillon = Nombre de cartons ou liasses échantillonnés
nbreEchantillonInfo = Privilégier les cartons contenant les Ombellifères ou Apiaceae, les Crucifères ou Brassicaceae et les Composées ou Asteraceae
collectionUniteType = Type
collectionUniteNbre = Nombre
collectionUnitePrecision = Précision
collectionUniteFormat = Format
collectionUniteRangementTitre = Types d'unité de rangement de la collection botanique
selectionnerUniteRangement = une unité de rangement
collectionUniteRangementSaisirType = Veuillez saisir le type d'unité de rangement :
selectionnerUniteRangementAjoute = Seules les unités de rangement ajoutées peuvent être supprimées
collectionUniteRangementEtatGeneral = État de la majorité des unités de rangements
collectionUniteRangementEtatGeneralInfo = État des rubans, des poignées, des sangles, des cartons...
collectionUniteRangementEtatGeneralLabel = État général :
collectionUniteBaseTitre = Types d'unité de base de la collection si différent de l'untité de rangement
collectionUniteBaseExemple = Ex. : si l'unité de rangement est un carton, l'unité de base peut être une enveloppe
collectionUniteBase = Unité de base
collectionUniteBasePart = Parts
collectionUniteBaseSp = Espèces
selectionnerUniteBase = une unité de base
collectionUniteBaseSaisirType = Veuillez saisir le type d'unité de base :
selectionnerUniteBaseAjoute = Seules les unités de base ajoutées peuvent être supprimées
collectionTitreConservation = Conservation
typePapierConservation = Quel est le type du papier de conservation ?
methodeConservation = Comment les échantillons sont-ils conservés ?
collectionTitreEtiquette = Étiquettes
fixationPourcent = Les spécimens et leurs étiquettes sont-ils fixés ou libres ?
specimenFixationPourcent = % de spécimen fixés
etiquetteFixationPourcent = % d'étiquettes fixées
specimenMethodeFixation = S'ils les spécimens sont fixés, de quelle(s) manière(s) ?
etiquetteMethodeFixationSurSupport = S'ils les étiquettes sont fixées au support, de quelle(s) manière(s) ?
etiquetteMethodeFixationSurSpecimen = S'ils les étiquettes sont fixées aux spécimens, de quelle(s) manière(s) ?
typeEcriture = Quel est le type d'écriture des étiquettes ?
collectionTitreTraitement = Traitements
collectionTraitement = La collection botanique semble-t-elle avoir été empoisonnée ou désinsectisée lors de sa réalisation ?
collectionTraitementPoison = Si oui, avec quel produit pour l'empoisonnement ?
collectionTraitementInsecte = Si oui, avec quel produit pour la désinsectisation ?
collectionTitreEtatEtDegradation = État général et dégradation
collectionEtatGeneral = Quel est l'état général de la collection ?
collectionEtatGeneralInfo = Grosses attaques d'insectes, pourriture, papier très fragile, etc...)
degradationSpecimen = Quels sont les causes de dégradation des spécimens ?
degradationPresentation = Quels sont les causes de dégradation de la présentation ?
collectionDetermination = Les échantillons sont-ils déterminables ?
 
# Collection : Contenu
collectionContenu = Contenu
collectionNatureTitre = Nature
natureVegetaleContenu = Quelle est la nature de la collection ?
specialiteCollection = Cette Collection est-elle spécialisée ?
specialiteCollectionInfo = (ex. herbier de céréales, herbier horticole, plantes médicinales, ethnobatique, mission particulière, ...)
collectionConstitutionTitre = Période de constitution
periodeConstitution = Quelle est la période de constitution ?
dateDebutCollection = Quelle est la date extrême de DÉBUT de récolte des spécimens ?
dateFinCollection = Quelle est la date extrême de FIN de récolte des spécimens ?
dateApproximativeInfo = Notes : si vous ne connaissez que l'année, sélectionnez le 1er janvier de l'année en question. Si vous connaissez l'année et le mois mais pas le jour, sélectionnez le 1er jour du mois.
collectionClassementTitre = Classement
etatClassementCollection = Quel est l'état du classement ?
annotationClassementCollection = Quel est le classement de la collection ?
annotationClassementCollectionInfo = Notes : indiquer le type de classement comme une classification connue, une flore, l'ordre alphabétique des familles... Si l'identification du classement n'est pas possible mais que des numéros sont notés, en relever quelques-uns avec les espèces correspondantes.
collectionEtiquetteTitre = Étiquette
renseignementEtiquetteCollection = Quels sont les renseignements portés sur l'étiquette ou sur la part ?
auteurTitrePourcentCollection = % portant le nom de l'auteur ou le titre de la collection
famillePourcentCollection = % portant le nom de la famille
genrePourcentCollection = % portant le nom de genre
spPourcentCollection = % portant le nom de l'espèce
auteurSpPourcentCollection = % portant le nom de l'auteur de l'espèce
localitePourcentCollection = % portant la localité de récolte
datePourcentCollection = % portant la date de récolte
precisionLocaliteCollection = Les localités sont-elles précises ?
precisionDateCollection = Les dates sont-elles complète ?
etiquetteAnnotationCollection = Autres annotations
etiquetteAnnotationCollectionInfo = Dons, annotations personnelles, recettes, utilisations médicales...
collectionIntegreeTitre = Collections intégrées
integreCollection = La collection observée intègre-t-elle des collections botaniques antérieures ?
infoIntegreCollection = Les noms de ces collections sont-ils-notés sur les étiquettes de chaque échantillons ?
infoIntegrationCollection = Notes : si la collection en intègre d'autres, vous pouvez créer ces collections et les lier à la collection actuelle ou l'indiquer dans le champ "Description spécialiste".
 
# Collection : Inventaire
collectionInventaire = Inventaire
collectionInventaireTitre = Inventaire (autre que celui de l'auteur)
existenceInventaireCollection = Existe-t-il un inventaire de cet herbier ?
auteurInventaireCollection = Si oui, l'auteur a-t-il participé à l'inventaire ?
formeInventaireCollection = Si oui, quelle(s) forme(s) prend l'inventaire ?
infoInventaireCollection = Quelles informations retrouve-t-on ?
digitalInventaireCollection = Si l'inventaire est informatisé, quel logiciel utilisez vous ?
pourcentDigitalInventaireCollection = % de l'inventaire en base de données
etatInventaireCollection = Est-t-il complet ou partiel ?
typeDonneeInventaireCollection = Quels sont les éléments qui ont déjà été inventoriés ?
typeDonneeInventaireCollectionInfo = Exemples : Familles, localités...
 
#Collection : Commentaire liées
collectionCommentaire = Notes
collectionCommentaireTitre = Notes liées à la collection
chercherCommentaireSaisi = Chercher une note saisie...
selectionnerCommentaire = Veuillez sélectionner une note
chargementCommentaire = Chargement des Notes
 
# +--------------------------------------------------------------------------------------------------------------------+
# Personne : Form
personneSingulier = personne
personneListeLabel = Personnes
personneModeAjout = Ajouter une personne
personneModeModifier = Modifier une personne
 
personneIdentite = Identité
personnePrefixe = Préfixe
personnePrefixeInfo = Civilité (abbé, colonel, etc...)
personnePrenom = Prénom
personneNom = Nom
personneNomAutre = Autre Nom
personneNomComplet = Nom Complet
personneAbreviation = Abréviation
personneAbreviationAutre = Autres abréviations
personneNaissance = Naissance
personneDateNaissance = Date de naissance
personneLieuNaissance = Lieu de naissance
personneDeces = Décès
personneEstDecedee = Est décédée
personneDecedeeInterogation = Décédée?
personneDateDeces = Date de décès
personneLieuDeces = Lieu de décès
 
personneAdresses = Adresses
personneCodePostal = Code Postal
personneVille = Ville
personneCourriel = Courriel
 
personneInfoNat = Informations Naturalistes
personneProjet = Projet
personneLogos = Images
 
personneSpecialite = Spécialité
personneRecolte = Recolte
 
# +--------------------------------------------------------------------------------------------------------------------+
# Publication
publicationSingulier = publication
publicationTitreFormAjout = Ajout d'une publication
publicationTitreFormModif = Modification d'une publication
publicationTitreSuppression = Suppression de publication(s)
publicationAuteursTitre = Auteur(s)
publicationAuteurSingulier = Auteur
publicationAuteurs = Auteurs
publicationAuteurBoutonAjouter = Ajouter un auteur
publicationTitre = Titre
publicationRevueCollection = Nom de la revue / collection
publicationEditeur = Éditeur
publicationDateParution = Année
publicationNvt = Série / Tome
publicationFascicule = Fascicule
publicationPage = Page(s)
 
# +---------------------------------------------------------------------------------------------------------------+
# Commentaire
commentaireSingulier = note
commentairePluriel = notes
commentaireTitreFormAjout = Ajout d'une note
commentaireTitreFormModif = Modification d'une note
commentaireTitreSuppression = Suppression de note(s)
commentaireCollection = Collection
commentaireTitre = Titre
commentaireType = Type
commentairePonderation = Importance
commentaireTexte = Texte
commentairePublic = Accès
commentaireMessageTitre = Veuillez saisir un titre pour la note !
 
# Pour personne : Publis liées
personnePublication = dont la personne est le sujet
/tags/v1.0-syrah/src/org/tela_botanica/client/i18n/ErrorMessages.properties
New file
0,0 → 1,27
# Rafraichir
erreurRafraichir = Pas de correspondance {0} dans la methode rafraichir() de la classe {1}
 
# Pagination
elementsAffiches = {0} {1} - {2} sur {3}
 
# ChampMultiValeur
valeurNonValideMsg = La valeur saisie n''est pas au bon format {0}
 
# Entete
deconnexion = Déconnexion de l''utilisateur «{0}» en cours...
chargementFenetre = Chargement de la fenêtre «{0}» en cours...
ouvertureLienExterne = Ouverture du lien externe «{0}» en cours...
ouvertureAppliExterne = Ouverture de l''application «{0}» en cours...
titreErreurSaisie = Erreur de saisie
 
# Divers
veuillezSelectionner = Veuillez sélectionner {0}
selectionObligatoire = Veuillez sélectionner {0} pour {1}
 
nonImplemente = Menu {0} non implémenté
erreurRequeteTitre = Erreur de requête
erreurRequete = Une erreur s''est produite lors de l''exécution de la requête.
erreurJrest = Une exception est survenue lors de l''envoi de la requête JRest
erreurServiceJrest = Erreur à l''exécution du service : {0}
typeChampMulti = Vous devez saisir un type
erreurJson = La réponse n''est pas un objet ou un tableau JSON et vaut :{0}
/tags/v1.0-syrah/src/org/tela_botanica/client/ComposantId.java
New file
0,0 → 1,30
package org.tela_botanica.client;
 
public final class ComposantId {
public static final String BTN_PARAMETRES = "coel-id-btn-parametres";
public static final String BTN_CONNEXION = "coel-id-btn-connexion";
public static final String BTN_DECONNEXION = "coel-id-btn-deconnexion";
public static final String BTN_AIDE = "coel-id-btn-aide";
public static final String MENU_DOC = "coel-id-menu-doc";
public static final String MENU_APROPOS = "coel-id-menu-apropos";
public static final String BTN_FEEDBACK = "coel-id-menu-feedback";
public static final String MENU_BOGUE = "coel-id-menu-bogue";
public static final String MENU_COMMENTAIRE = "coel-id-menu-commentaire";
public static final String BTN_APPLIS = "coel-id-btn-applis";
public static final String MENU_CEL = "coel-id-menu-cel";
public static final String MENU_BEL = "coel-id-menu-bel";
public static final String PANNEAU_AIDE = "coel-id-panneau-aide";
public static final String PANNEAU_FORM_PUBLICATION = "coel-id_panneau-form-publication";
public static final String PANNEAU_ENTETE = "coel-entete";
public static final String DIV_TITRE = "coel-titre";
public static final String DIV_IDENTIFICATION = "coel-identification";
public static final String DIV_IDENTIFICATION_MSG = "coel-identification-zone-msg";
public static final String PANNEAU_STATUT = "coel-statut";
public static final String ZONE_DETAIL_ENTETE = "coel-detail-entete";
public static final String ZONE_DETAIL_CORPS = "coel-detail-corps";
public static final String PANNEAU_PUBLICATION_LISTE = "coel-id_panneau-liste-publication";
public static final String PANNEAU_PERSONNE_LISTES = "coel-id_panneau-liste-personne";
public static final String PANNEAU_PROJET_LISTE = "coel-id_panneau-liste-projet";
}
/tags/v1.0-syrah/src/org/tela_botanica/client/RegistreId.java
New file
0,0 → 1,28
package org.tela_botanica.client;
 
public final class RegistreId {
public static final String APPLI_NOM = "Application Nom";
public static final String APPLI_CODE = "Code de l'Application";
public static final String APPLI_VERSION = "Version";
public static final String APPLI_VERSION_NOM = "Version nom";
public static final String APPLI_REVISION = "Revision";
public static final String CONFIG = "Configuration";
public static final String MEDIATEUR = "Médiateur";
public static final String MODELE = "Modèle";
public static final String VIEWPORT = "Viewport";
public static final String PANNEAU_OUEST = "Panneau ouest";
public static final String PANNEAU_CENTRE = "Panneau central";
public static final String PANNEAU_INSTITUTION_DETAIL = "Panneau Institution détail";
public static final String PANNEAU_PUBLICATION_DETAIL = "panneau Publication détail";
public static final String PANNEAU_PERSONNE_DETAIL = "panneau Personne détail";
public static final String UTILISATEUR_COURANT = "Utilisateur courant";
public static final String PROJET_COURANT = "Objet Projet courant";
public static final String POPUP_CHARGEMENT = "Popup chargement";
public static final String PANNEAU_SUD = "Barre de statut";
public static final String PROJETS = "Liste des projets";
public static final String APPLI_COMPILATION_JAVA_VERSION = "Version de Java ayant servi à compiler";
public static final String APPLI_COMPILATION_DATE_HEURE = "Date et heure de la compilation de l'application";
public static final String APPLI_DEVELOPPEURS = "Développeurs de l'application";
public static final String APPLI_TRADUCTEURS = "Traducteurs de l'application";
public static final String APPLI_LICENCE = "Licence du code source de l'application";
}
Property changes:
Added: svn:keywords
+Revision
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/Coel.java
New file
0,0 → 1,24
package org.tela_botanica.client;
 
import org.tela_botanica.client.modeles.MenuApplicationId;
 
import com.extjs.gxt.ui.client.GXT;
import com.google.gwt.core.client.EntryPoint;
 
public class Coel implements EntryPoint {
 
private Mediateur mediateur = null;
public void onModuleLoad() {
GXT.hideLoadingPanel("loading");
mediateur = getMediateur();
// J'appelle directement la page où je travaille
mediateur.clicMenu(MenuApplicationId.ACCUEIL);
}
protected Mediateur getMediateur() {
return new Mediateur();
}
}
Property changes:
Added: svn:keywords
+Revision GlobalRev
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/PopupChargement.java
New file
0,0 → 1,36
package org.tela_botanica.client.vues;
 
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
 
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.layout.TableLayout;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.PopupPanel;
 
public class PopupChargement extends PopupPanel{
private Mediateur mediateur = null;
private Constantes i18nC = null;
public PopupChargement(Mediateur mediateurCourrant) {
super();
mediateur = mediateurCourrant;
i18nC = mediateur.i18nC;
LayoutContainer cp = new LayoutContainer();
cp.setLayout(new TableLayout(2));
 
Image imageChargement = Images.ICONES.ajaxLoader().createImage();
cp.add(imageChargement);
Text texteChargement = new Text(i18nC.chargement());
cp.add(texteChargement);
add(cp);
center();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/StatutVue.java
New file
0,0 → 1,36
package org.tela_botanica.client.vues;
 
import org.tela_botanica.client.ComposantId;
 
import com.extjs.gxt.ui.client.Style.Orientation;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.Status;
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
 
public class StatutVue extends LayoutContainer {
private Status barreStatut = null;
public StatutVue() {
setLayout(new RowLayout(Orientation.HORIZONTAL));
setId(ComposantId.PANNEAU_STATUT);
 
ToolBar toolBar = new ToolBar();
toolBar.add(new FillToolItem());
barreStatut = new Status();
toolBar.add(barreStatut);
add(barreStatut);
}
public void showBusy(String message) {
barreStatut.setBusy(message);
}
public void clear() {
barreStatut.clearStatus("");
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/EnteteVue.java
New file
0,0 → 1,270
package org.tela_botanica.client.vues;
 
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.i18n.ErrorMessages;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Utilisateur;
import org.tela_botanica.client.util.Debug;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style;
import com.extjs.gxt.ui.client.Style.Orientation;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.MenuEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.HtmlContainer;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
import com.extjs.gxt.ui.client.widget.button.SplitButton;
import com.extjs.gxt.ui.client.widget.layout.RowData;
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
import com.extjs.gxt.ui.client.widget.menu.Menu;
import com.extjs.gxt.ui.client.widget.menu.MenuItem;
 
public class EnteteVue extends LayoutContainer implements Rafraichissable {
 
private Mediateur mediateur = null;
private Constantes i18nC = null;
private ErrorMessages i18nM = null;
 
private String identificationInfoTpl = null;
private String titreTpl = null;
private HtmlContainer conteneurHtml = null;
private SelectionListener<ButtonEvent> boutonEcouteur = null;
private ButtonBar barreBoutons = null;
private Button identificationBouton = null;
private SplitButton feedbackBouton = null;
private SplitButton aideBouton = null;
private SplitButton applisBouton = null;
public EnteteVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
i18nC = Mediateur.i18nC;
i18nM = Mediateur.i18nM;
setId(ComposantId.PANNEAU_ENTETE);
setLayout(new RowLayout(Orientation.HORIZONTAL));
initialiserSquelettes();
boutonEcouteur = getEcouteurDesBoutons();
conteneurHtml = getIdentification();
identificationBouton = getBoutonIdentification();
feedbackBouton = getBoutonAFeedback();
aideBouton = getBoutonAide();
applisBouton = getBoutonApplications();
barreBoutons = new ButtonBar();
barreBoutons.setAlignment(Style.HorizontalAlignment.RIGHT);
barreBoutons.add(conteneurHtml);
barreBoutons.add(identificationBouton);
barreBoutons.add(aideBouton);
barreBoutons.add(feedbackBouton);
barreBoutons.add(applisBouton);
add(getTitre(), new RowData(.20, 1));
add(barreBoutons, new RowData(.8, 1));
}
private void initialiserSquelettes() {
identificationInfoTpl = "<div id='"+ComposantId.DIV_IDENTIFICATION+"'>{0}</div>";
titreTpl = "<div id='"+ComposantId.DIV_TITRE+"'>{0}</div>";
}
private HtmlContainer getTitre() {
HtmlContainer titreConteneurHtml = new HtmlContainer();
titreConteneurHtml.setHtml(Format.substitute(titreTpl, Registry.get(RegistreId.APPLI_NOM)));
return titreConteneurHtml;
}
private HtmlContainer getIdentification() {
HtmlContainer conteneurHtml = new HtmlContainer();
conteneurHtml.setHtml(Format.substitute(identificationInfoTpl, (new Params()).add(i18nC.modeAnonyme())));
return conteneurHtml;
}
private SelectionListener<ButtonEvent> getEcouteurDesBoutons() {
SelectionListener<ButtonEvent> boutonEcouteur = new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
Button btn = (Button) be.getComponent();
String id = btn.getId();
String message = "";
if (id.equals(ComposantId.BTN_AIDE)
|| id.equals(ComposantId.BTN_FEEDBACK)
|| id.equals(ComposantId.BTN_APPLIS)) {
btn.showMenu();
} else if (id.equals(ComposantId.BTN_CONNEXION)) {
mediateur.ouvrirIdentification();
message = i18nM.chargementFenetre(btn.getText());
} else if (id.equals(ComposantId.BTN_DECONNEXION)) {
mediateur.deconnecterUtilisateur();
Utilisateur utilisateurCourant = mediateur.getUtilisateur();
message = i18nM.deconnexion(utilisateurCourant.getNomComplet());
} else if (id.equals(ComposantId.BTN_APPLIS)) {
btn.getMenu().show(btn);
}
if (!message.equals("")) {
Info.display(i18nC.chargement(), message);
}
}
};
return boutonEcouteur;
}
private Button getBoutonIdentification() {
Button bouton = new Button(i18nC.identification(), boutonEcouteur);
bouton.setId(ComposantId.BTN_CONNEXION);
return bouton;
}
private SplitButton getBoutonAide() {
MenuItem menuDoc = new MenuItem(i18nC.doc());
menuDoc.addSelectionListener(new SelectionListener<MenuEvent>() {
@Override
public void componentSelected(MenuEvent mEvent) {
mediateur.ouvrirAide();
}
});
menuDoc.setId(ComposantId.MENU_DOC);
menuDoc.setIcon(Images.ICONES.aide());
MenuItem menuApropos = new MenuItem(i18nC.apropos());
menuApropos.addSelectionListener(new SelectionListener<MenuEvent>() {
@Override
public void componentSelected(MenuEvent mEvent) {
mediateur.ouvrirParametres();
}
});
menuApropos.setId(ComposantId.MENU_APROPOS);
menuApropos.setIcon(Images.ICONES.engrenages());
Menu menuAide = new Menu();
menuAide.add(menuDoc);
menuAide.add(menuApropos);
SplitButton boutonAvecMenus = new SplitButton(i18nC.aide());
boutonAvecMenus.setId(ComposantId.BTN_AIDE);
boutonAvecMenus.setIcon(Images.ICONES.aide());
boutonAvecMenus.addSelectionListener(boutonEcouteur);
boutonAvecMenus.setMenu(menuAide);
return boutonAvecMenus;
}
private SplitButton getBoutonAFeedback() {
MenuItem menuBogue = new MenuItem(i18nC.bogue());
menuBogue.addSelectionListener(new SelectionListener<MenuEvent>() {
@Override
public void componentSelected(MenuEvent mEvent) {
Menu me = (Menu) mEvent.getComponent();
MenuItem mi = (MenuItem) me.getItemByItemId(ComposantId.MENU_BOGUE);
Info.display(Mediateur.i18nC.chargement(), i18nM.ouvertureLienExterne(mi.getText()));
mediateur.ouvrirUrlExterne(ComposantId.MENU_BOGUE);
}
});
menuBogue.setId(ComposantId.MENU_BOGUE);
menuBogue.setIcon(Images.ICONES.bogue());
MenuItem menuCommentaire = new MenuItem(i18nC.remarques());
menuCommentaire.addSelectionListener(new SelectionListener<MenuEvent>() {
@Override
public void componentSelected(MenuEvent mEvent) {
Menu me = (Menu) mEvent.getComponent();
MenuItem mi = (MenuItem) me.getItemByItemId(ComposantId.MENU_COMMENTAIRE);
Info.display(Mediateur.i18nC.chargement(), i18nM.ouvertureLienExterne(mi.getText()));
mediateur.ouvrirUrlExterne(ComposantId.MENU_COMMENTAIRE);
}
});
menuCommentaire.setId(ComposantId.MENU_COMMENTAIRE);
menuCommentaire.setIcon(Images.ICONES.commentaire());
Menu menuFeedback = new Menu();
menuFeedback.add(menuBogue);
menuFeedback.add(menuCommentaire);
SplitButton boutonAvecMenus = new SplitButton(i18nC.feedback());
boutonAvecMenus.setId(ComposantId.BTN_FEEDBACK);
boutonAvecMenus.addSelectionListener(boutonEcouteur);
boutonAvecMenus.setMenu(menuFeedback);
boutonAvecMenus.setIcon(Images.ICONES.flecheDedansDehors());
return boutonAvecMenus;
}
private SplitButton getBoutonApplications() {
MenuItem menuCel = new MenuItem(i18nC.cel());
menuCel.addSelectionListener(new SelectionListener<MenuEvent>() {
@Override
public void componentSelected(MenuEvent mEvent) {
Menu me = (Menu) mEvent.getComponent();
MenuItem mi = (MenuItem) me.getItemByItemId(ComposantId.MENU_CEL);
Info.display(i18nC.chargement(), i18nM.ouvertureAppliExterne(mi.getText()));
mediateur.ouvrirUrlExterne(ComposantId.MENU_CEL);
}
});
menuCel.setId(ComposantId.MENU_CEL);
menuCel.setIcon(Images.ICONES.images());
MenuItem menuBel = new MenuItem(i18nC.bel());
menuBel.addSelectionListener(new SelectionListener<MenuEvent>() {
@Override
public void componentSelected(MenuEvent mEvent) {
Menu me = (Menu) mEvent.getComponent();
MenuItem mi = (MenuItem) me.getItemByItemId(ComposantId.MENU_BEL);
Info.display(i18nC.chargement(), i18nM.ouvertureAppliExterne(mi.getText()));
mediateur.ouvrirUrlExterne(ComposantId.MENU_BEL);
}
});
menuBel.setId(ComposantId.MENU_BEL);
menuBel.setIcon(Images.ICONES.livreOuvert());
Menu menu = new Menu();
menu.add(menuCel);
menu.add(menuBel);
SplitButton boutonAvecMenus = new SplitButton(i18nC.applicationExterne());
boutonAvecMenus.setId(ComposantId.BTN_APPLIS);
boutonAvecMenus.addSelectionListener(boutonEcouteur);
boutonAvecMenus.setMenu(menu);
boutonAvecMenus.setIcon(Images.ICONES.flecheBascule());
return boutonAvecMenus;
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("maj_utilisateur")) {
Utilisateur utilisateur = mediateur.getUtilisateur();
if (utilisateur.isIdentifie()) {
if (utilisateur.existeDansAnnuaire()) {
utilisateur.majUtilisateurInfoAnnuaire();
}
conteneurHtml.setHtml(Format.substitute(identificationInfoTpl, (new Params()).add(i18nC.bienvenue()+utilisateur.getNomComplet())));
identificationBouton.setText(i18nC.deconnexion());
identificationBouton.setIcon(Images.ICONES.deconnexion());
identificationBouton.setId(ComposantId.BTN_DECONNEXION);
} else {
conteneurHtml.setHtml(Format.substitute(identificationInfoTpl, (new Params()).add(i18nC.modeAnonyme())));
identificationBouton.setText(i18nC.identification());
identificationBouton.setIcon(Images.ICONES.connexion());
identificationBouton.setId(ComposantId.BTN_CONNEXION);
}
}
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
layout();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/Formulaire.java
New file
0,0 → 1,330
package org.tela_botanica.client.vues;
 
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.i18n.ErrorMessages;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.aDonneeListe;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
import com.extjs.gxt.ui.client.widget.form.CheckBox;
import com.extjs.gxt.ui.client.widget.form.CheckBoxGroup;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.Field;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.Radio;
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.extjs.gxt.ui.client.widget.tips.ToolTipConfig;
import com.google.gwt.core.client.GWT;
 
public abstract class Formulaire extends LayoutContainer implements Rafraichissable {
 
public static final String MODE_AJOUTER = "AJOUT";
public static final String MODE_MODIFIER = "MODIF";
public Constantes i18nC = null;
public ErrorMessages i18nM = null;
public Mediateur mediateur = null;
public Configuration config = null;
public String mode = null;
public int tabIndex = 100;
public FormPanel panneauFormulaire = null;
public ButtonBar barreOutilsValidation = null;
public String menuIdCourant = null;
public static Boolean clicBoutonvalidation = false;
public Rafraichissable vueExterneARafraichirApresValidation = null;
 
public FormPanel getFormulaire() {
return panneauFormulaire;
}
public void initialiserFormulaire(Mediateur mediateurCourrant, String modeDeCreation, String idMenuCourrant) {
// Initialisation de variables
mode = modeDeCreation;
mediateur = mediateurCourrant;
i18nC = Mediateur.i18nC;
i18nM = Mediateur.i18nM;
menuIdCourant = idMenuCourrant;
config = (Configuration) Registry.get(RegistreId.CONFIG);
// Iniatilisation du layoutContainer
setLayout(new FitLayout());
setBorders(false);
// Création du panneau du FORMULAIRE GÉNÉRAL
panneauFormulaire = new FormPanel();
panneauFormulaire.setBodyBorder(false);
panneauFormulaire.setFrame(true);
panneauFormulaire.setCollapsible(false);
panneauFormulaire.setButtonAlign(HorizontalAlignment.CENTER);
panneauFormulaire.setLayout(new FitLayout());
 
if (modeDeCreation.equals(MODE_AJOUTER)) {
panneauFormulaire.setIcon(Images.ICONES.formAjouter());
} else if (modeDeCreation.equals(MODE_AJOUTER)) {
panneauFormulaire.setIcon(Images.ICONES.formModifier());
}
barreOutilsValidation = new FormulaireBarreValidation(creerEcouteurValidation());
panneauFormulaire.setBottomComponent(barreOutilsValidation);
add(panneauFormulaire);
}
public SelectionListener<ButtonEvent> creerEcouteurValidation() {
SelectionListener<ButtonEvent> ecouteur = new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
String code = ((Button) ce.getComponent()).getData("code");
if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
soumettreFormulaire();
clicBoutonvalidation = true;
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
soumettreFormulaire();
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
mediateur.clicMenu(menuIdCourant);
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
reinitialiserFormulaire();
}
}
};
return ecouteur;
}
public abstract boolean verifierFormulaire();
public abstract boolean soumettreFormulaire();
public abstract void reinitialiserFormulaire();
public TabItem creerOnglet(String nom, String id) {
TabItem onglet = new TabItem();
onglet.setId(id);
onglet.setText(nom);
FormulaireOnglet.parametrer(onglet);
return onglet;
}
 
public void controlerFermetureApresRafraichissement() {
// Si le bouton Valider a été cliqué, nous affichons la liste des structures
if (clicBoutonvalidation) {
fermerFormulaire();
}
}
public void fermerFormulaire() {
clicBoutonvalidation = false;
panneauFormulaire.setEnabled(false);
mediateur.clicMenu(menuIdCourant);
}
/** Méthode simplifiant la création de FormLayout.
* Chacun des paramètres peut prendre la valeur null pour utiliser la valeur par défaut.
*
* @param labelWidth largeur des labels.
* @param labelAlign alignement des labels
* @return
*/
public static FormLayout creerFormLayout(Integer labelWidth, LabelAlign labelAlign) {
FormLayout formLayout = new FormLayout();
if (labelWidth != null) {
formLayout.setLabelWidth(labelWidth);
}
if (labelAlign != null) {
formLayout.setLabelAlign(labelAlign);
}
return formLayout;
}
/** Méthode simplifiant la création de bouton radio oui/non
*
* @param listeNom nom de la liste de valeur
* @return
*/
public RadioGroup creerChoixUniqueRadioGroupe(String groupeNom, String listeNom) {
groupeNom += "_grp";
// NOTE : il semblerait qu'il faille aussi utiliser setName() pour éviter tout problème...
RadioGroup radioGroup = new RadioGroup(groupeNom);
radioGroup.setName(groupeNom);
 
if (listeNom.equals("ouiNon")) {
ValeurListe ouiNonListe = new ValeurListe();
ouiNonListe.ajouter(new Valeur("1", i18nC.oui(), "NULL", "NULL"));
ouiNonListe.ajouter(new Valeur("0", i18nC.non(), "NULL", "NULL"));
creerChoixUniqueBoutonRadio(radioGroup, ouiNonListe);
}
return radioGroup;
}
public void creerChoixUniqueBoutonRadio(RadioGroup radioGroupe, ValeurListe listeValeurs) {
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
Valeur val = listeValeurs.get(it.next());
Radio radioBtn = new Radio();
radioBtn.setName(radioGroupe.getName().replace("_grp", ""));
radioBtn.setId(val.getId()+"_"+radioBtn.getName());
radioBtn.setBoxLabel(val.getNom());
radioBtn.setValueAttribute(val.getId());
radioBtn.addListener(Events.Change, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
//Window.alert(((Radio) be.component).getName());
afficherChampSupplementaire(((Radio) be.getComponent()));
}
});
if (! val.getDescription().equals("NULL")) {
radioBtn.setToolTip(new ToolTipConfig(val.getNom(), val.getDescription()));
}
radioGroupe.add(radioBtn);
}
}
public void afficherChampSupplementaire(Radio radioBtn) {
GWT.log("Vous devez redéfinir la méthode afficherChampSupplementaire(Radio radioBtn) dans votre classe formulaire.", null);
};
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
* Ajoute ou pas un champ "Autre".
*
* @return ContentPanel le panneau contenant les cases à cocher
*/
public static LayoutContainer creerChoixMultipleCp() {
LayoutContainer conteneur = new LayoutContainer();
conteneur.setLayout(creerFormLayout(650, LabelAlign.TOP));
return conteneur;
}
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
* Ajoute ou pas un champ "Autre".
*
* @param cp panneau conteant le groupe de case à cocher
* @param cacGroup le groupe de case à cocher
* @param listeValeurs la liste de valeurs à transformer en case à cocher
* @param boolAutreChp booléen indiquant si oui ou non le champ autre doit apparaître
* @return
*/
public static void creerChoixMultipleCac(LayoutContainer cp, final CheckBoxGroup cacGroupe, ValeurListe listeValeurs, final Field<String> autreChp) {
cp.addListener(Events.Hide, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
cacGroupe.reset();
autreChp.setValue("");
}
});
cacGroupe.setAutoWidth(true);
cacGroupe.setStyleAttribute("padding", "3px");
cacGroupe.setData("liste_id", listeValeurs.getId());
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
Valeur val = listeValeurs.get(it.next());
String nom = val.get("nom");
CheckBox cac = new CheckBox();
cac.setId("val-"+val.getId());
cac.setData("id", val.getId());
cac.setBoxLabel(nom);
if (! val.getDescription().equals("NULL")) {
cac.setToolTip(new ToolTipConfig(val.getNom(), val.getDescription()));
}
cacGroupe.add(cac);
}
cp.add(cacGroupe);
if (autreChp != null) {
// FIXME : éviter le chevauchement du texte des cases à cocher avec le label "Autre" sur les petits écrans
LayoutContainer conteneur = new LayoutContainer();
conteneur.setLayout(creerFormLayout(50, LabelAlign.TOP));
autreChp.setId("autre-"+listeValeurs.getId());
autreChp.setFieldLabel("Autre");
autreChp.setLabelStyle("font-weight:normal;");
conteneur.add(autreChp, new FormData(500, 0));
cp.add(conteneur);
}
cp.layout();
}
@SuppressWarnings({"unchecked"})
public static void rafraichirComboBox(aDonneeListe<?> listeValeurs, ComboBox combo) {
rafraichirComboBox(listeValeurs, combo, "nom");
}
@SuppressWarnings({"unchecked"})
public static void rafraichirComboBox(aDonneeListe<?> listeValeurs, ComboBox combo, String champATrier) {
List<?> liste = listeValeurs.toList();
if (liste.size() > 0) {
ListStore store = combo.getStore();
store.removeAll();
store.add(liste);
store.sort(champATrier, SortDir.ASC);
combo.setStore(store);
}
}
public static Listener<BaseEvent> creerEcouteurChampObligatoire() {
return new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
Field<?> champ = null;
boolean etreVide = true;
if (be.getSource() instanceof TextField<?>) {
champ = (TextField<?>) be.getSource();
etreVide = (champ.getRawValue().isEmpty()) ? true : false;
} else if (be.getSource() instanceof TextArea) {
champ = (TextArea) be.getSource();
etreVide = (champ.getRawValue().isEmpty()) ? true : false;
} else if (be.getSource() instanceof ChampComboBoxListeValeurs) {
champ = (ChampComboBoxListeValeurs) be.getSource();
etreVide = (champ.getValue() == null) ? true : false;
} else if (be.getSource() instanceof ComboBox<?>) {
champ = (ComboBox<?>) be.getSource();
etreVide = (champ.getValue() == null) ? true : false;
}
champ.removeStyleName(ComposantClass.OBLIGATOIRE);
champ.removeStyleName(ComposantClass.OBLIGATOIRE_OK);
if (etreVide == false) {
champ.addStyleName(ComposantClass.OBLIGATOIRE_OK);
} else {
champ.addStyleName(ComposantClass.OBLIGATOIRE);
}
}
};
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/FiltreVue.java
New file
0,0 → 1,104
package org.tela_botanica.client.vues;
 
import java.util.LinkedList;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
 
public class FiltreVue extends ContentPanel implements Rafraichissable {
private Mediateur mediateur = null;
private Constantes i18nC = null;
private ListStore<Projet> projets = null;
private ComboBox<Projet> listeProjets;
private ProjetListe projetsCache = null;
public FiltreVue(Mediateur mediateurCourrant) {
mediateur = mediateurCourrant;
i18nC = Mediateur.i18nC;
setHeading(i18nC.titreFiltre());
setLayout(new FitLayout());
setLayoutOnChange(true);
 
chargerProjets();
initialiserListeProjets();
}
private void chargerProjets() {
mediateur.selectionnerProjet(this, null);
}
private void initialiserListeProjets() {
// Ajout de la sélection des projets
listeProjets = new ComboBox<Projet>();
projets = new ListStore<Projet>();
listeProjets.setStore(projets);
listeProjets.setEditable(false);
listeProjets.setDisplayField("nom");
listeProjets.setEmptyText(i18nC.txtListeProjetDefaut());
listeProjets.setTypeAhead(true);
listeProjets.setTriggerAction(TriggerAction.ALL);
// Ajout d'un écouteur pour le changement => enregistre la valeur courante du projet dans le registre
listeProjets.addSelectionChangedListener(new SelectionChangedListener<Projet>() {
@Override
public void selectionChanged(SelectionChangedEvent<Projet> se) {
mediateur.activerChargement(i18nC.chargement());
mediateur.selectionnerProjetCourant(se.getSelectedItem());
}
});
add(listeProjets);
}
private void afficherListeProjets(List projetsRecus) {
projets.removeAll();
List<Projet> selection = new LinkedList<Projet>();
Projet tousProjets = new Projet();
tousProjets.set("nom", i18nC.tousProjets());
projetsRecus.add(0, tousProjets);
selection.add(tousProjets);
projets.add(projetsRecus);
listeProjets.setStore(projets);
listeProjets.setSelection(selection);
layout();
}
@Override
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ProjetListe) {
projetsCache = (ProjetListe) nouvellesDonnees;
Registry.register(RegistreId.PROJETS, projetsCache);
afficherListeProjets(projetsCache.toList());
} else if (nouvellesDonnees instanceof List) {
List<Projet> projets = (List) nouvellesDonnees;
Registry.register(RegistreId.PROJETS, projets);
afficherListeProjets(projets);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/personne/PersonneFormPublication.java
New file
0,0 → 1,665
package org.tela_botanica.client.vues.personne;
 
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.publication.PublicationAPersonne;
import org.tela_botanica.client.modeles.publication.PublicationAPersonneListe;
import org.tela_botanica.client.modeles.publication.PublicationListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.FenetreForm;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.FormulaireBarreValidation;
import org.tela_botanica.client.vues.FormulaireOnglet;
import org.tela_botanica.client.vues.publication.PublicationForm;
 
import com.extjs.gxt.ui.client.core.XTemplate;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.KeyListener;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.store.Store;
import com.extjs.gxt.ui.client.store.StoreEvent;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnData;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.grid.RowExpander;
import com.extjs.gxt.ui.client.widget.grid.RowNumberer;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
 
public class PersonneFormPublication extends FormulaireOnglet implements Rafraichissable {
private Personne personneSelectionnee = null;
private static int idGenere = 1;
private ContentPanel panneauPrincipal = null;
private ToolBar barreOutils = null;
private EditorGrid<PublicationAPersonne> grille;
private PublicationAPersonneListe publicationsAjoutees = null;
private PublicationAPersonneListe publicationsSupprimees = null;
private ComboBox<Publication> publicationsSaisiesComboBox = null;
private Button publicationsBoutonSupprimer = null;
private Button publicationsBoutonModifier = null;
private ComboBox<Valeur> typeRelationCombo = null;
private List<Valeur> roles = null;
private PublicationAPersonneListe listePublicationsLiees = new PublicationAPersonneListe();
private FenetreForm fenetreFormulaire = null;
public PersonneFormPublication(Formulaire formulaireCourrant) {
initialiserOnglet(formulaireCourrant);
setId("publication");
setText(Mediateur.i18nC.collectionPublication());
setStyleAttribute("padding", "0");
panneauPrincipal = creerPanneauContenantGrille();
barreOutils = creerBarreOutilsGrille();
panneauPrincipal.setTopComponent(barreOutils);
grille = creerGrille();
panneauPrincipal.add(grille);
add(panneauPrincipal);
initialiser();
}
private void initialiser() {
// Remise à zéro des modification dans la liste des auteurs
idGenere = 1;
publicationsAjoutees = new PublicationAPersonneListe();
publicationsSupprimees = new PublicationAPersonneListe();
// Actualisation de l'état des boutons de la barre d'outils
actualiserEtatBoutonsBarreOutils();
}
public void mettreAJourPersonne() {
personneSelectionnee = ((PersonneForm) formulaire).personneSelectionnee;
//Boucle sur les role pour trouver les publication à personne
if ((roles != null) && (personneSelectionnee!=null)) {
mediateur.selectionnerPublicationAPersonne(this, null, personneSelectionnee.getId(), roles);
}
}
private ContentPanel creerPanneauContenantGrille() {
ContentPanel panneau = new ContentPanel();
panneau.setHeading(i18nC.collectionPublication()+" " + i18nC.personnePublication());
panneau.setIcon(Images.ICONES.table());
panneau.setLayout(new FitLayout());
panneau.setFrame(true);
return panneau;
}
 
private ToolBar creerBarreOutilsGrille() {
ToolBar barreOutils = new ToolBar();
Button ajouterBouton = creerBoutonAjouter();
barreOutils.add(ajouterBouton);
barreOutils.add(new Text(" ou "));
publicationsSaisiesComboBox = creerComboBoxPublicationsSaisis();
barreOutils.add(publicationsSaisiesComboBox);
barreOutils.add(new SeparatorToolItem());
publicationsBoutonModifier = creerBoutonModifier();
barreOutils.add(publicationsBoutonModifier);
barreOutils.add(new SeparatorToolItem());
publicationsBoutonSupprimer = creerBoutonSupprimer();
barreOutils.add(publicationsBoutonSupprimer);
barreOutils.add(new SeparatorToolItem());
Button rafraichirBouton = creerBoutonRafraichir();
barreOutils.add(rafraichirBouton);
return barreOutils;
}
 
private Button creerBoutonAjouter() {
Button bouton = new Button(i18nC.ajouter());
bouton.setIcon(Images.ICONES.vcardAjouter());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
fenetreFormulaire = creerFenetreModaleAvecFormulairePersonne(Formulaire.MODE_AJOUTER);
fenetreFormulaire.show();
}
});
return bouton;
}
private Button creerBoutonModifier() {
Button bouton = new Button(i18nC.modifier());
bouton.setIcon(Images.ICONES.vcardModifier());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
PublicationAPersonne publicationSaisieSelectionnee = grille.getSelectionModel().getSelectedItem();
if (publicationSaisieSelectionnee == null) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerPublication());
} else {
fenetreFormulaire = creerFenetreModaleAvecFormulairePersonne(Formulaire.MODE_MODIFIER);
fenetreFormulaire.show();
}
}
});
return bouton;
}
private FenetreForm creerFenetreModaleAvecFormulairePersonne(String mode) {
String publicationId = null;
if (mode.equals(Formulaire.MODE_MODIFIER)) {
PublicationAPersonne publicationSaisiSelectionne = grille.getSelectionModel().getSelectedItem();
publicationId = publicationSaisiSelectionne.getIdPublication();
}
final FenetreForm fenetre = new FenetreForm("");
final PublicationForm formulaire = creerFormulairePublication(fenetre, publicationId);
fenetre.add(formulaire);
return fenetre;
}
private PublicationForm creerFormulairePublication(final FenetreForm fenetre, final String publicationId) {
PublicationForm formulairePublication = new PublicationForm(mediateur, publicationId, this);
FormPanel panneauFormulaire = formulairePublication.getFormulaire();
fenetre.setHeading(panneauFormulaire.getHeading());
panneauFormulaire.setHeaderVisible(false);
panneauFormulaire.setTopComponent(null);
// FIXME : avec GXT-2.1.0 la redéfinition du bottom component ne marche plus. Nous le cachons et en créeons un dans la fenêtre.
panneauFormulaire.getBottomComponent().hide();
SelectionListener<ButtonEvent> ecouteur = creerEcouteurValidationFormulairePublication(fenetre, formulairePublication);
final ButtonBar barreValidation = new FormulaireBarreValidation(ecouteur);
fenetre.setBottomComponent(barreValidation);
return formulairePublication;
}
private SelectionListener<ButtonEvent> creerEcouteurValidationFormulairePublication(final FenetreForm fenetre, final PublicationForm formulaire) {
SelectionListener<ButtonEvent> ecouteur = new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
String code = ((Button) ce.getComponent()).getData("code");
if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
if (formulaire.soumettreFormulaire()) {
fenetre.hide();
}
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
formulaire.soumettreFormulaire();
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
fenetre.hide();
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
fenetreFormulaire.hide();
fenetreFormulaire = creerFenetreModaleAvecFormulairePersonne(formulaire.mode);
fenetreFormulaire.show();
}
}
};
return ecouteur;
}
private Button creerBoutonSupprimer() {
Button bouton = new Button(i18nC.supprimer());
bouton.setIcon(Images.ICONES.vcardSupprimer());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
PublicationAPersonne publicationSaisieSelectionnee = grille.getSelectionModel().getSelectedItem();
if (publicationSaisieSelectionnee == null) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerPublication());
} else {
supprimerDansGrille(publicationSaisieSelectionnee);
}
}
});
return bouton;
}
private Button creerBoutonRafraichir() {
Button bouton = new Button(i18nC.rafraichir());
bouton.setIcon(Images.ICONES.rafraichir());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
actualiserGrille();
}
});
return bouton;
}
private void actualiserGrille() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.selectionnerPublicationAPersonne(this, null, personneSelectionnee.getId(), "%");
} else {
grille.getStore().removeAll();
layout();
}
}
private ComboBox<Publication> creerComboBoxPublicationsSaisis() {
ListStore<Publication> publicationsSaisiesStore = new ListStore<Publication>();
ComboBox<Publication> comboBox = new ComboBox<Publication>();
comboBox.setWidth(400);
comboBox.setEmptyText(i18nC.chercherPublicationSaisi());
comboBox.setTriggerAction(TriggerAction.ALL);
comboBox.setEditable(true);
comboBox.setDisplayField("fmt_nom_complet");
comboBox.setStore(publicationsSaisiesStore);
comboBox.addKeyListener(new KeyListener() {
public void componentKeyUp(ComponentEvent ce) {
if (publicationsSaisiesComboBox.getRawValue() != null && publicationsSaisiesComboBox.getRawValue().length() > 0) {
if (!ce.isNavKeyPress()) {
obtenirPublicationsSaisies(publicationsSaisiesComboBox.getRawValue());
}
}
}
});
comboBox.addListener(Events.Select, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
if (publicationsSaisiesComboBox.getValue() instanceof Publication) {
Publication publicationSaisieSelectionne = publicationsSaisiesComboBox.getValue();
ajouterDansGrille(publicationSaisieSelectionne);
publicationsSaisiesComboBox.setValue(null);
}
}
});
return comboBox;
}
private void ajouterDansGrille(Publication publication) {
ajouterDansGrille(publication, 0);
}
private void ajouterDansGrille(Publication publication, int index) {
if (publication != null) {
if (!listePublicationsLiees.containsKey(publication.getId())) {
PublicationAPersonne publicationLiee = new PublicationAPersonne();
publicationLiee.setPersonne(personneSelectionnee);
publicationLiee.setPublicationLiee(publication);
publicationLiee.setIdPublication(publication.getId());
publicationLiee.set("_etat_", aDonnee.ETAT_AJOUTE);
listePublicationsLiees.put(publication.getId(), publicationLiee);
 
// Ajout à la grille
grille.stopEditing();
grille.getStore().insert(publicationLiee, 0);
grille.startEditing(index, 0);
grille.getSelectionModel().select(index, false);
} else {
Info.display("Information", "La publication choisie existe déjà dans la liste.");
}
}
}
/**
* Met à jour la grille avec les informations contenus dans la variable listePublicationsLiees
*/
private void mettreAJourGrille() {
grille.getStore().removeAll();
grille.getStore().add(listePublicationsLiees.toList());
}
private void supprimerDansGrille(PublicationAPersonne publicationLiee) {
if (publicationLiee != null) {
// Ajout de la personne supprimée à la liste
if ((publicationLiee.get("_etat_").equals("") || !publicationLiee.get("_etat_").equals(aDonnee.ETAT_AJOUTE))
&& publicationLiee.getId() != null
&& !publicationLiee.getId().equals("")) {
Debug.log("Nbre publications supprimées avant:"+publicationsSupprimees.size());
publicationsSupprimees.put("id"+idGenere++, publicationLiee);
//GWT.log("Publications supprimée : "+publicationLiee.getIdPublication()+" "+publicationLiee.get.getNomComplet(), null);
Debug.log("Nbre publications supprimées :"+publicationsSupprimees.size());
}
// Suppression de l'enregistrement de la grille
grille.getStore().remove(publicationLiee);
}
}
 
private EditorGrid<PublicationAPersonne> creerGrille() {
ListStore<PublicationAPersonne> storeGrille = new ListStore<PublicationAPersonne>();
storeGrille.addListener(Store.Add, new Listener<StoreEvent<PublicationAPersonne>>() {
public void handleEvent(StoreEvent<PublicationAPersonne> ce) {
actualiserEtatBoutonsBarreOutils();
}
});
storeGrille.addListener(Store.Remove, new Listener<StoreEvent<PublicationAPersonne>>() {
public void handleEvent(StoreEvent<PublicationAPersonne> ce) {
actualiserEtatBoutonsBarreOutils();
}
});
RowNumberer numeroPlugin = new RowNumberer();
numeroPlugin.setHeader("#");
XTemplate infoTpl = XTemplate.create("<p>"+
"<span style='font-weight:bold;'>"+i18nC.publicationAuteurs()+" :</span> {fmt_auteur}<br />"+
"<span style='font-weight:bold;'>"+i18nC.publicationTitre()+" :</span> {titre}<br />"+
"<span style='font-weight:bold;'>"+i18nC.publicationRevueCollection()+" :</span> {collection}<br />"+
"<span style='font-weight:bold;'>"+i18nC.publicationEditeur()+" :</span> {_editeur_}"+
"</p>");
RowExpander expansionPlugin = new RowExpander();
expansionPlugin.setTemplate(infoTpl);
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
colonnes.add(expansionPlugin);
colonnes.add(numeroPlugin);
typeRelationCombo = new ComboBox<Valeur>();
typeRelationCombo.setForceSelection(true);
typeRelationCombo.setTriggerAction(TriggerAction.ALL);
typeRelationCombo.setDisplayField("nom");
typeRelationCombo.setStore(new ListStore<Valeur>());
typeRelationCombo.setEditable(false);
typeRelationCombo.addStyleName(ComposantClass.OBLIGATOIRE);
typeRelationCombo.addListener(Events.Select, Formulaire.creerEcouteurChampObligatoire());
CellEditor editeurRelation = new CellEditor(typeRelationCombo) {
@Override
public Object preProcessValue(Object valeur) {
Valeur retour = null;
if (valeur != null ) {
Debug.log(valeur.toString());
if (typeRelationCombo.getStore().findModel("nom", valeur.toString()) != null) {
retour = typeRelationCombo.getStore().findModel("nom", valeur.toString());
} else if (typeRelationCombo.getStore().findModel("abr", valeur.toString()) != null) {
retour = typeRelationCombo.getStore().findModel("abr", valeur.toString());
} else if (typeRelationCombo.getStore().findModel("id_valeur", valeur.toString()) != null) {
retour = typeRelationCombo.getStore().findModel("id_valeur", valeur.toString());
}
}
return retour;
}
 
@Override
public Object postProcessValue(Object valeur) {
String retour = null;
if (valeur != null ) {
if (valeur instanceof Valeur) {
Valeur valeurOntologie = (Valeur) valeur;
retour = valeurOntologie.getId();
}
}
return retour;
}
};
GridCellRenderer<PublicationAPersonne> relationRendu = new GridCellRenderer<PublicationAPersonne>() {
@Override
public String render(PublicationAPersonne modele, String property, ColumnData config, int rowIndex, int colIndex, ListStore<PublicationAPersonne> store, Grid<PublicationAPersonne> grille) {
// Gestion du texte afficher dans la cellule
String role = modele.get("_role_");
String roleNom = "";
if (typeRelationCombo.getStore() != null && role!=null && role.matches("[0-9]+")) {
roleNom = typeRelationCombo.getStore().findModel("id_valeur", role).getNom();
role = typeRelationCombo.getStore().findModel("id_valeur", role).getId();
}
modele.set("_role_", role);
modele.set("_etat_", aDonnee.ETAT_MODIFIE);
return roleNom;
}
};
ColumnConfig typeRelationColonne = new ColumnConfig("_role_", i18nC.typeRelationPersonneCollection(), 75);
typeRelationColonne.setEditor(editeurRelation);
typeRelationColonne.setRenderer(relationRendu);
colonnes.add(typeRelationColonne);
colonnes.add(new ColumnConfig("fmt_auteur", i18nC.publicationAuteurs(), 150));
colonnes.add(new ColumnConfig("titre", i18nC.publicationTitre(), 150));
colonnes.add(new ColumnConfig("collection", i18nC.publicationRevueCollection(), 75));
colonnes.add(creerColonneEditeur());
colonnes.add(creerColonneAnneePublication());
colonnes.add(new ColumnConfig("indication_nvt", i18nC.publicationNvt(), 75));
colonnes.add(new ColumnConfig("fascicule", i18nC.publicationFascicule(), 75));
colonnes.add(new ColumnConfig("truk_pages", i18nC.publicationPage(), 50));
GridSelectionModel<PublicationAPersonne> modeleDeSelection = new GridSelectionModel<PublicationAPersonne>();
ColumnModel modeleDeColonnes = new ColumnModel(colonnes);
modeleDeColonnes.getColumn(0).setWidget(Images.ICONES.information().createImage(), "Info");
EditorGrid<PublicationAPersonne> grillePublications = new EditorGrid<PublicationAPersonne>(storeGrille, modeleDeColonnes);
grillePublications.setHeight("100%");
grillePublications.setBorders(true);
grillePublications.setSelectionModel(modeleDeSelection);
grillePublications.addPlugin(expansionPlugin);
grillePublications.addPlugin(numeroPlugin);
grillePublications.getView().setForceFit(true);
grillePublications.setAutoExpandColumn("titre");
grillePublications.setStripeRows(true);
grillePublications.setTrackMouseOver(true);
return grillePublications;
}
private ColumnConfig creerColonneEditeur() {
GridCellRenderer<PublicationAPersonne> editeurRendu = new GridCellRenderer<PublicationAPersonne>() {
@Override
public String render(PublicationAPersonne model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<PublicationAPersonne> store, Grid<PublicationAPersonne> grid) {
String editeur = model.getPublicationLiee().getNomEditeur();
model.set("_editeur_", editeur);
return editeur;
}
};
ColumnConfig editeurColonne = new ColumnConfig("_editeur_", Mediateur.i18nC.publicationEditeur(), 135);
editeurColonne.setRenderer(editeurRendu);
return editeurColonne;
}
private ColumnConfig creerColonneAnneePublication() {
GridCellRenderer<PublicationAPersonne> datePublicationRendu = new GridCellRenderer<PublicationAPersonne>() {
@Override
public String render(PublicationAPersonne model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<PublicationAPersonne> store, Grid<PublicationAPersonne> grid) {
String annee = model.getPublicationLiee().getAnneeParution();
model.set("_annee_", annee);
return annee;
}
};
ColumnConfig datePublicationColonne = new ColumnConfig("_annee_", Mediateur.i18nC.publicationDateParution(), 75);
datePublicationColonne.setRenderer(datePublicationRendu);
return datePublicationColonne;
}
 
public void actualiserEtatBoutonsBarreOutils() {
// Activation des boutons si la grille contient un élément
if (grille.getStore().getCount() > 0) {
publicationsBoutonSupprimer.enable();
publicationsBoutonModifier.enable();
}
// Désactivation des boutons si la grille ne contient plus d'élément
if (grille.getStore().getCount() == 0) {
publicationsBoutonSupprimer.disable();
publicationsBoutonModifier.disable();
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
rafraichirInformation(info);
} else if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
if (listeValeurs.getId().equals(config.getListeId("relationPersonnePublication"))) {
Formulaire.rafraichirComboBox(listeValeurs, typeRelationCombo);
roles = listeValeurs.toList();
mettreAJourPersonne();
}
} else if (nouvellesDonnees instanceof PublicationListe) {
PublicationListe listePublications = (PublicationListe) nouvellesDonnees;
rafraichirPublicationListe(listePublications);
} else if (nouvellesDonnees instanceof PublicationAPersonneListe) {
PublicationAPersonneListe papl = (PublicationAPersonneListe) nouvellesDonnees;
List<PublicationAPersonne> paplListe = papl.toList();
if (paplListe.size()>0){
Iterator<PublicationAPersonne> it = paplListe.iterator();
while (it.hasNext()) {
PublicationAPersonne pap = it.next();
listePublicationsLiees.put(pap.getPublicationLiee().getId(), pap);
}
mettreAJourGrille();
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
private void rafraichirPublicationListe(PublicationListe listePublications) {
publicationsSaisiesComboBox.getStore().removeAll();
publicationsSaisiesComboBox.getStore().add(listePublications.toList());
publicationsSaisiesComboBox.expand();
}
public void rafraichirInformation(Information info) {
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
}
String type = info.getType();
if (type.equals("publication_liees")) {
if (info.getDonnee(0) != null) {
initialiser();
personneSelectionnee.setPublicationsLiees((PublicationAPersonneListe) info.getDonnee(0));
peupler();
}
} else if (type.equals("publication_modifiee")) {
if (info.getDonnee(0) != null) {
Publication publication = (Publication) info.getDonnee(0);
PublicationAPersonne publicationDansGrille = grille.getStore().findModel("id_publication", publication.getId());
int index = grille.getStore().indexOf(publicationDansGrille);
grille.getStore().remove(publicationDansGrille);
ajouterDansGrille(publication, index);
}
} else if (type.equals("publication_ajoutee")) {
if (info.getDonnee(0) != null) {
Publication publication = (Publication) info.getDonnee(0);
ajouterDansGrille(publication);
}
} else if (type.equals("suppression_collection_a_publication")) {
Info.display("Suppression des publications liées à la collection", info.toString());
} else if (type.equals("ajout_collection_a_publication")) {
Info.display("Ajout des publications liées à la collection", info.toString());
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(info.getClass(), this.getClass()), null);
}
}
 
public void peupler() {
grille.getStore().removeAll();
grille.getStore().add(personneSelectionnee.getPublicationsLiees().toList());
layout();
Info.display(i18nC.chargementPublication(), i18nC.ok());
}
 
public void collecter() {
if (etreAccede()) {
int nbrePublication = grille.getStore().getCount();
for (int i = 0; i < nbrePublication; i++) {
PublicationAPersonne publicationLiee = grille.getStore().getAt(i);
if (publicationLiee.get("_etat_") != null) {
if (publicationLiee.get("_etat_").equals(aDonnee.ETAT_MODIFIE)) {
// Comme il est impossible de modifier les relations nous supprimons l'ancien enregistrement et ajoutons un nouveau avec le nouveau id_role
publicationsSupprimees.put("id"+idGenere++, publicationLiee);
PublicationAPersonne relationAAjouter = (PublicationAPersonne) publicationLiee.cloner(new PublicationAPersonne());
publicationsAjoutees.put("id"+idGenere++, relationAAjouter);
Debug.log(publicationLiee.toString());
}
if (publicationLiee.get("_etat_").equals(aDonnee.ETAT_AJOUTE)) {
publicationsAjoutees.put("id"+idGenere++, publicationLiee);
Debug.log(publicationLiee.toString());
}
// Initialisation de la grille
publicationLiee.set("_etat_", "");
}
}
grille.getStore().commitChanges();
}
}
public List verifier() {
List lstMessageErreur = new LinkedList<String>();
//Vérifier les roles
List<PublicationAPersonne> listePublis = grille.getStore().getModels();
Iterator<PublicationAPersonne> itPublis = listePublis.iterator();
while (itPublis.hasNext()) {
PublicationAPersonne publi = itPublis.next();
if (UtilString.isEmpty((String) publi.get("_role_"))) {
lstMessageErreur.add("Vous devez choisir le rôle de la relation " + (grille.getStore().indexOf(publi) + 1));
}
}
return lstMessageErreur;
}
public void soumettre() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
if (publicationsAjoutees.size() == 0 && publicationsSupprimees.size() == 0) {
Info.display("Modification des publications liées", "Rien n'a été enregistré car le formulaire n'a pas été modifié.");
} else {
// Ajout des relations CollectionAPublication
if (publicationsAjoutees.size() != 0) {
//TODO : utiliser le role d'une liste déroulante
mediateur.ajouterPublicationAPersonne(this, publicationsAjoutees, personneSelectionnee.getId(), null);
}
// Suppression des relations CollectionAPublication
if (publicationsSupprimees.size() != 0) {
mediateur.supprimerPublicationAPersonne(this, publicationsSupprimees);
}
}
}
}
private void obtenirPublicationsSaisies(String nom) {
mediateur.selectionnerPublicationParNomComplet(this, null, "%"+nom+"%");
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/personne/PersonneVue.java
New file
0,0 → 1,65
package org.tela_botanica.client.vues.personne;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.personne.PersonneListe;
import org.tela_botanica.client.util.Debug;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.google.gwt.core.client.GWT;
 
public class PersonneVue extends LayoutContainer implements Rafraichissable {
 
private PersonneListeVue panneauPersonneListe;
private PersonneDetailVue panneauPersonneDetail;
private Mediateur mediateur = null;
 
public PersonneVue(Mediateur mediateur) {
this.mediateur = mediateur;
BorderLayout layout = new BorderLayout();
layout.setEnableState(false);
setLayout(layout);
 
panneauPersonneListe = new PersonneListeVue();
this.add(panneauPersonneListe, new BorderLayoutData(LayoutRegion.CENTER));
 
panneauPersonneDetail = new PersonneDetailVue(mediateur);
BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, .5f, 200, 1000);
southData.setSplit(true);
southData.setMargins(new Margins(5, 0, 0, 0));
this.add(panneauPersonneDetail, southData);
}
 
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Personne) {
panneauPersonneDetail.rafraichir((Personne) nouvellesDonnees);
} else if (nouvellesDonnees instanceof PersonneListe) {
panneauPersonneListe.rafraichir((PersonneListe) nouvellesDonnees);
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
// Affichage des éventuels messages de déboguage ou d'alerte
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log(info.getMessages().toString(), null);
}
// Traitement en fonction des types d'information
if (info.getType().equals("liste_personne")) {
panneauPersonneListe.rafraichir((PersonneListe) info.getDonnee(0));
Info.display("Chargement d'une liste de personnes", "");
} else {
panneauPersonneListe.rafraichir(info);
}
} else {
GWT.log(mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/personne/PersonneListeVue.java
New file
0,0 → 1,205
package org.tela_botanica.client.vues.personne;
 
import java.util.ArrayList;
import java.util.List;
 
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Utilisateur;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.personne.PersonneListe;
import org.tela_botanica.client.vues.BarrePaginationVue;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
 
public class PersonneListeVue extends ContentPanel implements Rafraichissable {
private Mediateur mediateur = null ;
private Grid<Personne> grille = null;
private ListStore<Personne> store = null;
private BarrePaginationVue pagination = null;
private ColumnModel modeleColonnes = null;
private Button ajouter = null;
private Button modifier = null;
private Button supprimer = null;
public PersonneListeVue() {
mediateur = Registry.get(RegistreId.MEDIATEUR);
setHeading(Mediateur.i18nC.personneListeLabel());
setLayout(new FitLayout());
//Définition de la barre d'outil
ToolBar toolBar = new ToolBar();
ajouter = new Button(Mediateur.i18nC.ajouter());
ajouter.setIcon(Images.ICONES.ajouter());
ajouter.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
mediateur.clicAjouterPersonne();
}
});
toolBar.add(ajouter);
 
modifier = new Button(Mediateur.i18nC.modifier());
modifier.setIcon(Images.ICONES.formModifier());
modifier.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
mediateur.clicModifierPersonne(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(modifier);
supprimer = new Button(Mediateur.i18nC.supprimer());
supprimer.setIcon(Images.ICONES.supprimer());
supprimer.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
clicSupprimerPersonne(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(supprimer);
setTopComponent(toolBar);
 
// Définition des colomnes de la grille:
List<ColumnConfig> lstColumns = new ArrayList<ColumnConfig>();
lstColumns.add(new ColumnConfig("id_personne", "Id", 45));
lstColumns.add(new ColumnConfig("nom", "Nom", 100));
lstColumns.add(new ColumnConfig("prenom", "Prénom", 100));
lstColumns.add(new ColumnConfig("fmt_nom_complet", "Nom Complet", 200));
lstColumns.add(new ColumnConfig("code_postal", "Code postal", 100));
lstColumns.add(new ColumnConfig("ville", "Ville", 100));
lstColumns.add(new ColumnConfig("_courriel_princ_", "Courriel", 200));
 
lstColumns.get(0).setHidden(true);
lstColumns.get(1).setHidden(true);
lstColumns.get(2).setHidden(true);
modeleColonnes = new ColumnModel(lstColumns);
 
// Définition de la grille
GridSelectionModel<Personne> gsmSelectionGrille = new GridSelectionModel<Personne>();
gsmSelectionGrille.addSelectionChangedListener(new SelectionChangedListener<Personne>() {
public void selectionChanged(SelectionChangedEvent<Personne> event) {
Personne personneSelectionnee = (Personne) event.getSelectedItem();
clicListe(personneSelectionnee);
}
});
store = new ListStore<Personne>();
store.sort("fmt_nom_complet", SortDir.ASC);
grille = new Grid<Personne>(store, modeleColonnes);
grille.setSelectionModel(gsmSelectionGrille);
grille.setWidth("100%");
grille.setAutoExpandColumn("fmt_nom_complet");
grille.getView().setAutoFill(true);
grille.getView().setForceFit(true);
grille.addListener(Events.ViewReady, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
grille.getStore().sort("fmt_nom_complet", SortDir.ASC);
grille.getSelectionModel().select(0, false);
}
});
grille.addListener(Events.OnDoubleClick, new Listener<BaseEvent>(){
@Override
public void handleEvent(BaseEvent be) {
modifier.fireEvent(Events.Select);
}
});
add(grille);
// Définition de la barre de pagination
pagination = new BarrePaginationVue(new PersonneListe(), mediateur);
setBottomComponent(pagination);
}
 
private void clicListe(Personne personne) {
if (personne != null && store.getCount() > 0) {
mediateur.clicListePersonne(personne);
}
}
private void clicSupprimerPersonne(List<Personne> personnesASupprimer) {
if (store.getCount() > 0) {
mediateur.clicSupprimerPersonne(this, personnesASupprimer);
}
}
private void gererEtatActivationBouton() {
int nbreElementDuMagazin = store.getCount();
ajouter.enable();
if (nbreElementDuMagazin == 0) {
supprimer.disable();
modifier.disable();
} else if (nbreElementDuMagazin > 0) {
modifier.enable();
if (((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT)).isIdentifie()) {
supprimer.enable();
}
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof PersonneListe) {
PersonneListe listePersonnes = (PersonneListe) nouvellesDonnees;
pagination.setlistePaginable(listePersonnes);
pagination.rafraichir(listePersonnes.getPageTable());
if (listePersonnes != null) {
List<Personne> liste = (List<Personne>) listePersonnes.toList();
store.removeAll();
store.add(liste);
mediateur.desactiverChargement();
mediateur.actualiserPanneauCentral();
grille.fireEvent(Events.ViewReady);
}
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("suppression_personne")) {
Info.display("Suppression de personne", info.getMessages().toString());
pagination.getlistePaginable().recharger();
gererEtatActivationBouton();
} else if (info.getType().equals("maj_utilisateur")) {
gererEtatActivationBouton();
} else {
Info.display("Erreur", info.getMessages().toString());
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
layout();
}
}
 
 
 
 
 
 
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/personne/PersonneDetailVue.java
New file
0,0 → 1,368
package org.tela_botanica.client.vues.personne;
 
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.MissingResourceException;
 
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.vues.DetailVue;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Html;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
import com.google.gwt.user.client.ui.Image;
 
public class PersonneDetailVue extends DetailVue implements Rafraichissable {
 
private TabPanel tabPanel;
private Html entete;
private TabItem tabIdentite;
private TabItem tabAdresse;
private TabItem tabInfosNat;
private TabItem tabLogos;
 
private HashMap hmLabelFieldRegion = new HashMap();
private Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
private boolean ontologieRecue = false;
private Personne personneAAfficher = null;
 
private void chargerOntologie() {
mediateur.obtenirListeValeurEtRafraichir(this, "pays");
mediateur.obtenirListeValeurEtRafraichir(this, "tel");
}
public PersonneDetailVue(Mediateur mediateur) {
super(mediateur);
chargerOntologie();
mediateur.obtenirListeValeurEtRafraichir(this, "pays");
 
setLayout(new FitLayout());
 
entete = new Html();
entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
 
ContentPanel panneauPrincipal = new ContentPanel();
panneauPrincipal.setLayout(new FitLayout());
panneauPrincipal.setHeaderVisible(false);
panneauPrincipal.setBodyBorder(true);
panneauPrincipal.setTopComponent(entete);
 
tabIdentite = new TabItem(i18nC.personneIdentite());
tabIdentite.setLayout(new AnchorLayout());
tabIdentite.setScrollMode(Scroll.AUTO);
 
tabAdresse = new TabItem(i18nC.personneAdresses());
tabAdresse.setLayout(new FitLayout());
tabAdresse.setScrollMode(Scroll.AUTO);
 
tabInfosNat = new TabItem(i18nC.personneInfoNat());
tabInfosNat.setScrollMode(Scroll.AUTO);
 
tabLogos = new TabItem(i18nC.personneLogos());
tabLogos.setScrollMode(Scroll.AUTO);
tabLogos.setLayout(new FlowLayout());
 
tabPanel = new TabPanel();
tabPanel.setId(ComposantId.ZONE_DETAIL_CORPS);
tabPanel.setBodyBorder(false);
 
tabPanel.add(tabIdentite);
tabPanel.add(tabAdresse);
tabPanel.add(tabInfosNat);
tabPanel.add(tabLogos);
 
panneauPrincipal.add(tabPanel);
add(panneauPrincipal);
}
 
public void afficherDetailPersonne(Personne personne) {
if (personne != null) {
String tplEntete = initialiserTplEntete();
 
Params enteteParams = new Params();
enteteParams.set("nom", (String) personne.get("fmt_nom_complet"));
enteteParams.set("mail", (String) personne.getCourrielPrinc());
 
LinkedList lstLogos = (LinkedList) personne
.getChaineDenormaliseAsMapOrList("truk_logo");
if (lstLogos != null && lstLogos.size() > 0) {
 
tabLogos.removeAll();
String urlLogoPrinc = (String) lstLogos.get(0);
if (!urlLogoPrinc.trim().equals("")) {
tplEntete = "<div id='personne-logo-div'><img src='{image}' alt='logo' /></div>"
+ tplEntete;
enteteParams.set("image", urlLogoPrinc);
}
 
Iterator<String> itLogo = lstLogos.iterator();
while (itLogo.hasNext()) {
String urlLogoCourant = itLogo.next();
Image imgCourante = new Image(urlLogoCourant);
tabLogos.add(imgCourante);
}
tabLogos.enable();
 
} else {
enteteParams.set("image", "");
tabLogos.disable();
}
 
entete.el().setInnerHtml(Format.substitute(tplEntete, enteteParams));
 
String tplIdentite = initialiserTplIdentite();
 
Params tabIdentiteParams = new Params();
tabIdentiteParams.set("nom_complet", personne.getString("fmt_nom_complet"));
tabIdentiteParams.set("abreviation", personne.getString("abreviation"));
tabIdentiteParams.set("naissance_date", personne.getNaissanceDate());
tabIdentiteParams.set("naissance_lieu", personne.getString("naissance_lieu"));
String tplDeces = "";
if (personne.estDecedee()) {
tplDeces = " <h2>Décès:</h2>"
+ " <span><b>"
+ i18nC.personneDateDeces()
+ ":</b></span> {deces_date}<br />"
+ " <span><b>"
+ i18nC.personneLieuDeces()
+ ":</b></span> {deces_lieu}<br /><br />";
tabIdentiteParams.set("deces_date", personne.getDecesDate());
tabIdentiteParams.set("deces_lieu", personne.getString("deces_lieu"));
}
Params paramsDeces = new Params();
paramsDeces.set("tplDeces", tplDeces);
tplIdentite = Format.substitute(tplIdentite, paramsDeces);
tabIdentiteParams.set("description", personne.getString("description"));
 
tabInfosNat.removeAll();
 
tabIdentiteParams.set("nom_autre", construireTxtTruck(personne.getString("truk_nom_autre")));
tabIdentiteParams.set("abreviation_autre", construireTxtTruck(personne.getString("truk_abreviation_autre")));
 
tplIdentite += construireTxtListeOntologie(personne.getString("truk_telephone"));
 
// Courriel :Champ truk de la forme
// "Adresse@adr.com;; adr2@adr.fr ..."
LinkedList<String> listeCourriel = (LinkedList<String>) personne
.getChaineDenormaliseAsMapOrList("truk_courriel");
if ((listeCourriel != null) && (listeCourriel.size() > 0)) {
String strLabelCourriel = "Courriel";
if (listeCourriel.size() > 1) {
strLabelCourriel += "s";
}
 
String valeurCourriel = "";
Iterator<String> itCourriel = listeCourriel.iterator();
while (itCourriel.hasNext()) {
String valeurCourante = itCourriel.next();
valeurCourriel += "<br /><a href=\"mailto:"
+ valeurCourante + "\">" + valeurCourante + "</a>";
}
tplIdentite += valeurCourriel;
}
 
// Url Site Webs
LinkedList listeUrl = (LinkedList) personne
.getChaineDenormaliseAsMapOrList("truk_url");
if (listeUrl != null && listeUrl.size() > 0) {
 
tplIdentite += "<br /><br /><b>Sites web:</b><br /><span style='display:inline-block'>";
String strUrl = "";
Iterator<String> urlIt = listeUrl.iterator();
while (urlIt.hasNext()) {
String urlCourante = urlIt.next();
strUrl += "<a href=\"" + urlCourante + "\">" + urlCourante
+ "</a> <br/>";
}
tplIdentite += strUrl + "</span><br />";
}
 
tplIdentite += "</div>";
 
afficherOnglet(tplIdentite, tabIdentiteParams, tabIdentite);
 
String tabAdresseTpl = "<div class='{css_corps}'>"
+ " <div class='{css_fieldset}'>"
+ " <h2>Adresse personnelle:</h2>"
+ " <b>Adresse:</b> {adresse01} <br />"
+ " <b>Complément d'adresse: </b>{adresse02} <br />"
+ " <b>Boite postale: </b>{boitePostale}<br />"
+ " <b>Code postal:</b>{codePostal} <br />"
+ " <b>Région:</b>{region}<br />"
+ " <span style='uppercase'>{pays}</span><br />"
+ "</div>";
// Adresses :
Params paramAdresseTpl = new Params();
paramAdresseTpl.set("adresse01", (String) personne
.obtenirValeurChamp("adresse_01"));
paramAdresseTpl.set("adresse02", (String) personne
.obtenirValeurChamp("adresse_02"));
paramAdresseTpl.set("boitePostale", (String) personne
.obtenirValeurChamp("bp"));
paramAdresseTpl.set("codePostal", (String) personne
.obtenirValeurChamp("code_postal"));
paramAdresseTpl.set("ville", (String) personne
.obtenirValeurChamp("ville"));
paramAdresseTpl.set("region", (String) personne
.obtenirValeurChamp("region"));
paramAdresseTpl.set("pays", (String) personne
.obtenirValeurChamp("pays"));
 
afficherOnglet(tabAdresseTpl, paramAdresseTpl, tabAdresse);
tabAdresse.setStyleAttribute("padding", "15px");
 
// Infos naturalistes :Biographie, Spécialité (typé)
String tplInfosNat = "<div class='{css_corps}'>"
+ " <div class='{css_fieldset}'>" + " <h2>"
+ i18nC.personneSpecialite() + "</h1>"
+ " {specialites}" + " <h2>"
+ i18nC.personneRecolte() + "</h2>"
+ " {recoltes}" + " </div>" + "</div>";
Params prmInfosNat = new Params();
 
// TODO : replace id region par valeur
 
String specialite = construireTxtTruck(personne.getSpecialite());
prmInfosNat.set("specialites", specialite);
 
String recolte = construireTxtListeOntologie(personne.getString("truk_recolte"));
prmInfosNat.set("recoltes", recolte);
 
afficherOnglet(tplInfosNat, prmInfosNat, tabInfosNat);
tabAdresse.setStyleAttribute("padding", "15px");
 
changerLabelRegions();
layout();
}
}
 
public String initialiserTplEntete() {
return "<div id='{css_id}'>" + "<h1>{nom}</h1>"
+ "<h2><a href='{mail}'>{mail}</a></h2>" + "</div>";
}
 
public String initialiserTplIdentite() {
return "<div class='{css_corps}'>" + " <div class='{css_fieldset}'>"
+ " <h2>Noms:</h2>" + " <span><b>"
+ i18nC.personneNomComplet()
+ ":</b></span> {nom_complet}<br />"
+ " <span><b>"
+ i18nC.personneNomAutre()
+ ":</b></span> {nom_autre}<br />"
+ " <span><b>"
+ i18nC.personneAbreviation()
+ ":</b></span> {abreviation}<br />"
+ " <span><b>"
+ i18nC.personneAbreviationAutre()
+ ":</b></b></span> {abreviation_autre}<br /><br />"
+ " <h2>Naissance:</h2>"
+ " <span><b>"
+ i18nC.personneDateNaissance()
+ ":</b></span> {naissance_date}<br />"
+ " <span><b>"
+ i18nC.personneLieuNaissance()
+ ":</b></span> {naissance_lieu}<br /><br />"
+ "{tplDeces}"
+ " </div>"
+ "</div>"
+ "<div class='{css_corps}'>"
+ " <div class='css_fieldset'> "
+ " <h2>Description:</h2>"
+ " {description}<br />" + " </div>" + "<br />";
}
 
private void changerLabelRegions() {
Collection<String> colClesComposants = hmLabelFieldRegion.keySet();
Iterator<String> itComposants = colClesComposants.iterator();
 
while (itComposants.hasNext()) {
String region = itComposants.next();
mediateur.obtenirValeurEtRafraichir(this, "region", region);
}
}
 
private void ajouterLabelField(FieldSet fs, String tfLabel, Object tfValue) {
if ((tfValue != null) && (!tfValue.toString().trim().equals(""))) {
 
LabelField tf = new LabelField();
 
tf.setFieldLabel(tfLabel + ":");
if ((tfLabel == null) || ("".equals(tfLabel))) {
tf.setHideLabel(true);
tf.setStyleAttribute("margin", "0 0 0 105px");
}
tf.setValue(tfValue);
 
// Ajout au fieldSet
fs.add(tf);
}
}
public void rafraichir(Object nouvellesDonnees) {
// Si on a reçu une personne on en affiche les détails
if (nouvellesDonnees instanceof Personne) {
personneAAfficher = (Personne) nouvellesDonnees;
} else if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe ontologieReceptionnee = (ValeurListe) nouvellesDonnees;
ajouterListeValeursAOntologie(ontologieReceptionnee);
ontologieRecue = true;
// Remplacer ci-dessous par Ontologie
ValeurListe listeValeur = (ValeurListe) nouvellesDonnees;
if (listeValeur.getId().equals(config.getListeId("region"))) {
Collection colCleListeValeur = listeValeur.keySet();
Iterator<String> itLv = colCleListeValeur.iterator();
while (itLv.hasNext()) {
String idRegion = itLv.next();
Valeur region = listeValeur.get(idRegion);
 
if (region != null) {
 
String strRegionId = region.getAbreviation();
 
LinkedList<LabelField> listComposantsRegion = (LinkedList) hmLabelFieldRegion.get(strRegionId);
for (int i = 0; i < listComposantsRegion.size(); i++) {
LabelField lfRegion = listComposantsRegion.get(i);
lfRegion.setFieldLabel(region.getNom());
}
 
}
}
}
}
if (ontologieRecue && personneAAfficher != null) {
afficherDetailPersonne(personneAAfficher);
}
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/personne/PersonneForm.java
New file
0,0 → 1,1278
package org.tela_botanica.client.vues.personne;
 
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.composants.ChampMultiValeurs;
import org.tela_botanica.client.composants.ChampMultiValeursImage;
import org.tela_botanica.client.composants.ChampMultiValeursMultiTypes;
import org.tela_botanica.client.composants.HashMapComposants;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
 
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.MenuApplicationId;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.personne.PersonneListe;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.publication.PublicationAPersonneListe;
import org.tela_botanica.client.modeles.publication.PublicationListe;
import org.tela_botanica.client.util.Pattern;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.Formulaire;
 
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.Style.VerticalAlignment;
 
import com.extjs.gxt.ui.client.binding.FormBinding;
 
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.KeyListener;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.MessageBox;
 
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.Text;
 
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.DateField;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.form.Radio;
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
import com.extjs.gxt.ui.client.widget.layout.TableData;
import com.extjs.gxt.ui.client.widget.layout.TableLayout;
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Widget;
 
public class PersonneForm extends Formulaire implements Rafraichissable {
 
// VARIABLES
private TabItem tiIdentite, tiAdresses, tiInfosNat;
PersonneFormPublication tiPubli;
private Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
protected Personne personneSelectionnee, personneSauvegarde = null;
//hmIdentite[...] référence par une chaine de caractère tous les composants de l'onglet Identite
private HashMapComposants hmIdentite = new HashMapComposants();
private HashMapComposants hmAdresse = new HashMapComposants();
private HashMapComposants hmInfosNat = new HashMapComposants();
private HashMap<String, Valeur> hmCbSelectionnee = new HashMap();
private FormData fd100 = new FormData("95%");
private Button enregistrer, enregistrerEtRevenir;
private Personne personne = null;
private String personneId = null;
private FormBinding binding = null;
//Publi
private ComboBox<Publication> cbPubli;
private ListStore<Publication> storePubli;
// CONSTRUCTEUR
public PersonneForm(Mediateur mediateurCourrant, String personneId) {
initialiserPersonneForm(mediateurCourrant, personneId);
}
public PersonneForm(Mediateur mediateurCourrant, String personneId, Rafraichissable vueARafraichirApresValidation) {
vueExterneARafraichirApresValidation = vueARafraichirApresValidation;
initialiserPersonneForm(mediateurCourrant, personneId);
}
private void initialiserPersonneForm(Mediateur mediateurCourrant, String personneIdCourrant) {
personne = new Personne();
personne.setId(personneIdCourrant);
personneId = personneIdCourrant;
String modeDeCreation = (UtilString.isEmpty(personneId) ? Formulaire.MODE_AJOUTER : Formulaire.MODE_MODIFIER);
initialiserFormulaire(mediateurCourrant, modeDeCreation, MenuApplicationId.PERSONNE);
 
initialiserComposants();
genererTitreFormulaire();
mediateur.obtenirListeValeurEtRafraichir(this, "relationPersonnePublication");
if (modeDeCreation.equals(Formulaire.MODE_MODIFIER)) {
mediateur.selectionnerPersonne(this, personne, null);
}
}
private void genererTitreFormulaire() {
String titre = i18nC.personneModeAjout();
if (mode.equals(Formulaire.MODE_MODIFIER)) {
titre = i18nC.personneModeModifier()+" - "+i18nC.id()+": "+personneId;
}
panneauFormulaire.setHeading(titre);
}
public void initialiserComposants() {
personneSelectionnee = new Personne();
personneSauvegarde = new Personne();
initialiserOnglets();
creerComposantsIdentite();
creerComposantsAdresse();
creerComposantsInfosNat();
//creerComposantsPubli();
binderPersonne(personneSelectionnee);
}
/**
* Crée les onglets identité, adresse et informations naturaliste
*
* */
public void initialiserOnglets() {
//TabPanel
TabPanel formulaireOnglets = new TabPanel();
//Tab 1 : identite
tiIdentite = creerOnglet(i18nC.personneIdentite(), "tiIdentite");
tiIdentite.setStyleAttribute("padding", "0");
formulaireOnglets.add(tiIdentite);
//Tab 2 : Adresse
tiAdresses = creerOnglet(i18nC.adresse(), "tiAdresses");
formulaireOnglets.add(tiAdresses);
//Tab 3 : Infos Naturalistes
tiInfosNat = creerOnglet(i18nC.personneInfoNat(), "tiInfosNat");
formulaireOnglets.add(tiInfosNat);
tiPubli = new PersonneFormPublication(this);
formulaireOnglets.add(tiPubli);
getFormulaire().add(formulaireOnglets);
}
/**
* Crée les widgets pour l'onglet identité
*
* */
public void creerComposantsIdentite() {
// Gestion de l'affichage en colonnes : 3 Layout container : principal, gauche & droite
LayoutContainer left = new LayoutContainer();
left.setLayout(new FormLayout());
left.setStyleAttribute("padding", "15px");
LayoutContainer right = new LayoutContainer();
right.setLayout(new FormLayout());
right.setStyleAttribute("padding", "15px");
LayoutContainer main = new LayoutContainer();
main.add(left, new ColumnData(.45));
main.add(right, new ColumnData(.45));
main.setLayout(new ColumnLayout());
main.setHeight("100%");
main.setScrollMode(Scroll.AUTO);
// Création des champs
FormLayout formLayout = new FormLayout();
formLayout.setLabelAlign(LabelAlign.LEFT);
//+------------------------------------------------------------------------------------------------------------+
// Fieldset PROJET
FieldSet fsProjet = new FieldSet();
fsProjet.setHeading(i18nC.menuProjet());
fsProjet.setLayout(new FormLayout());
ListStore<Projet> storeProjets = new ListStore<Projet>();
ComboBox cbProjets = new ComboBox<Projet>();
cbProjets.setFieldLabel(i18nC.personneProjet()+ " :");
cbProjets.setEmptyText(i18nC.txtListeProjetDefaut());
cbProjets.setLabelSeparator("");
cbProjets.setDisplayField("nom");
cbProjets.setEditable(false);
cbProjets.setTriggerAction(TriggerAction.ALL);
cbProjets.setStore(storeProjets);
cbProjets.setAllowBlank(false);
cbProjets.addStyleName(ComposantClass.OBLIGATOIRE);
cbProjets.addListener(Events.Valid, creerEcouteurChampObligatoire());
fsProjet.add(cbProjets, new FormData(450, 0));
hmIdentite.put("cbProjets", cbProjets);
mediateur.selectionnerProjet(this, null);
left.add(fsProjet);
//+------------------------------------------------------------------------------------------------------------+
// Fieldset NOM
FieldSet fsNoms = new FieldSet();
fsNoms.setHeading("Noms");
fsNoms.setLayout(formLayout);
// Nom complet : Affiché que si valeurs saisies
LabelField nomComplet = new LabelField();
nomComplet.setFieldLabel(i18nC.personneNomComplet() +" :");
nomComplet.hide();
fsNoms.add(nomComplet);
hmIdentite.put("nomComplet", nomComplet);
//Préfixe
ListStore<Valeur> storePrefixe = new ListStore<Valeur>();
ComboBox<Valeur> cbPrefixe = new ComboBox<Valeur>();
cbPrefixe.setStore(storePrefixe);
cbPrefixe.setDisplayField("nom");
cbPrefixe.setEmptyText("Choisissez le préfixe:");
cbPrefixe.setFieldLabel("Prefix");
fsNoms.add(cbPrefixe);
hmIdentite.put("cbPrefixe", cbPrefixe);
mediateur.obtenirListeValeurEtRafraichir(this, "prefixe");
 
//Prénom
TextField<String> tfPrenom = new TextField<String>();
tfPrenom.setFieldLabel("Prénom");
tfPrenom.setName("prenom");
 
fsNoms.add(tfPrenom, new FormData(300, 0));
hmIdentite.put("tfPrenom", tfPrenom);
 
//Nom
TextField<String> tfNom = new TextField<String>();
tfNom.setFieldLabel("Nom");
tfNom.setAllowBlank(false);
tfNom.setName("nom");
tfNom.addStyleName(ComposantClass.OBLIGATOIRE);
tfNom.addListener(Events.Valid, creerEcouteurChampObligatoire());
fsNoms.add(tfNom, new FormData(300, 0));
hmIdentite.put("tfNom", tfNom);
//Suffixe
ListStore<Valeur> storeSuffixe = new ListStore<Valeur>();
ComboBox<Valeur> cbSuffixe = new ComboBox<Valeur>();
cbSuffixe.setStore(storeSuffixe);
cbSuffixe.setFieldLabel("Suffixe");
cbSuffixe.setDisplayField("nom");
cbSuffixe.setEmptyText("Choisissez un suffixe:");
fsNoms.add(cbSuffixe);
hmIdentite.put("cbSuffixe", cbSuffixe);
mediateur.obtenirListeValeurEtRafraichir(this, "suffixes");
 
TextField<String> tfAbreviation = new TextField<String>();
tfAbreviation.setFieldLabel("Abréviation");
tfAbreviation.setName("abreviation");
fsNoms.add(tfAbreviation);
hmIdentite.put("tfAbreviation", tfAbreviation);
 
TableLayout layoutAutreNoms = new TableLayout(2);
layoutAutreNoms.setCellVerticalAlign(VerticalAlignment.TOP);
LayoutContainer autresNoms = new LayoutContainer(layoutAutreNoms);
ChampMultiValeurs nomAutre = new ChampMultiValeurs("Autres noms",150);
hmIdentite.put("nomAutre", nomAutre);
autresNoms.add(nomAutre, new TableData("200px", "15px"));
ChampMultiValeurs abreviationAutre = new ChampMultiValeurs("Autres abréviation",150);
hmIdentite.put("abreviationAutre", abreviationAutre);
autresNoms.add(abreviationAutre, new TableData("200px", "15px"));
fsNoms.add(autresNoms);
left.add(fsNoms);
//+------------------------------------------------------------------------------------------------------------+
// Fieldset NAISSANCE ET DÉCÈS
FieldSet fsNaissanceEtDeces = new FieldSet();
fsNaissanceEtDeces.setHeading("Naissance et Décès");
fsNaissanceEtDeces.setLayout(new ColumnLayout());
formLayout = new FormLayout();
formLayout.setLabelAlign(LabelAlign.TOP);
LayoutContainer containerNaissance = new LayoutContainer(formLayout);
DateField dfDateNaissance = new DateField();
dfDateNaissance.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd/MM/yyyy"));
dfDateNaissance.setFieldLabel("Date de naissance");
dfDateNaissance.getMessages().setInvalidText("La valeur saisie n'est pas une date valide. La date doit être au format «jj/mm/aaaa».");
containerNaissance.add(dfDateNaissance);
hmIdentite.put("dfDateNaissance", dfDateNaissance);
// Lieu naissance
TextField<String> tfLieuNaissance = new TextField<String>();
tfLieuNaissance.setFieldLabel("Lieu de naissance");
tfLieuNaissance.setName("naissance_lieu");
containerNaissance.add(tfLieuNaissance);
hmIdentite.put("tfLieuNaissance", tfLieuNaissance);
fsNaissanceEtDeces.add(containerNaissance, new ColumnData(.5));
left.add(fsNaissanceEtDeces);
formLayout = new FormLayout();
formLayout.setLabelAlign(LabelAlign.TOP);
LayoutContainer containerDeces = new LayoutContainer(formLayout);
Radio rbEstDecedee = new Radio();
rbEstDecedee.setId("ce_deces");
rbEstDecedee.setBoxLabel("oui");
rbEstDecedee.setValueAttribute("1");
rbEstDecedee.setId("rbEstD");
rbEstDecedee.addListener(Events.Change, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
if(((Radio) be.getComponent()).getValue().equals(true)) {
hmIdentite.getDateField("dfDateDeces").setVisible(true);
hmIdentite.getTextField("tfLieuDeces").setVisible(true);
} else {
DateField dfDateDeces = hmIdentite.getDateField("dfDateDeces");
dfDateDeces.setValue(null);
dfDateDeces.setVisible(false);
TextField tfLieuDeces = hmIdentite.getTextField("tfLieuDeces");
tfLieuDeces.setValue(null);
tfLieuDeces.setVisible(false);
}
}
});
DateField dfDateDeces = new DateField();
dfDateDeces.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd/MM/yyyy"));
dfDateDeces.setFormatValue(true);
dfDateDeces.getMessages().setInvalidText("La valeur saisie n'est pas une date valide. La date doit être au format «jj/mm/aaaa».");
dfDateDeces.setFieldLabel("Date de décès");
dfDateDeces.setVisible(false);
 
containerDeces.add(dfDateDeces);
hmIdentite.put("dfDateDeces", dfDateDeces);
 
TextField<String> tfLieuDeces = new TextField<String>();
tfLieuDeces.setFieldLabel("Lieu de décès");
tfLieuDeces.setName("deces_lieu");
tfLieuDeces.setVisible(false);
containerDeces.add(tfLieuDeces);
hmIdentite.put("tfLieuDeces", tfLieuDeces);
hmIdentite.put("rbEstDecedee", rbEstDecedee);
Radio rbNestPasDecedee = new Radio();
rbNestPasDecedee.setValueAttribute("0");
rbNestPasDecedee.setBoxLabel("non");
rbNestPasDecedee.setValue(true);
RadioGroup rbgDeces = new RadioGroup();
rbgDeces.setFieldLabel("Est décédée");
rbgDeces.add(rbEstDecedee);
rbgDeces.add(rbNestPasDecedee);
containerDeces.add(rbgDeces);
fsNaissanceEtDeces.add(containerDeces, new ColumnData(.5));
tiIdentite.add(main);
//+------------------------------------------------------------------------------------------------------------+
// Fieldset CONTACT
FieldSet fsContact = new FieldSet();
fsContact.setHeading("Contact");
fsContact.setLayout(new RowLayout());
ChampMultiValeursMultiTypes telephones = new ChampMultiValeursMultiTypes("Téléphones", 180, 100);
telephones.initialiserType("tel");
fsContact.add(telephones, new FormData(450, 0));
hmIdentite.put("telephones", telephones);
ChampMultiValeurs courriels = new ChampMultiValeurs("Courriels", 280);
courriels.setValidation(Pattern.email, "moi@domaine.fr");
fsContact.add(courriels, new FormData(450, 0));
hmIdentite.put("courriels", courriels);
LayoutContainer lcCourrielContainer = new LayoutContainer(new RowLayout());
fsContact.add(lcCourrielContainer);
hmIdentite.put("lcCourrielContainer", lcCourrielContainer);
 
fsContact.add(new Text(""));
ChampMultiValeurs sites = new ChampMultiValeurs("Sites web");
sites.setValeurParDefaut("http://");
sites.setValidation(Pattern.url, "http://www.monsite.com");
fsContact.add(sites);
hmIdentite.put("sites", sites);
right.add(fsContact);
//+------------------------------------------------------------------------------------------------------------+
// Fieldset AUTRES INFOS
FieldSet fsAutresInfos = new FieldSet();
fsAutresInfos.setHeading("Autres informations");
formLayout = new FormLayout();
formLayout.setLabelAlign(LabelAlign.LEFT);
fsAutresInfos.setLayout(formLayout);
formLayout = new FormLayout();
formLayout.setLabelAlign(LabelAlign.TOP);
LayoutContainer lcAutreInformations1 = new LayoutContainer(formLayout);
ListStore<Valeur> storeSexe = new ListStore<Valeur>();
ComboBox<Valeur> cbSexe = new ComboBox<Valeur>();
cbSexe.setStore(storeSexe);
cbSexe.setFieldLabel("Sexe");
cbSexe.setDisplayField("nom");
cbSexe.setEmptyText("Choisissez le sexe:");
cbSexe.setTypeAhead(true);
cbSexe.setTriggerAction(TriggerAction.ALL);
FormData fd = new FormData();
fd.setWidth(100);
lcAutreInformations1.add(cbSexe, fd);
hmIdentite.put("cbSexe", cbSexe);
mediateur.obtenirListeValeurEtRafraichir(this, "sexe");
//Description
TextArea taDescription = new TextArea();
taDescription.setEmptyText("Saisissez une description");
taDescription.setFieldLabel("Description");
taDescription.setWidth("100%");
taDescription.setName("description");
lcAutreInformations1.add(taDescription, new FormData(500, 200));
hmIdentite.put("taDescription", taDescription);
fsAutresInfos.add(lcAutreInformations1);
// Logo
LayoutContainer lcLogoUrl = new LayoutContainer();
hmIdentite.put("lcLogoUrl", lcLogoUrl);
ChampMultiValeursImage logo = new ChampMultiValeursImage(i18nC.personneLogos());
logo.setImageHeight("150px");
logo.setValeurParDefaut("http://");
logo.setValidation(Pattern.url, "http://www.monsite.com/mon_image.jpg");
logo.setValeurBoutonSupprimer("Supprimer");
hmIdentite.put("logos", logo);
lcLogoUrl.add(logo);
fsAutresInfos.add(logo);
LayoutContainer lcAutreInformations2 = new LayoutContainer(new ColumnLayout());
hmIdentite.put("lcAutreInformations2", lcAutreInformations2);
fsAutresInfos.add(lcAutreInformations2);
right.add(fsAutresInfos);
//+------------------------------------------------------------------------------------------------------------+
// Ajout des évènements saisi
KeyListener klNoms = new KeyListener() {
public void componentKeyUp(ComponentEvent ev) {
rafraichir(null);
}
};
SelectionChangedListener<Valeur> selectionChange = new SelectionChangedListener<Valeur>() {
public void selectionChanged(SelectionChangedEvent se) {
rafraichir(null);
}
};
cbPrefixe.addSelectionChangedListener(selectionChange);
cbPrefixe.addKeyListener(klNoms);
tfPrenom.addKeyListener(klNoms);
tfNom.addKeyListener(klNoms);
cbSuffixe.addSelectionChangedListener(selectionChange);
}
public void creerComposantsAdresse() {
// Gauche
LayoutContainer left = new LayoutContainer();
left.setLayout(new FormLayout());
left.setStyleAttribute("padding", "15px");
// Droite
LayoutContainer right = new LayoutContainer();
right.setLayout(new FormLayout());
// Principal
LayoutContainer main = new LayoutContainer();
main.setLayout(new TableLayout(2));
// Ajout au principal
main.add(left);
main.add(right);
TextField<String> tfAdresse1 = new TextField();
tfAdresse1.setFieldLabel("Adresse");
tfAdresse1.setName("adresse_01");
left.add(tfAdresse1, fd100);
hmAdresse.put("tfAdresse1", tfAdresse1);
TextField<String> tfAdresse2 = new TextField();
tfAdresse2.setFieldLabel("Complément d'adresse");
tfAdresse2.setName("adresse_02");
left.add(tfAdresse2, fd100);
hmAdresse.put("tfAdresse2", tfAdresse2);
ComboBox<Valeur> cbPays = new ComboBox<Valeur>();
cbPays.setFieldLabel("Pays");
cbPays.setDisplayField("nom");
cbPays.setEmptyText("Sélectionnez le pays:");
ListStore<Valeur> storePays = new ListStore<Valeur>();
cbPays.setStore(storePays);
right.add(cbPays, fd100);
hmAdresse.put("cbPays", cbPays);
SelectionChangedListener<Valeur> selectionChange = new SelectionChangedListener<Valeur>() {
public void selectionChanged(SelectionChangedEvent se) {
// Rafraichir avec le pays sélectionné
obtenirListeRegionParPays(((Valeur) se.getSelectedItem()).getAbreviation().toString());
//mettreAJourRegion();
}
};
cbPays.addSelectionChangedListener(selectionChange);
ComboBox<Valeur> cbRegion = new ComboBox<Valeur>();
cbRegion.setFieldLabel("Region");
cbRegion.setDisplayField("nom");
cbRegion.setEmptyText("Sélectionnez la région:");
cbRegion.setVisible(false);
ListStore<Valeur> storeRegion = new ListStore<Valeur>();
cbRegion.setStore(storeRegion);
right.add(cbRegion, fd100);
hmAdresse.put("cbRegion", cbRegion);
TextField<String> tfBoitePostale = new TextField<String>();
tfBoitePostale.setFieldLabel("Boite postale");
tfBoitePostale.setName("bp");
left.add(tfBoitePostale, fd100);
hmAdresse.put("tfBoitePostale", tfBoitePostale);
TextField<Integer> tfCodePostal = new TextField<Integer>();
tfCodePostal.setFieldLabel("Code postal");
tfCodePostal.setName("code_postal");
right.add(tfCodePostal, fd100);
hmAdresse.put("tfCodePostal", tfCodePostal);
TextField tfVille = new TextField();
tfVille.setFieldLabel("Ville");
tfVille.setName("ville");
right.add(tfVille, fd100);
hmAdresse.put("tfVille", tfVille);
// MAJ ComboBox
mediateur.obtenirListeValeurEtRafraichir(this, "pays");
FieldSet fsAdresse = new FieldSet();
fsAdresse.setHeading("Adresse personnelle");
fsAdresse.add(main);
tiAdresses.add(fsAdresse);
}
public void creerComposantsInfosNat() {
FormLayout fl = new FormLayout();
fl.setLabelAlign(LabelAlign.TOP);
FieldSet fsInfosNat = new FieldSet();
fsInfosNat.setLayout(fl);
fsInfosNat.setTitle("Informations Naturaliste");
TextArea taBiographie = new TextArea();
taBiographie.setFieldLabel("Vie et renommée de l'auteur");
taBiographie.setWidth("400");
taBiographie.setName("biographie");
fsInfosNat.add(taBiographie, new FormData(800, 200));
ChampMultiValeurs specialite = new ChampMultiValeurs(i18nC.personneSpecialite());
fsInfosNat.add(specialite);
hmInfosNat.put("specialite", specialite);
ChampMultiValeursMultiTypes recolte = new ChampMultiValeursMultiTypes(i18nC.personneRecolte(), 200, 200);
recolte.initialiserType("pays");
hmInfosNat.put("recolte", recolte);
fsInfosNat.add(recolte);
tiInfosNat.add(fsInfosNat);
}
public void creerComposantsPubli(){
//Création des composants de l'onglet publication
 
ContentPanel cp = new ContentPanel();
cp.setHeading("Publications dont la personne est le sujet");
cp.setIcon(Images.ICONES.table());
cp.setLayout(new FitLayout());
cp.setFrame(true);
ToolBar toolBar = new ToolBar();
 
Button ajouterPubli = new Button("Ajouter");
ajouterPubli.setIcon(Images.ICONES.vcardAjouter());
ajouterPubli.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
Window.alert("ajout publi");
/*StructureAPersonne membreDuPersonnel = new StructureAPersonne("", StructureAPersonne.ROLE_EQUIPE, StructureAPersonne.ETAT_AJOUTE);
ajouterMembreAGrillePersonnel(membreDuPersonnel);*/
}
});
toolBar.add(ajouterPubli);
toolBar.add(new SeparatorToolItem());
Button supprimerPubli = new Button("Supprimer");
supprimerPubli.setIcon(Images.ICONES.vcardSupprimer());
supprimerPubli.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
/*StructureAPersonne personne = grillePersonnel.getSelectionModel().getSelectedItem();
if (personne != null) {
// Ajout de la personne supprimée à la liste
if (personne.getIdPersonne() != null && !personne.getIdPersonne().equals("")) {
personnelSupprime.put(personne.getId(), personne);
}
// Suppression de l'enregistrement de la grille
grillePersonnel.getStore().remove(personne);
// Désactivation du bouton supprimer si la grille contient plus d'élément
if (grillePersonnel.getStore().getCount() == 0) {
//TODO : check : Item -> component
ce.getComponent().disable();
}
}*/
Window.alert("supprimer");
}
});
toolBar.add(supprimerPubli);
toolBar.add(new SeparatorToolItem());
Button rafraichirPersonnelBtn = new Button("Rafraichir");
rafraichirPersonnelBtn.setIcon(Images.ICONES.rafraichir());
rafraichirPersonnelBtn.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
//rafraichirPersonnel();
Window.alert("rafraichir");
}
});
toolBar.add(rafraichirPersonnelBtn);
//Ajout d'une ComboBox
storePubli = new ListStore<Publication>();
storePubli.add(new ArrayList<Publication>());
cbPubli = new ComboBox<Publication>();
cbPubli.setWidth(200);
cbPubli.setEmptyText("Chercher une publication existante...");
cbPubli.setTriggerAction(TriggerAction.ALL);
cbPubli.setEditable(true);
cbPubli.setDisplayField("fmt_nom_complet");
cbPubli.setStore(storePubli);
cbPubli.addKeyListener(new KeyListener() {
public void componentKeyUp(ComponentEvent ce) {
if (!ce.isNavKeyPress() && cbPubli.getRawValue() != null && cbPubli.getRawValue().length() > 0) {
rafraichirPublicationsExistante(cbPubli.getRawValue());
}
}
});
toolBar.add(cbPubli);
toolBar.add(new SeparatorToolItem());
cp.setTopComponent(toolBar);
tiPubli.add(cp);
}
 
public void rafraichirPublicationsExistante(String nomPubli) {
nomPubli +="%";
mediateur.selectionnerPublicationParNomComplet(this, null, nomPubli);
}
/**
* Ajouter le bouton annuler à la barre d'outils donnée
*
* @param barreOutils la barre d'outils à modifier
* */
public static void ajouterBoutonAnnuler(ButtonBar barreOutils) {
// Le bouton annuler ne sauvegarde pas les informations et renvoie vers la page précédente
Button annuler = new Button("Revenir à la liste");
annuler.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).clicMenu("Personnes");
}
});
annuler.setIconStyle(ComposantClass.ICONE_SUPPRIMER);
barreOutils.add(annuler);
}
public void obtenirListeRegionParPays(String strPays) {
mediateur.obtenirListeRegionsEtRafraichir(this, "region", strPays);
}
// RAFRAICHISSEMENT DU PANNEAU
 
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof PublicationAPersonneListe) {
Information info = new Information();
info.setType("publication_liees");
info.setDonnee(0, (PublicationAPersonneListe) nouvellesDonnees);
tiPubli.rafraichir(info);
} else if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
// Créer une liste de valeurs
List<Valeur> liste = new ArrayList<Valeur>();
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
liste.add(listeValeurs.get(it.next()));
}
if (listeValeurs.getId().equals(config.getListeId("relationPersonnePublication"))) {
tiPubli.rafraichir(nouvellesDonnees);
} else if (listeValeurs.getId().equals(config.getListeId("prefixe"))) {
remplirCombobox("cbPrefixe", liste, "hmIdentite");
} else if (listeValeurs.getId().equals(config.getListeId("suffixes"))) {
remplirCombobox("cbSuffixe", liste, "hmIdentite");
} else if (listeValeurs.getId().equals(config.getListeId("sexe"))) {
//Ajout de la valeur "Inconnu"
ComboBox<Valeur> cbSexe = hmAdresse.getComboBoxValeur("cbSexe");
Valeur inconnu = new Valeur();
inconnu.set("nom", "Inconnu");
inconnu.set("id", "0");
liste.add(0, inconnu);
remplirCombobox("cbSexe", liste, "hmIdentite");
/*List<Valeur> selection = new LinkedList<Valeur>();
selection.add(inconnu);
cbSexe.setSelection(s);*/
} else if (listeValeurs.getId().equals(config.getListeId("tel"))) {
remplirCombobox("cbTelephone", liste, "hmIdentite");
 
//Préselection du tél
ComboBox<Valeur> cbTelephone = hmIdentite.getComboBoxValeur("cbTelephone");
cbTelephone.setValue(liste.get(1));
} else if (listeValeurs.getId().equals(config.getListeId("pays"))) {
remplirCombobox("cbPays", liste, "hmAdresse");
} else if (listeValeurs.getId().equals(config.getListeId("region"))) {
remplirCombobox("cbRegion", liste, "hmAdresse");
mettreAJourRegion();
hmAdresse.getComboBox("cbRegion").setVisible(true);
}
} else if (nouvellesDonnees instanceof ProjetListe) {
ProjetListe projets = (ProjetListe) nouvellesDonnees;
List<Projet> liste = projets.toList();
ComboBox cbProjets = hmIdentite.getComboBox("cbProjets");
ListStore<Projet> storeProjets= cbProjets.getStore();
storeProjets.removeAll();
storeProjets.add(liste);
cbProjets.setStore(storeProjets);
} else if (nouvellesDonnees instanceof PublicationListe) {
PublicationListe publicationListe = (PublicationListe) nouvellesDonnees;
List<Publication> liste = publicationListe.toList();
storePubli.removeAll();
storePubli.add(liste);
cbPubli.setStore(storePubli);
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("ajout_personne")) {
if (info.getDonnee(0) != null) {
personneSelectionnee.setId(info.getDonnee(0).toString());
GWT.log("Ajout de la personne " + personneSelectionnee.getId(), null);
Info.display("Enregistrement", "La personne a été ajoutée (id: " + personneSelectionnee.getId() + ")");
repandreRafraichissement();
if (clicBoutonvalidation) {
mediateur.clicMenu(menuIdCourant);
}
} else {
Info.display("Enregistrement", info.getMessages().toString());
}
} else if (info.getType().equals("modification_personne")) {
Info.display("Enregistrement", "Les modifications apportées à la personne " + personneSelectionnee.getId() + " ont été correctement enregistrées.");
repandreRafraichissement();
if (clicBoutonvalidation) {
mediateur.clicMenu(menuIdCourant);
}
} else if (info.getType().equals("maj_utilisateur")) {
gererEtatActivationBouton();
} else if (info.getDonnee(0) instanceof PersonneListe) {
Collection colPersonneListe = ((PersonneListe) info.getDonnee(0)).values();
Iterator itPersonneListe = colPersonneListe.iterator();
Personne personne = (Personne) itPersonneListe.next();
//TODO : Je vois pas l'intérêt des lignes ci dessous..
personneSauvegarde = new Personne();
personneSauvegarde = (Personne) personne.cloner(personneSauvegarde);
binderPersonne(personne);
mettreAJourPersonne(personne);
nouvellesDonnees = null;
} else {
Info.display("messages", info.getMessages().toString());
}
}
if (nouvellesDonnees == null) {
ComboBox<Valeur> cb= hmIdentite.getComboBoxValeur("cbPrefixe");
//Met à jour le nom Complet du formulaire
String valeurRetour = "";
// Prefixe
String prefixe = "";
Valeur valPrefixe = cb.getValue();
if (valPrefixe != null) {
prefixe = valPrefixe.getNom();
} else {
prefixe = (String) cb.getRawValue();
}
// Prénom
String prenom = (String) hmIdentite.getTextField("tfPrenom").getValue();
// Nom
String nom = (String) hmIdentite.getTextField("tfNom").getValue();
// Suffixe
ComboBox<Valeur> cbSuffixe = hmIdentite.getComboBoxValeur("cbSuffixe");
String suffixe = "";
Valeur valSuffixe = cbSuffixe.getValue();
if (valSuffixe != null) {
suffixe = valSuffixe.getNom();
} else {
suffixe = (String) cbSuffixe.getRawValue();
}
// Mettre à jour la valeur
valeurRetour = prefixe + " " + prenom + " " + nom + " " + suffixe;
valeurRetour = valeurRetour.replaceAll("null", "");
hmIdentite.getLabelField("nomComplet").setValue(valeurRetour);
if (!valeurRetour.trim().equals("")) {
hmIdentite.getLabelField("nomComplet").show();
} else {
hmIdentite.getLabelField("nomComplet").hide();
}
}
mediateur.masquerPopinChargement();
if (this.mode.equals(MODE_AJOUTER)) {
gererEtatActivationBouton();
}
}
 
private void repandreRafraichissement() {
if (vueExterneARafraichirApresValidation != null) {
String type = "personne_modifiee";
if (mode.equals(Formulaire.MODE_AJOUTER)) {
type = "personne_ajoutee";
}
Information info = new Information(type);
info.setDonnee(0, personneSelectionnee);
vueExterneARafraichirApresValidation.rafraichir(info);
}
}
private void mettreAJourRegion() {
//Met à jour la combo box en sélectionnant la valeur enregistrée pour la personne
ComboBox<Valeur> cbRegion = hmAdresse.getComboBoxValeur("cbRegion");
if (personneSelectionnee.get("ce_truk_region").toString().startsWith("AUTRE##")) {
cbRegion.setRawValue(personneSelectionnee.get("ce_truk_region").toString().replaceFirst("^AUTRE##", ""));
} else if (personneSelectionnee.get("ce_truk_region") != null && cbRegion.getStore().getCount() > 0) {
Valeur valeurRegion = cbRegion.getStore().findModel("id_valeur", personneSelectionnee.get("ce_truk_region"));
if (valeurRegion!=null) {
cbRegion.setValue(valeurRegion);
}
}
}
private void mettreAJourPersonne(Personne personne) {
//Mise à jour de la personne
//Personne personne = (Personne) nouvellesDonnees;
ComboBox cbProjets = hmIdentite.getComboBox("cbProjets");
cbProjets.setValue(cbProjets.getStore().findModel("id_projet", personne.get("ce_projet")));
//Prefixe
String prefixe = personne.get("ce_truk_prefix");
ComboBox<Valeur> cbPrefixe = hmIdentite.getComboBoxValeur("cbPrefixe");
String prefixeCourant = personne.get("ce_truk_prefix");
if (cbPrefixe.getStore().findModel("id_valeur", prefixeCourant) != null) {
cbPrefixe.setValue(cbPrefixe.getStore().findModel("id_valeur", prefixeCourant));
} else {
cbPrefixe.setRawValue(prefixeCourant);
}
hmIdentite.getTextField("tfPrenom").setValue(personne.get("prenom"));
hmIdentite.getTextField("tfNom").setValue(personne.get("nom"));
//Suffixe
String suffixe = personne.get("ce_truk_suffixe");
ComboBox<Valeur> cbSuffixe = hmIdentite.getComboBoxValeur("cbSuffixe");
String suffixeCourant = personne.get("ce_truk_suffix");
if (cbSuffixe.getStore().findModel("id_valeur", suffixeCourant) != null) {
cbSuffixe.setValue(cbSuffixe.getStore().findModel("id_valeur", suffixeCourant));
} else {
cbSuffixe.setRawValue(suffixeCourant);
}
hmIdentite.getChampMultiValeurs("nomAutre").peupler(personne.getString("truk_nom_autre"));
hmIdentite.getTextField("tfAbreviation").setValue(personne.get("abreviation"));
hmIdentite.getChampMultiValeurs("abreviationAutre").peupler(personne.getString("truk_abreviation_autre"));
hmIdentite.getDateField("dfDateNaissance").setValue(personne.getDate("naissance_date"));
hmIdentite.getTextField("tfLieuNaissance").setValue(personne.get("naissance_lieu"));
if (personne.estDecedee()) {
hmIdentite.getDateField("dfDateDeces").setValue(personne.getDate("deces_date"));
hmIdentite.getTextField("tfLieuDeces").setValue(personne.get("deces_lieu"));
Radio rbEstDecede = hmIdentite.getRadio("rbEstDecedee");
rbEstDecede.setValue(true);
}
hmIdentite.getChampMultiValeurs("telephones").peupler(personne.getString("truk_telephone"));
//Courriel
hmIdentite.getChampMultiValeurs("courriels").peupler(personne.getCourriel());
//Sites web
hmIdentite.getChampMultiValeurs("sites").peupler(personne.getString("truk_url"));
// Sexe
String strSexe = personne.get("ce_sexe");
ComboBox<Valeur> cbSexe = hmIdentite.getComboBoxValeur("cbSexe");
 
if (cbSexe.getStore().findModel("id_valeur", strSexe) != null) {
cbSexe.setValue(cbSexe.getStore().findModel("id_valeur", strSexe));
}
hmIdentite.getTextArea("taDescription").setRawValue((String) personne.get("description"));
//Logo
hmIdentite.getChampMultiValeurs("logos").peupler(personne.getString("truk_logo"));
/*--------------------------------------------------
Adresse
---------------------------------------------------*/
// Adresse
hmAdresse.getTextField("tfAdresse1").setValue((String) personne.get("adresse_01"));
 
// Complément
hmAdresse.getTextField("tfAdresse2").setValue((String) personne.get("adresse_02"));
//Boite postale
hmAdresse.getTextField("tfBoitePostale").setValue((String) personne.get("bp"));
//Pays
String strPays = personne.get("ce_truk_pays");
ComboBox<Valeur> cbPays = hmAdresse.getComboBoxValeur("cbPays");
if (cbPays.getStore().findModel("id_valeur", strPays) != null) {
cbPays.setValue(cbPays.getStore().findModel("id_valeur", strPays));
cbPays.fireEvent(Events.OnChange);
} else {
cbPays.setRawValue(strPays);
}
//Région : doit être chargé après chargement de la liste des régions...
String strRegion = personne.get("ce_truk_region");
if ((strRegion!=null)&&(!strRegion.equals(""))) {
ComboBox<Valeur> cbRegion = hmAdresse.getComboBoxValeur("cbRegion");
System.out.println(cbRegion.getStore().getCount());
cbRegion.setVisible(true);
if (cbRegion.getStore().findModel("id_valeur", strRegion) != null) {
cbRegion.setValue(cbRegion.getStore().findModel("id_valeur", strRegion));
} else {
cbRegion.setRawValue(strRegion);
}
}
//Cp
hmAdresse.getTextField("tfCodePostal").setValue(personne.get("code_postal"));
//Ville
hmAdresse.getTextField("tfVille").setValue(personne.get("ville"));
/*--------------------------------------------------------
* Infos naturalistes
* -----------------------------------------------------*/
hmInfosNat.getChampMultiValeurs("specialite").peupler(personne.getString("ce_truk_specialite"));
String tr = personne.getString("truk_recolte");
hmInfosNat.getChampMultiValeursMultiTypes("recolte").peupler(tr);
//Onglet publi
tiPubli.mettreAJourPersonne();
gererEtatActivationBouton();
}
public void remplirCombobox(String idComboBox, List liste, String hashMapId) {
HashMap hm = null;
if (hashMapId.equals("hmIdentite")) {
hm = hmIdentite;
} else if (hashMapId.equals("hmAdresse")){
hm = hmAdresse;
} else {
hm = hmInfosNat;
}
ListStore<Valeur> store = ((ComboBox) hm.get(idComboBox)).getStore();
store.removeAll();
store.add(liste);
((ComboBox) hm.get(idComboBox)).setStore(store);
}
private void gererEtatActivationBouton() {
/* if (((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT)).isIdentifie() == false) {
enregistrer.setEnabled(false);
enregistrerEtRevenir.setEnabled(false);
} else {
enregistrer.setEnabled(true);
enregistrerEtRevenir.setEnabled(true);
}*/
}
public void reinitialiserFormulaire() {
mediateur.afficherPopinChargement();
mettreAJourPersonne(personneSauvegarde);
mediateur.masquerPopinChargement();
}
public void binderPersonne(Personne personne) {
binding = new FormBinding(getFormulaire());
personneSelectionnee = personne;
binding.autoBind();
binding.bind(personneSelectionnee);
layout();
}
private String obtenirValeurCombo(String strComboName) {
String strValeur = "";
Valeur valeur;
ComboBox<Valeur> combo = hmIdentite.getComboBoxValeur(strComboName);
if (combo == null) {
combo = hmAdresse.getComboBoxValeur(strComboName);
}
strValeur = combo.getRawValue();
valeur = combo.getValue();
if (valeur != null) {
strValeur = valeur.getId();
}
return strValeur;
}
 
public boolean soumettreFormulaire() {
tiPubli.collecter();
if (verifierFormulaire()) {
tiPubli.soumettre();
mediateur.enregistrerPersonne(this, personneSelectionnee);
}
return true;
}
 
public boolean verifierFormulaire() {
boolean success = true;
LinkedList<String> lstMessageErreur = new LinkedList<String>();
ComboBox<Projet> cbProjets = hmIdentite.getComboBox("cbProjets");
Projet projet = cbProjets.getValue();
if (projet == null) {
lstMessageErreur.add("Le projet n'a pas été renseigné");
} else {
personneSelectionnee.set("ce_projet", projet.getId());
}
String strTfNom = (String) hmIdentite.getTextField("tfNom").getValue();
if ((strTfNom == null)||(strTfNom.trim().equals(""))) {
lstMessageErreur.add("Le nom n'a pas été saisi");
} else {
strTfNom = UtilString.ucFirst(strTfNom);
personneSelectionnee.set("nom", strTfNom);
}
String strTfPrenom = (String) hmIdentite.getTextField("tfPrenom").getValue();
personneSelectionnee.set("prenom", UtilString.ucFirst(strTfPrenom));
//Préparer les données
ComboBox<Valeur> combo = hmIdentite.getComboBoxValeur("cbSexe");
Valeur valeur;
String strValeur = "";
valeur = combo.getValue();
if (valeur!=null) {
personneSelectionnee.set("ce_sexe", valeur.getId());
}
strValeur = obtenirValeurCombo("cbPrefixe");
personneSelectionnee.set("ce_truk_prefix", strValeur);
strValeur = obtenirValeurCombo("cbSuffixe");
personneSelectionnee.set("ce_truk_suffix", strValeur);
String nomAutre = hmIdentite.getChampMultiValeurs("nomAutre").getValeurs();
personneSelectionnee.set("truk_nom_autre", nomAutre);
String abreviationAutre = hmIdentite.getChampMultiValeurs("abreviationAutre").getValeurs();
personneSelectionnee.set("truk_abreviation_autre", abreviationAutre);
personneSelectionnee.set("truk_courriel", hmIdentite.getChampMultiValeurs("courriels").getValeurs());
//Pour le nom complet, on enregistre dans la bdd la valeur du prefixe/suffixe et non l'id
String strPrefixe = "";
combo = hmIdentite.getComboBoxValeur("cbPrefixe");
valeur = combo.getValue();
if (valeur != null) {
strPrefixe = valeur.getNom();
} else {
strPrefixe = combo.getRawValue();
}
String strSuffixe = "";
combo = hmIdentite.getComboBox("cbSuffixe");
valeur = combo.getValue();
if (valeur != null) {
strSuffixe = valeur.getNom() + " ";
} else {
strSuffixe = combo.getRawValue() +" ";
}
personneSelectionnee.setFmtNomComplet(strPrefixe, strSuffixe);
DateField dfDateNaissance = hmIdentite.getDateField("dfDateNaissance");
Date naissanceDate = dfDateNaissance.getValue();
personneSelectionnee.setNaissanceDate(naissanceDate);
Radio rbEstDecedee = hmIdentite.getRadio("rbEstDecedee");
if (rbEstDecedee.getValue() == true) {
DateField dfDecesDate = hmIdentite.getDateField("dfDateDeces");
String decesLieu = (String) hmIdentite.getTextField("tfLieuDeces").getValue();
personneSelectionnee.setDeces(dfDecesDate.getValue(), decesLieu);
} else {
personneSelectionnee.setNonDecedee();
}
strValeur = obtenirValeurCombo("cbPays");
personneSelectionnee.set("ce_truk_pays", strValeur);
strValeur = obtenirValeurCombo("cbRegion");
ComboBox<Valeur> cbRegions = hmAdresse.getComboBoxValeur("cbRegion");
if (cbRegions.getStore().findModel("id", strValeur) == null) {
strValeur = "AUTRE##" + strValeur;
}
personneSelectionnee.set("ce_truk_region", strValeur);
personneSelectionnee.set("truk_telephone", hmIdentite.getChampMultiValeursMultiTypes("telephones").getValeurs());
String logoUrls = hmIdentite.getChampMultiValeursImage("logos").getValeurs();
personneSelectionnee.set("truk_logo", logoUrls);
personneSelectionnee.set("truk_url", hmIdentite.getChampMultiValeurs("sites").getValeurs());
//Infos Naturalistes
String recolte = ((ChampMultiValeursMultiTypes) hmInfosNat.get("recolte")).getValeurs();
personneSelectionnee.set("truk_recolte", recolte);
String specialite = ((ChampMultiValeurs) hmInfosNat.get("specialite")).getValeurs();
personneSelectionnee.set("ce_truk_specialite", specialite);
lstMessageErreur.addAll(tiPubli.verifier());
if (lstMessageErreur.size() != 0) {
String strMessagesErreur = "<span><br />";
Iterator<String> itMessagesErreur = lstMessageErreur.iterator();
while (itMessagesErreur.hasNext()) {
strMessagesErreur += "<br /> - " + itMessagesErreur.next();
}
strMessagesErreur += "</span>";
MessageBox.alert("Erreurs", "Les erreurs suivantes ont été commises : \n" + strMessagesErreur, null);
success = false;
}
return success;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionForm.java
New file
0,0 → 1,406
package org.tela_botanica.client.vues.collection;
 
import java.util.ArrayList;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.MenuApplicationId;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilArray;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.structure.StructureForm;
 
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.google.gwt.core.client.GWT;
 
public class CollectionForm extends Formulaire implements Rafraichissable {
 
protected Collection collection = null;
protected Collection collectionCollectee = null;
 
private ChampComboBoxListeValeurs typesCollectionCombo = null;
private TabPanel onglets = null;
private CollectionFormGeneral generalOnglet = null;
private CollectionFormPersonne personneOnglet = null;
private CollectionFormPublication publicationOnglet = null;
private CollectionFormDescription descriptionOnglet = null;
private CollectionFormContenu contenuOnglet = null;
private CollectionFormInventaire inventaireOnglet = null;
private CollectionFormCommentaire commentaireOnglet = null;
private TextField<String> nomChp = null;
public CollectionForm(Mediateur mediateurCourrant, String collectionId) {
initialiserCollectionForm(mediateurCourrant, collectionId);
}
private void initialiserCollectionForm(Mediateur mediateurCourrant, String collectionId) {
collection = new Collection();
collection.setId(collectionId);
String modeDeCreation = (UtilString.isEmpty(collection.getId()) ? Formulaire.MODE_AJOUTER : Formulaire.MODE_MODIFIER);
initialiserFormulaire(mediateurCourrant, modeDeCreation, MenuApplicationId.COLLECTION);
genererTitreFormulaire();
creerOnglets();
creerFieldsetPrincipal();
if (modeDeCreation.equals(Formulaire.MODE_MODIFIER)) {
mediateurCourrant.selectionnerCollection(this, collectionId, null);
mediateurCourrant.selectionnerCollectionAPersonne(this, collectionId, null);
mediateurCourrant.selectionnerCollectionAPublication(this, collectionId);
mediateurCourrant.selectionnerCollectionACommentaire(this, collectionId);
}
}
private void genererTitreFormulaire() {
String titre = i18nC.collectionTitreFormAjout();
if (mode.equals(Formulaire.MODE_MODIFIER)) {
titre = i18nC.collectionTitreFormModif();
if (collection != null) {
titre += " - "+i18nC.id()+": "+collection.getId();
}
}
panneauFormulaire.setHeading(titre);
}
private void creerFieldsetPrincipal() {
FieldSet principalFieldSet = new FieldSet();
principalFieldSet.setHeading("Info");
principalFieldSet.setCollapsible(true);
principalFieldSet.setLayout(Formulaire.creerFormLayout(150, LabelAlign.LEFT));
nomChp = new TextField<String>();
nomChp.setTabIndex(tabIndex++);
nomChp.setFieldLabel(i18nC.nomCollection());
nomChp.setAllowBlank(false);
nomChp.addStyleName(ComposantClass.OBLIGATOIRE);
nomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
nomChp.getMessages().setBlankText(i18nC.champObligatoire());
principalFieldSet.add(nomChp, new FormData(450, 0));
Listener<BaseEvent> ecouteurTypeCollection = new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
Valeur valeur = typesCollectionCombo.getValue();
// Gestion des onglets en fonction du type de collection
mediateur.activerChargement("");
if (valeur != null && valeur.getId().equals(Valeur.COLLECTION_NCD_HERBIER)) {
activerOngletsHerbier();
} else {
activerOngletsDefaut();
}
mediateur.desactiverChargement();
}
};
typesCollectionCombo = new ChampComboBoxListeValeurs(i18nC.typeCollectionNcd(), "typeCollectionNcd", tabIndex++);
typesCollectionCombo.peupler(Valeur.COLLECTION_NCD_HERBIER);
typesCollectionCombo.addStyleName(ComposantClass.OBLIGATOIRE);
typesCollectionCombo.addListener(Events.Change, ecouteurTypeCollection);
typesCollectionCombo.addListener(Events.Select, ecouteurTypeCollection);
typesCollectionCombo.addListener(Events.Valid, creerEcouteurChampObligatoire());
principalFieldSet.add(typesCollectionCombo, new FormData(150, 0));
typesCollectionCombo.fireEvent(Events.Select);
panneauFormulaire.setTopComponent(principalFieldSet);
}
private void activerOngletsDefaut() {
if (onglets.findItem(CollectionFormGeneral.ID, false) == null) {
onglets.add(generalOnglet);
}
if (onglets.findItem(CollectionFormPersonne.ID, false) == null) {
onglets.add(personneOnglet);
}
if (onglets.findItem(CollectionFormPublication.ID, false) != null) {
onglets.remove(publicationOnglet);
}
if (onglets.findItem(CollectionFormDescription.ID, false) != null) {
onglets.remove(descriptionOnglet);
}
if (onglets.findItem(CollectionFormContenu.ID, false) != null) {
onglets.remove(contenuOnglet);
}
if (onglets.findItem(CollectionFormInventaire.ID, false) != null) {
onglets.remove(inventaireOnglet);
}
if (onglets.findItem(CollectionFormCommentaire.ID, false) != null) {
onglets.remove(commentaireOnglet);
}
panneauFormulaire.layout();
}
 
private void activerOngletsHerbier() {
if (onglets.findItem(CollectionFormGeneral.ID, false) == null) {
onglets.add(generalOnglet);
}
if (onglets.findItem(CollectionFormPersonne.ID, false) == null) {
onglets.add(personneOnglet);
}
if (onglets.findItem(CollectionFormPublication.ID, false) == null) {
onglets.add(publicationOnglet);
}
if (onglets.findItem(CollectionFormDescription.ID, false) == null) {
onglets.add(descriptionOnglet);
}
if (onglets.findItem(CollectionFormContenu.ID, false) == null) {
onglets.add(contenuOnglet);
}
if (onglets.findItem(CollectionFormInventaire.ID, false) == null) {
onglets.add(inventaireOnglet);
}
if (onglets.findItem(CollectionFormCommentaire.ID, false) == null) {
onglets.add(commentaireOnglet);
}
panneauFormulaire.layout();
}
private void creerOnglets() {
onglets = new TabPanel();
// NOTE : pour faire apparaître les scrollBar il faut définir la hauteur du panneau d'onglets à 100% (autoHeight ne semble pas fonctionner)
onglets.setHeight("100%");
// Onlget formulaire GENERAL
onglets.add(creerOngletGeneral());
// Onlget formulaire AUTEUR
onglets.add(creerOngletPersonne());
// Onlget formulaire PUBLICATION
onglets.add(creerOngletPublication());
// Onlget formulaire DESCRIPTION
onglets.add(creerOngletDescription());
// Onlget formulaire CONTENU
onglets.add(creerOngletContenu());
// Onlget formulaire INVENTAIRE
onglets.add(creerOngletInventaire());
// Onlget formulaire COMMENTAIRE
onglets.add(creerOngletCommentaire());
// Sélection de l'onglet par défaut
onglets.setSelection(generalOnglet);
panneauFormulaire.add(onglets);
}
private TabItem creerOngletGeneral() {
generalOnglet = new CollectionFormGeneral(this);
return generalOnglet;
}
private TabItem creerOngletPersonne() {
personneOnglet = new CollectionFormPersonne(this);
return personneOnglet;
}
private TabItem creerOngletPublication() {
publicationOnglet = new CollectionFormPublication(this);
return publicationOnglet;
}
private TabItem creerOngletDescription() {
descriptionOnglet = new CollectionFormDescription(this);
return descriptionOnglet;
}
private TabItem creerOngletContenu() {
contenuOnglet = new CollectionFormContenu(this);
return contenuOnglet;
}
private TabItem creerOngletInventaire() {
inventaireOnglet = new CollectionFormInventaire(this);
return inventaireOnglet;
}
private TabItem creerOngletCommentaire() {
commentaireOnglet = new CollectionFormCommentaire(this);
return commentaireOnglet;
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
rafraichirInformation(info);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
controlerFermetureApresRafraichissement();
}
 
private void rafraichirInformation(Information info) {
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
}
if (info.getType().equals("modif_collection")) {
Info.display("Modification d'une collection", info.toString());
} else if (info.getType().equals("selection_collection")) {
Info.display("Modification d'une collection", info.toString());
if (info.getDonnee(0) != null) {
collection = (Collection) info.getDonnee(0);
}
peupler();
genererTitreFormulaire();
} else if (info.getType().equals("ajout_collection")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String collectionId = (String) info.getDonnee(0);
Info.display("Ajout d'une collection", "La collection '"+collectionId+"' a bien été ajoutée");
// Suite à la récupération de l'id de l'institution nouvellement ajoutée nous ajoutons les personnes et les publications liées
personneOnglet.rafraichir(info);
publicationOnglet.rafraichir(info);
commentaireOnglet.rafraichir(info);
} else {
Info.display("Ajout d'une collection", info.toString());
}
} else if (info.getType().equals("liste_collection_a_personne")) {
personneOnglet.rafraichir(info);
} else if (info.getType().equals("liste_collection_a_publication")) {
publicationOnglet.rafraichir(info);
} else if (info.getType().equals("liste_collection_a_commentaire")) {
commentaireOnglet.rafraichir(info);
}
}
private void peupler() {
if (collection != null) {
nomChp.setValue(collection.getNom());
typesCollectionCombo.peupler(collection.getTypeNcd());
peuplerOnglets();
}
}
 
private void peuplerOnglets() {
generalOnglet.peupler();
descriptionOnglet.peupler();
contenuOnglet.peupler();
inventaireOnglet.peupler();
commentaireOnglet.peupler();
}
 
public boolean soumettreFormulaire() {
// Vérification de la validité des champs du formulaire
boolean formulaireValide = verifierFormulaire();
if (formulaireValide) {
// Collecte des données du formulaire
Collection collectionAEnregistrer = collecterCollection();
if (mode.equals(MODE_AJOUTER)) {
mediateur.ajouterCollection(this, collectionAEnregistrer);
Debug.log("enfin");
} else if (mode.equals(MODE_MODIFIER)) {
if (collectionAEnregistrer == null) {
Info.display("Modification d'une collection", "Rien n'a été enregistré car le formulaire n'a pas été modifié.");
} else {
mediateur.modifierCollection(this, collectionAEnregistrer);
}
}
soumettreOnglets();
}
return formulaireValide;
}
private void soumettreOnglets() {
personneOnglet.soumettre();
publicationOnglet.soumettre();
commentaireOnglet.soumettre();
}
public void reinitialiserFormulaire() {
if (mode.equals(StructureForm.MODE_MODIFIER)) {
mediateur.afficherFormCollection(collection.getId());
} else {
mediateur.afficherFormCollection(null);
}
}
private Collection collecterCollection() {
collectionCollectee = (Collection) collection.cloner(new Collection());
this.collecter();
collecterOnglets();
Collection collectionARetourner = null;
if (!collectionCollectee.comparer(collection) || !collectionCollectee.getBotanique().comparer(collection.getBotanique())) {
collectionARetourner = collection = collectionCollectee;
}
return collectionARetourner;
}
private void collecter() {
collectionCollectee.setNom(nomChp.getValue());
collectionCollectee.setTypeNcd(typesCollectionCombo.getValue().getId());
}
private void collecterOnglets() {
generalOnglet.collecter();
personneOnglet.collecter();
publicationOnglet.collecter();
descriptionOnglet.collecter();
contenuOnglet.collecter();
inventaireOnglet.collecter();
commentaireOnglet.collecter();
}
public boolean verifierFormulaire() {
ArrayList<String> messages = new ArrayList<String>();
// Vérification des infos sur le nom de la collection
if (nomChp.getValue() == null
|| nomChp.getValue().equals("")
|| (mode.equals(MODE_MODIFIER) && collection != null && collection.getNom().equals(""))) {
messages.add("Veuillez donner un nom à la collection.");
}
// Vérification des infos sur le type de collection
if (typesCollectionCombo.getValue() == null
|| typesCollectionCombo.getValue().equals("")
|| (mode.equals(MODE_MODIFIER) && collection != null && collection.getIdProjet().equals(""))) {
messages.add("Veuillez sélectionner un type pour la collection.");
}
messages.addAll(verifierOnglets());
// Affichage des messages d'alerte
if (messages.size() != 0) {
String[] tableauDesMessages = {};
tableauDesMessages = messages.toArray(tableauDesMessages);
MessageBox.alert("Erreurs de saisies", UtilArray.implode(tableauDesMessages, "<br />"), null);
return false;
}
return true;
}
private ArrayList<String> verifierOnglets() {
ArrayList<String> messages = new ArrayList<String>();
messages.addAll(generalOnglet.verifier());
messages.addAll(personneOnglet.verifier());
return messages;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionFormCommentaire.java
New file
0,0 → 1,626
package org.tela_botanica.client.vues.collection;
 
import java.util.ArrayList;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.composants.ChampComboBoxMultiSelect;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionACommentaire;
import org.tela_botanica.client.modeles.collection.CollectionACommentaireListe;
import org.tela_botanica.client.modeles.commentaire.Commentaire;
import org.tela_botanica.client.modeles.commentaire.CommentaireListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.vues.FenetreForm;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.FormulaireBarreValidation;
import org.tela_botanica.client.vues.FormulaireOnglet;
import org.tela_botanica.client.vues.commentaire.CommentaireForm;
 
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.KeyListener;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.store.Store;
import com.extjs.gxt.ui.client.store.StoreEvent;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnData;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.grid.RowNumberer;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
 
public class CollectionFormCommentaire extends FormulaireOnglet implements Rafraichissable {
public static final String ID = "commentaire";
private Collection collection = null;
private static int idGenere = 1;
private ContentPanel panneauPrincipal = null;
private ToolBar barreOutils = null;
private EditorGrid<CollectionACommentaire> grille;
private ChampComboBoxMultiSelect<Valeur> typeCombo = null;
private CollectionACommentaireListe commentairesAjoutes = null;
private CollectionACommentaireListe commentairesModifies = null;
private CollectionACommentaireListe commentairesSupprimes = null;
private ComboBox<Commentaire> commentairesSaisisComboBox = null;
private Button commentairesBoutonSupprimer = null;
private Button commentairesBoutonModifier = null;
private static boolean chargementTypesOk = false;
private static boolean chargementCommentairesOk = false;
private FenetreForm fenetreFormulaire = null;
public CollectionFormCommentaire(Formulaire formulaireCourrant) {
initialiserOnglet(formulaireCourrant);
setId(ID);
setText(Mediateur.i18nC.collectionCommentaire());
setStyleAttribute("padding", "0");
panneauPrincipal = creerPanneauContenantGrille();
barreOutils = creerBarreOutilsGrille();
panneauPrincipal.setTopComponent(barreOutils);
grille = creerGrille();
panneauPrincipal.add(grille);
mediateur.obtenirListeValeurEtRafraichir(this, "typeCommentaireCollection");
add(panneauPrincipal);
initialiser();
}
private void initialiser() {
// Remise à zéro des modification dans la liste des commentaires
initialiserGestionCommentaires();
// Actualisation de l'état des boutons de la barre d'outils
actualiserEtatBoutonsBarreOutils();
collection = ((CollectionForm) formulaire).collection;
}
private void initialiserGestionCommentaires() {
idGenere = 1;
commentairesAjoutes = new CollectionACommentaireListe();
commentairesModifies = new CollectionACommentaireListe();
commentairesSupprimes = new CollectionACommentaireListe();
}
private void initialiserChargement() {
chargementCommentairesOk = false;
}
private ContentPanel creerPanneauContenantGrille() {
ContentPanel panneau = new ContentPanel();
panneau.setHeading(i18nC.collectionCommentaireTitre());
panneau.setIcon(Images.ICONES.table());
panneau.setLayout(new FitLayout());
panneau.setFrame(true);
return panneau;
}
 
private ToolBar creerBarreOutilsGrille() {
ToolBar barreOutils = new ToolBar();
Button ajouterPersonneBouton = creerBoutonAjouter();
barreOutils.add(ajouterPersonneBouton);
barreOutils.add(new Text(" ou "));
commentairesSaisisComboBox = creerComboBoxCommentairesSaisies();
barreOutils.add(commentairesSaisisComboBox);
barreOutils.add(new SeparatorToolItem());
commentairesBoutonModifier = creerBoutonModifier();
barreOutils.add(commentairesBoutonModifier);
barreOutils.add(new SeparatorToolItem());
commentairesBoutonSupprimer = creerBoutonSupprimer();
barreOutils.add(commentairesBoutonSupprimer);
barreOutils.add(new SeparatorToolItem());
Button rafraichirPersonneBouton = creerBoutonRafraichir();
barreOutils.add(rafraichirPersonneBouton);
return barreOutils;
}
 
private Button creerBoutonAjouter() {
Button bouton = new Button(i18nC.ajouter());
bouton.setIcon(Images.ICONES.vcardAjouter());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
 
@Override
public void componentSelected(ButtonEvent ce) {
fenetreFormulaire = creerFenetreModaleAvecFormulaireCommentaire(Formulaire.MODE_AJOUTER);
fenetreFormulaire.show();
}
});
return bouton;
}
private Button creerBoutonModifier() {
Button bouton = new Button(i18nC.modifier());
bouton.setIcon(Images.ICONES.vcardModifier());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
CollectionACommentaire commentaireSaisiSelectionne = grille.getSelectionModel().getSelectedItem();
if (commentaireSaisiSelectionne == null) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerCommentaire());
} else {
fenetreFormulaire = creerFenetreModaleAvecFormulaireCommentaire(Formulaire.MODE_MODIFIER);
fenetreFormulaire.show();
}
}
});
return bouton;
}
private FenetreForm creerFenetreModaleAvecFormulaireCommentaire(String mode) {
String commentaireId = null;
if (mode.equals(Formulaire.MODE_MODIFIER)) {
CollectionACommentaire commentaierSaisieSelectionnee = grille.getSelectionModel().getSelectedItem();
commentaireId = commentaierSaisieSelectionnee.getIdCommentaire();
}
final FenetreForm fenetre = new FenetreForm("");
final CommentaireForm formulaire = creerFormulaireCommentaire(fenetre, commentaireId);
fenetre.add(formulaire);
return fenetre;
}
private CommentaireForm creerFormulaireCommentaire(final FenetreForm fenetre, String commentaireId) {
CommentaireForm formulaire = new CommentaireForm(mediateur, commentaireId, this);
FormPanel panneauFormulaire = formulaire.getFormulaire();
fenetre.setHeading(panneauFormulaire.getHeading());
panneauFormulaire.setHeaderVisible(false);
panneauFormulaire.setTopComponent(null);
 
// FIXME : avec GXT-2.1.0 la redéfinition du bottom component ne marche plus. Nous le cachons et en créeons un dans la fenêtre.
panneauFormulaire.getBottomComponent().hide();
SelectionListener<ButtonEvent> ecouteur = creerEcouteurValidationFormulaireCommentaire(fenetre, formulaire);
final ButtonBar barreValidation = new FormulaireBarreValidation(ecouteur);
fenetre.setBottomComponent(barreValidation);
return formulaire;
}
private SelectionListener<ButtonEvent> creerEcouteurValidationFormulaireCommentaire(final FenetreForm fenetre, final CommentaireForm formulaire) {
SelectionListener<ButtonEvent> ecouteur = new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
String code = ((Button) ce.getComponent()).getData("code");
if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
if (formulaire.soumettreFormulaire()) {
fenetre.hide();
}
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
formulaire.soumettreFormulaire();
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
fenetre.hide();
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
fenetreFormulaire.hide();
fenetreFormulaire = creerFenetreModaleAvecFormulaireCommentaire(formulaire.mode);
fenetreFormulaire.show();
}
}
};
return ecouteur;
}
private Button creerBoutonSupprimer() {
Button bouton = new Button(i18nC.supprimer());
bouton.setIcon(Images.ICONES.vcardSupprimer());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
CollectionACommentaire commentaireSaisiSelectionnee = grille.getSelectionModel().getSelectedItem();
if (commentaireSaisiSelectionnee == null) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerCommentaire());
} else {
supprimerDansGrille(commentaireSaisiSelectionnee);
}
}
});
return bouton;
}
private Button creerBoutonRafraichir() {
Button bouton = new Button(i18nC.rafraichir());
bouton.setIcon(Images.ICONES.rafraichir());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
actualiserGrille();
}
});
return bouton;
}
private ComboBox<Commentaire> creerComboBoxCommentairesSaisies() {
ListStore<Commentaire> commentairesSaisiesStore = new ListStore<Commentaire>();
commentairesSaisiesStore.add(new ArrayList<Commentaire>());
ComboBox<Commentaire> comboBox = new ComboBox<Commentaire>();
comboBox.setWidth(200);
comboBox.setEmptyText(i18nC.chercherCommentaireSaisi());
comboBox.setTriggerAction(TriggerAction.ALL);
comboBox.setEditable(true);
comboBox.setDisplayField("titre");
comboBox.setStore(commentairesSaisiesStore);
comboBox.addKeyListener(new KeyListener() {
public void componentKeyUp(ComponentEvent ce) {
if (commentairesSaisisComboBox.getRawValue() != null && commentairesSaisisComboBox.getRawValue().length() > 0) {
if (!ce.isNavKeyPress()) {
obtenirCommentairesSaisis(commentairesSaisisComboBox.getRawValue());
}
}
}
});
comboBox.addListener(Events.Select, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
if (commentairesSaisisComboBox.getValue() instanceof Commentaire) {
Commentaire commentaireSaisiSelectionnee = commentairesSaisisComboBox.getValue();
ajouterDansGrille(commentaireSaisiSelectionnee);
commentairesSaisisComboBox.setValue(null);
}
}
});
return comboBox;
}
private void ajouterDansGrille(Commentaire commentaire) {
ajouterDansGrille(commentaire, null, 0);
}
private void ajouterDansGrille(Commentaire commentaire, String type, int index) {
if (commentaire != null) {
CollectionACommentaire relationCollectionACommentaire = new CollectionACommentaire();
relationCollectionACommentaire.setCommentaire(commentaire);
relationCollectionACommentaire.setIdCommentaire(commentaire.getId());
if (type != null) {
relationCollectionACommentaire.set("_type_", type);
}
// Gestion de l'id de la collection
if (mode.equals(Formulaire.MODE_MODIFIER)) {
relationCollectionACommentaire.setIdCollection(collection.getId());
}
relationCollectionACommentaire.set("_etat_", aDonnee.ETAT_AJOUTE);
corrigerChampsGrille(relationCollectionACommentaire);
// Ajout à la grille
grille.stopEditing();
grille.getStore().insert(relationCollectionACommentaire, index);
grille.startEditing(index, 0);
grille.getSelectionModel().select(index, false);
}
}
private void supprimerDansGrille(CollectionACommentaire relationCollectionACommentaire) {
if (relationCollectionACommentaire != null) {
// Ajout de la personne supprimée à la liste
if ((relationCollectionACommentaire.get("_etat_").equals("") || !relationCollectionACommentaire.get("_etat_").equals(aDonnee.ETAT_AJOUTE))
&& relationCollectionACommentaire.getId() != null
&& !relationCollectionACommentaire.getId().equals("")) {
Debug.log("Nbre commentaires supprimées avant:"+commentairesSupprimes.size());
commentairesSupprimes.put("id"+idGenere++, relationCollectionACommentaire);
Debug.log("Commentaires supprimées : "+relationCollectionACommentaire.getCommentaire().getId());
Debug.log("Nbre commentaires supprimées :"+commentairesSupprimes.size());
}
// Suppression de l'enregistrement de la grille
grille.getStore().remove(relationCollectionACommentaire);
}
}
 
private EditorGrid<CollectionACommentaire> creerGrille() {
ListStore<CollectionACommentaire> storeGrille = new ListStore<CollectionACommentaire>();
storeGrille.addListener(Store.Add, new Listener<StoreEvent<CollectionACommentaire>>() {
public void handleEvent(StoreEvent<CollectionACommentaire> ce) {
actualiserEtatBoutonsBarreOutils();
}
});
storeGrille.addListener(Store.Remove, new Listener<StoreEvent<CollectionACommentaire>>() {
public void handleEvent(StoreEvent<CollectionACommentaire> ce) {
actualiserEtatBoutonsBarreOutils();
}
});
storeGrille.addListener(Store.Update, new Listener<StoreEvent<CollectionACommentaire>>() {
public void handleEvent(StoreEvent<CollectionACommentaire> ce) {
if (ce.getRecord().isModified("_type_") && !ce.getModel().get("_etat_").equals(aDonnee.ETAT_AJOUTE)) {
Debug.log("id type modifié : "+ce.getModel().get("_type_"));
ce.getModel().set("_etat_", aDonnee.ETAT_MODIFIE);
}
}
});
RowNumberer pluginLigneNumero = new RowNumberer();
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
colonnes.add(pluginLigneNumero);
colonnes.add(creerColonneType());
colonnes.add(new ColumnConfig("_titre_", i18nC.commentaireTitre(), 150));
colonnes.add(new ColumnConfig("_texte_", i18nC.commentaireTexte(), 75));
colonnes.add(new ColumnConfig("_ponderation_", i18nC.commentairePonderation(), 35));
colonnes.add(creerColonneAcces());
GridSelectionModel<CollectionACommentaire> modeleDeSelection = new GridSelectionModel<CollectionACommentaire>();
ColumnModel modeleDeColonnes = new ColumnModel(colonnes);
EditorGrid<CollectionACommentaire> grille = new EditorGrid<CollectionACommentaire>(storeGrille, modeleDeColonnes);
grille.setHeight("100%");
grille.setBorders(true);
grille.setSelectionModel(modeleDeSelection);
grille.addPlugin(pluginLigneNumero);
grille.getView().setForceFit(true);
grille.setAutoExpandColumn("_titre_");
grille.setStripeRows(true);
grille.setTrackMouseOver(true);
return grille;
}
private ColumnConfig creerColonneType() {
typeCombo = new ChampComboBoxMultiSelect<Valeur>();
typeCombo.setDisplayField("nom");
typeCombo.setValueField("id_valeur");
typeCombo.setStore(new ListStore<Valeur>());
typeCombo.setEditable(false);
typeCombo.setForceSelection(true);
CellEditor typeEditeur = new CellEditor(typeCombo) {
@SuppressWarnings("unchecked")
@Override
public Object preProcessValue(Object valeur) {
Valeur retour = new Valeur();
if (valeur != null ) {
if (valeur instanceof String) {
((ChampComboBoxMultiSelect<Valeur>) getField()).peuplerAvecTexte(valeur.toString());
}
}
return retour;
}
 
@Override
public Object postProcessValue(Object valeur) {
String retour = null;
if (getField().getRawValue() != null ) {
retour = getField().getRawValue();
}
Debug.log("Post : "+retour);
return retour;
}
};
 
GridCellRenderer<CollectionACommentaire> typeRendu = new GridCellRenderer<CollectionACommentaire>() {
@Override
public String render(CollectionACommentaire model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<CollectionACommentaire> store, Grid<CollectionACommentaire> grid) {
String type = model.get("_type_");
Debug.log("Initialisation type origine :"+type);
if (typeCombo.getStore() != null && type != null && (type.matches("[0-9]+") || type.contains(aDonnee.SEPARATEUR_VALEURS))) {
type = typeCombo.formaterIdentifiantsEnTexte(type);
model.set("_type_", type);
Debug.log("Initialisation :"+type);
}
return type;
}
};
ColumnConfig typeColonne = new ColumnConfig("_type_", i18nC.commentaireType(), 100);
typeColonne.setEditor(typeEditeur);
typeColonne.setRenderer(typeRendu);
return typeColonne;
}
private ColumnConfig creerColonneAcces() {
GridCellRenderer<CollectionACommentaire> accesRendu = new GridCellRenderer<CollectionACommentaire>() {
@Override
public String render(CollectionACommentaire model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<CollectionACommentaire> store, Grid<CollectionACommentaire> grid) {
String acces = (model.getCommentaire().etrePublic() ? i18nC.donneePublic() : i18nC.donneePrivee());
model.set("_public_", acces);
return acces;
}
};
ColumnConfig accesColonne = new ColumnConfig("_public_", i18nC.commentairePublic(), 30);
accesColonne.setRenderer(accesRendu);
return accesColonne;
}
public void actualiserEtatBoutonsBarreOutils() {
// Activation des boutons si la grille contient un élément
if (grille.getStore().getCount() > 0) {
commentairesBoutonSupprimer.enable();
commentairesBoutonModifier.enable();
}
// Désactivation des boutons si la grille ne contient plus d'élément
if (grille.getStore().getCount() == 0) {
commentairesBoutonSupprimer.disable();
commentairesBoutonModifier.disable();
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
rafraichirValeurListe(listeValeurs);
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
rafraichirInformation(info);
} else if (nouvellesDonnees instanceof CommentaireListe) {
CommentaireListe listeCommentaires = (CommentaireListe) nouvellesDonnees;
rafraichirCommentairesListe(listeCommentaires);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
if (chargementTypesOk && chargementCommentairesOk) {
peupler();
initialiserChargement();
}
}
private void rafraichirValeurListe(ValeurListe listeValeurs) {
if (listeValeurs.getId().equals(config.getListeId("typeCommentaireCollection"))) {
List<Valeur> liste = listeValeurs.toList();
if (liste.size() > 0) {
ListStore<Valeur> store = typeCombo.getStore();
store.removeAll();
store.add(liste);
store.sort("nom", SortDir.ASC);
typeCombo.setStore(store);
}
chargementTypesOk = true;
} else {
GWT.log("Gestion de la liste "+listeValeurs.getId()+" non implémenté!", null);
}
}
public void rafraichirInformation(Information info) {
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
}
String type = info.getType();
if (info.getType().equals("liste_collection_a_commentaire")) {
if (info.getDonnee(0) != null) {
initialiser();
collection.setCommentairesLiees((CollectionACommentaireListe) info.getDonnee(0));
chargementCommentairesOk = true;
}
} else if (info.getType().equals("ajout_collection")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String collectionId = (String) info.getDonnee(0);
// Suite à la récupération de l'id de la collection nouvellement ajoutée nous ajoutons les personnes liées
// En mode AJOUT, il ne peut que y avoir des personnes liées ajoutées
mediateur.ajouterCollectionACommentaire(this, collectionId, commentairesAjoutes);
}
} else if (type.equals("commentaire_modifiee")) {
if (info.getDonnee(0) != null) {
Commentaire commentaire = (Commentaire) info.getDonnee(0);
CollectionACommentaire commentaireDansGrille = grille.getStore().findModel("id_commentaire", commentaire.getId());
int index = grille.getStore().indexOf(commentaireDansGrille);
grille.getStore().remove(commentaireDansGrille);
String typeCommentaire = (String) commentaireDansGrille.get("_type_");
ajouterDansGrille(commentaire, typeCommentaire, index);
}
} else if (type.equals("commentaire_ajoutee")) {
if (info.getDonnee(0) != null) {
Commentaire commentaire = (Commentaire) info.getDonnee(0);
ajouterDansGrille(commentaire);
}
} else if (info.getType().equals("modif_collection_a_commentaire")) {
Info.display("Modification des notes liées à la collection", info.toString());
initialiserGestionCommentaires();
} else if (info.getType().equals("suppression_collection_a_commentaire")) {
Info.display("Suppression des notes liées à la collection", info.toString());
initialiserGestionCommentaires();
} else if (info.getType().equals("ajout_collection_a_commentaire")) {
Info.display("Ajout des notes liées à la collection", info.toString());
initialiserGestionCommentaires();
}
}
private void rafraichirCommentairesListe(CommentaireListe listeCommentaires) {
commentairesSaisisComboBox.getStore().removeAll();
commentairesSaisisComboBox.getStore().add(listeCommentaires.toList());
commentairesSaisisComboBox.expand();
}
public void peupler() {
grille.getStore().removeAll();
grille.getStore().add(collection.getCommentairesLiees().toList());
grille.recalculate();
layout();
Info.display(i18nC.chargementCommentaire(), i18nC.ok());
}
public void collecter() {
if (etreAccede()) {
int nbreCommentaire = grille.getStore().getCount();
for (int i = 0; i < nbreCommentaire; i++) {
CollectionACommentaire relationCollectionACommentaire = grille.getStore().getAt(i);
if (relationCollectionACommentaire.get("_etat_") != null) {
if (relationCollectionACommentaire.get("_etat_").equals(aDonnee.ETAT_MODIFIE)) {
corrigerChampsGrille(relationCollectionACommentaire);// Nous modifions l'id_type
commentairesModifies.put("id"+idGenere++, relationCollectionACommentaire);
Debug.log("Commentaires modifiés : "+relationCollectionACommentaire.getCommentaire().getTitre());
}
if (relationCollectionACommentaire.get("_etat_").equals(aDonnee.ETAT_AJOUTE)) {
corrigerChampsGrille(relationCollectionACommentaire);// Nous modifions l'id_type
commentairesAjoutes.put("id"+idGenere++, relationCollectionACommentaire);
Debug.log("Commentaires ajoutés : "+relationCollectionACommentaire.getCommentaire().getTitre());
}
// Initialisation de la grille
relationCollectionACommentaire.set("_etat_", "");
}
}
grille.getStore().commitChanges();
}
}
private void corrigerChampsGrille(CollectionACommentaire relationCollectionACommentaire) {
String type = relationCollectionACommentaire.get("_type_");
relationCollectionACommentaire.setType(typeCombo.formaterTexteEnIdentifiants(type));
}
 
public void soumettre() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
if (commentairesAjoutes.size() == 0 && commentairesModifies.size() == 0 && commentairesSupprimes.size() == 0) {
Info.display("Modification des notes liées", "Rien n'a été enregistré car le formulaire n'a pas été modifié.");
} else {
mediateur.ajouterCollectionACommentaire(this, collection.getId(), commentairesAjoutes);
mediateur.modifierCollectionACommentaire(this, commentairesModifies);
mediateur.supprimerCollectionACommentaire(this, commentairesSupprimes);
}
}
}
private void obtenirCommentairesSaisis(String titre) {
mediateur.selectionnerCommentaireParTitre(this, titre+"%");
}
private void actualiserGrille() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.selectionnerCollectionACommentaire(this, collection.getId());
} else {
grille.getStore().removeAll();
layout();
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionFormDescription.java
New file
0,0 → 1,900
package org.tela_botanica.client.vues.collection;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.composants.ChampCaseACocher;
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
import org.tela_botanica.client.composants.ChampMultiValeursMultiTypes;
import org.tela_botanica.client.composants.ChampSliderPourcentage;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.InterneValeur;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionBotanique;
import org.tela_botanica.client.modeles.collection.UniteBase;
import org.tela_botanica.client.modeles.collection.UniteRangement;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.Pattern;
import org.tela_botanica.client.util.UtilNombre;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.FormulaireOnglet;
 
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.MessageBoxEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.NumberField;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
import com.extjs.gxt.ui.client.widget.grid.AggregationRowConfig;
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.grid.HeaderGroupConfig;
import com.extjs.gxt.ui.client.widget.grid.SummaryType;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.i18n.client.NumberFormat;
 
public class CollectionFormDescription extends FormulaireOnglet implements Rafraichissable {
public static final String ID = "description";
private Collection collection = null;
private CollectionBotanique collectionBotanique = null;
private Collection collectionCollectee = null;
private CollectionBotanique collectionBotaniqueCollectee = null;
private static ListStore<InterneValeur> precisionStore = null;
private ChampComboBoxListeValeurs typesCollectionBotaCombo = null;
private NumberField nbreEchantillonChp = null;
private EditorGrid<UniteRangement> uniteRangementGrille = null;
private ChampComboBoxListeValeurs etatUniteRangementCombo = null;
private EditorGrid<UniteBase> uniteBaseGrille = null;
private ChampCaseACocher typePapierConservationChp = null;
private ChampCaseACocher methodeConservationChp = null;
private ChampSliderPourcentage specimenFixationPourcentChp = null;
private ChampSliderPourcentage etiquetteFixationPourcentChp = null;
private ChampCaseACocher specimentMethodeFixationChp = null;
private ChampCaseACocher etiquetteMethodeFixationSurSupportChp = null;
private ChampCaseACocher etiquetteMethodeFixationSurSpecimenChp = null;
private ChampCaseACocher typeEcritureChp = null;
private ChampComboBoxListeValeurs traitementCombo = null;
private ChampCaseACocher poisonTraitementChp = null;
private ChampCaseACocher insecteTraitementChp = null;
private ChampComboBoxListeValeurs etatGeneralCombo = null;
private ChampComboBoxListeValeurs determinationCombo = null;
private ChampMultiValeursMultiTypes specimenDegradationChp = null;
private ChampMultiValeursMultiTypes presentationDegradationChp = null;
public CollectionFormDescription(Formulaire formulaireCourrant) {
initialiserOnglet(formulaireCourrant);
setId(ID);
setText(Mediateur.i18nC.collectionDescription());
 
FormLayout formulaireLayout = (FormLayout) this.getLayout();
formulaireLayout.setLabelAlign(LabelAlign.LEFT);
formulaireLayout.setLabelWidth(300);
creerFieldsetPrecision();
creerStorePrecision();
creerUniteRangement();
creerUniteBase();
creerFieldsetConservation();
creerFieldsetEtiquette();
creerFieldsetTraitement();
creerFieldsetEtat();
layout();
}
private void creerFieldsetPrecision() {
FieldSet precisionFieldSet = new FieldSet();
precisionFieldSet.setHeading(i18nC.collectionTitrePrecision());
precisionFieldSet.setCollapsible(true);
precisionFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
typesCollectionBotaCombo = new ChampComboBoxListeValeurs(i18nC.typeCollectionBotanique(), "typeCollectionBota");
typesCollectionBotaCombo.setTabIndex(tabIndex++);
precisionFieldSet.add(typesCollectionBotaCombo, new FormData(250, 0));
nbreEchantillonChp = new NumberField();
nbreEchantillonChp.setFieldLabel(i18nC.nbreEchantillon());
nbreEchantillonChp.setToolTip(i18nC.nbreEchantillonInfo());
nbreEchantillonChp.setFormat(NumberFormat.getFormat("#"));
precisionFieldSet.add(nbreEchantillonChp);
this.add(precisionFieldSet);
}
private static void creerStorePrecision() {
if (precisionStore == null) {
precisionStore = new ListStore<InterneValeur>();
precisionStore.add(new InterneValeur(UniteRangement.COMPTE_APPROXIMATIF, Mediateur.i18nC.precisionApproximatif()));
precisionStore.add(new InterneValeur(UniteRangement.COMPTE_EXACT, Mediateur.i18nC.precisionExact()));
}
}
private static String getPrecisionNom(String precisionAbr) {
String precision = "";
if (!precisionAbr.equals("NULL")) {
creerStorePrecision();
InterneValeur precisionValeur = precisionStore.findModel("abr", precisionAbr);
if (precisionValeur != null && !precisionValeur.getNom().equals("NULL")) {
precision = precisionValeur.getNom();
}
}
return precision;
}
private static String getPrecisionAbr(String precisionNom) {
String precision = "";
if (!precisionNom.equals("NULL")) {
creerStorePrecision();
InterneValeur precisionValeur = precisionStore.findModel("nom", precisionNom);
if (precisionValeur != null) {
precision = precisionValeur.getAbr();
}
}
return precision;
}
private ComboBox<InterneValeur> getChampPrecision() {
ComboBox<InterneValeur> precisionCombo = new ComboBox<InterneValeur>();
precisionCombo.setForceSelection(true);
precisionCombo.setTriggerAction(TriggerAction.ALL);
precisionCombo.setDisplayField("nom");
precisionCombo.setStore(precisionStore);
precisionCombo.setEditable(false);
return precisionCombo;
}
private void creerUniteRangement() {
ContentPanel panneauGrille = creerPanneauContenantGrille(i18nC.collectionUniteRangementTitre());
uniteRangementGrille = creerGrilleUniteRangement();
mediateur.obtenirListeValeurEtRafraichir(this, "typeUniteRangement");
panneauGrille.add(uniteRangementGrille);
ToolBar barreOutils = creerBarreOutilsGrilleUniteRangement();
panneauGrille.setTopComponent(barreOutils);
add(panneauGrille);
}
private ContentPanel creerPanneauContenantGrille(String titre) {
ContentPanel panneau = new ContentPanel();
panneau.setHeading(titre);
panneau.setIcon(Images.ICONES.table());
panneau.setLayout(new FitLayout());
panneau.setFrame(true);
panneau.setScrollMode(Scroll.AUTO);
panneau.setCollapsible(true);
panneau.setStyleAttribute("margin", "5px 0");
return panneau;
}
private EditorGrid<UniteRangement> creerGrilleUniteRangement() {
ListStore<UniteRangement> storeGrille = new ListStore<UniteRangement>();
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
colonnes.add(new ColumnConfig("type", i18nC.collectionUniteType(), 150));
NumberField champNombre = new NumberField();
champNombre.setFormat(NumberFormat.getFormat("#"));
ColumnConfig nombreColonne = new ColumnConfig("nombre", i18nC.collectionUniteNbre(), 50);
nombreColonne.setEditor(new CellEditor(champNombre));
nombreColonne.setNumberFormat(NumberFormat.getFormat("#"));
colonnes.add(nombreColonne);
CellEditor editeurPrecision = new CellEditor(getChampPrecision()) {
@Override
public Object preProcessValue(Object valeur) {
InterneValeur retour = null;
if (valeur != null ) {
if (precisionStore.findModel("nom", valeur.toString()) != null) {
retour = precisionStore.findModel("nom", valeur.toString());
} else if (precisionStore.findModel("abr", valeur.toString()) != null) {
retour = precisionStore.findModel("abr", valeur.toString());
}
}
return retour;
}
 
@Override
public Object postProcessValue(Object valeur) {
String retour = null;
if (valeur != null ) {
if (valeur instanceof InterneValeur) {
InterneValeur valeurInterne = (InterneValeur) valeur;
retour = valeurInterne.getNom();
}
}
return retour;
}
};
ColumnConfig precisionColonne = new ColumnConfig("precision", i18nC.collectionUnitePrecision(), 50);
precisionColonne.setEditor(editeurPrecision);
colonnes.add(precisionColonne);
TextField<String> formatChp = new TextField<String>();
ColumnConfig formatColonne = new ColumnConfig("format", i18nC.collectionUniteFormat(), 100);
formatColonne.setEditor(new CellEditor(formatChp));
colonnes.add(formatColonne);
GridSelectionModel<UniteRangement> modeleDeSelection = new GridSelectionModel<UniteRangement>();
ColumnModel modeleDeColonnes = new ColumnModel(colonnes);
AggregationRowConfig<UniteBase> total = new AggregationRowConfig<UniteBase>();
total.setHtml("type", i18nC.total());
total.setSummaryType("nombre", SummaryType.SUM);
total.setSummaryFormat("nombre", NumberFormat.getFormat("#"));
modeleDeColonnes.addAggregationRow(total);
EditorGrid<UniteRangement> grilleUniteRangement = new EditorGrid<UniteRangement>(storeGrille, modeleDeColonnes);
grilleUniteRangement.setHeight(300);
grilleUniteRangement.setBorders(true);
grilleUniteRangement.setSelectionModel(modeleDeSelection);
grilleUniteRangement.getView().setForceFit(true);
grilleUniteRangement.getView().setAutoFill(true);
grilleUniteRangement.setAutoExpandColumn("type");
grilleUniteRangement.setStripeRows(true);
grilleUniteRangement.setTrackMouseOver(true);
return grilleUniteRangement;
}
private String collecterGrilleUniteRangement() {
String truk = "";
int nbreUnite = uniteRangementGrille.getStore().getCount();
for (int i = 0; i < nbreUnite; i++) {
UniteRangement unite = uniteRangementGrille.getStore().getAt(i);
if (unite.getTypeAutre()) {
truk += unite.getType();
} else {
truk += unite.getId();
}
truk += aDonnee.SEPARATEUR_TYPE_VALEUR;
truk += UtilNombre.formaterEnEntier(unite.getNombre())+aDonnee.SEPARATEUR_DONNEES;
truk += getPrecisionAbr(unite.getPrecision())+aDonnee.SEPARATEUR_DONNEES;
truk += unite.getFormat();
truk += (i == (nbreUnite - 1)) ? "" : aDonnee.SEPARATEUR_VALEURS;
}
return truk;
}
private void peuplerGrilleUniteRangement(String valeurTruk) {
if (!UtilString.isEmpty(valeurTruk)) {
HashMap<String,UniteRangement> unitesEnregistrees = parserValeurUniteRangement(valeurTruk);
ArrayList<UniteRangement> listeUniteMaj = new ArrayList<UniteRangement>();
int nbreUnite = uniteRangementGrille.getStore().getCount();
for (int i = 0; i < nbreUnite; i++) {
UniteRangement uniteDansGrille = uniteRangementGrille.getStore().getAt(i);
UniteRangement uniteEnregistree = unitesEnregistrees.get(uniteDansGrille.getId());
if (uniteEnregistree != null) {
uniteEnregistree.setType(uniteDansGrille.getType());
listeUniteMaj.add(uniteEnregistree);
} else {
listeUniteMaj.add(uniteDansGrille);
}
}
Iterator<String> it = unitesEnregistrees.keySet().iterator();
while (it.hasNext()) {
String cle = it.next();
if (cle.matches(aDonnee.TYPE_AUTRE+aDonnee.SEPARATEUR_TYPE_VALEUR)) {
UniteRangement uniteAutreEnregistree = unitesEnregistrees.get(cle);
listeUniteMaj.add(uniteAutreEnregistree);
}
}
uniteRangementGrille.getStore().removeAll();
uniteRangementGrille.getStore().add(listeUniteMaj);
layout();
}
}
public static HashMap<String,UniteRangement> parserValeurUniteRangement(String valeurTruk) {
HashMap<String,UniteRangement> unitesEnregistrees = new HashMap<String,UniteRangement>();
if (!UtilString.isEmpty(valeurTruk)) {
String[] unites = valeurTruk.split(Pattern.quote(aDonnee.SEPARATEUR_VALEURS));
for (int i = 0; i < unites.length; i++) {
String[] uniteTypeIdDonnees = unites[i].split(Pattern.quote(aDonnee.SEPARATEUR_TYPE_VALEUR));
String uniteChaineDonnees = uniteTypeIdDonnees[1];
String[] uniteDonnees = uniteChaineDonnees.split(Pattern.quote(aDonnee.SEPARATEUR_DONNEES));
UniteRangement uniteRangement = new UniteRangement();
if (uniteDonnees.length > 0) {
uniteRangement.setNombre(UtilString.formaterEnEntier(uniteDonnees[0]));
}
if (uniteDonnees.length > 1) {
uniteRangement.setPrecision(getPrecisionNom(uniteDonnees[1]));
}
if (uniteDonnees.length > 2) {
uniteRangement.setFormat(uniteDonnees[2]);
}
if (uniteTypeIdDonnees[0].matches("[0-9]+")) {
uniteRangement.setId(uniteTypeIdDonnees[0]);
uniteRangement.setTypeAutre(false);
unitesEnregistrees.put(uniteTypeIdDonnees[0], uniteRangement);
} else {
uniteRangement.setType(uniteTypeIdDonnees[0]);
uniteRangement.setTypeAutre(true);
String id = aDonnee.TYPE_AUTRE+aDonnee.SEPARATEUR_TYPE_VALEUR+uniteTypeIdDonnees[0]+"-"+i;
unitesEnregistrees.put(id, uniteRangement);
}
}
}
return unitesEnregistrees;
}
private ToolBar creerBarreOutilsGrilleUniteRangement() {
ToolBar barreOutils = new ToolBar();
Button ajouterBouton = creerBoutonAjouterUniteRangement();
barreOutils.add(ajouterBouton);
barreOutils.add(new SeparatorToolItem());
Button supprimerBouton = creerBoutonSupprimerUniteRangement();
barreOutils.add(supprimerBouton);
barreOutils.add(new SeparatorToolItem());
barreOutils.add(new Text(i18nC.collectionUniteRangementEtatGeneralLabel()));
etatUniteRangementCombo = new ChampComboBoxListeValeurs("", "etat");
etatUniteRangementCombo.setEmptyText(i18nC.collectionUniteRangementEtatGeneral());
etatUniteRangementCombo.setToolTip(i18nC.collectionUniteRangementEtatGeneralInfo());
etatUniteRangementCombo.setTrie("id_valeur");
etatUniteRangementCombo.setWidth(300);
barreOutils.add(etatUniteRangementCombo);
return barreOutils;
}
private Button creerBoutonAjouterUniteRangement() {
Button bouton = new Button(i18nC.ajouter());
bouton.setIcon(Images.ICONES.ajouter());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
final MessageBox box = MessageBox.prompt(i18nC.collectionUniteType(), i18nC.collectionUniteRangementSaisirType());
box.addCallback(new Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent be) {
if (!UtilString.isEmpty(be.getValue()) && !be.getValue().matches("[0-9]+")) {
final UniteRangement unite = new UniteRangement();
unite.setType(be.getValue());
unite.setTypeAutre(true);
uniteRangementGrille.getStore().add(unite);
} else {
Info.display("Information", "Vous ne pouvez pas saisir de valeur vide ou numérique");
}
}
});
}
});
return bouton;
}
private Button creerBoutonSupprimerUniteRangement() {
Button bouton = new Button(i18nC.supprimer());
bouton.setIcon(Images.ICONES.supprimer());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
UniteRangement uniteRangementSelectionnee = uniteRangementGrille.getSelectionModel().getSelectedItem();
if (uniteRangementSelectionnee == null) {
Info.display(i18nC.informationTitreGenerique(), Mediateur.i18nM.veuillezSelectionner(i18nC.selectionnerUniteRangement()));
} else if (uniteRangementSelectionnee.getTypeAutre() == false) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerUniteRangementAjoute());
} else {
uniteRangementGrille.getStore().remove(uniteRangementSelectionnee);
}
}
});
return bouton;
}
private void creerUniteBase() {
ContentPanel panneauGrille = creerPanneauContenantGrille(i18nC.collectionUniteBaseTitre());
uniteBaseGrille = creerGrilleUniteBase();
mediateur.obtenirListeValeurEtRafraichir(this, "typeUniteBase");
panneauGrille.add(uniteBaseGrille);
ToolBar barreOutils = creerBarreOutilsGrilleUniteBase();
panneauGrille.setTopComponent(barreOutils);
add(panneauGrille);
}
private EditorGrid<UniteBase> creerGrilleUniteBase() {
ListStore<UniteBase> storeGrille = new ListStore<UniteBase>();
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
colonnes.add(new ColumnConfig("type", i18nC.collectionUniteType(), 150));
NumberField champNombre = new NumberField();
champNombre.setFormat(NumberFormat.getFormat("#"));
CellEditor editeurNombre = new CellEditor(champNombre);
ColumnConfig nombreColonne = new ColumnConfig("nombre", i18nC.collectionUniteNbre(), 50);
nombreColonne.setEditor(editeurNombre);
nombreColonne.setNumberFormat(NumberFormat.getFormat("#"));
colonnes.add(nombreColonne);
CellEditor editeurPrecision = new CellEditor(getChampPrecision()) {
@Override
public Object preProcessValue(Object valeur) {
InterneValeur retour = null;
if (valeur != null ) {
if (precisionStore.findModel("nom", valeur.toString()) != null) {
retour = precisionStore.findModel("nom", valeur.toString());
} else if (precisionStore.findModel("abr", valeur.toString()) != null) {
retour = precisionStore.findModel("abr", valeur.toString());
}
}
return retour;
}
 
@Override
public Object postProcessValue(Object valeur) {
String retour = null;
if (valeur != null ) {
if (valeur instanceof InterneValeur) {
InterneValeur valeurInterne = (InterneValeur) valeur;
retour = valeurInterne.getNom();
}
}
return retour;
}
};
ColumnConfig precisionColonne = new ColumnConfig("precision", i18nC.collectionUnitePrecision(), 50);
precisionColonne.setEditor(editeurPrecision);
colonnes.add(precisionColonne);
TextField<String> formatChp = new TextField<String>();
ColumnConfig formatColonne = new ColumnConfig("format", i18nC.collectionUniteFormat(), 100);
formatColonne.setEditor(new CellEditor(formatChp));
colonnes.add(formatColonne);
ColumnConfig partNombreColonne = new ColumnConfig("nombre_part", i18nC.collectionUniteNbre(), 50);
partNombreColonne.setEditor(editeurNombre);
partNombreColonne.setNumberFormat(NumberFormat.getFormat("#"));
colonnes.add(partNombreColonne);
ColumnConfig partPrecisionColonne = new ColumnConfig("precision_part", i18nC.collectionUnitePrecision(), 50);
partPrecisionColonne.setEditor(editeurPrecision);
colonnes.add(partPrecisionColonne);
ColumnConfig spNombreColonne = new ColumnConfig("nombre_sp", i18nC.collectionUniteNbre(), 50);
spNombreColonne.setEditor(editeurNombre);
spNombreColonne.setNumberFormat(NumberFormat.getFormat("#"));
colonnes.add(spNombreColonne);
ColumnConfig spPrecisionColonne = new ColumnConfig("precision_sp", i18nC.collectionUnitePrecision(), 50);
spPrecisionColonne.setEditor(editeurPrecision);
colonnes.add(spPrecisionColonne);
GridSelectionModel<UniteBase> modeleDeSelection = new GridSelectionModel<UniteBase>();
ColumnModel modeleDeColonnes = new ColumnModel(colonnes);
modeleDeColonnes.addHeaderGroup(0, 0, new HeaderGroupConfig(i18nC.collectionUniteBase(), 1, 4));
modeleDeColonnes.addHeaderGroup(0, 4, new HeaderGroupConfig(i18nC.collectionUniteBasePart(), 1, 2));
modeleDeColonnes.addHeaderGroup(0, 6, new HeaderGroupConfig(i18nC.collectionUniteBaseSp(), 1, 2));
AggregationRowConfig<UniteBase> total = new AggregationRowConfig<UniteBase>();
total.setHtml("type", "TOTAL");
total.setSummaryType("nombre", SummaryType.SUM);
total.setSummaryFormat("nombre", NumberFormat.getFormat("#"));
total.setSummaryType("nombre_part", SummaryType.SUM);
total.setSummaryFormat("nombre_part", NumberFormat.getFormat("#"));
total.setSummaryType("nombre_sp", SummaryType.SUM);
total.setSummaryFormat("nombre_sp", NumberFormat.getFormat("#"));
modeleDeColonnes.addAggregationRow(total);
EditorGrid<UniteBase> grilleUniteBase = new EditorGrid<UniteBase>(storeGrille, modeleDeColonnes);
grilleUniteBase.setHeight(200);
grilleUniteBase.setBorders(true);
grilleUniteBase.setSelectionModel(modeleDeSelection);
grilleUniteBase.getView().setForceFit(true);
grilleUniteBase.getView().setAutoFill(true);
grilleUniteBase.setAutoExpandColumn("type");
grilleUniteBase.setStripeRows(true);
grilleUniteBase.setTrackMouseOver(true);
return grilleUniteBase;
}
private String collecterGrilleUniteBase() {
String truk = "";
int nbreUnite = uniteBaseGrille.getStore().getCount();
for (int i = 0; i < nbreUnite; i++) {
UniteBase unite = uniteBaseGrille.getStore().getAt(i);
if (unite.getTypeAutre()) {
truk += unite.getType();
} else {
truk += unite.getId();
}
truk += aDonnee.SEPARATEUR_TYPE_VALEUR;
truk += UtilNombre.formaterEnEntier(unite.getNombre())+aDonnee.SEPARATEUR_DONNEES;
truk += getPrecisionAbr(unite.getPrecision())+aDonnee.SEPARATEUR_DONNEES;
truk += unite.getFormat()+aDonnee.SEPARATEUR_DONNEES;
truk += UtilNombre.formaterEnEntier(unite.getNombrePart())+aDonnee.SEPARATEUR_DONNEES;
truk += getPrecisionAbr(unite.getPrecisionPart())+aDonnee.SEPARATEUR_DONNEES;
truk += UtilNombre.formaterEnEntier(unite.getNombreSp())+aDonnee.SEPARATEUR_DONNEES;
truk += getPrecisionAbr(unite.getPrecisionSp());
truk += (i == (nbreUnite - 1)) ? "" : aDonnee.SEPARATEUR_VALEURS;
}
return truk;
}
private void peuplerGrilleUniteBase(String valeurTruk) {
if (!UtilString.isEmpty(valeurTruk)) {
HashMap<String,UniteBase> unitesEnregistrees = parserValeurUniteBase(valeurTruk);
ArrayList<UniteBase> listeUniteMaj = new ArrayList<UniteBase>();
int nbreUnite = uniteBaseGrille.getStore().getCount();
for (int i = 0; i < nbreUnite; i++) {
UniteBase uniteDansGrille = uniteBaseGrille.getStore().getAt(i);
UniteBase uniteEnregistree = unitesEnregistrees.get(uniteDansGrille.getId());
if (uniteEnregistree != null) {
uniteEnregistree.setType(uniteDansGrille.getType());
listeUniteMaj.add(uniteEnregistree);
} else {
listeUniteMaj.add(uniteDansGrille);
}
}
Iterator<String> it = unitesEnregistrees.keySet().iterator();
while (it.hasNext()) {
String cle = it.next();
if (cle.matches(aDonnee.TYPE_AUTRE+aDonnee.SEPARATEUR_TYPE_VALEUR)) {
UniteBase uniteAutreEnregistree = unitesEnregistrees.get(cle);
listeUniteMaj.add(uniteAutreEnregistree);
}
}
uniteBaseGrille.getStore().removeAll();
uniteBaseGrille.getStore().add(listeUniteMaj);
layout();
}
}
public static HashMap<String,UniteBase> parserValeurUniteBase(String valeurTruk) {
HashMap<String,UniteBase> unitesEnregistrees = new HashMap<String,UniteBase>();
if (!UtilString.isEmpty(valeurTruk)) {
String[] unites = valeurTruk.split(Pattern.quote(aDonnee.SEPARATEUR_VALEURS));
for (int i = 0; i < unites.length; i++) {
String[] uniteTypeIdDonnees = unites[i].split(Pattern.quote(aDonnee.SEPARATEUR_TYPE_VALEUR));
String uniteChaineDonnees = uniteTypeIdDonnees[1];
String[] uniteDonnees = uniteChaineDonnees.split(Pattern.quote(aDonnee.SEPARATEUR_DONNEES));
UniteBase uniteBase = new UniteBase();
if (uniteDonnees.length > 0) {
uniteBase.setNombre(UtilString.formaterEnEntier(uniteDonnees[0]));
}
if (uniteDonnees.length > 1) {
uniteBase.setPrecision(getPrecisionNom(uniteDonnees[1]));
}
if (uniteDonnees.length > 2) {
uniteBase.setFormat(uniteDonnees[2]);
}
if (uniteDonnees.length > 3) {
uniteBase.setNombrePart(UtilString.formaterEnEntier(uniteDonnees[3]));
}
if (uniteDonnees.length > 4) {
uniteBase.setPrecisionPart(getPrecisionNom(uniteDonnees[4]));
}
if (uniteDonnees.length > 5) {
uniteBase.setNombreSp(UtilString.formaterEnEntier(uniteDonnees[5]));
}
if (uniteDonnees.length > 6) {
uniteBase.setPrecisionSp(getPrecisionNom(uniteDonnees[6]));
}
if (uniteTypeIdDonnees[0].matches("[0-9]+")) {
uniteBase.setId(uniteTypeIdDonnees[0]);
uniteBase.setTypeAutre(false);
unitesEnregistrees.put(uniteTypeIdDonnees[0], uniteBase);
} else {
uniteBase.setType(uniteTypeIdDonnees[0]);
uniteBase.setTypeAutre(true);
String id = aDonnee.TYPE_AUTRE+aDonnee.SEPARATEUR_TYPE_VALEUR+uniteTypeIdDonnees[0]+"-"+i;
unitesEnregistrees.put(id, uniteBase);
}
}
}
return unitesEnregistrees;
}
private ToolBar creerBarreOutilsGrilleUniteBase() {
ToolBar barreOutils = new ToolBar();
Button ajouterBouton = creerBoutonAjouterUniteBase();
barreOutils.add(ajouterBouton);
barreOutils.add(new SeparatorToolItem());
Button supprimerBouton = creerBoutonSupprimerUniteBase();
barreOutils.add(supprimerBouton);
return barreOutils;
}
private Button creerBoutonAjouterUniteBase() {
Button bouton = new Button(i18nC.ajouter());
bouton.setIcon(Images.ICONES.ajouter());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
final MessageBox box = MessageBox.prompt(i18nC.collectionUniteType(), i18nC.collectionUniteBaseSaisirType());
box.addCallback(new Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent be) {
if (!UtilString.isEmpty(be.getValue()) && !be.getValue().matches("[0-9]+")) {
final UniteBase unite = new UniteBase();
unite.setType(be.getValue());
unite.setTypeAutre(true);
uniteBaseGrille.getStore().add(unite);
} else {
Info.display("Information", "Vous ne pouvez pas saisir de valeur vide ou numérique");
}
}
});
}
});
return bouton;
}
private Button creerBoutonSupprimerUniteBase() {
Button bouton = new Button(i18nC.supprimer());
bouton.setIcon(Images.ICONES.supprimer());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
UniteBase uniteBaseSelectionnee = uniteBaseGrille.getSelectionModel().getSelectedItem();
if (uniteBaseSelectionnee == null) {
Info.display(i18nC.informationTitreGenerique(), Mediateur.i18nM.veuillezSelectionner(i18nC.selectionnerUniteBase()));
} else if (uniteBaseSelectionnee.getTypeAutre() == false) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerUniteBaseAjoute());
} else {
uniteBaseGrille.getStore().remove(uniteBaseSelectionnee);
}
}
});
return bouton;
}
private void creerFieldsetConservation() {
FieldSet conservationFieldSet = new FieldSet();
conservationFieldSet.setHeading(i18nC.collectionTitreConservation());
conservationFieldSet.setCollapsible(true);
conservationFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
typePapierConservationChp = new ChampCaseACocher(i18nC.typePapierConservation(), "typePapier", true);
conservationFieldSet.add(typePapierConservationChp);
methodeConservationChp = new ChampCaseACocher(i18nC.methodeConservation(), "methodeRangement", true);
conservationFieldSet.add(methodeConservationChp);
this.add(conservationFieldSet);
}
private void creerFieldsetEtiquette() {
FieldSet etiquetteFieldSet = new FieldSet();
etiquetteFieldSet.setHeading(i18nC.collectionTitreEtiquette());
etiquetteFieldSet.setCollapsible(true);
etiquetteFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
Text fixationPoucentLabel = new Text(i18nC.fixationPourcent());
etiquetteFieldSet.add(fixationPoucentLabel);
specimenFixationPourcentChp = new ChampSliderPourcentage(i18nC.specimenFixationPourcent());
etiquetteFieldSet.add(specimenFixationPourcentChp, new FormData(200, 0));
etiquetteFixationPourcentChp = new ChampSliderPourcentage(i18nC.etiquetteFixationPourcent());
etiquetteFieldSet.add(etiquetteFixationPourcentChp, new FormData(200, 0));
specimentMethodeFixationChp = new ChampCaseACocher(i18nC.specimenMethodeFixation(), "methodeFixation", true);
etiquetteFieldSet.add(specimentMethodeFixationChp);
etiquetteMethodeFixationSurSupportChp = new ChampCaseACocher(i18nC.etiquetteMethodeFixationSurSupport(), "methodeFixation", true);
etiquetteFieldSet.add(etiquetteMethodeFixationSurSupportChp);
etiquetteMethodeFixationSurSpecimenChp = new ChampCaseACocher(i18nC.etiquetteMethodeFixationSurSpecimen(), "methodeFixationSurSpecimen", true);
etiquetteFieldSet.add(etiquetteMethodeFixationSurSpecimenChp);
typeEcritureChp = new ChampCaseACocher(i18nC.typeEcriture(), "typeEcriture", false);
etiquetteFieldSet.add(typeEcritureChp);
this.add(etiquetteFieldSet);
}
private void creerFieldsetTraitement() {
FieldSet traitementFieldSet = new FieldSet();
traitementFieldSet.setHeading(i18nC.collectionTitreTraitement());
traitementFieldSet.setCollapsible(true);
traitementFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
traitementCombo = new ChampComboBoxListeValeurs(i18nC.collectionTraitement(), "onpi");
traitementCombo.setTrie("id_valeur");
traitementFieldSet.add(traitementCombo, new FormData(300, 0));
poisonTraitementChp = new ChampCaseACocher(i18nC.collectionTraitementPoison(), "poisonTraitement", true);
traitementFieldSet.add(poisonTraitementChp);
insecteTraitementChp = new ChampCaseACocher(i18nC.collectionTraitementInsecte(), "insecteTraitement", true);
traitementFieldSet.add(insecteTraitementChp);
 
this.add(traitementFieldSet);
}
private void creerFieldsetEtat() {
FieldSet etatFieldSet = new FieldSet();
etatFieldSet.setHeading(i18nC.collectionTitreEtatEtDegradation());
etatFieldSet.setCollapsible(true);
etatFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
etatGeneralCombo = new ChampComboBoxListeValeurs(i18nC.collectionEtatGeneral(), "etat");
etatGeneralCombo.setToolTip(i18nC.collectionEtatGeneralInfo());
etatGeneralCombo.setTrie("id_valeur");
etatFieldSet.add(etatGeneralCombo, new FormData(300, 0));
specimenDegradationChp = new ChampMultiValeursMultiTypes(i18nC.degradationSpecimen(), 150, true);
specimenDegradationChp.initialiserType("specimenDegradation");
specimenDegradationChp.initialiserCombobox("niveauImportance");
etatFieldSet.add(specimenDegradationChp);
presentationDegradationChp = new ChampMultiValeursMultiTypes(i18nC.degradationPresentation(), 150, 200, true);
presentationDegradationChp.initialiserType("supportDegradation");
presentationDegradationChp.initialiserCombobox("niveauImportance");
etatFieldSet.add(presentationDegradationChp);
determinationCombo = new ChampComboBoxListeValeurs(i18nC.collectionDetermination(), "niveauDetermination");
determinationCombo.setTrie("id_valeur");
etatFieldSet.add(determinationCombo, new FormData(450, 0));
this.add(etatFieldSet);
}
public void peupler() {
initialiserCollection();
if (collectionBotanique != null) {
typesCollectionBotaCombo.peupler(collectionBotanique.getType());
if (!UtilString.isEmpty(collectionBotanique.getNbreEchantillon())) {
nbreEchantillonChp.setValue(Integer.parseInt(collectionBotanique.getNbreEchantillon()));
}
peuplerGrilleUniteRangement(collectionBotanique.getUniteRangement());
etatUniteRangementCombo.peupler(collectionBotanique.getUniteRangementEtat());
peuplerGrilleUniteBase(collectionBotanique.getUniteBase());
typePapierConservationChp.peupler(collectionBotanique.getConservationPapierType());
methodeConservationChp.peupler(collectionBotanique.getConservationMethode());
specimenFixationPourcentChp.peupler(collectionBotanique.getSpecimenFixationPourcent());
etiquetteFixationPourcentChp.peupler(collectionBotanique.getEtiquetteFixationPourcent());
specimentMethodeFixationChp.peupler(collectionBotanique.getSpecimenFixationMethode());
etiquetteMethodeFixationSurSupportChp.peupler(collectionBotanique.getEtiquetteFixationSupport());
etiquetteMethodeFixationSurSpecimenChp.peupler(collectionBotanique.getEtiquetteFixationSpecimen());
typeEcritureChp.peupler(collectionBotanique.getEtiquetteEcriture());
traitementCombo.peupler(collectionBotanique.getTraitement());
poisonTraitementChp.peupler(collectionBotanique.getTraitementPoison());
insecteTraitementChp.peupler(collectionBotanique.getTraitementInsecte());
etatGeneralCombo.peupler(collectionBotanique.getEtatGeneral());
specimenDegradationChp.peupler(collectionBotanique.getDegradationSpecimen());
presentationDegradationChp.peupler(collectionBotanique.getDegradationPresentation());
determinationCombo.peupler(collectionBotanique.getDetermination());
}
}
public void collecter() {
initialiserCollection();
if (etreAccede()) {
collectionBotaniqueCollectee.setType(typesCollectionBotaCombo.getValeur());
if (nbreEchantillonChp.getValue() != null) {
collectionBotaniqueCollectee.setNbreEchantillon(Integer.toString(nbreEchantillonChp.getValue().intValue()));
}
collectionBotaniqueCollectee.setUniteRangement(collecterGrilleUniteRangement());
collectionBotaniqueCollectee.setUniteRangementEtat(etatUniteRangementCombo.getValeur());
collectionBotaniqueCollectee.setUniteBase(collecterGrilleUniteBase());
collectionBotaniqueCollectee.setConservationPapierType(typePapierConservationChp.getValeur());
collectionBotaniqueCollectee.setConservationMethode(methodeConservationChp.getValeur());
collectionBotaniqueCollectee.setSpecimenFixationPourcent(specimenFixationPourcentChp.getValeur());
collectionBotaniqueCollectee.setEtiquetteFixationPourcent(etiquetteFixationPourcentChp.getValeur());
collectionBotaniqueCollectee.setSpecimenFixationMethode(specimentMethodeFixationChp.getValeur());
collectionBotaniqueCollectee.setEtiquetteFixationSupport(etiquetteMethodeFixationSurSupportChp.getValeur());
collectionBotaniqueCollectee.setEtiquetteFixationSpecimen(etiquetteMethodeFixationSurSpecimenChp.getValeur());
collectionBotaniqueCollectee.setEtiquetteEcriture(typeEcritureChp.getValeur());
collectionBotaniqueCollectee.setTraitement(traitementCombo.getValeur());
collectionBotaniqueCollectee.setTraitementPoison(poisonTraitementChp.getValeur());
collectionBotaniqueCollectee.setTraitementInsecte(insecteTraitementChp.getValeur());
collectionBotaniqueCollectee.setEtatGeneral(etatGeneralCombo.getValeur());
collectionBotaniqueCollectee.setDegradationSpecimen(specimenDegradationChp.getValeurs());
collectionBotaniqueCollectee.setDegradationPresentation(presentationDegradationChp.getValeurs());
collectionBotaniqueCollectee.setDetermination(determinationCombo.getValeur());
}
}
 
private void initialiserCollection() {
collection = ((CollectionForm) formulaire).collection;
if (collection != null) {
collectionBotanique = collection.getBotanique();
}
collectionCollectee = ((CollectionForm) formulaire).collectionCollectee;
if (collectionCollectee != null) {
collectionBotaniqueCollectee = collectionCollectee.getBotanique();
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
rafraichirValeurListe(listeValeurs);
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
}
private void rafraichirValeurListe(ValeurListe listeValeurs) {
if (listeValeurs.getId().equals(config.getListeId("typeUniteRangement"))) {
Iterator<String> it = listeValeurs.keySet().iterator();
while (it.hasNext()) {
Valeur valeur = listeValeurs.get(it.next());
UniteRangement unite = new UniteRangement();
unite.setId(valeur.getId());
unite.setType(valeur.getNom());
unite.setTypeAutre(false);
uniteRangementGrille.getStore().add(unite);
}
} else if (listeValeurs.getId().equals(config.getListeId("typeUniteBase"))) {
Iterator<String> it = listeValeurs.keySet().iterator();
while (it.hasNext()) {
Valeur valeur = listeValeurs.get(it.next());
UniteBase unite = new UniteBase();
unite.setId(valeur.getId());
unite.setType(valeur.getNom());
unite.setTypeAutre(false);
uniteBaseGrille.getStore().add(unite);
}
} else {
Debug.log("Gestion de la liste "+listeValeurs.getId()+" non implémenté!");
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionFormInventaire.java
New file
0,0 → 1,118
package org.tela_botanica.client.vues.collection;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.composants.ChampCaseACocher;
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
import org.tela_botanica.client.composants.ChampSliderPourcentage;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionBotanique;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.FormulaireOnglet;
 
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.layout.FormData;
 
public class CollectionFormInventaire extends FormulaireOnglet {
 
public static final String ID = "inventaire";
private Collection collection = null;
private CollectionBotanique collectionBotanique = null;
private Collection collectionCollectee = null;
private CollectionBotanique collectionBotaniqueCollectee = null;
private ChampComboBoxListeValeurs existenceInventaireCombo = null;
private ChampComboBoxListeValeurs auteurInventaireCombo = null;
private ChampComboBoxListeValeurs formeInventaireCombo = null;
private TextArea infoInventaireChp = null;
private ChampCaseACocher digitalInventaireChp = null;
private ChampSliderPourcentage pourcentDigitalInventaireChp = null;
private ChampComboBoxListeValeurs etatInventaireCombo = null;
private TextArea typeDonneeInventaireChp = null;
 
public CollectionFormInventaire(Formulaire formulaireCourrant) {
initialiserOnglet(formulaireCourrant);
setId(ID);
setText(Mediateur.i18nC.collectionInventaire());
int tabIndex = formulaireCourrant.tabIndex;
existenceInventaireCombo = new ChampComboBoxListeValeurs(i18nC.existenceInventaireCollection(), "onpi", tabIndex++);
existenceInventaireCombo.setTrie("id_valeur");
add(existenceInventaireCombo, new FormData(300, 0));
auteurInventaireCombo = new ChampComboBoxListeValeurs(i18nC.auteurInventaireCollection(), "onpi", tabIndex++);
auteurInventaireCombo.setTrie("id_valeur");
auteurInventaireCombo.setTabIndex(tabIndex++);
add(auteurInventaireCombo, new FormData(300, 0));
formeInventaireCombo = new ChampComboBoxListeValeurs(i18nC.formeInventaireCollection(), "inventaireForme", tabIndex++);
formeInventaireCombo.setTabIndex(tabIndex++);
add(formeInventaireCombo, new FormData(300, 0));
infoInventaireChp = new TextArea();
infoInventaireChp.setTabIndex(tabIndex++);
infoInventaireChp.setFieldLabel(i18nC.infoInventaireCollection());
add(infoInventaireChp, new FormData(550, 0));
digitalInventaireChp = new ChampCaseACocher(i18nC.digitalInventaireCollection(), "inventaireLogiciel", true);
add(digitalInventaireChp);
pourcentDigitalInventaireChp = new ChampSliderPourcentage(i18nC.pourcentDigitalInventaireCollection());
pourcentDigitalInventaireChp.setTabIndex(tabIndex++);
add(pourcentDigitalInventaireChp, new FormData(200, 0));
etatInventaireCombo = new ChampComboBoxListeValeurs(i18nC.etatInventaireCollection(), "inventaireEtat", tabIndex++);
etatInventaireCombo.setTabIndex(tabIndex++);
add(etatInventaireCombo, new FormData(300, 0));
typeDonneeInventaireChp = new TextArea();
typeDonneeInventaireChp.setTabIndex(tabIndex++);
typeDonneeInventaireChp.setFieldLabel(i18nC.typeDonneeInventaireCollection());
add(typeDonneeInventaireChp, new FormData(550, 0));
}
public void peupler() {
initialiserCollection();
if (collectionBotanique != null) {
existenceInventaireCombo.peupler(collectionBotanique.getInventaire());
auteurInventaireCombo.peupler(collectionBotanique.getInventaireAuteur());
formeInventaireCombo.peupler(collectionBotanique.getInventaireForme());
infoInventaireChp.setValue(collectionBotanique.getInventaireInfo());
digitalInventaireChp.peupler(collectionBotanique.getInventaireDigital());
pourcentDigitalInventaireChp.peupler(collectionBotanique.getInventaireDigitalPourcent());
etatInventaireCombo.peupler(collectionBotanique.getInventaireEtat());
typeDonneeInventaireChp.setValue(collectionBotanique.getInventaireDonneesTypes());
}
}
public void collecter() {
initialiserCollection();
if (etreAccede()) {
collectionBotaniqueCollectee.setInventaire(existenceInventaireCombo.getValeur());
collectionBotaniqueCollectee.setInventaireAuteur(auteurInventaireCombo.getValeur());
collectionBotaniqueCollectee.setInventaireForme(formeInventaireCombo.getValeur());
collectionBotaniqueCollectee.setInventaireInfo(infoInventaireChp.getValue());
collectionBotaniqueCollectee.setInventaireDigital(digitalInventaireChp.getValeur());
collectionBotaniqueCollectee.setInventaireDigitalPourcent(pourcentDigitalInventaireChp.getValeur());
collectionBotaniqueCollectee.setInventaireEtat(etatInventaireCombo.getValeur());
collectionBotaniqueCollectee.setInventaireDonneesTypes(typeDonneeInventaireChp.getValue());
}
}
private void initialiserCollection() {
collection = ((CollectionForm) formulaire).collection;
if (collection != null) {
collectionBotanique = collection.getBotanique();
}
collectionCollectee = ((CollectionForm) formulaire).collectionCollectee;
if (collectionCollectee != null) {
collectionBotaniqueCollectee = collectionCollectee.getBotanique();
}
}
public void rafraichir(Object nouvellesDonnees) {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionFormPersonne.java
New file
0,0 → 1,671
package org.tela_botanica.client.vues.collection;
 
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.InterneValeur;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionAPersonne;
import org.tela_botanica.client.modeles.collection.CollectionAPersonneListe;
import org.tela_botanica.client.modeles.collection.UniteBase;
import org.tela_botanica.client.modeles.collection.UniteRangement;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.personne.PersonneListe;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.structure.StructureAPersonne;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.FenetreForm;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.FormulaireBarreValidation;
import org.tela_botanica.client.vues.FormulaireOnglet;
import org.tela_botanica.client.vues.personne.PersonneForm;
 
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.EventType;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.KeyListener;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.store.Record;
import com.extjs.gxt.ui.client.store.Store;
import com.extjs.gxt.ui.client.store.StoreEvent;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnData;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.grid.HeaderGroupConfig;
import com.extjs.gxt.ui.client.widget.grid.RowNumberer;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.KeyCodes;
 
public class CollectionFormPersonne extends FormulaireOnglet implements Rafraichissable {
public static final String ID = "personne";
private Collection collection = null;
private static int idGenere = 1;
private ContentPanel panneauPrincipal = null;
private ToolBar barreOutils = null;
private EditorGrid<CollectionAPersonne> grille;
private ComboBox<Valeur> typeRelationCombo = null;
private CollectionAPersonneListe personnesAjoutees = null;
private CollectionAPersonneListe personnesSupprimees = null;
private ComboBox<Personne> personnesSaisisComboBox = null;
private Button personnesBoutonSupprimer = null;
private Button personnesBoutonModifier = null;
private ListStore<Valeur> listeIon = null;
private FenetreForm fenetreFormulaire = null;
public CollectionFormPersonne(Formulaire formulaireCourrant) {
initialiserOnglet(formulaireCourrant);
setId(ID);
setText(Mediateur.i18nC.collectionPersonne());
setStyleAttribute("padding", "0");
panneauPrincipal = creerPanneauContenantGrille();
barreOutils = creerBarreOutilsGrille();
panneauPrincipal.setTopComponent(barreOutils);
grille = creerGrille();
panneauPrincipal.add(grille);
mediateur.obtenirListeValeurEtRafraichir(this, "ion");
mediateur.obtenirListeValeurEtRafraichir(this, "relationPersonneCollection");
add(panneauPrincipal);
initialiser();
}
private void initialiser() {
// Remise à zéro des modification dans la liste des auteurs
idGenere = 1;
personnesAjoutees = new CollectionAPersonneListe();
personnesSupprimees = new CollectionAPersonneListe();
// Actualisation de l'état des boutons de la barre d'outils
actualiserEtatBoutonsBarreOutils();
collection = ((CollectionForm) formulaire).collection;
}
private ContentPanel creerPanneauContenantGrille() {
ContentPanel panneau = new ContentPanel();
panneau.setHeading(i18nC.collectionPersonneTitre());
panneau.setIcon(Images.ICONES.table());
panneau.setLayout(new FitLayout());
panneau.setFrame(true);
return panneau;
}
 
private ToolBar creerBarreOutilsGrille() {
ToolBar barreOutils = new ToolBar();
Button ajouterPersonneBouton = creerBoutonAjouter();
barreOutils.add(ajouterPersonneBouton);
barreOutils.add(new Text(" ou "));
personnesSaisisComboBox = creerComboBoxPersonnesSaisies();
barreOutils.add(personnesSaisisComboBox);
barreOutils.add(new SeparatorToolItem());
personnesBoutonModifier = creerBoutonModifier();
barreOutils.add(personnesBoutonModifier);
barreOutils.add(new SeparatorToolItem());
personnesBoutonSupprimer = creerBoutonSupprimer();
barreOutils.add(personnesBoutonSupprimer);
barreOutils.add(new SeparatorToolItem());
Button rafraichirPersonneBouton = creerBoutonRafraichir();
barreOutils.add(rafraichirPersonneBouton);
return barreOutils;
}
 
private Button creerBoutonAjouter() {
Button bouton = new Button(i18nC.ajouter());
bouton.setIcon(Images.ICONES.vcardAjouter());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
 
@Override
public void componentSelected(ButtonEvent ce) {
fenetreFormulaire = creerFenetreModaleAvecFormulairePersonne(Formulaire.MODE_AJOUTER);
fenetreFormulaire.show();
}
});
return bouton;
}
private Button creerBoutonModifier() {
Button bouton = new Button(i18nC.modifier());
bouton.setIcon(Images.ICONES.vcardModifier());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
CollectionAPersonne personneSaisiSelectionne = grille.getSelectionModel().getSelectedItem();
if (personneSaisiSelectionne == null) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerPersonne());
} else {
fenetreFormulaire = creerFenetreModaleAvecFormulairePersonne(Formulaire.MODE_MODIFIER);
fenetreFormulaire.show();
}
}
});
return bouton;
}
private FenetreForm creerFenetreModaleAvecFormulairePersonne(String mode) {
String personneId = null;
if (mode.equals(Formulaire.MODE_MODIFIER)) {
CollectionAPersonne personneSaisieSelectionnee = grille.getSelectionModel().getSelectedItem();
personneId = personneSaisieSelectionnee.getIdPersonne();
}
final FenetreForm fenetre = new FenetreForm("");
final PersonneForm formulaire = creerFormulairePersonne(fenetre, personneId);
fenetre.add(formulaire);
return fenetre;
}
private PersonneForm creerFormulairePersonne(final FenetreForm fenetre, String personneId) {
PersonneForm formulaire = new PersonneForm(mediateur, personneId, this);
FormPanel panneauFormulaire = formulaire.getFormulaire();
fenetre.setHeading(panneauFormulaire.getHeading());
panneauFormulaire.setHeaderVisible(false);
panneauFormulaire.setTopComponent(null);
 
// FIXME : avec GXT-2.1.0 la redéfinition du bottom component ne marche plus. Nous le cachons et en créeons un dans la fenêtre.
panneauFormulaire.getBottomComponent().hide();
SelectionListener<ButtonEvent> ecouteur = creerEcouteurValidationFormulairePersonne(fenetre, formulaire);
final ButtonBar barreValidation = new FormulaireBarreValidation(ecouteur);
fenetre.setBottomComponent(barreValidation);
return formulaire;
}
private SelectionListener<ButtonEvent> creerEcouteurValidationFormulairePersonne(final FenetreForm fenetre, final PersonneForm formulaire) {
SelectionListener<ButtonEvent> ecouteur = new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
String code = ((Button) ce.getComponent()).getData("code");
if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
if (formulaire.soumettreFormulaire()) {
fenetre.hide();
}
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
formulaire.soumettreFormulaire();
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
fenetre.hide();
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
fenetreFormulaire.hide();
fenetreFormulaire = creerFenetreModaleAvecFormulairePersonne(formulaire.mode);
fenetreFormulaire.show();
}
}
};
return ecouteur;
}
private Button creerBoutonSupprimer() {
Button bouton = new Button(i18nC.supprimer());
bouton.setIcon(Images.ICONES.vcardSupprimer());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
CollectionAPersonne personneSaisiSelectionnee = grille.getSelectionModel().getSelectedItem();
if (personneSaisiSelectionnee == null) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerPersonne());
} else {
supprimerDansGrille(personneSaisiSelectionnee);
}
}
});
return bouton;
}
private Button creerBoutonRafraichir() {
Button bouton = new Button(i18nC.rafraichir());
bouton.setIcon(Images.ICONES.rafraichir());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
actualiserGrille();
}
});
return bouton;
}
private ComboBox<Personne> creerComboBoxPersonnesSaisies() {
ListStore<Personne> personnesSaisiesStore = new ListStore<Personne>();
personnesSaisiesStore.add(new ArrayList<Personne>());
ComboBox<Personne> comboBox = new ComboBox<Personne>();
comboBox.setWidth(200);
comboBox.setEmptyText(i18nC.chercherPersonneSaisi());
comboBox.setTriggerAction(TriggerAction.ALL);
comboBox.setEditable(true);
comboBox.setDisplayField("fmt_nom_complet");
comboBox.setStore(personnesSaisiesStore);
comboBox.addKeyListener(new KeyListener() {
public void componentKeyUp(ComponentEvent ce) {
if (personnesSaisisComboBox.getRawValue() != null && personnesSaisisComboBox.getRawValue().length() > 0) {
if (!ce.isNavKeyPress()) {
obtenirPersonnesSaisis(personnesSaisisComboBox.getRawValue());
}
}
}
});
comboBox.addListener(Events.Select, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
if (personnesSaisisComboBox.getValue() instanceof Personne) {
Personne personneSaisiSelectionnee = personnesSaisisComboBox.getValue();
ajouterDansGrille(personneSaisiSelectionnee);
personnesSaisisComboBox.setValue(null);
}
}
});
return comboBox;
}
private void ajouterDansGrille(Personne personne) {
ajouterDansGrille(personne, null, 0);
}
private void ajouterDansGrille(Personne personne, String relation, int index) {
if (personne != null) {
CollectionAPersonne relationCollectionPersonne = new CollectionAPersonne();
relationCollectionPersonne.setPersonne(personne);
relationCollectionPersonne.setIdPersonne(personne.getId());
if (relation != null) {
relationCollectionPersonne.set("_role_", relation);
}
// Gestion de l'id de la collection
if (mode.equals(Formulaire.MODE_MODIFIER)) {
relationCollectionPersonne.setIdCollection(collection.getId());
}
relationCollectionPersonne.set("_etat_", aDonnee.ETAT_AJOUTE);
corrigerChampsGrille(relationCollectionPersonne);
// Ajout à la grille
grille.stopEditing();
grille.getStore().insert(relationCollectionPersonne, index);
grille.startEditing(index, 0);
grille.getSelectionModel().select(index, false);
}
}
private void supprimerDansGrille(CollectionAPersonne relationCollectionPersonne) {
if (relationCollectionPersonne != null) {
// Ajout de la personne supprimée à la liste
if ((relationCollectionPersonne.get("_etat_").equals("") || !relationCollectionPersonne.get("_etat_").equals(aDonnee.ETAT_AJOUTE))
&& relationCollectionPersonne.getId() != null
&& !relationCollectionPersonne.getId().equals("")) {
Debug.log("Nbre personnes supprimées avant:"+personnesSupprimees.size());
personnesSupprimees.put("id"+idGenere++, relationCollectionPersonne);
GWT.log("Personne supprimées : "+relationCollectionPersonne.getPersonne().getId()+" "+relationCollectionPersonne.getPersonne().getPrenom()+" "+relationCollectionPersonne.getPersonne().getNom(), null);
Debug.log("Nbre personnes supprimées :"+personnesSupprimees.size());
}
// Suppression de l'enregistrement de la grille
grille.getStore().remove(relationCollectionPersonne);
}
}
 
private EditorGrid<CollectionAPersonne> creerGrille() {
ListStore<CollectionAPersonne> storeGrille = new ListStore<CollectionAPersonne>();
storeGrille.addListener(Store.Add, new Listener<StoreEvent<CollectionAPersonne>>() {
public void handleEvent(StoreEvent<CollectionAPersonne> ce) {
actualiserEtatBoutonsBarreOutils();
}
});
storeGrille.addListener(Store.Remove, new Listener<StoreEvent<CollectionAPersonne>>() {
public void handleEvent(StoreEvent<CollectionAPersonne> ce) {
actualiserEtatBoutonsBarreOutils();
}
});
storeGrille.addListener(Store.Update, new Listener<StoreEvent<CollectionAPersonne>>() {
public void handleEvent(StoreEvent<CollectionAPersonne> ce) {
if (ce.getRecord().isModified("_role_") && !ce.getModel().get("_etat_").equals(aDonnee.ETAT_AJOUTE)) {
Debug.log("id role modifié");
ce.getModel().set("_etat_", aDonnee.ETAT_MODIFIE);
}
}
});
RowNumberer pluginLigneNumero = new RowNumberer();
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
colonnes.add(pluginLigneNumero);
colonnes.add(creerColonneRole());
colonnes.add(new ColumnConfig("fmt_nom_complet", i18nC.personneNomComplet(), 150));
colonnes.add(new ColumnConfig("nom", i18nC.personneNom(), 75));
colonnes.add(new ColumnConfig("prenom", i18nC.personnePrenom(), 75));
colonnes.add(new ColumnConfig("naissance_date", i18nC.date(), 75));
colonnes.add(new ColumnConfig("naissance_lieu", i18nC.lieu(), 100));
colonnes.add(creerColonneDeces());
colonnes.add(new ColumnConfig("deces_date", i18nC.date(), 75));
colonnes.add(new ColumnConfig("deces_lieu", i18nC.lieu(), 100));
GridSelectionModel<CollectionAPersonne> modeleDeSelection = new GridSelectionModel<CollectionAPersonne>();
ColumnModel modeleDeColonnes = new ColumnModel(colonnes);
modeleDeColonnes.addHeaderGroup(0, 1, new HeaderGroupConfig(i18nC.personneIdentite(), 1, 4));
modeleDeColonnes.addHeaderGroup(0, 5, new HeaderGroupConfig(i18nC.personneNaissance(), 1, 2));
modeleDeColonnes.addHeaderGroup(0, 7, new HeaderGroupConfig(i18nC.personneDeces(), 1, 3));
EditorGrid<CollectionAPersonne> grillePersonne = new EditorGrid<CollectionAPersonne>(storeGrille, modeleDeColonnes);
grillePersonne.setHeight("100%");
grillePersonne.setBorders(true);
grillePersonne.setSelectionModel(modeleDeSelection);
grillePersonne.addPlugin(pluginLigneNumero);
grillePersonne.getView().setForceFit(true);
grillePersonne.setAutoExpandColumn("fmt_nom_complet");
grillePersonne.setStripeRows(true);
grillePersonne.setTrackMouseOver(true);
return grillePersonne;
}
private ColumnConfig creerColonneRole() {
typeRelationCombo = new ComboBox<Valeur>();
typeRelationCombo.setForceSelection(true);
typeRelationCombo.setTriggerAction(TriggerAction.ALL);
typeRelationCombo.setDisplayField("nom");
typeRelationCombo.setStore(new ListStore<Valeur>());
typeRelationCombo.setEditable(false);
typeRelationCombo.addStyleName(ComposantClass.OBLIGATOIRE);
typeRelationCombo.addListener(Events.Select, Formulaire.creerEcouteurChampObligatoire());
CellEditor editeurRelation = new CellEditor(typeRelationCombo) {
@Override
public Object preProcessValue(Object valeur) {
Valeur retour = null;
if (valeur != null ) {
Debug.log(valeur.toString());
if (typeRelationCombo.getStore().findModel("nom", valeur.toString()) != null) {
retour = typeRelationCombo.getStore().findModel("nom", valeur.toString());
} else if (typeRelationCombo.getStore().findModel("abr", valeur.toString()) != null) {
retour = typeRelationCombo.getStore().findModel("abr", valeur.toString());
} else if (typeRelationCombo.getStore().findModel("id_valeur", valeur.toString()) != null) {
retour = typeRelationCombo.getStore().findModel("id_valeur", valeur.toString());
}
}
return retour;
}
 
@Override
public Object postProcessValue(Object valeur) {
String retour = null;
if (valeur != null ) {
if (valeur instanceof Valeur) {
Valeur valeurOntologie = (Valeur) valeur;
retour = valeurOntologie.getNom();
}
}
return retour;
}
};
GridCellRenderer<CollectionAPersonne> relationRendu = new GridCellRenderer<CollectionAPersonne>() {
@Override
public String render(CollectionAPersonne modele, String property, ColumnData config, int rowIndex, int colIndex, ListStore<CollectionAPersonne> store, Grid<CollectionAPersonne> grille) {
// Gestion du texte afficher dans la cellule
String role = modele.get("_role_");
if (typeRelationCombo.getStore() != null && role.matches("[0-9]+")) {
role = typeRelationCombo.getStore().findModel("id_valeur", role).getNom();
}
modele.set("_role_", role);
return role;
}
};
ColumnConfig typeRelationColonne = new ColumnConfig("_role_", i18nC.typeRelationPersonneCollection(), 75);
typeRelationColonne.setEditor(editeurRelation);
typeRelationColonne.setRenderer(relationRendu);
return typeRelationColonne;
}
public ColumnConfig creerColonneDeces() {
GridCellRenderer<CollectionAPersonne> decesRendu = new GridCellRenderer<CollectionAPersonne>() {
@Override
public String render(CollectionAPersonne modele, String property, ColumnData config, int rowIndex, int colIndex, ListStore<CollectionAPersonne> store, Grid<CollectionAPersonne> grid) {
String deces = modele.getPersonne().getDeces();
if (listeIon != null && modele.getPersonne().getDeces().matches("[0-9]+")) {
deces = listeIon.findModel("id_valeur", modele.getPersonne().getDeces()).getNom();
}
modele.set("_deces_", deces);
return deces;
}
};
ColumnConfig decesColonne = new ColumnConfig("_deces_", Mediateur.i18nC.personneDecedeeInterogation(), 50);
decesColonne.setRenderer(decesRendu);
return decesColonne;
}
public void actualiserEtatBoutonsBarreOutils() {
// Activation des boutons si la grille contient un élément
if (grille.getStore().getCount() > 0) {
personnesBoutonSupprimer.enable();
personnesBoutonModifier.enable();
}
// Désactivation des boutons si la grille ne contient plus d'élément
if (grille.getStore().getCount() == 0) {
personnesBoutonSupprimer.disable();
personnesBoutonModifier.disable();
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
rafraichirValeurListe(listeValeurs);
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
rafraichirInformation(info);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
private void rafraichirValeurListe(ValeurListe listeValeurs) {
if (listeValeurs.getId().equals(config.getListeId("ion"))) {
listeIon = new ListStore<Valeur>();
listeIon.add(listeValeurs.toList());
} else if (listeValeurs.getId().equals(config.getListeId("relationPersonneCollection"))) {
Formulaire.rafraichirComboBox(listeValeurs, typeRelationCombo);
} else {
GWT.log("Gestion de la liste "+listeValeurs.getId()+" non implémenté!", null);
}
}
public void rafraichirInformation(Information info) {
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
}
String type = info.getType();
if (type.equals("liste_personne")) {
if (info.getDonnee(0) != null) {
PersonneListe personnes = (PersonneListe) info.getDonnee(0);
List<Personne> liste = personnes.toList();
personnesSaisisComboBox.getStore().removeAll();
personnesSaisisComboBox.getStore().add(liste);
personnesSaisisComboBox.expand();
}
} else if (info.getType().equals("liste_collection_a_personne")) {
if (info.getDonnee(0) != null) {
initialiser();
collection.setPersonnesLiees((CollectionAPersonneListe) info.getDonnee(0));
peupler();
}
} else if (info.getType().equals("ajout_collection")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String collectionId = (String) info.getDonnee(0);
// Suite à la récupération de l'id de la collection nouvellement ajoutée nous ajoutons les personnes liées
// En mode AJOUT, il ne peut que y avoir des personnes liées ajoutées
mediateur.ajouterCollectionAPersonne(this, collectionId, personnesAjoutees);
}
} else if (type.equals("personne_modifiee")) {
if (info.getDonnee(0) != null) {
Personne personne = (Personne) info.getDonnee(0);
CollectionAPersonne personneDansGrille = grille.getStore().findModel("id_personne", personne.getId());
int index = grille.getStore().indexOf(personneDansGrille);
grille.getStore().remove(personneDansGrille);
String role = (String) personneDansGrille.get("_role_");
ajouterDansGrille(personne, role, index);
}
} else if (type.equals("personne_ajoutee")) {
if (info.getDonnee(0) != null) {
Personne personne = (Personne) info.getDonnee(0);
ajouterDansGrille(personne);
}
} else if (info.getType().equals("modif_collection_a_personne")) {
Info.display("Modification des personnes liées à la collection", info.toString());
} else if (info.getType().equals("suppression_collection_a_personne")) {
Info.display("Suppression des personnes liées à la collection", info.toString());
} else if (info.getType().equals("ajout_collection_a_personne")) {
Info.display("Ajout des personnes liées à la collection", info.toString());
}
}
public void peupler() {
grille.getStore().removeAll();
grille.getStore().add(collection.getPersonnesLiees().toList());
layout();
Info.display(i18nC.chargementPersonne(), i18nC.ok());
}
public ArrayList<String> verifier() {
ArrayList<String> messages = new ArrayList<String>();
String personneNumero = "";
int nbrePersonne = grille.getStore().getCount();
if (nbrePersonne > 0) {
for (int i = 0; i < nbrePersonne; i++) {
CollectionAPersonne personne = grille.getStore().getAt(i);
if (personne.get("_role_").equals("")) {
personneNumero += (i != 0 ? ", " : "")+(i+1);
}
}
if (!personneNumero.equals("")) {
messages.add("Veuillez indiquez le type de relation existant entre la collection et les personnes numéros : "+personneNumero);
}
}
return messages;
}
public void collecter() {
if (etreAccede()) {
int nbrePersonne = grille.getStore().getCount();
for (int i = 0; i < nbrePersonne; i++) {
CollectionAPersonne relationCollectionPersonne = grille.getStore().getAt(i);
if (relationCollectionPersonne.get("_etat_") != null) {
if (relationCollectionPersonne.get("_etat_").equals(aDonnee.ETAT_MODIFIE)) {
// Comme il est impossible de modifier les relations nous supprimons l'ancien enregistrement et ajoutons un nouveau avec le nouveau id_role
personnesSupprimees.put("id"+idGenere++, relationCollectionPersonne);
Debug.log("AVANT:"+relationCollectionPersonne.getIdRole());
CollectionAPersonne relationAAjouter = (CollectionAPersonne) relationCollectionPersonne.cloner(new CollectionAPersonne());
corrigerChampsGrille(relationAAjouter);// Nous modifions l'id_role
Debug.log("APRES:"+relationAAjouter.getIdRole());
personnesAjoutees.put("id"+idGenere++, relationAAjouter);
GWT.log("Personne modifiées : "+relationAAjouter.getPersonne().getPrenom()+" "+relationAAjouter.getPersonne().getNom(), null);
}
if (relationCollectionPersonne.get("_etat_").equals(aDonnee.ETAT_AJOUTE)) {
corrigerChampsGrille(relationCollectionPersonne);// Nous modifions l'id_role
personnesAjoutees.put("id"+idGenere++, relationCollectionPersonne);
GWT.log("Personne ajoutées : "+relationCollectionPersonne.getPersonne().getPrenom()+" "+relationCollectionPersonne.getPersonne().getNom(), null);
}
// Initialisation de la grille
relationCollectionPersonne.set("_etat_", "");
}
}
grille.getStore().commitChanges();
}
}
private void corrigerChampsGrille(CollectionAPersonne relationCollectionPersonne) {
String role = relationCollectionPersonne.get("_role_");
String champModele = "nom";
if (role.matches("[0-9]+")) {
champModele = "id_valeur";
}
if (typeRelationCombo.getStore().findModel(champModele, role) != null) {
String idRole = typeRelationCombo.getStore().findModel(champModele, role).getId();
relationCollectionPersonne.setIdRole(idRole);
}
}
 
public void soumettre() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
if (personnesAjoutees.size() == 0 && personnesSupprimees.size() == 0) {
Info.display("Modification des personnes liées", "Rien n'a été enregistré car le formulaire n'a pas été modifié.");
} else {
// Ajout des relations CollectionAPersonne
if (personnesAjoutees.size() != 0) {
mediateur.ajouterCollectionAPersonne(this, collection.getId(), personnesAjoutees);
}
// Suppression des relations StructureAPersonne
if (personnesSupprimees.size() != 0) {
mediateur.supprimerCollectionAPersonne(this, personnesSupprimees);
Debug.log("Nbre personnes supprimées :"+personnesSupprimees.size());
}
}
}
}
private void obtenirPersonnesSaisis(String nom) {
mediateur.selectionnerPersonneParNomComplet(this, null, nom+"%");
}
private void actualiserGrille() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.selectionnerCollectionAPersonne(this, collection.getId(), null);
} else {
grille.getStore().removeAll();
layout();
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionFormPublication.java
New file
0,0 → 1,548
package org.tela_botanica.client.vues.collection;
 
import java.util.ArrayList;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionAPublication;
import org.tela_botanica.client.modeles.collection.CollectionAPublicationListe;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.publication.PublicationListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.vues.FenetreForm;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.FormulaireBarreValidation;
import org.tela_botanica.client.vues.FormulaireOnglet;
import org.tela_botanica.client.vues.publication.PublicationForm;
 
import com.extjs.gxt.ui.client.core.XTemplate;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.KeyListener;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.store.Store;
import com.extjs.gxt.ui.client.store.StoreEvent;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnData;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.grid.RowExpander;
import com.extjs.gxt.ui.client.widget.grid.RowNumberer;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
 
public class CollectionFormPublication extends FormulaireOnglet implements Rafraichissable {
public static final String ID = "publication";
private Collection collection = null;
private static int idGenere = 1;
private ContentPanel panneauPrincipal = null;
private ToolBar barreOutils = null;
private EditorGrid<CollectionAPublication> grille;
private CollectionAPublicationListe publicationsAjoutees = null;
private CollectionAPublicationListe publicationsSupprimees = null;
private ComboBox<Publication> publicationsSaisiesComboBox = null;
private Button publicationsBoutonSupprimer = null;
private Button publicationsBoutonModifier = null;
private FenetreForm fenetreFormulaire = null;
public CollectionFormPublication(Formulaire formulaireCourrant) {
initialiserOnglet(formulaireCourrant);
setId(ID);
setText(Mediateur.i18nC.collectionPublication());
setStyleAttribute("padding", "0");
panneauPrincipal = creerPanneauContenantGrille();
barreOutils = creerBarreOutilsGrille();
panneauPrincipal.setTopComponent(barreOutils);
grille = creerGrille();
panneauPrincipal.add(grille);
add(panneauPrincipal);
initialiser();
}
private void initialiser() {
// Remise à zéro des modification dans la liste des auteurs
idGenere = 1;
publicationsAjoutees = new CollectionAPublicationListe();
publicationsSupprimees = new CollectionAPublicationListe();
// Actualisation de l'état des boutons de la barre d'outils
actualiserEtatBoutonsBarreOutils();
collection = ((CollectionForm) formulaire).collection;
}
private ContentPanel creerPanneauContenantGrille() {
ContentPanel panneau = new ContentPanel();
panneau.setHeading(i18nC.collectionPublicationTitre());
panneau.setIcon(Images.ICONES.table());
panneau.setLayout(new FitLayout());
panneau.setFrame(true);
return panneau;
}
 
private ToolBar creerBarreOutilsGrille() {
ToolBar barreOutils = new ToolBar();
Button ajouterBouton = creerBoutonAjouter();
barreOutils.add(ajouterBouton);
barreOutils.add(new Text(" ou "));
publicationsSaisiesComboBox = creerComboBoxPublicationsSaisis();
barreOutils.add(publicationsSaisiesComboBox);
barreOutils.add(new SeparatorToolItem());
publicationsBoutonModifier = creerBoutonModifier();
barreOutils.add(publicationsBoutonModifier);
barreOutils.add(new SeparatorToolItem());
publicationsBoutonSupprimer = creerBoutonSupprimer();
barreOutils.add(publicationsBoutonSupprimer);
barreOutils.add(new SeparatorToolItem());
Button rafraichirBouton = creerBoutonRafraichir();
barreOutils.add(rafraichirBouton);
return barreOutils;
}
 
private Button creerBoutonAjouter() {
Button bouton = new Button(i18nC.ajouter());
bouton.setIcon(Images.ICONES.vcardAjouter());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
fenetreFormulaire = creerFenetreModaleAvecFormulairePersonne(Formulaire.MODE_AJOUTER);
fenetreFormulaire.show();
}
});
return bouton;
}
private Button creerBoutonModifier() {
Button bouton = new Button(i18nC.modifier());
bouton.setIcon(Images.ICONES.vcardModifier());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
CollectionAPublication publicationSaisieSelectionnee = grille.getSelectionModel().getSelectedItem();
if (publicationSaisieSelectionnee == null) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerPublication());
} else {
fenetreFormulaire = creerFenetreModaleAvecFormulairePersonne(Formulaire.MODE_MODIFIER);
fenetreFormulaire.show();
}
}
});
return bouton;
}
private FenetreForm creerFenetreModaleAvecFormulairePersonne(String mode) {
String publicationId = null;
if (mode.equals(Formulaire.MODE_MODIFIER)) {
CollectionAPublication publicationSaisiSelectionne = grille.getSelectionModel().getSelectedItem();
publicationId = publicationSaisiSelectionne.getIdPublication();
}
final FenetreForm fenetre = new FenetreForm("");
final PublicationForm formulaire = creerFormulairePublication(fenetre, publicationId);
fenetre.add(formulaire);
return fenetre;
}
private PublicationForm creerFormulairePublication(final FenetreForm fenetre, final String publicationId) {
PublicationForm formulairePublication = new PublicationForm(mediateur, publicationId, this);
FormPanel panneauFormulaire = formulairePublication.getFormulaire();
fenetre.setHeading(panneauFormulaire.getHeading());
panneauFormulaire.setHeaderVisible(false);
panneauFormulaire.setTopComponent(null);
// FIXME : avec GXT-2.1.0 la redéfinition du bottom component ne marche plus. Nous le cachons et en créeons un dans la fenêtre.
panneauFormulaire.getBottomComponent().hide();
SelectionListener<ButtonEvent> ecouteur = creerEcouteurValidationFormulairePublication(fenetre, formulairePublication);
final ButtonBar barreValidation = new FormulaireBarreValidation(ecouteur);
fenetre.setBottomComponent(barreValidation);
return formulairePublication;
}
private SelectionListener<ButtonEvent> creerEcouteurValidationFormulairePublication(final FenetreForm fenetre, final PublicationForm formulaire) {
SelectionListener<ButtonEvent> ecouteur = new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
String code = ((Button) ce.getComponent()).getData("code");
if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
if (formulaire.soumettreFormulaire()) {
fenetre.hide();
}
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
formulaire.soumettreFormulaire();
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
fenetre.hide();
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
fenetreFormulaire.hide();
fenetreFormulaire = creerFenetreModaleAvecFormulairePersonne(formulaire.mode);
fenetreFormulaire.show();
}
}
};
return ecouteur;
}
private Button creerBoutonSupprimer() {
Button bouton = new Button(i18nC.supprimer());
bouton.setIcon(Images.ICONES.vcardSupprimer());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
CollectionAPublication publicationSaisieSelectionnee = grille.getSelectionModel().getSelectedItem();
if (publicationSaisieSelectionnee == null) {
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerPublication());
} else {
supprimerDansGrille(publicationSaisieSelectionnee);
}
}
});
return bouton;
}
private Button creerBoutonRafraichir() {
Button bouton = new Button(i18nC.rafraichir());
bouton.setIcon(Images.ICONES.rafraichir());
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
actualiserGrille();
}
});
return bouton;
}
private void actualiserGrille() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.selectionnerCollectionAPublication(this, collection.getId());
} else {
grille.getStore().removeAll();
layout();
}
}
private ComboBox<Publication> creerComboBoxPublicationsSaisis() {
ListStore<Publication> publicationsSaisiesStore = new ListStore<Publication>();
ComboBox<Publication> comboBox = new ComboBox<Publication>();
comboBox.setWidth(400);
comboBox.setEmptyText(i18nC.chercherPublicationSaisi());
comboBox.setTriggerAction(TriggerAction.ALL);
comboBox.setEditable(true);
comboBox.setDisplayField("fmt_nom_complet");
comboBox.setStore(publicationsSaisiesStore);
comboBox.addKeyListener(new KeyListener() {
public void componentKeyUp(ComponentEvent ce) {
if (publicationsSaisiesComboBox.getRawValue() != null && publicationsSaisiesComboBox.getRawValue().length() > 0) {
if (!ce.isNavKeyPress()) {
obtenirPublicationsSaisies(publicationsSaisiesComboBox.getRawValue());
}
}
}
});
comboBox.addListener(Events.Select, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
if (publicationsSaisiesComboBox.getValue() instanceof Publication) {
Publication publicationSaisieSelectionne = publicationsSaisiesComboBox.getValue();
ajouterDansGrille(publicationSaisieSelectionne);
publicationsSaisiesComboBox.setValue(null);
}
}
});
return comboBox;
}
private void ajouterDansGrille(Publication publication) {
ajouterDansGrille(publication, 0);
}
private void ajouterDansGrille(Publication publication, int index) {
if (publication != null) {
CollectionAPublication publicationLiee = new CollectionAPublication();
publicationLiee.setPublication(publication);
publicationLiee.setIdPublication(publication.getId());
// Gestion de l'id de la collection
if (mode.equals(Formulaire.MODE_MODIFIER)) {
publicationLiee.setIdCollection(collection.getId());
}
publicationLiee.set("_etat_", aDonnee.ETAT_AJOUTE);
// Ajout à la grille
grille.stopEditing();
grille.getStore().insert(publicationLiee, 0);
grille.startEditing(index, 0);
grille.getSelectionModel().select(index, false);
}
}
private void supprimerDansGrille(CollectionAPublication publicationLiee) {
if (publicationLiee != null) {
// Ajout de la personne supprimée à la liste
if ((publicationLiee.get("_etat_").equals("") || !publicationLiee.get("_etat_").equals(aDonnee.ETAT_AJOUTE))
&& publicationLiee.getId() != null
&& !publicationLiee.getId().equals("")) {
Debug.log("Nbre publications supprimées avant:"+publicationsSupprimees.size());
publicationsSupprimees.put("id"+idGenere++, publicationLiee);
GWT.log("Publications supprimée : "+publicationLiee.getPublication().getId()+" "+publicationLiee.getPublication().getNomComplet(), null);
Debug.log("Nbre publications supprimées :"+publicationsSupprimees.size());
}
// Suppression de l'enregistrement de la grille
grille.getStore().remove(publicationLiee);
}
}
 
private EditorGrid<CollectionAPublication> creerGrille() {
ListStore<CollectionAPublication> storeGrille = new ListStore<CollectionAPublication>();
storeGrille.addListener(Store.Add, new Listener<StoreEvent<CollectionAPublication>>() {
public void handleEvent(StoreEvent<CollectionAPublication> ce) {
actualiserEtatBoutonsBarreOutils();
}
});
storeGrille.addListener(Store.Remove, new Listener<StoreEvent<CollectionAPublication>>() {
public void handleEvent(StoreEvent<CollectionAPublication> ce) {
actualiserEtatBoutonsBarreOutils();
}
});
RowNumberer numeroPlugin = new RowNumberer();
numeroPlugin.setHeader("#");
XTemplate infoTpl = XTemplate.create("<p>"+
"<span style='font-weight:bold;'>"+i18nC.publicationAuteurs()+" :</span> {fmt_auteur}<br />"+
"<span style='font-weight:bold;'>"+i18nC.publicationTitre()+" :</span> {titre}<br />"+
"<span style='font-weight:bold;'>"+i18nC.publicationRevueCollection()+" :</span> {collection}<br />"+
"<span style='font-weight:bold;'>"+i18nC.publicationEditeur()+" :</span> {_editeur_}"+
"</p>");
RowExpander expansionPlugin = new RowExpander();
expansionPlugin.setTemplate(infoTpl);
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
colonnes.add(expansionPlugin);
colonnes.add(numeroPlugin);
colonnes.add(new ColumnConfig("fmt_auteur", i18nC.publicationAuteurs(), 150));
colonnes.add(new ColumnConfig("titre", i18nC.publicationTitre(), 150));
colonnes.add(new ColumnConfig("collection", i18nC.publicationRevueCollection(), 75));
colonnes.add(creerColonneEditeur());
colonnes.add(creerColonneAnneePublication());
colonnes.add(new ColumnConfig("indication_nvt", i18nC.publicationNvt(), 75));
colonnes.add(new ColumnConfig("fascicule", i18nC.publicationFascicule(), 75));
colonnes.add(new ColumnConfig("truk_pages", i18nC.publicationPage(), 50));
GridSelectionModel<CollectionAPublication> modeleDeSelection = new GridSelectionModel<CollectionAPublication>();
ColumnModel modeleDeColonnes = new ColumnModel(colonnes);
modeleDeColonnes.getColumn(0).setWidget(Images.ICONES.information().createImage(), "Info");
EditorGrid<CollectionAPublication> grillePublications = new EditorGrid<CollectionAPublication>(storeGrille, modeleDeColonnes);
grillePublications.setHeight("100%");
grillePublications.setBorders(true);
grillePublications.setSelectionModel(modeleDeSelection);
grillePublications.addPlugin(expansionPlugin);
grillePublications.addPlugin(numeroPlugin);
grillePublications.getView().setForceFit(true);
grillePublications.setAutoExpandColumn("titre");
grillePublications.setStripeRows(true);
grillePublications.setTrackMouseOver(true);
return grillePublications;
}
private ColumnConfig creerColonneEditeur() {
GridCellRenderer<CollectionAPublication> editeurRendu = new GridCellRenderer<CollectionAPublication>() {
@Override
public String render(CollectionAPublication model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<CollectionAPublication> store, Grid<CollectionAPublication> grid) {
String editeur = model.getPublication().getNomEditeur();
model.set("_editeur_", editeur);
return editeur;
}
};
ColumnConfig editeurColonne = new ColumnConfig("_editeur_", Mediateur.i18nC.publicationEditeur(), 135);
editeurColonne.setRenderer(editeurRendu);
return editeurColonne;
}
private ColumnConfig creerColonneAnneePublication() {
GridCellRenderer<CollectionAPublication> datePublicationRendu = new GridCellRenderer<CollectionAPublication>() {
@Override
public String render(CollectionAPublication model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<CollectionAPublication> store, Grid<CollectionAPublication> grid) {
String annee = model.getPublication().getAnneeParution();
model.set("_annee_", annee);
return annee;
}
};
ColumnConfig datePublicationColonne = new ColumnConfig("_annee_", Mediateur.i18nC.publicationDateParution(), 75);
datePublicationColonne.setRenderer(datePublicationRendu);
return datePublicationColonne;
}
 
public void actualiserEtatBoutonsBarreOutils() {
// Activation des boutons si la grille contient un élément
if (grille.getStore().getCount() > 0) {
publicationsBoutonSupprimer.enable();
publicationsBoutonModifier.enable();
}
// Désactivation des boutons si la grille ne contient plus d'élément
if (grille.getStore().getCount() == 0) {
publicationsBoutonSupprimer.disable();
publicationsBoutonModifier.disable();
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
rafraichirInformation(info);
} else if (nouvellesDonnees instanceof PublicationListe) {
PublicationListe listePublications = (PublicationListe) nouvellesDonnees;
rafraichirPublicationListe(listePublications);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
private void rafraichirPublicationListe(PublicationListe listePublications) {
publicationsSaisiesComboBox.getStore().removeAll();
publicationsSaisiesComboBox.getStore().add(listePublications.toList());
publicationsSaisiesComboBox.expand();
}
public void rafraichirInformation(Information info) {
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
}
String type = info.getType();
if (type.equals("liste_collection_a_publication")) {
if (info.getDonnee(0) != null) {
initialiser();
collection.setPublicationsLiees((CollectionAPublicationListe) info.getDonnee(0));
peupler();
}
} else if (info.getType().equals("ajout_collection")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String collectionId = (String) info.getDonnee(0);
// Suite à la récupération de l'id de la collection nouvellement ajoutée nous ajoutons les publications liées
// En mode AJOUT, il ne peut que y avoir des publications liées ajoutées
mediateur.ajouterCollectionAPublication(this, collectionId, publicationsAjoutees);
}
} else if (type.equals("publication_modifiee")) {
if (info.getDonnee(0) != null) {
Publication publication = (Publication) info.getDonnee(0);
CollectionAPublication publicationDansGrille = grille.getStore().findModel("id_publication", publication.getId());
int index = grille.getStore().indexOf(publicationDansGrille);
grille.getStore().remove(publicationDansGrille);
ajouterDansGrille(publication, index);
}
} else if (type.equals("publication_ajoutee")) {
if (info.getDonnee(0) != null) {
Publication publication = (Publication) info.getDonnee(0);
ajouterDansGrille(publication);
}
} else if (type.equals("suppression_collection_a_publication")) {
Info.display("Suppression des publications liées à la collection", info.toString());
} else if (type.equals("ajout_collection_a_publication")) {
Info.display("Ajout des publications liées à la collection", info.toString());
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(info.getClass(), this.getClass()), null);
}
}
 
public void peupler() {
grille.getStore().removeAll();
grille.getStore().add(collection.getPublicationsLiees().toList());
layout();
Info.display(i18nC.chargementPublication(), i18nC.ok());
}
 
public void collecter() {
if (etreAccede()) {
int nbrePublication = grille.getStore().getCount();
for (int i = 0; i < nbrePublication; i++) {
CollectionAPublication publicationLiee = grille.getStore().getAt(i);
if (publicationLiee.get("_etat_") != null) {
if (publicationLiee.get("_etat_").equals(aDonnee.ETAT_MODIFIE)) {
// Comme il est impossible de modifier les relations nous supprimons l'ancien enregistrement et ajoutons un nouveau avec le nouveau id_role
publicationsSupprimees.put("id"+idGenere++, publicationLiee);
CollectionAPublication relationAAjouter = (CollectionAPublication) publicationLiee.cloner(new CollectionAPublication());
publicationsAjoutees.put("id"+idGenere++, relationAAjouter);
Debug.log(publicationLiee.toString());
}
if (publicationLiee.get("_etat_").equals(aDonnee.ETAT_AJOUTE)) {
publicationsAjoutees.put("id"+idGenere++, publicationLiee);
Debug.log(publicationLiee.toString());
}
// Initialisation de la grille
publicationLiee.set("_etat_", "");
}
}
grille.getStore().commitChanges();
}
}
public void soumettre() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
if (publicationsAjoutees.size() == 0 && publicationsSupprimees.size() == 0) {
Info.display("Modification des publications liées", "Rien n'a été enregistré car le formulaire n'a pas été modifié.");
} else {
// Ajout des relations CollectionAPublication
if (publicationsAjoutees.size() != 0) {
mediateur.ajouterCollectionAPublication(this, collection.getId(), publicationsAjoutees);
Debug.log("Nbre publications ajoutées :"+publicationsAjoutees.size());
}
// Suppression des relations CollectionAPublication
if (publicationsSupprimees.size() != 0) {
mediateur.supprimerCollectionAPublication(this, publicationsSupprimees);
Debug.log("Nbre publications supprimées :"+publicationsSupprimees.size());
}
}
}
}
private void obtenirPublicationsSaisies(String nom) {
mediateur.selectionnerPublicationParNomComplet(this, null, "%"+nom+"%");
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionFormContenu.java
New file
0,0 → 1,336
package org.tela_botanica.client.vues.collection;
 
import java.util.HashMap;
import java.util.Iterator;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.composants.ChampCaseACocher;
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
import org.tela_botanica.client.composants.ChampSliderPourcentage;
import org.tela_botanica.client.composants.ConteneurMultiChamps;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionBotanique;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.Pattern;
import org.tela_botanica.client.util.UtilDate;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.FormulaireOnglet;
 
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.form.DateField;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.HBoxLayoutData;
 
public class CollectionFormContenu extends FormulaireOnglet implements Rafraichissable {
public static final String ID = "contenu";
private Collection collection = null;
private CollectionBotanique collectionBotanique = null;
private Collection collectionCollectee = null;
private CollectionBotanique collectionBotaniqueCollectee = null;
private ChampCaseACocher natureChp = null;
private TextArea specialiteChp = null;
private ChampComboBoxListeValeurs dateDebutCombo = null;
private ChampComboBoxListeValeurs dateFinCombo = null;
private DateField dateDebutChp = null;
private DateField dateFinChp = null;
private TextArea annotationClassementChp = null;
private ChampComboBoxListeValeurs etatClassementCombo = null;
private ChampComboBoxListeValeurs precisionDateCombo = null;
private ChampComboBoxListeValeurs precisionLocaliteCombo = null;
private TextArea etiquetteAnnotationChp = null;
private ChampComboBoxListeValeurs integreCollectionCombo = null;
private ChampComboBoxListeValeurs infoIntegreCollectionCombo = null;
private ChampSliderPourcentage auteurTitrePourcentChp;
private ChampSliderPourcentage famillePourcentChp;
private ChampSliderPourcentage genrePourcentChp;
private ChampSliderPourcentage spPourcentChp;
private ChampSliderPourcentage auteurSpPourcentChp;
private ChampSliderPourcentage localitePourcentChp;
private ChampSliderPourcentage datePourcentChp;
 
public CollectionFormContenu(Formulaire formulaireCourrant) {
initialiserOnglet(formulaireCourrant);
setId(ID);
setText(Mediateur.i18nC.collectionContenu());
creerFieldsetNature();
// TODO : réaliser un champ couverture géographique détaillé
creerFieldsetPeriode();
creerFieldsetClassement();
creerFieldsetEtiquette();
creerFieldsetIntegration();
}
private void creerFieldsetNature() {
FieldSet natureFieldSet = new FieldSet();
natureFieldSet.setHeading(i18nC.collectionNatureTitre());
natureFieldSet.setCollapsible(true);
natureFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
natureChp = new ChampCaseACocher(i18nC.natureVegetaleContenu(), "natureVegetale", false);
natureFieldSet.add(natureChp);
specialiteChp = new TextArea();
specialiteChp.setFieldLabel(i18nC.specialiteCollection());
specialiteChp.setToolTip(i18nC.specialiteCollectionInfo());
natureFieldSet.add(specialiteChp, new FormData(550, 0));
add(natureFieldSet);
}
private void creerFieldsetPeriode() {
FieldSet periodeFieldSet = new FieldSet();
periodeFieldSet.setHeading(i18nC.collectionConstitutionTitre());
periodeFieldSet.setCollapsible(true);
periodeFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
ConteneurMultiChamps dateDebutConteneur = new ConteneurMultiChamps(i18nC.dateDebutCollection());
dateDebutChp = new DateField();
dateDebutChp.getPropertyEditor().setFormat(UtilDate.formatDateFr);
dateDebutChp.getPropertyEditor().setParseStrict(false);
dateDebutChp.setFormatValue(true);
dateDebutConteneur.ajouterChamp(dateDebutChp, new HBoxLayoutData(new Margins(0, 20, 0, 0)));
dateDebutCombo = new ChampComboBoxListeValeurs(null, "dateDebut");
dateDebutCombo.setTrie("id_valeur");
dateDebutConteneur.ajouterChamp(dateDebutCombo);
periodeFieldSet.add(dateDebutConteneur);
ConteneurMultiChamps dateFinConteneur = new ConteneurMultiChamps(i18nC.dateFinCollection());
dateFinChp = new DateField();
dateFinChp.getPropertyEditor().setFormat(UtilDate.formatDateFr);
dateFinChp.getPropertyEditor().setParseStrict(false);
dateFinChp.setFormatValue(true);
dateFinConteneur.ajouterChamp(dateFinChp, new HBoxLayoutData(new Margins(0, 20, 0, 0)));
dateFinCombo = new ChampComboBoxListeValeurs(null, "dateFin");
dateFinCombo.setTrie("id_valeur");
dateFinConteneur.ajouterChamp(dateFinCombo);
periodeFieldSet.add(dateFinConteneur);
Text infoDate = new Text(i18nC.dateApproximativeInfo());
periodeFieldSet.add(infoDate);
add(periodeFieldSet);
}
private void creerFieldsetClassement() {
FieldSet classementFieldSet = new FieldSet();
classementFieldSet.setHeading(i18nC.collectionClassementTitre());
classementFieldSet.setCollapsible(true);
classementFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
 
etatClassementCombo = new ChampComboBoxListeValeurs(i18nC.etatClassementCollection(), "etatClassement", tabIndex++);
classementFieldSet.add(etatClassementCombo);
 
annotationClassementChp = new TextArea();
annotationClassementChp.setFieldLabel(i18nC.annotationClassementCollection());
classementFieldSet.add(annotationClassementChp, new FormData(550, 0));
Text infoClassement = new Text(i18nC.annotationClassementCollectionInfo());
classementFieldSet.add(infoClassement);
add(classementFieldSet);
}
private void creerFieldsetEtiquette() {
FieldSet etiquetteFieldSet = new FieldSet();
etiquetteFieldSet.setHeading(i18nC.collectionEtiquetteTitre());
etiquetteFieldSet.setCollapsible(true);
etiquetteFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
Text renseignementPoucentLabel = new Text(i18nC.renseignementEtiquetteCollection());
renseignementPoucentLabel.setTagName("label");
renseignementPoucentLabel.setStyleName("x-form-item-label");
etiquetteFieldSet.add(renseignementPoucentLabel);
auteurTitrePourcentChp = new ChampSliderPourcentage(i18nC.auteurTitrePourcentCollection());
etiquetteFieldSet.add(auteurTitrePourcentChp, new FormData(200, 0));
famillePourcentChp = new ChampSliderPourcentage(i18nC.famillePourcentCollection());
etiquetteFieldSet.add(famillePourcentChp, new FormData(200, 0));
genrePourcentChp = new ChampSliderPourcentage(i18nC.genrePourcentCollection());
etiquetteFieldSet.add(genrePourcentChp, new FormData(200, 0));
spPourcentChp = new ChampSliderPourcentage(i18nC.spPourcentCollection());
etiquetteFieldSet.add(spPourcentChp, new FormData(200, 0));
auteurSpPourcentChp = new ChampSliderPourcentage(i18nC.auteurSpPourcentCollection());
etiquetteFieldSet.add(auteurSpPourcentChp, new FormData(200, 0));
localitePourcentChp = new ChampSliderPourcentage(i18nC.localitePourcentCollection());
etiquetteFieldSet.add(localitePourcentChp, new FormData(200, 0));
datePourcentChp = new ChampSliderPourcentage(i18nC.datePourcentCollection());
etiquetteFieldSet.add(datePourcentChp, new FormData(200, 0));
precisionLocaliteCombo = new ChampComboBoxListeValeurs(i18nC.precisionLocaliteCollection(), "onep", tabIndex++);
etiquetteFieldSet.add(precisionLocaliteCombo);
precisionDateCombo = new ChampComboBoxListeValeurs(i18nC.precisionDateCollection(), "onep", tabIndex++);
etiquetteFieldSet.add(precisionDateCombo);
 
etiquetteAnnotationChp = new TextArea();
etiquetteAnnotationChp.setFieldLabel(i18nC.etiquetteAnnotationCollection());
etiquetteAnnotationChp.setToolTip(i18nC.etiquetteAnnotationCollectionInfo());
etiquetteFieldSet.add(etiquetteAnnotationChp, new FormData(550, 0));
add(etiquetteFieldSet);
}
private String collecterEtiquetteRenseignement() {
String renseignement = "";
renseignement += creerTypeValeur("AT", auteurTitrePourcentChp.getValeur());
renseignement += creerTypeValeur("F", famillePourcentChp.getValeur());
renseignement += creerTypeValeur("G", genrePourcentChp.getValeur());
renseignement += creerTypeValeur("SP", spPourcentChp.getValeur());
renseignement += creerTypeValeur("ASP", auteurSpPourcentChp.getValeur());
renseignement += creerTypeValeur("L", localitePourcentChp.getValeur());
renseignement += creerTypeValeur("D", datePourcentChp.getValeur());
renseignement = renseignement.replaceFirst(aDonnee.SEPARATEUR_VALEURS+"$", "");
return renseignement;
}
private String creerTypeValeur(String type, String valeur) {
String retour = "";
if (!UtilString.isEmpty(valeur)) {
retour = type+aDonnee.SEPARATEUR_TYPE_VALEUR+valeur+aDonnee.SEPARATEUR_VALEURS;
}
return retour;
}
private void peuplerEtiquetteRenseignement(String valeurTruk) {
HashMap<String,String> infos = parserEtiquetteRenseignement(valeurTruk);
if (infos != null) {
Iterator<String> it = infos.keySet().iterator();
while (it.hasNext()) {
String cle = it.next();
if (cle.equals("AT")) {
auteurTitrePourcentChp.peupler(infos.get(cle));
} else if (cle.equals("F")) {
famillePourcentChp.peupler(infos.get(cle));
} else if (cle.equals("G")) {
genrePourcentChp.peupler(infos.get(cle));
} else if (cle.equals("SP")) {
spPourcentChp.peupler(infos.get(cle));
} else if (cle.equals("ASP")) {
auteurSpPourcentChp.peupler(infos.get(cle));
} else if (cle.equals("L")) {
localitePourcentChp.peupler(infos.get(cle));
} else if (cle.equals("D")) {
datePourcentChp.peupler(infos.get(cle));
}
}
}
}
public static HashMap<String,String> parserEtiquetteRenseignement(String valeurTruk) {
HashMap<String,String> infos = null;
if (!UtilString.isEmpty(valeurTruk)) {
infos = new HashMap<String,String>();
String[] pourcentages = valeurTruk.split(Pattern.quote(aDonnee.SEPARATEUR_VALEURS));
for (int i = 0; i < pourcentages.length; i++) {
String[] pourcentageIdValeur = pourcentages[i].split(Pattern.quote(aDonnee.SEPARATEUR_TYPE_VALEUR));
String id = pourcentageIdValeur[0];
String valeur = pourcentageIdValeur[1];
infos.put(id, valeur);
}
}
return infos;
}
private void creerFieldsetIntegration() {
FieldSet integrationFieldSet = new FieldSet();
integrationFieldSet.setHeading(i18nC.collectionIntegreeTitre());
integrationFieldSet.setCollapsible(true);
integrationFieldSet.setLayout(Formulaire.creerFormLayout(350, alignementLabelDefaut));
integreCollectionCombo = new ChampComboBoxListeValeurs(i18nC.integreCollection(), "onpi", tabIndex++);
integrationFieldSet.add(integreCollectionCombo);
infoIntegreCollectionCombo = new ChampComboBoxListeValeurs(i18nC.infoIntegreCollection(), "onp", tabIndex++);
integrationFieldSet.add(infoIntegreCollectionCombo);
Text infoIntegration = new Text(i18nC.infoIntegrationCollection());
integrationFieldSet.add(infoIntegration);
add(integrationFieldSet);
}
public void peupler() {
initialiserCollection();
if (collectionBotanique != null) {
natureChp.peupler(collectionBotanique.getNature());
specialiteChp.setValue(collectionBotanique.getSpecialite());
dateDebutChp.setValue(UtilString.formaterEnDate(collectionBotanique.getRecolteDateDebut()));
dateDebutCombo.peupler(collectionBotanique.getRecolteDateDebutType());
dateFinChp.setValue(UtilString.formaterEnDate(collectionBotanique.getRecolteDateFin()));
dateFinCombo.peupler(collectionBotanique.getRecolteDateFinType());
etatClassementCombo.peupler(collectionBotanique.getClassementEtat());
annotationClassementChp.setValue(collectionBotanique.getClassementAnnotation());
peuplerEtiquetteRenseignement(collectionBotanique.getEtiquetteRenseignement());
precisionLocaliteCombo.peupler(collectionBotanique.getPrecisionLocalite());
precisionDateCombo.peupler(collectionBotanique.getPrecisionDate());
etiquetteAnnotationChp.setValue(collectionBotanique.getAnnotationsDiverses());
integreCollectionCombo.peupler(collectionBotanique.getCollectionIntegre());
infoIntegreCollectionCombo.peupler(collectionBotanique.getCollectionIntegreInfo());
}
}
public void collecter() {
initialiserCollection();
if (etreAccede()) {
collectionBotaniqueCollectee.setNature(natureChp.getValeur());
collectionBotaniqueCollectee.setSpecialite(specialiteChp.getValue());
collectionBotaniqueCollectee.setRecolteDateDebut(UtilDate.formaterEnString(dateDebutChp.getValue()));
collectionBotaniqueCollectee.setRecolteDateDebutType(dateDebutCombo.getValeur());
collectionBotaniqueCollectee.setRecolteDateFin(UtilDate.formaterEnString(dateFinChp.getValue()));
collectionBotaniqueCollectee.setRecolteDateFinType(dateFinCombo.getValeur());
collectionBotaniqueCollectee.setClassementEtat(etatClassementCombo.getValeur());
collectionBotaniqueCollectee.setClassementAnnotation(annotationClassementChp.getValue());
collectionBotaniqueCollectee.setEtiquetteRenseignement(collecterEtiquetteRenseignement());
collectionBotaniqueCollectee.setPrecisionLocalite(precisionLocaliteCombo.getValeur());
collectionBotaniqueCollectee.setPrecisionDate(precisionDateCombo.getValeur());
collectionBotaniqueCollectee.setAnnotationsDiverses(etiquetteAnnotationChp.getValue());
collectionBotaniqueCollectee.setCollectionIntegre(integreCollectionCombo.getValeur());
collectionBotaniqueCollectee.setCollectionIntegreInfo(infoIntegreCollectionCombo.getValeur());
}
}
private void initialiserCollection() {
collection = ((CollectionForm) formulaire).collection;
if (collection != null) {
collectionBotanique = collection.getBotanique();
}
collectionCollectee = ((CollectionForm) formulaire).collectionCollectee;
if (collectionCollectee != null) {
collectionBotaniqueCollectee = collectionCollectee.getBotanique();
}
}
public void rafraichir(Object nouvellesDonnees) {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionVue.java
New file
0,0 → 1,60
package org.tela_botanica.client.vues.collection;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionListe;
import org.tela_botanica.client.util.Debug;
 
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
 
public class CollectionVue extends LayoutContainer implements Rafraichissable {
 
private Mediateur mediateur = null;
private CollectionListeVue listeCollectionPanneau = null;
private CollectionDetailVue detailCollectionPanneau = null;
 
public CollectionVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
BorderLayout layout = new BorderLayout();
layout.setEnableState(false);
setLayout(layout);
 
listeCollectionPanneau = new CollectionListeVue(mediateur);
add(listeCollectionPanneau, new BorderLayoutData(LayoutRegion.CENTER));
 
detailCollectionPanneau = new CollectionDetailVue(mediateur);
BorderLayoutData dispositionSud = new BorderLayoutData(LayoutRegion.SOUTH, .5f, 200, 1000);
dispositionSud.setSplit(true);
dispositionSud.setMargins(new Margins(5, 0, 0, 0));
add(detailCollectionPanneau, dispositionSud);
}
 
public void rafraichir(Object nouvellesDonnees) {
// Nous passons l'objet aux méthodes rafraichir des panneaux composant le panneau principal Structure
if (nouvellesDonnees instanceof Collection) {
detailCollectionPanneau.rafraichir(nouvellesDonnees);
} else if (nouvellesDonnees instanceof CollectionListe) {
listeCollectionPanneau.rafraichir(nouvellesDonnees);
mediateur.desactiverChargement();
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("liste_collection_a_personne")
|| info.getType().equals("liste_collection_a_publication")
|| info.getType().equals("liste_collection_a_commentaire")) {
detailCollectionPanneau.rafraichir(nouvellesDonnees);
} else if (info.getType().equals("suppression_collection")) {
listeCollectionPanneau.rafraichir(nouvellesDonnees);
}
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionListeVue.java
New file
0,0 → 1,202
package org.tela_botanica.client.vues.collection;
 
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Utilisateur;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionListe;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.vues.BarrePaginationVue;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
 
public class CollectionListeVue extends ContentPanel implements Rafraichissable {
private Mediateur mediateur = null;
private Constantes i18nC = null;
 
private Grid<Collection> grille = null;
private ListStore<Collection> store = null;
 
private Button modifier;
private Button supprimer;
private Button ajouter;
private BarrePaginationVue pagination = null;
public CollectionListeVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
i18nC = Mediateur.i18nC;
setLayout(new FitLayout());
setHeading(i18nC.collectionListeTitre());
ToolBar toolBar = new ToolBar();
ajouter = new Button(i18nC.ajouter());
ajouter.setIcon(Images.ICONES.ajouter());
ajouter.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
mediateur.clicAjouterCollection();
}
});
toolBar.add(ajouter);
 
modifier = new Button(i18nC.modifier());
modifier.setIcon(Images.ICONES.formModifier());
modifier.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
mediateur.clicModifierCollection(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(modifier);
supprimer = new Button(i18nC.supprimer());
supprimer.setIcon(Images.ICONES.supprimer());
supprimer.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
clicSupprimerCollection(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(supprimer);
 
setTopComponent(toolBar);
 
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
colonnes.add(new ColumnConfig("nom", i18nC.personneNom(), 300));
colonnes.add(new ColumnConfig("structure_nom", i18nC.structure(), 200));
colonnes.add(new ColumnConfig("structure_ville", i18nC.ville(), 150));
colonnes.get(1).setHidden(true);
ColumnModel modeleDeColonne = new ColumnModel(colonnes);
GridSelectionModel<Collection> modeleDeSelection = new GridSelectionModel<Collection>();
modeleDeSelection.addSelectionChangedListener(new SelectionChangedListener<Collection>() {
public void selectionChanged(SelectionChangedEvent<Collection> event) {
Collection collectionSelectionnee = (Collection) event.getSelectedItem();
clicListe(collectionSelectionnee);
}
});
store = new ListStore<Collection>();
store.sort("nom", SortDir.ASC);
grille = new Grid<Collection>(store, modeleDeColonne);
grille.setWidth("100%");
grille.setAutoExpandColumn("nom");
grille.getView().setAutoFill(true);
grille.getView().setForceFit(true);
grille.setSelectionModel(modeleDeSelection);
grille.addListener(Events.ViewReady, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
grille.getSelectionModel().select(0, false);
}
});
grille.addListener(Events.OnDoubleClick, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
modifier.fireEvent(Events.Select);
}
});
add(grille);
// Définition de la barre de pagination
pagination = new BarrePaginationVue(new CollectionListe(), mediateur);
setBottomComponent(pagination);
}
 
private void clicListe(Collection collection) {
if (collection != null && store.getCount() > 0) {
mediateur.clicListeCollection(collection);
}
}
private void clicSupprimerCollection(List<Collection> collectionsASupprimer) {
if (store.getCount() > 0) {
mediateur.clicSupprimerCollection(this, collectionsASupprimer);
}
}
private void gererEtatActivationBouton() {
int nbreElementDuMagazin = store.getCount();
ajouter.enable();
if (nbreElementDuMagazin == 0) {
supprimer.disable();
modifier.disable();
} else if (nbreElementDuMagazin > 0) {
modifier.enable();
if (((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT)).isIdentifie()) {
supprimer.enable();
}
}
}
 
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof CollectionListe) {
CollectionListe collections = (CollectionListe) nouvellesDonnees;
 
pagination.setlistePaginable(collections);
int[] pt = collections.getPageTable();
pagination.rafraichir(collections.getPageTable());
if (collections != null) {
List<Collection> liste = collections.toList();
store.removeAll();
store.add(liste);
mediateur.actualiserPanneauCentral();
}
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("maj_utilisateur")) {
gererEtatActivationBouton();
} else if (info.getType().equals("suppression_collection")) {
// Affichage d'un message d'information
Info.display(i18nC.suppressionCollection(), info.toString().replaceAll("\n", "<br />"));
 
supprimerCollectionsSelectionnees();
gererEtatActivationBouton();
}
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
layout();
}
private void supprimerCollectionsSelectionnees() {
List<Collection> collectionsSelectionnees = grille.getSelectionModel().getSelectedItems();
Iterator<Collection> it = collectionsSelectionnees.iterator();
while (it.hasNext()) {
grille.getStore().remove(it.next());
}
layout(true);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionFormGeneral.java
New file
0,0 → 1,433
package org.tela_botanica.client.vues.collection;
 
import java.util.ArrayList;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.composants.ChampCaseACocher;
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
import org.tela_botanica.client.composants.ChampMultiValeurs;
import org.tela_botanica.client.composants.ConteneurMultiChamps;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionListe;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.structure.Structure;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.vues.Formulaire;
import org.tela_botanica.client.vues.FormulaireOnglet;
 
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.Field;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.HiddenField;
import com.extjs.gxt.ui.client.widget.form.NumberField;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.Validator;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.HBoxLayoutData;
import com.google.gwt.i18n.client.NumberFormat;
 
public class CollectionFormGeneral extends FormulaireOnglet implements Rafraichissable {
public static final String ID = "general";
private Collection collection = null;
private Collection collectionCollectee = null;
 
private HiddenField<String> idCollectionChp = null;
private ComboBox<Projet> projetsCombo = null;
private ComboBox<Structure> structuresCombo = null;
private ComboBox<Collection> collectionsCombo = null;
private ChampCaseACocher periodeConstitutionChp = null;
private ChampComboBoxListeValeurs groupementPrincipeCombo = null;
private ChampMultiValeurs lieuCouvertureChp = null;
 
private ChampComboBoxListeValeurs specimenTypeCombo = null;
private ChampComboBoxListeValeurs precisionTypeNbreCombo = null;
private NumberField nbreTypeChp = null;
private ChampComboBoxListeValeurs classementSpecimenTypeCombo = null;
private ChampComboBoxListeValeurs typeDepotCombo = null;
private TextField<String> coteChp = null;
private ChampMultiValeurs idAlternatifsChp = null;
private ChampMultiValeurs nomsAlternatifsChp = null;
private ChampMultiValeurs codesAlternatifsChp = null;
private TextArea descriptionSpecialisteChp = null;
private TextArea descriptionChp = null;
private TextArea historiqueChp = null;
private ChampMultiValeurs urlsChp = null;
 
private ChampComboBoxListeValeurs butRealisationCombo = null;
public CollectionFormGeneral(Formulaire formulaireCourrant) {
initialiserOnglet(formulaireCourrant);
setId(ID);
setText(Mediateur.i18nC.collectionGeneral());
creerChampsCache();
creerFieldsetLiaison();
creerFieldsetAdministratif();
creerFieldsetDescription();
creerFieldsetCouverture();
creerFieldsetType();
}
 
private void initialiserCollection() {
collection = ((CollectionForm) formulaire).collection;
collectionCollectee = ((CollectionForm) formulaire).collectionCollectee;
}
private void creerChampsCache() {
// Champs cachés
idCollectionChp = new HiddenField<String>();
this.add(idCollectionChp);
}
private void creerFieldsetLiaison() {
FieldSet liaisonFieldSet = new FieldSet();
liaisonFieldSet.setHeading(i18nC.liaisonTitreCollection());
liaisonFieldSet.setCollapsible(true);
liaisonFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
projetsCombo = new ComboBox<Projet>();
projetsCombo.setTabIndex(tabIndex++);
projetsCombo.setFieldLabel(i18nC.projetChamp());
projetsCombo.setDisplayField("nom");
projetsCombo.setForceSelection(true);
projetsCombo.setValidator(new Validator() {
@Override
public String validate(Field<?> field, String value) {
String retour = null;
if (field.getRawValue().equals("")) {
field.setValue(null);
} else if (projetsCombo.getStore().findModel("nom", field.getRawValue()) == null) {
String contenuBrut = field.getRawValue();
field.setValue(null);
field.setRawValue(contenuBrut);
retour = "Veuillez sélectionner une valeur ou laisser le champ vide";
}
return retour;
}
});
projetsCombo.setTriggerAction(TriggerAction.ALL);
projetsCombo.setStore(new ListStore<Projet>());
projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
projetsCombo.addListener(Events.Valid, Formulaire.creerEcouteurChampObligatoire());
liaisonFieldSet.add(projetsCombo, new FormData(450, 0));
mediateur.selectionnerProjet(this, null);
structuresCombo = new ComboBox<Structure>();
structuresCombo.setTabIndex(tabIndex++);
structuresCombo.setFieldLabel(i18nC.lienStructureCollection());
structuresCombo.setDisplayField("nom");
structuresCombo.setForceSelection(true);
structuresCombo.setValidator(new Validator() {
@Override
public String validate(Field<?> field, String value) {
String retour = null;
if (field.getRawValue().equals("")) {
field.setValue(null);
} else if (structuresCombo.getStore().findModel("nom", field.getRawValue()) == null) {
String contenuBrut = field.getRawValue();
field.setValue(null);
field.setRawValue(contenuBrut);
retour = "Veuillez sélectionner une valeur ou laisser le champ vide";
}
return retour;
}
});
structuresCombo.setTriggerAction(TriggerAction.ALL);
structuresCombo.setStore(new ListStore<Structure>());
liaisonFieldSet.add(structuresCombo, new FormData(450, 0));
mediateur.selectionnerStructureParProjet(this, null);
collectionsCombo = new ComboBox<Collection>();
collectionsCombo.setTabIndex(tabIndex++);
collectionsCombo.setFieldLabel(i18nC.lienMereCollection());
collectionsCombo.setDisplayField("nom");
collectionsCombo.setForceSelection(true);
collectionsCombo.setValidator(new Validator() {
@Override
public String validate(Field<?> field, String value) {
String retour = null;
if (field.getRawValue().equals("")) {
field.setValue(null);
} else if (collectionsCombo.getStore().findModel("nom", field.getRawValue()) == null) {
String contenuBrut = field.getRawValue();
field.setValue(null);
field.setRawValue(contenuBrut);
retour = "Veuillez sélectionner une valeur ou laisser le champ vide";
}
return retour;
}
});
collectionsCombo.setTriggerAction(TriggerAction.ALL);
collectionsCombo.setStore(new ListStore<Collection>());
liaisonFieldSet.add(collectionsCombo, new FormData(450, 0));
mediateur.selectionnerCollectionParProjet(this, null);
this.add(liaisonFieldSet);
}
private void creerFieldsetAdministratif() {
// Fieldset ADMINISTRATIF
FieldSet administratifFieldSet = new FieldSet();
administratifFieldSet.setHeading(i18nC.collectionGeneralTitre());
administratifFieldSet.setCollapsible(true);
administratifFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
typeDepotCombo = new ChampComboBoxListeValeurs(i18nC.typeDepot(), "typeDepot", tabIndex++);
administratifFieldSet.add(typeDepotCombo);
coteChp = new TextField<String>();
coteChp.setTabIndex(tabIndex++);
coteChp.setFieldLabel(i18nC.cote());
administratifFieldSet.add(coteChp, new FormData(450, 0));
idAlternatifsChp = new ChampMultiValeurs(i18nC.idAlternatifCollection());
administratifFieldSet.add(idAlternatifsChp);
nomsAlternatifsChp = new ChampMultiValeurs(i18nC.intituleAlternatifCollection());
administratifFieldSet.add(nomsAlternatifsChp);
codesAlternatifsChp = new ChampMultiValeurs(i18nC.codeAlternatifCollection());
administratifFieldSet.add(codesAlternatifsChp);
this.add(administratifFieldSet);
}
private void creerFieldsetDescription() {
// Fieldset DESCRIPTION
FieldSet descriptionFieldSet = new FieldSet();
descriptionFieldSet.setHeading(i18nC.collectionDescriptionTitre());
descriptionFieldSet.setCollapsible(true);
descriptionFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
 
descriptionChp = new TextArea();
descriptionChp.setFieldLabel(i18nC.description());
descriptionFieldSet.add(descriptionChp, new FormData(550, 0));
descriptionSpecialisteChp = new TextArea();
descriptionSpecialisteChp.setFieldLabel(i18nC.descriptionSpecialiste());
descriptionFieldSet.add(descriptionSpecialisteChp, new FormData(550, 0));
historiqueChp = new TextArea();
historiqueChp.setFieldLabel(i18nC.historique());
descriptionFieldSet.add(historiqueChp, new FormData(550, 0));
urlsChp = new ChampMultiValeurs(i18nC.urlsCollection());
descriptionFieldSet.add(urlsChp);
 
this.add(descriptionFieldSet);
}
private void creerFieldsetCouverture() {
FieldSet couvertureFieldSet = new FieldSet();
couvertureFieldSet.setHeading("Couvertures");
couvertureFieldSet.setCollapsible(true);
couvertureFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
periodeConstitutionChp = new ChampCaseACocher(i18nC.periodeConstitution(), "siecleNaturaliste", false);
couvertureFieldSet.add(periodeConstitutionChp);
groupementPrincipeCombo = new ChampComboBoxListeValeurs(i18nC.groupementPrincipeCollection(), "groupementPrincipe", tabIndex++);
groupementPrincipeCombo.setToolTip(i18nC.groupementPrincipeCollectionInfo());
couvertureFieldSet.add(groupementPrincipeCombo);
butRealisationCombo = new ChampComboBoxListeValeurs(i18nC.butCollection(), "realisationBut", tabIndex++);
couvertureFieldSet.add(butRealisationCombo);
lieuCouvertureChp = new ChampMultiValeurs(i18nC.lieuCouvertureCollection());
couvertureFieldSet.add(lieuCouvertureChp);
this.add(couvertureFieldSet);
}
private void creerFieldsetType() {
FieldSet typeFieldSet = new FieldSet();
typeFieldSet.setHeading("Spécimens «types»");
typeFieldSet.setCollapsible(true);
typeFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
specimenTypeCombo = new ChampComboBoxListeValeurs(i18nC.specimenTypeCollection(), "onpi", tabIndex++);
typeFieldSet.add(specimenTypeCombo);
ConteneurMultiChamps nbreTypeConteneur = new ConteneurMultiChamps(i18nC.nbreSpecimenTypeCollection());
nbreTypeChp = new NumberField();
nbreTypeChp.setFormat(NumberFormat.getFormat("#"));
nbreTypeConteneur.ajouterChamp(nbreTypeChp, new HBoxLayoutData(new Margins(0, 20, 0, 0)));
precisionTypeNbreCombo = new ChampComboBoxListeValeurs(null, "ea");
precisionTypeNbreCombo.setTrie("id_valeur");
precisionTypeNbreCombo.setEmptyText(i18nC.precisionNbreSpecimenTypeCollectionChpVide());
nbreTypeConteneur.ajouterChamp(precisionTypeNbreCombo);
typeFieldSet.add(nbreTypeConteneur);
classementSpecimenTypeCombo = new ChampComboBoxListeValeurs(i18nC.classementSpecimenTypeCollection(), "typeClassement", tabIndex++);
typeFieldSet.add(classementSpecimenTypeCombo);
Text infoType = new Text(i18nC.specimenTypeCollectionInfo());
typeFieldSet.add(infoType);
this.add(typeFieldSet);
}
public void peupler() {
initialiserCollection();
if (collection != null) {
idCollectionChp.setValue(collection.getId());
setValeurComboProjets();
setValeurComboStructures();
setValeurComboCollections();
typeDepotCombo.peupler(collection.getTypeDepot());
coteChp.setValue(collection.getCote());
idAlternatifsChp.peupler(collection.getIdAlternatif());
nomsAlternatifsChp.peupler(collection.getNomAlternatif());
codesAlternatifsChp.peupler(collection.getCode());
descriptionChp.setValue(collection.getDescription());
descriptionSpecialisteChp.setValue(collection.getDescriptionSpecialiste());
historiqueChp.setValue(collection.getHistorique());
urlsChp.peupler(collection.getUrls());
periodeConstitutionChp.peupler(collection.getPeriodeConstitution());
groupementPrincipeCombo.peupler(collection.getGroupementPrincipe());
butRealisationCombo.peupler(collection.getGroupementBut());
lieuCouvertureChp.peupler(collection.getCouvertureLieu());
specimenTypeCombo.peupler(collection.getSpecimenType());
nbreTypeChp.setValue((collection.getSpecimenTypeNbre().equals("") ? 0 : Integer.parseInt(collection.getSpecimenTypeNbre())));
precisionTypeNbreCombo.peupler(collection.getSpecimenTypeNbrePrecision());
classementSpecimenTypeCombo.peupler(collection.getSpecimenTypeClassement());
}
}
public ArrayList<String> verifier() {
ArrayList<String> messages = new ArrayList<String>();
if (projetsCombo.getValue() == null || !projetsCombo.isValid()) {
messages.add(i18nM.selectionObligatoire(i18nC.articleUn()+" "+i18nC.projetSingulier(), i18nC.articleLa()+" "+i18nC.collectionSingulier()));
}
return messages;
}
public void collecter() {
initialiserCollection();
if (etreAccede()) {
collectionCollectee.setId(idCollectionChp.getValue());
collectionCollectee.setIdProjet(getValeurComboProjets());
collectionCollectee.setIdStructure(getValeurComboStructures());
collectionCollectee.setCollectionMereId(getValeurComboCollections());
collectionCollectee.setTypeDepot(typeDepotCombo.getValeur());
collectionCollectee.setCote(coteChp.getValue());
collectionCollectee.setIdAlternatif(idAlternatifsChp.getValeurs());
collectionCollectee.setNomAlternatif(nomsAlternatifsChp.getValeurs());
collectionCollectee.setCode(codesAlternatifsChp.getValeurs());
collectionCollectee.setDescription(descriptionChp.getValue());
collectionCollectee.setDescriptionSpecialiste(descriptionSpecialisteChp.getValue());
collectionCollectee.setHistorique(historiqueChp.getValue());
collectionCollectee.setUrls(urlsChp.getValeurs());
collectionCollectee.setPeriodeConstitution(periodeConstitutionChp.getValeur());
collectionCollectee.setGroupementPrincipe(groupementPrincipeCombo.getValeur());
collectionCollectee.setGroupementBut(butRealisationCombo.getValeur());
collectionCollectee.setCouvertureLieu(lieuCouvertureChp.getValeurs());
collectionCollectee.setSpecimenType(specimenTypeCombo.getValeur());
if (nbreTypeChp.getValue() != null) {
collectionCollectee.setSpecimenTypeNbre(nbreTypeChp.getValue().toString());
}
collectionCollectee.setSpecimenTypeNbrePrecision(precisionTypeNbreCombo.getValeur());
collectionCollectee.setSpecimenTypeClassement(classementSpecimenTypeCombo.getValeur());
}
}
private String getValeurComboProjets() {
String valeur = "";
if (projetsCombo.getValue() != null) {
valeur = projetsCombo.getValue().getId();
}
return valeur;
}
private void setValeurComboProjets() {
if (projetsCombo.getStore() != null && collection != null) {
projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", collection.getIdProjet()));
}
}
private String getValeurComboStructures() {
String valeur = "";
if (structuresCombo.getValue() != null) {
valeur = structuresCombo.getValue().getId();
}
return valeur;
}
private void setValeurComboStructures() {
if (structuresCombo.getStore() != null && collection != null) {
structuresCombo.setValue(structuresCombo.getStore().findModel("id_structure", collection.getIdStructure()));
}
}
private String getValeurComboCollections() {
String valeur = "";
if (collectionsCombo.getValue() != null) {
valeur = collectionsCombo.getValue().getId();
}
return valeur;
}
private void setValeurComboCollections() {
if (collectionsCombo.getStore() != null && collection != null) {
collectionsCombo.setValue(collectionsCombo.getStore().findModel("id_collection", collection.getCollectionMereId()));
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ProjetListe) {
ProjetListe projets = (ProjetListe) nouvellesDonnees;
Formulaire.rafraichirComboBox(projets, projetsCombo);
setValeurComboProjets();
} else if (nouvellesDonnees instanceof StructureListe) {
StructureListe structures = (StructureListe) nouvellesDonnees;
Formulaire.rafraichirComboBox(structures, structuresCombo);
setValeurComboStructures();
} else if (nouvellesDonnees instanceof CollectionListe) {
CollectionListe collections = (CollectionListe) nouvellesDonnees;
Formulaire.rafraichirComboBox(collections, collectionsCombo);
setValeurComboCollections();
} else if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
rafraichirValeurListe(listeValeurs);
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
}
private void rafraichirValeurListe(ValeurListe listeValeurs) {
if (listeValeurs.getId().equals(config.getListeId("typeDepot"))) {
Formulaire.rafraichirComboBox(listeValeurs, typeDepotCombo);
} else {
Debug.log("Gestion de la liste "+listeValeurs.getId()+" non implémenté!");
}
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionDetailVue.java
New file
0,0 → 1,1116
package org.tela_botanica.client.vues.collection;
 
import java.util.HashMap;
import java.util.Iterator;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionACommentaire;
import org.tela_botanica.client.modeles.collection.CollectionACommentaireListe;
import org.tela_botanica.client.modeles.collection.CollectionAPersonne;
import org.tela_botanica.client.modeles.collection.CollectionAPersonneListe;
import org.tela_botanica.client.modeles.collection.CollectionAPublication;
import org.tela_botanica.client.modeles.collection.CollectionAPublicationListe;
import org.tela_botanica.client.modeles.collection.CollectionBotanique;
import org.tela_botanica.client.modeles.collection.UniteBase;
import org.tela_botanica.client.modeles.collection.UniteRangement;
import org.tela_botanica.client.modeles.commentaire.Commentaire;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.structure.Structure;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilNombre;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.DetailVue;
 
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Html;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
 
public class CollectionDetailVue extends DetailVue implements Rafraichissable {
 
private Collection collection = null;
private boolean collectionChargementOk = false;
private boolean personnesLieesChargementOk = false;
private boolean publicationsLieesChargementOk = false;
private boolean commentairesLieesChargementOk = false;
private Structure structure = null;
 
private String enteteTpl = null;
private String generalTpl = null;
private String personneTpl = null;
private String tableauPersonnesLieesTpl = null;
private String lignePersonneLieeTpl = null;
private String publicationTpl = null;
private String tableauPublicationsLieesTpl = null;
private String lignePublicationLieeTpl = null;
private String descriptionTpl = null;
private String contenuTpl = null;
private String inventaireTpl = null;
private String commentaireTpl = null;
private String tableauCommentairesLieesTpl = null;
private String ligneCommentaireLieeTpl = null;
private ContentPanel panneauPrincipal = null;
private Html entete = null;
private TabPanel onglets = null;
private TabItem generalOnglet = null;
private TabItem personneOnglet = null;
private TabItem publicationOnglet = null;
private TabItem descriptionOnglet = null;
private TabItem contenuOnglet = null;
private TabItem inventaireOnglet = null;
private TabItem commentaireOnglet = null;
private String tableauUniteRangementTpl;
private String ligneUniteRangementTpl;
private String tableauUniteBaseTpl;
private String ligneUniteBaseTpl;
 
public CollectionDetailVue(Mediateur mediateurCourant) {
super(mediateurCourant);
initialiserTousLesTpl();
chargerOntologie();
panneauPrincipal = new ContentPanel();
panneauPrincipal.setLayout(new FitLayout());
panneauPrincipal.setHeaderVisible(false);
panneauPrincipal.setBodyBorder(false);
entete = new Html();
entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
panneauPrincipal.setTopComponent(entete);
onglets = new TabPanel();
onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
onglets.setBodyBorder(false);
 
generalOnglet = new TabItem(i18nC.structureInfoGeneral());
generalOnglet.setLayout(new AnchorLayout());
generalOnglet.setScrollMode(Scroll.AUTO);
onglets.add(generalOnglet);
personneOnglet = new TabItem(i18nC.collectionPersonne());
personneOnglet.setLayout(new AnchorLayout());
personneOnglet.setScrollMode(Scroll.AUTO);
onglets.add(personneOnglet);
publicationOnglet = new TabItem(i18nC.collectionPublication());
publicationOnglet.setLayout(new AnchorLayout());
publicationOnglet.setScrollMode(Scroll.AUTO);
onglets.add(publicationOnglet);
descriptionOnglet = new TabItem(i18nC.collectionDescription());
descriptionOnglet.setLayout(new AnchorLayout());
descriptionOnglet.setScrollMode(Scroll.AUTO);
onglets.add(descriptionOnglet);
contenuOnglet = new TabItem(i18nC.collectionContenu());
contenuOnglet.setLayout(new AnchorLayout());
contenuOnglet.setScrollMode(Scroll.AUTO);
onglets.add(contenuOnglet);
inventaireOnglet = new TabItem(i18nC.collectionInventaire());
inventaireOnglet.setLayout(new AnchorLayout());
inventaireOnglet.setScrollMode(Scroll.AUTO);
onglets.add(inventaireOnglet);
commentaireOnglet = new TabItem(i18nC.collectionCommentaire());
commentaireOnglet.setLayout(new AnchorLayout());
commentaireOnglet.setScrollMode(Scroll.AUTO);
onglets.add(commentaireOnglet);
panneauPrincipal.add(onglets);
add(panneauPrincipal);
}
private void initialiserTousLesTpl() {
initialiserEnteteHtmlTpl();
initialiserGeneralTpl();
initialiserPersonneTpl();
initialiserTableauPersonnesLieesTpl();
initialiserLignePersonneLieeTpl();
initialiserPublicationTpl();
initialiserTableauPublicationsLieesTpl();
initialiserLignePublicationLieeTpl();
initialiserContenuTpl();
initialiserDescriptionTpl();
initialiserTableauUniteRangementTpl();
initialiserLigneUniteRangementTpl();
initialiserTableauUniteBaseTpl();
initialiserLigneUniteBaseTpl();
initialiserInventaireTpl();
initialiserCommentaireTpl();
initialiserTableauCommentairesLieesTpl();
initialiserLigneCommentaireLieeTpl();
}
private void initialiserEnteteHtmlTpl() {
enteteTpl =
"<div id='{css_id}'>"+
" <h1>{nom}</h1>"+
" <h2>{structure}<span class='{css_meta}'>{projet} <br /> {i18n_id}:{id} - {guid}</span></h2>" +
"</div>";
}
private void initialiserGeneralTpl() {
generalTpl =
"<div class='{css_corps}'>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_identification}</h2>"+
" <span class='{css_label}'>{i18n_nom_alternatif} :</span> {nom_alternatif}<br />"+
" <span class='{css_label}'>{i18n_mere} :</span> {mere}<br />"+
" <span class='{css_label}'>{i18n_type_ncd} :</span> {type_ncd}<br />"+
" <span class='{css_label}'>{i18n_type_depot} :</span> {type_depot}<br />"+
" <span class='{css_label}'>{i18n_id_alternatif} :</span> {id_alternatif}<br />"+
" <span class='{css_label}'>{i18n_code} :</span> {code}<br />"+
" <span class='{css_label}'>{i18n_cote} :</span> {cote}<br />"+
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_general_collection_titre}</h2>"+
" <span class='{css_label}'>{i18n_description} :</span> {description}<br />"+
" <span class='{css_label}'>{i18n_description_specialiste} :</span> {description_specialiste}<br />"+
" <span class='{css_label}'>{i18n_historique} :</span> {historique}<br />"+
" <span class='{css_label}'>{i18n_web} :</span> {web}<br />"+
" </div>"+
" <hr class='{css_clear}'/>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_couverture_collection_titre}</h2>"+
" <span class='{css_label}'>{i18n_groupement_principe} :</span> {groupement_principe}<br />"+
" <span class='{css_label}'>{i18n_groupement_but} :</span> {groupement_but}<br />"+
" <span class='{css_label}'>{i18n_couverture_geo} :</span> {couverture_geo}<br />"+
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_specimen_type_titre}</h2>"+
" <span class='{css_label}'>{i18n_specimen_type_presence} :</span> {specimen_type_presence}<br />"+
" <span class='{css_label}'>{i18n_specimen_type_nombre} :</span> {specimen_type_nombre}<br />"+
" <span class='{css_label}'>{i18n_specimen_type_classement} :</span> {specimen_type_classement}<br />"+
" </div>"+
" <hr class='{css_clear}'/>"+
"</div>";
}
private void initialiserPersonneTpl() {
personneTpl =
"<div class='{css_corps}'>"+
" <h2>{i18n_titre_personne}</h2>"+
" {tableau_personnes_liees}"+
"</div>";
}
private void initialiserTableauPersonnesLieesTpl() {
tableauPersonnesLieesTpl =
"<table>"+
" <thead>"+
" <tr>" +
" <th>{i18n_relation}</th>" +
" <th>{i18n_nom_complet}</th>" +
" <th>{i18n_nom}</th>" +
" <th>{i18n_prenom}</th>" +
" <th>{i18n_naissance_date}</th>" +
" <th>{i18n_naissance_lieu}</th>" +
" <th>{i18n_etre_decede}</th>" +
" <th>{i18n_deces_date}</th>" +
" <th>{i18n_deces_lieu}</th>" +
" </tr>"+
" </thead>"+
" <tbody>"+
" {lignes}"+
" </tbody>"+
"</table>";
}
private void initialiserLignePersonneLieeTpl() {
lignePersonneLieeTpl =
"<tr>"+
" <td>{relation}</td>"+
" <td>{nom_complet}</td>"+
" <td>{nom}</td>"+
" <td>{prenom}</td>"+
" <td>{naissance_date}</td>"+
" <td>{naissance_lieu}</td>"+
" <td>{etre_decede}</td>"+
" <td>{deces_date}</td>"+
" <td>{deces_lieu}</td>"+
"</tr>";
}
private void initialiserPublicationTpl() {
publicationTpl =
"<div class='{css_corps}'>"+
" <h2>{i18n_titre_publication}</h2>"+
" {tableau_publications_liees}"+
"</div>";
}
private void initialiserTableauPublicationsLieesTpl() {
tableauPublicationsLieesTpl =
"<table>"+
" <thead>"+
" <tr>" +
" <th>{i18n_auteur}</th>" +
" <th>{i18n_titre}</th>" +
" <th>{i18n_revue}</th>" +
" <th>{i18n_editeur}</th>" +
" <th>{i18n_annee}</th>" +
" <th>{i18n_nvt}</th>" +
" <th>{i18n_fascicule}</th>" +
" <th>{i18n_page}</th>" +
" </tr>"+
" </thead>"+
" <tbody>"+
" {lignes}"+
" </tbody>"+
"</table>";
}
private void initialiserLignePublicationLieeTpl() {
lignePublicationLieeTpl =
"<tr>"+
" <td>{auteur}</td>"+
" <td>{titre}</td>"+
" <td>{revue}</td>"+
" <td>{editeur}</td>"+
" <td>{annee}</td>"+
" <td>{nvt}</td>"+
" <td>{fascicule}</td>"+
" <td>{page}</td>"+
"</tr>";
}
private void initialiserDescriptionTpl() {
descriptionTpl =
"<div class='{css_corps}'>"+
" <div>"+
" <h2>{i18n_titre_description}</h2>"+
" <span class='{css_label}'>{i18n_type_botanique} :</span> {type_botanique}<br />"+
" <span class='{css_label}'>{i18n_nbre_echantillon} :</span> {nbre_echantillon}<br />"+
" </div>"+
" <div>"+
" <h2>{i18n_titre_unite_rangement}</h2>"+
" <span class='{css_label}'>{i18n_etat_unite_rangement} :</span> {etat_unite_rangement}<br />"+
" {tableau_unite_rangement}"+
" </div>"+
" <div>"+
" <h2>{i18n_titre_unite_base}</h2>"+
" {tableau_unite_base}"+
" </div>"+
" <div>"+
" <h2>{i18n_titre_conservation}</h2>"+
" <span class='{css_label}'>{i18n_type_papier} :</span> {type_papier}<br />"+
" <span class='{css_label}'>{i18n_conservation_methode} :</span> {conservation_methode}<br />"+
" </div>"+
" <div>"+
" <h2>{i18n_titre_etiquette}</h2>"+
" <span class='{css_label}'>{i18n_specimen_fixation_pourcent} :</span> {specimen_fixation_pourcent}<br />"+
" <span class='{css_label}'>{i18n_etiquette_fixation_pourcent} :</span> {etiquette_fixation_pourcent}<br />"+
" <span class='{css_label}'>{i18n_specimen_fixation_methode} :</span> {specimen_fixation_methode}<br />"+
" <span class='{css_label}'>{i18n_etiquette_fixation_methode_support} :</span> {etiquette_fixation_methode_support}<br />"+
" <span class='{css_label}'>{i18n_etiquette_fixation_methode_specimen} :</span> {etiquette_fixation_methode_specimen}<br />"+
" <span class='{css_label}'>{i18n_etiquette_type_ecriture} :</span> {etiquette_type_ecriture}<br />"+
" </div>"+
" <div>"+
" <h2>{i18n_titre_traitement}</h2>"+
" <span class='{css_label}'>{i18n_traitement} :</span> {traitement}<br />"+
" <span class='{css_label}'>{i18n_traitement_poison} :</span> {traitement_poison}<br />"+
" <span class='{css_label}'>{i18n_traitement_insecte} :</span> {traitement_insecte}<br />"+
" </div>"+
" <div>"+
" <h2>{i18n_titre_etat_degradation}</h2>"+
" <span class='{css_label}'>{i18n_etat_general} :</span> {etat_general}<br />"+
" <span class='{css_label}'>{i18n_degradation_specimen} :</span> {degradation_specimen}<br />"+
" <span class='{css_label}'>{i18n_degradation_presentation} :</span> {degradation_presentation}<br />"+
" <span class='{css_label}'>{i18n_determination} :</span> {determination}<br />"+
" </div>"+
"</div>";
}
private void initialiserTableauUniteRangementTpl() {
tableauUniteRangementTpl =
"<table>"+
" <thead>"+
" <tr>" +
" <th>{i18n_type}</th>" +
" <th>{i18n_nombre}</th>" +
" <th>{i18n_precision}</th>" +
" <th>{i18n_format}</th>" +
" </tr>"+
" </thead>"+
" <tbody>"+
" {lignes}"+
" </tbody>"+
"</table>";
}
private void initialiserLigneUniteRangementTpl() {
ligneUniteRangementTpl =
"<tr>"+
" <td>{type}</td>"+
" <td>{nombre}</td>"+
" <td>{precision}</td>"+
" <td>{format}</td>"+
"</tr>";
}
private void initialiserTableauUniteBaseTpl() {
tableauUniteBaseTpl =
"<table>"+
" <thead>"+
" <tr>" +
" <th colspan='4'>{i18n_unite_base}</th>" +
" <th colspan='2'>{i18n_part}</th>" +
" <th colspan='2'>{i18n_sp}</th>" +
" </tr>"+
" <tr>" +
" <th>{i18n_type}</th>" +
" <th>{i18n_nombre}</th>" +
" <th>{i18n_precision}</th>" +
" <th>{i18n_format}</th>" +
" <th>{i18n_nombre}</th>" +
" <th>{i18n_precision}</th>" +
" <th>{i18n_nombre}</th>" +
" <th>{i18n_precision}</th>" +
" </tr>"+
" </thead>"+
" <tbody>"+
" {lignes}"+
" </tbody>"+
"</table>";
}
private void initialiserLigneUniteBaseTpl() {
ligneUniteBaseTpl =
"<tr>"+
" <td>{type}</td>"+
" <td>{nombre}</td>"+
" <td>{precision}</td>"+
" <td>{format}</td>"+
" <td>{part_nombre}</td>"+
" <td>{part_precision}</td>"+
" <td>{sp_nombre}</td>"+
" <td>{sp_precision}</td>"+
"</tr>";
}
private void initialiserContenuTpl() {
contenuTpl =
"<div class='{css_corps}'>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_nature}</h2>"+
" <span class='{css_label}'>{i18n_nature} :</span> {nature}<br />"+
" <span class='{css_label}'>{i18n_specialite} :</span> {specialite}<br />"+
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_constitution}</h2>"+
" <span class='{css_label}'>{i18n_periode} :</span> {periode}<br />"+
" <span class='{css_label}'>{i18n_date_debut} :</span> {date_debut}<br />"+
" <span class='{css_label}'>{i18n_date_fin} :</span> {date_fin}<br />"+
" </div>"+
" <hr class='{css_clear}'/>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_classement}</h2>"+
" <span class='{css_label}'>{i18n_classement_etat} :</span> {classement_etat}<br />"+
" <span class='{css_label}'>{i18n_classement} :</span> {classement}<br />"+
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_etiquette}</h2>"+
" <span class='{css_label}'>{i18n_etiquette_renseignement} :</span> {etiquette_renseignement}<br />"+
" <span class='{css_label}'>{i18n_precision_localite} :</span> {precision_localite}<br />"+
" <span class='{css_label}'>{i18n_precision_date} :</span> {precision_date}<br />"+
" <span class='{css_label}'>{i18n_etiquette_annotation} :</span> {etiquette_annotation}<br />"+
" </div>"+
" <hr class='{css_clear}'/>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_integree}</h2>"+
" <span class='{css_label}'>{i18n_collection_integration} :</span> {collection_integration}<br />"+
" <span class='{css_label}'>{i18n_collection_integration_info} :</span> {collection_integration_info}<br />"+
" </div>"+
"</div>";
}
private void initialiserInventaireTpl() {
inventaireTpl =
"<div class='{css_corps}'>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_inventaire}</h2>"+
" <span class='{css_label}'>{i18n_existence} :</span> {existence}<br />"+
" <span class='{css_label}'>{i18n_participation_auteur} :</span> {participation_auteur}<br />"+
" <span class='{css_label}'>{i18n_forme} :</span> {forme}<br />"+
" <span class='{css_label}'>{i18n_info} :</span> {info}<br />"+
" <span class='{css_label}'>{i18n_digital} :</span> {digital}<br />"+
" <span class='{css_label}'>{i18n_digital_pourcent} :</span> {digital_pourcent}<br />"+
" <span class='{css_label}'>{i18n_etat} :</span> {etat}<br />"+
" <span class='{css_label}'>{i18n_type_donnee} :</span> {type_donnee}<br />"+
" </div>"+
" <hr class='{css_clear}'/>"+
"</div>";
}
private void initialiserCommentaireTpl() {
commentaireTpl =
"<div class='{css_corps}'>"+
" <h2>{i18n_titre_commentaire}</h2>"+
" {tableau_commentaires_liees}"+
"</div>";
}
private void initialiserTableauCommentairesLieesTpl() {
tableauCommentairesLieesTpl =
"<table>"+
" <thead>"+
" <tr>" +
" <th>{i18n_type}</th>" +
" <th>{i18n_titre}</th>" +
" <th>{i18n_ponderation}</th>" +
" <th>{i18n_public}</th>" +
" </tr>"+
" </thead>"+
" <tbody>"+
" {lignes}"+
" </tbody>"+
"</table>";
}
private void initialiserLigneCommentaireLieeTpl() {
ligneCommentaireLieeTpl =
"<tr>"+
" <td>{type}</td>"+
" <td>{titre}</td>"+
" <td>{ponderation}</td>"+
" <td>{public}</td>"+
"</tr>"+
"<tr>"+
" <td colspan='4'>{texte}</td>"+
"</tr>";
}
private void chargerOntologie() {
String[] listesCodes = {"typeCollectionBota", "typeCollectionNcd", "typeDepot", "groupementPrincipe",
"realisationBut", "onpi", "ea", "typeClassement", "relationPersonneCollection", "ion",
"typeUniteRangement", "etat", "typeUniteBase", "typePapier", "methodeRangement", "methodeFixation",
"methodeFixationSurSpecimen", "typeEcriture", "poisonTraitement", "insecteTraitement", "specimenDegradation",
"niveauImportance", "supportDegradation", "niveauDetermination", "natureVegetale", "siecleNaturaliste",
"dateDebut", "dateFin", "etat", "onep", "onp", "inventaireForme", "inventaireLogiciel", "inventaireEtat",
"etatClassement", "typeCommentaireCollection"};
lancerChargementListesValeurs(listesCodes);
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Collection) {
collection = (Collection) nouvellesDonnees;
collectionChargementOk = true;
} else if (nouvellesDonnees instanceof ProjetListe) {
projets = (ProjetListe) nouvellesDonnees;
projetsChargementOk = true;
} else if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
receptionerListeValeurs(listeValeursReceptionnee);
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("liste_collection_a_personne")) {
lierCollectionAPersonne((CollectionAPersonneListe) info.getDonnee(0));
} else if (info.getType().equals("liste_collection_a_publication")) {
lierCollectionAPublication((CollectionAPublicationListe) info.getDonnee(0));
} else if (info.getType().equals("liste_collection_a_commentaire")) {
lierCollectionACommentaire((CollectionACommentaireListe) info.getDonnee(0));
}
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
if (avoirDonneesChargees()) {
afficherDetail();
}
}
protected void lierCollectionAPersonne(CollectionAPersonneListe personnes) {
collection.setPersonnesLiees(personnes);
personnesLieesChargementOk = true;
}
protected void lierCollectionAPublication(CollectionAPublicationListe publications) {
collection.setPublicationsLiees(publications);
publicationsLieesChargementOk = true;
}
protected void lierCollectionACommentaire(CollectionACommentaireListe commentaires) {
collection.setCommentairesLiees(commentaires);
commentairesLieesChargementOk = true;
}
private boolean avoirDonneesChargees() {
boolean ok = false;
//Debug.log("projetsChargementOk:"+projetsChargementOk+"-collectionChargementOk:"+collectionChargementOk+"-ontologieChargementOk:"+ontologieChargementOk+"-personnesLieesChargementOk:"+personnesLieesChargementOk+"-publicationsLieesChargementOk:"+publicationsLieesChargementOk);
if (projetsChargementOk && collectionChargementOk && ontologieChargementOk && personnesLieesChargementOk && publicationsLieesChargementOk && commentairesLieesChargementOk) {
ok = true;
}
return ok;
}
private void afficherDetail() {
if (collection != null) {
afficherEntete();
afficherIdentification();
afficherPersonne();
afficherPublication();
afficherDescription();
afficherContenu();
afficherInventaire();
afficherCommentaire();
}
layout();
}
private void afficherEntete() {
Params enteteParams = new Params();
enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
enteteParams.set("css_meta", ComposantClass.META);
enteteParams.set("i18n_id", i18nC.id());
enteteParams.set("nom", collection.getNom());
enteteParams.set("structure", collection.getStructureNom());
enteteParams.set("id", collection.getId());
enteteParams.set("guid", collection.getGuid());
enteteParams.set("projet", construireTxtProjet(collection.getIdProjet()));
String eHtml = Format.substitute(enteteTpl, enteteParams);
entete.getElement().setInnerHTML(eHtml);
}
private void afficherIdentification() {
Params generalParams = new Params();
generalParams.set("i18n_titre_identification", i18nC.titreAdministratif());
generalParams.set("i18n_nom_alternatif", i18nC.intituleAlternatifCollection());
generalParams.set("i18n_mere", i18nC.collectionMere());
generalParams.set("i18n_type_ncd", i18nC.typeCollectionNcd());
generalParams.set("i18n_type_depot", i18nC.typeDepot());
generalParams.set("i18n_id_alternatif", i18nC.idAlternatifCollection());
generalParams.set("i18n_code", i18nC.codeAlternatifCollection());
generalParams.set("i18n_cote", i18nC.cote());
generalParams.set("i18n_general_collection_titre", i18nC.collectionGeneralTitre());
generalParams.set("i18n_description", i18nC.description());
generalParams.set("i18n_description_specialiste", i18nC.descriptionSpecialiste());
generalParams.set("i18n_historique", i18nC.historique());
generalParams.set("i18n_web", i18nC.siteWeb());
generalParams.set("i18n_couverture_collection_titre", i18nC.collectionCouvertureTitre());
generalParams.set("i18n_groupement_principe", i18nC.groupementPrincipe());
generalParams.set("i18n_groupement_but", i18nC.groupementBut());
generalParams.set("i18n_couverture_geo", i18nC.couvertureGeo());
generalParams.set("i18n_specimen_type_titre", i18nC.collectionSpecimenTypeTitre());
generalParams.set("i18n_specimen_type_presence", i18nC.specimenTypeCollectionDetail());
generalParams.set("i18n_specimen_type_nombre", i18nC.nbreSpecimenTypeCollectionDetail());
generalParams.set("i18n_specimen_type_classement", i18nC.classementSpecimenTypeCollectionDetail());
String nomAlternatif = construireTxtTruck(collection.getNomAlternatif());
String typeNcd = construireTxtListeOntologie(collection.getTypeNcd());
String typeDepot = construireTxtListeOntologie(collection.getTypeDepot());
String idAlternatif = construireTxtTruck(collection.getIdAlternatif());
String code = construireTxtTruck(collection.getCode());
String urls = construireTxtTruck(collection.getUrls());
String groupementBut = construireTxtListeOntologie(collection.getGroupementBut());
String groupementPrincipe = construireTxtListeOntologie(collection.getGroupementPrincipe());
String couvertureGeo = construireTxtTruck(collection.getCouvertureLieu());
String specimenTypePresence = construireTxtListeOntologie(collection.getSpecimenType());
String specimenTypeNombrePrecision = construireTxtListeOntologie(collection.getSpecimenTypeNbrePrecision());
String specimenTypeNombre = "";
if (!collection.getSpecimenTypeNbre().equals("0") && !collection.getSpecimenTypeNbre().equals("")) {
specimenTypeNombre = collection.getSpecimenTypeNbre()+" ("+specimenTypeNombrePrecision+")";
}
String specimenTypeClassement = construireTxtListeOntologie(collection.getSpecimenTypeClassement());
generalParams.set("nom_alternatif", nomAlternatif);
generalParams.set("mere", collection.getCollectionMereNom());
generalParams.set("type_ncd", typeNcd);
generalParams.set("type_depot", typeDepot);
generalParams.set("id_alternatif", idAlternatif);
generalParams.set("code", code);
generalParams.set("cote", collection.getCote());
generalParams.set("description", collection.getDescription());
generalParams.set("description_specialiste", collection.getDescriptionSpecialiste());
generalParams.set("historique", collection.getHistorique());
generalParams.set("web", urls);
generalParams.set("groupement_principe", groupementPrincipe);
generalParams.set("groupement_but", groupementBut);
generalParams.set("couverture_geo", couvertureGeo);
generalParams.set("specimen_type_presence", specimenTypePresence);
generalParams.set("specimen_type_nombre", specimenTypeNombre);
generalParams.set("specimen_type_classement", specimenTypeClassement);
afficherOnglet(generalTpl, generalParams, generalOnglet);
}
private void afficherPersonne() {
String tableauPersonneHtml = "";
if (collection.getPersonnesLiees() != null && collection.getPersonnesLiees().size() > 0) {
tableauPersonneHtml = construireTableauPersonnesLiees();
}
Params personneParams = new Params();
personneParams.set("i18n_titre_personne", i18nC.collectionPersonneTitre());
personneParams.set("tableau_personnes_liees", tableauPersonneHtml);
afficherOnglet(personneTpl, personneParams, personneOnglet);
}
private String construireTableauPersonnesLiees() {
Params contenuParams = new Params();
contenuParams.set("i18n_relation", i18nC.typeRelationPersonneCollection());
contenuParams.set("i18n_nom_complet", i18nC.personneNomComplet());
contenuParams.set("i18n_prenom", i18nC.personnePrenom());
contenuParams.set("i18n_nom", i18nC.personneNom());
contenuParams.set("i18n_naissance_date", i18nC.personneDateNaissance());
contenuParams.set("i18n_naissance_lieu", i18nC.personneLieuNaissance());
contenuParams.set("i18n_etre_decede", i18nC.personneDeces());
contenuParams.set("i18n_deces_date", i18nC.personneDateDeces());
contenuParams.set("i18n_deces_lieu", i18nC.personneLieuDeces());
String lignesPersonnel = "";
if (collection.getPersonnesLiees() != null) {
Iterator<String> it = collection.getPersonnesLiees().keySet().iterator();
while (it.hasNext()) {
CollectionAPersonne relationCollectionAPersonne = collection.getPersonnesLiees().get(it.next());
Personne personne = relationCollectionAPersonne.getPersonne();
String relation = construireTxtListeOntologie(relationCollectionAPersonne.getIdRole());
String etreDecede = construireTxtListeOntologie(personne.getDeces());
Params ligneParams = new Params();
ligneParams.set("relation", relation);
ligneParams.set("nom_complet", personne.getNomComplet());
ligneParams.set("nom", personne.getNom());
ligneParams.set("prenom", personne.getPrenom());
ligneParams.set("naissance_date", personne.getNaissanceDate());
ligneParams.set("naissance_lieu", personne.getNaissanceLieu());
ligneParams.set("etre_decede", etreDecede);
ligneParams.set("deces_date", personne.getDecesDate());
ligneParams.set("deces_lieu", personne.getDecesLieu());
lignesPersonnel += Format.substitute(lignePersonneLieeTpl, ligneParams);
}
}
String cHtml = i18nC.nonRenseigne();
if (!UtilString.isEmpty(lignesPersonnel)) {
contenuParams.set("lignes", lignesPersonnel);
cHtml = Format.substitute(tableauPersonnesLieesTpl, contenuParams);
}
return cHtml;
}
private void afficherPublication() {
Params publicationParams = new Params();
publicationParams.set("i18n_titre_publication", i18nC.collectionPublicationTitre());
String tableauPublicationHtml = "";
if (collection.getPersonnesLiees() != null && collection.getPersonnesLiees().size() > 0) {
tableauPublicationHtml = construireTableauPublicationsLiees();
}
publicationParams.set("tableau_publications_liees", tableauPublicationHtml);
afficherOnglet(publicationTpl, publicationParams, publicationOnglet);
}
private String construireTableauPublicationsLiees() {
Params contenuParams = new Params();
contenuParams.set("i18n_auteur", i18nC.publicationAuteurs());
contenuParams.set("i18n_titre", i18nC.publicationTitre());
contenuParams.set("i18n_revue", i18nC.publicationRevueCollection());
contenuParams.set("i18n_editeur", i18nC.publicationEditeur());
contenuParams.set("i18n_annee", i18nC.publicationDateParution());
contenuParams.set("i18n_nvt", i18nC.publicationNvt());
contenuParams.set("i18n_fascicule", i18nC.publicationFascicule());
contenuParams.set("i18n_page", i18nC.publicationPage());
String lignesPublication = "";
if (collection.getPublicationsLiees() != null) {
Iterator<String> it = collection.getPublicationsLiees().keySet().iterator();
while (it.hasNext()) {
CollectionAPublication relationCollectionAPublication = collection.getPublicationsLiees().get(it.next());
Publication publication = relationCollectionAPublication.getPublication();
Params ligneParams = new Params();
ligneParams.set("auteur", publication.getAuteur());
ligneParams.set("titre", publication.getTitre());
ligneParams.set("revue", publication.getCollection());
ligneParams.set("editeur", publication.getEditeur());
ligneParams.set("annee", publication.getAnneeParution());
ligneParams.set("nvt", publication.getIndicationNvt());
ligneParams.set("fascicule", publication.getFascicule());
ligneParams.set("page", publication.getPages());
lignesPublication += Format.substitute(lignePublicationLieeTpl, ligneParams);
}
}
 
String cHtml = i18nC.nonRenseigne();
if (!UtilString.isEmpty(lignesPublication)) {
contenuParams.set("lignes", lignesPublication);
cHtml = Format.substitute(tableauPublicationsLieesTpl, contenuParams);
}
return cHtml;
}
private void afficherDescription() {
Params descriptionParams = new Params();
descriptionParams.set("i18n_titre_description", i18nC.collectionDescriptionTitre());
descriptionParams.set("i18n_type_botanique", i18nC.typeCollectionBotanique());
descriptionParams.set("i18n_nbre_echantillon", i18nC.nbreEchantillon());
descriptionParams.set("i18n_titre_unite_rangement", i18nC.collectionUniteRangementTitre());
descriptionParams.set("i18n_etat_unite_rangement", i18nC.collectionUniteRangementEtatGeneralDetail());
descriptionParams.set("i18n_titre_unite_base", i18nC.collectionUniteBaseTitre());
descriptionParams.set("i18n_titre_conservation", i18nC.collectionTitreConservation());
descriptionParams.set("i18n_type_papier", i18nC.typePapierConservationDetail());
descriptionParams.set("i18n_conservation_methode", i18nC.methodeConservationDetail());
descriptionParams.set("i18n_titre_etiquette", i18nC.collectionTitreEtiquette());
descriptionParams.set("i18n_specimen_fixation_pourcent", i18nC.specimenFixationPourcent());
descriptionParams.set("i18n_etiquette_fixation_pourcent", i18nC.etiquetteFixationPourcent());
descriptionParams.set("i18n_specimen_fixation_methode", i18nC.specimenMethodeFixationDetail());
descriptionParams.set("i18n_etiquette_fixation_methode_support", i18nC.etiquetteMethodeFixationSurSupportDetail());
descriptionParams.set("i18n_etiquette_fixation_methode_specimen", i18nC.etiquetteMethodeFixationSurSpecimenDetail());
descriptionParams.set("i18n_etiquette_type_ecriture", i18nC.typeEcritureDetail());
descriptionParams.set("i18n_titre_traitement", i18nC.collectionTitreTraitement());
descriptionParams.set("i18n_traitement", i18nC.collectionTraitementDetail());
descriptionParams.set("i18n_traitement_poison", i18nC.collectionTraitementPoisonDetail());
descriptionParams.set("i18n_traitement_insecte", i18nC.collectionTraitementInsecteDetail());
descriptionParams.set("i18n_titre_etat_degradation", i18nC.collectionTitreEtatEtDegradation());
descriptionParams.set("i18n_etat_general", i18nC.collectionEtatGeneralDetail());
descriptionParams.set("i18n_degradation_specimen", i18nC.degradationSpecimenDetail());
descriptionParams.set("i18n_degradation_presentation", i18nC.degradationPresentationDetail());
descriptionParams.set("i18n_determination", i18nC.collectionDeterminationDetail());
String typeBota = construireTxtListeOntologie(collection.getBotanique().getType());
descriptionParams.set("type_botanique", typeBota);
descriptionParams.set("nbre_echantillon", collection.getBotanique().getNbreEchantillon());
CollectionBotanique collectionBotanique = collection.getBotanique();
String etatUniteRangement = construireTxtListeOntologie(collectionBotanique.getUniteRangementEtat());
String tableauUniteRangementHtml = construireTableauUniteRangement();
String tableauUniteBaseHtml = construireTableauUniteBase();
descriptionParams.set("tableau_unite_rangement", tableauUniteRangementHtml);
descriptionParams.set("etat_unite_rangement", etatUniteRangement);
descriptionParams.set("tableau_unite_base", tableauUniteBaseHtml);
String typePapier = construireTxtListeOntologie(collectionBotanique.getConservationPapierType());
String conservationMethode = construireTxtListeOntologie(collectionBotanique.getConservationMethode());
descriptionParams.set("type_papier", typePapier);
descriptionParams.set("conservation_methode", conservationMethode);
String specimenFixationMethode = construireTxtListeOntologie(collectionBotanique.getSpecimenFixationMethode());
String etiquetteFixationMethodeSupport = construireTxtListeOntologie(collectionBotanique.getEtiquetteFixationSupport());
String etiquetteFixationMethodeSpecimen = construireTxtListeOntologie(collectionBotanique.getEtiquetteFixationSpecimen());
String etiquetteTypeEcriture = construireTxtListeOntologie(collectionBotanique.getEtiquetteEcriture());
descriptionParams.set("specimen_fixation_pourcent", collectionBotanique.getSpecimenFixationPourcent());
descriptionParams.set("etiquette_fixation_pourcent", collectionBotanique.getEtiquetteFixationPourcent());
descriptionParams.set("specimen_fixation_methode", specimenFixationMethode);
descriptionParams.set("etiquette_fixation_methode_support", etiquetteFixationMethodeSupport);
descriptionParams.set("etiquette_fixation_methode_specimen", etiquetteFixationMethodeSpecimen);
descriptionParams.set("etiquette_type_ecriture", etiquetteTypeEcriture);
String traitement = construireTxtListeOntologie(collectionBotanique.getTraitement());
String traitementPoison = construireTxtListeOntologie(collectionBotanique.getTraitementPoison());
String traitementInsecte = construireTxtListeOntologie(collectionBotanique.getTraitementInsecte());
descriptionParams.set("traitement", traitement);
descriptionParams.set("traitement_poison", traitementPoison);
descriptionParams.set("traitement_insecte", traitementInsecte);
String etatGeneral = construireTxtListeOntologie(collectionBotanique.getEtatGeneral());
boolean valeurEstOntologie = false;
boolean typeEstOntologie = true;
boolean donneeEstOntologie = true;
String degradationSpecimen = construireTxtListeOntologie(collectionBotanique.getDegradationSpecimen(), valeurEstOntologie, typeEstOntologie, donneeEstOntologie);
String degradationPresentation = construireTxtListeOntologie(collectionBotanique.getDegradationPresentation(), valeurEstOntologie, typeEstOntologie, donneeEstOntologie);
String determination = construireTxtListeOntologie(collectionBotanique.getDetermination());
descriptionParams.set("etat_general", etatGeneral);
descriptionParams.set("degradation_specimen", degradationSpecimen);
descriptionParams.set("degradation_presentation", degradationPresentation);
descriptionParams.set("determination", determination);
afficherOnglet(descriptionTpl, descriptionParams, descriptionOnglet);
}
private String construireTableauUniteRangement() {
Params contenuParams = new Params();
contenuParams.set("i18n_type", i18nC.collectionUniteType());
contenuParams.set("i18n_nombre", i18nC.collectionUniteNbre());
contenuParams.set("i18n_precision", i18nC.collectionUnitePrecision());
contenuParams.set("i18n_format", i18nC.collectionUniteFormat());
CollectionBotanique collectionBotanique = collection.getBotanique();
HashMap<String,UniteRangement> unites = CollectionFormDescription.parserValeurUniteRangement(collectionBotanique.getUniteRangement());
String lignesUnite = "";
Iterator<String> it = unites.keySet().iterator();
while (it.hasNext()) {
String cle = it.next();
UniteRangement unite = unites.get(cle);
if (unite.getNombre() != 0) {
Params ligneParams = new Params();
if (unite.getTypeAutre()) {
ligneParams.set("type", unite.getType());
} else {
ligneParams.set("type", construireTxtListeOntologie(unite.getId()));
}
ligneParams.set("nombre", UtilNombre.formaterEnEntier(unite.getNombre()));
ligneParams.set("precision", unite.getPrecision());
ligneParams.set("format", unite.getFormat());
lignesUnite += Format.substitute(ligneUniteRangementTpl, ligneParams);
}
}
 
String cHtml = i18nC.nonRenseigne();
if (!UtilString.isEmpty(lignesUnite)) {
contenuParams.set("lignes", lignesUnite);
cHtml = Format.substitute(tableauUniteRangementTpl, contenuParams);
}
return cHtml;
}
private String construireTableauUniteBase() {
Params contenuParams = new Params();
contenuParams.set("i18n_unite_base", i18nC.collectionUniteBase());
contenuParams.set("i18n_part", i18nC.collectionUniteBasePart());
contenuParams.set("i18n_sp", i18nC.collectionUniteBaseSp());
contenuParams.set("i18n_type", i18nC.collectionUniteType());
contenuParams.set("i18n_nombre", i18nC.collectionUniteNbre());
contenuParams.set("i18n_precision", i18nC.collectionUnitePrecision());
contenuParams.set("i18n_format", i18nC.collectionUniteFormat());
CollectionBotanique collectionBotanique = collection.getBotanique();
HashMap<String,UniteBase> unites = CollectionFormDescription.parserValeurUniteBase(collectionBotanique.getUniteBase());
String lignesUnite = "";
Iterator<String> it = unites.keySet().iterator();
while (it.hasNext()) {
String cle = it.next();
UniteBase unite = unites.get(cle);
if (unite.getNombre() != 0 || unite.getNombrePart() != 0 || unite.getNombreSp() != 0) {
Params ligneParams = new Params();
if (unite.getTypeAutre()) {
ligneParams.set("type", unite.getType());
} else {
ligneParams.set("type", construireTxtListeOntologie(unite.getId()));
}
ligneParams.set("nombre", UtilNombre.formaterEnEntier(unite.getNombre()));
ligneParams.set("precision", unite.getPrecision());
ligneParams.set("format", unite.getFormat());
ligneParams.set("part_nombre", UtilNombre.formaterEnEntier(unite.getNombrePart()));
ligneParams.set("part_precision", unite.getPrecisionPart());
ligneParams.set("sp_nombre", UtilNombre.formaterEnEntier(unite.getNombreSp()));
ligneParams.set("sp_precision", unite.getPrecisionSp());
lignesUnite += Format.substitute(ligneUniteBaseTpl, ligneParams);
}
}
String cHtml = i18nC.nonRenseigne();
if (!UtilString.isEmpty(lignesUnite)) {
contenuParams.set("lignes", lignesUnite);
cHtml = Format.substitute(tableauUniteBaseTpl, contenuParams);
}
return cHtml;
}
private void afficherContenu() {
Params contenuParams = new Params();
contenuParams.set("i18n_titre_nature", i18nC.collectionNatureTitre());
contenuParams.set("i18n_nature", i18nC.natureVegetaleContenuDetail());
contenuParams.set("i18n_specialite", i18nC.specialiteCollectionDetail());
contenuParams.set("i18n_titre_constitution", i18nC.collectionConstitutionTitre());
contenuParams.set("i18n_periode", i18nC.periodeConstitutionDetail());
contenuParams.set("i18n_date_debut", i18nC.dateDebutCollectionDetail());
contenuParams.set("i18n_date_fin", i18nC.dateFinCollectionDetail());
contenuParams.set("i18n_titre_classement", i18nC.collectionClassementTitre());
contenuParams.set("i18n_classement_etat", i18nC.etatClassementCollectionDetail());
contenuParams.set("i18n_classement", i18nC.annotationClassementCollectionDetail());
contenuParams.set("i18n_titre_etiquette", i18nC.collectionEtiquetteTitre());
contenuParams.set("i18n_etiquette_renseignement", i18nC.etiquetteRenseignementDetail());
contenuParams.set("i18n_precision_localite", i18nC.precisionLocaliteDetail());
contenuParams.set("i18n_precision_date", i18nC.precisionDateDetail());
contenuParams.set("i18n_etiquette_annotation", i18nC.etiquetteAnnotationDetail());
contenuParams.set("i18n_titre_integree", i18nC.collectionIntegreeTitre());
contenuParams.set("i18n_collection_integration", i18nC.integreCollectionDetail());
contenuParams.set("i18n_collection_integration_info", i18nC.infoIntegreCollectionDetail());
CollectionBotanique collectionBotanique = collection.getBotanique();
String nature = construireTxtListeOntologie(collectionBotanique.getNature());
contenuParams.set("nature", nature);
contenuParams.set("specialite", collectionBotanique.getSpecialite());
String periode = construireTxtListeOntologie(collection.getPeriodeConstitution());
String dateDebut = collectionBotanique.getRecolteDateDebut();
String dateDebutPrecision = construireTxtListeOntologie(collectionBotanique.getRecolteDateDebutType());
String dateDebutRecolte = (UtilString.isEmpty(dateDebut)) ? "" : dateDebut+" ("+dateDebutPrecision+")";
String dateFin = collectionBotanique.getRecolteDateFin();
String dateFinPrecision = construireTxtListeOntologie(collectionBotanique.getRecolteDateFinType());
String dateFinRecolte = (UtilString.isEmpty(dateFin)) ? "" : dateFin+" ("+dateFinPrecision+")";
contenuParams.set("periode", periode);
contenuParams.set("date_debut", dateDebutRecolte);
contenuParams.set("date_fin", dateFinRecolte);
String classementEtat = construireTxtListeOntologie(collectionBotanique.getClassementEtat());
contenuParams.set("classement_etat", classementEtat);
contenuParams.set("classement", collectionBotanique.getClassementAnnotation());
String etiquetteRenseignements = "";
HashMap<String,String> infos = CollectionFormContenu.parserEtiquetteRenseignement(collectionBotanique.getEtiquetteRenseignement());
if (infos != null) {
Iterator<String> it = infos.keySet().iterator();
while (it.hasNext()) {
String cle = it.next();
if (cle.equals("AT")) {
etiquetteRenseignements += i18nC.etiquetteAuteurCollection();
} else if (cle.equals("F")) {
etiquetteRenseignements += i18nC.etiquetteFamille();
} else if (cle.equals("G")) {
etiquetteRenseignements += i18nC.etiquetteGenre();
} else if (cle.equals("SP")) {
etiquetteRenseignements += i18nC.etiquetteSp();
} else if (cle.equals("ASP")) {
etiquetteRenseignements += i18nC.etiquetteAuteurSp();
} else if (cle.equals("L")) {
etiquetteRenseignements += i18nC.etiquetteLocalite();
} else if (cle.equals("D")) {
etiquetteRenseignements += i18nC.etiquetteDateRecolte();
} else {
etiquetteRenseignements += i18nC.inconnue();
}
etiquetteRenseignements += ": "+infos.get(cle)+"%,";
}
}
String precisionLocalite = construireTxtListeOntologie(collectionBotanique.getPrecisionLocalite());
String precisionDate = construireTxtListeOntologie(collectionBotanique.getPrecisionDate());
contenuParams.set("etiquette_renseignement", etiquetteRenseignements);
contenuParams.set("precision_localite", precisionLocalite);
contenuParams.set("precision_date", precisionDate);
contenuParams.set("etiquette_annotation", collectionBotanique.getAnnotationsDiverses());
String collectionIntegration = construireTxtListeOntologie(collectionBotanique.getCollectionIntegre());
String collectionIntegrationInfo = construireTxtListeOntologie(collectionBotanique.getCollectionIntegreInfo());
contenuParams.set("collection_integration", collectionIntegration);
contenuParams.set("collection_integration_info", collectionIntegrationInfo);
afficherOnglet(contenuTpl, contenuParams, contenuOnglet);
}
private void afficherInventaire() {
Params inventaireParams = new Params();
inventaireParams.set("i18n_titre_inventaire", i18nC.collectionInventaireTitre());
inventaireParams.set("i18n_existence", i18nC.existenceInventaireCollectionDetail());
inventaireParams.set("i18n_participation_auteur", i18nC.auteurInventaireCollectionDetail());
inventaireParams.set("i18n_forme", i18nC.formeInventaireCollectionDetail());
inventaireParams.set("i18n_info", i18nC.infoInventaireCollectionDetail());
inventaireParams.set("i18n_digital", i18nC.digitalInventaireCollectionDetail());
inventaireParams.set("i18n_digital_pourcent", i18nC.pourcentDigitalInventaireCollectionDetail());
inventaireParams.set("i18n_etat", i18nC.etatInventaireCollectionDetail());
inventaireParams.set("i18n_type_donnee", i18nC.typeDonneeInventaireCollectionDetail());
CollectionBotanique collectionBotanique = collection.getBotanique();
String existence = construireTxtListeOntologie(collectionBotanique.getInventaire());
String participationAuteur = construireTxtListeOntologie(collectionBotanique.getInventaireAuteur());
String forme = construireTxtListeOntologie(collectionBotanique.getInventaireForme());
String digital = construireTxtListeOntologie(collectionBotanique.getInventaireDigital());
String digitalPourcent = collectionBotanique.getInventaireDigitalPourcent()+"%";
String etat = construireTxtListeOntologie(collectionBotanique.getInventaireEtat());
inventaireParams.set("existence", existence);
inventaireParams.set("participation_auteur", participationAuteur);
inventaireParams.set("forme", forme);
inventaireParams.set("info", collectionBotanique.getInventaireInfo());
inventaireParams.set("digital", digital);
inventaireParams.set("digital_pourcent", digitalPourcent);
inventaireParams.set("etat", etat);
inventaireParams.set("type_donnee", collectionBotanique.getInventaireDonneesTypes());
afficherOnglet(inventaireTpl, inventaireParams, inventaireOnglet);
}
private void afficherCommentaire() {
String tableauCommentaireHtml = "";
if (collection.getCommentairesLiees() != null && collection.getCommentairesLiees().size() > 0) {
tableauCommentaireHtml = construireTableauCommentairesLiees();
}
Params personneParams = new Params();
personneParams.set("i18n_titre_commentaire", i18nC.collectionCommentaireTitre());
personneParams.set("tableau_commentaires_liees", tableauCommentaireHtml);
afficherOnglet(commentaireTpl, personneParams, commentaireOnglet);
}
private String construireTableauCommentairesLiees() {
Params contenuParams = new Params();
contenuParams.set("i18n_type", i18nC.commentaireType());
contenuParams.set("i18n_titre", i18nC.commentaireTitre());
contenuParams.set("i18n_texte", i18nC.commentaireTexte());
contenuParams.set("i18n_ponderation", i18nC.commentairePonderation());
contenuParams.set("i18n_public", i18nC.commentairePublic());
String lignesCommentaire = "";
if (collection.getCommentairesLiees() != null) {
Iterator<String> it = collection.getCommentairesLiees().keySet().iterator();
while (it.hasNext()) {
CollectionACommentaire relationCollectionACommentaire = collection.getCommentairesLiees().get(it.next());
Commentaire commentaire = relationCollectionACommentaire.getCommentaire();
String type = construireTxtListeOntologie(relationCollectionACommentaire.getType());
String acces = (commentaire.etrePublic() ? i18nC.donneePublic() : i18nC.donneePrivee());
Params ligneParams = new Params();
ligneParams.set("type", type);
ligneParams.set("titre", commentaire.getTitre());
ligneParams.set("texte", commentaire.getTexte());
ligneParams.set("ponderation", commentaire.getPonderation()+"/100");
ligneParams.set("public", acces);
lignesCommentaire += Format.substitute(ligneCommentaireLieeTpl, ligneParams);
}
}
String cHtml = i18nC.nonRenseigne();
if (!UtilString.isEmpty(lignesCommentaire)) {
contenuParams.set("lignes", lignesCommentaire);
cHtml = Format.substitute(tableauCommentairesLieesTpl, contenuParams);
}
return cHtml;
}
protected String getNomStructure() {
String nomStructure = "";
if (structure != null) {
nomStructure = structure.getNom();
} else {
nomStructure = collection.getIdStructure();
}
return nomStructure;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/FenetreForm.java
New file
0,0 → 1,20
package org.tela_botanica.client.vues;
 
import com.extjs.gxt.ui.client.widget.Window;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
 
public class FenetreForm extends Window{
 
public FenetreForm(String titre) {
int hauteur = (int) Math.ceil(com.google.gwt.user.client.Window.getClientHeight() * .8);
int largeur = (int) Math.ceil(com.google.gwt.user.client.Window.getClientWidth() * .8);
GWT.log("Taille:"+hauteur+"x"+largeur, null);
setSize(largeur, hauteur);
setPlain(true);
setModal(true);
setBlinkModal(true);
setHeading(titre);
setLayout(new FitLayout());
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/FormulaireOnglet.java
New file
0,0 → 1,79
package org.tela_botanica.client.vues;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.i18n.ErrorMessages;
import org.tela_botanica.client.interfaces.Rafraichissable;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
 
public abstract class FormulaireOnglet extends TabItem implements Rafraichissable {
protected Formulaire formulaire = null;
protected Mediateur mediateur = null;
protected Constantes i18nC = null;
protected ErrorMessages i18nM = null;
protected Configuration config = null;
protected String mode = null;
protected int tabIndex = 100;
protected static LabelAlign alignementLabelDefaut = LabelAlign.LEFT;
protected static int largeurLabelDefaut = 250;
public FormulaireOnglet() {
parametrer(this);
addListener(Events.Select, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
setAcces(true);
actualiser();
}
});
}
public static void parametrer(TabItem onglet) {
FormLayout layout = new FormLayout();
layout.setLabelWidth(largeurLabelDefaut);
layout.setLabelAlign(alignementLabelDefaut);
onglet.setLayout(layout);
onglet.setStyleAttribute("padding", "10px");
onglet.setScrollMode(Scroll.AUTO);
onglet.setData("acces", false);
}
 
protected void initialiserOnglet(Formulaire formulaireCourrant) {
formulaire = formulaireCourrant;
mediateur = formulaire.mediateur;
i18nC = Mediateur.i18nC;
i18nM = Mediateur.i18nM;
config = (Configuration) Registry.get(RegistreId.CONFIG);
mode = formulaire.mode;
tabIndex = formulaire.tabIndex;
}
public void actualiser() {
layout();
}
public void setAcces(boolean acces) {
this.setData("acces", acces);
}
public boolean etreAccede() {
boolean acces = false;
if (isAttached()) {
acces = this.getData("acces");
}
return acces;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/NavigationVue.java
New file
0,0 → 1,39
package org.tela_botanica.client.vues;
 
import org.tela_botanica.client.Mediateur;
 
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.util.Padding;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.VBoxLayout;
import com.extjs.gxt.ui.client.widget.layout.VBoxLayoutData;
import com.extjs.gxt.ui.client.widget.layout.VBoxLayout.VBoxLayoutAlign;
 
public class NavigationVue extends ContentPanel {
private Mediateur mediateur = null;
private MenuVue menu = null;
private FiltreVue filtre = null;
public NavigationVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
VBoxLayout layout = new VBoxLayout();
layout.setPadding(new Padding(0));
layout.setVBoxLayoutAlign(VBoxLayoutAlign.STRETCH);
setHeading(Mediateur.i18nC.titreNavigation());
setLayout(layout);
menu = new MenuVue(mediateur);
add(menu, new VBoxLayoutData(new Margins(0)));
filtre = new FiltreVue(mediateur);
add(filtre, new VBoxLayoutData(new Margins(0)));
}
public MenuVue getMenu() {
return menu;
}
public FiltreVue getFiltre() {
return filtre;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/structure/StructureVue.java
New file
0,0 → 1,56
package org.tela_botanica.client.vues.structure;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.structure.Structure;
import org.tela_botanica.client.modeles.structure.StructureListe;
 
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.google.gwt.core.client.GWT;
 
public class StructureVue extends LayoutContainer implements Rafraichissable {
 
private Mediateur mediateur = null;
private StructureListeVue panneauInstitutionListe = null;
private StructureDetailVue panneauInstitutionDetail = null;
 
public StructureVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
BorderLayout layout = new BorderLayout();
layout.setEnableState(false);
setLayout(layout);
 
panneauInstitutionListe = new StructureListeVue(mediateur);
add(panneauInstitutionListe, new BorderLayoutData(LayoutRegion.CENTER));
 
panneauInstitutionDetail = new StructureDetailVue(mediateur);
BorderLayoutData dispositionSud = new BorderLayoutData(LayoutRegion.SOUTH, .5f, 200, 1000);
dispositionSud.setSplit(true);
dispositionSud.setMargins(new Margins(5, 0, 0, 0));
add(panneauInstitutionDetail, dispositionSud);
}
 
public void rafraichir(Object nouvellesDonnees) {
// Nous passons l'objet aux méthodes rafraichir des panneaux composant le panneau principal Structure
if (nouvellesDonnees instanceof Structure) {
panneauInstitutionDetail.rafraichir(nouvellesDonnees);
} else if (nouvellesDonnees instanceof StructureListe) {
panneauInstitutionListe.rafraichir(nouvellesDonnees);
mediateur.desactiverChargement();
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("liste_structure_a_personne")) {
panneauInstitutionDetail.rafraichir(nouvellesDonnees);
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/structure/StructureListeVue.java
New file
0,0 → 1,200
package org.tela_botanica.client.vues.structure;
 
import java.util.ArrayList;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Utilisateur;
import org.tela_botanica.client.modeles.structure.Structure;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.vues.BarrePaginationVue;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Window;
 
public class StructureListeVue extends ContentPanel implements Rafraichissable {
private Mediateur mediateur = null;
private Constantes i18nC = null;
 
private Grid<Structure> grille = null;
private ListStore<Structure> store = null;
private Button modifier;
private Button supprimer;
private Button ajouter;
private BarrePaginationVue pagination = null;
 
public StructureListeVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
i18nC = mediateur.i18nC;
setHeading(i18nC.titreStructureListe());
setLayout(new FitLayout());
ToolBar toolBar = new ToolBar();
ajouter = new Button(i18nC.ajouter());
ajouter.setIcon(Images.ICONES.ajouter());
ajouter.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
mediateur.clicAjouterStructure();
}
});
toolBar.add(ajouter);
 
modifier = new Button(i18nC.modifier());
modifier.setIcon(Images.ICONES.formModifier());
modifier.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
mediateur.clicModifierStructure(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(modifier);
supprimer = new Button(i18nC.supprimer());
supprimer.setIcon(Images.ICONES.supprimer());
supprimer.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
clicSupprimerStructure(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(supprimer);
 
setTopComponent(toolBar);
 
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
colonnes.add(new ColumnConfig("ville", "Ville", 150));
colonnes.add(new ColumnConfig("nom", "Nom", 450));
ColumnModel modeleDeColonne = new ColumnModel(colonnes);
GridSelectionModel<Structure> modeleDeSelection = new GridSelectionModel<Structure>();
modeleDeSelection.addSelectionChangedListener(new SelectionChangedListener<Structure>() {
public void selectionChanged(SelectionChangedEvent<Structure> event) {
Structure structureSelectionnee = (Structure) event.getSelectedItem();
clicListe(structureSelectionnee);
}
});
store = new ListStore<Structure>();
store.sort("ville", SortDir.ASC);
 
grille = new Grid<Structure>(store, modeleDeColonne);
grille.setWidth("100%");
grille.setAutoExpandColumn("nom");
grille.getView().setAutoFill(true);
grille.getView().setForceFit(true);
grille.setSelectionModel(modeleDeSelection);
grille.addListener(Events.ViewReady, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
grille.getSelectionModel().select(0, false);
}
});
grille.addListener(Events.OnDoubleClick, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
modifier.fireEvent(Events.Select);
}
});
add(grille);
// Définition de la barre de pagination
pagination = new BarrePaginationVue(new StructureListe(), mediateur);
setBottomComponent(pagination);
}
 
private void clicListe(Structure structure) {
if (structure != null && store.getCount() > 0) {
mediateur.clicListeStructure(structure);
}
}
private void clicSupprimerStructure(List<Structure> structuresASupprimer) {
mediateur.clicSupprimerStructure(this, structuresASupprimer);
}
 
private void gererEtatActivationBouton() {
int nbreElementDuMagazin = store.getCount();
if (nbreElementDuMagazin == 0) {
supprimer.disable();
modifier.disable();
} else if (nbreElementDuMagazin > 0) {
modifier.enable();
if (((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT)).isIdentifie()) {
supprimer.enable();
}
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof StructureListe) {
StructureListe structures = (StructureListe) nouvellesDonnees;
pagination.setlistePaginable(structures);
pagination.rafraichir(structures.getPageTable());
if (structures != null) {
List<Structure> liste = structures.toList();
store.removeAll();
store.add(liste);
 
gererEtatActivationBouton();
mediateur.actualiserPanneauCentral();
grille.fireEvent(Events.ViewReady);
}
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("suppression_structure")) {
// Affichage d'un message d'information
Info.display(i18nC.suppressionStructure(), info.toString().replaceAll("\n", "<br />"));
List<Structure> selectionStructure = grille.getSelectionModel().getSelectedItems();
if (info.toString().replaceAll("\n", "").equals("OK")) {
mediateur.supprimerStructureAPersonne(this, selectionStructure);
}
// Suppression des structures sélectionnées de la grille
final int taille = selectionStructure.size();
for (int i = 0; i < taille; i++) {
store.remove(selectionStructure.get(i));
}
gererEtatActivationBouton();
} else if (info.getType().equals("maj_utilisateur")) {
gererEtatActivationBouton();
} else if (info.getType().equals("suppression_structure_a_personne")) {
// Affichage d'un message d'information
Info.display(i18nC.suppressionStructureAPersonne(), info.toString().replaceAll("\n", "<br />"));
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
layout();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/structure/StructureDetailVue.java
New file
0,0 → 1,638
package org.tela_botanica.client.vues.structure;
 
import java.util.Iterator;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.structure.Structure;
import org.tela_botanica.client.modeles.structure.StructureAPersonne;
import org.tela_botanica.client.modeles.structure.StructureAPersonneListe;
import org.tela_botanica.client.modeles.structure.StructureConservation;
import org.tela_botanica.client.modeles.structure.StructureValorisation;
import org.tela_botanica.client.vues.DetailVue;
 
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Html;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
 
public class StructureDetailVue extends DetailVue implements Rafraichissable {
 
private String enteteTpl = null;
private String identificationTpl = null;
private String personnelTpl = null;
private String tableauPersonnelTpl = null;
private String lignePersonnelTpl = null;
private String conservationTpl = null;
private String traitementConservationTpl = null;
private String valorisationTpl = null;
private String typeTraitementConservationTpl = null;
private String rechercheValorisationTpl = null;
private Structure structure = null;
private boolean structureChargementOk = false;
private StructureAPersonneListe personnel = null;
private boolean personnelChargementOk = false;
private StructureValorisation valorisation = null;
private StructureConservation conservation = null;
private ContentPanel panneauPrincipal = null;
private Html entete = null;
private TabPanel onglets = null;
private TabItem identificationOnglet = null;
private TabItem personnelOnglet = null;
private TabItem conservationOnglet = null;
private TabItem valorisationOnglet = null;
public StructureDetailVue(Mediateur mediateurCourant) {
super(mediateurCourant);
initialiserTousLesTpl();
chargerOntologie();
panneauPrincipal = new ContentPanel();
panneauPrincipal.setLayout(new FitLayout());
panneauPrincipal.setHeaderVisible(false);
panneauPrincipal.setBodyBorder(false);
entete = new Html();
entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
panneauPrincipal.setTopComponent(entete);
onglets = new TabPanel();
onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
onglets.setBodyBorder(false);
identificationOnglet = new TabItem(i18nC.structureInfoGeneral());
identificationOnglet.setLayout(new AnchorLayout());
identificationOnglet.setScrollMode(Scroll.AUTO);
onglets.add(identificationOnglet);
personnelOnglet = new TabItem(i18nC.structureInfoPersonnel());
personnelOnglet.setLayout(new AnchorLayout());
personnelOnglet.setScrollMode(Scroll.AUTO);
onglets.add(personnelOnglet);
conservationOnglet = new TabItem(i18nC.structureInfoConservation());
conservationOnglet.setLayout(new AnchorLayout());
conservationOnglet.setScrollMode(Scroll.AUTO);
onglets.add(conservationOnglet);
valorisationOnglet = new TabItem(i18nC.structureInfoValorisation());
valorisationOnglet.setLayout(new AnchorLayout());
valorisationOnglet.setScrollMode(Scroll.AUTO);
onglets.add(valorisationOnglet);
panneauPrincipal.add(onglets);
add(panneauPrincipal);
}
 
private void chargerOntologie() {
String[] listesCodes = {"stpr", "stpu", "statut", "fonction", "pays", "localStockage", "meubleStockage",
"parametreStockage", "autreCollection", "onep", "opRestau", "autreMateriel", "poisonTraitement",
"insecteTraitement", "actionValorisation", "continentEtFr", "typeRecherche"};
lancerChargementListesValeurs(listesCodes);
}
 
private void afficherDetailInstitution() {
if (structure != null) {
personnel = structure.getPersonnel();
valorisation = structure.getValorisation();
conservation = structure.getConservation();
afficherEntete();
afficherIdentification();
if (personnel != null) {
afficherPersonnel();
}
if (conservation != null) {
afficherConservation();
}
if (valorisation != null) {
afficherValorisation();
}
}
layout();
}
private void afficherEntete() {
Params enteteParams = new Params();
enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
enteteParams.set("css_meta", ComposantClass.META);
enteteParams.set("i18n_id", i18nC.id());
enteteParams.set("nom", structure.getNom());
enteteParams.set("ville", structure.getVille());
enteteParams.set("id", structure.getId());
enteteParams.set("guid", structure.getGuid());
enteteParams.set("projet", construireTxtProjet(structure.getIdProjet()));
String eHtml = Format.substitute(enteteTpl, enteteParams);
entete.getElement().setInnerHTML(eHtml);
}
private void afficherIdentification() {
Params identificationParams = new Params();
identificationParams.set("i18n_titre_administratif", i18nC.titreAdministratif());
identificationParams.set("i18n_acronyme", i18nC.acronyme());
identificationParams.set("i18n_statut", i18nC.statut());
identificationParams.set("i18n_date_fondation", i18nC.dateFondation());
identificationParams.set("i18n_nbre_personnel", i18nC.nbrePersonnel());
identificationParams.set("i18n_titre_description", i18nC.description());
identificationParams.set("i18n_description", i18nC.description());
identificationParams.set("i18n_titre_adresse", i18nC.adresse());
identificationParams.set("i18n_adresse", i18nC.adresse());
identificationParams.set("i18n_cp", i18nC.codePostal());
identificationParams.set("i18n_ville", i18nC.ville());
identificationParams.set("i18n_region", i18nC.region());
identificationParams.set("i18n_pays", i18nC.pays());
identificationParams.set("i18n_titre_communication", i18nC.titreCommunication());
identificationParams.set("i18n_tel", i18nC.telephone());
identificationParams.set("i18n_fax", i18nC.FAX());
identificationParams.set("i18n_courriel", i18nC.courriel());
identificationParams.set("i18n_acces", i18nC.acces());
identificationParams.set("i18n_web", i18nC.siteWeb());
 
String acronyme = construireTxtTruck(structure.getIdAlternatif());
String typePrive = construireTxtListeOntologie(structure.getTypePrive());
String typePublic = construireTxtListeOntologie(structure.getTypePublic());
String pays = construireTxtListeOntologie(structure.getPays());
String web = construireTxtTruck(structure.getUrl());
identificationParams.set("acronyme", acronyme);
identificationParams.set("statut", typePrive+typePublic);
identificationParams.set("date_fondation", structure.getDateFondationFormatLong());
identificationParams.set("nbre_personnel", structure.getNbrePersonne());
identificationParams.set("description", structure.getDescription());
identificationParams.set("adresse", structure.getAdresse());
identificationParams.set("cp", structure.getCodePostal());
identificationParams.set("ville", structure.getVille());
identificationParams.set("region", structure.getRegion());
identificationParams.set("pays", pays);
identificationParams.set("tel", structure.getTelephoneFixe());
identificationParams.set("fax", structure.getFax());
identificationParams.set("courriel", structure.getCourriel());
identificationParams.set("acces", structure.getConditionAcces());
identificationParams.set("web", web);
afficherOnglet(identificationTpl, identificationParams, identificationOnglet);
}
private void afficherPersonnel() {
String tableauPersonnelHtml = "";
if (personnel.size() > 0) {
tableauPersonnelHtml = construireTableauDuPersonnel();
}
Params personnelParams = new Params();
personnelParams.set("i18n_titre_personnel", i18nC.titrePersonnel());
personnelParams.set("i18n_nbre_personnel_collection", i18nC.nbrePersonnelCollection());
personnelParams.set("nbre_personnel_collection", personnel.size());
personnelParams.set("tableau_personnel", tableauPersonnelHtml);
afficherOnglet(personnelTpl, personnelParams, personnelOnglet);
}
private String construireTableauDuPersonnel() {
Params contenuParams = new Params();
contenuParams.set("i18n_titre_membre", i18nC.titreMembre());
contenuParams.set("i18n_fonction", i18nC.fonction());
contenuParams.set("i18n_prenom", i18nC.personnePrenom());
contenuParams.set("i18n_nom", i18nC.personneNom());
contenuParams.set("i18n_tel", i18nC.FIX());
contenuParams.set("i18n_fax", i18nC.FAX());
contenuParams.set("i18n_courriel", i18nC.courrielPrincipal());
contenuParams.set("i18n_statut", i18nC.statut());
contenuParams.set("i18n_tps_w", i18nC.tpsTravail());
contenuParams.set("i18n_specialite", i18nC.specialite());
contenuParams.set("i18n_contact", i18nC.boolContact());
String lignesPersonnel = "";
Iterator<String> it = personnel.keySet().iterator();
while (it.hasNext()) {
StructureAPersonne personne = personnel.get(it.next());
Params ligneParams = new Params();
String fonction = construireTxtListeOntologie(personne.getFonction());
String statut = construireTxtListeOntologie(personne.getStatut());
String contact = formaterOuiNon(personne.getContact());
ligneParams.set("fonction", fonction);
ligneParams.set("prenom", personne.getPrenom());
ligneParams.set("nom", personne.getNom());
ligneParams.set("tel_fix", personne.getTelephoneFixe());
ligneParams.set("tel_fax", personne.getFax());
ligneParams.set("courriel", personne.getCourriel());
ligneParams.set("statut", statut);
ligneParams.set("tps_w", personne.getBotaTravailHebdoTps());
ligneParams.set("specialite", personne.afficherSpecialite());
ligneParams.set("contact", contact);
lignesPersonnel += Format.substitute(lignePersonnelTpl, ligneParams);
}
contenuParams.set("lignes", lignesPersonnel);
String cHtml = Format.substitute(tableauPersonnelTpl, contenuParams);
return cHtml;
}
private void afficherConservation() {
Params conservationParams = new Params();
conservationParams.set("i18n_titre_conservation_personnel", i18nC.titreConservationPersonnel());
conservationParams.set("i18n_formation", i18nC.formation());
conservationParams.set("i18n_formation_interet", i18nC.formationInteret());
conservationParams.set("i18n_titre_local", i18nC.titreLocal());
conservationParams.set("i18n_local_specifique", i18nC.localSpecifique());
conservationParams.set("i18n_meuble_specifique", i18nC.meubleSpecifique());
conservationParams.set("i18n_local_parametre", i18nC.localParametre());
conservationParams.set("i18n_conservation_en_commun", i18nC.conservationEnCommun());
conservationParams.set("i18n_acces_controle", i18nC.accesControle());
conservationParams.set("i18n_titre_operation", i18nC.titreOperation());
conservationParams.set("i18n_restauration", i18nC.restauration());
conservationParams.set("i18n_materiel_conservation", i18nC.materielConservation());
conservationParams.set("i18n_traitement", i18nC.traitement());
conservationParams.set("i18n_titre_acquisition", i18nC.titreAcquisition());
conservationParams.set("i18n_acquisition_collection", i18nC.acquisitionCollection());
conservationParams.set("i18n_acquisition_echantillon", i18nC.acquisitionEchantillon());
conservationParams.set("formation", formaterOuiNon(conservation.getFormation()));
conservationParams.set("formation_info", formaterSautDeLigne(conservation.getFormationInfo()));
conservationParams.set("formation_interet", formaterOuiNon(conservation.getFormationInteret()));
conservationParams.set("meuble_specifique", conservation.getStockageMeuble());
String chaineAAnalyser = conservation.getStockageLocal();
String chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
conservationParams.set("local_specifique", chaineAAfficher);
chaineAAnalyser = conservation.getStockageMeuble();
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
conservationParams.set("meuble_specifique", chaineAAfficher);
chaineAAnalyser = conservation.getStockageParametre();
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
conservationParams.set("local_parametre", chaineAAfficher);
conservationParams.set("conservation_en_commun", formaterOuiNon(conservation.getCollectionCommune()));
chaineAAnalyser = conservation.getCollectionAutre();
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
conservationParams.set("collection_autre", formaterParenthese(chaineAAfficher));
conservationParams.set("acces_controle", formaterOuiNon(conservation.getAccesControle()));
conservationParams.set("restauration", formaterOuiNon(conservation.getRestauration()));
chaineAAnalyser = conservation.getRestaurationOperation();
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
conservationParams.set("restauration_operation", formaterParenthese(chaineAAfficher));
chaineAAnalyser = conservation.getMaterielConservation();
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
conservationParams.set("materiel_conservation", chaineAAfficher);
chaineAAnalyser = conservation.getMaterielAutre();
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
conservationParams.set("materiel_autre", formaterParenthese(chaineAAfficher));
conservationParams.set("traitement", formaterOuiNon(conservation.getTraitement()));
chaineAAnalyser = conservation.getTraitements();
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
conservationParams.set("traitements", formaterParenthese(chaineAAfficher));
conservationParams.set("acquisition_collection", formaterOuiNon(conservation.getAcquisitionCollection()));
conservationParams.set("acquisition_echantillon", formaterOuiNon(conservation.getAcquisitionEchantillon()));
conservationParams.set("acquisition_traitement_info", construireTraitement());
afficherOnglet(conservationTpl, conservationParams, conservationOnglet);
}
private String construireTraitement() {
String cHtml = "";
String echantillon = conservation.getAcquisitionEchantillon();
if (echantillon.equals("1")) {
Params traitementConservationParams = new Params();
traitementConservationParams.set("i18n_acquisition_traitement", i18nC.acquisitionTraitement());
traitementConservationParams.set("acquisition_traitement", formaterOuiNon(conservation.getAcquisitionTraitement()));
traitementConservationParams.set("acquisition_traitement_type_info", construireTraitementType());
cHtml = Format.substitute(traitementConservationTpl, traitementConservationParams);
}
return cHtml;
}
private String construireTraitementType() {
String cHtml = "";
String traitement = conservation.getAcquisitionTraitement();
if (traitement.equals("1")) {
Params typeTraitementParams = new Params();
typeTraitementParams.set("i18n_acquisition_traitement_insecte", i18nC.acquisitionTraitementInsecte());
typeTraitementParams.set("i18n_acquisition_traitement_poison", i18nC.acquisitionTraitementPoison());
String acquisitionTraitementInsecte = construireTxtListeOntologie(conservation.getAcquisitionTraitementInsecte());
typeTraitementParams.set("acquisition_traitement_insecte", acquisitionTraitementInsecte);
String acquisitionTraitementPoison = construireTxtListeOntologie(conservation.getAcquisitionTraitementPoison());
typeTraitementParams.set("acquisition_traitement_poison", acquisitionTraitementPoison);
cHtml = Format.substitute(typeTraitementConservationTpl, typeTraitementParams);
}
return cHtml;
}
private void afficherValorisation() {
Params valorisationParams = new Params();
valorisationParams.set("i18n_titre_action_valorisation", i18nC.titreActionValorisation());
valorisationParams.set("i18n_action", i18nC.action());
valorisationParams.set("i18n_action_publication", i18nC.actionPublication());
valorisationParams.set("i18n_collection_autre", i18nC.collectionAutre());
valorisationParams.set("i18n_action_future", i18nC.actionFuture());
valorisationParams.set("action", formaterOuiNon(valorisation.getAction()));
String actionInfo = construireTxtListeOntologie(valorisation.getActionInfo());
valorisationParams.set("action_info", formaterParenthese(actionInfo));
valorisationParams.set("action_publication", valorisation.getPublication());
String collectionAutre = construireTxtListeOntologie(valorisation.getCollectionAutre());
valorisationParams.set("collection_autre", collectionAutre);
valorisationParams.set("action_future", formaterOuiNon(valorisation.getActionFuture()));
valorisationParams.set("action_future_info", formaterParenthese(valorisation.getActionFutureInfo()));
 
valorisationParams.set("i18n_titre_recherche_scientifique", i18nC.titreRechercherScientifique());
valorisationParams.set("i18n_recherche", i18nC.recherche());
valorisationParams.set("recherche", formaterOuiNon(valorisation.getRecherche()));
valorisationParams.set("recherche_info", construireRecherche());
valorisationParams.set("i18n_titre_acces_usage", i18nC.titreAccesUsage());
valorisationParams.set("i18n_acces", i18nC.acces());
valorisationParams.set("i18n_visite", i18nC.visite());
valorisationParams.set("acces", formaterOuiNon(valorisation.getAccesSansMotif()));
valorisationParams.set("acces_info", formaterParenthese(valorisation.getAccesSansMotifInfo()));
valorisationParams.set("visite", formaterOuiNon(valorisation.getVisiteAvecMotif()));
valorisationParams.set("visite_info", formaterParenthese(valorisation.getVisiteAvecMotifInfo()));
afficherOnglet(valorisationTpl, valorisationParams, valorisationOnglet);
}
private String construireRecherche() {
String cHtml = "";
String recherche = valorisation.getRecherche();
if (recherche.equals("1")) {
Params rechercheParams = new Params();
rechercheParams.set("i18n_recherche_provenance", i18nC.rechercheProvenance());
rechercheParams.set("i18n_recherche_type", i18nC.rechercheType());
String rechercheProvenance = construireTxtListeOntologie(valorisation.getRechercheProvenance());
rechercheParams.set("recherche_provenance", rechercheProvenance);
String rechercheType = construireTxtListeOntologie(valorisation.getRechercheType());
rechercheParams.set("recherche_type", rechercheType);
cHtml = Format.substitute(rechercheValorisationTpl, rechercheParams);
}
return cHtml;
}
private void initialiserTousLesTpl() {
initialiserEnteteTpl();
initialiserIdentificationTpl();
initialiserPersonnelTpl();
initialiserTableauPersonnelTpl();
initialiserLignePersonnelTpl();
initialiserConservationTpl();
initialiserTraitementConservationTpl();
initialiserTypeTraitementConservationTpl();
initialiserValorisationTpl();
initialiserRechercheValorisationTpl();
}
private void initialiserEnteteTpl() {
enteteTpl =
"<div id='{css_id}'>"+
" <h1>{nom}</h1>"+
" <h2>{ville}<span class='{css_meta}'>{projet} <br /> {i18n_id}:{id} - {guid}</span></h2>" +
" " +
"</div>";
}
private void initialiserIdentificationTpl() {
identificationTpl =
"<div class='{css_corps}'>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_administratif}</h2>"+
" <span class='{css_label}'>{i18n_acronyme} :</span> {acronyme}<br />"+
" <span class='{css_label}'>{i18n_acces} :</span> {acces}<br />"+
" <span class='{css_label}'>{i18n_statut} :</span> {statut}<br />"+
" <span class='{css_label}'>{i18n_date_fondation} :</span> {date_fondation}<br />"+
" <span class='{css_label}'>{i18n_nbre_personnel} :</span> {nbre_personnel}<br />"+
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_description}</h2>"+
" {description}"+
" </div>"+
" <hr class='{css_clear}'/>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_adresse}</h2>"+
" <span class='{css_label}'>{i18n_adresse} :</span> {adresse}<br />" +
" <span class='{css_label}'>{i18n_cp} :</span> {cp}<br />" +
" <span class='{css_label}'>{i18n_ville} :</span> {ville}<br />" +
" <span class='{css_label}'>{i18n_region} :</span> {region}<br />" +
" <span class='{css_label}'>{i18n_pays} :</span> {pays}<br />" +
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_communication}</h2>"+
" <span class='{css_label}'>{i18n_tel} :</span> {tel}<br />"+
" <span class='{css_label}'>{i18n_fax} :</span> {fax}<br />"+
" <span class='{css_label}'>{i18n_courriel} :</span> {courriel}<br />"+
" <span class='{css_label}'>{i18n_web} :</span> {web}<br />"+
" </div>"+
"</div>";
}
private void initialiserPersonnelTpl() {
personnelTpl =
"<div class='{css_corps}'>"+
" <h2>{i18n_titre_personnel}</h2>"+
" <p><span class='{css_label}'>{i18n_nbre_personnel_collection} :</span> {nbre_personnel_collection}</p>"+
" {tableau_personnel}"+
"</div>";
}
private void initialiserTableauPersonnelTpl() {
tableauPersonnelTpl =
"<h3>{i18n_titre_membre}</h3>"+
"<table>"+
" <thead>"+
" <tr>" +
" <th>{i18n_fonction}</th>" +
" <th>{i18n_prenom}</th>" +
" <th>{i18n_nom}</th>" +
" <th>{i18n_tel}</th>" +
" <th>{i18n_fax}</th>" +
" <th>{i18n_courriel}</th>" +
" <th>{i18n_statut}</th>" +
" <th>{i18n_tps_w}</th>" +
" <th>{i18n_specialite}</th>" +
" <th>{i18n_contact}</th>" +
" </tr>"+
" </thead>"+
" <tbody>"+
" {lignes}"+
" </tbody>"+
"</table>";
}
private void initialiserLignePersonnelTpl() {
lignePersonnelTpl =
"<tr>"+
" <td>{fonction}</td>"+
" <td>{prenom}</td>"+
" <td>{nom}</td>"+
" <td>{tel_fix}</td>" +
" <td>{tel_fax}</td>" +
" <td>{courriel}</td>" +
" <td>{statut}</td>" +
" <td>{tps_w}</td>" +
" <td>{specialite}</td>" +
" <td>{contact}</td>" +
"</tr>";
}
private void initialiserConservationTpl() {
conservationTpl =
"<div class='{css_corps}'>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_conservation_personnel}</h2>"+
" <span class='{css_label}'>{i18n_formation} :</span> {formation}<br />"+
" {formation_info}<br />"+
" <span class='{css_label}'>{i18n_formation_interet} :</span> {formation_interet}<br />"+
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_local}</h2>"+
" <span class='{css_label}'>{i18n_local_specifique} :</span> {local_specifique}<br />"+
" <span class='{css_label}'>{i18n_meuble_specifique} :</span> {meuble_specifique}<br />"+
" <span class='{css_label}'>{i18n_local_parametre} :</span> {local_parametre}<br />"+
" <span class='{css_label}'>{i18n_conservation_en_commun} :</span> {conservation_en_commun} {collection_autre}<br />"+
" <span class='{css_label}'>{i18n_acces_controle} :</span> {acces_controle}<br />"+
" </div>"+
" <hr class='{css_clear}'/>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_operation}</h2>"+
" <span class='{css_label}'>{i18n_restauration} :</span> {restauration} {restauration_operation}<br />"+
" <span class='{css_label}'>{i18n_materiel_conservation} :</span> {materiel_conservation} {materiel_autre}<br />"+
" <span class='{css_label}'>{i18n_traitement} :</span> {traitement} {traitements}<br />"+
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_acquisition}</h2>"+
" <span class='{css_label}'>{i18n_acquisition_collection} :</span> {acquisition_collection}<br />"+
" <span class='{css_label}'>{i18n_acquisition_echantillon} :</span> {acquisition_echantillon}<br />"+
" {acquisition_traitement_info}" +
" </div>"+
"</div>";
}
private void initialiserTraitementConservationTpl() {
traitementConservationTpl =
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement} :</span> {acquisition_traitement}<br />"+
" <div class='{css_indentation}'>"+
" {acquisition_traitement_type_info}"+
" </div>";
}
private void initialiserTypeTraitementConservationTpl() {
typeTraitementConservationTpl =
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement_insecte} :</span> {acquisition_traitement_insecte}<br />"+
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement_poison} :</span> {acquisition_traitement_poison}<br />";
}
private void initialiserValorisationTpl() {
valorisationTpl =
"<div class='{css_corps}'>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_action_valorisation}</h2>"+
" <span class='{css_label}'>{i18n_action} :</span> {action} {action_info}<br />"+
" <span class='{css_label}'>{i18n_action_publication} :</span> {action_publication}<br />"+
" <span class='{css_label}'>{i18n_collection_autre} :</span> {collection_autre}<br />"+
" <span class='{css_label}'>{i18n_action_future} :</span> {action_future} {action_future_info}<br />"+
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_recherche_scientifique}</h2>"+
" <span class='{css_label}'>{i18n_recherche} :</span> {recherche}<br />"+
" {recherche_info}"+
" </div>"+
" <hr class='{css_clear}'/>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_acces_usage}</h2>"+
" <span class='{css_label}'>{i18n_visite} :</span> {visite} {visite_info}<br />"+
" <span class='{css_label}'>{i18n_acces} :</span> {acces} {acces_info}<br />"+
" </div>"+
"</div>";
}
private void initialiserRechercheValorisationTpl() {
rechercheValorisationTpl =
"<span class='{css_indentation} {css_label}'>{i18n_recherche_provenance} :</span> {recherche_provenance}<br />"+
"<span class='{css_indentation} {css_label}'>{i18n_recherche_type} :</span> {recherche_type}<br />";
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Structure) {
structure = (Structure) nouvellesDonnees;
structureChargementOk = true;
} else if (nouvellesDonnees instanceof ProjetListe) {
projets = (ProjetListe) nouvellesDonnees;
projetsChargementOk = true;
} else if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
receptionerListeValeurs(listeValeursReceptionnee);
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("liste_structure_a_personne")) {
allouerPersonnelAStructure((StructureAPersonneListe) info.getDonnee(0));
personnelChargementOk = true;
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
if (avoirDonneesChargees()) {
afficherDetailInstitution();
}
}
protected void allouerPersonnelAStructure(StructureAPersonneListe personnel) {
structure.setPersonnel(personnel);
}
private boolean avoirDonneesChargees() {
boolean ok = false;
if (projetsChargementOk && structureChargementOk && personnelChargementOk && ontologieChargementOk) {
ok = true;
}
return ok;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/structure/StructureForm.java
New file
0,0 → 1,2149
package org.tela_botanica.client.vues.structure;
 
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.InterneValeur;
import org.tela_botanica.client.modeles.InterneValeurListe;
import org.tela_botanica.client.modeles.MenuApplicationId;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.personne.PersonneListe;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.structure.Structure;
import org.tela_botanica.client.modeles.structure.StructureAPersonne;
import org.tela_botanica.client.modeles.structure.StructureAPersonneListe;
import org.tela_botanica.client.modeles.structure.StructureConservation;
import org.tela_botanica.client.modeles.structure.StructureValorisation;
import org.tela_botanica.client.util.UtilArray;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.Formulaire;
 
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.KeyListener;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.store.Record;
import com.extjs.gxt.ui.client.store.Store;
import com.extjs.gxt.ui.client.store.StoreEvent;
import com.extjs.gxt.ui.client.widget.Component;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Html;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.CheckBox;
import com.extjs.gxt.ui.client.widget.form.CheckBoxGroup;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.DateField;
import com.extjs.gxt.ui.client.widget.form.Field;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.HiddenField;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.form.NumberField;
import com.extjs.gxt.ui.client.widget.form.Radio;
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
import com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.grid.RowNumberer;
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.tips.ToolTipConfig;
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.i18n.client.NumberFormat;
import com.google.gwt.user.client.Window;
 
public class StructureForm extends Formulaire implements Rafraichissable {
private static int decompteRafraichissementPersonnel = 0;
private TabPanel onglets = null;
private TabItem identificationOnglet = null;
private TabItem personnelOnglet = null;
private TabItem conservationOnglet = null;
private TabItem valorisationOnglet = null;
 
private HiddenField<String> idStructureChp = null;
// Onglet IDENTIFICATION
private Structure identification = null;
private ListStore<Valeur> magazinLstpr = null;
private ComboBox<Valeur> comboLstpr = null;
private ListStore<Valeur> magazinLstpu = null;
private ComboBox<Valeur> comboLstpu = null;
private ListStore<Valeur> magazinLiStatut = null;
private ComboBox<Valeur> comboLiStatut = null;
private ListStore<Valeur> fonctionsMagazin = null;
private ComboBox<Valeur> fonctionsCombo = null;
private ComboBox<InterneValeur> comboAcronyme = null;
private TextField<String> ihChp = null;
private TextField<String> mnhnChp = null;
private ComboBox<InterneValeur> comboTypeStructure = null;
private TextField<String> nomStructureChp = null;
private DateField dateFondationChp = null;
private TextArea adrChp = null;
private TextField<String> cpChp = null;
private TextField<String> villeChp = null;
private ComboBox<Valeur> comboRegion = null;
private TextField<String> telChp = null;
private TextField<String> faxChp = null;
private TextField<String> emailChp = null;
private TextField<String> urlChp = null;
private ListStore<Valeur> magazinPays = null;
private ListStore<Valeur> magazinRegion = null;
private ComboBox<Valeur> comboPays = null;
 
// Onglet PERSONNEL
private StructureAPersonneListe personnel = null;
private StructureAPersonneListe personnelAjoute = null;
private StructureAPersonneListe personnelModifie = null;
private StructureAPersonneListe personnelSupprime = null;
private NumberField nbreTotalPersonneStructureChp = null;
private EditorGrid<StructureAPersonne> grillePersonnel = null;
private ListStore<StructureAPersonne> personnelGrilleMagazin = null;
// Onglet CONSERVATION
private StructureConservation conservation = null;
private RadioGroup formationMarkRGrpChp = null;
private RadioGroup interetFormationMarkRGrpChp = null;
private RadioGroup collectionCommuneMarkRGrpChp = null;
private RadioGroup accesControleMarkRGrpChp = null;
private RadioGroup restaurationMarkRGrpChp = null;
private RadioGroup traitementMarkRGrpChp = null;
private RadioGroup collectionAcquisitionMarkRGrpChp = null;
private RadioGroup echantillonAcquisitionMarkRGrpChp = null;
private TextField<String> localStockageAutreChp = null;
private TextField<String> meubleStockageAutreChp = null;
private TextField<String> parametreStockageAutreChp = null;
private TextField<String> collectionAutreAutreChp = null;
private TextField<String> autreCollectionAutreChp = null;
private TextField<String> opRestauAutreChp = null;
private TextField<String> autreMaterielAutreChp = null;
private TextField<String> poisonTraitementAutreChp = null;
private TextField<String> traitementAutreChp = null;
private TextField<String> insecteTraitementAutreChp = null;
private TextField<String> actionAutreChp = null;
private TextField<String> provenanceRechercheAutreChp = null;
private TextField<String> typeRechercheAutreChp = null;
private CheckBoxGroup localStockageTrukCacGrpChp = null;
private LayoutContainer localStockageTrukCp = null;
private CheckBoxGroup meubleStockageTrukCacGrpChp = null;
private LayoutContainer meubleStockageTrukCp = null;
private CheckBoxGroup parametreStockageTrukCacGrpChp = null;
private LayoutContainer parametreStockageTrukCp = null;
private LayoutContainer collectionAutreTrukCp = null;
private CheckBoxGroup collectionAutreTrukCacGrpChp = null;
private CheckBoxGroup opRestauTrukCacGrpChp = null;
private LayoutContainer opRestauTrukCp = null;
private CheckBoxGroup autreMaterielTrukCacGrpChp = null;
private LayoutContainer autreMaterielTrukCp = null;
private LayoutContainer traitementTrukCp = null;
private CheckBoxGroup traitementTrukCacGrpChp = null;
private LayoutContainer poisonTraitementTrukCp = null;
private LayoutContainer insecteTraitementTrukCp = null;
private CheckBoxGroup insecteTraitementTrukCacGrpChp = null;
private CheckBoxGroup poisonTraitementTrukCacGrpChp = null;
private LayoutContainer autreCollectionTrukCp = null;
private CheckBoxGroup autreCollectionTrukCacGrpChp = null;
private LayoutContainer provenanceRechercheTrukCp = null;
private CheckBoxGroup provenanceRechercheTrukCacGrpChp = null;
private CheckBoxGroup typeRechercheTrukCacGrpChp = null;
private LayoutContainer typeRechercheTrukCp = null;
private TextField<String> futureActionChp = null;
private TextField<String> sansMotifAccesChp = null;
private TextField<String> avecMotifAccesChp = null;
private TextField<String> formationChp = null;
private RadioGroup traitementAcquisitionMarkRGrpChp = null;
private LabelField traitementAcquisitionMarkLabel = null;
private RadioGroup materielConservationCeRGrpChp = null;
 
// Onglet VALORISATION
private StructureValorisation valorisation = null;
private RadioGroup actionMarkRGrpChp = null;
private LayoutContainer actionTrukCp = null;
private CheckBoxGroup actionTrukCacGrpChp = null;
private RadioGroup futureActionMarkRGrpChp = null;
private RadioGroup rechercheMarkRGrpChp = null;
private RadioGroup sansMotifAccesMarkRGrpChp = null;
private RadioGroup avecMotifAccesMarkRGrpChp = null;
private TextField<String> publicationChp = null;
private LayoutContainer materielConservationCp = null;
private ListStore<Personne> personneExistanteMagazin = null;
private ComboBox<Personne> personneExistanteCombo = null;
private Button supprimerPersonnelBtn = null;
private ListStore<Projet> projetsMagazin = null;
private ComboBox<Projet> projetsCombo = null;
private CellEditor fonctionEditor = null;
private List<Valeur> fonctionsListe = null;
 
public StructureForm(Mediateur mediateurCourrant, String modeDeCreation) {
initialiserFormulaire(mediateurCourrant, modeDeCreation, MenuApplicationId.STRUCTURE);
// Ajout du titre
panneauFormulaire.setHeading(i18nC.titreAjoutFormStructurePanneau());
// Création des onglets
onglets = creerOnglets();
// Ajout des onglets au formulaire général
panneauFormulaire.add(onglets);
}
protected TabPanel creerOnglets() {
TabPanel ongletsStructure = new TabPanel();
// NOTE : pour faire apparaître les scrollBar il faut définir la hauteur du panneau d'onglets à 100% (autoHeight ne semble pas fonctionner)
ongletsStructure.setHeight("100%");
// Onlget formulaire IDENTIFICATION
ongletsStructure.add(creerOngletIdentification());
// Onlget formulaire PERSONNEL
ongletsStructure.add(creerOngletPersonnel());
// Onlget formulaire CONSERVATION
ongletsStructure.add(creerOngletConservation());
// Onlget formulaire VALORISATION
ongletsStructure.add(creerOngletValorisation());
// Sélection de l'onglet par défaut
//ongletsStructure(personnelOnglet);
return ongletsStructure;
}
public void reinitialiserFormulaire() {
if (mode.equals(StructureForm.MODE_MODIFIER)) {
mediateur.afficherFormStructure(identification.getId());
} else {
mediateur.afficherFormStructure(null);
}
}
public boolean soumettreFormulaire() {
// Vérification de la validité des champs du formulaire
boolean fomulaireValide = verifierFormulaire();
if (fomulaireValide) {
// Collecte des données du formulaire
Structure structure = collecterStructureIdentification();
StructureConservation conservation = collecterStructureConservation();
StructureValorisation valorisation = collecterStructureValorisation();
collecterStructurePersonnel();
if (mode.equals(MODE_AJOUTER)) {
// Ajout des informations sur la Structure
mediateur.ajouterStructure(this, structure, conservation, valorisation);
// L'ajout des relations StructureAPersonne se fait quand la structure a été ajoutée
// Voir la méthode rafraichir().
} else if (mode.equals(MODE_MODIFIER)) {
// Modification des informations sur la Structure
if (structure == null && conservation == null && valorisation == null) {
Info.display("Modification d'une institution", "Rien n'a été enregistré car le formulaire n'a pas été modifié.");
} else {
mediateur.modifierStructure(this, identification.getId(), structure, conservation, valorisation);
}
if (personnelModifie.size() == 0 && personnelAjoute.size() == 0 && personnelSupprime.size() == 0) {
Info.display("Modification du personnel", "Rien n'a été enregistré car le formulaire n'a pas été modifié.");
} else {
if (personnelModifie.size() != 0) {
decompteRafraichissementPersonnel++;
mediateur.modifierStructureAPersonne(this, personnelModifie);
}
// Ajout des relations StructureAPersonne
if (personnelAjoute.size() != 0) {
decompteRafraichissementPersonnel++;
mediateur.ajouterStructureAPersonne(this, identification.getId(), personnelAjoute);
}
// Suppression des relations StructureAPersonne
if (personnelSupprime.size() != 0) {
decompteRafraichissementPersonnel++;
mediateur.supprimerStructureAPersonne(this, personnelSupprime);
}
}
}
}
return fomulaireValide;
}
public boolean verifierFormulaire() {
ArrayList<String> messages = new ArrayList<String>();
// Vérification des infos sur le nom de la structure
if ( (identificationOnglet.getData("acces").equals(true) && nomStructureChp.getValue() == null) ||
(identificationOnglet.getData("acces").equals(true) && nomStructureChp.getValue().equals("")) ||
(identificationOnglet.getData("acces").equals(false) && identification.getNom().equals(""))) {
messages.add("Veuillez indiquez un nom à l'institution.");
}
// Vérification des infos sur le projet de la structure
if ( (identificationOnglet.getData("acces").equals(true) && projetsCombo.getValue() == null) ||
(identificationOnglet.getData("acces").equals(true) && projetsCombo.getValue().equals("")) ||
(identificationOnglet.getData("acces").equals(false) && identification.getIdProjet().equals(""))) {
messages.add("Veuillez sélectionner un projet pour l'institution.");
}
// Vérification du Personnel
if (personnelOnglet.getData("acces").equals(true)) {
String personnelNumero = "";
int nbrePersonne = personnelGrilleMagazin.getCount();
for (int i = 0; i < nbrePersonne; i++) {
StructureAPersonne personne = personnelGrilleMagazin.getAt(i);
if (personne.getNom().equals("") || personne.getPrenom().equals("")) {
personnelNumero += (i != 0 ? ", " : "")+(i+1);
}
}
if (!personnelNumero.equals("")) {
messages.add("Veuillez indiquez un prénom et un nom au personnel numéro : "+personnelNumero);
}
}
 
// Affichage des messages d'alerte
if (messages.size() != 0) {
String[] a = {};
a = messages.toArray(a);
MessageBox.alert("Erreurs de saisies", UtilArray.implode(a, "\n\n"), null);
return false;
}
return true;
}
private StructureValorisation collecterStructureValorisation() {
StructureValorisation valorisationARetourner = null;
if (valorisationOnglet.getData("acces").equals(true)) {
// Création de l'objet
StructureValorisation valorisationCollectee = (StructureValorisation) valorisation.cloner(new StructureValorisation());
// ACTION
if (actionMarkRGrpChp.getValue() != null) {
valorisationCollectee.setAction(actionMarkRGrpChp.getValue().getValueAttribute());
}
// ACTION INFO
valorisationCollectee.setActionInfo(creerChaineDenormalisee(actionTrukCacGrpChp.getValues()));
valorisationCollectee.setActionInfo("AUTRE", actionAutreChp.getValue());
// PUBLICATION
valorisationCollectee.setPublication(publicationChp.getValue());
// COLLECTION AUTRE
valorisationCollectee.setCollectionAutre(creerChaineDenormalisee(autreCollectionTrukCacGrpChp.getValues()));
valorisationCollectee.setCollectionAutre("AUTRE", autreCollectionAutreChp.getValue());
// ACTION FUTURE
if (futureActionMarkRGrpChp.getValue() != null) {
valorisationCollectee.setActionFuture(futureActionMarkRGrpChp.getValue().getValueAttribute());
}
// ACTION FUTURE INFO
valorisationCollectee.setActionFutureInfo(futureActionChp.getValue());
// RECHERCHE
if (rechercheMarkRGrpChp.getValue() != null) {
valorisationCollectee.setRecherche(rechercheMarkRGrpChp.getValue().getValueAttribute());
 
// RECHERCHE PROVENANCE
valorisationCollectee.setRechercheProvenance(creerChaineDenormalisee(provenanceRechercheTrukCacGrpChp.getValues()));
valorisationCollectee.setRechercheProvenance("AUTRE", provenanceRechercheAutreChp.getValue());
// RECHERCHE TYPE
valorisationCollectee.setRechercheType(creerChaineDenormalisee(typeRechercheTrukCacGrpChp.getValues()));
valorisationCollectee.setRechercheType("AUTRE", typeRechercheAutreChp.getValue());
}
// ACCÈS SANS MOTIF
if (sansMotifAccesMarkRGrpChp.getValue() != null) {
valorisationCollectee.setAccesSansMotif(sansMotifAccesMarkRGrpChp.getValue().getValueAttribute());
}
// ACCÈS SANS MOTIF INFO
valorisationCollectee.setAccesSansMotifInfo(sansMotifAccesChp.getValue());
// VISITE AVEC MOTIF
if (avecMotifAccesMarkRGrpChp.getValue() != null) {
valorisationCollectee.setVisiteAvecMotif(avecMotifAccesMarkRGrpChp.getValue().getValueAttribute());
}
// VISITE AVEC MOTIF INFO
valorisationCollectee.setVisiteAvecMotifInfo(avecMotifAccesChp.getValue());
// Retour de l'objet
if (!valorisationCollectee.comparer(valorisation)) {
valorisationARetourner = valorisation = valorisationCollectee;
}
}
return valorisationARetourner;
}
private void peuplerStructureValorisation() {
if (mode.equals(MODE_AJOUTER)) {
// Indique que l'onglet a pu être modifié pour la méthode collecter...
valorisationOnglet.setData("acces", true);
// Initialisation de l'objet Structure
valorisation = new StructureValorisation();
}
if (mode.equals(MODE_MODIFIER) && valorisation != null && valorisationOnglet.getData("acces").equals(false)) {
// ACTION :
//TODO : check below:
((Radio) actionMarkRGrpChp.get((valorisation.getAction().equals("1") ? 0 : 1))).setValue(true);
// ACTION INFO
peuplerCasesACocher(valorisation.getActionInfo(), actionTrukCacGrpChp, actionAutreChp);
// PUBLICATION
publicationChp.setValue(valorisation.getPublication());
// COLLECTION AUTRE
peuplerCasesACocher(valorisation.getCollectionAutre(), autreCollectionTrukCacGrpChp, autreCollectionAutreChp);
// ACTION FUTURE
((Radio) futureActionMarkRGrpChp.get((valorisation.getActionFuture().equals("1") ? 0 : 1))).setValue(true);
// ACTION FUTURE INFO
futureActionChp.setValue(valorisation.getActionFutureInfo());
// RECHERCHE
((Radio) rechercheMarkRGrpChp.get((valorisation.getRecherche().equals("1") ? 0 : 1))).setValue(true);
// RECHERCHE PROVENANCE
peuplerCasesACocher(valorisation.getRechercheProvenance(), provenanceRechercheTrukCacGrpChp, provenanceRechercheAutreChp);
// RECHERCHE TYPE
peuplerCasesACocher(valorisation.getRechercheType(), typeRechercheTrukCacGrpChp, typeRechercheAutreChp);
 
// ACCÈS SANS MOTIF
((Radio) sansMotifAccesMarkRGrpChp.get((valorisation.getAccesSansMotif().equals("1") ? 0 : 1))).setValue(true);
// ACCÈS SANS MOTIF INFO
sansMotifAccesChp.setValue(valorisation.getAccesSansMotifInfo());
// VISITE AVEC MOTIF
((Radio) avecMotifAccesMarkRGrpChp.get((valorisation.getVisiteAvecMotif().equals("1") ? 0 : 1))).setValue(true);
// VISITE AVEC MOTIF INFO
avecMotifAccesChp.setValue(valorisation.getVisiteAvecMotifInfo());
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
valorisationOnglet.setData("acces", true);
}
}
private StructureConservation collecterStructureConservation() {
StructureConservation conservationARetourner = null;
if (conservationOnglet.getData("acces").equals(true)) {
// Création de l'objet
StructureConservation conservationCollectee = (StructureConservation) conservation.cloner(new StructureConservation());
// FORMATION
if (formationMarkRGrpChp.getValue() != null) {
conservationCollectee.setFormation(formationMarkRGrpChp.getValue().getValueAttribute());
}
// FORMATION INFO
conservationCollectee.setFormationInfo(formationChp.getValue());
// FORMATION INTERET
if (interetFormationMarkRGrpChp.getValue() != null) {
conservationCollectee.setFormationInteret(interetFormationMarkRGrpChp.getValue().getValueAttribute());
}
// STOCKAGE LOCAL
conservationCollectee.setStockageLocal(creerChaineDenormalisee(localStockageTrukCacGrpChp.getValues()));
conservationCollectee.setStockageLocal("AUTRE", localStockageAutreChp.getValue());
// STOCKAGE MEUBLE
conservationCollectee.setStockageMeuble(creerChaineDenormalisee(meubleStockageTrukCacGrpChp.getValues()));
conservationCollectee.setStockageMeuble("AUTRE", meubleStockageAutreChp.getValue());
// STOCKAGE PAREMETRE
conservationCollectee.setStockageParametre(creerChaineDenormalisee(parametreStockageTrukCacGrpChp.getValues()));
conservationCollectee.setStockageParametre("AUTRE", parametreStockageAutreChp.getValue());
// COLLECTION COMMUNE
if (collectionCommuneMarkRGrpChp.getValue() != null) {
conservationCollectee.setCollectionCommune(collectionCommuneMarkRGrpChp.getValue().getValueAttribute());
}
// COLLECTION AUTRE
conservationCollectee.setCollectionAutre(creerChaineDenormalisee(collectionAutreTrukCacGrpChp.getValues()));
conservationCollectee.setCollectionAutre("AUTRE", collectionAutreAutreChp.getValue());
// ACCÈS CONTROLÉ
if (accesControleMarkRGrpChp.getValue() != null) {
conservationCollectee.setAccesControle(accesControleMarkRGrpChp.getValue().getValueAttribute());
}
// RESTAURATION
if (restaurationMarkRGrpChp.getValue() != null) {
conservationCollectee.setRestauration(restaurationMarkRGrpChp.getValue().getValueAttribute());
}
// RESTAURATION OPÉRATION
conservationCollectee.setRestaurationOperation(creerChaineDenormalisee(opRestauTrukCacGrpChp.getValues()));
conservationCollectee.setRestaurationOperation("AUTRE", opRestauAutreChp.getValue());
// MATERIEL CONSERVATION
if (materielConservationCeRGrpChp.getValue() != null) {
conservationCollectee.setMaterielConservation(materielConservationCeRGrpChp.getValue().getValueAttribute());
 
// MATERIEL AUTRE
conservationCollectee.setMaterielAutre(creerChaineDenormalisee(autreMaterielTrukCacGrpChp.getValues()));
conservationCollectee.setMaterielAutre("AUTRE", autreMaterielAutreChp.getValue());
}
// TRAITEMENT
if (traitementMarkRGrpChp.getValue() != null) {
conservationCollectee.setTraitement(traitementMarkRGrpChp.getValue().getValueAttribute());
}
// TRAIEMENTS
conservationCollectee.setTraitements(creerChaineDenormalisee(traitementTrukCacGrpChp.getValues()));
conservationCollectee.setTraitements("AUTRE", traitementAutreChp.getValue());
// ACQUISITION COLLECTION
if (collectionAcquisitionMarkRGrpChp.getValue() != null) {
conservationCollectee.setAcquisitionCollection(collectionAcquisitionMarkRGrpChp.getValue().getValueAttribute());
}
// ACQUISITION ECHANTILLON
if (echantillonAcquisitionMarkRGrpChp.getValue() != null) {
conservationCollectee.setAcquisitionEchantillon(echantillonAcquisitionMarkRGrpChp.getValue().getValueAttribute());
}
// ACQUISITION TRAITEMENT
if (traitementAcquisitionMarkRGrpChp.getValue() != null) {
conservationCollectee.setAcquisitionTraitement(traitementAcquisitionMarkRGrpChp.getValue().getValueAttribute());
}
// ACQUISITION TRAITEMENT POISON
conservationCollectee.setAcquisitionTraitementPoison(creerChaineDenormalisee(poisonTraitementTrukCacGrpChp.getValues()));
conservationCollectee.setAcquisitionTraitementPoison("AUTRE", poisonTraitementAutreChp.getValue());
// ACQUISITION TRAITEMENT INSECTE
conservationCollectee.setAcquisitionTraitementInsecte(creerChaineDenormalisee(insecteTraitementTrukCacGrpChp.getValues()));
conservationCollectee.setAcquisitionTraitementInsecte("AUTRE", insecteTraitementAutreChp.getValue());
// Retour de l'objet
if (!conservationCollectee.comparer(conservation)) {
GWT.log("Collecte différent de Retour", null);
conservationARetourner = conservation = conservationCollectee;
}
}
return conservationARetourner;
}
private void peuplerStructureConservation() {
if (mode.equals(MODE_AJOUTER)) {
// Indique que l'onglet a pu être modifié pour la méthode collecter...
conservationOnglet.setData("acces", true);
// Initialisation de l'objet Structure
conservation = new StructureConservation();
}
if (mode.equals(MODE_MODIFIER) && conservation != null && conservationOnglet.getData("acces").equals(false)) {
// FORMATION
// Bouton oui, à toujours l'index 0 donc on teste en fonction...
((Radio) formationMarkRGrpChp.get((conservation.getFormation().equals("1") ? 0 : 1))).setValue(true);
// FORMATION INFO
formationChp.setValue(conservation.getFormationInfo());
// FORMATION INTERET
((Radio) interetFormationMarkRGrpChp.get((conservation.getFormationInteret().equals("1") ? 0 : 1))).setValue(true);
// STOCKAGE LOCAL
peuplerCasesACocher(conservation.getStockageLocal(), localStockageTrukCacGrpChp,localStockageAutreChp);
// STOCKAGE MEUBLE
peuplerCasesACocher(conservation.getStockageMeuble(), meubleStockageTrukCacGrpChp, meubleStockageAutreChp);
// STOCKAGE PAREMETRE
peuplerCasesACocher(conservation.getStockageParametre(), parametreStockageTrukCacGrpChp, parametreStockageAutreChp);
// COLLECTION COMMUNE
((Radio) collectionCommuneMarkRGrpChp.get((conservation.getCollectionCommune().equals("1") ? 0 : 1))).setValue(true);
// COLLECTION AUTRE
peuplerCasesACocher(conservation.getCollectionAutre(), collectionAutreTrukCacGrpChp, collectionAutreAutreChp);
// ACCÈS CONTROLÉ
((Radio) accesControleMarkRGrpChp.get((conservation.getAccesControle().equals("1") ? 0 : 1))).setValue(true);
// RESTAURATION
((Radio) restaurationMarkRGrpChp.get((conservation.getRestauration().equals("1") ? 0 : 1))).setValue(true);
// RESTAURATION OPÉRATION
peuplerCasesACocher(conservation.getRestaurationOperation(), opRestauTrukCacGrpChp, opRestauAutreChp);
// MATERIEL CONSERVATION
peuplerBoutonsRadio(conservation.getMaterielConservation(), materielConservationCeRGrpChp);
// MATERIEL AUTRE
peuplerCasesACocher(conservation.getMaterielAutre(), autreMaterielTrukCacGrpChp, autreMaterielAutreChp);
// TRAITEMENT
((Radio) traitementMarkRGrpChp.get((conservation.getTraitement().equals("1") ? 0 : 1))).setValue(true);
// TRAITEMENTS
peuplerCasesACocher(conservation.getTraitements(), traitementTrukCacGrpChp, traitementAutreChp);
// ACQUISITION COLLECTION
((Radio) collectionAcquisitionMarkRGrpChp.get((conservation.getAcquisitionCollection().equals("1") ? 0 : 1))).setValue(true);
// ACQUISITION ECHANTILLON
((Radio) echantillonAcquisitionMarkRGrpChp.get((conservation.getAcquisitionEchantillon().equals("1") ? 0 : 1))).setValue(true);
// ACQUISITION TRAITEMENT
((Radio) traitementAcquisitionMarkRGrpChp.get((conservation.getAcquisitionTraitement().equals("1") ? 0 : 1))).setValue(true);
// ACQUISITION TRAITEMENT POISON
peuplerCasesACocher(conservation.getAcquisitionTraitementPoison(), poisonTraitementTrukCacGrpChp, poisonTraitementAutreChp);
// ACQUISITION TRAITEMENT INSECTE
peuplerCasesACocher(conservation.getAcquisitionTraitementInsecte(), insecteTraitementTrukCacGrpChp, insecteTraitementAutreChp);
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
conservationOnglet.setData("acces", true);
}
}
private Structure collecterStructureIdentification() {
Structure structureARetourner = null;
if (identificationOnglet.getData("acces").equals(true)) {
Structure structureCollectee = (Structure) identification.cloner(new Structure());
structureCollectee.setId(idStructureChp.getValue());
structureCollectee.setNom(nomStructureChp.getValue());
// Récupération de l'identifiant du projet
if (projetsCombo.getValue() != null) {
structureCollectee.setIdProjet(projetsCombo.getValue().getId());
}
// Récupération de l'acronyme (= identifiant alternatif)
structureCollectee.setIdAlternatif(null);
if (comboAcronyme.getValue() != null) {
String typeAcronyme = comboAcronyme.getValue().getAbr();
if (typeAcronyme == "IH") {
structureCollectee.setIdAlternatif(typeAcronyme+"##"+ihChp.getValue());
} else if (typeAcronyme == "MNHN") {
structureCollectee.setIdAlternatif(typeAcronyme+"##"+mnhnChp.getValue());
}
}
// Récupération statut de la structure
structureCollectee.setTypePublic(null);
structureCollectee.setTypePrive(null);
if (comboTypeStructure.getValue() != null) {
String typeStructure = comboTypeStructure.getValue().getAbr();
if (typeStructure == "stpu" && comboLstpu.getValue() != null) {
structureCollectee.setTypePublic(comboLstpu.getValue().getId());
} else if (typeStructure == "stpr" && comboLstpr.getValue() != null) {
structureCollectee.setTypePrive(comboLstpr.getValue().getId());
}
}
structureCollectee.setDateFondation(dateFondationChp.getValue());
structureCollectee.setAdresse(adrChp.getValue());
structureCollectee.setCodePostal(cpChp.getValue());
structureCollectee.setVille(villeChp.getValue());
String strRegion = "";
Valeur valeurRegion = comboRegion.getValue();
if (valeurRegion == null) {
strRegion = "AUTRE##" + comboRegion.getRawValue();
} else {
strRegion = valeurRegion.getId();
}
structureCollectee.setRegion(strRegion);
structureCollectee.setPays(null);
if (comboPays.getValue() != null) {
structureCollectee.setPays(comboPays.getValue().getId());
} else if (comboPays.getRawValue() != "") {
structureCollectee.setPays(comboPays.getRawValue());
}
structureCollectee.setTelephoneFixe(telChp.getValue());
structureCollectee.setFax(faxChp.getValue());
structureCollectee.setCourriel(emailChp.getValue());
structureCollectee.setUrl(Structure.URL_SITE, urlChp.getValue());
if (nbreTotalPersonneStructureChp.getValue() != null) {
structureCollectee.setNbrePersonne(nbreTotalPersonneStructureChp.getValue().intValue());
}
if (!structureCollectee.comparer(identification)) {
structureARetourner = identification = structureCollectee;
}
}
System.out.println(structureARetourner);
return structureARetourner;
}
private void peuplerStructureIdentification() {
if (mode.equals(MODE_AJOUTER)) {
// Indique que l'ongleta pu être modifié pour la méthode collecter...
identificationOnglet.setData("acces", true);
// Initialisation de l'objet Structure
identification = new Structure();
// Indication du projet sélectionné par défaut
String projetCourantId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getProjetId();
if (projetCourantId != null && !projetCourantId.equals("0")) {
projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", projetCourantId));
}
}
if (mode.equals(MODE_MODIFIER) && identification != null && identificationOnglet.getData("acces").equals(false)) {
idStructureChp.setValue(identification.getId());
nomStructureChp.setValue(identification.getNom());
if (!identification.getIdProjet().equals("0")) {
projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", identification.getIdProjet()));
}
if (!identification.getIdAlternatif().isEmpty()) {
String[] acronyme = identification.getIdAlternatif().split("##");
//#436 : Ne pas afficher "null"
if (UtilString.isEmpty(acronyme[1]) || acronyme[1].equals("null")) {
acronyme[1] = "";
}
if (acronyme[0].matches("^IH$")) {
comboAcronyme.setValue(InterneValeurListe.getTypeAcronymeIH());
ihChp.setValue(acronyme[1]);
} else if (acronyme[0].matches("^MNHN$")) {
comboAcronyme.setValue(InterneValeurListe.getTypeAcronymeMNHN());
mnhnChp.setValue(acronyme[1]);
}
}
if (!identification.getTypePrive().isEmpty()) {
if (identification.getTypePrive().matches("^[0-9]+$")) {
comboTypeStructure.setValue(InterneValeurListe.getTypePrivee());
comboLstpr.setValue(comboLstpr.getStore().findModel("id_valeur", identification.getTypePrive()));
}
} else if (!identification.getTypePublic().isEmpty()) {
if (identification.getTypePublic().matches("^[0-9]+$")) {
comboTypeStructure.setValue(InterneValeurListe.getTypePublique());
comboLstpu.setValue(comboLstpu.getStore().findModel("id_valeur", identification.getTypePublic()));
}
}
dateFondationChp.setValue(identification.getDateFondation());
adrChp.setValue(identification.getAdresse());
cpChp.setValue(identification.getCodePostal());
villeChp.setValue(identification.getVille());
mettreAJourRegion();
//(identification.getRegion());
if (identification.getPays().matches("^[0-9]+$")) {
comboPays.setValue(comboPays.getStore().findModel("id_valeur", identification.getPays()));
} else {
comboPays.setRawValue(identification.getPays());
}
telChp.setValue(identification.getTelephoneFixe());
faxChp.setValue(identification.getFax());
emailChp.setValue(identification.getCourriel());
urlChp.setValue(identification.getUrl("WEB"));
nbreTotalPersonneStructureChp.setValue(identification.getNbrePersonne());
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
identificationOnglet.setData("acces", true);
}
}
private TabItem creerOngletValorisation() {
valorisationOnglet = creerOnglet("Valorisation", "valorisation");
valorisationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP));
Listener<ComponentEvent> ecouteurSelection = new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
peuplerStructureValorisation();
valorisationOnglet.layout();
}
};
valorisationOnglet.addListener(Events.Select, ecouteurSelection);
actionMarkRGrpChp = creerChoixUniqueRadioGroupe("action_mark", "ouiNon");
actionMarkRGrpChp.setFieldLabel("Avez-vous réalisé des actions de valorisation de vos collections botaniques ou avez-vous été sollicités pour la valorisation de ces collections ?");
valorisationOnglet.add(actionMarkRGrpChp);
actionTrukCp = creerChoixMultipleCp();
actionTrukCp.hide();
actionTrukCacGrpChp = new CheckBoxGroup();
actionTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
valorisationOnglet.add(actionTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "actionValorisation");
publicationChp = new TextArea();
publicationChp.setFieldLabel("Quelques titres des ouvrages, articles scientifiques, ...");
valorisationOnglet.add(publicationChp, new FormData(550, 0));
autreCollectionTrukCp = creerChoixMultipleCp();
autreCollectionTrukCacGrpChp = new CheckBoxGroup();
autreCollectionTrukCacGrpChp.setFieldLabel("L'organisme dispose-t-il d'autres collections (permettant une valorisation pluridisciplinaire) ?");
valorisationOnglet.add(autreCollectionTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "autreCollection");
futureActionMarkRGrpChp = creerChoixUniqueRadioGroupe("future_action_mark", "ouiNon");
futureActionMarkRGrpChp.setFieldLabel("Envisagez vous des actions de valorisation dans le cadre de votre politique culturelle ?");
valorisationOnglet.add(futureActionMarkRGrpChp);
futureActionChp = new TextArea();
futureActionChp.setFieldLabel("Si oui, lesquelles ?");
futureActionChp.hide();
futureActionChp.addListener(Events.Hide, new Listener<BaseEvent>() {
 
public void handleEvent(BaseEvent be) {
((TextArea) be.getSource()).setValue("");
}
});
valorisationOnglet.add(futureActionChp, new FormData(550, 0));
rechercheMarkRGrpChp = creerChoixUniqueRadioGroupe("recherche_mark", "ouiNon");
rechercheMarkRGrpChp.setFieldLabel("Vos collections botaniques sont-elles utilisées pour des recherches scientifiques ?");
valorisationOnglet.add(rechercheMarkRGrpChp);
provenanceRechercheTrukCp = creerChoixMultipleCp();
provenanceRechercheTrukCp.hide();
provenanceRechercheTrukCacGrpChp = new CheckBoxGroup();
provenanceRechercheTrukCacGrpChp.setFieldLabel("Si oui, par des chercheurs (professionnels ou amateurs) de quelle provenance ?");
valorisationOnglet.add(provenanceRechercheTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "continentEtFr");
typeRechercheTrukCp = creerChoixMultipleCp();
typeRechercheTrukCp.hide();
typeRechercheTrukCacGrpChp = new CheckBoxGroup();
typeRechercheTrukCacGrpChp.setFieldLabel("Et pour quelles recherches ?");
valorisationOnglet.add(typeRechercheTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "typeRecherche");
sansMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("sans_motif_acces_mark", "ouiNon");
sansMotifAccesMarkRGrpChp.setFieldLabel("Peut-on consulter vos collections botaniques sans motif de recherches scientifiques ?");
valorisationOnglet.add(sansMotifAccesMarkRGrpChp);
valorisationOnglet.add(sansMotifAccesChp = new TextArea(), new FormData(550, 0));
sansMotifAccesChp.hide();
sansMotifAccesChp.addListener(Events.Hide, new Listener<BaseEvent>() {
 
public void handleEvent(BaseEvent be) {
((TextArea) be.getSource()).setValue("");
}
});
sansMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les consulter ?");
avecMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("avec_motif_acces_mark", "ouiNon");
avecMotifAccesMarkRGrpChp.setFieldLabel("Peut-on visiter vos collections botaniques avec des objectifs de recherches scientifiques ?");
valorisationOnglet.add(avecMotifAccesMarkRGrpChp);
valorisationOnglet.add(avecMotifAccesChp = new TextArea(), new FormData(550, 0));
avecMotifAccesChp.hide();
avecMotifAccesChp.addListener(Events.Hide, new Listener<BaseEvent>() {
 
public void handleEvent(BaseEvent be) {
((TextArea) be.getSource()).setValue("");
}
});
avecMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les visiter ?");
return valorisationOnglet;
}
private TabItem creerOngletConservation() {
conservationOnglet = creerOnglet("Conservation", "conservation");
conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP));
Listener<ComponentEvent> ecouteurSelection = new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
peuplerStructureConservation();
conservationOnglet.layout();
}
};
conservationOnglet.addListener(Events.Select, ecouteurSelection);
formationMarkRGrpChp = creerChoixUniqueRadioGroupe("formation_mark", "ouiNon");
formationMarkRGrpChp.setFieldLabel("Le personnel s'occupant des collections a-t-il suivi des formations en conservations ?");
conservationOnglet.add(formationMarkRGrpChp);
formationChp = new TextArea();
formationChp.hide();
formationChp.addListener(Events.Hide, new Listener<BaseEvent>() {
 
public void handleEvent(BaseEvent be) {
((TextArea) be.getSource()).setValue("");
}
});
formationChp.setFieldLabel("Si oui, lesquelles ?");
conservationOnglet.add(formationChp);
interetFormationMarkRGrpChp = creerChoixUniqueRadioGroupe("interet_formation_mark", "ouiNon");
interetFormationMarkRGrpChp.setFieldLabel("Seriez vous intéressé par une formation à la conservation et à la restauration d'herbier ?");
conservationOnglet.add(interetFormationMarkRGrpChp);
localStockageTrukCacGrpChp = new CheckBoxGroup();
localStockageTrukCacGrpChp.setFieldLabel("Avez vous des locaux spécifiques de stockage des collections botaniques ?");
localStockageTrukCp = creerChoixMultipleCp();
conservationOnglet.add(localStockageTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "localStockage");
meubleStockageTrukCp = creerChoixMultipleCp();
meubleStockageTrukCacGrpChp = new CheckBoxGroup();
meubleStockageTrukCacGrpChp.setFieldLabel("Avez vous des meubles spécifiques au stockage des collections botaniques ?");
conservationOnglet.add(meubleStockageTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "meubleStockage");
parametreStockageTrukCp = creerChoixMultipleCp();
parametreStockageTrukCacGrpChp = new CheckBoxGroup();
parametreStockageTrukCacGrpChp.setFieldLabel("Quels paramètres maîtrisez vous ?");
conservationOnglet.add(parametreStockageTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "parametreStockage");
collectionCommuneMarkRGrpChp = creerChoixUniqueRadioGroupe("collection_commune_mark", "ouiNon");
collectionCommuneMarkRGrpChp.setFieldLabel("Les collections botaniques sont-elles conservées avec d'autres collections dans les mêmes locaux (problème de conservation en commun) ?");
conservationOnglet.add(collectionCommuneMarkRGrpChp);
collectionAutreTrukCp = creerChoixMultipleCp();
collectionAutreTrukCacGrpChp = new CheckBoxGroup();
collectionAutreTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
collectionAutreTrukCp.hide();
conservationOnglet.add(collectionAutreTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "autreCollection");
accesControleMarkRGrpChp = creerChoixUniqueRadioGroupe("mark_acces_controle", "ouiNon");
accesControleMarkRGrpChp.setFieldLabel("L'accès à vos collections botanique est-il contrôlé (ex. : manipulation réservées à des personnes compétentes) ?");
conservationOnglet.add(accesControleMarkRGrpChp);
restaurationMarkRGrpChp = creerChoixUniqueRadioGroupe("restauration_mark", "ouiNon");
restaurationMarkRGrpChp.setFieldLabel("Effectuez vous des opérations de restauration ou de remise en état de vos collections botaniques ?");
conservationOnglet.add(restaurationMarkRGrpChp);
opRestauTrukCp = creerChoixMultipleCp();
opRestauTrukCacGrpChp = new CheckBoxGroup();
opRestauTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
opRestauTrukCp.hide();
conservationOnglet.add(opRestauTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "opRestau");
// Création d'un ContentPanel vide et du groupe de bouton radio
// Le groupe de bouton radio recevra les boutons au moment de la réception des données (rafraichir()) et ser à ce moment là ajouter au ContenetPanel
materielConservationCp = creerChoixMultipleCp();
conservationOnglet.add(materielConservationCp);
materielConservationCeRGrpChp = creerChoixUniqueRadioGroupe("materiel_conservation_ce", "onep");
materielConservationCeRGrpChp.setFieldLabel("Utilisez vous du matériel de conservation ?");
materielConservationCeRGrpChp.setToolTip(new ToolTipConfig("Matériel de conservation", "matériel spécialisé pour la conservation des archives ou du patrimoine fragile. Ce matériel possède des propriétés mécaniques et chimiques qui font qu'il résiste dans le temps et que sa dégradation n'entraîne pas de dommages sur le matériel qu'il aide à conserver. Exemples : papier neutre, papier gommé, etc..."));
mediateur.obtenirListeValeurEtRafraichir(this, "onep");
autreMaterielTrukCp = creerChoixMultipleCp();
autreMaterielTrukCacGrpChp = new CheckBoxGroup();
autreMaterielTrukCacGrpChp.setFieldLabel("Si non, qu'utilisez vous comme matériel ?");
autreMaterielTrukCp.hide();
conservationOnglet.add(autreMaterielTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "autreMateriel");
traitementMarkRGrpChp = creerChoixUniqueRadioGroupe("traitement_mark", "ouiNon");
traitementMarkRGrpChp.setFieldLabel("Réalisez vous actuellement des traitements globaux contre les insectes ?");
conservationOnglet.add(traitementMarkRGrpChp);
traitementTrukCp = creerChoixMultipleCp();
traitementTrukCp.hide();
traitementTrukCacGrpChp = new CheckBoxGroup();
traitementTrukCacGrpChp.setFieldLabel("Si oui, lesquels ?");
conservationOnglet.add(traitementTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "insecteTraitement");
collectionAcquisitionMarkRGrpChp = creerChoixUniqueRadioGroupe("collection_acquisition_mark", "ouiNon");
collectionAcquisitionMarkRGrpChp.setFieldLabel("Actuellement, vos collections botaniques s'accroissent-elles de nouvelles acquisitions ?");
conservationOnglet.add(collectionAcquisitionMarkRGrpChp);
echantillonAcquisitionMarkRGrpChp = creerChoixUniqueRadioGroupe("echantillon_acquisition_mark", "ouiNon");
echantillonAcquisitionMarkRGrpChp.setFieldLabel("Actuellement, mettez vous en herbier de nouveaux échantillons ?");
conservationOnglet.add(echantillonAcquisitionMarkRGrpChp);
 
traitementAcquisitionMarkRGrpChp = creerChoixUniqueRadioGroupe("traitement_acquisition_mark", "ouiNon");
traitementAcquisitionMarkRGrpChp.hide();
traitementAcquisitionMarkRGrpChp.setFieldLabel("Si oui, faites-vous un traitement contre les insectes avant l'intégration dans vos collections ?");
conservationOnglet.add(traitementAcquisitionMarkRGrpChp);
traitementAcquisitionMarkLabel = new LabelField();
traitementAcquisitionMarkLabel.hide();
traitementAcquisitionMarkLabel.setFieldLabel("Si oui, lesquels ?");
conservationOnglet.add(traitementAcquisitionMarkLabel);
poisonTraitementTrukCp = creerChoixMultipleCp();
poisonTraitementTrukCp.hide();
poisonTraitementTrukCacGrpChp = new CheckBoxGroup();
poisonTraitementTrukCacGrpChp.setFieldLabel("Empoisonnement");
poisonTraitementTrukCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
poisonTraitementTrukCacGrpChp.setLabelSeparator("");
conservationOnglet.add(poisonTraitementTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "poisonTraitement");
insecteTraitementTrukCp = creerChoixMultipleCp();
insecteTraitementTrukCp.hide();
insecteTraitementTrukCacGrpChp = new CheckBoxGroup();
insecteTraitementTrukCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
insecteTraitementTrukCacGrpChp.setLabelSeparator("");
insecteTraitementTrukCacGrpChp.setFieldLabel("Désinsectisation");
conservationOnglet.add(insecteTraitementTrukCp);
mediateur.obtenirListeValeurEtRafraichir(this, "insecteTraitement");
conservationOnglet.add(new Html("<br />"));
return conservationOnglet;
}
private void collecterStructurePersonnel() {
if (personnelOnglet.getData("acces").equals(true)) {
personnelGrilleMagazin.commitChanges();
int nbrePersonne = personnelGrilleMagazin.getCount();
for (int i = 0; i < nbrePersonne; i++) {
StructureAPersonne personne = personnelGrilleMagazin.getAt(i);
 
// Seules les lignes ajoutées ou modifiées sont prises en compte.
Record record = personnelGrilleMagazin.getRecord(personne);
if (personnelGrilleMagazin.getModifiedRecords().contains(record) == true
|| (personne.get("etat") != null && personne.get("etat").equals(StructureAPersonne.ETAT_AJOUTE) )) {
// Gestion de l'id de la structure
if (mode.equals("MODIF")) {
personne.setIdStructure(identification.getId());
}
// Récupération de l'id du projet de la structure qui servira aussi pour les Personnes crées dans ce formulaire
if (personne.getIdPersonne().equals("") && projetsCombo.getValue() != null) {
personne.setIdProjetPersonne(projetsCombo.getValue().getId());
}
// Gestion de la fonction
String fonction = personne.get("fonction");
if (fonction != null && !fonction.equals("")) {
Valeur valeurRecherche = fonctionsCombo.getStore().findModel("nom", fonction);
if (valeurRecherche != null) {
personne.setFonction(valeurRecherche.getId());
} else {
personne.setFonction("AUTRE", fonction);
}
} else {
personne.setFonction("");
}
// Gestion de la notion de "contact"
personne.setContact(false);
if (personne.get("contact").equals(true)) {
personne.setContact(true);
}
// Gestion du statut
String statut = personne.get("statut");
if (statut != null && !statut.equals("")) {
Valeur valeurRecherche = comboLiStatut.getStore().findModel("nom", statut);
if (valeurRecherche != null) {
personne.setStatut(valeurRecherche.getId());
} else {
personne.setStatut("AUTRE", statut);
}
} else {
personne.setStatut("");
}
// Gestion du temps de travail
personne.setBotaTravailHebdoTps(personne.get("travail").toString());
// Gestion du téléphone
String telephoneFixe = personne.get("tel_fix");
personne.setTelephoneFixe(telephoneFixe);
// Gestion du fax
String fax = personne.get("tel_fax");
personne.setFax(fax);
// Gestion du courriel
String courriel = personne.get("courriel");
personne.setCourriel(courriel);
// Gestion de la spécialité
String specialite = personne.get("specialite");
personne.setSpecialite(specialite);
// Ajout de la personne dans la liste correspondant à son état (ajouté ou modifié)
if (personne.get("etat") != null && personne.get("etat").equals(StructureAPersonne.ETAT_AJOUTE)) {// Une personne ajoutée
personnelAjoute.put(""+i, personne);
} else {// Une personne modifiée
personnelModifie.put(personne.getId(), personne);
}
} else {
GWT.log("Personne non modifiées : "+personne.getPrenom()+" "+personne.getNom(), null);
}
}
}
}
private void peuplerStructurePersonnel() {
if (mode.equals(MODE_MODIFIER) && personnel != null) {
ArrayList<StructureAPersonne> personnes = new ArrayList<StructureAPersonne>();
for (Iterator<String> it = personnel.keySet().iterator(); it.hasNext();) {
String index = it.next();
// Gestion de la fonction
if (fonctionsMagazin != null && !((String) personnel.get(index).getFonction()).startsWith("AUTRE##")) {
if (fonctionsMagazin.findModel("id_valeur", personnel.get(index).getFonction()) != null) {
personnel.get(index).set("fonction", fonctionsMagazin.findModel("id_valeur", personnel.get(index).getFonction()).getNom());
}
} else {
personnel.get(index).set("fonction", personnel.get(index).getFonction().replaceFirst("AUTRE##", ""));
}
// Gestion de la notion de "contact"
personnel.get(index).set("contact", (personnel.get(index).getContact().equals("1") ? true : false));
// Gestion du statut
if (magazinLiStatut != null && ((String) personnel.get(index).getStatut()).matches("^[0-9]+$")) {
personnel.get(index).set("statut", magazinLiStatut.findModel("id_valeur", personnel.get(index).getStatut()).getNom());
} else {
personnel.get(index).set("statut", personnel.get(index).getStatut().replaceFirst("AUTRE##", ""));
}
// Gestion du temps de travail
String tps = personnel.get(index).getBotaTravailHebdoTps();
personnel.get(index).set("travail", (tps.matches("^[0-9]+$") ? Integer.parseInt(tps) : 0));
personnes.add(personnel.get(index));
}
personnelGrilleMagazin.removeAll();
personnelGrilleMagazin.add(personnes);
// Nous vidons la variable personnel une fois qu'elle a remplie la grille
personnel = null;
}
}
private TabItem creerOngletPersonnel() {
// Création des objets contenant les manipulations de la grille
personnelModifie = new StructureAPersonneListe();
personnelAjoute = new StructureAPersonneListe();
personnelSupprime = new StructureAPersonneListe();
personnelOnglet = creerOnglet("Personnel", "personnel");
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT));
personnelOnglet.setStyleAttribute("padding", "0");
personnelOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
personnelOnglet.setData("acces", true);
 
// Rafraichissement du contenu de la grille du personnel
if (mode.equals(MODE_AJOUTER)) {
rafraichirPersonnel();
}
}
});
ContentPanel cp = new ContentPanel();
cp.setHeading("Personnes travaillant sur les collections");
cp.setIcon(Images.ICONES.table());
//cp.setScrollMode(Scroll.AUTO);
cp.setLayout(new FitLayout());
//cp.setWidth(1250);
//cp.setHeight("100%");
cp.setFrame(true);
personnelGrilleMagazin = new ListStore<StructureAPersonne>();
personnelGrilleMagazin.addListener(Store.Add, new Listener<StoreEvent<StructureAPersonne>>() {
 
public void handleEvent(StoreEvent<StructureAPersonne> ce) {
// Activation du bouton supprimer si la grille contient un élément
if (grillePersonnel.getStore().getCount() > 0) {
supprimerPersonnelBtn.enable();
}
}
});
RowNumberer r = new RowNumberer();
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
 
GridSelectionModel<StructureAPersonne> sm = new GridSelectionModel<StructureAPersonne>();
configs.add(r);
ColumnConfig column = new ColumnConfig("fonction", "Fonction", 150);
fonctionsMagazin = new ListStore<Valeur>();
fonctionsCombo = new ComboBox<Valeur>();
fonctionsCombo.setTriggerAction(TriggerAction.ALL);
fonctionsCombo.setEditable(true);
fonctionsCombo.setDisplayField("nom");
fonctionsCombo.setStore(fonctionsMagazin);
mediateur.obtenirListeValeurEtRafraichir(this, "fonction");
fonctionEditor = new CellEditor(fonctionsCombo) {
@Override
public Object preProcessValue(Object valeur) {
Valeur retour = null;
if (valeur != null) {
String chaineTransmise = (String) valeur;
if (fonctionsMagazin.getCount() == 0 && fonctionsListe != null) {
fonctionsMagazin.add(fonctionsListe);
}
if (fonctionsMagazin.findModel("id_valeur", chaineTransmise) != null) {
retour = fonctionsMagazin.findModel("id_valeur", chaineTransmise);
} else if (fonctionsMagazin.findModel("nom", chaineTransmise) != null) {
retour = fonctionsMagazin.findModel("nom", chaineTransmise);
} else {
retour = new Valeur("", chaineTransmise, "", "");
}
}
return retour;
}
@Override
public Object postProcessValue(Object valeur) {
String retour = "";
Valeur fonctionTrouvee = null;
if (valeur == null) {
String valeurBrute = this.getField().getRawValue();
if (fonctionsMagazin.getCount() == 0 && fonctionsListe != null) {
fonctionsMagazin.add(fonctionsListe);
}
if (valeurBrute.matches("^[0-9]+$") && fonctionsMagazin.findModel("id_valeur", valeurBrute) != null) {
fonctionTrouvee = fonctionsMagazin.findModel("id_valeur", valeurBrute);
} else {
retour = valeurBrute;
}
} else if (valeur instanceof Valeur) {
fonctionTrouvee = (Valeur) valeur;
}
if (fonctionTrouvee != null) {
retour = fonctionTrouvee.getNom();
}
return retour;
}
};
column.setEditor(fonctionEditor);
configs.add(column);
column = new ColumnConfig("prenom", "Prénom", 100);
TextField<String> prenomChp = new TextField<String>();
prenomChp.setAllowBlank(false);
prenomChp.getMessages().setBlankText("Ce champ est obligatoire.");
prenomChp.setAutoValidate(true);
prenomChp.addStyleName(ComposantClass.OBLIGATOIRE);
prenomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
column.setEditor(new CellEditor(prenomChp));
configs.add(column);
column = new ColumnConfig("nom", "Nom", 100);
TextField<String> nomChp = new TextField<String>();
nomChp.setAllowBlank(false);
nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
nomChp.setAutoValidate(true);
nomChp.addStyleName(ComposantClass.OBLIGATOIRE);
nomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
column.setEditor(new CellEditor(nomChp));
configs.add(column);
 
column = new ColumnConfig("tel_fix", "Téléphone fixe", 100);
TextField<String> telChp = new TextField<String>();
column.setEditor(new CellEditor(telChp));
configs.add(column);
 
column = new ColumnConfig("tel_fax", "Fax", 100);
TextField<String> faxChp = new TextField<String>();
column.setEditor(new CellEditor(faxChp));
configs.add(column);
column = new ColumnConfig("courriel", "Courriel principal", 200);
TextField<String> emailChp = new TextField<String>();
column.setEditor(new CellEditor(emailChp));
configs.add(column);
magazinLiStatut = new ListStore<Valeur>();
magazinLiStatut.add(new ArrayList<Valeur>());
comboLiStatut = new ComboBox<Valeur>();
comboLiStatut.setTriggerAction(TriggerAction.ALL);
comboLiStatut.setEditable(false);
comboLiStatut.disableTextSelection(true);
comboLiStatut.setDisplayField("nom");
comboLiStatut.setStore(magazinLiStatut);
mediateur.obtenirListeValeurEtRafraichir(this, "statut");
CellEditor statutEditor = new CellEditor(comboLiStatut) {
@Override
public Object preProcessValue(Object value) {
if (value == null) {
return value;
}
return comboLiStatut.getStore().findModel("nom", (String) value);
}
@Override
public Object postProcessValue(Object value) {
if (value == null) {
return value;
}
return ((Valeur) value).get("nom");
}
};
column = new ColumnConfig("statut", "Statut", 100);
column.setEditor(statutEditor);
configs.add(column);
column = new ColumnConfig("travail", "Temps travail", 100);
column.setNumberFormat(NumberFormat.getFormat("##"));
NumberField tpsWChp = new NumberField();
tpsWChp.setFormat(NumberFormat.getFormat("##"));
tpsWChp.setToolTip("Ce champ doit contenir un nombre");
column.setEditor(new CellEditor(tpsWChp));
configs.add(column);
column = new ColumnConfig("specialite", "Spécialité principale", 150);
TextField<String> speChp = new TextField<String>();
column.setEditor(new CellEditor(speChp));
configs.add(column);
CheckColumnConfig checkColumn = new CheckColumnConfig("contact", "Contact ?", 60);
configs.add(checkColumn);
ToolBar toolBar = new ToolBar();
Button ajouterPersonnelBtn = new Button("Ajouter");
ajouterPersonnelBtn.setIcon(Images.ICONES.vcardAjouter());
ajouterPersonnelBtn.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
StructureAPersonne membreDuPersonnel = new StructureAPersonne("", StructureAPersonne.ROLE_EQUIPE, StructureAPersonne.ETAT_AJOUTE);
ajouterMembreAGrillePersonnel(membreDuPersonnel);
}
});
toolBar.add(ajouterPersonnelBtn);
toolBar.add(new SeparatorToolItem());
supprimerPersonnelBtn = new Button("Supprimer");
supprimerPersonnelBtn.setIcon(Images.ICONES.vcardSupprimer());
supprimerPersonnelBtn.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
StructureAPersonne personne = grillePersonnel.getSelectionModel().getSelectedItem();
if (personne != null) {
// Ajout de la personne supprimée à la liste
if (personne.getIdPersonne() != null && !personne.getIdPersonne().equals("")) {
personnelSupprime.put(personne.getId(), personne);
}
// Suppression de l'enregistrement de la grille
grillePersonnel.getStore().remove(personne);
// Désactivation du bouton supprimer si la grille contient plus d'élément
if (grillePersonnel.getStore().getCount() == 0) {
//TODO : check : Item -> component
ce.getComponent().disable();
}
}
}
});
toolBar.add(supprimerPersonnelBtn);
toolBar.add(new SeparatorToolItem());
Button rafraichirPersonnelBtn = new Button("Rafraichir");
rafraichirPersonnelBtn.setIcon(Images.ICONES.rafraichir());
rafraichirPersonnelBtn.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
rafraichirPersonnel();
}
});
toolBar.add(rafraichirPersonnelBtn);
toolBar.add(new SeparatorToolItem());
personneExistanteMagazin = new ListStore<Personne>();
personneExistanteMagazin.add(new ArrayList<Personne>());
personneExistanteCombo = new ComboBox<Personne>();
personneExistanteCombo.setWidth(200);
personneExistanteCombo.setEmptyText("Chercher une personne existante...");
personneExistanteCombo.setTriggerAction(TriggerAction.ALL);
personneExistanteCombo.setEditable(true);
personneExistanteCombo.setDisplayField("fmt_nom_complet");
personneExistanteCombo.setStore(personneExistanteMagazin);
personneExistanteCombo.addKeyListener(new KeyListener() {
public void componentKeyUp(ComponentEvent ce) {
if (!ce.isNavKeyPress() && personneExistanteCombo.getRawValue() != null && personneExistanteCombo.getRawValue().length() > 0) {
rafraichirPersonneExistante(personneExistanteCombo.getRawValue());
}
}
});
 
// TODO : dans GXT 2.0 plus besoin de l'adaptateur, on peut ajouter la combobox directement sur la toolbar
//> CHECK
toolBar.add(personneExistanteCombo);
Button ajouterPersonneExistanteBtn = new Button("Ajouter");
ajouterPersonneExistanteBtn.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
Personne personneExistante = personneExistanteCombo.getValue();
if (personneExistante != null) {
StructureAPersonne membreDuPersonnel = new StructureAPersonne("", StructureAPersonne.ROLE_EQUIPE, StructureAPersonne.ETAT_AJOUTE);
membreDuPersonnel.setIdPersonne(personneExistante.getId());
membreDuPersonnel.setIdProjetPersonne(personneExistante.getIdProjet());
membreDuPersonnel.setNom(personneExistante.getNom());
membreDuPersonnel.setPrenom(personneExistante.getPrenom());
membreDuPersonnel.setTelephone(personneExistante.getTelephone());
membreDuPersonnel.setCourriel(personneExistante.selectionnerCourriel(1));
membreDuPersonnel.setSpecialite(personneExistante.afficherSpecialite());
ajouterMembreAGrillePersonnel(membreDuPersonnel);
}
}
});
toolBar.add(ajouterPersonneExistanteBtn);
cp.setTopComponent(toolBar);
 
ColumnModel cm = new ColumnModel(configs);
grillePersonnel = new EditorGrid<StructureAPersonne>(personnelGrilleMagazin, cm);
grillePersonnel.setHeight("100%");
grillePersonnel.setBorders(true);
grillePersonnel.setSelectionModel(sm);
grillePersonnel.addPlugin(checkColumn);
grillePersonnel.addPlugin(r);
grillePersonnel.getView().setForceFit(true);
grillePersonnel.setAutoExpandColumn("specialite");
grillePersonnel.setStripeRows(true);
grillePersonnel.setTrackMouseOver(true);
cp.add(grillePersonnel);
personnelOnglet.add(cp);
return personnelOnglet;
}
private TabItem creerOngletIdentification() {
//+-----------------------------------------------------------------------------------------------------------+
// Onlget formulaire IDENTIFICATION
identificationOnglet = creerOnglet("Identification", "identification");
identificationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
peuplerStructureIdentification();
identificationOnglet.layout();
}
});
//+-----------------------------------------------------------------------------------------------------------+
// Champs cachés
idStructureChp = new HiddenField<String>();
//+-----------------------------------------------------------------------------------------------------------+
// Fieldset IDENTITÉ
FieldSet fieldSetIdentite = new FieldSet();
fieldSetIdentite.setHeading("Identité");
fieldSetIdentite.setCollapsible(true);
fieldSetIdentite.setLayout(creerFormLayout(120, LabelAlign.LEFT));
nomStructureChp = new TextField<String>();
nomStructureChp.setTabIndex(tabIndex++);
nomStructureChp.setFieldLabel("Nom de la structure");
nomStructureChp.setAllowBlank(false);
nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
nomStructureChp.addStyleName(ComposantClass.OBLIGATOIRE);
nomStructureChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
projetsMagazin = new ListStore<Projet>();
mediateur.selectionnerProjet(this, null);
projetsCombo = new ComboBox<Projet>();
projetsCombo.setTabIndex(tabIndex++);
projetsCombo.setFieldLabel("Projet");
projetsCombo.setLabelSeparator("");
projetsCombo.setDisplayField("nom");
projetsCombo.setEditable(false);
projetsCombo.setTriggerAction(TriggerAction.ALL);
projetsCombo.setStore(projetsMagazin);
projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
projetsCombo.addListener(Events.Valid, creerEcouteurChampObligatoire());
fieldSetIdentite.add(projetsCombo, new FormData(450, 0));
// Création du sous-formulaire : Acronyme
LayoutContainer ligne = new LayoutContainer();
ligne.setLayout(new ColumnLayout());
ligne.setSize(600, -1);
LayoutContainer gauche = new LayoutContainer();
gauche.setLayout(creerFormLayout(120, LabelAlign.LEFT));
LayoutContainer droite = new LayoutContainer();
droite.setLayout(creerFormLayout(10, LabelAlign.LEFT));
ListStore<InterneValeur> acronymes = new ListStore<InterneValeur>();
acronymes.add(InterneValeurListe.getTypeAcronyme());
comboAcronyme = new ComboBox<InterneValeur>();
comboAcronyme.setTabIndex(tabIndex++);
comboAcronyme.setEmptyText("Sélectioner un type d'acronyme...");
comboAcronyme.setFieldLabel("Type d'acronyme");
comboAcronyme.setDisplayField("nom");
comboAcronyme.setStore(acronymes);
comboAcronyme.setEditable(false);
comboAcronyme.setTypeAhead(true);
comboAcronyme.setTriggerAction(TriggerAction.ALL);
comboAcronyme.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
@Override
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
String acronymeAbr = se.getSelectedItem().getAbr();
if (acronymeAbr.equals("IH")) {
mnhnChp.hide();
ihChp.show();
} else if (acronymeAbr.equals("MNHN")) {
ihChp.hide();
mnhnChp.show();
} else if (acronymeAbr.equals("")) {
ihChp.hide();
mnhnChp.hide();
comboAcronyme.clearSelections();
}
}
});
gauche.add(comboAcronyme, new FormData("95%"));
ihChp = new TextField<String>();
ihChp.setTabIndex(tabIndex++);
ihChp.setLabelSeparator("");
ihChp.setToolTip("Index Herbariorum : herbier de plus de 5000 échantillons");
ihChp.hide();
droite.add(ihChp, new FormData("95%"));
mnhnChp = new TextField<String>();
mnhnChp.setTabIndex(tabIndex++);
mnhnChp.setLabelSeparator("");
mnhnChp.setToolTip("Acronyme MNHN : herbier de moins de 5000 échantillons");
mnhnChp.hide();
droite.add(mnhnChp, new FormData("95%"));
ligne.add(gauche, new ColumnData(.5));
ligne.add(droite, new ColumnData(.5));
fieldSetIdentite.add(ligne);
// Création du sous-formulaire : Type de Structure
LayoutContainer ligneTs = new LayoutContainer();
ligneTs.setLayout(new ColumnLayout());
ligneTs.setSize(600, -1);
LayoutContainer gaucheTs = new LayoutContainer();
gaucheTs.setLayout(creerFormLayout(120, LabelAlign.LEFT));
LayoutContainer droiteTs = new LayoutContainer();
droiteTs.setLayout(creerFormLayout(10, LabelAlign.LEFT));
ListStore<InterneValeur> typesStructure = new ListStore<InterneValeur>();
typesStructure.add(InterneValeurListe.getTypeStructure());
comboTypeStructure = new ComboBox<InterneValeur>();
comboTypeStructure.setTabIndex(tabIndex++);
comboTypeStructure.setEmptyText("Sélectioner un type de structure...");
comboTypeStructure.setFieldLabel("Statut des structures");
comboTypeStructure.setDisplayField("nom");
comboTypeStructure.setStore(typesStructure);
comboTypeStructure.setEditable(false);
comboTypeStructure.setTypeAhead(true);
comboTypeStructure.setTriggerAction(TriggerAction.ALL);
comboTypeStructure.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
@Override
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
String typeAbr = se.getSelectedItem().getAbr();
if (typeAbr.equals("stpu")) {
comboLstpr.hide();
comboLstpu.show();
} else if (typeAbr.equals("stpr")) {
comboLstpu.hide();
comboLstpr.show();
} else if (typeAbr.equals("")) {
comboLstpr.hide();
comboLstpu.hide();
comboTypeStructure.clearSelections();
}
}
});
gaucheTs.add(comboTypeStructure, new FormData("95%"));
magazinLstpu = new ListStore<Valeur>();
comboLstpu = new ComboBox<Valeur>();
comboLstpu.setTabIndex(tabIndex++);
//comboLstpu.setFieldLabel("Statut des structures publiques");
comboLstpu.setLabelSeparator("");
comboLstpu.setDisplayField("nom");
comboLstpu.setEditable(false);
comboLstpu.setTriggerAction(TriggerAction.ALL);
comboLstpu.setStore(magazinLstpu);
comboLstpu.hide();
droiteTs.add(comboLstpu, new FormData("95%"));
mediateur.obtenirListeValeurEtRafraichir(this, "stpu");
magazinLstpr = new ListStore<Valeur>();
comboLstpr = new ComboBox<Valeur>();
comboLstpr.setTabIndex(tabIndex++);
//comboLstpr.setFieldLabel("Statut des structures privées");
comboLstpr.setLabelSeparator("");
comboLstpr.setDisplayField("nom");
comboLstpr.setEditable(false);
comboLstpr.setTriggerAction(TriggerAction.ALL);
comboLstpr.setStore(magazinLstpr);
comboLstpr.hide();
droiteTs.add(comboLstpr, new FormData("95%"));
mediateur.obtenirListeValeurEtRafraichir(this, "stpr");
ligneTs.add(gaucheTs, new ColumnData(0.5));
ligneTs.add(droiteTs, new ColumnData(0.5));
fieldSetIdentite.add(ligneTs);
dateFondationChp = new DateField();
dateFondationChp.setTabIndex(tabIndex++);
dateFondationChp.setFieldLabel("Date de fondation");
dateFondationChp.getPropertyEditor().getFormat();
dateFondationChp.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd/MM/yyyy"));
dateFondationChp.getMessages().setInvalidText("La valeur saisie n'est pas une date valide. La date doit être au format «jj/mm/aaaa».");
fieldSetIdentite.add(dateFondationChp);
nbreTotalPersonneStructureChp = new NumberField();
nbreTotalPersonneStructureChp.setFieldLabel("Nombre de personne travaillant dans l'institution");
nbreTotalPersonneStructureChp.setFormat(NumberFormat.getFormat("#"));
nbreTotalPersonneStructureChp.setToolTip(i18nC.champNumerique());
fieldSetIdentite.add(nbreTotalPersonneStructureChp);
 
identificationOnglet.add(fieldSetIdentite);
//+-----------------------------------------------------------------------------------------------------------+
// Fieldset ADRESSE
LayoutContainer principalFdAdresse = new LayoutContainer();
principalFdAdresse.setLayout(new ColumnLayout());
principalFdAdresse.setSize(600, -1);
LayoutContainer gaucheFdAdresse = new LayoutContainer();
gaucheFdAdresse.setLayout(creerFormLayout(null, LabelAlign.LEFT));
LayoutContainer droiteFdAdresse = new LayoutContainer();
droiteFdAdresse.setLayout(creerFormLayout(null, LabelAlign.LEFT));
FieldSet fieldSetAdresse = new FieldSet();
fieldSetAdresse.setHeading("Adresse");
fieldSetAdresse.setCollapsible(true);
fieldSetAdresse.setLayout(creerFormLayout(null, LabelAlign.LEFT));
adrChp = new TextArea();
adrChp.setTabIndex(tabIndex++);
adrChp.setFieldLabel("Adresse");
fieldSetAdresse.add(adrChp, new FormData(550, 0));
cpChp = new TextField<String>();
cpChp.setTabIndex(tabIndex++);
cpChp.setFieldLabel("Code postal");
gaucheFdAdresse.add(cpChp, new FormData("95%"));
villeChp = new TextField<String>();
villeChp.setTabIndex(tabIndex++);
villeChp.setFieldLabel("Ville");
gaucheFdAdresse.add(villeChp, new FormData("95%"));
magazinPays = new ListStore<Valeur>();
comboPays = new ComboBox<Valeur>();
comboPays.setTabIndex(tabIndex++);
comboPays.setFieldLabel("Pays");
comboPays.setEmptyText("Sélectionner un pays...");
comboPays.setEditable(true);
comboPays.setLabelSeparator("");
comboPays.setDisplayField("nom");
comboPays.setTemplate(getTemplatePays());
comboPays.setTypeAhead(true);
comboPays.setTriggerAction(TriggerAction.ALL);
comboPays.setStore(magazinPays);
SelectionChangedListener<Valeur> selectionChange = new SelectionChangedListener<Valeur>() {
public void selectionChanged(SelectionChangedEvent se) {
// Rafraichir avec le pays sélectionné
obtenirListeRegionParPays(((Valeur) se.getSelectedItem()).getAbreviation().toString());
}
};
comboPays.addSelectionChangedListener(selectionChange);
droiteFdAdresse.add(comboPays, new FormData("95%"));
mediateur.obtenirListeValeurEtRafraichir(this, "pays");
magazinRegion = new ListStore<Valeur>();
comboRegion = new ComboBox<Valeur>();
comboRegion.setTabIndex(tabIndex++);
comboRegion.setFieldLabel("Région");
comboRegion.setEmptyText("Sélectionner une région...");
comboRegion.setDisplayField("nom");
comboRegion.setTypeAhead(true);
comboRegion.setTriggerAction(TriggerAction.ALL);
comboRegion.setStore(magazinRegion);
droiteFdAdresse.add(comboRegion, new FormData("95%"));
principalFdAdresse.add(gaucheFdAdresse, new ColumnData(.5));
principalFdAdresse.add(droiteFdAdresse, new ColumnData(.5));
fieldSetAdresse.add(principalFdAdresse);
identificationOnglet.add(fieldSetAdresse);
//+-----------------------------------------------------------------------------------------------------------+
// Fieldset TÉLÉPHONE et EMAIL
LayoutContainer principalFdTelMail = new LayoutContainer();
principalFdTelMail.setLayout(new ColumnLayout());
principalFdTelMail.setSize(700, -1);
LayoutContainer gaucheFdTelMail = new LayoutContainer();
gaucheFdTelMail.setLayout(creerFormLayout(60, LabelAlign.LEFT));
LayoutContainer droiteFdTelMail = new LayoutContainer();
droiteFdTelMail.setLayout(creerFormLayout(60, LabelAlign.LEFT));
FieldSet fieldSetTelMail = new FieldSet();
fieldSetTelMail.setHeading("Communication");
fieldSetTelMail.setCollapsible(true);
fieldSetTelMail.setLayout(creerFormLayout(null, LabelAlign.LEFT));
telChp = new TextField<String>();
telChp.setTabIndex(tabIndex++);
telChp.setFieldLabel("Téléphone fixe");
gaucheFdTelMail.add(telChp, new FormData("95%"));
faxChp = new TextField<String>();
faxChp.setTabIndex(tabIndex++);
faxChp.setFieldLabel("Fax");
droiteFdTelMail.add(faxChp, new FormData("95%"));
emailChp = new TextField<String>();
emailChp.setTabIndex(tabIndex++);
emailChp.setFieldLabel("Courriel");
emailChp.setToolTip("Saisir le courriel de l'organisation, pas de courriel individuel. Ex. : accueil@organisation.org");
gaucheFdTelMail.add(emailChp, new FormData("95%"));
urlChp = new TextField<String>();
urlChp.setTabIndex(tabIndex++);
urlChp.setFieldLabel("Site web");
droiteFdTelMail.add(urlChp, new FormData("95%"));
principalFdTelMail.add(gaucheFdTelMail, new ColumnData(.5));
principalFdTelMail.add(droiteFdTelMail, new ColumnData(.5));
fieldSetTelMail.add(principalFdTelMail);
identificationOnglet.add(fieldSetTelMail);
return identificationOnglet;
}
public void obtenirListeRegionParPays(String strPays) {
mediateur.obtenirListeRegionsEtRafraichir(this, "region", strPays);
}
private void mettreAJourRegion() {
//Met à jour la combo box en sélectionnant la valeur enregistrée pour la personne
if (identification.get("ce_truk_region") != null && comboRegion.getStore().getCount() > 0) {
Valeur valeurRegion = comboRegion.getStore().findModel("id_valeur", identification.get("ce_truk_region"));
if (valeurRegion!=null) {
comboRegion.setValue(valeurRegion);
} else if (identification.get("ce_truk_region").toString().startsWith("AUTRE##")) {
comboRegion.setRawValue(identification.get("ce_truk_region").toString().replaceFirst("^AUTRE##", ""));
}
}
}
private native String getTemplatePays() /*-{
return [
'<tpl for=".">',
'<div class="x-combo-list-item">{nom} ({abreviation})</div>',
'</tpl>'
].join("");
}-*/;
private void peuplerCasesACocher(String donnees, CheckBoxGroup groupeCac, TextField<String> champAutre) {
String[] valeurs = donnees.split(";;");
for (int i = 0; i < valeurs.length; i++) {
if (valeurs[i].startsWith("AUTRE##")) {
champAutre.setValue(valeurs[i].replaceFirst("^AUTRE##", ""));
} else {
//TODO : check : List<CheckBox> cases = groupeCac.getAll();
List<Field<?>> cases = groupeCac.getAll();
for (int j = 0; j < cases.size(); j++) {
if (cases.get(j).getId().equals("val-"+valeurs[i])) {
((CheckBox) cases.get(j)).setValue(true);
}
}
}
}
}
private void peuplerBoutonsRadio(String valeur, RadioGroup groupeBr) {
//List<Radio> boutons = groupeBr.getAll();
List<Field<?>> boutons = groupeBr.getAll();
String id = valeur+"_"+groupeBr.getName().replace("_grp", "");
for (int i = 0; i < boutons.size(); i++) {
if (boutons.get(i).getId().equals(id)) {
((Radio) boutons.get(i)).setValue(true);
}
}
}
private String creerChaineDenormalisee(List<CheckBox> liste) {
String identifiants = "";
if (liste != null) {
int taille = liste.size();
for (int i = 0; i < taille; i++) {
CheckBox cac = liste.get(i);
if (cac.isEnabled()) {
identifiants = identifiants.concat(";;"+cac.getData("id"));
}
}
identifiants.replaceFirst("^;;", "");
}
return identifiants;
}
public void afficherChampSupplementaire(Radio radioBtn) {
//GWT.log("Nom btn : "+radioBtn.getName()+" - Nom group : "+radioBtn.getGroup().getName(), null);
// Valeur du bouton radio déclenchant l'affichage des composants cachés
String valeurPourAfficher = "oui";
// Construction de la liste des composants à afficher/cacher
String radioGroupeNom = radioBtn.getGroup().getName();
ArrayList<Object> composants = new ArrayList<Object>();
if (radioGroupeNom.equals("action_mark_grp")) {
composants.add(actionTrukCp);
} else if (radioGroupeNom.equals("future_action_mark_grp")) {
composants.add(futureActionChp);
} else if (radioGroupeNom.equals("sans_motif_acces_mark_grp")) {
composants.add(sansMotifAccesChp);
} else if (radioGroupeNom.equals("avec_motif_acces_mark_grp")) {
composants.add(avecMotifAccesChp);
} else if (radioGroupeNom.equals("recherche_mark_grp")) {
composants.add(provenanceRechercheTrukCp);
composants.add(typeRechercheTrukCp);
} else if (radioGroupeNom.equals("formation_mark_grp")) {
composants.add(formationChp);
} else if (radioGroupeNom.equals("collection_commune_mark_grp")) {
composants.add(collectionAutreTrukCp);
} else if (radioGroupeNom.equals("restauration_mark_grp")) {
composants.add(opRestauTrukCp);
} else if (radioGroupeNom.equals("traitement_mark_grp")) {
composants.add(traitementTrukCp);
} else if (radioGroupeNom.equals("echantillon_acquisition_mark_grp")) {
composants.add(traitementAcquisitionMarkRGrpChp);
} else if (radioGroupeNom.equals("traitement_acquisition_mark_grp")) {
composants.add(traitementAcquisitionMarkLabel);
composants.add(poisonTraitementTrukCp);
composants.add(insecteTraitementTrukCp);
} else if (radioGroupeNom.equals("materiel_conservation_ce_grp")) {
composants.add(autreMaterielTrukCp);
valeurPourAfficher = "non";
}
// Nous affichons/cachons les composant de la liste
final int nbreComposants = composants.size();
//GWT.log("Id : "+radioBtn.getId()+" - Class : "+radioBtn.getClass().toString()+"- Taille : "+tailleMax, null);
//Window.alert("Radio grp nom : "+radioGroupeNom+" - Id btn : "+radioBtn.getId()+" - Class : "+radioBtn.getClass().toString()+"- Taille : "+tailleMax);
for (int i = 0; i < nbreComposants; i++) {
// En fonction du type de bouton cliquer, on affiche ou cache les champs
String type = radioBtn.getBoxLabel().toLowerCase();
//GWT.log(type, null);
if (radioBtn.getValue() == true) {
if (type.equals(valeurPourAfficher)) {
((Component) composants.get(i)).show();
} else {
((Component) composants.get(i)).hide();
}
}
// Si on a à faire à un ContentPanel, on l'actualise pour déclencher l'affichage
if (composants.get(i) instanceof ContentPanel) {
((ContentPanel) composants.get(i)).layout();
}
}
}
public void rafraichir(Object nouvellesDonnees) {
try {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
rafraichirInformation(info);
} else if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
rafraichirValeurListe(listeValeurs);
} else if (nouvellesDonnees instanceof ProjetListe) {
ProjetListe projets = (ProjetListe) nouvellesDonnees;
rafraichirProjetListe(projets);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
} catch (Exception e) {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), e);
}
controlerFermetureApresRafraichissement();
}
public void rafraichirInformation(Information info) {
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
}
if (info.getType().equals("modif_structure")) {
Info.display("Modification d'une institution", info.toString());
} else if (info.getType().equals("ajout_structure")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String structureId = (String) info.getDonnee(0);
Info.display("Ajout d'une Institution", "L'intitution '"+structureId+"' a bien été ajoutée");
// Suite à la récupération de l'id de l'institution nouvellement ajoutée nous ajoutons le personnel
mediateur.ajouterStructureAPersonne(this, structureId, personnelAjoute);
} else {
Info.display("Ajout d'une Institution", info.toString());
}
} else if (info.getType().equals("modif_structure_a_personne")) {
Info.display("Modification du Personnel", info.toString());
GWT.log("Decompte:"+decompteRafraichissementPersonnel, null);
testerLancementRafraichirPersonnel();
} else if (info.getType().equals("suppression_structure_a_personne")) {
Info.display("Suppression du Personnel", info.toString());
GWT.log("Decompte:"+decompteRafraichissementPersonnel, null);
testerLancementRafraichirPersonnel();
} else if (info.getType().equals("ajout_structure_a_personne")) {
Info.display("Ajout du Personnel", info.toString());
GWT.log("Decompte:"+decompteRafraichissementPersonnel, null);
testerLancementRafraichirPersonnel();
} else if (info.getType().equals("selection_structure")) {
Info.display("Modification d'une institution", info.toString());
String titre = i18nC.titreModifFormStructurePanneau();
if (info.getDonnee(0) != null) {
identification = (Structure) info.getDonnee(0);
if (onglets.getSelectedItem().equals(identificationOnglet)) {
peuplerStructureIdentification();
}
// Composition du titre
titre += " - ID : "+identification.getId();
}
if (info.getDonnee(1) != null) {
conservation = (StructureConservation) info.getDonnee(1);
if (onglets.getSelectedItem().equals(conservationOnglet)) {
peuplerStructureConservation();
}
}
if (info.getDonnee(2) != null) {
valorisation = (StructureValorisation) info.getDonnee(2);
if (valorisation != null) {
if (onglets.getSelectedItem().equals(valorisationOnglet)) {
peuplerStructureValorisation();
}
}
}
panneauFormulaire.setHeading(titre);
} else if (info.getType().equals("liste_structure_a_personne")) {
if (info.getDonnee(0) != null) {
personnel = (StructureAPersonneListe) info.getDonnee(0);
 
peuplerStructurePersonnel();
personnelOnglet.layout();
Info.display("Chargement du Personnel", "ok");
 
// Remise à zéro des modification dans la liste du personnel
personnelModifie = new StructureAPersonneListe();
personnelAjoute = new StructureAPersonneListe();
personnelSupprime = new StructureAPersonneListe();
}
} else if (info.getType().equals("liste_personne")) {
if (info.getDonnee(0) != null) {
PersonneListe personnes = (PersonneListe) info.getDonnee(0);
List<Personne> liste = personnes.toList();
personneExistanteMagazin.removeAll();
personneExistanteMagazin.add(liste);
personneExistanteCombo.setStore(personneExistanteMagazin);
personneExistanteCombo.expand();
}
}
}
public void rafraichirValeurListe(ValeurListe listeValeurs) {
List<Valeur> liste = listeValeurs.toList();
 
// Test pour savoir si la liste contient des éléments
if (liste.size() > 0) {
if (listeValeurs.getId().equals(config.getListeId("stpr"))) {
magazinLstpr.removeAll();
magazinLstpr.add(liste);
comboLstpr.setStore(magazinLstpr);
}
if (listeValeurs.getId().equals(config.getListeId("stpu"))) {
magazinLstpu.removeAll();
magazinLstpu.add(liste);
comboLstpu.setStore(magazinLstpu);
}
if (listeValeurs.getId().equals(config.getListeId("statut"))) {
magazinLiStatut.removeAll();
magazinLiStatut.add(liste);
comboLiStatut.setStore(magazinLiStatut);
}
if (listeValeurs.getId().equals(config.getListeId("fonction"))) {
// FIXME : le store ne contient pas tout le temps les données, chose étrange.
// On stocke donc les données dans une variables de la classe pour recharger le store si besoin.
fonctionsListe = liste;
fonctionsMagazin.removeAll();
fonctionsMagazin.add(liste);
fonctionsCombo.setStore(fonctionsMagazin);
}
if (listeValeurs.getId().equals(config.getListeId("pays"))) {
magazinPays.removeAll();
magazinPays.add(liste);
comboPays.setStore(magazinPays);
}
if (listeValeurs.getId().equals(config.getListeId("region"))) {
magazinRegion.removeAll();
magazinRegion.add(liste);
comboRegion.setStore(magazinRegion);
mettreAJourRegion();
}
if (listeValeurs.getId().equals(config.getListeId("localStockage"))) {
localStockageAutreChp = new TextField<String>();
creerChoixMultipleCac(localStockageTrukCp, localStockageTrukCacGrpChp, listeValeurs, localStockageAutreChp);
}
if (listeValeurs.getId().equals(config.getListeId("meubleStockage"))) {
meubleStockageAutreChp = new TextField<String>();
creerChoixMultipleCac(meubleStockageTrukCp, meubleStockageTrukCacGrpChp, listeValeurs, meubleStockageAutreChp);
}
if (listeValeurs.getId().equals(config.getListeId("parametreStockage"))) {
parametreStockageAutreChp = new TextField<String>();
creerChoixMultipleCac(parametreStockageTrukCp, parametreStockageTrukCacGrpChp, listeValeurs, parametreStockageAutreChp);
}
if (listeValeurs.getId().equals(config.getListeId("autreCollection"))) {
if (collectionAutreTrukCp != null && collectionAutreTrukCp.getItemByItemId("collectionAutreTrukCacGrpChp") == null) {
collectionAutreTrukCacGrpChp.setId("collectionAutreTrukCacGrpChp");
collectionAutreAutreChp = new TextField<String>();
creerChoixMultipleCac(collectionAutreTrukCp, collectionAutreTrukCacGrpChp, listeValeurs, collectionAutreAutreChp);
}
if (autreCollectionTrukCp != null && autreCollectionTrukCp.getItemByItemId("autreCollectionTrukCacGrpChp") == null) {
autreCollectionTrukCacGrpChp.setId("autreCollectionTrukCacGrpChp");
autreCollectionAutreChp = new TextField<String>();
creerChoixMultipleCac(autreCollectionTrukCp, autreCollectionTrukCacGrpChp, listeValeurs, autreCollectionAutreChp);
}
}
if (listeValeurs.getId().equals(config.getListeId("opRestau"))) {
opRestauAutreChp = new TextField<String>();
creerChoixMultipleCac(opRestauTrukCp, opRestauTrukCacGrpChp, listeValeurs, opRestauAutreChp);
}
if (listeValeurs.getId().equals(config.getListeId("onep"))) {
creerChoixUniqueBoutonRadio(materielConservationCeRGrpChp, listeValeurs);
materielConservationCp.add(materielConservationCeRGrpChp);
materielConservationCp.layout();
}
if (listeValeurs.getId().equals(config.getListeId("autreMateriel"))) {
autreMaterielAutreChp = new TextField<String>();
creerChoixMultipleCac(autreMaterielTrukCp, autreMaterielTrukCacGrpChp, listeValeurs, autreMaterielAutreChp);
}
if (listeValeurs.getId().equals(config.getListeId("poisonTraitement"))) {
poisonTraitementAutreChp = new TextField<String>();
creerChoixMultipleCac(poisonTraitementTrukCp, poisonTraitementTrukCacGrpChp, listeValeurs, poisonTraitementAutreChp);
}
if (listeValeurs.getId().equals(config.getListeId("insecteTraitement"))) {
if (traitementTrukCp != null && traitementTrukCp.getItemByItemId("traitementTrukCacGrpChp") == null) {
traitementTrukCacGrpChp.setId("traitementTrukCacGrpChp");
traitementAutreChp = new TextField<String>();
creerChoixMultipleCac(traitementTrukCp, traitementTrukCacGrpChp, listeValeurs, traitementAutreChp);
}
if (insecteTraitementTrukCp != null && insecteTraitementTrukCp.getItemByItemId("insecteTraitementTrukCacGrpChp") == null) {
insecteTraitementTrukCacGrpChp.setId("insecteTraitementTrukCacGrpChp");
insecteTraitementAutreChp = new TextField<String>();
creerChoixMultipleCac(insecteTraitementTrukCp, insecteTraitementTrukCacGrpChp, listeValeurs, insecteTraitementAutreChp);
}
}
if (listeValeurs.getId().equals(config.getListeId("actionValorisation"))) {
actionAutreChp = new TextField<String>();
creerChoixMultipleCac(actionTrukCp, actionTrukCacGrpChp, listeValeurs, actionAutreChp);
}
if (listeValeurs.getId().equals(config.getListeId("continentEtFr"))) {
provenanceRechercheAutreChp = new TextField<String>();
creerChoixMultipleCac(provenanceRechercheTrukCp, provenanceRechercheTrukCacGrpChp, listeValeurs, provenanceRechercheAutreChp);
}
if (listeValeurs.getId().equals(config.getListeId("typeRecherche"))) {
typeRechercheAutreChp = new TextField<String>();
creerChoixMultipleCac(typeRechercheTrukCp, typeRechercheTrukCacGrpChp, listeValeurs, typeRechercheAutreChp);
}
//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
} else {
GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
}
}
private void rafraichirProjetListe(ProjetListe projets) {
List<Projet> liste = projets.toList();
projetsMagazin.removeAll();
projetsMagazin.add(liste);
projetsCombo.setStore(projetsMagazin);
}
private void testerLancementRafraichirPersonnel() {
decompteRafraichissementPersonnel--;
if (decompteRafraichissementPersonnel == 0) {
// Nous rechargeons la liste du Personnel
rafraichirPersonnel();
}
}
private void rafraichirPersonnel() {
decompteRafraichissementPersonnel = 0;
if (mode.equals(MODE_MODIFIER)) {
initialiserGrillePersonnelEnModification();
} else if (mode.equals(MODE_AJOUTER)) {
initialiserGrillePersonnelEnAjout();
}
}
private void rafraichirPersonneExistante(String nom) {
mediateur.selectionnerPersonneParNomComplet(this, null, nom+"%");
}
private void ajouterMembreAGrillePersonnel(StructureAPersonne personnel) {
grillePersonnel.stopEditing();
personnelGrilleMagazin.insert(personnel, 0);
grillePersonnel.startEditing(0, 0);
}
private void initialiserGrillePersonnelEnAjout() {
personnelGrilleMagazin.removeAll();
StructureAPersonne conservateurDesCollections = new StructureAPersonne(StructureAPersonne.FONCTION_CONSERVATEUR, StructureAPersonne.ROLE_EQUIPE, StructureAPersonne.ETAT_AJOUTE);
ajouterMembreAGrillePersonnel(conservateurDesCollections);
StructureAPersonne directeurDuPersonnel = new StructureAPersonne(StructureAPersonne.FONCTION_DIRECTEUR, StructureAPersonne.ROLE_EQUIPE, StructureAPersonne.ETAT_AJOUTE);
ajouterMembreAGrillePersonnel(directeurDuPersonnel);
personnelOnglet.layout();
}
private void initialiserGrillePersonnelEnModification() {
mediateur.selectionnerStructureAPersonne(this, identification.getId(), StructureAPersonne.ROLE_EQUIPE);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/DetailVue.java
New file
0,0 → 1,303
package org.tela_botanica.client.vues;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilString;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.HtmlContainer;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
 
public abstract class DetailVue extends LayoutContainer implements Rafraichissable {
 
protected Mediateur mediateur = null;
protected Constantes i18nC = null;
 
protected HashMap<String, Valeur> ontologie = null;
protected boolean ontologieChargementOk = false;
private HashMap<Integer, String> ontologiesEnAttenteDeReception = null;
protected ProjetListe projets = null;
protected boolean projetsChargementOk = false;
protected String sautLigneTpl = null;
public DetailVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
i18nC = Mediateur.i18nC;
initialiserSautLigneTpl();
ontologie = new HashMap<String, Valeur>();
ontologieChargementOk = false;
ontologiesEnAttenteDeReception = new HashMap<Integer, String>();
chargerProjets();
setLayout(new FitLayout());
setBorders(false);
setScrollMode(Scroll.AUTO);
}
private void initialiserSautLigneTpl() {
sautLigneTpl = "<br />\n";
}
private void chargerProjets() {
mediateur.selectionnerProjet(this, null);
}
protected String construireTxtProjet(String idProjet) {
String chaineARetourner = idProjet;
if (projets != null) {
Projet projet = projets.get(idProjet);
if (projet != null) {
String nomDuProjet = projet.getNom();
if (!nomDuProjet.equals("")) {
chaineARetourner = nomDuProjet;
}
}
}
return chaineARetourner;
}
protected String construireTxtTruck(String chaineAAnalyser) {
ArrayList<String> termes = new ArrayList<String>();
if ((chaineAAnalyser != null) && (!chaineAAnalyser.trim().equals(""))) {
String[] valeurs = chaineAAnalyser.split(aDonnee.SEPARATEUR_VALEURS);
int nbreValeurs = valeurs.length;
if (nbreValeurs > 0) {
for (int i = 0; i < nbreValeurs; i++) {
String valeur = valeurs[i];
String valeurFormatee = formaterValeurTruck(valeur);
termes.add(valeurFormatee);
}
}
}
String chaineARetourner = formaterTableauDeTxt(termes);
return chaineARetourner;
}
private String formaterValeurTruck(String valeur) {
String chaineARetourner = "";
if (valeur.matches("^[^#]+##[^$]+$")) {
String[] cleValeur = valeur.split(aDonnee.SEPARATEUR_TYPE_VALEUR);
chaineARetourner = (UtilString.isEmpty(cleValeur[1]) || cleValeur[1].equals("null") ? aDonnee.VALEUR_NULL : cleValeur[1]) +" "+formaterParenthese(cleValeur[0]);
} else if (!valeur.equals("")) {
chaineARetourner = valeur;
} else {
GWT.log("Valeur truck posant problème :"+valeur, null);
}
return chaineARetourner;
}
protected String formaterParenthese(String chaineAAfficher) {
if (!chaineAAfficher.equals("")) {
chaineAAfficher = "("+chaineAAfficher+")";
}
return chaineAAfficher;
}
protected String formaterTableauDeTxt(ArrayList<String> tableauDeTxt) {
String chaineAAfficher = "";
int tailleDuTableau = tableauDeTxt.size();
if (tailleDuTableau > 0) {
int indexAvtDernier = tailleDuTableau - 1;
for (int i = 0; i < tailleDuTableau; i++) {
String mot = tableauDeTxt.get(i);
if (i != indexAvtDernier) {
chaineAAfficher += mot+", ";
} else {
chaineAAfficher += nettoyerPointFinal(mot)+".";
}
}
}
return UtilString.ucFirst(chaineAAfficher);
}
protected String nettoyerPointFinal(String mot) {
mot = mot.replaceAll("[.]$", "");
return mot;
}
protected String formaterContenu(String template, Params parametres) {
String cHtml = Format.substitute(template, parametres);
Params cssParams = new Params();
cssParams.set("css_lien_ext", ComposantClass.LIEN_EXTERNE);
cssParams.set("css_corps", ComposantClass.DETAIL_CORPS_CONTENU);
cssParams.set("css_label", ComposantClass.LABEL);
cssParams.set("css_indentation", ComposantClass.INDENTATION);
cssParams.set("css_fieldset", ComposantClass.FIELDSET);
cssParams.set("css_clear", ComposantClass.CLEAR);
cHtml = Format.substitute(cHtml, cssParams);
return cHtml;
}
protected void afficherOnglet(String template, Params parametres, TabItem onglet) {
String cHtml = formaterContenu(template, parametres);
HtmlContainer corpsConteneurDuHtml = new HtmlContainer(cHtml);
onglet.removeAll();
onglet.add(corpsConteneurDuHtml);
}
protected String formaterAutre(String chaineAAfficher) {
if (!chaineAAfficher.equals("")) {
chaineAAfficher = " ["+i18nC.autres()+" : "+chaineAAfficher+"]";
}
return chaineAAfficher;
}
protected String formaterOuiNon(String chaineAFormater) {
String txtARetourner = "";
if (chaineAFormater.equals("0")) {
txtARetourner = i18nC.non();
} else if (chaineAFormater.equals("1")) {
txtARetourner = i18nC.oui();
}
return txtARetourner;
}
protected String formaterSautDeLigne(String chaineAFormater) {
String txtARetourner = chaineAFormater.replaceAll("\n", sautLigneTpl);
return txtARetourner;
}
protected void lancerChargementListesValeurs(String[] listesCodes) {
Configuration configuration = (Configuration) Registry.get(RegistreId.CONFIG);
for (int i = 0; i < listesCodes.length ; i++) {
String code = listesCodes[i];
ontologiesEnAttenteDeReception.put(configuration.getListeId(code), code);
mediateur.obtenirListeValeurEtRafraichir(this, code);
}
}
protected void receptionerListeValeurs(ValeurListe listeValeursReceptionnee) {
mettreAJourOntologieEnAttenteDeReception(listeValeursReceptionnee);
ajouterListeValeursAOntologie(listeValeursReceptionnee);
}
protected void mettreAJourOntologieEnAttenteDeReception(ValeurListe listeValeursReceptionnee) {
ontologiesEnAttenteDeReception.remove(listeValeursReceptionnee.getId());
if (ontologiesEnAttenteDeReception.size() == 0) {
ontologieChargementOk = true;
}
}
protected void ajouterListeValeursAOntologie(ValeurListe listeValeursReceptionnee) {
Iterator<String> it = listeValeursReceptionnee.keySet().iterator();
while (it.hasNext()) {
String cle = it.next();
Valeur valeur = listeValeursReceptionnee.get(cle);
if (valeur != null) {
ontologie.put(cle, valeur);
}
}
}
public String construireTxtListeOntologie(String chaineAAnalyser) {
return construireTxtListeOntologie(chaineAAnalyser, true, true, false);
}
public String construireTxtListeOntologie(String chaineAAnalyser, boolean valeurEstOntologie, boolean typeEstOntologie, boolean donneeEstOntologie) {
ArrayList<String> termes = new ArrayList<String>();
ArrayList<String> autres = new ArrayList<String>();
chaineAAnalyser = chaineAAnalyser.trim();
if (!UtilString.isEmpty(chaineAAnalyser)) {
String[] valeurs = chaineAAnalyser.split(aDonnee.SEPARATEUR_VALEURS);
int nbreValeurs = valeurs.length;
if (nbreValeurs > 0) {
for (int i = 0; i < nbreValeurs; i++) {
String valeur = valeurs[i];
// VALEUR SANS TYPE
// La valeur sans type est une entrée de l'ontologie
if (valeurEstOntologie && valeur.matches("^[0-9]+$")) {
if (valeur.equals("0")) {
valeur = "";
} else if (ontologie != null) {
Valeur valeurOntologie = ontologie.get(valeur);
if (valeurOntologie != null) {
valeur = valeurOntologie.getNom();
}
}
}
// VALEUR AVEC TYPE
// Type : AUTRE
String valeurTypeAutre = aDonnee.TYPE_AUTRE+aDonnee.SEPARATEUR_TYPE_VALEUR;
if (valeur.matches("^"+valeurTypeAutre+".+$")) {
String txtAutre = valeur.replaceFirst("^"+valeurTypeAutre, "");
if (!txtAutre.equals("")) {
autres.add(txtAutre);
}
valeur = "";
}
// Type correspondant à une entrée de l'ontologie
if (typeEstOntologie) {
String valeurTypeOntologie = "[0-9]+"+aDonnee.SEPARATEUR_TYPE_VALEUR;
if (valeur.matches("^"+valeurTypeOntologie+".+$")) {
String type = valeur.substring(0, valeur.indexOf(aDonnee.SEPARATEUR_TYPE_VALEUR));
if (ontologie != null && ontologie.get(type) != null) {
Valeur valeurOntologie = ontologie.get(type);
valeur = valeur.replaceFirst("^"+type, valeurOntologie.getNom()+": ");
}
}
}
// Donnée correspondant à une entrée de l'ontologie
if (donneeEstOntologie) {
String donneeOntologie = aDonnee.SEPARATEUR_TYPE_VALEUR+"[0-9]+";
if (valeur.matches("^.+"+donneeOntologie+"$")) {
String donnee = valeur.substring(valeur.indexOf(aDonnee.SEPARATEUR_TYPE_VALEUR), valeur.length());
donnee = donnee.replaceFirst("^"+aDonnee.SEPARATEUR_TYPE_VALEUR, "");
if (ontologie != null && ontologie.get(donnee) != null) {
Valeur valeurOntologie = ontologie.get(donnee);
valeur = valeur.replaceFirst(donnee+"$", valeurOntologie.getNom());
}
}
}
// Nettoyage final
valeur = valeur.replaceFirst(aDonnee.SEPARATEUR_TYPE_VALEUR, "");
if (!UtilString.isEmpty(valeur)) {
termes.add(valeur);
}
}
}
}
String chaineTermes = formaterTableauDeTxt(termes);
String chaineAutres = formaterTableauDeTxt(autres);
String chaineARetourner = chaineTermes+formaterAutre(chaineAutres);
return chaineARetourner;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/commentaire/CommentaireVue.java
New file
0,0 → 1,51
package org.tela_botanica.client.vues.commentaire;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.commentaire.Commentaire;
import org.tela_botanica.client.modeles.commentaire.CommentaireListe;
 
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.google.gwt.core.client.GWT;
 
public class CommentaireVue extends LayoutContainer implements Rafraichissable {
private Mediateur mediateur = null;
private CommentaireListeVue panneauListe;
private CommentaireDetailVue panneauDetail;
public CommentaireVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
BorderLayout layout = new BorderLayout();
layout.setEnableState(false);
setLayout(layout);
 
panneauListe = new CommentaireListeVue(mediateur);
add(panneauListe, new BorderLayoutData(LayoutRegion.CENTER));
 
panneauDetail = new CommentaireDetailVue(mediateur);
BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, .5f, 200, 1000);
southData.setSplit(true);
southData.setMargins(new Margins(5, 0, 0, 0));
add(panneauDetail, southData);
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Commentaire) {
panneauDetail.rafraichir(nouvellesDonnees);
} else if (nouvellesDonnees instanceof CommentaireListe) {
panneauListe.rafraichir(nouvellesDonnees);
mediateur.desactiverChargement();
} else if (nouvellesDonnees instanceof Information) {
panneauListe.rafraichir(nouvellesDonnees);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/commentaire/CommentaireListeVue.java
New file
0,0 → 1,321
package org.tela_botanica.client.vues.commentaire;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.MenuApplicationId;
import org.tela_botanica.client.modeles.Utilisateur;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.commentaire.Commentaire;
import org.tela_botanica.client.modeles.commentaire.CommentaireListe;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.vues.BarrePaginationVue;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.GroupingStore;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnData;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
import com.extjs.gxt.ui.client.widget.grid.GridGroupRenderer;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.grid.GroupColumnData;
import com.extjs.gxt.ui.client.widget.grid.GroupingView;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.menu.Menu;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
 
public class CommentaireListeVue extends ContentPanel implements Rafraichissable {
 
private Mediateur mediateur = null;
private Constantes i18nC = null;
 
private Grid<Commentaire> grille = null;
private GroupingStore<Commentaire> store = null;
private ColumnModel modeleDesColonnes = null;
private Button ajouter;
private Button modifier;
private Button supprimer;
private BarrePaginationVue pagination = null;
private CommentaireListe commentaires = null;
protected boolean commentairesChargementOk = false;
protected HashMap<String, Valeur> ontologie = null;
protected boolean ontologieChargementOk = false;
public CommentaireListeVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
i18nC = Mediateur.i18nC;
setLayout(new FitLayout());
setHeading(i18nC.menuCommentaire());
// Gestion de l'ontologie
ontologie = new HashMap<String, Valeur>();
mediateur.obtenirListeValeurEtRafraichir(this, "typeCommentaireCollection");
// Gestion de la barre d'outil
ToolBar toolBar = new ToolBar();
ajouter = new Button(i18nC.ajouter());
ajouter.setIcon(Images.ICONES.ajouter());
ajouter.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
mediateur.clicAjouterCommentaire();
}
});
toolBar.add(ajouter);
 
modifier = new Button(i18nC.modifier());
modifier.setIcon(Images.ICONES.formModifier());
modifier.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
mediateur.clicModifierCommentaire(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(modifier);
supprimer = new Button(i18nC.supprimer());
supprimer.setIcon(Images.ICONES.supprimer());
supprimer.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
mediateur.clicSupprimerCommentaire(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(supprimer);
setTopComponent(toolBar);
 
// Gestion de la grille
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
// ATTENTION : les noms des colonnes doivent correspondre aux noms variables de la classe utilisée dans la liste
colonnes.add(new ColumnConfig("_collection_nom_", i18nC.commentaireCollection(), 150));
colonnes.add(creerColonneType());
colonnes.add(new ColumnConfig("_titre_", i18nC.commentaireTitre(), 150));
colonnes.add(new ColumnConfig("_ponderation_", i18nC.commentairePonderation(), 30));
colonnes.add(creerColonneAcces());
modeleDesColonnes = new ColumnModel(colonnes);
 
GridSelectionModel<Commentaire> modeleDeSelection = new GridSelectionModel<Commentaire>();
modeleDeSelection.addSelectionChangedListener(new SelectionChangedListener<Commentaire>() {
public void selectionChanged(SelectionChangedEvent<Commentaire> event) {
Commentaire commentaire = (Commentaire) event.getSelectedItem();
clicListe(commentaire);
}
});
store = new GroupingStore<Commentaire>();
//store.sort("cmhl_date_modification", SortDir.ASC);
store.groupBy("_collection_nom_");
store.setRemoteGroup(false);
GroupingView vueDeGroupe = new GroupingView();
vueDeGroupe.setShowGroupedColumn(false);
vueDeGroupe.setForceFit(true);
vueDeGroupe.setAutoFill(true);
vueDeGroupe.setGroupRenderer(new GridGroupRenderer() {
@Override
public String render(GroupColumnData data) {
String f = modeleDesColonnes.getColumnById(data.field).getHeader();
String l = data.models.size() == 1 ? i18nC.commentaireSingulier() : i18nC.commentairePluriel();
return f + ": " + data.group + " (" + data.models.size() + " " + l + ")";
}
});
grille = new Grid<Commentaire>(store, modeleDesColonnes);
grille.setView(vueDeGroupe);
grille.setWidth("100%");
grille.setAutoExpandColumn("_titre_");
grille.setSelectionModel(modeleDeSelection);
grille.addListener(Events.ViewReady, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
grille.getSelectionModel().select(0, false);
}
});
grille.addListener(Events.OnDoubleClick, new Listener<BaseEvent>(){
@Override
public void handleEvent(BaseEvent be) {
modifier.fireEvent(Events.Select);
}
});
add(grille);
// Définition de la barre de pagination
pagination = new BarrePaginationVue(new StructureListe(), mediateur);
setBottomComponent(pagination);
}
private ColumnConfig creerColonneType() {
GridCellRenderer<Commentaire> typeRendu = new GridCellRenderer<Commentaire>() {
@Override
public String render(Commentaire model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<Commentaire> store, Grid<Commentaire> grid) {
// FIXME : créer une classe Ontologie qui mixe le code ci-dessous et tout ce qui concerne l'ontologie dans DetailVue
String type = "";
String[] valeurs = model.getCollectionACommentaire().getType().split(aDonnee.SEPARATEUR_VALEURS);
int nbreValeurs = valeurs.length;
int indexAvtDernier = nbreValeurs - 1;
if (nbreValeurs > 0) {
for (int i = 0; i < nbreValeurs; i++) {
String valeur = valeurs[i];
if (valeur.matches("^[0-9]+$")) {
if (valeur.equals("0")) {
valeur = "";
} else if (ontologie != null) {
Valeur valeurOntologie = ontologie.get(valeur);
if (valeurOntologie != null) {
valeur = valeurOntologie.getNom();
}
}
}
if (i != indexAvtDernier) {
type += valeur+", ";
} else {
type += valeur;
}
}
}
model.set("_type_", type);
return type;
}
};
ColumnConfig typeColonne = new ColumnConfig("_type_", i18nC.commentaireType(), 100);
typeColonne.setRenderer(typeRendu);
return typeColonne;
}
private ColumnConfig creerColonneAcces() {
GridCellRenderer<Commentaire> accesRendu = new GridCellRenderer<Commentaire>() {
@Override
public String render(Commentaire model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<Commentaire> store, Grid<Commentaire> grid) {
String acces = (model.etrePublic() ? i18nC.donneePublic() : i18nC.donneePrivee());
model.set("_public_", acces);
return acces;
}
};
ColumnConfig accesColonne = new ColumnConfig("_public_", i18nC.commentairePublic(), 30);
accesColonne.setRenderer(accesRendu);
return accesColonne;
}
private void clicListe(Commentaire commentaire) {
if (commentaire != null && store.getCount() > 0) {
mediateur.clicListeCommentaire(commentaire);
}
}
 
private void gererEtatActivationBouton() {
int nbreElementDuMagazin = store.getCount();
ajouter.enable();
if (nbreElementDuMagazin <= 0) {
supprimer.disable();
modifier.disable();
} else if (nbreElementDuMagazin > 0) {
modifier.enable();
if (((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT)).isIdentifie()) {
supprimer.enable();
}
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof CommentaireListe) {
commentaires = (CommentaireListe) nouvellesDonnees;
pagination.setlistePaginable(commentaires);
pagination.rafraichir(commentaires.getPageTable());
commentairesChargementOk = true;
} else if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
Iterator<String> it = listeValeursReceptionnee.keySet().iterator();
while (it.hasNext()) {
String cle = it.next();
Valeur valeur = listeValeursReceptionnee.get(cle);
if (valeur != null) {
ontologie.put(cle, valeur);
}
}
ontologieChargementOk = true;
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("maj_utilisateur")) {
gererEtatActivationBouton();
} else if (info.getType().equals("suppression_commentaire")) {
String message = info.toString();
if (info.getDonnee(0) != null) {
message = (String) info.getDonnee(0);
}
Info.display(i18nC.commentaireTitreSuppression(), message);
supprimerCommentairesSelectionnees();
gererEtatActivationBouton();
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
if (etrePretAAfficherListe()) {
chargerListe();
}
layout();
}
private boolean etrePretAAfficherListe() {
boolean ok = false;
if (commentairesChargementOk && ontologieChargementOk) {
ok = true;
}
return ok;
}
private void chargerListe() {
if (commentaires != null) {
List<Commentaire> liste = commentaires.toList();
store.removeAll();
store.add(liste);
mediateur.actualiserPanneauCentral();
}
}
private void supprimerCommentairesSelectionnees() {
// FIXME : le code ci-dessous ne marche pas avec la GroupingView, nous utilisons le rechargement du menu à la place
/*
List<Commentaire> commentairesSelectionnees = grille.getSelectionModel().getSelectedItems();
Iterator<Commentaire> it = commentairesSelectionnees.iterator();
while (it.hasNext()) {
Commentaire commentaireASupprimer = it.next();
Debug.log(commentaireASupprimer.getId());
grille.getStore().remove(commentaireASupprimer);
}
layout(true);
*/
mediateur.clicMenu(MenuApplicationId.COMMENTAIRE);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/commentaire/CommentaireDetailVue.java
New file
0,0 → 1,158
package org.tela_botanica.client.vues.commentaire;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.commentaire.Commentaire;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.vues.DetailVue;
 
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Html;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
 
public class CommentaireDetailVue extends DetailVue implements Rafraichissable {
private String enteteTpl = null;
private String contenuTpl = null;
private ContentPanel panneauPrincipal = null;
private Html entete = null;
private Html contenu = null;
private Commentaire commentaire = null;
private boolean commentaireChargementOk = false;
 
public CommentaireDetailVue(Mediateur mediateurCourant) {
super(mediateurCourant);
initialiserTousLesTpl();
chargerOntologie();
panneauPrincipal = new ContentPanel();
panneauPrincipal.setLayout(new FitLayout());
panneauPrincipal.setHeaderVisible(false);
panneauPrincipal.setBodyBorder(false);
entete = new Html();
entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
panneauPrincipal.setTopComponent(entete);
contenu = new Html();
panneauPrincipal.add(contenu);
add(panneauPrincipal);
}
 
private void initialiserTousLesTpl() {
initialiserEnteteHtmlTpl();
initialiserGeneralTpl();
}
private void initialiserEnteteHtmlTpl() {
enteteTpl =
"<div id='{css_id}'>"+
" <h1>{titre}</h1>"+
" <h2>{collection}<span class='{css_meta}'>{projet} <br /> {i18n_id}:{id} - {guid}</span></h2>" +
"</div>";
}
private void initialiserGeneralTpl() {
contenuTpl =
"<div class='{css_corps}'>"+
" <span class='{css_label}'>{i18n_type} :</span> {type}<br />"+
" <span class='{css_label}'>{i18n_public} :</span> {public}<br />"+
" <span class='{css_label}'>{i18n_ponderation} :</span> {ponderation}<br />"+
" <span class='{css_label}'>{i18n_texte} :</span>"+
" {texte}"+
"</div>";
}
private void chargerOntologie() {
String[] listesCodes = {"typeCommentaireCollection"};
lancerChargementListesValeurs(listesCodes);
}
public void afficherDetail() {
if (commentaire != null) {
afficherEntete();
afficherDetailCommentaire();
}
layout();
}
private void afficherEntete() {
Params enteteParams = new Params();
enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
enteteParams.set("css_meta", ComposantClass.META);
enteteParams.set("i18n_id", i18nC.id());
enteteParams.set("collection", commentaire.getCollection().getNom());
enteteParams.set("titre", commentaire.getTitre());
enteteParams.set("id", commentaire.getId());
enteteParams.set("guid", getGuid());
enteteParams.set("projet", construireTxtProjet(commentaire.getIdProjet()));
String eHtml = Format.substitute(enteteTpl, enteteParams);
entete.getElement().setInnerHTML(eHtml);
}
public String getGuid() {
String guid = "URN:tela-botanica.org:";
guid += "coel"+commentaire.getIdProjet()+":";
guid += "com"+commentaire.getId();
return guid;
}
public void afficherDetailCommentaire() {
Params contenuParams = new Params();
contenuParams.set("i18n_type", i18nC.commentaireType());
contenuParams.set("i18n_public", i18nC.commentairePublic());
contenuParams.set("i18n_ponderation", i18nC.commentairePonderation());
contenuParams.set("i18n_texte", i18nC.commentaireTexte());
String type = construireTxtListeOntologie(commentaire.getCollectionACommentaire().getType());
contenuParams.set("type", type);
contenuParams.set("ponderation", commentaire.getPonderation());
contenuParams.set("public", (commentaire.etrePublic() ? "public" : "privé"));
contenuParams.set("texte", commentaire.getTexte());
String gHtml = formaterContenu(contenuTpl, contenuParams);
contenu.getElement().setInnerHTML(gHtml);
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Commentaire) {
commentaire = (Commentaire) nouvellesDonnees;
commentaireChargementOk = true;
} else if (nouvellesDonnees instanceof ProjetListe) {
projets = (ProjetListe) nouvellesDonnees;
projetsChargementOk = true;
} else if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
receptionerListeValeurs(listeValeursReceptionnee);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
if (avoirDonneesChargees()) {
afficherDetail();
}
}
private boolean avoirDonneesChargees() {
boolean ok = false;
if (projetsChargementOk && commentaireChargementOk) {
ok = true;
}
return ok;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/commentaire/CommentaireForm.java
New file
0,0 → 1,317
package org.tela_botanica.client.vues.commentaire;
 
import java.util.ArrayList;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.composants.ChampSliderPourcentage;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.MenuApplicationId;
import org.tela_botanica.client.modeles.commentaire.Commentaire;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilArray;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.Formulaire;
 
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.extjs.gxt.ui.client.widget.form.CheckBox;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.Field;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.Validator;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
 
 
public class CommentaireForm extends Formulaire implements Rafraichissable {
private Commentaire commentaire;
 
private ComboBox<Projet> projetsCombo = null;
private TextField<String> titreChp;
private TextArea texteChp;
private ChampSliderPourcentage ponderationChp;
private CheckBox publicChp;
private static boolean formulaireValideOk = false;
private static boolean commentaireValideOk = false;
 
public CommentaireForm(Mediateur mediateurCourrant, String commentaireId) {
initialiserCommentaireForm(mediateurCourrant, commentaireId);
}
 
public CommentaireForm(Mediateur mediateurCourrant, String commentaireId, Rafraichissable vueARafraichirApresValidation) {
vueExterneARafraichirApresValidation = vueARafraichirApresValidation;
initialiserCommentaireForm(mediateurCourrant, commentaireId);
}
private void initialiserCommentaireForm(Mediateur mediateurCourrant, String commentaireId) {
initialiserValidation();
commentaire = new Commentaire();
commentaire.setId(commentaireId);
String modeDeCreation = (UtilString.isEmpty(commentaire.getId()) ? Formulaire.MODE_AJOUTER : Formulaire.MODE_MODIFIER);
initialiserFormulaire(mediateurCourrant, modeDeCreation, MenuApplicationId.COMMENTAIRE);
panneauFormulaire.setLayout(new FormLayout());
genererTitreFormulaire();
creerChamps();
 
if (modeDeCreation.equals(Formulaire.MODE_MODIFIER)) {
mediateur.selectionnerCommentaire(this, commentaireId);
}
}
private void genererTitreFormulaire() {
String titre = i18nC.commentaireTitreFormAjout();
if (mode.equals(Formulaire.MODE_MODIFIER)) {
titre = i18nC.commentaireTitreFormModif();
if (commentaire != null) {
titre += " - "+i18nC.id()+": "+commentaire.getId();
}
}
panneauFormulaire.setHeading(titre);
}
private void creerChamps() {
projetsCombo = new ComboBox<Projet>();
projetsCombo.setTabIndex(tabIndex++);
projetsCombo.setFieldLabel(i18nC.projetChamp());
projetsCombo.setDisplayField("nom");
projetsCombo.setTriggerAction(TriggerAction.ALL);
projetsCombo.setStore(new ListStore<Projet>());
projetsCombo.setEmptyText(i18nC.txtListeProjetDefaut());
projetsCombo.setEditable(false);
projetsCombo.setForceSelection(true);
projetsCombo.setAllowBlank(false);
projetsCombo.setValidator(new Validator() {
@Override
public String validate(Field<?> champ, String valeurAValider) {
String retour = null;
if (UtilString.isEmpty(valeurAValider)
|| projetsCombo.getStore().findModel("nom", valeurAValider) == null) {
champ.setValue(null);
retour = i18nC.selectionnerValeur();
}
return retour;
}
});
projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
projetsCombo.addListener(Events.Valid, creerEcouteurChampObligatoire());
panneauFormulaire.add(projetsCombo, new FormData(450, 0));
mediateur.selectionnerProjet(this, null);
titreChp = new TextField<String>();
titreChp.setFieldLabel(i18nC.commentaireTitre());
titreChp.setAllowBlank(false);
titreChp.addStyleName(ComposantClass.OBLIGATOIRE);
titreChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
titreChp.addListener(Events.Invalid, creerEcouteurChampObligatoire());
panneauFormulaire.add(titreChp, new FormData(450, 0));
texteChp = new TextArea();
texteChp.setFieldLabel(i18nC.commentaireTexte());
panneauFormulaire.add(texteChp, new FormData(450, 250));
ponderationChp = new ChampSliderPourcentage(i18nC.commentairePonderation());
panneauFormulaire.add(ponderationChp, new FormData(450, 0));
publicChp = new CheckBox();
publicChp.setFieldLabel(i18nC.donneePublic());
panneauFormulaire.add(publicChp, new FormData(50, 0));
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Commentaire) {
// Si on a reçu les details d'une publication
rafraichirCommentaire((Commentaire) nouvellesDonnees);
} else if (nouvellesDonnees instanceof ProjetListe) {
ProjetListe projets = (ProjetListe) nouvellesDonnees;
Formulaire.rafraichirComboBox(projets, projetsCombo);
setValeurComboProjets();
} else if (nouvellesDonnees instanceof Information) {
rafraichirInformation((Information) nouvellesDonnees);
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
if (etreValide()) {
initialiserValidation();
repandreRafraichissement();
controlerFermetureApresRafraichissement();
}
}
private void rafraichirCommentaire(Commentaire commentaireRecu) {
commentaire = commentaireRecu;
peuplerFormulaire();
genererTitreFormulaire();
}
private String getValeurComboProjets() {
String valeur = "";
if (projetsCombo.getValue() != null && projetsCombo.isValid()) {
valeur = projetsCombo.getValue().getId();
}
return valeur;
}
private void setValeurComboProjets() {
if (projetsCombo.getStore() != null ) {
if (mode.equals(Formulaire.MODE_MODIFIER) && commentaire != null) {
projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", commentaire.getIdProjet()));
} else if (mode.equals(Formulaire.MODE_AJOUTER)) {
projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", mediateur.getProjetId()));
}
}
}
private void rafraichirInformation(Information info) {
// Gestion des messages d'erreur
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
Debug.log("MESSAGES:\n"+info.getMessages().toString());
}
// Gestion des actions
String type = info.getType();
if (type.equals("ajout_commentaire") || type.equals("modif_commentaire")) {
commentaireValideOk = true;
}
if (info.getType().equals("ajout_commentaire")) {
if (vueExterneARafraichirApresValidation != null) {
String noteId = (String) info.getDonnee(0);
commentaire.setId(noteId);
}
}
// Gestion des messages
if (info.getType().equals("modif_commentaire")) {
Info.display("Modification d'une note", info.toString());
} else if (info.getType().equals("ajout_commentaire")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String noteId = (String) info.getDonnee(0);
Info.display("Ajout d'une note", "La note '"+noteId+"' a bien été ajoutée");
} else {
Info.display("Ajout d'une note", info.toString());
}
}
}
 
private Boolean etreValide() {
Boolean valide = false;
Debug.log("formulaire"+formulaireValideOk+" - Commentaire :"+commentaireValideOk);
if (formulaireValideOk && commentaireValideOk) {
valide = true;
}
return valide;
}
private void initialiserValidation() {
formulaireValideOk = false;
commentaireValideOk = false;
}
private void repandreRafraichissement() {
if (vueExterneARafraichirApresValidation != null) {
String type = "commentaire_modifiee";
if (mode.equals(Formulaire.MODE_AJOUTER)) {
type = "commentaire_ajoutee";
}
Information info = new Information(type);
info.setDonnee(0, commentaire);
vueExterneARafraichirApresValidation.rafraichir(info);
}
}
public boolean soumettreFormulaire() {
formulaireValideOk = verifierFormulaire();
if (formulaireValideOk) {
soumettreCommentaire();
}
return formulaireValideOk;
}
private void soumettreCommentaire() {
Commentaire commentaireCollectee = collecterCommentaire();
if (commentaireCollectee != null) {
if (mode.equals(Formulaire.MODE_AJOUTER)) {
mediateur.ajouterCommentaire(this, commentaireCollectee);
} else if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.modifierCommentaire(this, commentaireCollectee);
}
}
}
public boolean verifierFormulaire() {
boolean valide = true;
ArrayList<String> messages = new ArrayList<String>();
String titre = titreChp.getValue();
if (titre == null || titre.equals("")) {
messages.add(i18nC.commentaireMessageTitre());
}
if (UtilString.isEmpty(getValeurComboProjets())) {
String selectionDe = i18nC.articleUn()+" "+i18nC.projetSingulier();
String pour = i18nC.articleLa()+" "+i18nC.commentaireSingulier();
messages.add(i18nM.selectionObligatoire(selectionDe, pour));
}
if (messages.size() != 0) {
String[] tableauDeMessages = {};
tableauDeMessages = messages.toArray(tableauDeMessages);
MessageBox.alert(i18nC.erreurSaisieTitre(), UtilArray.implode(tableauDeMessages, "<br />"), null);
valide = false;
}
return valide;
}
private void peuplerFormulaire() {
setValeurComboProjets();
titreChp.setValue(commentaire.getTitre());
texteChp.setValue(commentaire.getTexte());
ponderationChp.peupler(commentaire.getPonderation());
boolean acces = (commentaire.etrePublic() ? true : false);
publicChp.setValue(acces);
}
private Commentaire collecterCommentaire() {
Commentaire commentaireCollectee = (Commentaire) commentaire.cloner(new Commentaire());
commentaireCollectee.setIdProjet(getValeurComboProjets());
String titre = titreChp.getValue();
commentaireCollectee.setTitre(titre);
String texte = texteChp.getValue();
commentaireCollectee.setTexte(texte);
String ponderation = ponderationChp.getValeur();
commentaireCollectee.setPonderation(ponderation);
String acces = (publicChp.getValue() ? "1" : "0");
commentaireCollectee.setPublic(acces);
Commentaire commentaireARetourner = null;
if (!commentaireCollectee.comparer(commentaire)) {
commentaireARetourner = commentaire = commentaireCollectee;
}
return commentaireARetourner;
}
public void reinitialiserFormulaire() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.afficherFormPublication(commentaire.getId());
} else {
mediateur.afficherFormPublication(null);
}
}
}
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/projet/ProjetVue.java
New file
0,0 → 1,71
package org.tela_botanica.client.vues.projet;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.util.Debug;
 
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.google.gwt.core.client.GWT;
 
public class ProjetVue extends LayoutContainer implements Rafraichissable {
 
private ProjetListeVue panneauProjetListe;
private ProjetDetailVue panneauProjetDetail;
private Mediateur mediateur = null;
 
public ProjetVue(Mediateur mediateurCourant) {
super();
mediateur = mediateurCourant;
BorderLayout layout = new BorderLayout();
layout.setEnableState(false);
setLayout(layout);
 
panneauProjetListe = new ProjetListeVue(mediateur);
this.add(panneauProjetListe, new BorderLayoutData(LayoutRegion.CENTER));
 
panneauProjetDetail = new ProjetDetailVue(mediateur);
BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, .5f, 200, 1000);
southData.setSplit(true);
southData.setMargins(new Margins(5, 0, 0, 0));
this.add(panneauProjetDetail, southData);
}
 
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Projet) {
panneauProjetDetail.rafraichir((Projet) nouvellesDonnees);
} else if (nouvellesDonnees instanceof ProjetListe) {
panneauProjetListe.rafraichir((ProjetListe) nouvellesDonnees);
mediateur.desactiverChargement();
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
// Affichage des éventuels messages de déboguage ou d'alerte
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log(info.getMessages().toString(), null);
}
// Traitement en fonction des types d'information
if (info.getType().equals("liste_projet")) {
GWT.log("Une liste de projets a été reçue", null);
panneauProjetListe.rafraichir((ProjetListe) info.getDonnee(0));
} else {
panneauProjetListe.rafraichir(info);
}
} else if (nouvellesDonnees instanceof ValeurListe) {
panneauProjetDetail.rafraichir(nouvellesDonnees);
} else {
if (nouvellesDonnees != null) {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
layout();
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/projet/ProjetListeVue.java
New file
0,0 → 1,225
package org.tela_botanica.client.vues.projet;
 
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Utilisateur;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.BarrePaginationVue;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
 
public class ProjetListeVue extends ContentPanel implements Rafraichissable {
 
private Mediateur mediateur = null;
private Constantes i18nC = null;
 
private Grid<Projet> grille = null;
private ListStore<Projet> store = null;
private ColumnModel modeleDesColonnes = null;
private BarrePaginationVue pagination = null;
private Button ajouter;
private Button modifier;
private Button supprimer;
public ProjetListeVue(Mediateur mediateurCourant) {
super();
mediateur = mediateurCourant;
i18nC = Mediateur.i18nC;
setLayout(new FitLayout());
setHeading("Projets");
ToolBar toolBar = new ToolBar();
ajouter = new Button(i18nC.ajouter());
ajouter.setIcon(Images.ICONES.ajouter());
ajouter.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
mediateur.clicAjouterProjet();
}
});
toolBar.add(ajouter);
 
modifier = new Button(i18nC.modifier());
modifier.setIcon(Images.ICONES.formModifier());
modifier.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
mediateur.clicModifierProjet(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(modifier);
supprimer = new Button(i18nC.supprimer());
supprimer.setIcon(Images.ICONES.supprimer());
supprimer.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
mediateur.clicSupprimerProjet(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(supprimer);
 
setTopComponent(toolBar);
 
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
// ATTENTION : les noms des colonnes doivent correspondre aux noms variables de la classe utilisée dans la liste
colonnes.add(new ColumnConfig("id_projet", i18nC.id(), 20));
colonnes.add(new ColumnConfig("nom", i18nC.nom(), 200));
colonnes.add(new ColumnConfig("abreviation", i18nC.projetAbreviation(), 200));
colonnes.add(new ColumnConfig("resume", i18nC.projetResume(), 300));
colonnes.add(new ColumnConfig("url", i18nC.projetUrl(), 200));
colonnes.add(new ColumnConfig("mot_cles", i18nC.projetMotsCles(), 280));
 
modeleDesColonnes = new ColumnModel(colonnes);
 
GridSelectionModel<Projet> modeleDeSelection = new GridSelectionModel<Projet>();
modeleDeSelection.addSelectionChangedListener(new SelectionChangedListener<Projet>() {
public void selectionChanged(SelectionChangedEvent<Projet> event) {
Projet projet = (Projet) event.getSelectedItem();
clicListe(projet);
}
});
store = new ListStore<Projet>();
store.sort("id_projet", SortDir.ASC);
grille = new Grid<Projet>(store, modeleDesColonnes);
grille.setWidth("100%");
grille.setAutoExpandColumn("nom");
grille.getView().setAutoFill(true);
grille.getView().setForceFit(true);
grille.setSelectionModel(modeleDeSelection);
grille.addListener(Events.ViewReady, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
grille.getSelectionModel().select(0, false);
}
});
grille.addListener(Events.OnDoubleClick, new Listener<BaseEvent>(){
@Override
public void handleEvent(BaseEvent be) {
modifier.fireEvent(Events.Select);
}
});
add(grille);
// Définition de la barre de pagination
pagination = new BarrePaginationVue(new StructureListe(), mediateur);
setBottomComponent(pagination);
}
public ListStore<Projet> getStore() {
return store;
}
 
private void clicListe(Projet projet) {
mediateur.clicListeProjet(projet);
}
 
private void gererEtatActivationBouton() {
int nbreElementDuMagazin = store.getCount();
ajouter.enable();
if (nbreElementDuMagazin <= 0) {
supprimer.disable();
modifier.disable();
} else if (nbreElementDuMagazin > 0) {
modifier.enable();
if (mediateur.getUtilisateur().isIdentifie()) {
supprimer.enable();
}
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ProjetListe) {
ProjetListe projets = (ProjetListe) nouvellesDonnees;
pagination.setlistePaginable(projets);
pagination.rafraichir(projets.getPageTable());
if (projets != null) {
List<Projet> projetsListe = projets.toList();
store.removeAll();
if (mediateur.getProjetId() != null) {
String projetIdSelectionne = mediateur.getProjetId();
Iterator<Projet> it = projetsListe.iterator();
while (it.hasNext()) {
Projet projetCourant = it.next();
if (projetCourant.getId().equals(projetIdSelectionne)) {
store.add(projetCourant);
}
}
} else {
store.add(projetsListe);
}
mediateur.actualiserPanneauCentral();
}
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("maj_utilisateur")) {
gererEtatActivationBouton();
} else if (info.getType().equals("suppression_projet")) {
String message = info.toString();
if (info.getDonnee(0) != null) {
message = (String) info.getDonnee(0);
}
String idsNonSuppr = info.getDonnee(1).toString();
if (!UtilString.isEmpty(idsNonSuppr)) {
message = "Les projets " + idsNonSuppr + " n'ont pas été supprimés car ils sont liés à d'autres éléments";
}
Info.display(i18nC.projetTitreSuppression(), message);
supprimerProjetsSelectionnees(Arrays.asList(idsNonSuppr.split(",")));
gererEtatActivationBouton();
}
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
layout();
}
 
public void supprimerProjetsSelectionnees(List<String> idsNonSuppr) {
List<Projet> selPub = grille.getSelectionModel().getSelectedItems();
for (Iterator<Projet> it = selPub.iterator(); it.hasNext();) {
Projet projetCourant = it.next();
if (!idsNonSuppr.contains(projetCourant.getId().toString())) {
grille.getStore().remove(projetCourant);
}
}
//Mettre à jour les filtres
mediateur.mettreFiltreAJour(grille.getStore().getModels());
layout(true);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/projet/ProjetDetailVue.java
New file
0,0 → 1,289
package org.tela_botanica.client.vues.projet;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.DetailVue;
 
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Html;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
 
public class ProjetDetailVue extends DetailVue implements Rafraichissable {
private String enteteTpl = null;
private String contenuTpl = null;
private String indexationTpl = null;
private ContentPanel panneauPrincipal = null;
private Html entete = null;
private Html contenu = null;
private final String listeValeurIndexationDureeId = "dureesIndexation";
private final int listeValeurIndexationDureeInt = 1072;
private final String listeValeurIndexationFrequenceId = "frequencesIndexation";
private final int listeValeurIndexationFrequenceInt = 1073;
private final String listeLanguesId = "langues";
private final int listeLanguesInt = 1071;
 
private Projet projet = null;
private boolean projetChargementOk = false;
private ValeurListe valeurListeIndexationDuree = null;
private boolean listeIndexationDureeChargee = false;
private ValeurListe valeurListeIndexationFrequence = null;
private boolean listeIndexationFrequenceChargee = false;
private ValeurListe valeurListeLangue = null;
private boolean listeLangueChargee = false;
 
public ProjetDetailVue(Mediateur mediateurCourant) {
super(mediateurCourant);
initialiserTousLesTpl();
panneauPrincipal = new ContentPanel();
panneauPrincipal.setLayout(new FitLayout());
panneauPrincipal.setHeaderVisible(false);
panneauPrincipal.setBodyBorder(false);
entete = new Html();
entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
panneauPrincipal.setTopComponent(entete);
contenu = new Html();
panneauPrincipal.add(contenu);
add(panneauPrincipal);
mediateurCourant.obtenirListeValeurEtRafraichir(this, listeValeurIndexationDureeId);
mediateurCourant.obtenirListeValeurEtRafraichir(this, listeValeurIndexationFrequenceId);
mediateurCourant.obtenirListeValeurEtRafraichir(this, listeLanguesId);
}
 
private void initialiserTousLesTpl() {
initialiserEnteteHtmlTpl();
initialiserGeneralTpl();
initialiserIndexationTpl();
}
private void initialiserEnteteHtmlTpl() {
enteteTpl =
"<div id='{css_id}'>"+
" <h1>{projet}</h1>"+
" <h2>{abreviation} <span class='{css_meta}'>{projet} <br /> {i18n_id}:{id} - {guid}</span></h2>" +
"</div>";
}
private void initialiserGeneralTpl() {
contenuTpl =
"<div class='{css_corps}'>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_info_generale}</h2>"+
" <span class='{css_label}'>{i18n_nom} :</span> {nom}<br />"+
" <span class='{css_label}'>{i18n_abreviation} :</span> {abreviation}<br />"+
" <span class='{css_label}'>{i18n_resume} :</span> {resume}<br />"+
" <span class='{css_label}'>{i18n_description} :</span> {description}<br />"+
" <span class='{css_label}'>{i18n_url} :</span> <a class='{css_lien_ext}' href='{url}' onclick='window.open(this.href); return false;'>{url}</a><br />"+
" </div>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_complement}</h2>"+
" <span class='{css_label}'>{i18n_mot_cles} :</span> {mot_cles}<br />"+
" <span class='{css_label}'>{i18n_citation} :</span> {citation}<br />"+
" <span class='{css_label}'>{i18n_licence} :</span> {licence}<br />"+
" <span class='{css_label}'>{i18n_langue} :</span> {langue}<br />"+
" </div>"+
" <hr class='{css_clear}'/>"+
" <div class='{css_fieldset}'>"+
" <h2>{i18n_titre_indexation}</h2>"+
" <span class='{css_label}'>{i18n_mark_public} :</span> {mark_public}<br />"+
" {indexation}"+
" </div>"+
"</div>";
}
private void initialiserIndexationTpl() {
indexationTpl =
" <span class='{css_label}'>{i18n_indexation_heure} :</span> {indexation_heure}<br />"+
" <span class='{css_label}'>{i18n_indexation_duree} :</span> {indexation_duree}<br />"+
" <span class='{css_label}'>{i18n_indexation_frequence} :</span> {indexation_frequence}<br />";
}
public void afficherDetail() {
if (projet != null) {
afficherEntete();
afficherDetailProjet();
}
layout();
}
private void afficherEntete() {
Params enteteParams = new Params();
enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
enteteParams.set("css_meta", ComposantClass.META);
enteteParams.set("i18n_id", i18nC.id());
enteteParams.set("id", projet.getId());
enteteParams.set("guid", getGuid());
enteteParams.set("projet", construireTxtProjet(projet.getId()));
enteteParams.set("abreviation", projet.getAbreviation());
GWT.log("entete généré", null);
String eHtml = Format.substitute(enteteTpl, enteteParams);
entete.getElement().setInnerHTML(eHtml);
}
public String getGuid() {
String guid = "URN:tela-botanica.org:";
guid += "coel"+projet.getId()+":";
guid += "pro"+projet.getId();
return guid;
}
public void afficherDetailProjet() {
Params contenuParams = new Params();
contenuParams.set("i18n_titre_info_generale", i18nC.projetTitreInfoGenerale());
contenuParams.set("i18n_nom", i18nC.nom());
contenuParams.set("nom", projet.getNom());
contenuParams.set("i18n_abreviation", i18nC.projetAbreviation());
contenuParams.set("abreviation", projet.getAbreviation());
contenuParams.set("i18n_resume", i18nC.projetResume());
contenuParams.set("resume", projet.getResume());
contenuParams.set("i18n_description", i18nC.projetDescription());
contenuParams.set("description", projet.getDescription());
contenuParams.set("i18n_url", i18nC.projetUrl());
contenuParams.set("url", projet.getUrl());
contenuParams.set("i18n_titre_complement", i18nC.projetTitreComplement());
contenuParams.set("i18n_mot_cles", i18nC.projetMotsCles());
contenuParams.set("mot_cles", projet.getMotsCles());
contenuParams.set("i18n_citation", i18nC.projetCitation());
contenuParams.set("citation", projet.getCitation());
contenuParams.set("i18n_licence", i18nC.projetLicence());
contenuParams.set("licence", projet.getLicence());
contenuParams.set("i18n_langue", i18nC.projetLangue());
contenuParams.set("langue", obtenirValeurLangue(projet.getLangue()));
contenuParams.set("i18n_titre_indexation", i18nC.projetTitreIndexation());
contenuParams.set("i18n_mark_public", i18nC.projetMarkPublic());
contenuParams.set("mark_public", obtenirValeurPublic(projet.getMarkPublic()));
contenuParams.set("indexation", creerIndexation());
String gHtml = formaterContenu(contenuTpl, contenuParams);
contenu.getElement().setInnerHTML(gHtml);
}
private String corrigerIndexationHeure(String heureMinuteSecondeEnBdd) {
String heureMinute = "";
if (!UtilString.isEmpty(heureMinuteSecondeEnBdd)) {
heureMinute = heureMinuteSecondeEnBdd.replaceAll(":00$", "");
}
return heureMinute;
}
private String creerIndexation() {
String html = "";
if (projet.getMarkPublic().equals("1")) {
Params indexationParams = new Params();
indexationParams.set("i18n_indexation_heure", i18nC.projetIndexationHeure());
indexationParams.set("indexation_heure", corrigerIndexationHeure(projet.getIndexationHeure()));
indexationParams.set("i18n_indexation_duree", i18nC.projetIndexationDuree());
indexationParams.set("indexation_duree", obtenirValeurIndexationDuree(projet.getIndexationDuree()));
indexationParams.set("i18n_indexation_frequence", i18nC.projetIndexationFrequence());
indexationParams.set("indexation_frequence", obtenirValeurIndexationFrequence(projet.getIndexationFreq()));
html = Format.substitute(indexationTpl, indexationParams);
}
return html;
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Projet) {
projet = (Projet) nouvellesDonnees;
projetChargementOk = true;
} else if (nouvellesDonnees instanceof ProjetListe) {
projets = (ProjetListe) nouvellesDonnees;
projetsChargementOk = true;
} else if(nouvellesDonnees instanceof ValeurListe) {
ValeurListe nValeurListe = (ValeurListe)nouvellesDonnees;
if (nValeurListe.getId() == listeValeurIndexationDureeInt) {
valeurListeIndexationDuree = (ValeurListe)nouvellesDonnees;
listeIndexationDureeChargee = true;
}
if (nValeurListe.getId() == listeValeurIndexationFrequenceInt) {
valeurListeIndexationFrequence = (ValeurListe)nouvellesDonnees;
listeIndexationFrequenceChargee = true;
}
if (nValeurListe.getId() == listeLanguesInt) {
valeurListeLangue = (ValeurListe)nouvellesDonnees;
listeLangueChargee = true;
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
if (avoirDonneesChargees()) {
afficherDetail();
}
}
private boolean avoirDonneesChargees() {
boolean ok = false;
if (projetsChargementOk && projetChargementOk && listeIndexationDureeChargee && listeIndexationFrequenceChargee && listeLangueChargee) {
ok = true;
}
return ok;
}
private String obtenirValeurIndexationDuree(String id) {
if (valeurListeIndexationDuree.get(id) != null) {
return valeurListeIndexationDuree.get(id).getNom();
}
return "";
}
private String obtenirValeurIndexationFrequence(String id) {
if (valeurListeIndexationFrequence.get(id) != null) {
return valeurListeIndexationFrequence.get(id).getNom();
}
return "";
}
private String obtenirValeurLangue(String id) {
if (valeurListeLangue.get(id) != null) {
return valeurListeLangue.get(id).getNom();
}
return "";
}
private String obtenirValeurPublic(String ouiNon) {
if (ouiNon.equals("1")) {
return i18nC.oui();
}
return i18nC.non();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/projet/ProjetForm.java
New file
0,0 → 1,448
package org.tela_botanica.client.vues.projet;
 
import java.util.ArrayList;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.MenuApplicationId;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.Pattern;
import org.tela_botanica.client.util.UtilArray;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.Formulaire;
 
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.extjs.gxt.ui.client.widget.form.CheckBox;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
 
public class ProjetForm extends Formulaire implements Rafraichissable {
private Projet projet;
private String listeValeurIndexationDureeId = "dureesIndexation";
private String listeValeurIndexationFrequenceId = "frequencesIndexation";
private String listeLanguesId = "langues";
private FieldSet generalitesFieldset = null;
private TextField<String> nomChp = null;
private TextField<String> abreviationChp = null;
private TextArea descriptionChp = null;
private TextArea resumeChp = null;
private TextField<String> urlChp = null;
private FieldSet complementFieldset = null;
private TextField<String> motsClesChp = null;
private TextField<String> citationChp = null;
private TextField<String> licenceChp = null;
private ChampComboBoxListeValeurs langueChp = null;
private CheckBox markPublicChp = null;
private FieldSet indexationFieldset = null;
private TextField<String> indexationHeureChp = null;
private ChampComboBoxListeValeurs indexationDureeChp = null;
private ChampComboBoxListeValeurs indexationFrequenceChp = null;
 
private boolean formulaireValideOk = false;
private boolean projetValideOk = false;
 
private Rafraichissable vueExterneARafraichirApresValidation = null;
 
 
public ProjetForm(Mediateur mediateurCourrant, String projetId) {
initialiserProjetForm(mediateurCourrant, projetId);
}
 
public ProjetForm(Mediateur mediateurCourrant, String projetId, Rafraichissable vueARafraichirApresValidation) {
vueExterneARafraichirApresValidation = vueARafraichirApresValidation;
initialiserProjetForm(mediateurCourrant, projetId);
}
private void initialiserProjetForm(Mediateur mediateurCourant, String projetId) {
projet = new Projet();
projet.setId(projetId);
String modeDeCreation = (projet.getId().isEmpty() ? Formulaire.MODE_AJOUTER : Formulaire.MODE_MODIFIER);
initialiserFormulaire(mediateurCourant, modeDeCreation, MenuApplicationId.PROJET);
panneauFormulaire.setLayout(new FlowLayout());
genererTitreFormulaire();
creerZoneGeneralites();
panneauFormulaire.add(generalitesFieldset);
creerZoneComplement();
panneauFormulaire.add(complementFieldset);
creerZoneIndexation();
panneauFormulaire.add(indexationFieldset);
creerTabIndex();
if (modeDeCreation.equals(Formulaire.MODE_MODIFIER)) {
mediateur.selectionnerProjet(this, projetId);
}
}
private void genererTitreFormulaire() {
String titre = i18nC.projetTitreFormAjout();
if (mode.equals(Formulaire.MODE_MODIFIER)) {
titre = i18nC.projetTitreFormModif();
if (projet != null) {
titre += " - "+i18nC.id()+": "+projet.getId();
}
}
panneauFormulaire.setHeading(titre);
}
private void creerZoneGeneralites() {
FormLayout layout = new FormLayout();
layout.setLabelWidth(100);
// Fieldset Infos Générales
generalitesFieldset = new FieldSet();
generalitesFieldset.setHeading(i18nC.projetTitreInfoGenerale());
generalitesFieldset.setCollapsible(true);
generalitesFieldset.setLayout(layout);
nomChp = new TextField<String>();
nomChp.setName("cpu");
nomChp.setFieldLabel(i18nC.projetNom());
nomChp.addStyleName(ComposantClass.OBLIGATOIRE);
nomChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
generalitesFieldset.add(nomChp, new FormData(450, 0));
abreviationChp = new TextField<String>();
abreviationChp.setFieldLabel(i18nC.projetAbreviation());
abreviationChp.addStyleName(ComposantClass.OBLIGATOIRE);
abreviationChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
generalitesFieldset.add(abreviationChp, new FormData(450, 0));
descriptionChp = new TextArea();
descriptionChp.setFieldLabel(i18nC.projetDescription());
descriptionChp.addStyleName(ComposantClass.OBLIGATOIRE);
descriptionChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
generalitesFieldset.add(descriptionChp, new FormData(450, 0));
resumeChp = new TextArea();
resumeChp.setFieldLabel(i18nC.projetResume());
resumeChp.addStyleName(ComposantClass.OBLIGATOIRE);
resumeChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
generalitesFieldset.add(resumeChp, new FormData(450, 0));
urlChp = new TextField<String>();
urlChp.setFieldLabel(i18nC.projetUrl());
generalitesFieldset.add(urlChp, new FormData(450, 0));
}
private void creerZoneComplement() {
FormLayout layout = new FormLayout();
layout.setLabelWidth(100);
// Fieldset Complément
complementFieldset = new FieldSet();
complementFieldset.setHeading(i18nC.projetTitreComplement());
complementFieldset.setCollapsible(true);
complementFieldset.setLayout(layout);
motsClesChp = new TextField<String>();
motsClesChp.setFieldLabel(i18nC.projetMotsCles());
complementFieldset.add(motsClesChp, new FormData(450, 0));
citationChp = new TextField<String>();
citationChp.setFieldLabel(i18nC.projetCitation());
complementFieldset.add(citationChp, new FormData(450, 0));
licenceChp = new TextField<String>();
licenceChp.setFieldLabel(i18nC.projetLicence());
complementFieldset.add(licenceChp, new FormData(450, 0));
langueChp = new ChampComboBoxListeValeurs(i18nC.projetLangue(), listeLanguesId);
complementFieldset.add(langueChp, new FormData(200, 0));
markPublicChp = new CheckBox();
markPublicChp.setFieldLabel(i18nC.projetMarkPublic());
markPublicChp.addListener(Events.Change, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
if (markPublicChp.getValue()) {
indexationFieldset.show();
} else {
indexationFieldset.hide();
}
}
});
complementFieldset.add(markPublicChp);
}
private void creerZoneIndexation() {
FormLayout layout = new FormLayout();
layout.setLabelWidth(100);
// Fieldset Indexation
indexationFieldset = new FieldSet();
indexationFieldset.setHeading(i18nC.projetTitreIndexation());
indexationFieldset.setCollapsible(true);
indexationFieldset.setLayout(layout);
indexationFieldset.hide();
indexationFieldset.addListener(Events.Hide, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
indexationHeureChp.clear();
indexationFrequenceChp.clear();
indexationDureeChp.clear();
}
});
indexationHeureChp = new TextField<String>();
indexationHeureChp.setFieldLabel(i18nC.projetIndexationHeure());
indexationHeureChp.setToolTip(i18nC.projetMessageHeureMinute());
indexationFieldset.add(indexationHeureChp, new FormData(80, 0));
indexationFrequenceChp = new ChampComboBoxListeValeurs(i18nC.projetIndexationFrequence(), listeValeurIndexationFrequenceId);
indexationFieldset.add(indexationFrequenceChp, new FormData(120, 0));
indexationDureeChp = new ChampComboBoxListeValeurs(i18nC.projetIndexationDuree(), listeValeurIndexationDureeId);
indexationFieldset.add(indexationDureeChp, new FormData(80, 0));
}
private void creerTabIndex() {
nomChp.setTabIndex(1);
abreviationChp.setTabIndex(2);
descriptionChp.setTabIndex(3);
resumeChp.setTabIndex(4);
urlChp.setTabIndex(5);
motsClesChp.setTabIndex(6);
citationChp.setTabIndex(7);
licenceChp.setTabIndex(8);
langueChp.setTabIndex(9);
markPublicChp.setTabIndex(10);
indexationHeureChp.setTabIndex(11);
indexationFrequenceChp.setTabIndex(12);
indexationDureeChp.setTabIndex(13);
nomChp.focus();
}
 
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
rafraichirInformation(info);
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
if (etreValide()) {
initialiserValidation();
repandreRafraichissement();
controlerFermetureApresRafraichissement();
}
}
 
private void rafraichirInformation(Information info) {
final String type = info.getType();
// Gestion des problèmes
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
Debug.log("MESSAGES:\n"+info.getMessages().toString());
}
// Gestion des actions
if (type.equals("selection_projet")) {
if (info.getDonnee(0) != null) {
projet = (Projet) info.getDonnee(0);
}
peuplerFormulaire();
genererTitreFormulaire();
}
if (type.equals("ajout_projet") || type.equals("modif_projet")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
projetValideOk = true;
String projetId = (String) info.getDonnee(0);
if (vueExterneARafraichirApresValidation != null) {
projet.setId(projetId);
}
}
}
// Gestion des messages
if (type.equals("selection_projet")) {
Info.display(i18nC.projetTitreFormModif(), info.toString());
} else if (type.equals("modif_projet")) {
Info.display(i18nC.projetTitreFormModif(), info.toString());
} else if (type.equals("ajout_projet")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String projetId = (String) info.getDonnee(0);
Info.display(i18nC.projetTitreFormAjout(), "Le projet '"+projetId+"' a bien été ajouté");
} else {
Info.display(i18nC.projetTitreFormAjout(), info.toString());
}
}
}
private Boolean etreValide() {
Boolean valide = false;
if (formulaireValideOk && projetValideOk) {
valide = true;
}
return valide;
}
private void initialiserValidation() {
formulaireValideOk = false;
projetValideOk = false;
}
private void repandreRafraichissement() {
if (vueExterneARafraichirApresValidation != null) {
String type = "projet_modifie";
if (mode.equals(Formulaire.MODE_AJOUTER)) {
type = "projet_ajoute";
}
Information info = new Information(type);
info.setDonnee(0, projet);
vueExterneARafraichirApresValidation.rafraichir(info);
}
}
public boolean soumettreFormulaire() {
formulaireValideOk = verifierFormulaire();
if (formulaireValideOk) {
Projet projetCollecte = collecterProjet();
if (projetCollecte != null) {
if (mode.equals(Formulaire.MODE_AJOUTER)) {
mediateur.ajouterProjet(this, projetCollecte);
} else if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.modifierProjet(this, projetCollecte);
}
}
}
return formulaireValideOk;
}
public boolean verifierFormulaire() {
boolean valide = true;
ArrayList<String> messages = new ArrayList<String>();
String titre = nomChp.getValue();
if (titre == null || titre.equals("")) {
messages.add(i18nC.projetMessageNom());
}
String abr = abreviationChp.getValue();
if (abr == null || abr.equals(i18nC.projetMessageAbreviation())) {
messages.add(i18nC.projetMessageAbreviation());
}
String desc = descriptionChp.getValue();
if (desc == null || desc.equals(i18nC.projetMessageDescription())) {
messages.add(i18nC.projetDescription());
}
String resume = resumeChp.getValue();
if (resume == null || resume.equals(i18nC.projetMessageResume())) {
messages.add(i18nC.projetMessageResume());
}
String uri = urlChp.getValue();
if (uri != null && ! uri.trim().isEmpty() && ! uri.matches(Pattern.url)) {
messages.add(i18nC.messageUrlNonValide());
}
if (markPublicChp.getValue()) {
String heure = indexationHeureChp.getValue();
if (!UtilString.isEmpty(heure) && !heure.matches(Pattern.heureMinute)) {
messages.add(i18nC.projetMessageHeureMinute());
}
}
if (messages.size() != 0) {
String[] tableauDeMessages = {};
tableauDeMessages = messages.toArray(tableauDeMessages);
MessageBox.alert(i18nC.erreurSaisieTitre(), UtilArray.implode(tableauDeMessages, "<br />"), null);
valide = false;
}
return valide;
}
private void peuplerFormulaire() {
nomChp.setValue(projet.getNom());
abreviationChp.setValue(projet.getAbreviation());
descriptionChp.setValue(projet.getDescription());
resumeChp.setValue(projet.getResume());
urlChp.setValue(projet.getUrl());
motsClesChp.setValue(projet.getMotsCles());
citationChp.setValue(projet.getCitation());
licenceChp.setValue(projet.getLicence());
langueChp.peupler(projet.getLangue());
if (projet.getMarkPublic().equals("1")) {
markPublicChp.setValue(true);
String[] heureTab = projet.getIndexationHeure().split(":");
if (heureTab.length > 1) {
String heure = heureTab[0]+":"+heureTab[1];
if (heure.matches(Pattern.heureMinute)) {
indexationHeureChp.setValue(heure);
}
}
indexationFrequenceChp.peupler(projet.getIndexationFreq());
indexationDureeChp.peupler(projet.getIndexationDuree());
} else {
markPublicChp.setValue(false);
}
doLayout(true);
}
private Projet collecterProjet() {
Projet projetCollecte = (Projet) projet.cloner(new Projet());
projetCollecte.setNom(nomChp.getValue());
projetCollecte.setAbreviation(abreviationChp.getValue());
projetCollecte.setDescription(descriptionChp.getValue());
projetCollecte.setResume(resumeChp.getValue());
projetCollecte.setUrl(urlChp.getValue());
projetCollecte.setMotsCles(motsClesChp.getValue());
projetCollecte.setCitation(citationChp.getValue());
projetCollecte.setLicence(licenceChp.getValue());
projetCollecte.setLangue(langueChp.getValeur());
String markPublic = (markPublicChp.getValue()) ? "1" : "0";
projetCollecte.setMarkPublic(markPublic);
projetCollecte.setIndexationHeure(indexationHeureChp.getValue());
projetCollecte.setIndexationFreq(indexationFrequenceChp.getValeur());
projetCollecte.setIndexationDuree(indexationDureeChp.getValeur());
 
Projet projetARetourner = null;
if (!projetCollecte.comparer(projet)) {
projetARetourner = projet = projetCollecte;
Debug.log(projetARetourner.toString());
}
return projetARetourner;
}
public void reinitialiserFormulaire() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.afficherFormProjet(projet.getId());
} else {
mediateur.afficherFormProjet(null);
}
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/MenuVue.java
New file
0,0 → 1,76
package org.tela_botanica.client.vues;
 
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.modeles.Menu;
import org.tela_botanica.client.modeles.MenuApplicationId;
 
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.GXT;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.TreePanelEvent;
import com.extjs.gxt.ui.client.store.TreeStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.treepanel.TreePanel;
 
public class MenuVue extends ContentPanel {
 
private Mediateur mediateur = null;
private Constantes i18nC = null;
private TreePanel<Menu> arbreMenus;
private TreeStore<Menu> menuStore;
public MenuVue(Mediateur mediateurCourrant) {
mediateur = mediateurCourrant;
i18nC = Mediateur.i18nC;
setHeading(i18nC.titreMenu());
setLayout(new FitLayout());
setLayoutOnChange(true);
construireMenu();
afficherMenu();
}
 
private void construireMenu() {
menuStore = new TreeStore<Menu>();
Menu accueilMenu = new Menu(i18nC.menuAccueil(), MenuApplicationId.ACCUEIL);
Menu projetMenu = new Menu(i18nC.menuProjet(), MenuApplicationId.PROJET);
Menu menuInstitution = new Menu(i18nC.menuStructure(), MenuApplicationId.STRUCTURE);
Menu menuCollections = new Menu(i18nC.menuCollection(), MenuApplicationId.COLLECTION);
Menu menuPersonnes = new Menu(i18nC.menuPersonne(), MenuApplicationId.PERSONNE);
Menu menuPublications = new Menu(i18nC.menuPublication(), MenuApplicationId.PUBLICATION);
Menu menuCommentaires = new Menu(i18nC.menuCommentaire(), MenuApplicationId.COMMENTAIRE);
menuStore.add(accueilMenu, false);
menuStore.add(projetMenu, false);
menuStore.add(menuInstitution, false);
menuStore.add(menuCollections, false);
menuStore.add(menuPersonnes, false);
menuStore.add(menuPublications, false);
menuStore.add(menuCommentaires, false);
}
private void afficherMenu() {
arbreMenus = new TreePanel<Menu>(menuStore);
arbreMenus.getStyle().setLeafIcon(GXT.IMAGES.tree_folder());
arbreMenus.setDisplayProperty("nom");
arbreMenus.setHeight("100%");
arbreMenus.addListener(Events.OnClick, new Listener<TreePanelEvent<Menu>>(){
public void handleEvent(TreePanelEvent<Menu> tpe) {
Menu menuCourant = arbreMenus.getSelectionModel().getSelectedItem();
mediateur.clicMenu(menuCourant.getCode());
}
});
add(arbreMenus);
}
public void selectionMenu(String code) {
arbreMenus.getSelectionModel().select(menuStore.findModel("code", code), false);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/accueil/AccueilVue.java
New file
0,0 → 1,251
package org.tela_botanica.client.vues.accueil;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.TreeMap;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.util.Debug;
 
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.custom.Portal;
import com.extjs.gxt.ui.client.widget.custom.Portlet;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.xml.client.Document;
import com.google.gwt.xml.client.Element;
import com.google.gwt.xml.client.Node;
import com.google.gwt.xml.client.NodeList;
import com.google.gwt.xml.client.XMLParser;
 
public class AccueilVue extends LayoutContainer implements Rafraichissable {
private Mediateur mediateur = null;
private Constantes i18nC = null;
private Portal portail = null;
private static boolean enregistrementEnCours = false;
public AccueilVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
i18nC = Mediateur.i18nC;
setLayout(new FitLayout());
ContentPanel panneauPrincipal = new ContentPanel();
panneauPrincipal.setLayout(new FitLayout());
panneauPrincipal.setHeading("Accueil");
panneauPrincipal.setBorders(false);
ToolBar barreOutils = new ToolBar();
Button ajouter = new Button(i18nC.ajouter());
ajouter.setIcon(Images.ICONES.ajouter());
ajouter.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
ajouterPortlet();
}
});
barreOutils.add(ajouter);
Button enregistrer = new Button("Enregistrer");
enregistrer.setIcon(Images.ICONES.appliquer());
enregistrer.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
if (enregistrementEnCours == false) {
enregistrerParametres();
} else {
Info.display(i18nC.accueilEnregistrement(), i18nC.accueilEnregistrementEnCours());
}
}
});
barreOutils.add(enregistrer);
panneauPrincipal.setTopComponent(barreOutils);
portail = creerPortail();
panneauPrincipal.add(portail);
chargerParametres();
 
add(panneauPrincipal);
mediateur.desactiverChargement();
}
private Portal creerPortail() {
Portal portail = new Portal(3);
portail.setBorders(true);
portail.setStyleAttribute("backgroundColor", "white");
portail.setShadow(true);
portail.setColumnWidth(0, .33);
portail.setColumnWidth(1, .33);
portail.setColumnWidth(2, .33);
return portail;
}
// INFO: Les items d'une classse portal correspondent aux colonnes. Pour vider une Portal, il faut donc vider les éléments de chaque item du Portal.
private void viderPortail() {
portail.getItem(0).removeAll();
portail.getItem(1).removeAll();
portail.getItem(2).removeAll();
}
private void chargerParametres() {
viderPortail();
Debug.log("Nbre aplletes c0 :"+portail.getItem(0).getItemCount());
Debug.log("Charger:"+mediateur.getUtilisateur().getParametre());
Document paramXml = XMLParser.parse(mediateur.getUtilisateur().getParametre());
NodeList listeAccueilNoeud = paramXml.getElementsByTagName("accueil");
int nbreAccueilNoeud = listeAccueilNoeud.getLength();
 
// Récupération du noeud accueil
Node accueilNoeud = null;
if (nbreAccueilNoeud == 0) {
ajouterPortlet();
} else if (nbreAccueilNoeud == 1) {
accueilNoeud = listeAccueilNoeud.item(0);
// Lecture des noeuds "applette"
NodeList listeAppletteNoeud = accueilNoeud.getChildNodes();
int nbreAppletteNoeud = listeAppletteNoeud.getLength();
TreeMap<String, HashMap<String, String>> tableApplettes = new TreeMap<String, HashMap<String, String>>();
for (int i = 0; i < nbreAppletteNoeud ; i++) {
Element appletteNoeud = (Element) listeAppletteNoeud.item(i);
int colonne = Integer.parseInt(appletteNoeud.getAttribute("colonne"));
int index = Integer.parseInt(appletteNoeud.getAttribute("index"));
HashMap<String, String> infoApplette = new HashMap<String, String>();
infoApplette.put("reduite", appletteNoeud.getAttribute("reduite"));
infoApplette.put("epingle", appletteNoeud.getAttribute("epingle"));
infoApplette.put("type", appletteNoeud.getAttribute("type"));
infoApplette.put("colonne", appletteNoeud.getAttribute("colonne"));
infoApplette.put("index", appletteNoeud.getAttribute("index"));
infoApplette.put("contenu", appletteNoeud.getAttribute("contenu"));
tableApplettes.put(colonne+"-"+index, infoApplette);
}
Iterator<String> it = tableApplettes.keySet().iterator();
while (it.hasNext()) {
String id = it.next();
HashMap<String, String> infoApplette = tableApplettes.get(id);
boolean reduite = (infoApplette.get("reduite") != null && infoApplette.get("reduite").equals("true")) ? true : false;
boolean epingle = (infoApplette.get("epingle") != null && infoApplette.get("epingle").equals("true")) ? true : false;
int index = Integer.parseInt(infoApplette.get("index"));
int colonne = Integer.parseInt(infoApplette.get("colonne"));
ajouterPortlet(reduite, epingle, infoApplette.get("type"), colonne, index, infoApplette.get("contenu"));
}
}
Debug.log("Nbre aplletes c0 :"+portail.getItem(0).getItemCount());
layout();
}
private void enregistrerParametres() {
ArrayList<Portlet> applettes = getPortlets();
Iterator<Portlet> it = applettes.iterator();
Document paramXml = XMLParser.parse(mediateur.getUtilisateur().getParametre());
NodeList listeAccueilNoeud = paramXml.getElementsByTagName("accueil");
int nbreAccueilNoeud = listeAccueilNoeud.getLength();
 
// Suppression des noeuds "accueil" existant car il ne devrait y en avoir qu'un
if (nbreAccueilNoeud > 1) {
for (int i = 0; i < nbreAccueilNoeud ; i++) {
paramXml.getDocumentElement().removeChild(listeAccueilNoeud.item(i));
}
nbreAccueilNoeud = 0;
}
// Création du nouveau noeud accueil
Node accueilNoeud = null;
Element accueilElement = paramXml.createElement("accueil");
if (nbreAccueilNoeud == 0) {
accueilNoeud = paramXml.getDocumentElement().appendChild(accueilElement);
} else if (nbreAccueilNoeud == 1) {
accueilNoeud = listeAccueilNoeud.item(0);
paramXml.getDocumentElement().replaceChild(accueilElement, accueilNoeud);
accueilNoeud = paramXml.getElementsByTagName("accueil").item(0);
}
// Ajout des noeuds "applette" au noeud "accueil"
while (it.hasNext()) {
Portlet applette = it.next();
String reduite = (applette.isCollapsed() ? "true" : "false");
String epingle = (applette.isPinned() ? "true" : "false");
String index = Integer.toString(portail.getPortletIndex(applette));
String colonne = Integer.toString(portail.getPortletColumn(applette));
String contenu = applette.getData("contenu");
Element appletteElement = paramXml.createElement("applette");
appletteElement.setAttribute("reduite", reduite);
appletteElement.setAttribute("epingle", epingle);
appletteElement.setAttribute("type", "statistique");
appletteElement.setAttribute("colonne", colonne);
appletteElement.setAttribute("index", index);
appletteElement.setAttribute("contenu", contenu);
accueilNoeud.appendChild(appletteElement);
}
Debug.log("Enregistrer:"+paramXml.toString());
enregistrementEnCours = true;
mediateur.getUtilisateur().setParametre(paramXml.toString());
mediateur.modifierUtilisateur();
}
private ArrayList<Portlet> getPortlets() {
ArrayList<Portlet> applettes = new ArrayList<Portlet>();
for (int i = 0; i < 3; i++) {
int nbreApplette = portail.getItem(i).getItemCount();
if (nbreApplette > 0) {
for (int j = 0; j < nbreApplette; j++) {
applettes.add((Portlet) portail.getItem(i).getItem(j));
}
}
}
return applettes;
}
private void ajouterPortlet() {
ajouterPortlet(false, false, "statistique", 0, 0, null);
}
private void ajouterPortlet(boolean reduite, boolean epingle, String type, int colonne, int index, String contenu) {
Debug.log("Ajout:"+reduite+"-"+epingle+"-"+type+"-"+colonne+"-"+index+"-"+contenu);
Applette applette = null;
if (type.equals("statistique")) {
applette = new AppletteStatistique(contenu);
}
if (reduite) {
applette.collapse();
}
portail.insert(applette, index, colonne);
applette.setEpingler(epingle);
layout();
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
String type = info.getType();
if (type.equals("maj_utilisateur")) {
if (enregistrementEnCours == true) {
enregistrementEnCours = false;
Info.display(i18nC.accueilEnregistrement(), i18nC.accueilEnregistrementSucces());
} else {
chargerParametres();
Info.display(i18nC.accueil(), i18nC.accueilChargementSucces());
}
}
} else {
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/accueil/Applette.java
New file
0,0 → 1,81
package org.tela_botanica.client.vues.accueil;
 
import org.tela_botanica.client.util.Debug;
 
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.event.IconButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.button.ToolButton;
import com.extjs.gxt.ui.client.widget.custom.Portlet;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
 
abstract public class Applette extends Portlet {
private ToolButton epingleBouton = null;
private ToolButton configurationBouton = null;
private ToolButton fermetureBouton = null;
protected void initialiserApplette() {
initialiserApplette(null);
}
protected void initialiserApplette(String titre) {
setLayout(new FitLayout());
setHeight(250);
setCollapsible(true);
setAnimCollapse(true);
setScrollMode(Scroll.AUTO);
setTitre(titre);
configurationBouton = new ToolButton("x-tool-gear");
getHeader().addTool(configurationBouton);
epingleBouton = getBoutonEpingle();
getHeader().addTool(epingleBouton);
fermetureBouton = getBoutonFermeture();
getHeader().addTool(fermetureBouton);
}
private ToolButton getBoutonEpingle() {
ToolButton bouton = new ToolButton("x-tool-pin", new SelectionListener<IconButtonEvent>() {
@Override
public void componentSelected(IconButtonEvent ce) {
setEpingler(!isPinned());
}
});
return bouton;
}
private ToolButton getBoutonFermeture() {
ToolButton bouton = new ToolButton("x-tool-close", new SelectionListener<IconButtonEvent>() {
@Override
public void componentSelected(IconButtonEvent ce) {
removeFromParent();
}
});
return bouton;
}
public void setTitre(String titre) {
if (titre != null) {
setHeading(titre);
}
}
public void setEpingler(boolean epingler) {
if (epingler) {
epingleBouton.setStyleName("x-tool-unpin x-tool");
setPinned(true);
} else {
epingleBouton.setStyleName("x-tool-pin x-tool");
setPinned(false);
}
Debug.log(epingleBouton.getStyleName());
layout();
}
protected void ajouterConfigurationListener(SelectionListener<IconButtonEvent> configurationListener) {
configurationBouton.addSelectionListener(configurationListener);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/accueil/AppletteStatistique.java
New file
0,0 → 1,102
package org.tela_botanica.client.vues.accueil;
 
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.modeles.InterneValeur;
import org.tela_botanica.client.vues.Formulaire;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.event.IconButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.event.WindowEvent;
import com.extjs.gxt.ui.client.event.WindowListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Dialog;
import com.extjs.gxt.ui.client.widget.HtmlContainer;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
 
public class AppletteStatistique extends Applette {
private String baseUrl = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
 
public AppletteStatistique() {
initialiserAppletteStatistique(null);
}
public AppletteStatistique(String contenu) {
initialiserAppletteStatistique(contenu);
}
private void initialiserAppletteStatistique(String contenu) {
String titre = "Statistiques des collections";
initialiserApplette(titre);
SelectionListener<IconButtonEvent> configurationListener = new SelectionListener<IconButtonEvent>() {
@Override
public void componentSelected(IconButtonEvent ce) {
ContentPanel panneau = new ContentPanel();
panneau.setHeaderVisible(false);
panneau.setLayout(Formulaire.creerFormLayout(350, LabelAlign.TOP));
ListStore<InterneValeur> appletteStore = new ListStore<InterneValeur>();
appletteStore.add(new InterneValeur("NombreDonnees", "Nombre de données"));
appletteStore.add(new InterneValeur("TypeDepot", "Types de dépôt des collections"));
appletteStore.add(new InterneValeur("NombreCollectionParStructure", "Nombre de collections par institution"));
final ComboBox<InterneValeur> applettesCombo = new ComboBox<InterneValeur>();
applettesCombo.setFieldLabel("Veuillez sélectionner le type d'applette");
applettesCombo.setForceSelection(true);
applettesCombo.setTriggerAction(TriggerAction.ALL);
applettesCombo.setDisplayField("nom");
applettesCombo.setStore(appletteStore);
applettesCombo.setEditable(false);
applettesCombo.setWidth(300);
panneau.add(applettesCombo);
final Dialog configurationFenetre = new Dialog();
configurationFenetre.setHeading("Configuration de l'applette");
configurationFenetre.setButtons(Dialog.OK);
configurationFenetre.setSize(350, 150);
configurationFenetre.setPlain(true);
configurationFenetre.setModal(true);
configurationFenetre.setBlinkModal(true);
configurationFenetre.setLayout(new FitLayout());
configurationFenetre.setHideOnButtonClick(true);
configurationFenetre.addWindowListener(new WindowListener(){
public void windowHide(WindowEvent we) {
String abreviation = applettesCombo.getValue().getAbr();
attribuerContenu(abreviation);
}
});
configurationFenetre.add(panneau);
configurationFenetre.show();
}
};
ajouterConfigurationListener(configurationListener);
attribuerContenu(contenu);
}
 
private void attribuerContenu(String abreviation) {
if (abreviation == null) {
abreviation = "NombreDonnees";
}
setData("contenu", abreviation);
String url = baseUrl+"CoelStatistique/"+abreviation;
HtmlContainer conteneurHtml = new HtmlContainer();
conteneurHtml.setUrl(url);
conteneurHtml.recalculate();
removeAll();
add(conteneurHtml);
layout();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/BarrePaginationVue.java
New file
0,0 → 1,486
package org.tela_botanica.client.vues;
 
import java.util.Iterator;
import java.util.LinkedList;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.i18n.ErrorMessages;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.ListePaginable;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.util.UtilString;
 
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.KeyListener;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.SimpleComboBox;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.i18n.client.Dictionary;
 
public class BarrePaginationVue extends ToolBar implements Rafraichissable {
 
private Mediateur mediateur = null;
private Constantes i18nC = null;
private ErrorMessages i18nM = null;
public int valeur = 0;
private ListePaginable listePaginable = null;
private Button prevPage, suivPage, premierePage, dernierePage, rafraichir;
private int pageCourante, nbElement = 0;
private int taillePage = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
private int pageTotale = 1;
private Text page, surTotalPage, afficherNbElem, nbElemParPage, intervalleElements;
private TextField<String> champPage = new TextField<String>();
private SimpleComboBox selecteurTaillePage = new SimpleComboBox();
private Text labelFiltre;
private TextField<String> filtre;
private Button annulerFiltre;
private boolean filtreActive = false;
private String termeRecherche = "";
private LinkedList<Integer> intervallePages = new LinkedList<Integer>();
private ListStore storeIntervalle = new ListStore() ;
private String labelElement;
private int taillePageDefaut = 50;
public ListePaginable getlistePaginable() {
return listePaginable;
}
public void setlistePaginable(ListePaginable listePaginable) {
this.listePaginable = listePaginable;
}
/***************************************************************************
* constructeur sans argument (privé car ne doit pas être utilisé)
*/
@SuppressWarnings("unused")
private BarrePaginationVue() {
super();
}
 
/**
* constructeur avec paramètres
*
* @param im
* le médiateur à associer à la barre
*/
public BarrePaginationVue(ListePaginable listePaginableCourante, Mediateur mediateurCourant) {
super();
listePaginable = listePaginableCourante;
mediateur = mediateurCourant;
i18nC = Mediateur.i18nC;
i18nM = Mediateur.i18nM;
intervallePages.add(10);
intervallePages.add(20);
intervallePages.add(50);
intervallePages.add(100);
intervallePages.add(200);
premierePage = new Button();
premierePage.setIcon(Images.ICONES.resultsetFirst());
add(premierePage);
prevPage = new Button();
prevPage.setIcon(Images.ICONES.resultsetPrevious());
add(prevPage);
add(new SeparatorToolItem());
page = new Text(i18nC.page());
page.setStyleAttribute("padding", "0 5px 0 5px");
add(page);
champPage.setValue(String.valueOf(pageCourante+1));
champPage.setStyleAttribute("text-align","right");
champPage.setWidth(30);
add(champPage);
surTotalPage = new Text(i18nC.sur() + " " + pageTotale);
surTotalPage.setStyleAttribute("padding-left", "5px");
add(surTotalPage);
//Séparation
add(new SeparatorToolItem());
suivPage = new Button();
suivPage.setIcon(Images.ICONES.resultsetNext());
add(suivPage);
dernierePage = new Button();
dernierePage.setIcon(Images.ICONES.resultsetLast());
add(dernierePage);
 
//Séparation
add(new SeparatorToolItem());
rafraichir = new Button();
rafraichir.setIcon(Images.ICONES.rafraichir());
add(rafraichir);
//Séparation
add(new SeparatorToolItem());
afficherNbElem = new Text(i18nC.afficher());
afficherNbElem.setStyleAttribute("padding", "0 5px 0 5px");
add(afficherNbElem);
 
selecteurTaillePage.setWidth("40px");
setIntervallesPages();
add(selecteurTaillePage);
labelElement = i18nC.elements();
nbElemParPage = new Text(labelElement+" "+i18nC.parPage());
nbElemParPage.setStyleAttribute("padding-left", "5px");
add(nbElemParPage);
//Séparation
add(new SeparatorToolItem());
labelFiltre = new Text("Recherche rapide : ");
labelFiltre.setStyleAttribute("padding-right", "5px");
add(labelFiltre);
filtre = new TextField<String>();
filtre.setWidth(150);
this.add(filtre);
annulerFiltre = new Button();
annulerFiltre.setIcon(Images.ICONES.annuler());
annulerFiltre.setVisible(false);
add(annulerFiltre);
add(new FillToolItem());
intervalleElements = new Text(i18nM.elementsAffiches(UtilString.ucFirst(labelElement),
pageCourante * taillePage, (pageCourante + 1) * taillePage, nbElement));
add(intervalleElements);
// on ajoute les différents listeners
ajouterListeners();
}
/**
* Texte nommant les elements pagines (Images, Observation, truc, machin etc...).
* @param label
*/
public void setLabelElement(String label) {
this.labelElement = label;
nbElemParPage.setText(labelElement + " par page ");
intervalleElements.setText(i18nM.elementsAffiches(UtilString.ucFirst(labelElement),
pageCourante * taillePage, (pageCourante + 1) * taillePage, nbElement));
}
 
public void setTaillePageParDefaut(int taille) {
this.taillePageDefaut = taille;
selecteurTaillePage.setRawValue(""+taillePageDefaut);
}
public void setIntervallesPages() {
if (!intervallePages.contains(taillePage)) {
intervallePages.add(taillePage);
}
Iterator<Integer> itIntervallePages = intervallePages.iterator();
while (itIntervallePages.hasNext()) {
selecteurTaillePage.add(itIntervallePages.next());
}
selecteurTaillePage.setSimpleValue(taillePage);
}
/**
* Change l'état de la barre de pagination a actif ou inactif
* @param etat actif ou inactif
*/
private void changerEtatBarre(boolean etat) {
premierePage.setEnabled(etat);
prevPage.setEnabled(etat);
suivPage.setEnabled(etat);
dernierePage.setEnabled(etat);
champPage.setEnabled(etat);
selecteurTaillePage.setEnabled(etat);
page.setEnabled(etat);
surTotalPage.setEnabled(etat);
afficherNbElem.setEnabled(etat);
nbElemParPage.setEnabled(etat);
annulerFiltre.setVisible(!etat);
}
/**
* ajoute les différents listeners nécessaires au bon fonctionnement des
* éléments de la barre de pagination
*/
@SuppressWarnings("unchecked")
private void ajouterListeners() {
premierePage.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
pageCourante = 0;
rafraichirNumeroPage();
listePaginable.changerNumeroPage(pageCourante);
}
});
// boutons suivants et précédents
prevPage.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
// si la page courante n'est pas la première
if (pageCourante > 0) {
// on décrémente la page courante de 1
pageCourante--;
// on rafraichit l'affichage
rafraichirNumeroPage();
// et on notifie le médiateur de l'évenement
listePaginable.changerNumeroPage(pageCourante);
 
}
}
});
 
suivPage.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
// si la page courante n'est pas la dernière
if (pageCourante < pageTotale - 1) {
// on incrémente la page courante de 1
pageCourante++;
// on rafraichit l'affichage
rafraichirNumeroPage();
// et on notifie le médiateur de l'évenement
listePaginable.changerNumeroPage(pageCourante);
}
}
});
dernierePage.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
pageCourante = pageTotale;
rafraichirNumeroPage();
listePaginable.changerNumeroPage(pageCourante);
}
});
rafraichir.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
listePaginable.changerNumeroPage(pageCourante);
}
});
annulerFiltre.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
filtre.setValue("");
termeRecherche = "";
filtreActive = false;
listePaginable.changerNumeroPage(pageCourante);
labelFiltre.setStyleAttribute("font-weight", "normal");
changerEtatBarre(true);
}
});
filtre.addKeyListener(new KeyListener(){
public void componentKeyUp(ComponentEvent ce) {
if (ce.getKeyCode() == KeyCodes.KEY_ENTER) {
termeRecherche = filtre.getValue();
if (termeRecherche == null || termeRecherche.equals("")) {
filtreActive = false;
labelFiltre.setStyleAttribute("font-weight", "normal");
listePaginable.changerNumeroPage(pageCourante);
changerEtatBarre(true);
} else {
changerEtatBarre(false);
listePaginable.filtrerParNom(termeRecherche);
labelFiltre.setStyleAttribute("font-weight", "bold");
filtreActive = true;
}
}
}
});
champPage.addKeyListener(new KeyListener() {
public void componentKeyUp(ComponentEvent ce) {
// on teste si la touche entrée a été pressée
if (ce.getKeyCode() == KeyCodes.KEY_ENTER) {
int nouvellePage = pageCourante;
// on teste avec parseInt si la valeur entrée est un entier
try {
nouvellePage = Integer.parseInt(champPage.getRawValue());
} catch (NumberFormatException nfe) {
// si ce n'est pas le cas alors on remet le numéro de page correct
rafraichirNumeroPage();
champPage.focus();
return;
}
 
// si la conversion reussit on verifie s'il est nécessaire
// de changer de page
// et si la nouvelle est comprise dans l'intervalle des
// pages existantes (0..pageTotale)
if (nouvellePage != pageCourante + 1 && nouvellePage > 0
&& nouvellePage <= pageTotale) {
// le cas échéant, on charge la nouvelle page et on
// notifie le médiateur
changerPageCourante(nouvellePage - 1);
listePaginable.changerNumeroPage(pageCourante);
} else {
// sinon on reaffiche l'ancien numero de page sans rien
// changer
rafraichirNumeroPage();
champPage.focus();
}
}
}
});
 
// pour éviter de se compliquer la vie, on filtre tous les charactères
// non numériques
champPage.addKeyListener(new KeyListener() {
public void componentKeyDown(ComponentEvent ce) {
// FIXME : si c'est un numerique
/*if (Character.isDigit((char) e.getCharCode())) {
// on laisse passer
return;
}*/
 
// si c'est la touche entrée ou backspace (valider ou effacer)
if (ce.getKeyCode() == KeyCodes.KEY_ENTER
|| ce.getKeyCode() == KeyCodes.KEY_BACKSPACE) {
// on laisse passer
return;
} else {
// sinon on remet le numero de page correct et on annule l'évenement
rafraichirNumeroPage();
ce.stopEvent();
}
}
});
 
// listener pour la selection dans la combobox
selecteurTaillePage.addSelectionChangedListener(new SelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent e) {
SimpleComboBox comboBox = (SimpleComboBox) e.getSource();
String nouvelleTaillePageString = comboBox.getRawValue();
int nouvelleTaillePage = Integer.parseInt(nouvelleTaillePageString);
changerTaillePage(nouvelleTaillePage);
rafraichirNumeroPage();
}
});
}
/**
* Met à jour les affichage sur les numéros de pages et d'intervalle
* d'éléments à partir des variables de classes
*/
public void rafraichirNumeroPage() {
if (filtreActive == true) {
intervalleElements.setText("<b><i>Recherche active : </i></b>" + termeRecherche);
} else {
surTotalPage.setText(" sur " + pageTotale);
if (nbElement == 0) {
champPage.setValue("" + (0));
// on met simplement à jour l'intervalle qui contient toujours le
// même nombre d'éléments
intervalleElements.setText(i18nM.elementsAffiches(UtilString.ucFirst(labelElement), 0,0,0));
} else {
champPage.setValue("" + (pageCourante + 1));
// si la page n'est pas la dernière
if (pageCourante + 1 != pageTotale) {
// sauf pour la dernière page qui contient souvent moins
// d'élements que le nombre d'élements par page
intervalleElements.setText(i18nM.elementsAffiches(UtilString.ucFirst(labelElement), pageCourante * taillePage,
(pageCourante + 1) * taillePage, nbElement));
} else {
// on met simplement à jour l'intervalle qui contient toujours
// le même nombre d'éléments
intervalleElements.setText(i18nM.elementsAffiches(UtilString.ucFirst(labelElement), pageCourante * taillePage,
nbElement, nbElement));
}
}
}
}
 
/**
* Met à jour la page en cours
*
* @param nouvellePageCourante
* la nouvelle page en cours
*/
public void changerPageCourante(int nouvellePageCourante) {
pageCourante = nouvellePageCourante;
}
 
/**
* Envoie au médiateur une demande pour modifier la taille de la page (qui
* va à son tour faire les modifications nécessaires)
*
* @param nouvelleTaillePage
* la nouvelle taille de page (élement appartenant au tableau
* renvoyé par getNbPages())
*/
public void changerTaillePage(int nouvelleTaillePage) {
if (nouvelleTaillePage != taillePage) {
listePaginable.changerTaillePage(nouvelleTaillePage);
}
}
 
/**
* Selectionne la valeur correspond à celle passée en paramètre dans la
* combobox (si elle existe)
*
* @param nouvelleTaillePage
* la nouvelle taille de page
*/
public void selectionnerTaillePage(int nouvelleTaillePage) {
selecteurTaillePage.setRawValue("" + nouvelleTaillePage);
}
 
@Override
public void rafraichir(Object nouvelleDonnees) {
// si on reçoit un tableau de int
if (nouvelleDonnees instanceof int[]) {
int[] page = (int[]) nouvelleDonnees;
// le premier élement est le nombre de pages totales
pageTotale = page[0];
// le second la page en cours
pageCourante = page[1];
// le troisième la taille de la page
taillePage = page[2];
// et le dernier le nombre total d'éléments
nbElement = page[3];
// si la page courante dépasse la page totale (cas normalement
// improbable car géré en amont)
// on met le numéro de page à la page courante -1 (car la page
// courante est comptée à partir
// de zéro)
if (pageCourante >= pageTotale && pageCourante != 0) {
pageCourante = pageTotale - 1;
// le cas échéant on en notifie le médiateur
listePaginable.changerNumeroPage(pageCourante);
}
}
 
// enfin on rafraichit les informations affichées à partir des nouvelles
// variables de classes mises à jour
rafraichirNumeroPage();
layout();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/publication/PublicationVue.java
New file
0,0 → 1,55
package org.tela_botanica.client.vues.publication;
 
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.publication.PublicationAPersonneListe;
import org.tela_botanica.client.modeles.publication.PublicationListe;
import org.tela_botanica.client.util.Debug;
 
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.google.gwt.core.client.GWT;
 
public class PublicationVue extends LayoutContainer implements Rafraichissable {
private Mediateur mediateur = null;
private PublicationListeVue panneauPublicationListe;
private PublicationDetailVue panneauPublicationDetail;
public PublicationVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
BorderLayout layout = new BorderLayout();
layout.setEnableState(false);
setLayout(layout);
 
panneauPublicationListe = new PublicationListeVue(mediateur);
add(panneauPublicationListe, new BorderLayoutData(LayoutRegion.CENTER));
 
panneauPublicationDetail = new PublicationDetailVue(mediateur);
BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, .5f, 200, 1000);
southData.setSplit(true);
southData.setMargins(new Margins(5, 0, 0, 0));
add(panneauPublicationDetail, southData);
setId(ComposantId.PANNEAU_PUBLICATION_LISTE);
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Publication) {
panneauPublicationDetail.rafraichir(nouvellesDonnees);
} else if (nouvellesDonnees instanceof PublicationListe) {
panneauPublicationListe.rafraichir(nouvellesDonnees);
mediateur.desactiverChargement();
} else if (nouvellesDonnees instanceof Information) {
panneauPublicationListe.rafraichir(nouvellesDonnees);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/publication/PublicationListeVue.java
New file
0,0 → 1,237
package org.tela_botanica.client.vues.publication;
 
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Utilisateur;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.publication.PublicationAPersonneListe;
import org.tela_botanica.client.modeles.publication.PublicationListe;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.vues.BarrePaginationVue;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnData;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Window;
 
public class PublicationListeVue extends ContentPanel implements Rafraichissable {
 
private Mediateur mediateur = null;
private Constantes i18nC = null;
 
private Grid<Publication> grille = null;
private ListStore<Publication> store = null;
private ColumnModel modeleDesColonnes = null;
 
private Button ajouter;
private Button modifier;
private Button supprimer;
private BarrePaginationVue pagination = null;
public PublicationListeVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
i18nC = Mediateur.i18nC;
setLayout(new FitLayout());
setHeading(i18nC.menuPublication());
// Gestion de la barre d'outil
ToolBar toolBar = new ToolBar();
ajouter = new Button(i18nC.ajouter());
ajouter.setIcon(Images.ICONES.ajouter());
ajouter.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
mediateur.clicAjouterPublication();
}
});
toolBar.add(ajouter);
 
modifier = new Button(i18nC.modifier());
modifier.setIcon(Images.ICONES.formModifier());
modifier.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
mediateur.clicModifierPublication(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(modifier);
supprimer = new Button(i18nC.supprimer());
supprimer.setIcon(Images.ICONES.supprimer());
supprimer.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
mediateur.clicSupprimerPublication(grille.getSelectionModel().getSelectedItems());
}
});
toolBar.add(supprimer);
setTopComponent(toolBar);
 
// Gestion de la grille
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
// ATTENTION : les noms des colonnes doivent correspondre aux noms variables de la classe utilisée dans la liste
colonnes.add(new ColumnConfig("fmt_auteur", i18nC.publicationAuteurs(), 200));
colonnes.add(new ColumnConfig("titre", i18nC.publicationTitre(), 150));
colonnes.add(new ColumnConfig("collection", i18nC.publicationRevueCollection(), 110));
colonnes.add(creerColonneEditeur());
colonnes.add(creerColonneAnneePublication());
colonnes.add(new ColumnConfig("indication_nvt", i18nC.publicationNvt(), 35));
colonnes.add(new ColumnConfig("fascicule", i18nC.publicationFascicule(), 35));
colonnes.add(new ColumnConfig("truk_pages", i18nC.publicationPage(), 35));
modeleDesColonnes = new ColumnModel(colonnes);
 
GridSelectionModel<Publication> modeleDeSelection = new GridSelectionModel<Publication>();
modeleDeSelection.addSelectionChangedListener(new SelectionChangedListener<Publication>() {
public void selectionChanged(SelectionChangedEvent<Publication> event) {
Publication publication = (Publication) event.getSelectedItem();
clicListe(publication);
}
});
store = new ListStore<Publication>();
store.sort("titre", SortDir.ASC);
grille = new Grid<Publication>(store, modeleDesColonnes);
grille.setWidth("100%");
grille.setAutoExpandColumn("titre");
grille.getView().setAutoFill(true);
grille.getView().setForceFit(true);
grille.setSelectionModel(modeleDeSelection);
grille.addListener(Events.ViewReady, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
grille.getSelectionModel().select(0, false);
}
});
grille.addListener(Events.OnDoubleClick, new Listener<BaseEvent>(){
@Override
public void handleEvent(BaseEvent be) {
modifier.fireEvent(Events.Select);
}
});
add(grille);
// Définition de la barre de pagination
pagination = new BarrePaginationVue(new StructureListe(), mediateur);
setBottomComponent(pagination);
}
private ColumnConfig creerColonneEditeur() {
GridCellRenderer<Publication> editeurRendu = new GridCellRenderer<Publication>() {
@Override
public String render(Publication model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<Publication> store, Grid<Publication> grid) {
String editeur = model.getNomEditeur();
model.set("_editeur_", editeur);
return editeur;
}
};
ColumnConfig editeurColonne = new ColumnConfig("_editeur_", i18nC.publicationEditeur(), 135);
editeurColonne.setRenderer(editeurRendu);
return editeurColonne;
}
private ColumnConfig creerColonneAnneePublication() {
GridCellRenderer<Publication> datePublicationRendu = new GridCellRenderer<Publication>() {
@Override
public String render(Publication model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<Publication> store, Grid<Publication> grid) {
String annee = model.getAnneeParution();
model.set("_annee_", annee);
return annee;
}
};
ColumnConfig datePublicationColonne = new ColumnConfig("_annee_", i18nC.publicationDateParution(), 75);
datePublicationColonne.setRenderer(datePublicationRendu);
return datePublicationColonne;
}
private void clicListe(Publication publication) {
if (publication != null && store.getCount() > 0) {
mediateur.clicListePublication(publication);
}
}
 
private void gererEtatActivationBouton() {
int nbreElementDuMagazin = store.getCount();
ajouter.enable();
if (nbreElementDuMagazin <= 0) {
supprimer.disable();
modifier.disable();
} else if (nbreElementDuMagazin > 0) {
modifier.enable();
if (((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT)).isIdentifie()) {
supprimer.enable();
}
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof PublicationListe) {
PublicationListe publications = (PublicationListe) nouvellesDonnees;
pagination.setlistePaginable(publications);
pagination.rafraichir(publications.getPageTable());
if (publications != null) {
List<Publication> liste = publications.toList();
store.removeAll();
store.add(liste);
mediateur.actualiserPanneauCentral();
}
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("maj_utilisateur")) {
gererEtatActivationBouton();
} else if (info.getType().equals("suppression_publication")) {
String message = info.toString();
if (info.getDonnee(0) != null) {
message = (String) info.getDonnee(0);
}
Info.display(i18nC.publicationTitreSuppression(), message);
supprimerPublicationsSelectionnees();
gererEtatActivationBouton();
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
layout();
}
 
private void supprimerPublicationsSelectionnees() {
List<Publication> publicationsSelectionnees = grille.getSelectionModel().getSelectedItems();
Iterator<Publication> it = publicationsSelectionnees.iterator();
while (it.hasNext()) {
grille.getStore().remove(it.next());
}
layout(true);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/publication/PublicationDetailVue.java
New file
0,0 → 1,162
package org.tela_botanica.client.vues.publication;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.vues.DetailVue;
 
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Html;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
 
public class PublicationDetailVue extends DetailVue implements Rafraichissable {
private String enteteTpl = null;
private String contenuTpl = null;
private ContentPanel panneauPrincipal = null;
private Html entete = null;
private Html contenu = null;
private Publication publication = null;
private boolean publicationChargementOk = false;
 
public PublicationDetailVue(Mediateur mediateurCourant) {
super(mediateurCourant);
initialiserTousLesTpl();
panneauPrincipal = new ContentPanel();
panneauPrincipal.setLayout(new FitLayout());
panneauPrincipal.setHeaderVisible(false);
panneauPrincipal.setBodyBorder(false);
entete = new Html();
entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
panneauPrincipal.setTopComponent(entete);
contenu = new Html();
panneauPrincipal.add(contenu);
add(panneauPrincipal);
}
 
private void initialiserTousLesTpl() {
initialiserEnteteHtmlTpl();
initialiserGeneralTpl();
}
private void initialiserEnteteHtmlTpl() {
enteteTpl =
"<div id='{css_id}'>"+
" <h1>{titre}</h1>"+
" <h2>{auteurs} ({annee})<span class='{css_meta}'>{projet} <br /> {i18n_id}:{id} - {guid}</span></h2>" +
"</div>";
}
private void initialiserGeneralTpl() {
contenuTpl =
"<div class='{css_corps}'>"+
" <span class='{css_label}'>{i18n_nom_complet} :</span> {nom_complet}<br />"+
" <span class='{css_label}'>{i18n_auteurs} :</span> {auteurs}<br />"+
" <span class='{css_label}'>{i18n_titre} :</span> {titre}<br />"+
" <span class='{css_label}'>{i18n_collection} :</span> {collection}<br />"+
" <span class='{css_label}'>{i18n_editeur} :</span> {editeur}<br />"+
" <span class='{css_label}'>{i18n_annee} :</span> {annee}<br />"+
" <span class='{css_label}'>{i18n_nvt} :</span> {nvt}<br />"+
" <span class='{css_label}'>{i18n_fascicule} :</span> {fascicule}<br />"+
" <span class='{css_label}'>{i18n_pages} :</span> {pages}<br />"+
"</div>";
}
public void afficherDetail() {
if (publication != null) {
afficherEntete();
afficherDetailPublication();
}
layout();
}
private void afficherEntete() {
Params enteteParams = new Params();
enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
enteteParams.set("css_meta", ComposantClass.META);
enteteParams.set("i18n_id", i18nC.id());
enteteParams.set("titre", publication.getTitre());
enteteParams.set("auteurs", publication.getAuteur());
enteteParams.set("annee", publication.getAnneeParution());
enteteParams.set("id", publication.getId());
enteteParams.set("guid", getGuid());
enteteParams.set("projet", construireTxtProjet(publication.getIdProjet()));
GWT.log("entete généré", null);
String eHtml = Format.substitute(enteteTpl, enteteParams);
entete.getElement().setInnerHTML(eHtml);
}
public String getGuid() {
String guid = "URN:tela-botanica.org:";
guid += "coel"+publication.getIdProjet()+":";
guid += "pub"+publication.getId();
return guid;
}
public void afficherDetailPublication() {
Params contenuParams = new Params();
contenuParams.set("i18n_nom_complet", i18nC.publicationNomComplet());
contenuParams.set("i18n_auteurs", i18nC.publicationAuteurs());
contenuParams.set("i18n_titre", i18nC.publicationTitre());
contenuParams.set("i18n_collection", i18nC.publicationRevueCollection());
contenuParams.set("i18n_editeur", i18nC.publicationEditeur());
contenuParams.set("i18n_annee", i18nC.publicationDateParution());
contenuParams.set("i18n_nvt", i18nC.publicationNvt());
contenuParams.set("i18n_fascicule", i18nC.publicationFascicule());
contenuParams.set("i18n_pages", i18nC.publicationPage());
contenuParams.set("nom_complet", publication.getNomComplet());
contenuParams.set("auteurs", publication.getAuteur());
contenuParams.set("titre", publication.getTitre());
contenuParams.set("collection", publication.getCollection());
contenuParams.set("editeur", publication.getNomEditeur());
contenuParams.set("annee", publication.getAnneeParution());
contenuParams.set("nvt", publication.getIndicationNvt());
contenuParams.set("fascicule", publication.getFascicule());
contenuParams.set("pages", publication.getPages());
String gHtml = formaterContenu(contenuTpl, contenuParams);
contenu.getElement().setInnerHTML(gHtml);
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Publication) {
publication = (Publication) nouvellesDonnees;
publicationChargementOk = true;
} else if (nouvellesDonnees instanceof ProjetListe) {
projets = (ProjetListe) nouvellesDonnees;
projetsChargementOk = true;
GWT.log("projets recu", null);
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
if (avoirDonneesChargees()) {
afficherDetail();
}
}
private boolean avoirDonneesChargees() {
boolean ok = false;
if (projetsChargementOk && publicationChargementOk) {
ok = true;
}
return ok;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/publication/PublicationForm.java
New file
0,0 → 1,821
package org.tela_botanica.client.vues.publication;
 
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.MenuApplicationId;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.personne.PersonneListe;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.publication.PublicationAPersonne;
import org.tela_botanica.client.modeles.publication.PublicationAPersonneListe;
import org.tela_botanica.client.modeles.structure.Structure;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.Pattern;
import org.tela_botanica.client.util.UtilArray;
import org.tela_botanica.client.util.UtilString;
import org.tela_botanica.client.vues.Formulaire;
 
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.HorizontalPanel;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.Field;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.Validator;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.google.gwt.core.client.GWT;
 
 
public class PublicationForm extends Formulaire implements Rafraichissable {
private Publication publication;
private PersonneListe auteursInitialListe = null;
private static boolean publicationAPersonneListeChargementOk = false;
private PublicationAPersonneListe auteursAjoutes = null;
private PublicationAPersonneListe auteursSupprimes = null;
private FieldSet auteursFieldset = null;
private ComboBox<Projet> projetsCombo = null;
private ArrayList<ComboBox<Personne>> auteurComboboxListe = null;
private LayoutContainer conteneurChamps;
private ListStore<Personne> auteursStorePartage = null;
private static boolean auteurStorePartageChargementOk = false;
private FieldSet generalitesFieldset = null;
private TextField<String> titreChp = null;
private TextField<String> collectionChp = null;
private TextField<String> uriChp = null;
private FieldSet editionFieldset = null;
private ComboBox<Structure> editeurCombobox = null;
private TextField<String> datePublicationChp = null;
private TextField<String> tomeChp = null;
private TextField<String> fasciculeChp = null;
private TextField<String> pagesChp = null;
private String idStructureEdition = "";
 
private static boolean formulaireValideOk = false;
private static boolean publicationValideOk = false;
private static boolean auteursValideOk = false;
private static boolean publicationOk = false;
private static boolean attenteAjoutAuteursOk = true;
private static boolean attenteSuppressionAuteursOk = true;
 
public PublicationForm(Mediateur mediateurCourrant, String publicationId) {
initialiserPublicationForm(mediateurCourrant, publicationId);
}
 
public PublicationForm(Mediateur mediateurCourrant, String publicationId, Rafraichissable vueARafraichirApresValidation) {
vueExterneARafraichirApresValidation = vueARafraichirApresValidation;
initialiserPublicationForm(mediateurCourrant, publicationId);
}
private void initialiserPublicationForm(Mediateur mediateurCourrant, String publicationId) {
auteursInitialListe = new PersonneListe();
initialiserValidation();
initialiserAffichageAuteurs();
publication = new Publication();
publication.setId(publicationId);
String modeDeCreation = (UtilString.isEmpty(publication.getId()) ? Formulaire.MODE_AJOUTER : Formulaire.MODE_MODIFIER);
initialiserFormulaire(mediateurCourrant, modeDeCreation, MenuApplicationId.PUBLICATION);
panneauFormulaire.setLayout(new FlowLayout());
genererTitreFormulaire();
creerZoneAuteurs();
panneauFormulaire.add(auteursFieldset);
creerZoneGeneralites();
panneauFormulaire.add(generalitesFieldset);
creerZoneEdition();
panneauFormulaire.add(editionFieldset);
if (modeDeCreation.equals(Formulaire.MODE_MODIFIER)) {
mediateurCourrant.selectionnerPublication(this, publicationId);
mediateurCourrant.selectionnerPublicationAPersonne(this, publicationId, null, PublicationAPersonne.ROLE_AUTEUR);
}
}
private void genererTitreFormulaire() {
String titre = i18nC.publicationTitreFormAjout();
if (mode.equals(Formulaire.MODE_MODIFIER)) {
titre = i18nC.publicationTitreFormModif();
if (publication != null) {
titre += " - "+i18nC.id()+": "+publication.getId();
}
}
panneauFormulaire.setHeading(titre);
}
private void creerZoneAuteurs() {
FormLayout layout = new FormLayout();
layout.setLabelWidth(200);
// Fieldset Auteur
auteursFieldset = new FieldSet();
auteursFieldset.setHeading(i18nC.publicationAuteursTitre());
auteursFieldset.setCollapsible(true);
auteursFieldset.setLayout(layout);
Debug.log("Dans creerZoneAuteurs");
auteurComboboxListe = new ArrayList<ComboBox<Personne>>(0);
auteursStorePartage = new ListStore<Personne>();
mediateur.clicObtenirListeAuteurs(this);
creerChampsAuteur();
}
private void creerChampsAuteur() {
auteursFieldset.removeAll();
conteneurChamps = new LayoutContainer();
Button ajouterAuteurBouton = new Button(i18nC.publicationAuteurBoutonAjouter());
ajouterAuteurBouton.setIcon(Images.ICONES.ajouter());
ajouterAuteurBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent be) {
creerChampAuteurEtBoutonSupprimer(null);
}
});
auteursFieldset.add(conteneurChamps);
auteursFieldset.add(ajouterAuteurBouton);
auteursFieldset.layout();
if (mode.equals(Formulaire.MODE_AJOUTER)) {
creerChampAuteurEtBoutonSupprimer(null);
}
}
public void creerChampAuteurEtBoutonSupprimer(Personne auteur) {
final HorizontalPanel panneauHorizontal = new HorizontalPanel();
 
LayoutContainer panneauChampTxt = new LayoutContainer();
panneauChampTxt.setLayout(new FormLayout());
 
final ComboBox<Personne> auteursSaisisComboBox = creerComboBoxAuteursSaisis();
if (auteur != null) {
auteursSaisisComboBox.setValue(auteur);
auteursSaisisComboBox.validate();
}
auteurComboboxListe.add(auteursSaisisComboBox);
auteursSaisisComboBox.setFieldLabel(i18nC.publicationAuteurSingulier()+" "+auteurComboboxListe.size());
panneauChampTxt.add(auteursSaisisComboBox, new FormData(300, 0));
panneauHorizontal.add(panneauChampTxt);
Button supprimerAuteurBouton = new Button();
supprimerAuteurBouton.setIcon(Images.ICONES.supprimer());
supprimerAuteurBouton.setToolTip(i18nC.supprimer());
supprimerAuteurBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent be) {
auteurComboboxListe.remove(auteursSaisisComboBox);
conteneurChamps.remove(panneauHorizontal);
int numeroAuteurs = 1;
for (Iterator<ComboBox<Personne>> it = auteurComboboxListe.iterator(); it.hasNext();) {
it.next().setFieldLabel(i18nC.publicationAuteurSingulier()+" "+numeroAuteurs);
numeroAuteurs++;
}
 
auteursFieldset.layout();
}
});
panneauHorizontal.add(supprimerAuteurBouton);
 
conteneurChamps.add(panneauHorizontal);
auteursFieldset.layout();
}
private ComboBox<Personne> creerComboBoxAuteursSaisis() {
ListStore<Personne> auteursStore = new ListStore<Personne>();
auteursStore.add(auteursStorePartage.getModels());
ComboBox<Personne> comboBox = new ComboBox<Personne>();
comboBox.setEmptyText(i18nC.chercherPersonneSaisi());
comboBox.setEditable(true);
comboBox.setAllowBlank(false);
comboBox.setForceSelection(true);
comboBox.setDisplayField("fmt_nom_complet");
comboBox.setTriggerAction(TriggerAction.ALL);
comboBox.setStore(auteursStore);
comboBox.addStyleName(ComposantClass.OBLIGATOIRE);
comboBox.addListener(Events.Valid, creerEcouteurChampObligatoire());
 
return comboBox;
}
private void creerZoneGeneralites() {
FormLayout layout = new FormLayout();
layout.setLabelWidth(200);
// Fieldset Infos Générales
generalitesFieldset = new FieldSet();
generalitesFieldset.setHeading("Informations générales");
generalitesFieldset.setCollapsible(true);
generalitesFieldset.setLayout(layout);
projetsCombo = new ComboBox<Projet>();
projetsCombo.setTabIndex(tabIndex++);
projetsCombo.setFieldLabel(i18nC.projetChamp());
projetsCombo.setDisplayField("nom");
projetsCombo.setForceSelection(true);
projetsCombo.setValidator(new Validator() {
@Override
public String validate(Field<?> field, String value) {
String retour = null;
if (field.getRawValue().equals("")) {
field.setValue(null);
} else if (projetsCombo.getStore().findModel("nom", field.getRawValue()) == null) {
String contenuBrut = field.getRawValue();
field.setValue(null);
field.setRawValue(contenuBrut);
retour = "Veuillez sélectionner une valeur ou laisser le champ vide";
}
return retour;
}
});
projetsCombo.setTriggerAction(TriggerAction.ALL);
projetsCombo.setStore(new ListStore<Projet>());
projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
projetsCombo.addListener(Events.Valid, Formulaire.creerEcouteurChampObligatoire());
generalitesFieldset.add(projetsCombo, new FormData(450, 0));
mediateur.selectionnerProjet(this, null);
titreChp = new TextField<String>();
titreChp.setName("cpu");
titreChp.setFieldLabel("Titre de l'article ou de l'ouvrage");
titreChp.addStyleName(ComposantClass.OBLIGATOIRE);
titreChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
generalitesFieldset.add(titreChp, new FormData(450, 0));
collectionChp = new TextField<String>();
collectionChp.setFieldLabel("Intitulé de la revue ou de la collection");
generalitesFieldset.add(collectionChp, new FormData(450, 0));
uriChp = new TextField<String>();
uriChp.setFieldLabel("URL de la publication");
generalitesFieldset.add(uriChp, new FormData(450, 0));
}
private void creerZoneEdition() {
FormLayout layout = new FormLayout();
layout.setLabelWidth(200);
 
// Fieldset Edition
editionFieldset = new FieldSet();
editionFieldset.setHeading("Édition");
editionFieldset.setCollapsible(true);
editionFieldset.setLayout(layout);
ListStore<Structure> editeurStore = new ListStore<Structure>();
editeurCombobox = new ComboBox<Structure>();
editeurCombobox.setEmptyText("Sélectionner un éditeur...");
editeurCombobox.setFieldLabel("Éditeur de la publication");
editeurCombobox.setDisplayField("nom");
editeurCombobox.setStore(editeurStore);
editeurCombobox.setEditable(true);
editeurCombobox.setTriggerAction(TriggerAction.ALL);
editionFieldset.add(editeurCombobox, new FormData(450, 0));
mediateur.clicObtenirListeEditeurs(this);
datePublicationChp = new TextField<String>();
datePublicationChp.setMaxLength(4);
datePublicationChp.setMinLength(4);
datePublicationChp.setFieldLabel("Année de publication");
datePublicationChp.addStyleName(ComposantClass.OBLIGATOIRE);
datePublicationChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
editionFieldset.add(datePublicationChp, new FormData(40, 0));
tomeChp = new TextField<String>();
tomeChp.setFieldLabel("Série de la revue ou tome");
editionFieldset.add(tomeChp, new FormData(75, 0));
fasciculeChp = new TextField<String>();
fasciculeChp.setFieldLabel("Fascicule de la revue");
editionFieldset.add(fasciculeChp, new FormData(75, 0));
pagesChp = new TextField<String>();
pagesChp.setFieldLabel("Pages");
pagesChp.setToolTip("Fomat : NBRE ou NBRE-NBRE. ('NBRE' correspond à une suite de chiffres arabes ou romains ou à un point d'interrogation '?' dans le cas d'une donnée inconnue)");
editionFieldset.add(pagesChp, new FormData(100, 0));
}
 
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Publication) {
// Si on a reçu les details d'une publication
rafraichirPublication((Publication) nouvellesDonnees);
} else if (nouvellesDonnees instanceof StructureListe) {
// Si on a reçu une liste des editeurs
rafraichirListeEditeurs((StructureListe) nouvellesDonnees);
} else if (nouvellesDonnees instanceof PublicationAPersonneListe) {
rafraichirListeAuteurs((PublicationAPersonneListe) nouvellesDonnees);
} else if (nouvellesDonnees instanceof Information) {
rafraichirInformation((Information) nouvellesDonnees);
} else if (nouvellesDonnees instanceof ProjetListe) {
ProjetListe projets = (ProjetListe) nouvellesDonnees;
Formulaire.rafraichirComboBox(projets, projetsCombo);
setValeurComboProjets();
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
if (etrePretAAfficherAuteurs()) {
afficherAuteurs();
initialiserAffichageAuteurs();
}
if (etreValide()) {
initialiserValidation();
repandreRafraichissement();
controlerFermetureApresRafraichissement();
}
}
private void miseAJourAuteursInitialListe() {
Iterator<String> clesAjoutees = auteursAjoutes.keySet().iterator();
while (clesAjoutees.hasNext()) {
Personne auteurAjoute = auteursAjoutes.get(clesAjoutees.next()).getPersonne();
auteursInitialListe.put(auteurAjoute.getId(), auteurAjoute);
}
Iterator<String> clesSupprimees = auteursSupprimes.keySet().iterator();
while (clesSupprimees.hasNext()) {
Personne auteurSupprime = auteursSupprimes.get(clesSupprimees.next()).getPersonne();
auteursInitialListe.remove(auteurSupprime.getId());
}
}
private void rafraichirPublication(Publication publi) {
publicationOk = true;
publication = publi;
peuplerFormulaire();
genererTitreFormulaire();
}
private void rafraichirListeEditeurs(StructureListe editeurs) {
editeurCombobox.getStore().removeAll();
editeurCombobox.getStore().add((List<Structure>) editeurs.toList());
if (mode.equals(Formulaire.MODE_MODIFIER)) {
editeurCombobox.setValue((Structure) editeurs.get(idStructureEdition));
}
editeurCombobox.expand();
}
private void rafraichirListeAuteurs(PublicationAPersonneListe auteurs) {
Iterator<String> it = auteurs.keySet().iterator();
while (it.hasNext()) {
Personne auteur = auteurs.get(it.next()).getPersonne();
auteursInitialListe.put(auteur.getId(), auteur);
}
publicationAPersonneListeChargementOk = true;
}
private void rafraichirInformation(Information info) {
String type = info.getType();
if (type.equals("ajout_publication") || type.equals("modif_publication")) {
publicationValideOk = true;
if (vueExterneARafraichirApresValidation != null) {
publication.setId((String) info.getDonnee(0));
}
if (mode.equals(Formulaire.MODE_AJOUTER)) {
attenteAjoutAuteursOk = true;
mediateur.ajouterPublicationAPersonne(this, publication.getId(), auteursAjoutes, PublicationAPersonne.ROLE_AUTEUR);
}
}
if (info.getType().equals("liste_personne")) {
PersonneListe listePersonneAuteur = (PersonneListe) info.getDonnee(0);
List<Personne> liste = listePersonneAuteur.toList();
auteursStorePartage.removeAll();
auteursStorePartage.add(liste);
Debug.log("Reception nouvelle liste auteurs");
auteurStorePartageChargementOk = true;
} else if (info.getType().equals("ajout_publication_a_personne")) {
attenteAjoutAuteursOk = false;
GWT.log("attenteAjoutAuteursOk", null);
} else if (info.getType().equals("suppression_publication_a_personne")) {
attenteSuppressionAuteursOk = false;
GWT.log("attenteSuppressionAuteursOk", null);
} else if (info.getType().equals("modif_publication")) {
Info.display("Modification d'une publication", info.toString());
} else if (info.getType().equals("ajout_publication")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String publicationId = (String) info.getDonnee(0);
Info.display("Ajout d'une publication", "La publication '"+publicationId+"' a bien été ajoutée");
if (vueExterneARafraichirApresValidation != null) {
publication.setId(publicationId);
}
} else {
Info.display("Ajout d'une publication", info.toString());
}
}
if (avoirAuteursMiseAJourCorrectement()) {
Debug.log("Mise à jour liste auteur");
miseAJourAuteursInitialListe();
initialiserAuteurs();
auteursValideOk = true;
}
}
private boolean avoirAuteursMiseAJourCorrectement() {
boolean ok = false;
if (attenteAjoutAuteursOk == false && attenteSuppressionAuteursOk == false) {
ok = true;
}
return ok;
}
private void afficherAuteurs() {
Iterator<String> itap = auteursInitialListe.keySet().iterator();
while (itap.hasNext()) {
creerChampAuteurEtBoutonSupprimer(auteursInitialListe.get(itap.next()));
}
}
 
private void initialiserAffichageAuteurs() {
publicationOk = false;
auteurStorePartageChargementOk = false;
publicationAPersonneListeChargementOk = false;
}
 
private boolean etrePretAAfficherAuteurs() {
boolean ok = false;
if (publicationOk && auteurStorePartageChargementOk && publicationAPersonneListeChargementOk) {
ok = true;
}
return ok;
}
 
private Boolean etreValide() {
Boolean valide = false;
//Debug.log("formulaire"+formulaireValideOk+" - Publication :"+publicationValideOk+" - Auteurs :"+auteursValideOk, null);
if (formulaireValideOk && publicationValideOk && auteursValideOk) {
valide = true;
}
return valide;
}
private void initialiserValidation() {
formulaireValideOk = false;
publicationValideOk = false;
initialiserAuteurs();
auteursValideOk = false;
}
private void initialiserAuteurs() {
attenteAjoutAuteursOk = true;
auteursAjoutes = new PublicationAPersonneListe();
attenteSuppressionAuteursOk = true;
auteursSupprimes = new PublicationAPersonneListe();
}
private void repandreRafraichissement() {
if (vueExterneARafraichirApresValidation != null) {
String type = "publication_modifiee";
if (mode.equals(Formulaire.MODE_AJOUTER)) {
type = "publication_ajoutee";
}
Information info = new Information(type);
info.setDonnee(0, publication);
vueExterneARafraichirApresValidation.rafraichir(info);
}
}
public boolean soumettreFormulaire() {
formulaireValideOk = verifierFormulaire();
if (formulaireValideOk) {
soumettrePublication();
soumettreAuteurs();
}
return formulaireValideOk;
}
private void soumettrePublication() {
Publication publicationCollectee = collecterPublication();
if (publicationCollectee != null) {
if (mode.equals(Formulaire.MODE_AJOUTER)) {
mediateur.ajouterPublication(this, publicationCollectee);
} else if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.modifierPublication(this, publicationCollectee);
}
}
}
private void soumettreAuteurs() {
attenteAjoutAuteursOk = false;
attenteSuppressionAuteursOk = false;
PersonneListe personnesInitiales = auteursInitialListe;
PersonneListe personnesActuelles = new PersonneListe();
if (auteurComboboxListe != null) {
Iterator<ComboBox<Personne>> itcp = auteurComboboxListe.iterator();
while (itcp.hasNext()) {
ComboBox<Personne> combobox = itcp.next();
Personne personne = combobox.getValue();
if (personne != null) {
personnesActuelles.put(personne.getId(), personne);
} else {
Debug.log("Etre valide :"+combobox.isValid()+" - "+combobox.getRawValue());
}
}
}
// Auteurs ajoutés
Iterator<String> clesActuelles = personnesActuelles.keySet().iterator();
while (clesActuelles.hasNext()) {
String idActuel = clesActuelles.next();
if (personnesInitiales.size() == 0 || personnesInitiales.get(idActuel) == null) {
Personne personne = personnesActuelles.get(idActuel);
PublicationAPersonne publicationAAuteur = new PublicationAPersonne();
if (mode.equals(Formulaire.MODE_MODIFIER)) {
publicationAAuteur.setIdPublication(publication.getId());
}
publicationAAuteur.setPersonne(personne);
publicationAAuteur.setIdRole(PublicationAPersonne.ROLE_AUTEUR);
auteursAjoutes.put(publicationAAuteur.getId(), publicationAAuteur);
attenteAjoutAuteursOk = true;
}
}
 
// Auteurs supprimés
if (mode.equals(Formulaire.MODE_MODIFIER)) {
Iterator<String> clesInitiales = personnesInitiales.keySet().iterator();
while (clesInitiales.hasNext()) {
String idInitial = clesInitiales.next();
if (personnesActuelles.size() == 0 || personnesActuelles.get(idInitial) == null) {
Personne personne = personnesInitiales.get(idInitial);
PublicationAPersonne publicationAAuteur = new PublicationAPersonne();
publicationAAuteur.setIdPublication(publication.getId());
publicationAAuteur.setPersonne(personne);
publicationAAuteur.setIdRole(PublicationAPersonne.ROLE_AUTEUR);
auteursSupprimes.put(publicationAAuteur.getId(), publicationAAuteur);
attenteSuppressionAuteursOk = true;
}
}
}
// Execution de les mise à jour pour le mode MODIFICATION
if (mode.equals(Formulaire.MODE_MODIFIER)) {
if (auteursAjoutes != null && auteursAjoutes.size() != 0) {
mediateur.ajouterPublicationAPersonne(this, publication.getId(), auteursAjoutes, PublicationAPersonne.ROLE_AUTEUR);
}
if (auteursSupprimes != null && auteursSupprimes.size() != 0) {
mediateur.supprimerPublicationAPersonne(this, auteursSupprimes);
}
}
Debug.log("personnesInitiales:"+personnesInitiales.size()+" - personnesActuelles :"+personnesActuelles.size()+" - auteursSupprimes :"+auteursSupprimes.size()+" - auteursAjoutes :"+auteursAjoutes.size());
}
public boolean verifierFormulaire() {
boolean valide = true;
ArrayList<String> messages = new ArrayList<String>();
boolean auteurErreur = true;
for (int i = 0; i < auteurComboboxListe.size(); i++) {
if (auteurComboboxListe.get(i).getValue() != null) {
auteurErreur = false;
break;
}
}
if (auteurErreur) {
messages.add("Veuillez saisir au moins un auteur !");
}
String titre = titreChp.getValue();
if (titre == null || titre.equals("")) {
messages.add("Veuillez saisir le titre de la publication !");
}
String uri = uriChp.getValue();
if (uri != null && ! uri.isEmpty() && ! uri.matches(Pattern.url)) {
messages.add("L'URL saisie n'est pas valide !");
}
String datePublication = datePublicationChp.getRawValue();
if (datePublication == null || datePublication.equals("")) {
messages.add("Veuillez saisir une année de parution !");
} else {
if (!etreDateValide(datePublication)) {
messages.add("Le format de l'année saisie est incorrect !");
}
}
String pages = pagesChp.getValue();
String valeurPage = "(?:[0-9]+|[IVXLCDM]+|\\?)";
if (pages != null && ! pages.matches("^(?:"+valeurPage+"|"+valeurPage+"-"+valeurPage+")$")) {
messages.add("Le format des pages est incorrect !");
}
if (messages.size() != 0) {
String[] tableauDeMessages = {};
tableauDeMessages = messages.toArray(tableauDeMessages);
MessageBox.alert("Erreurs de saisies", UtilArray.implode(tableauDeMessages, "<br />"), null);
valide = false;
}
return valide;
}
private void peuplerFormulaire() {
creerChampsAuteur();
setValeurComboProjets();
titreChp.setValue(publication.getTitre());
collectionChp.setValue(publication.getCollection());
uriChp.setValue(publication.getURI());
datePublicationChp.setValue(reduireDateParAnnee(publication.getDateParution()));
tomeChp.setValue(publication.getIndicationNvt());
fasciculeChp.setValue(publication.getFascicule());
pagesChp.setValue(publication.getPages());
if (publication.getEditeur().matches("^[0-9]+$")) {
editeurCombobox.setValue(editeurCombobox.getStore().findModel("id_structure", publication.getEditeur()));
idStructureEdition = publication.getEditeur();
} else {
editeurCombobox.setRawValue(publication.getEditeur());
}
}
private Publication collecterPublication() {
Publication publicationCollectee = (Publication) publication.cloner(new Publication());
publicationCollectee.setIdProjet(getValeurComboProjets());
publicationCollectee.setAuteur(construireIntituleAuteur());
String titre = titreChp.getValue();
publicationCollectee.setTitre(titre);
String collection = collectionChp.getValue();
publicationCollectee.setCollection(collection);
publicationCollectee.setNomComplet(construireNomComplet());
String uri = uriChp.getValue();
publicationCollectee.setUri(uri);
String editeur = "";
if (editeurCombobox.getValue() != null) {
editeur = editeurCombobox.getValue().getId();
publicationCollectee.setStructureEditeur(editeurCombobox.getValue());
} else if (editeurCombobox.getRawValue() != "") {
editeur = editeurCombobox.getRawValue();
}
publicationCollectee.setEditeur(editeur);
String anneePublication = datePublicationChp.getRawValue();
String datePublication = anneePublication+"-00-00";
publicationCollectee.setDateParution(datePublication);
String tome = tomeChp.getValue();
publicationCollectee.setIndicationNvt(tome);
String fascicule = fasciculeChp.getValue();
publicationCollectee.setFascicule(fascicule);
String pages = pagesChp.getValue();
publicationCollectee.setPages(pages);
Publication publicationARetourner = null;
if (!publicationCollectee.comparer(publication)) {
publicationARetourner = publication = publicationCollectee;
}
return publicationARetourner;
}
private String construireIntituleEditeur() {
String editeur = "";
if (editeurCombobox.getValue() != null) {
editeur = editeurCombobox.getValue().getNom();
} else if (editeurCombobox.getRawValue() != "") {
editeur = editeurCombobox.getRawValue();
}
return editeur;
}
private String construireIntituleAuteur() {
String inituleAuteur = "";
int auteursNombre = auteurComboboxListe.size();
for (int i = 0; i < auteursNombre; i++) {
if (auteurComboboxListe.get(i).getValue() != null) {
Personne auteur = auteurComboboxListe.get(i).getValue();
inituleAuteur += auteur.getNom().toUpperCase()+ " "+auteur.getPrenom();
if (i != (auteursNombre - 1)) {
inituleAuteur += ", ";
}
}
}
return inituleAuteur;
}
private String construireNomComplet() {
// Intitulé de la publication complet : fmt_auteur, date_parution(année). titre. Editeur (nom), collection, fascicule, indication_nvt. pages.
String nomComplet = "";
String auteurs = construireIntituleAuteur();
String annee = datePublicationChp.getRawValue();
String titre = titreChp.getValue();
String editeur = construireIntituleEditeur();
nomComplet += auteurs+", "+annee+". "+titre+".";
if (!UtilString.isEmpty(editeur)) {
nomComplet += " Éditeur "+editeur+".";
}
if (collectionChp.getValue() != null) {
String revue = collectionChp.getValue();
nomComplet += ", "+revue;
}
if (fasciculeChp.getValue() != null) {
String fascicule = fasciculeChp.getValue();
nomComplet += ", "+fascicule;
}
if (tomeChp.getValue() != null) {
String tomaison = tomeChp.getValue();
nomComplet += ", "+tomaison;
}
if (collectionChp.getValue() != null || fasciculeChp.getValue() != null || tomeChp.getValue() != null) {
nomComplet += ".";
}
if (pagesChp.getValue() != null) {
String pages = pagesChp.getValue();
nomComplet += pages+".";
}
return nomComplet;
}
public void reinitialiserFormulaire() {
if (mode.equals(Formulaire.MODE_MODIFIER)) {
mediateur.afficherFormPublication(publication.getId());
} else {
mediateur.afficherFormPublication(null);
}
}
private boolean etreDateValide(String anneePublication) {
boolean valide = true;
if (!anneePublication.matches("^[0-2][0-9]{3}$")) {
valide = false;
}
return valide;
}
private String reduireDateParAnnee(String datePar) {
if (datePar.matches("^[0-2][0-9]{3}(-[0-9]{2}){2}$")) {
return datePar.split("-")[0];
} else {
return "";
}
}
private String getValeurComboProjets() {
String valeur = "";
if (projetsCombo.getValue() != null) {
valeur = projetsCombo.getValue().getId();
}
return valeur;
}
private void setValeurComboProjets() {
if (projetsCombo.getStore() != null ) {
if (mode.equals(Formulaire.MODE_MODIFIER) && publication != null) {
projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", publication.getIdProjet()));
} else if (mode.equals(Formulaire.MODE_AJOUTER)) {
projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", mediateur.getProjetId()));
}
}
}
}
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/ContenuVue.java
New file
0,0 → 1,73
package org.tela_botanica.client.vues;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.collection.CollectionListe;
import org.tela_botanica.client.modeles.commentaire.CommentaireListe;
import org.tela_botanica.client.modeles.personne.PersonneListe;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.modeles.publication.PublicationListe;
import org.tela_botanica.client.modeles.structure.StructureListe;
 
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
 
public class ContenuVue extends LayoutContainer implements Rafraichissable {
private Mediateur mediateur = null;
public ContenuVue(Mediateur mediateurCourant) {
mediateur = mediateurCourant;
setLayout(new FitLayout());
setBorders(true);
}
public Rafraichissable getContenu() {
Rafraichissable contenuPanneauCentre = null;
if (getItems() != null && getItems().size() == 1) {
contenuPanneauCentre = (Rafraichissable) getItem(0);
}
return contenuPanneauCentre;
}
 
//+----------------------------------------------------------------------------------------------------------------+
// RAFRAICHISSEMENT
//+----------------------------------------------------------------------------------------------------------------+
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ProjetListe) {
mediateur.afficherListeProjets((ProjetListe) nouvellesDonnees);
} else if (nouvellesDonnees instanceof StructureListe) {
mediateur.afficherListeStructures((StructureListe) nouvellesDonnees);
} else if (nouvellesDonnees instanceof CollectionListe) {
mediateur.afficherListeCollections((CollectionListe) nouvellesDonnees);
} else if (nouvellesDonnees instanceof PersonneListe) {
mediateur.afficherListePersonnes((PersonneListe) nouvellesDonnees);
} else if (nouvellesDonnees instanceof PublicationListe) {
mediateur.afficherListePublication((PublicationListe) nouvellesDonnees);
} else if (nouvellesDonnees instanceof CommentaireListe) {
mediateur.afficherListeCommentaire((CommentaireListe) nouvellesDonnees);
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("maj_utilisateur")) {
if (getContenu() != null) {
getContenu().rafraichir(info);
}
} else {
// Affichage des éventuels messages de déboguage ou d'alerte
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log(info.getMessages().toString(), null);
}
// Traitement en fonction des types d'information
if (info.getType().equals("liste_personne")) {
mediateur.afficherListePersonnes((PersonneListe) info.getDonnee(0));
Info.display("Chargement d'une liste de personnes", "");
}
}
}
mediateur.desactiverChargement();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/vues/FormulaireBarreValidation.java
New file
0,0 → 1,75
package org.tela_botanica.client.vues;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.images.Images;
 
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem;
import com.google.gwt.user.client.ui.AbstractImagePrototype;
 
public class FormulaireBarreValidation extends ButtonBar {
private SelectionListener<ButtonEvent> ecouteur = null;
public static final String CODE_BOUTON_VALIDER = "VA";
public static final String CODE_BOUTON_APPLIQUER = "AP";
public static final String CODE_BOUTON_ANNULER = "AN";
public static final String CODE_BOUTON_REINITIALISER = "RE";
public FormulaireBarreValidation(SelectionListener<ButtonEvent> ecouteurCourrant) {
ecouteur = ecouteurCourrant;
creerBarreOutilsValidation();
}
private void creerBarreOutilsValidation() {
this.setAlignment(HorizontalAlignment.LEFT);
this.add(creerBouton(CODE_BOUTON_REINITIALISER));
this.add(new FillToolItem());
this.add(creerBouton(CODE_BOUTON_APPLIQUER));
this.add(creerBouton(CODE_BOUTON_ANNULER));
this.add(creerBouton(CODE_BOUTON_VALIDER));
}
private Button creerBouton(final String code) {
String nom = getNom(code);
Button bouton = new Button(nom);
bouton.setData("code", code);
bouton.setIcon(getIcone(code));
bouton.addSelectionListener(ecouteur);
return bouton;
}
private AbstractImagePrototype getIcone(final String code) {
AbstractImagePrototype icone = null;
if (code.equals(CODE_BOUTON_VALIDER)) {
icone = Images.ICONES.valider();
} else if (code.equals(CODE_BOUTON_APPLIQUER)) {
icone = Images.ICONES.appliquer();
} else if (code.equals(CODE_BOUTON_ANNULER)) {
icone = Images.ICONES.annuler();
} else if (code.equals(CODE_BOUTON_REINITIALISER)) {
icone = Images.ICONES.reinitialiser();
}
return icone;
}
private String getNom(final String code) {
String nom = null;
if (code.equals(CODE_BOUTON_VALIDER)) {
nom = Mediateur.i18nC.valider();
} else if (code.equals(CODE_BOUTON_APPLIQUER)) {
nom = Mediateur.i18nC.appliquer();
} else if (code.equals(CODE_BOUTON_ANNULER)) {
nom = Mediateur.i18nC.annuler();
} else if (code.equals(CODE_BOUTON_REINITIALISER)) {
nom = Mediateur.i18nC.reinitialiser();
}
return nom;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/interfaces/Rafraichissable.java
New file
0,0 → 1,25
package org.tela_botanica.client.interfaces;
 
/**
* Toutes les classes qui reçoivent des données de manières asynchrones ou
* imprévisible implémentent cette interface. Elle permet de faire transiter le
* rafraichissable jusqu'au DAO et d'appeler sa méthode rafraîchir un fois les
* données reçues, tout cela en préservant bien la séparation des rôles car les
* classes qui font transiter le rafraichissable ne connaissent que cette
* interface et pas le reste de l'objet
*
* @author aurelien
*
*/
public interface Rafraichissable {
 
/**
* Méthode de mise à jour d'un objet
*
* @param nouvelleDonnees
* Un objet de n'importe quel type (programmation générique) qui
* contient les données de mise à jour
*/
public void rafraichir(Object nouvellesDonnees);
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/interfaces/ListePaginable.java
New file
0,0 → 1,16
package org.tela_botanica.client.interfaces;
 
/**
* Toutes les classes qui affichent des listes paginables
* implémentent cette interface.
* @author david delon
*
*/
public interface ListePaginable {
public void changerTaillePage(int nouvelleTaillePage);
public void changerNumeroPage(int pageCourante);
public void recharger();
public void filtrerParNom(String nom);
}
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/Modele.java
New file
0,0 → 1,397
package org.tela_botanica.client;
 
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Utilisateur;
import org.tela_botanica.client.modeles.UtilisateurAsyncDao;
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionACommentaire;
import org.tela_botanica.client.modeles.collection.CollectionACommentaireAsyncDao;
import org.tela_botanica.client.modeles.collection.CollectionAPersonne;
import org.tela_botanica.client.modeles.collection.CollectionAPersonneAsyncDao;
import org.tela_botanica.client.modeles.collection.CollectionAPublication;
import org.tela_botanica.client.modeles.collection.CollectionAPublicationAsyncDao;
import org.tela_botanica.client.modeles.collection.CollectionAsyncDao;
import org.tela_botanica.client.modeles.commentaire.Commentaire;
import org.tela_botanica.client.modeles.commentaire.CommentaireAsyncDao;
import org.tela_botanica.client.modeles.personne.Personne;
import org.tela_botanica.client.modeles.personne.PersonneAsyncDao;
import org.tela_botanica.client.modeles.projet.Projet;
import org.tela_botanica.client.modeles.projet.ProjetAsyncDao;
import org.tela_botanica.client.modeles.publication.Publication;
import org.tela_botanica.client.modeles.publication.PublicationAPersonne;
import org.tela_botanica.client.modeles.publication.PublicationAPersonneAsyncDao;
import org.tela_botanica.client.modeles.publication.PublicationAsyncDao;
import org.tela_botanica.client.modeles.structure.Structure;
import org.tela_botanica.client.modeles.structure.StructureAPersonne;
import org.tela_botanica.client.modeles.structure.StructureAPersonneAsyncDao;
import org.tela_botanica.client.modeles.structure.StructureAsyncDao;
import org.tela_botanica.client.modeles.structure.StructureConservation;
import org.tela_botanica.client.modeles.structure.StructureValorisation;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
 
// TODO : le transformer en SINGLETON
public class Modele {
 
public Modele() {
Registry.register(RegistreId.MODELE, this);
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES VALEURS ET LISTES
//+----------------------------------------------------------------------------------------------------------------+
public void obtenirListeValeurs(Rafraichissable vue, Integer id) {
ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
lsDao.obtenirListe(id);
}
public void obtenirListeRegion(Rafraichissable vue, Integer id, String region) {
ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
lsDao.selectionner("abv", id, region, null);
}
public void obtenirValeur(Rafraichissable vue, String type, Integer id, String identifiant) {
ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
lsDao.selectionner(type, id, null, identifiant);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES UTILISATEURS
//+----------------------------------------------------------------------------------------------------------------+
public void connecterUtilisateur(Rafraichissable vue, String login, String mdp) {
Utilisateur utilisateur = (Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT);
utilisateur.setLogin(login);
utilisateur.setMotDePasse(mdp);
UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
uDao.connecterUtilisateur();
}
public void deconnecterUtilisateur(Rafraichissable vue) {
UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
uDao.deconnecterUtilisateur();
}
public void accepterLicence(Rafraichissable vue) {
UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
uDao.accepterLicence();
}
public void modifierUtilisateur(Rafraichissable vueARafraichir, Utilisateur utilisateur) {
PersonneAsyncDao pAdao = new PersonneAsyncDao(vueARafraichir);
Personne personne = new Personne();
personne.setId(utilisateur.getId());
personne.setPrenom(utilisateur.getPrenom());
personne.setNom(utilisateur.getNom());
personne.setNomComplet(utilisateur.getNomComplet());
personne.setParametre(utilisateur.getParametre());
pAdao.modifier(personne);
}
public void mettreAJourPersonneAnnuaire(Rafraichissable vueARafraichir, Utilisateur utilisateur) {
PersonneAsyncDao pAdao = new PersonneAsyncDao(vueARafraichir);
HashMap<String, String> infosAnnuaire = utilisateur.getInfosAnnuaire();
Personne personne = new Personne();
personne.setId(utilisateur.getId());
personne.setNom(infosAnnuaire.get("nom"));
personne.setPrenom(infosAnnuaire.get("prenom"));
personne.setFmtNomComplet("", "");
personne.setCourriel(infosAnnuaire.get("courriel"));
personne.set("ce_annuaire_tela", infosAnnuaire.get("id"));
personne.set("mot_de_passe", infosAnnuaire.get("mot_de_passe"));
personne.set("code_postal", infosAnnuaire.get("code_postal"));
personne.set("ville", infosAnnuaire.get("ville"));
pAdao.modifier(personne);
/*
* "id":"11623","nom":"DUCHE","prenom":"Gr\u00e9goire","mot_de_passe":"9d146bd95317a64b83b5e06cf752da2d",
* "courriel":"gregoire@tela-botanica.org","code_postal":"34000","ville":"MONTPELLIER","departement":"34",
* "pays":"FR","date_inscription":"2009-05-11 00:00:00"
*
*/
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES PROJETS
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerProjet(Rafraichissable vueARafraichir, String projetId, String nom, int start, int nbElements) {
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
pADAO.selectionner(projetId, nom, start, nbElements);
}
 
public void ajouterProjet(Rafraichissable vueARafraichir, Projet projetCollecte) {
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
pADAO.ajouter(projetCollecte);
}
 
public void modifierProjet(Rafraichissable vueARafraichir, Projet projetCollecte) {
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
pADAO.modifier(projetCollecte);
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES STRUCTURES
//+----------------------------------------------------------------------------------------------------------------+
 
public void selectionnerStructure(Rafraichissable vueARafraichir, String projetId, String structureId, String nomStructure, int start, int nbElements) {
// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation
StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
sDao.selectionner(projetId, structureId, nomStructure, start, nbElements);
}
/** Lance la creation d'une Structure
* @param vueARafraichir la vue demandant a être rafraichie
* @param structure les données de la structure
*/
public void ajouterStructure(Rafraichissable vueARafraichir, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
structureDao.ajouter(structure, conservation, valorisation);
}
 
public void supprimerStructure(Rafraichissable vueARafraichir, String idStr) {
StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
structureDao.supprimer(idStr);
}
public void modifierStructure(Rafraichissable vueARafraichir, String structureId, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
structureDao.modifier(structureId, structure, conservation, valorisation);
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation STRUCTURE A PERSONNE
public void selectionnerStructureAPersonne(Rafraichissable vueARafraichir, String structureId, String roleId) {
// Gestion des données de la table coel_structure_a_personne
if (structureId != null && roleId != null) {
StructureAPersonneAsyncDao sapDao = new StructureAPersonneAsyncDao(vueARafraichir);
sapDao.selectionner(structureId, roleId);
}
}
public void modifierStructureAPersonne(Rafraichissable vueARafraichir, StructureAPersonne personnel) {
StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
structureAPersonneDao.modifier(personnel);
}
public void ajouterStructureAPersonne(Rafraichissable vueARafraichir, String structureId, StructureAPersonne personnel) {
StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
structureAPersonneDao.ajouter(structureId, personnel);
}
public void supprimerStructureAPersonne(Rafraichissable vueARafraichir, String personnelId) {
StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
structureAPersonneDao.supprimer(personnelId);
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES COLLECTIONS
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerCollection(Rafraichissable vueARafraichir, String projetId, String collectionId, String nom, int start, int nbElements) {
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
cDao.selectionner(projetId, collectionId, nom, start, nbElements);
}
public void ajouterCollection(Rafraichissable vueARafraichir, Collection collection) {
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
cDao.ajouter(collection);
}
 
public void modifierCollection(Rafraichissable vueARafraichir, Collection collection) {
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
cDao.modifier(collection);
}
 
public void supprimerCollection(Rafraichissable vueARafraichir, String identifiantsCollectionSepareParVirgule) {
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
cDao.supprimer(identifiantsCollectionSepareParVirgule);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation COLLECTION A PERSONNE
public void selectionnerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, String roleId) {
CollectionAPersonneAsyncDao sapDao = new CollectionAPersonneAsyncDao(vueARafraichir);
sapDao.selectionner(collectionId, roleId);
}
public void modifierCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPersonne collectionAPersonne) {
CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
collectionAPersonneDao.modifier(collectionAPersonne);
}
public void ajouterCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, CollectionAPersonne collectionAPersonne) {
CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
collectionAPersonneDao.ajouter(collectionId, collectionAPersonne);
}
public void supprimerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionAPersonneId) {
CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
collectionAPersonneDao.supprimer(collectionAPersonneId);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation COLLECTION A PUBLICATION
public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId) {
CollectionAPublicationAsyncDao capDao = new CollectionAPublicationAsyncDao(vueARafraichir);
capDao.selectionner(collectionId);
}
public void modifierCollectionAPublication(Rafraichissable vueARafraichir, CollectionAPublication collectionAPublication) {
CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
collectionAPublicationDao.modifier(collectionAPublication);
}
public void ajouterCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, CollectionAPublication collectionAPublication) {
CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
collectionAPublicationDao.ajouter(collectionId, collectionAPublication);
}
public void supprimerCollectionAPublication(Rafraichissable vueARafraichir, String collectionAPublicationId) {
CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
collectionAPublicationDao.supprimer(collectionAPublicationId);
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation COLLECTION A COMMENTAIRE
public void selectionnerCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId) {
CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
cacDao.selectionner(collectionId);
}
public void modifierCollectionACommentaire(Rafraichissable vueARafraichir, CollectionACommentaire collectionACommentaire) {
CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
cacDao.modifier(collectionACommentaire);
}
public void ajouterCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId, CollectionACommentaire collectionACommentaire) {
CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
cacDao.ajouter(collectionId, collectionACommentaire);
}
public void supprimerCollectionACommentaire(Rafraichissable vueARafraichir, String collectionACommentaireId, String mode) {
CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
cacDao.supprimer(collectionACommentaireId, mode);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES PERSONNES
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String projetId, String nomComplet, int start, int nbElements) {
PersonneAsyncDao pDao = new PersonneAsyncDao(vueARafraichir);
pDao.selectionner(personneId, projetId, nomComplet, start, nbElements);
}
 
public void supprimerPersonne(Rafraichissable vueARafraichir, String idPersonneSepareParVirgule) {
PersonneAsyncDao personneDao = new PersonneAsyncDao(vueARafraichir);
personneDao.supprimer(idPersonneSepareParVirgule);
}
public void ajouterPersonne(Rafraichissable vue, Personne personne) {
PersonneAsyncDao personneDao = new PersonneAsyncDao(vue);
personneDao.ajouter(personne);
}
public void modifierPersonne(Rafraichissable vueARafraichir, Personne personne) {
PersonneAsyncDao personneDao = new PersonneAsyncDao(vueARafraichir);
personneDao.modifier(personne);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES PUBLICATIONS
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerPublication(Rafraichissable vueARafraichir, String publicationId, String projetId, String nomComplet, int nbElements, int pageCourante) {
PublicationAsyncDao lsDao = new PublicationAsyncDao(vueARafraichir);
lsDao.selectionner(publicationId, projetId, nomComplet, nbElements, pageCourante);
}
public void modifierPublication(Rafraichissable vueRafraichir, Publication publication) {
PublicationAsyncDao pDao = new PublicationAsyncDao(vueRafraichir);
pDao.modifier(publication);
}
 
public void ajouterPublication(Rafraichissable vueARafraichir, Publication publication) {
PublicationAsyncDao pDao = new PublicationAsyncDao(vueARafraichir);
pDao.ajouter(publication);
}
 
public void supprimerPublication(Rafraichissable vueARafraichir, String idPublicationSeparesParVirgule) {
PublicationAsyncDao pDao = new PublicationAsyncDao(vueARafraichir);
pDao.supprimer(idPublicationSeparesParVirgule);
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION de la relation PUBLICATION A PERSONNE
 
public void selectionPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
paDao.selectionner(publicationId, personnesId, roleId);
}
public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
paDao.ajouter(publicationId, personnesId, roleId);
}
 
public void supprimerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationsAPersonneId) {
PublicationAPersonneAsyncDao publicationAPersonneDao = new PublicationAPersonneAsyncDao(vueARafraichir);
publicationAPersonneDao.supprimer(publicationsAPersonneId);
}
 
public void supprimerProjet(Rafraichissable vueARafraichir,
List<Projet> projetListe) {
String projetsId = "";
for(Iterator<Projet> it = projetListe.iterator(); it.hasNext();) {
Projet proj = it.next();
projetsId += proj.getId();
if(it.hasNext()) {
projetsId += ",";
}
}
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
pADAO.supprimer(projetsId);
}
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES COMMENTAIRES
//+----------------------------------------------------------------------------------------------------------------+
public void selectionnerCommentaire(Rafraichissable vueARafraichir, String commentaireId, String projetId, String titre, int pageCourante, int nbElements) {
CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
cDao.selectionner(commentaireId, projetId, titre, pageCourante, nbElements);
}
public void modifierCommentaire(Rafraichissable vueRafraichir, Commentaire commentaire) {
CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueRafraichir);
cDao.modifier(commentaire);
}
 
public void ajouterCommentaire(Rafraichissable vueARafraichir, Commentaire commentaire) {
CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
cDao.ajouter(commentaire);
}
 
public void supprimerCommentaire(Rafraichissable vueARafraichir, String idCommentaireSeparesParVirgule) {
CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
cDao.supprimer(idCommentaireSeparesParVirgule);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/deplier_tout.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/deplier_tout.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/connexion.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/connexion.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/bogue.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/bogue.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/appliquer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/appliquer.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/application.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/application.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/erreur.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/erreur.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/images.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/images.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/trouver.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/trouver.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/ajax-loader.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/ajax-loader.gif
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/groupe_engrenage.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/groupe_engrenage.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/replier_tout.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/replier_tout.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/resultset_last.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/resultset_last.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/vcard_modifier.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/vcard_modifier.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/flux.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/flux.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/lien_externe.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/lien_externe.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/photo_ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/photo_ajouter.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/formulaire_modifier.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/formulaire_modifier.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/fleche_bascule.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/fleche_bascule.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/livre_ouvert.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/livre_ouvert.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/resultset_previous.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/resultset_previous.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/table.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/table.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/vcard_ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/vcard_ajouter.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/avertissement.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/avertissement.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/photo.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/photo.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/script_go.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/script_go.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/commentaire_ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/commentaire_ajouter.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/LICENCE.txt
New file
0,0 → 1,16
Licence : Creative Commons Attribution 2.5 License < http://creativecommons.org/licenses/by/2.5/ >
Source : http://www.famfamfam.com/lab/icons/silk/
Voir tous les icônes : http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png
Fichier utilisés : ajouter.png, supprimer.png, application_formulaire_modifier.png, printer.png
------------------------------------------------------------------------------------------------------------------------
Licence: www.fsf.org/licenses/lgpl.html
Nom : engrenages.png (originale : gear.png) / Page web : www.everaldo.com
Nom : groupe_engrenage.png
------------------------------------------------------------------------------------------------------------------------
Licence: http://www.eclipse.org/org/documents/epl-v10.html
Nom : deplier_tout.png (originale : expandall_16x16.gif) / Auteur : Eclipse Project (www.eclipse.org) / Source : www.iconlet.com/info/19295_expandall_16x16
Nom : replier_tout.png(originale : collapseall_16x16.gif) / Auteur : Eclipse Project (www.eclipse.org) / Source : www.iconlet.com/info/20364_collapseall_16x16
------------------------------------------------------------------------------------------------------------------------
Licence : http://www.gnu.org/licenses/lgpl.html
Nom : lien_externe.png (original :) / Auteur : Everaldo Coelho / Source : http://www.iconfinder.net/icondetails/4261/48/
------------------------------------------------------------------------------------------------------------------------
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/formulaire_ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/formulaire_ajouter.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/commentaire_editer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/commentaire_editer.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/photo_supprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/photo_supprimer.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/vcard.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/vcard.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/resultset_first.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/resultset_first.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/aide.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/aide.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/commentaire.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/commentaire.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/reinitialiser.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/reinitialiser.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/annuler.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/annuler.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/accueil.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/accueil.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/vcard_supprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/vcard_supprimer.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/application_formulaire_modifier.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/application_formulaire_modifier.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/fleche_dedans_dehors.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/fleche_dedans_dehors.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/deconnexion.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/deconnexion.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/commentaire_supprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/commentaire_supprimer.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/ajouter.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/application_panneau_liste.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/application_panneau_liste.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/rafraichir.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/rafraichir.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/utilisateur.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/utilisateur.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/Icones.java
New file
0,0 → 1,133
package org.tela_botanica.client.images.icones;
 
import com.google.gwt.user.client.ui.AbstractImagePrototype;
import com.google.gwt.user.client.ui.ImageBundle;
 
public interface Icones extends ImageBundle {
@Resource("aide.png")
AbstractImagePrototype aide();
@Resource("ajax-loader.gif")
AbstractImagePrototype ajaxLoader();
@Resource("ajouter.png")
AbstractImagePrototype ajouter();
@Resource("annuler.png")
AbstractImagePrototype annuler();
@Resource("application_formulaire_modifier.png")
AbstractImagePrototype appFormModifier();
@Resource("application_panneau_liste.png")
AbstractImagePrototype appPanneauListe();
@Resource("application.png")
AbstractImagePrototype application();
@Resource("appliquer.png")
AbstractImagePrototype appliquer();
@Resource("bogue.png")
AbstractImagePrototype bogue();
@Resource("commentaire.png")
AbstractImagePrototype commentaire();
@Resource("connexion.png")
AbstractImagePrototype connexion();
@Resource("deconnexion.png")
AbstractImagePrototype deconnexion();
@Resource("deplier_tout.png")
AbstractImagePrototype deplierTout();
 
@Resource("engrenages.png")
AbstractImagePrototype engrenages();
@Resource("enregistrer.png")
AbstractImagePrototype enregistrer();
@Resource("fleche_bascule.png")
AbstractImagePrototype flecheBascule();
@Resource("fleche_dedans_dehors.png")
AbstractImagePrototype flecheDedansDehors();
@Resource("formulaire_ajouter.png")
AbstractImagePrototype formAjouter();
@Resource("formulaire_modifier.png")
AbstractImagePrototype formModifier();
@Resource("groupe_engrenage.png")
AbstractImagePrototype groupeEngrenage();
@Resource("images.png")
AbstractImagePrototype images();
@Resource("imprimer.png")
AbstractImagePrototype imprimer();
@Resource("information.png")
AbstractImagePrototype information();
@Resource("lien_externe.png")
AbstractImagePrototype lienExterne();
@Resource("livre_ouvert.png")
AbstractImagePrototype livreOuvert();
@Resource("rafraichir.png")
AbstractImagePrototype rafraichir();
@Resource("reinitialiser.png")
AbstractImagePrototype reinitialiser();
@Resource("replier_tout.png")
AbstractImagePrototype replierTout();
@Resource("resultset_first.png")
AbstractImagePrototype resultsetFirst();
@Resource("resultset_last.png")
AbstractImagePrototype resultsetLast();
@Resource("resultset_next.png")
AbstractImagePrototype resultsetNext();
@Resource("resultset_previous.png")
AbstractImagePrototype resultsetPrevious();
@Resource("script_go.png")
AbstractImagePrototype scriptGo();
@Resource("script_save.png")
AbstractImagePrototype scriptSave();
@Resource("supprimer.png")
AbstractImagePrototype supprimer();
@Resource("table.png")
AbstractImagePrototype table();
@Resource("utilisateur.png")
AbstractImagePrototype utilisateur();
@Resource("valider.png")
AbstractImagePrototype valider();
 
@Resource("vcard_ajouter.png")
AbstractImagePrototype vcardAjouter();
 
@Resource("vcard_modifier.png")
AbstractImagePrototype vcardModifier();
@Resource("vcard_supprimer.png")
AbstractImagePrototype vcardSupprimer();
@Resource("vcard.png")
AbstractImagePrototype vcard();
}
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/engrenages.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/engrenages.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/nouveau.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/nouveau.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/script_save.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/script_save.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/imprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/imprimer.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/information.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/information.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/supprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/supprimer.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/valider.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/valider.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/resultset_next.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/resultset_next.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/enregistrer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/src/org/tela_botanica/client/images/icones/enregistrer.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/src/org/tela_botanica/client/images/Images.java
New file
0,0 → 1,11
package org.tela_botanica.client.images;
 
import org.tela_botanica.client.images.icones.Icones;
 
import com.google.gwt.core.client.GWT;
 
public class Images {
 
public static final Icones ICONES = GWT.create(Icones.class);
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/IdentificationFenetre.java
New file
0,0 → 1,204
package org.tela_botanica.client.composants;
 
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Utilisateur;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.KeyListener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.Dialog;
import com.extjs.gxt.ui.client.widget.HtmlContainer;
import com.extjs.gxt.ui.client.widget.Status;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.KeyCodes;
 
public class IdentificationFenetre extends Dialog implements Rafraichissable {
private Mediateur mediateur = null;
private Constantes i18nC = null;
protected TextField<String> login = null;
protected TextField<String> motDePasse = null;
protected Button reinitialiserBouton = null;
protected Button validerBouton = null;
private Button annulerBouton = null;
protected Status status = null;
private String zoneInfoTpl = null;
private HtmlContainer zoneInfoHtml = null;
 
public IdentificationFenetre(Mediateur mediateurCourrant) {
mediateur = mediateurCourrant;
i18nC = Mediateur.i18nC;
initialiserSquelettes();
FormLayout layout = new FormLayout();
layout.setLabelWidth(110);
layout.setDefaultWidth(220);
setLayout(layout);
 
setButtonAlign(HorizontalAlignment.RIGHT);
setButtons("");
setIcon(Images.ICONES.utilisateur());
setHeading(Registry.get(RegistreId.APPLI_NOM)+" - "+i18nC.identificationTitre());
setModal(true);
setBodyBorder(true);
setBodyStyle("padding: 10px;background: none");
setWidth(450);
setResizable(false);
setAutoWidth(false);
KeyListener keyListener = new KeyListener() {
public void componentKeyUp(ComponentEvent event) {
valider();
}
@SuppressWarnings("unchecked")
public void componentKeyPress(ComponentEvent evenement) {
if (evenement.getKeyCode() == KeyCodes.KEY_ENTER) {
TextField<String> champ = (TextField<String>) evenement.getSource();
if (champ.getFieldLabel().equals(i18nC.motDePasse())) {
validerBouton.fireEvent(Events.Select);
}
}
}
};
 
zoneInfoHtml = new HtmlContainer();
zoneInfoHtml.hide();
add(zoneInfoHtml);
login = new TextField<String>();
login.setMinLength(4);
login.setFieldLabel(i18nC.login());
login.addKeyListener(keyListener);
add(login);
 
motDePasse = new TextField<String>();
motDePasse.setMinLength(4);
motDePasse.setPassword(true);
motDePasse.setFieldLabel(i18nC.motDePasse());
motDePasse.addKeyListener(keyListener);
add(motDePasse);
 
setFocusWidget(login);
}
private void initialiserSquelettes() {
zoneInfoTpl = "<div id='"+ComposantId.DIV_IDENTIFICATION_MSG+"'>{0}</div>";
}
@Override
protected void createButtons() {
super.createButtons();
// FIXME : l'instanciation dans le constructeur ne marche pas pour cette méthode...
i18nC = Mediateur.i18nC;
status = new Status();
status.setBusy(i18nC.identificationVerification());
status.hide();
status.setAutoWidth(true);
getButtonBar().add(status);
getButtonBar().add(new FillToolItem());
reinitialiserBouton = new Button(i18nC.reinitialiser());
reinitialiserBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
zoneInfoHtml.hide();
login.reset();
motDePasse.reset();
status.clearStatus("");
valider();
login.focus();
layout();
}
 
});
 
validerBouton = new Button(i18nC.valider());
validerBouton.disable(); // Par défaut : dois être en mode disable
validerBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
onSubmit();
}
});
annulerBouton = new Button(i18nC.annuler());
annulerBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
hide();
}
});
addButton(reinitialiserBouton);
addButton(annulerBouton);
addButton(validerBouton);
}
 
protected void onSubmit() {
status.show();
getButtonBar().disable();
mediateur.connecterUtilisateur(login.getValue(), motDePasse.getValue());
}
 
protected boolean avoirValeur(TextField<String> field) {
return field.getValue() != null && field.getValue().length() > 0;
}
 
protected void valider() {
validerBouton.setEnabled(avoirValeur(login) && avoirValeur(motDePasse) && motDePasse.getValue().length() > 3);
}
 
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("maj_utilisateur")) {
Utilisateur utilisateurCourant = mediateur.getUtilisateur();
if (utilisateurCourant.isIdentifie() == false) {
if (utilisateurCourant.getLicence().equals("")) {
afficherErreur(i18nC.identificationMauvaise());
} else if (utilisateurCourant.getLicence().equals("0")){
afficherErreur(i18nC.licenceAccepter());
mediateur.afficherFenetreLicence(this);
} else {
hide();
}
} else {
if (utilisateurCourant.existeDansAnnuaire()) {
mediateur.mettreAJourPersonneAnnuaire(utilisateurCourant);
}
hide();
}
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
public void afficherErreur(String erreur) {
status.hide();
getButtonBar().enable();
valider();
zoneInfoHtml.setHtml(Format.substitute(zoneInfoTpl, (new Params()).add(erreur)));
zoneInfoHtml.show();
layout();
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/ChampComboBoxListeValeurs.java
New file
0,0 → 1,134
package org.tela_botanica.client.composants;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.vues.Formulaire;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.Field;
import com.extjs.gxt.ui.client.widget.form.Validator;
import com.google.gwt.core.client.GWT;
 
public class ChampComboBoxListeValeurs extends ComboBox<Valeur> implements Rafraichissable {
private Configuration config = null;
private Mediateur mediateur = null;
 
private String listeValeursCode = null;
private String nomChampATrier = null;
private String valeurDefautId = null;
public ChampComboBoxListeValeurs(String labelDuChamp, String codeDeLaliste) {
initialiserChampComboBox(labelDuChamp, codeDeLaliste, 0);
}
public ChampComboBoxListeValeurs(String labelDuChamp, String codeDeLaliste, int tabIndex) {
initialiserChampComboBox(labelDuChamp, codeDeLaliste, tabIndex);
}
public ChampComboBoxListeValeurs(String labelDuChamp, ValeurListe listeDeValeurs, int tabIndex) {
initialiserChampComboBox(labelDuChamp, null, tabIndex);
rafraichir(listeDeValeurs);
}
private void initialiserChampComboBox(String labelDuChamp, String codeDeLaliste, int tabIndex) {
config = (Configuration) Registry.get(RegistreId.CONFIG);
mediateur = (Mediateur) Registry.get(RegistreId.MEDIATEUR);
setForceSelection(true);
setTriggerAction(TriggerAction.ALL);
setDisplayField("nom");
setStore(new ListStore<Valeur>());
setEditable(false);
 
setTabIndex(tabIndex);
if (labelDuChamp == null) {
setLabelSeparator("");
} else {
setFieldLabel(labelDuChamp);
}
setValidator(new Validator() {
@Override
public String validate(Field<?> field, String value) {
String retour = null;
if (field.getRawValue().equals("")) {
field.setValue(null);
} else if (getStore().findModel("nom", field.getRawValue()) == null) {
String contenuBrut = field.getRawValue();
field.setValue(null);
field.setRawValue(contenuBrut);
retour = Mediateur.i18nC.selectionnerValeurOuNull();
}
return retour;
}
});
if (codeDeLaliste != null) {
setListeCode(codeDeLaliste);
mediateur.obtenirListeValeurEtRafraichir(this, getListeCode());
}
}
public String getListeCode() {
return listeValeursCode;
}
public void setListeCode(String code) {
listeValeursCode = code;
}
public String getValeur() {
String valeur = "";
if (getValue() != null) {
valeur = getValue().getId();
}
return valeur;
}
public void peupler(String valeur) {
if (valeur.matches("[0-9]+")) {
valeurDefautId = valeur;
actualiserValeurParDefaut();
} else {
setRawValue(valeur);
}
}
public String getTrie() {
String champATrier = "nom";
if (nomChampATrier != null) {
champATrier = nomChampATrier;
}
return champATrier;
}
public void setTrie(String champATrier) {
nomChampATrier = champATrier;
}
public void actualiserValeurParDefaut() {
if (valeurDefautId != null && getStore() != null) {
setValue(getStore().findModel("id_valeur", valeurDefautId));
}
}
@Override
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
if (listeValeurs.getId().equals(config.getListeId(getListeCode()))) {
Formulaire.rafraichirComboBox(listeValeurs, this, getTrie());
actualiserValeurParDefaut();
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/ChampMultiValeurs.java
New file
0,0 → 1,321
package org.tela_botanica.client.composants;
 
import java.util.HashMap;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.aDonnee;
 
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.Field;
import com.extjs.gxt.ui.client.widget.form.HiddenField;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
 
public class ChampMultiValeurs extends LayoutContainer {
//TODO : changer le champRecapitulatif par une hashMap
//TODO : autoriser la modification des champs saisis
 
String idChampCache = null;
String nomLabelChampTxt = "";
String titreErreur = null;
String valeurVideMsg = null;
String valeurIdentiqueMsg = null;
String valeurNonValideMsg = null;
String valeurParDefaut = "";
String validationMasque = null;
String exempleValidation = null;
String boutonSupprimerLabel = "";
LayoutContainer principalLayout = null;
Field<String> champValeurTxt = null;
ComboBox<Valeur> champValeurCombo = null;
HiddenField<String> champRecapitulatif = null;
HashMap<String, LayoutContainer> valeurs = null;
ComboBox<Valeur> types = null;
int largeurTotale = 420;
int largeurBouton = 20;
int largeurChamp = 0;
int largeurType = 0;
boolean estMultiType = false;
boolean estComboBox = false;
public ChampMultiValeurs() {
initialiserChampMultiValeur(null, 0);
}
public ChampMultiValeurs(String label) {
initialiserChampMultiValeur(label, 0);
}
public ChampMultiValeurs(String label, int largeurTotale) {
initialiserChampMultiValeur(label, largeurTotale);
}
public ChampMultiValeurs(boolean estMultiType, String label, int largeurTotale, int largeurType) {
this.estMultiType = estMultiType;
initialiserChampMultiValeur(label, largeurTotale);
}
public ChampMultiValeurs(boolean estCombobox, boolean estMultiType, String label, int largeurTotale, int largeurType) {
this.estMultiType = estMultiType;
this.estComboBox = estCombobox;
setLargeurType(largeurType);
initialiserChampMultiValeur(label, largeurTotale);
}
public void setLabel(String label) {
if (label == null) {
label = "";
}
nomLabelChampTxt = label;
}
public void setLargeurChamp(int largeurMax) {
if (largeurMax != 0 && largeurMax > 20) {
largeurTotale = largeurMax;
}
largeurChamp = largeurTotale - largeurBouton;
}
public void setLargeurType(int largeur) {
largeurType = largeur;
}
public void setValidation (String validation, String exempleValidation) {
this.validationMasque = validation;
this.exempleValidation = exempleValidation;
this.valeurNonValideMsg = Mediateur.i18nM.valeurNonValideMsg(exempleValidation);
}
public void setValeurParDefaut(String valeur) {
this.valeurParDefaut = valeur;
champValeurTxt.setValue(valeur);
}
public void setValeurBoutonSupprimer(String valeur) {
this.boutonSupprimerLabel = valeur;
}
private void initialiserChampMultiValeur(String label, int largeur) {
setLabel(label);
setLargeurChamp(largeur);
titreErreur = Mediateur.i18nC.erreurSaisieTitre();
valeurVideMsg = Mediateur.i18nC.demanderValeur();
valeurIdentiqueMsg = Mediateur.i18nC.valeurDejaPresente();
valeurs = new HashMap<String, LayoutContainer>();
champRecapitulatif = new HiddenField<String>();
champRecapitulatif.setValue("");
setLayout(new FormLayout());
creerChampMultiValeurs();
}
private void creerChampMultiValeurs() {
principalLayout = new LayoutContainer();
principalLayout.setLayout(new RowLayout());
LabelField label = new LabelField(nomLabelChampTxt + ":");
label.setWidth("95%");
principalLayout.add(label);
LayoutContainer colonneConteneur = new LayoutContainer();
colonneConteneur.setLayout(new ColumnLayout());
if (estMultiType == true) {
types = new ComboBox<Valeur>();
types.setDisplayField("nom");
types.setEmptyText("Choisissez:");
types.setStore(new ListStore<Valeur>());
types.setTypeAhead(true);
types.setTriggerAction(TriggerAction.ALL);
colonneConteneur.add(types, new ColumnData(largeurType));
}
if (estComboBox) {
champValeurCombo = new ComboBox<Valeur>();
champValeurCombo.setDisplayField("nom");
champValeurCombo.setStore(new ListStore<Valeur>());
colonneConteneur.add(champValeurCombo, new ColumnData(largeurChamp));
} else {
champValeurTxt = new TextField<String>();
colonneConteneur.add(champValeurTxt, new ColumnData(largeurChamp));
}
Button ajouterBouton = new Button();
ajouterBouton.setIcon(Images.ICONES.ajouter());
ajouterBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
String valeurChamp = "";
if (estComboBox) {
if (champValeurCombo.getValue() != null) {
valeurChamp = champValeurCombo.getValue().getNom();
}
} else {
valeurChamp = champValeurTxt.getValue();
}
if ((valeurChamp == null) || valeurChamp.trim().equals("") || valeurChamp.trim().equals(valeurParDefaut)) {
MessageBox.alert(titreErreur, valeurVideMsg, null);
} else if (valeurs.get(valeurChamp) != null){
MessageBox.alert(titreErreur, valeurIdentiqueMsg, null);
} else {
if (validationMasque != null && !valeurChamp.matches(validationMasque)) {
MessageBox.alert(titreErreur, valeurNonValideMsg, null);
} else {
if (estMultiType) {
String type = "";
String id = "";
Valeur valeur = types.getValue();
if (valeur != null) {
type = valeur.getNom();
id = valeur.getId();
} else {
type = types.getRawValue();
id = type;
}
if (type.trim().equals("")) {
MessageBox.alert(Mediateur.i18nM.titreErreurSaisie(), Mediateur.i18nM.typeChampMulti(), null);
} else {
ajouterValeur(valeurChamp, type, id);
}
} else {
ajouterValeur(valeurChamp);
}
}
}
}
});
colonneConteneur.add(ajouterBouton, new ColumnData(largeurBouton));
principalLayout.add(champRecapitulatif);
principalLayout.add(colonneConteneur);
add(principalLayout);
}
public void ajouterValeur(final String texte, final String strValeur, final String id) {
//Implémenté dans classe inférieure
}
public void ajouterValeur(final String texte) {
LayoutContainer colonneLayout = new LayoutContainer();
colonneLayout.setLayout(new ColumnLayout());
valeurs.put(texte, colonneLayout);
Text champTxt = new Text();
champTxt.setText(texte);
colonneLayout.add(champTxt, new ColumnData(largeurChamp));
Button supprimerBouton = new Button();
supprimerBouton.setIcon(Images.ICONES.supprimer());
supprimerBouton.setText(boutonSupprimerLabel);
supprimerBouton.setData("valeur", texte);
supprimerBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
String valeur = ce.getComponent().getData("valeur");
LayoutContainer valeurLayout = valeurs.get(valeur);
principalLayout.remove(valeurLayout);
valeurs.remove(valeur);
supprimerValeurDuRecapitulatif(valeur);
actualiserLayoutGlobal();
}
});
colonneLayout.add(supprimerBouton, new ColumnData(largeurBouton));
// Ajout du layout de la valeur au layout principal
principalLayout.add(colonneLayout);
// Ajout de la valeur au champ récapitulatif des valeurs ajoutées
ajouterValeurAuRecapitulatif(texte);
reinitialiserChamp();
actualiserLayoutGlobal();
}
public void reinitialiserChamp() {
if (estComboBox) {
champValeurCombo.setValue(champValeurCombo.getStore().findModel("id_valeur", valeurParDefaut));
} else {
champValeurTxt.setValue(valeurParDefaut);
}
if (estMultiType) {
types.reset();
}
}
public void actualiserLayoutGlobal() {
layout();
}
public void ajouterValeurAuRecapitulatif(String texte) {
String texteRecapitulatif = "";
if (champRecapitulatif.getValue() != null) {
texteRecapitulatif = champRecapitulatif.getValue();
}
texteRecapitulatif += texte + aDonnee.SEPARATEUR_VALEURS;
champRecapitulatif.setValue(texteRecapitulatif);
}
public void supprimerValeurDuRecapitulatif(String texte) {
if (champRecapitulatif.getValue() != null) {
String texteRecapitulatif = champRecapitulatif.getValue();
texteRecapitulatif = texteRecapitulatif.replace(texte + aDonnee.SEPARATEUR_VALEURS, "");
champRecapitulatif.setValue(texteRecapitulatif);
}
}
public String getValeurs() {
String texteRecapitulatif = "";
if (champRecapitulatif.getValue() != null) {
texteRecapitulatif = champRecapitulatif.getValue();
texteRecapitulatif = texteRecapitulatif.replaceAll("(.*)"+aDonnee.SEPARATEUR_VALEURS+"$", "$1");
}
return texteRecapitulatif;
}
public void peupler(String chaineExistante) {
if (valeurs.size()>0) {
reinitialiser();
}
if (chaineExistante != null && !chaineExistante.trim().equals("")) {
String[] valeurs = chaineExistante.split(aDonnee.SEPARATEUR_VALEURS);
for (int i = 0; i < valeurs.length; i++) {
ajouterValeur(valeurs[i]);
}
}
}
public void reinitialiser() {
//TODO : pourrait etre mieux fait si les valeurs étaient enregistrées dans un
// layout particulier. Il suffirait alors d'enlever les valeurs de ce layout.
principalLayout.removeAll();
initialiserChampMultiValeur(nomLabelChampTxt, largeurTotale);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/ChampMultiValeursMultiTypes.java
New file
0,0 → 1,162
package org.tela_botanica.client.composants;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.vues.Formulaire;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
 
public class ChampMultiValeursMultiTypes extends ChampMultiValeurs implements Rafraichissable {
 
private Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
private String idListeType = null;
private String idListeCombo = null;
public ChampMultiValeursMultiTypes() {
super(false, true, null, 0, 0);
}
public ChampMultiValeursMultiTypes(String label) {
super(false, true, label, 0, 0);
}
public ChampMultiValeursMultiTypes(String label, int largeurTotale, int largeurType) {
super(false, true, label, largeurTotale, largeurType);
}
public ChampMultiValeursMultiTypes(String label, int largeurTotale, boolean combobox) {
super(true, true, label, largeurTotale, largeurTotale);
}
public ChampMultiValeursMultiTypes(String label, int largeurTotale, int largeurType, boolean combobox) {
super(true, true, label, largeurTotale, largeurType);
}
public void initialiserType(String idListe) {
Mediateur mediateur = (Mediateur) Registry.get(RegistreId.MEDIATEUR);
idListeType = idListe;
mediateur.obtenirListeValeurEtRafraichir(this, idListeType);
}
public void initialiserCombobox(String idListe) {
Mediateur mediateur = (Mediateur) Registry.get(RegistreId.MEDIATEUR);
this.idListeCombo = idListe;
mediateur.obtenirListeValeurEtRafraichir(this, idListeCombo);
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
if (listeValeurs.getId().equals(config.getListeId(idListeType))) {
Formulaire.rafraichirComboBox(listeValeurs, types);
} else if (listeValeurs.getId().equals(config.getListeId(idListeCombo))) {
Formulaire.rafraichirComboBox(listeValeurs, champValeurCombo, "id_valeur");
}
}
}
public void ajouterValeur(final String texte, final String type, final String id) {
LayoutContainer colonneConteneur = new LayoutContainer();
colonneConteneur.setLayout(new ColumnLayout());
valeurs.put(id + aDonnee.SEPARATEUR_TYPE_VALEUR + texte, colonneConteneur);
Text champType = new Text();
champType.setText(type + " : ");
champType.setWidth(largeurType);
colonneConteneur.add(champType, new ColumnData(largeurType));
Text champValeur = new Text();
champValeur.setText(texte);
champValeur.setWidth(largeurChamp);
colonneConteneur.add(champValeur, new ColumnData(largeurChamp));
Button supprimerBouton = new Button();
supprimerBouton.setIcon(Images.ICONES.supprimer());
supprimerBouton.setText(boutonSupprimerLabel);
supprimerBouton.setData("valeur", id + aDonnee.SEPARATEUR_TYPE_VALEUR + texte);
supprimerBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
String valeur = ce.getComponent().getData("valeur");
LayoutContainer valeurLayout = valeurs.get(valeur);
principalLayout.remove(valeurLayout);
valeurs.remove(valeur);
supprimerValeurDuRecapitulatif(valeur);
actualiserLayoutGlobal();
}
});
colonneConteneur.add(supprimerBouton, new ColumnData(largeurBouton));
// Ajout du layout de la valeur au layout principal
principalLayout.add(colonneConteneur);
// Ajout de la valeur au champ récapitulatif des valeurs ajoutées
if (estComboBox && champValeurCombo.getValue() != null) {
ajouterValeurAuRecapitulatif(champValeurCombo.getValue().getId(), id);
} else {
ajouterValeurAuRecapitulatif(texte, id);
}
reinitialiserChamp();
actualiserLayoutGlobal();
}
public void ajouterValeurAuRecapitulatif(String texte, String id) {
String texteRecapitulatif = "";
if (champRecapitulatif.getValue() != null) {
texteRecapitulatif = champRecapitulatif.getValue();
}
texteRecapitulatif += id + aDonnee.SEPARATEUR_TYPE_VALEUR + texte + aDonnee.SEPARATEUR_VALEURS;
champRecapitulatif.setValue(texteRecapitulatif);
}
public void peupler(String chaineExistante) {
if (valeurs.size() > 0) {
reinitialiser();
}
if (chaineExistante != null && !chaineExistante.trim().equals("")) {
String[] valeurs = chaineExistante.split(aDonnee.SEPARATEUR_VALEURS);
for (int i = 0; i < valeurs.length; i++) {
String[] idEtValeur = valeurs[i].split(aDonnee.SEPARATEUR_TYPE_VALEUR);
String idType = idEtValeur[0];
String idValeur = idEtValeur[1];
ListStore<Valeur> typeStore = types.getStore();
Valeur objetType = typeStore.findModel("id_valeur", idType);
String texteType = "";
if (objetType != null) {
texteType = objetType.getNom();
} else {
texteType = idType;
}
String texteValeur = "";
if (champValeurCombo!=null) {
ListStore<Valeur> valeurStore = champValeurCombo.getStore();
Valeur objetValeur = valeurStore.findModel("id_valeur", idValeur);
if (objetValeur != null) {
texteValeur = objetValeur.getNom();
}
} else {
texteValeur = idValeur;
}
ajouterValeur(texteValeur, texteType, idType);
}
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/ChampMultiValeursImage.java
New file
0,0 → 1,90
package org.tela_botanica.client.composants;
 
import org.tela_botanica.client.images.Images;
 
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
import com.google.gwt.user.client.ui.Image;
 
public class ChampMultiValeursImage extends ChampMultiValeurs {
private String height, width;
private LayoutContainer sousContenu = null;
public ChampMultiValeursImage() {
super(null, 0);
initialiserSousContenu();
}
public ChampMultiValeursImage(String label) {
super(label, 0);
initialiserSousContenu();
}
public ChampMultiValeursImage(String label, int largeurTotale) {
super(label, largeurTotale);
initialiserSousContenu();
}
public void initialiserSousContenu() {
sousContenu = new LayoutContainer(new ColumnLayout());
principalLayout.add(sousContenu);
}
public void setImageHeight(String height) {
this.height = height;
}
public void setImageWidth(String width) {
this.width = width;
}
public void ajouterValeur(final String strUrl) {
LayoutContainer lcUrl = new LayoutContainer();
lcUrl.setLayout(new RowLayout());
valeurs.put(strUrl, lcUrl);
Image logo = new Image(strUrl);
logo.setTitle(strUrl);
if (height != null) {
logo.setHeight(height);
}
if (width != null) {
logo.setWidth(width);
}
lcUrl.add(logo);
Button supprimerBouton = new Button();
supprimerBouton.setIcon(Images.ICONES.supprimer());
supprimerBouton.setData("valeur", strUrl);
supprimerBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
String valeur = ce.getComponent().getData("valeur");
LayoutContainer valeurLayout = valeurs.get(valeur);
principalLayout.remove(valeurLayout);
valeurs.remove(valeur);
supprimerValeurDuRecapitulatif(valeur);
actualiserLayoutGlobal();
}
});
lcUrl.add(supprimerBouton);
// Ajout du layout de la valeur au layout principal
sousContenu.add(lcUrl);
// Ajout de la valeur au champ récapitulatif des valeurs ajoutées
ajouterValeurAuRecapitulatif(strUrl);
reinitialiserChamp();
actualiserLayoutGlobal();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/ChampSliderPourcentage.java
New file
0,0 → 1,52
package org.tela_botanica.client.composants;
 
import org.tela_botanica.client.util.UtilNombre;
import org.tela_botanica.client.util.UtilString;
 
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SliderEvent;
import com.extjs.gxt.ui.client.widget.Slider;
import com.extjs.gxt.ui.client.widget.form.SliderField;
 
public class ChampSliderPourcentage extends SliderField {
private String message = null;
public ChampSliderPourcentage(String label) {
super(creerSliderPoucentage(label));
message = label;
this.getSlider().addListener(Events.Change, new Listener<SliderEvent>() {
public void handleEvent(SliderEvent be) {
int pourcent = ((Slider) be.getComponent()).getValue();
setFieldLabel(message+" ("+pourcent+"%) ");
}
});
this.setFieldLabel(message);
}
private static Slider creerSliderPoucentage(String message) {
Slider slider = new Slider();
slider.setMinValue(0);
slider.setMaxValue(100);
slider.setValue(0);
slider.setIncrement(1);
slider.setMessage("{0} "+message);
return slider;
}
public String getValeur() {
String valeur = "";
int pourcentage = getSlider().getValue();
if (pourcentage != 0) {
valeur = UtilNombre.formaterEnEntier(pourcentage);
}
return valeur;
}
public void peupler(String valeur) {
if (!UtilString.isEmpty(valeur)) {
setValue(UtilString.formaterEnEntier(valeur));
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/HashMapComposants.java
New file
0,0 → 1,60
package org.tela_botanica.client.composants;
 
import java.util.HashMap;
 
import org.tela_botanica.client.modeles.Valeur;
 
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.DateField;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.form.Radio;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.TextField;
 
public class HashMapComposants extends HashMap<Object, Object> {
 
private static final long serialVersionUID = -3087869118215860287L;
 
@SuppressWarnings("unchecked")
public TextField getTextField(String name) {
return (TextField) get(name);
}
public DateField getDateField(String name) {
return (DateField) get(name);
}
public LabelField getLabelField(String name) {
return (LabelField) get(name);
}
public ChampMultiValeurs getChampMultiValeurs(String name) {
return (ChampMultiValeurs) get(name);
}
public ChampMultiValeursMultiTypes getChampMultiValeursMultiTypes(String name) {
return (ChampMultiValeursMultiTypes) get(name);
}
public ChampMultiValeursImage getChampMultiValeursImage(String name) {
return (ChampMultiValeursImage) get(name);
}
public Radio getRadio(String name) {
return (Radio) get(name);
}
public TextArea getTextArea(String name) {
return (TextArea) get(name);
}
@SuppressWarnings("unchecked")
public ComboBox<Valeur> getComboBoxValeur(String nom) {
return (ComboBox<Valeur>) get(nom);
}
@SuppressWarnings("unchecked")
public ComboBox getComboBox(String nom) {
return (ComboBox) get(nom);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/ChampCaseACocher.java
New file
0,0 → 1,182
package org.tela_botanica.client.composants;
 
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.ValeurListe;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.util.UtilString;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.form.CheckBox;
import com.extjs.gxt.ui.client.widget.form.CheckBoxGroup;
import com.extjs.gxt.ui.client.widget.form.Field;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.extjs.gxt.ui.client.widget.tips.ToolTipConfig;
import com.google.gwt.core.client.GWT;
 
public class ChampCaseACocher extends LayoutContainer implements Rafraichissable {
private Configuration config = null;
private Mediateur mediateur = null;
private CheckBoxGroup groupeCaseACocher = null;
private boolean avoirChampAutre = false;
private Field<String> champAutre = null;
 
private String listeValeursCode = null;
public ChampCaseACocher(String label, String listeCode, boolean avoirChampAutre) {
config = (Configuration) Registry.get(RegistreId.CONFIG);
mediateur = (Mediateur) Registry.get(RegistreId.MEDIATEUR);
 
setLayout(creerFormLayout(650, LabelAlign.TOP));
groupeCaseACocher = new CheckBoxGroup();
setLabel(label);
setChampAutre(avoirChampAutre);
setListeCode(listeCode);
mediateur.obtenirListeValeurEtRafraichir(this, getListeCode());
}
public String getListeCode() {
return listeValeursCode;
}
public void setListeCode(String code) {
listeValeursCode = code;
}
public void setLabel(String label) {
groupeCaseACocher.setFieldLabel(label);
}
public boolean avoirChampAutre() {
return avoirChampAutre;
}
public void setChampAutre(boolean avoirChamp) {
avoirChampAutre = avoirChamp;
if (avoirChampAutre) {
champAutre = new TextField<String>();
}
}
public String getValeur() {
String valeur = "";
List<CheckBox> liste = groupeCaseACocher.getValues();
if (liste != null) {
int taille = liste.size();
for (int i = 0; i < taille; i++) {
CheckBox cac = liste.get(i);
if (cac.isEnabled()) {
valeur += aDonnee.SEPARATEUR_VALEURS+cac.getData("id");
}
}
}
if (avoirChampAutre() && !UtilString.isEmpty(champAutre.getValue())) {
valeur += aDonnee.SEPARATEUR_VALEURS+"AUTRE"+aDonnee.SEPARATEUR_TYPE_VALEUR+champAutre.getValue();
}
if (!valeur.equals("")) {
valeur.replaceFirst("^"+aDonnee.SEPARATEUR_VALEURS, "");
}
return valeur;
}
public void peupler(String donnees) {
String[] valeurs = donnees.split(aDonnee.SEPARATEUR_VALEURS);
for (int i = 0; i < valeurs.length; i++) {
if (valeurs[i].startsWith("AUTRE"+aDonnee.SEPARATEUR_TYPE_VALEUR)) {
champAutre.setValue(valeurs[i].replaceFirst("^AUTRE"+aDonnee.SEPARATEUR_TYPE_VALEUR, ""));
} else {
//TODO : check : List<CheckBox> cases = groupeCac.getAll();
List<Field<?>> cases = groupeCaseACocher.getAll();
for (int j = 0; j < cases.size(); j++) {
if (cases.get(j).getId().equals("val-"+valeurs[i])) {
((CheckBox) cases.get(j)).setValue(true);
}
}
}
}
}
private FormLayout creerFormLayout(Integer labelWidth, LabelAlign labelAlign) {
FormLayout formLayout = new FormLayout();
if (labelWidth != null) {
formLayout.setLabelWidth(labelWidth);
}
if (labelAlign != null) {
formLayout.setLabelAlign(labelAlign);
}
return formLayout;
}
private void creerChoixMultipleCac(ValeurListe listeValeurs) {
addListener(Events.Hide, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
groupeCaseACocher.reset();
if (avoirChampAutre()) {
champAutre.setValue("");
}
}
});
groupeCaseACocher.setAutoWidth(true);
groupeCaseACocher.setStyleAttribute("padding", "3px");
groupeCaseACocher.setData("liste_id", listeValeurs.getId());
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
Valeur val = listeValeurs.get(it.next());
String nom = val.get("nom");
CheckBox cac = new CheckBox();
cac.setId("val-"+val.getId());
cac.setData("id", val.getId());
cac.setBoxLabel(nom);
if (! val.getDescription().equals("NULL")) {
cac.setToolTip(new ToolTipConfig(val.getNom(), val.getDescription()));
}
groupeCaseACocher.add(cac);
}
add(groupeCaseACocher);
if (avoirChampAutre()) {
// FIXME : éviter le chevauchement du texte des cases à cocher avec le label "Autre" sur les petits écrans
LayoutContainer conteneur = new LayoutContainer();
conteneur.setLayout(creerFormLayout(50, LabelAlign.TOP));
champAutre.setId("autre-"+listeValeurs.getId());
champAutre.setFieldLabel("Autre");
champAutre.setLabelStyle("font-weight:normal;");
conteneur.add(champAutre, new FormData(500, 0));
add(conteneur);
}
layout();
}
 
@Override
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ValeurListe) {
ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
if (listeValeurs.getId().equals(config.getListeId(getListeCode()))) {
creerChoixMultipleCac(listeValeurs);
}
} else {
GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/ConteneurMultiChamps.java
New file
0,0 → 1,49
package org.tela_botanica.client.composants;
 
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.HBoxLayout;
import com.extjs.gxt.ui.client.widget.layout.LayoutData;
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
import com.extjs.gxt.ui.client.widget.layout.HBoxLayout.HBoxLayoutAlign;
import com.google.gwt.user.client.ui.Widget;
 
public class ConteneurMultiChamps extends LayoutContainer {
 
private LayoutContainer conteneurDesChamps = null;
 
public ConteneurMultiChamps(String label) {
setLayout(new RowLayout());
LabelField etiquette = new LabelField(label+":");
add(etiquette);
 
ContentPanel panneauGeneral = new ContentPanel(new FitLayout());
panneauGeneral.setHeaderVisible(false);
panneauGeneral.setHeight(25);
HBoxLayout dispositionDesChamps = new HBoxLayout();
dispositionDesChamps.setHBoxLayoutAlign(HBoxLayoutAlign.MIDDLE);
conteneurDesChamps = new LayoutContainer();
conteneurDesChamps.setLayout(dispositionDesChamps);
panneauGeneral.add(conteneurDesChamps);
add(panneauGeneral);
}
public void ajouterChamp(Widget widget) {
ajouterChamp(widget, null);
}
public void ajouterChamp(Widget widget, LayoutData dispositionDesDonnees) {
if (dispositionDesDonnees != null) {
conteneurDesChamps.add(widget, dispositionDesDonnees);
} else {
conteneurDesChamps.add(widget);
}
layout();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/AideFenetre.java
New file
0,0 → 1,345
package org.tela_botanica.client.composants;
 
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.Menu;
import org.tela_botanica.client.util.Pattern;
import org.tela_botanica.client.util.Print;
 
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.ButtonScale;
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.event.TreePanelEvent;
import com.extjs.gxt.ui.client.store.Store;
import com.extjs.gxt.ui.client.store.TreeStore;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Dialog;
import com.extjs.gxt.ui.client.widget.HtmlContainer;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.form.StoreFilterField;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.extjs.gxt.ui.client.widget.treepanel.TreePanel;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.Response;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONValue;
import com.google.gwt.user.client.Event;
 
public class AideFenetre extends Dialog {
 
private static final String SERVICE_NOM = "CoelAide";
private static final String PAGE_SOMMAIRE_CODE = "AideCOELSommaire";
private static final String PAGE_A_OUVRIR_CODE = "AideCOELPresentationGenerale";
private static Menu pagePrincipale = null;
private static Menu menuAOuvrirParDefaut = null;
private TreePanel<Menu> arbre = null;
private TreeStore<Menu> magazin = null;
private StoreFilterField<Menu> filtre = null;
private Menu sommaire = null;
private ContentPanel sommairePanneau = null;
private ContentPanel contenuPanneau = null;
private HtmlContainer conteneurDuHtml;
private LayoutContainer entetePanneau;
private ToolBar sommaireBarreOutils;
public AideFenetre() {
setBodyBorder(false);
setButtons(Dialog.OK);
setIcon(Images.ICONES.appPanneauListe());
setHeading("COEL - Aide");
setWidth(675);
setHeight(400);
setHideOnButtonClick(true);
setLayout(new BorderLayout());
creerPanneauEntete();
creerPanneauSommaire();
getSommaireArbreModele();
creerPanneauContenu();
}
 
private void creerPanneauEntete() {
entetePanneau = new LayoutContainer();
entetePanneau.setLayout(new FlowLayout());
BorderLayoutData enteteDisposition = new BorderLayoutData(LayoutRegion.NORTH, 30);
add(entetePanneau, enteteDisposition);
}
 
private void creerPanneauSommaire() {
inititialiserSommaireArbreFiltre();
creerSommaire();
sommairePanneau = new ContentPanel();
sommairePanneau.setScrollMode(Scroll.AUTO);
sommairePanneau.setHeight("100%");
sommairePanneau.setHeaderVisible(false);
creerBarreOutilSommaire();
BorderLayoutData sommaireDisposition = new BorderLayoutData(LayoutRegion.WEST, 230, 175, 350);
sommaireDisposition.setMargins(new Margins(0, 5, 0, 0));
sommaireDisposition.setSplit(true);
sommaireDisposition.setFloatable(true);
add(sommairePanneau, sommaireDisposition);
}
 
private void creerBarreOutilSommaire() {
sommaireBarreOutils = new ToolBar();
// FIXME : on peut utiliser l'alignement à droite car cela pose un problème de rendu dans le Hosted Mode
//sommaireBarreOutils.setAlignment(HorizontalAlignment.RIGHT);
creerBoutonPlierDeplier();
sommairePanneau.setTopComponent(sommaireBarreOutils);
}
 
private void creerBoutonPlierDeplier() {
Button plierDeplierToutBtn = new Button();
plierDeplierToutBtn.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
Button boutonPlierDeplierTout = (Button) be.getSource();
if (boutonPlierDeplierTout.getIcon().equals(Images.ICONES.deplierTout())) {
boutonPlierDeplierTout.setIcon(Images.ICONES.replierTout());
arbre.expandAll();
} else if (boutonPlierDeplierTout.getIcon().equals(Images.ICONES.replierTout())) {
boutonPlierDeplierTout.setIcon(Images.ICONES.deplierTout());
arbre.collapseAll();
}
boutonPlierDeplierTout.repaint();
}
});
plierDeplierToutBtn.setIcon(Images.ICONES.deplierTout());
plierDeplierToutBtn.setScale(ButtonScale.SMALL);
plierDeplierToutBtn.setToolTip(Mediateur.i18nC.plierDeplierToutBtn());
sommaireBarreOutils.add(plierDeplierToutBtn);
}
 
private void creerPanneauContenu() {
contenuPanneau = new ContentPanel();
contenuPanneau.setScrollMode(Scroll.AUTO);
creerBarreOutilContenu();
BorderLayoutData contenuDisposition = new BorderLayoutData(LayoutRegion.CENTER);
add(contenuPanneau, contenuDisposition);
}
private void creerBarreOutilContenu() {
Button imprimerBtn = new Button(null, new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent be) {
Print.it(conteneurDuHtml.el().getInnerHtml());
}
});
imprimerBtn.setIcon(Images.ICONES.imprimer());
contenuPanneau.getHeader().insertTool(imprimerBtn, 0);
}
 
private void etendreArbre(Menu menuAOuvrir) {
if (menuAOuvrir != null) {
arbre.setExpanded(menuAOuvrir, true);
arbre.getSelectionModel().select(menuAOuvrir, false);
}
}
private void etendreArbre(String menuCode) {
Menu menuAOuvrir = magazin.findModel("code", menuCode);
etendreArbre(menuAOuvrir);
}
 
private void creerSommaire() {
magazin = new TreeStore<Menu>();
filtre.bind(magazin);
arbre = new TreePanel<Menu>(magazin);
arbre.setAutoLoad(true);
arbre.setHeight("100%");
arbre.setDisplayProperty("nom");
arbre.getStyle().setLeafIcon(Images.ICONES.aide());
arbre.addListener(Events.OnClick, new Listener<TreePanelEvent<Menu>>(){
public void handleEvent(TreePanelEvent<Menu> tpe) {
Menu menuSelectionne = arbre.getSelectionModel().getSelectedItem();
if (menuSelectionne.get("code") != null) {
selectionSommaire((String) menuSelectionne.get("code"));
}
}
});
}
private void definirMenuAOuvrirParDefaut() {
menuAOuvrirParDefaut = magazin.findModel("code", PAGE_A_OUVRIR_CODE);
}
 
private void selectionSommaire(String page) {
String serviceUrl = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
String aidePageUrl = serviceUrl+SERVICE_NOM+"/"+page;
chargerPageAide(aidePageUrl);
}
private void chargerPageAide(String url) {
conteneurDuHtml = new HtmlContainer() {
public void onBrowserEvent(Event e) {
// Nous vérifions que l'évenement est un clic et qu'il a lieu sur un lien
if (e.getTypeInt() == Event.ONCLICK && e.getEventTarget().toString().startsWith("http://")) {
e.preventDefault();
String urlPageAideCible = e.getEventTarget().toString();
chargerPageAide(urlPageAideCible);
String codePageAideCible = urlPageAideCible.substring(urlPageAideCible.lastIndexOf("/")+1);
etendreArbre(codePageAideCible);
} else {
GWT.log("Event target:"+e.getEventTarget().toString()+" - type :"+e.getTypeInt()+"="+Event.ONCLICK, null);
}
}
};
conteneurDuHtml.setId(ComposantId.PANNEAU_AIDE);
conteneurDuHtml.setWidth(400);
conteneurDuHtml.sinkEvents(Event.ONCLICK);
conteneurDuHtml.setUrl(url);
conteneurDuHtml.recalculate();
contenuPanneau.removeAll();
contenuPanneau.add(conteneurDuHtml);
contenuPanneau.layout();
}
private void inititialiserSommaireArbreFiltre() {
filtre = new StoreFilterField<Menu>() {
@Override
protected boolean doSelect(Store<Menu> magazin, Menu parent, Menu enregistrement, String propriete, String filtre) {
Boolean retour = false;
// Seul les feuilles sont traitées par le filtre
String nomMenu = enregistrement.getNom();
String nomMenuMinuscule = nomMenu.toLowerCase();
String nomFiltreMinuscule = filtre.toLowerCase();
String nomFiltreMinusculeProtege = Pattern.quote(nomFiltreMinuscule);
if (nomMenuMinuscule.matches(".*"+nomFiltreMinusculeProtege+".*")) {
retour = true;
}
return retour;
}
};
filtre.setFieldLabel(Mediateur.i18nC.chercher());
filtre.setLabelStyle("font-weight:normal;");
filtre.setToolTip("Filtrer le sommaire");
filtre.setWidth(200);
FormLayout fl = new FormLayout();
fl.setLabelWidth(55);
ContentPanel fp = new ContentPanel();
fp.setHeaderVisible(false);
fp.setLayout(fl);
fp.add(filtre);
entetePanneau.add(fp);
}
public void getSommaireArbreModele() {
String serviceUrl = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
String sommairePageUrl = serviceUrl+SERVICE_NOM+"/"+PAGE_SOMMAIRE_CODE+"/sommaire";
RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, sommairePageUrl);
try {
rb.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable exception) {
// Gestion des exceptions déclenchées par l'exécution de la requête
GWT.log(Mediateur.i18nM.erreurServiceJrest(SERVICE_NOM), exception);
Info.display(Mediateur.i18nM.erreurRequeteTitre(), Mediateur.i18nM.erreurRequete());
}
public void onErrorHTTP(Request request, Response reponse) {
// Gestion des erreurs HTTP renvoyé par Apache ou JRest
Information info = new Information("erreur_jrest", JSONParser.parse(reponse.getText()).isArray());
GWT.log("Erreur JREST - Code "+reponse.getStatusCode()+"\n"+info.getMessages().toString(), null);
Info.display("Erreur JREST - Code "+reponse.getStatusCode(), info.toString());
}
public void onResponseReceived(Request request, Response response) {
// Si le code de réponse HTTP ne vaut pas 200 OK, on lance le mécanise d'erreur HTTP
if (response.getStatusCode() != 200) {
onErrorHTTP(request, response);
} else {
if (response.getText().length() != 0 && response.getText() != null) {
final JSONValue responseValue = JSONParser.parse(response.getText());
JSONArray jsonArray = responseValue.isArray();
if (jsonArray != null) {
sommaire = new Menu(Mediateur.i18nC.sommaire());
ajouterMenuRecursivement(sommaire, jsonArray);
 
magazin.removeAll();
magazin.add(sommaire, true);
definirMenuAOuvrirParDefaut();
sommairePanneau.add(arbre);
sommairePanneau.layout();
// Chargement de la page racine
selectionSommaire(pagePrincipale.getCode());
etendreArbre(menuAOuvrirParDefaut);
} else {
GWT.log(Mediateur.i18nM.erreurJson(responseValue.toString()), null);
}
}
}
}
});
} catch (RequestException e) {
e.printStackTrace();
}
}
private void ajouterMenuRecursivement(Menu brancheSommaire, JSONArray tableau) {
final int tailleMax = tableau.size();
 
for (int i = 0; i < tailleMax; i++) {
JSONObject pageCourante = tableau.get(i).isObject() ;
if (pageCourante != null) {
Menu menuCourrant = new Menu();
if (pageCourante.get("code") != null) {
String codeCourant = pageCourante.get("code").isString().stringValue();
menuCourrant.setCode(codeCourant);
}
if (pageCourante.get("txt") != null) {
menuCourrant.setNom(pageCourante.get("txt").isString().stringValue());
}
if (menuCourrant.getNom() == null && menuCourrant.getCode() == null) {
menuCourrant = (Menu) brancheSommaire.getChild((brancheSommaire.getChildCount() - 1));
} else {
if (brancheSommaire != null) {
brancheSommaire.add(menuCourrant);
if (pagePrincipale == null) {
pagePrincipale = menuCourrant;
}
}
}
if (pageCourante.get("liste") != null) {
ajouterMenuRecursivement(menuCourrant, pageCourante.get("liste").isArray());
}
}
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/LicenceFenetre.java
New file
0,0 → 1,157
package org.tela_botanica.client.composants;
 
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.ComposantId;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.Dialog;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.CheckBox;
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
import com.google.gwt.user.client.ui.HTML;
 
public class LicenceFenetre extends Dialog implements Rafraichissable{
private Constantes i18nC = null;
protected Button validerBouton = null;
private Button annulerBouton = null;
private String messageErreurTpl = "<div id='" + ComposantId.DIV_IDENTIFICATION_MSG + "'>{message}</div>";
private LayoutContainer messageErreur;
private HTML texteLicence;
private String licenceTpl = "<div class='{css_corps}'>{licence}</div>";
private IdentificationFenetre fenetreIdentification;
private CheckBox accepter;
public LicenceFenetre(IdentificationFenetre vueARafraichir) {
fenetreIdentification = vueARafraichir;
setSize(500, 300);
setPlain(true);
setHeading("Licence d'utilisation");
setIcon(Images.ICONES.application());
setLayout(new RowLayout());
setButtons(Dialog.OKCANCEL);
messageErreur = new LayoutContainer();
messageErreur.setLayout(new FitLayout());
add(messageErreur);
LayoutContainer licence = new LayoutContainer();
licence.setSize("98%", "75%");
licence.setStyleAttribute("padding", "5px");
licence.setLayout(new FlowLayout());
licence.setScrollMode(Scroll.AUTO);
texteLicence = new HTML();
licence.add(texteLicence);
add(licence);
LayoutContainer cbContainer = new LayoutContainer(new ColumnLayout());
accepter = new CheckBox();
cbContainer.add(accepter);
add(cbContainer);
Text txtAccepter = new Text(Mediateur.i18nC.licenceJaccepte());
txtAccepter.setStyleAttribute("padding", "3px");
cbContainer.add(txtAccepter);
setClosable(false);
show();
initialiserComposants();
}
public void initialiserComposants() {
Params licenceParam = new Params();
licenceParam.set("message", Mediateur.i18nC.licenceAccepter());
messageErreur.el().setInnerHtml(Format.substitute(messageErreurTpl, licenceParam));
Params parametres = new Params();
String licence = Mediateur.i18nC.licence();
parametres.set("licence", licence);
parametres.set("css_corps", ComposantClass.DETAIL_CORPS_CONTENU);
texteLicence.setHTML(Format.substitute(licenceTpl, parametres));
}
 
@Override
protected void createButtons() {
// FIXME : l'instanciation dans le constructeur ne marche pas pour cette méthode...
i18nC = Mediateur.i18nC;
getButtonBar().removeAll();
validerBouton = new Button(i18nC.valider());
validerBouton.setItemId(OK);
validerBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
onButtonPressed(ce.getButton());
}
});
annulerBouton = new Button(i18nC.annuler());
annulerBouton.setItemId(CANCEL);
annulerBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
onButtonPressed(ce.getButton());
}
});
addButton(annulerBouton);
addButton(validerBouton);
}
@Override
protected void onButtonPressed(Button button) {
if (Dialog.OK.equals(button.getItemId())) {
button.setEnabled(false);
boolean licenceAcceptee = accepter.getValue();
if (licenceAcceptee == true) {
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).accepterLicence(this);
} else {
hide();
}
} else {
hide();
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("maj_licence")) {
String licence = info.getDonnee(0).toString();
if (licence.equals("1")) {
hide();
fenetreIdentification.onSubmit();
} else {
//Licence non acceptée, on masque la fenêtre pour laisser
// affiché la fenêtre d'identification qui est en erreur.
hide();
}
}
}
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/AproposFenetre.java
New file
0,0 → 1,168
package org.tela_botanica.client.composants;
 
import org.tela_botanica.client.ComposantClass;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.i18n.Constantes;
import org.tela_botanica.client.images.Images;
 
import com.extjs.gxt.ui.client.GXT;
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.HtmlContainer;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.Window;
import com.extjs.gxt.ui.client.widget.layout.FitData;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
 
public class AproposFenetre extends Window {
private Constantes i18nC = null;
private String aproposTpl = null;
private Params aproposParams = null;
private String contributeurTpl = null;
private Params contributeurParams = null;
public AproposFenetre() {
i18nC = Mediateur.i18nC;
setSize(500, 300);
setPlain(true);
setHeading(i18nC.aproposTitre());
setIcon(Images.ICONES.information());
setLayout(new FitLayout());
initialiserSquelettes();
initialiserParams();
HtmlContainer aproposConteneurDuHtml = formaterSquelette(aproposTpl, aproposParams);
HtmlContainer contributeurConteneurDuHtml = formaterSquelette(contributeurTpl, contributeurParams);
TabPanel aproposOnglets = new TabPanel();
TabItem aproposOnglet = new TabItem(i18nC.aproposTitre());
aproposOnglet.add(aproposConteneurDuHtml);
aproposOnglet.setBorders(false);
aproposOnglet.setScrollMode(Scroll.AUTO);
aproposOnglets.add(aproposOnglet);
TabItem contributeurOnglet = new TabItem(i18nC.aproposTitreContributeur());
contributeurOnglet.add(contributeurConteneurDuHtml);
contributeurOnglet.setBorders(false);
contributeurOnglet.setScrollMode(Scroll.AUTO);
aproposOnglets.add(contributeurOnglet);
add(aproposOnglets, new FitData(4));
}
private HtmlContainer formaterSquelette(String squelette, Params parametres) {
ajouterParametreParDefaut(parametres);
String html = Format.substitute(squelette, parametres);
HtmlContainer conteneurDuHtml = new HtmlContainer(html);
return conteneurDuHtml;
}
private void ajouterParametreParDefaut(Params parametres) {
parametres.set("css_label", ComposantClass.LABEL);
parametres.set("css_corps", ComposantClass.DETAIL_CORPS_CONTENU);
parametres.set("label_separateur", " :");
}
private void initialiserSquelettes() {
initialiserSqueletteApropos();
initialiserSqueletteContributeur();
}
private void initialiserSqueletteApropos() {
aproposTpl =
"<div class='{css_corps}'>"+
" <h2>{appli_nom}</h2>"+
" <p>"+
" <span class='{css_label}'>{i18n_code}{label_separateur}</span> {code}<br />"+
" <span class='{css_label}'>{i18n_version}{label_separateur}</span> {version}<br />"+
" <span class='{css_label}'>{i18n_version_nom}{label_separateur}</span> {version_nom}<br />"+
" <span class='{css_label}'>{i18n_revision}{label_separateur}</span> {revision}<br />"+
" <span class='{css_label}'>{i18n_licence}{label_separateur}</span> {licence}"+
" </p>"+
" <hr />"+
" <h2>{i18n_titre_compilation}</h2>"+
" <p>"+
" <span class='{css_label}'>{i18n_compilation_date}{label_separateur}</span> {compilation_date}<br />"+
" <span class='{css_label}'>{i18n_version_java}{label_separateur}</span> {version_java}"+
" </p>"+
" <hr />"+
" <h2>{i18n_titre_framework}</h2>"+
" <p>"+
" <span class='{css_label}'>{i18n_gwt}{label_separateur}</span> {gwt}<br />"+
" <span class='{css_label}'>{i18n_gxt}{label_separateur}</span> {gxt}"+
" </p>"+
" <hr />"+
" <h2>{i18n_titre_navigateur}</h2>"+
" <p>"+
" <span class='{css_label}'>{i18n_navigateur}{label_separateur}</span> {navigateur}<br />"+
" </p>"+
"</div>";
}
private void initialiserSqueletteContributeur() {
contributeurTpl =
"<div class='{css_corps}'>"+
" <h2>{i18n_titre_contributeur}</h2>"+
" <p>"+
" <span class='{css_label}'>{i18n_developpeur}{label_separateur}</span> {developpeur}<br />"+
" <span class='{css_label}'>{i18n_traducteur}{label_separateur}</span> {traducteur}<br />"+
" </p>"+
"</div>";
}
private void initialiserParams() {
initialiserParamApropos();
initialiserParamContributeur();
}
private void initialiserParamApropos() {
aproposParams = new Params();
aproposParams.set("i18n_code", i18nC.aproposCode());
aproposParams.set("i18n_version", i18nC.aproposVersion());
aproposParams.set("i18n_version_nom", i18nC.aproposVersionNom());
aproposParams.set("i18n_revision", i18nC.aproposRevision());
aproposParams.set("i18n_licence", i18nC.aproposLicence());
aproposParams.set("i18n_titre_compilation", i18nC.aproposTitreCompilation());
aproposParams.set("i18n_compilation_date", i18nC.aproposCompilationDate());
aproposParams.set("i18n_version_java", i18nC.aproposVersionJava());
aproposParams.set("i18n_titre_framework", i18nC.aproposTitreFramework());
aproposParams.set("i18n_gwt", i18nC.aproposGwt());
aproposParams.set("i18n_gxt", i18nC.aproposGxt());
aproposParams.set("i18n_titre_navigateur", i18nC.aproposTitreNavigateur());
aproposParams.set("i18n_navigateur", i18nC.aproposNavigateur());
aproposParams.set("appli_nom", (String) Registry.get(RegistreId.APPLI_NOM));
aproposParams.set("code", (String) Registry.get(RegistreId.APPLI_CODE));
aproposParams.set("version", (String) Registry.get(RegistreId.APPLI_VERSION));
aproposParams.set("version_nom", (String) Registry.get(RegistreId.APPLI_VERSION_NOM));
aproposParams.set("revision", (String) Registry.get(RegistreId.APPLI_REVISION));
aproposParams.set("licence", (String) Registry.get(RegistreId.APPLI_LICENCE));
aproposParams.set("compilation_date", (String) Registry.get(RegistreId.APPLI_COMPILATION_DATE_HEURE));
aproposParams.set("version_java", (String) Registry.get(RegistreId.APPLI_COMPILATION_JAVA_VERSION));
aproposParams.set("gwt", GWT.getVersion());
aproposParams.set("gxt", GXT.getVersion().getRelease());
aproposParams.set("navigateur", GXT.getUserAgent());
}
private void initialiserParamContributeur() {
contributeurParams = new Params();
contributeurParams.set("i18n_titre_contributeur", i18nC.aproposTitreContributeur());
contributeurParams.set("i18n_developpeur", i18nC.aproposDeveloppeur());
contributeurParams.set("i18n_traducteur", i18nC.aproposTraducteur());
contributeurParams.set("developpeur", (String) Registry.get(RegistreId.APPLI_DEVELOPPEURS));
contributeurParams.set("traducteur", (String) Registry.get(RegistreId.APPLI_TRADUCTEURS));
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/composants/ChampComboBoxMultiSelect.java
New file
0,0 → 1,1499
package org.tela_botanica.client.composants;
 
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilString;
 
import com.extjs.gxt.ui.client.GXT;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.core.El;
import com.extjs.gxt.ui.client.core.XDOM;
import com.extjs.gxt.ui.client.core.XTemplate;
import com.extjs.gxt.ui.client.data.BaseModelData;
import com.extjs.gxt.ui.client.data.BasePagingLoadConfig;
import com.extjs.gxt.ui.client.data.ModelData;
import com.extjs.gxt.ui.client.data.PagingLoadConfig;
import com.extjs.gxt.ui.client.data.PagingLoader;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.DomEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.FieldEvent;
import com.extjs.gxt.ui.client.event.ListViewEvent;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.PreviewEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.event.SelectionProvider;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.store.StoreEvent;
import com.extjs.gxt.ui.client.store.StoreListener;
import com.extjs.gxt.ui.client.util.BaseEventPreview;
import com.extjs.gxt.ui.client.util.DelayedTask;
import com.extjs.gxt.ui.client.util.KeyNav;
import com.extjs.gxt.ui.client.util.Util;
import com.extjs.gxt.ui.client.widget.CheckBoxListView;
import com.extjs.gxt.ui.client.widget.ComponentHelper;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.ListView;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.ListModelPropertyEditor;
import com.extjs.gxt.ui.client.widget.form.PropertyEditor;
import com.extjs.gxt.ui.client.widget.form.TriggerField;
import com.extjs.gxt.ui.client.widget.form.ComboBox.ComboBoxMessages;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.form.TextField.TextFieldMessages;
import com.extjs.gxt.ui.client.widget.toolbar.PagingToolBar;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.InputElement;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.RootPanel;
 
 
public class ChampComboBoxMultiSelect<D extends ModelData> extends TriggerField<D> implements SelectionProvider<D> {
 
/**
* ComboBox error messages.
*/
public class ComboBoxMessages extends TextFieldMessages {
 
private String loadingText = GXT.MESSAGES.loadMask_msg();
private String valueNoutFoundText;
 
/**
* Returns the loading text.
*
* @return the loading text
*/
public String getLoadingText() {
return loadingText;
}
 
/**
* Returns the value not found error text.
*
* @return the error text
*/
public String getValueNoutFoundText() {
return valueNoutFoundText;
}
 
/**
* Sets the loading text.
*
* @param loadingText the loading text
*/
public void setLoadingText(String loadingText) {
this.loadingText = loadingText;
}
 
/**
* When using a name/value combo, if the value passed to setValue is not
* found in the store, valueNotFoundText will be displayed as the field text
* if defined.
*
* @param valueNoutFoundText
*/
public void setValueNoutFoundText(String valueNoutFoundText) {
this.valueNoutFoundText = valueNoutFoundText;
}
 
}
 
/**
* TriggerAction enum.
*/
public enum TriggerAction {
ALL, QUERY;
}
 
protected boolean autoComplete = false;
protected boolean delayedCheck;
protected String lastQuery;
 
protected ListStore<D> store;
private String allQuery = "";
private BaseEventPreview eventPreview;
private boolean expanded;
private El footer;
private boolean forceSelection;
private InputElement hiddenInput;
private String itemSelector;
private String lastSelectionText;
private boolean lazyRender = true, initialized;
private LayoutContainer list;
private String listAlign = "tl-bl?";
private String listStyle = "x-combo-list";
private int maxHeight = 300;
private int minChars = 4;
private int minListWidth = 70;
private String mode = "remote";
private int pageSize;
private PagingToolBar pageTb;
private int queryDelay = 500;
private D selectedItem;
private String selectedStyle = "x-combo-selected";
private StoreListener<D> storeListener;
private DelayedTask taTask, dqTask;
private XTemplate template;
private TriggerAction triggerAction = TriggerAction.QUERY;
private boolean typeAhead;
private int typeAheadDelay = 250;
private boolean useQueryCache = true;
private String valueField;
//+----------------------------------------------------------------------------------------------------------------+
// Attributs modifiés ou ajoutés
private CheckBoxListView<D> listView = null;
private String valueFieldSeparator = aDonnee.SEPARATEUR_VALEURS;
private String rawSeparator = ", ";
private List<D> listeInitiale = new ArrayList<D>();
private boolean initialisation = false;
private boolean premierAppel = true;
//+----------------------------------------------------------------------------------------------------------------+
//+----------------------------------------------------------------------------------------------------------------+
// Constructeur modifiés
public ChampComboBoxMultiSelect() {
messages = new ComboBoxMessages();
listView = new CheckBoxListView<D>();
setPropertyEditor(new ListModelPropertyEditor<D>());
monitorWindowResize = true;
windowResizeDelay = 0;
initComponent();
setTriggerAction(TriggerAction.ALL);
}
//+----------------------------------------------------------------------------------------------------------------+
 
public void addSelectionChangedListener(SelectionChangedListener<D> listener) {
addListener(Events.SelectionChange, listener);
}
 
@Override
public void clear() {
getStore().clearFilters();
boolean f = forceSelection;
forceSelection = false;
super.clear();
forceSelection = f;
}
 
/**
* Clears any text/value currently set in the field.
*/
public void clearSelections() {
setRawValue("");
lastSelectionText = "";
applyEmptyText();
value = null;
}
/**
* Execute a query to filter the dropdown list. Fires the BeforeQuery event
* prior to performing the query allowing the query action to be canceled if
* needed.
*
* @param q the query
* @param forceAll true to force the query to execute even if there are
* currently fewer characters in the field than the minimum specified
* by the minChars config option. It also clears any filter
* previously saved in the current store
*/
public void doQuery(String q, boolean forceAll) {
if (q == null) {
q = "";
}
 
FieldEvent fe = new FieldEvent(this);
fe.setValue(q);
if (!fireEvent(Events.BeforeQuery, fe)) {
return;
}
 
if (forceAll || q.length() >= minChars) {
if (!useQueryCache || !q.equals(lastQuery)) {
lastQuery = q;
if (mode.equals("local")) {
selectedItem = null;
store.filter(getDisplayField(), q);
onLoad(null);
} else {
expand();
store.getLoader().load(getParams(q));
}
} else {
selectedItem = null;
onLoad(null);
}
}
}
 
/**
* Returns the all query.
*
* @return the all query
*/
public String getAllQuery() {
return allQuery;
}
 
/**
* Returns the display field.
*
* @return the display field
*/
public String getDisplayField() {
return getPropertyEditor().getDisplayProperty();
}
 
/**
* Returns true if the field's value is forced to one of the value in the
* list.
*
* @return the force selection state
*/
public boolean getForceSelection() {
return forceSelection;
}
 
/**
* Returns the item selector.
*
* @return the item selector
*/
public String getItemSelector() {
return itemSelector;
}
 
/**
* Returns the list's list align value.
*
* @return the list align value
*/
public String getListAlign() {
return listAlign;
}
 
/**
* Returns the list style.
*
* @return the list style
*/
public String getListStyle() {
return listStyle;
}
 
/**
* Returns the loading text.
*
* @return the loading text
*/
public String getLoadingText() {
return getMessages().getLoadingText();
}
 
/**
* Returns the dropdown list's max height.
*
* @return the max height
*/
public int getMaxHeight() {
return maxHeight;
}
 
@Override
public ComboBoxMessages getMessages() {
return (ComboBoxMessages) messages;
}
 
/**
* Returns the min characters used for autocompete and typeahead.
*
* @return the minimum number of characters
*/
public int getMinChars() {
return minChars;
}
 
/**
* Returns the dropdown list's min width.
*
* @return the min width
*/
public int getMinListWidth() {
return minListWidth;
}
 
/**
* Returns the page size.
*
* @return the page size
*/
public int getPageSize() {
return pageSize;
}
 
/**
* Returns the combo's paging tool bar.
*
* @return the tool bar
*/
public PagingToolBar getPagingToolBar() {
return pageTb;
}
 
@Override
public ListModelPropertyEditor<D> getPropertyEditor() {
return (ListModelPropertyEditor<D>) propertyEditor;
}
 
/**
* Returns the query delay.
*
* @return the query delay
*/
public int getQueryDelay() {
return queryDelay;
}
 
/**
* Returns the selected style.
*
* @return the selected style
*/
public String getSelectedStyle() {
return selectedStyle;
}
 
/**
* Returns the combo's store.
*
* @return the store
*/
public ListStore<D> getStore() {
return store;
}
 
/**
* Returns the custom template.
*
* @return the template
*/
public XTemplate getTemplate() {
return template;
}
 
/**
* Returns the trigger action.
*
* @return the trigger action
*/
public TriggerAction getTriggerAction() {
return triggerAction;
}
 
/**
* Returns the type ahead delay in milliseconds.
*
* @return the type ahead delay
*/
public int getTypeAheadDelay() {
return typeAheadDelay;
}
 
/**
* Returns the value field name.
*
* @return the value field name
*/
public String getValueField() {
return valueField;
}
 
 
 
/**
* Returns <code>true</code> if the panel is expanded.
*
* @return the expand state
*/
public boolean isExpanded() {
return expanded;
}
 
/**
* Returns true if lazy rendering is enabled.
*
* @return true of lazy rendering
*/
public boolean isLazyRender() {
return lazyRender;
}
 
/**
* Returns true if type ahead is enabled.
*
* @return the type ahead state
*/
public boolean isTypeAhead() {
return typeAhead;
}
 
/**
* Returns the state if the query cache is used or not.
*
* @return the useQueryCache state
*/
public boolean isUseQueryCache() {
return useQueryCache;
}
 
public void removeSelectionListener(SelectionChangedListener<D> listener) {
removeListener(Events.SelectionChange, listener);
}
 
@Override
public void reset() {
getStore().clearFilters();
boolean f = forceSelection;
forceSelection = false;
super.reset();
forceSelection = f;
}
 
public void select(D sel) {
if (listView != null && sel != null) {
int index = store.indexOf(sel);
selectedItem = sel;
if (index < listView.getElements().size()) {
listView.getSelectionModel().select(sel, false);
fly(listView.getElement(index)).scrollIntoView(listView.getElement(), false);
}
}
}
 
/**
* Select an item in the dropdown list by its numeric index in the list. This
* function does NOT cause the select event to fire. The list must expanded
* for this function to work, otherwise use #setValue.
*
* @param index the index of the item to select
*/
public void select(int index) {
select(store.getAt(index));
}
 
/**
* The text query to send to the server to return all records for the list
* with no filtering (defaults to '').
*
* @param allQuery the all query
*/
public void setAllQuery(String allQuery) {
this.allQuery = allQuery;
}
 
/**
* The underlying data field name to bind to this ComboBox (defaults to
* 'text').
*
* @param displayField the display field
*/
public void setDisplayField(String displayField) {
getPropertyEditor().setDisplayProperty(displayField);
}
 
/**
* Sets the panel's expand state.
*
* @param expand <code>true<code> true to expand
*/
public void setExpanded(boolean expand) {
this.expanded = expand;
if (isRendered()) {
if (expand) {
expand();
} else {
collapse();
}
}
}
 
/**
* Sets whether the combo's value is restricted to one of the values in the
* list, false to allow the user to set arbitrary text into the field
* (defaults to false).
*
* @param forceSelection true to force selection
*/
public void setForceSelection(boolean forceSelection) {
this.forceSelection = forceSelection;
}
 
/**
* This setting is required if a custom XTemplate has been specified.
*
* @param itemSelector the item selector
*/
public void setItemSelector(String itemSelector) {
this.itemSelector = itemSelector;
}
 
/**
* True to lazily render the combo's drop down list (default to true,
* pre-render).
*
* @param lazyRender true to lazy render the drop down list
*/
public void setLazyRender(boolean lazyRender) {
this.lazyRender = lazyRender;
}
 
/**
* Sets a valid anchor position value. See {@link El#alignTo} for details on
* supported anchor positions (defaults to 'tl-bl?').
*
* @param listAlign the new list align value
*/
public void setListAlign(String listAlign) {
this.listAlign = listAlign;
}
 
/**
* Sets the style for the drop down list (defaults to 'x-combo-list');
*
* @param listStyle the list style
*/
public void setListStyle(String listStyle) {
this.listStyle = listStyle;
}
 
/**
* Sets the loading text.
*
* @param loadingText the loading text
*/
public void setLoadingText(String loadingText) {
getMessages().setLoadingText(loadingText);
}
 
/**
* Sets the maximum height in pixels of the dropdown list before scrollbars
* are shown (defaults to 300).
*
* @param maxHeight the max hieght
*/
public void setMaxHeight(int maxHeight) {
this.maxHeight = maxHeight;
}
 
/**
* Sets the minimum number of characters the user must type before
* autocomplete and typeahead active (defaults to 4 if remote, or 0 if local).
*
* @param minChars
*/
public void setMinChars(int minChars) {
this.minChars = minChars;
}
 
/**
* Sets the minimum width of the dropdown list in pixels (defaults to 70, will
* be ignored if listWidth has a higher value).
*
* @param minListWidth the min width
*/
public void setMinListWidth(int minListWidth) {
this.minListWidth = minListWidth;
}
 
/**
* Sets the page size. Only applies when using a paging toolbar.
*
* @param pageSize the page size
*/
public void setPageSize(int pageSize) {
assertPreRender();
this.pageSize = pageSize;
if (pageSize > 0) {
if (pageTb != null) {
pageTb.setPageSize(pageSize);
} else {
pageTb = new PagingToolBar(pageSize);
}
} else {
pageTb = null;
}
}
 
@Override
public void setPropertyEditor(PropertyEditor<D> propertyEditor) {
assert propertyEditor instanceof ListModelPropertyEditor<?> : "PropertyEditor must be a ListModelPropertyEditor instance";
super.setPropertyEditor(propertyEditor);
}
 
/**
* The length of time in milliseconds to delay between the start of typing and
* sending the query to filter the dropdown list.
*
* @param queryDelay the query delay
*/
public void setQueryDelay(int queryDelay) {
this.queryDelay = queryDelay;
}
 
@Override
public void setRawValue(String text) {
if (rendered) {
if (text == null) {
String msg = getMessages().getValueNoutFoundText();
text = msg != null ? msg : "";
}
getInputEl().setValue(text);
}
}
 
/**
* Sets the CSS style name to apply to the selected item in the dropdown list
* (defaults to 'x-combo-selected').
*
* @param selectedStyle the selected style
*/
public void setSelectedStyle(String selectedStyle) {
this.selectedStyle = selectedStyle;
}
 
/**
* Sets the template fragment to be used for the text of each combo list item.
*
* <pre>
*
* &lt;code&gt; combo.setSimpleTemplate(&quot;{abbr} {name}&quot;); &lt;/code&gt;
*
* </pre>
*
* @param html the html used only for the text of each item in the list
*/
public void setSimpleTemplate(String html) {
assertPreRender();
html = "<tpl for=\".\"><div class=x-combo-list-item>" + html + "</div></tpl>";
template = XTemplate.create(html);
}
 
/**
* Sets the combo's store.
*
* @param store the store
*/
public void setStore(ListStore<D> store) {
this.store = store;
}
 
/**
* Sets the custom template used to render the combo's drop down list.Use this
* to create custom UI layouts for items in the list.
* <p>
* If you wish to preserve the default visual look of list items, add the CSS
* class name 'x-combo-list-item' to the template's container element.
*
* @param html the html
*/
public void setTemplate(String html) {
assertPreRender();
template = XTemplate.create(html);
}
 
/**
* Sets the custom template used to render the combo's drop down list.
*
* @param template the template
*/
public void setTemplate(XTemplate template) {
assertPreRender();
this.template = template;
}
 
/**
* The action to execute when the trigger field is activated. Use
* {@link TriggerAction#ALL} to run the query specified by the allQuery config
* option (defaults to {@link TriggerAction#QUERY}).
*
* @param triggerAction the trigger action
*/
public void setTriggerAction(TriggerAction triggerAction) {
this.triggerAction = triggerAction;
}
 
/**
* True to populate and autoselect the remainder of the text being typed after
* a configurable delay ({@link #typeAheadDelay}) if it matches a known value
* (defaults to false)
*
* @param typeAhead
*/
public void setTypeAhead(boolean typeAhead) {
this.typeAhead = typeAhead;
if (rendered) {
if (typeAhead && taTask == null) {
taTask = new DelayedTask(new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
onTypeAhead();
}
});
} else if (!typeAhead && taTask != null) {
taTask.cancel();
taTask = null;
}
}
}
 
/**
* The length of time in milliseconds to wait until the typeahead text is
* displayed if typeAhead = true (defaults to 250).
*
* @param typeAheadDelay the type ahead delay
*/
public void setTypeAheadDelay(int typeAheadDelay) {
this.typeAheadDelay = typeAheadDelay;
}
 
/**
* Set this to false to disable the last query cache (defaults to true).
*
* When set to false the store gets queried on each expand for the data that
* should get displayed in the list. If you use a loader, than each time the
* ComboBox gets expanded, the server gets asked for the data.
*
* You want to do this for example, if you filter the content of this ComboBox
* against some selection in another field.
*
* @param useQueryCache the useQueryCache to set
*/
public void setUseQueryCache(boolean useQueryCache) {
this.useQueryCache = useQueryCache;
}
 
/**
* Sets the model field used to retrieve the "value" from the model. If
* specified, a hidden form field will contain the value. The hidden form
* field name will be the combo's field name plus "-hidden".
*
* @param valueField the value field name
*/
public void setValueField(String valueField) {
this.valueField = valueField;
}
 
protected void collapseIf(PreviewEvent pe) {
if (!list.el().isOrHasChild(pe.getTarget()) && !el().isOrHasChild(pe.getTarget())) {
collapse();
}
}
 
protected D findModel(String property, String value) {
if (value == null) return null;
for (D model : store.getModels()) {
if (value.equals(getPropertyEditor().getStringValue(model))) {
return model;
}
}
return null;
}
 
protected void fireKey(FieldEvent fe) {
if (fe.isNavKeyPress() && !isExpanded() && !delayedCheck) {
fireEvent(Events.SpecialKey, fe);
}
}
 
@Override
protected El getFocusEl() {
return input;
}
 
protected PagingLoadConfig getParams(String query) {
BasePagingLoadConfig config = new BasePagingLoadConfig();
config.setLimit(pageSize);
config.setOffset(0);
config.set("query", query);
return config;
}
 
protected boolean hasFocus() {
return hasFocus || expanded;
}
 
@SuppressWarnings("unchecked")
protected void initComponent() {
storeListener = new StoreListener<D>() {
 
@Override
public void storeBeforeDataChanged(StoreEvent<D> se) {
onBeforeLoad(se);
}
 
@Override
public void storeDataChanged(StoreEvent<D> se) {
onLoad(se);
}
 
};
 
eventPreview = new BaseEventPreview() {
@Override
protected boolean onPreview(PreviewEvent pe) {
switch (pe.getType().getEventCode()) {
case Event.ONSCROLL:
case Event.ONMOUSEWHEEL:
case Event.ONMOUSEDOWN:
collapseIf(pe);
}
return true;
}
};
eventPreview.setAutoHide(false);
 
new KeyNav(this) {
public void onDown(ComponentEvent ce) {
ce.cancelBubble();
if (!isExpanded()) {
onTriggerClick(ce);
} else {
selectNext();
}
}
 
@Override
public void onEnter(ComponentEvent ce) {
if (expanded) {
ce.cancelBubble();
onViewClick(ce, false);
delayedCheck = true;
unsetDelayCheck();
}
}
 
@Override
public void onEsc(ComponentEvent ce) {
if (expanded) {
ce.cancelBubble();
collapse();
}
}
 
@Override
public void onTab(ComponentEvent ce) {
if (expanded) {
onViewClick(ce, false);
}
}
 
@Override
public void onUp(ComponentEvent ce) {
if (expanded) {
ce.cancelBubble();
selectPrev();
}
}
 
};
}
 
protected void onBeforeLoad(StoreEvent<D> se) {
if (!hasFocus()) {
return;
}
if (expanded) {
restrict();
}
}
 
@Override
protected void onDetach() {
collapse();
super.onDetach();
if (eventPreview != null) {
eventPreview.remove();
}
}
 
protected void onEmptyResults() {
collapse();
}
 
@Override
protected void onKeyDown(FieldEvent fe) {
if (fe.getKeyCode() == KeyCodes.KEY_TAB) {
if (expanded) {
onViewClick(fe, false);
}
}
super.onKeyDown(fe);
}
 
@Override
protected void onKeyUp(FieldEvent fe) {
super.onKeyUp(fe);
if (isEditable() && (!fe.isSpecialKey() || fe.getKeyCode() == KeyCodes.KEY_BACKSPACE || fe.getKeyCode() == 46)) {
// last key
dqTask.delay(queryDelay);
}
}
 
protected void onLoad(StoreEvent<D> se) {
if (!isAttached() || !hasFocus()) {
return;
}
if (store.getCount() > 0) {
if (expanded) {
restrict();
} else {
expand();
}
 
if (lastQuery != null && lastQuery.equals(allQuery)) {
if (isEditable()) {
selectAll();
}
} else {
if (typeAhead) {
taTask.delay(typeAheadDelay);
}
}
if (!selectByValue(getRawValue())) {
select(0);
}
} else {
onEmptyResults();
}
}
 
protected void onRender(Element parent, int index) {
super.onRender(parent, index);
initList();
 
if (!autoComplete) {
getInputEl().dom.setAttribute("autocomplete", "off");
}
 
if (mode.equals("local")) {
minChars = 0;
}
 
dqTask = new DelayedTask(new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
initQuery();
}
});
 
if (valueField != null) {
hiddenInput = Document.get().createHiddenInputElement().cast();
hiddenInput.setName(getName() + "-hidden");
getElement().appendChild(hiddenInput);
}
 
if (typeAhead) {
taTask = new DelayedTask(new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
onTypeAhead();
}
});
}
eventPreview.getIgnoreList().add(getElement());
}
 
protected void onSelect(D model, int index) {
FieldEvent fe = new FieldEvent(this);
if (fireEvent(Events.BeforeSelect, fe)) {
setValue(model);
collapse();
fireEvent(Events.Select, fe);
}
}
 
protected void onTriggerClick(ComponentEvent ce) {
super.onTriggerClick(ce);
if (expanded) {
collapse();
} else {
onFocus(null);
if (triggerAction == TriggerAction.ALL) {
doQuery(allQuery, true);
} else {
doQuery(getRawValue(), true);
}
 
}
getInputEl().focus();
}
 
protected void onTypeAhead() {
if (store.getCount() > 0) {
D m = store.getAt(0);
String newValue = propertyEditor.getStringValue(m);
int len = newValue.length();
int selStart = getRawValue().length();
if (selStart != len) {
setRawValue(newValue);
select(selStart, newValue.length());
}
}
}
 
protected void onViewClick(DomEvent de, boolean focus) {
int idx = -1;
// when testing in selenium the items will not be selected as the mouse
// is not moved during the test
Element elem = listView.findElement(de.getTarget());
if (elem != null) {
idx = listView.indexOf(elem);
} else {
D sel = listView.getSelectionModel().getSelectedItem();
if (sel != null) {
idx = store.indexOf(sel);
}
}
if (idx != -1) {
D sel = store.getAt(idx);
onSelect(sel, idx);
}
 
if (focus) {
DeferredCommand.addCommand(new Command() {
public void execute() {
focus();
}
});
}
}
 
protected void onWindowResize(int width, int height) {
collapse();
}
 
@Override
protected void triggerBlur(ComponentEvent ce) {
doForce();
super.triggerBlur(ce);
}
 
protected void unsetDelayCheck() {
DeferredCommand.addCommand(new Command() {
public void execute() {
delayedCheck = false;
}
});
}
 
@Override
protected boolean validateBlur(DomEvent e, Element target) {
return list == null || (list != null && !list.isVisible() && !list.getElement().isOrHasChild(target));
}
 
@Override
protected boolean validateValue(String value) {
if (forceSelection) {
boolean f = forceSelection;
forceSelection = false;
if (getValue() == null) {
forceSelection = f;
String rv = getRawValue();
if (getAllowBlank() && (rv == null || rv.equals(""))) {
return true;
}
markInvalid(getMessages().getBlankText());
return false;
}
forceSelection = f;
}
return super.validateValue(value);
}
 
private void createList(boolean remove) {
RootPanel.get().add(list);
initialized = true;
if (remove) {
RootPanel.get().remove(list);
}
}
 
private void initQuery() {
doQuery(getRawValue(), false);
}
 
private void restrict() {
list.el().setVisibility(false);
listView.setHeight("auto");
list.setHeight("auto");
int w = Math.max(getWidth(), minListWidth);
 
int fh = footer != null ? footer.getHeight() : 0;
int fw = list.el().getFrameWidth("tb") + fh;
 
int h = listView.getHeight() + fw;
 
h = Math.min(h, maxHeight - fw);
list.setSize(w, h);
list.el().makePositionable(true);
list.el().alignTo(getElement(), listAlign, null);
 
h -= fh;
 
int width = w - list.el().getFrameWidth("lr");
listView.syncSize();
listView.setSize(width, h - list.el().getFrameWidth("tb"));
 
if (pageTb != null) {
pageTb.setWidth(width);
}
 
int y = list.el().getY();
int b = y + h;
int vh = XDOM.getViewportSize().height + XDOM.getBodyScrollTop();
if (b > vh) {
y = y - (b - vh) - 5;
list.el().setTop(y);
}
list.el().setVisibility(true);
}
 
private boolean selectByValue(String value) {
D r = findModel(getDisplayField(), value);
if (r != null) {
select(r);
return true;
}
return false;
}
 
private void selectNext() {
int count = store.getCount();
if (count > 0) {
int selectedIndex = store.indexOf(selectedItem);
if (selectedIndex == -1) {
select(0);
} else if (selectedIndex < count - 1) {
select(selectedIndex + 1);
}
}
}
 
private void selectPrev() {
int count = store.getCount();
if (count > 0) {
int selectedIndex = store.indexOf(selectedItem);
if (selectedIndex == -1) {
select(0);
} else if (selectedIndex != 0) {
select(selectedIndex - 1);
}
}
}
 
//+--------------------------------------------------------------------------------------------------------------------+
// Méthode modifiées
@Override
public D getValue() {
return (D) new BaseModelData();
}
 
@Override
public void setValue(D value) {
}
public List<D> getSelection() {
List<D> sel = new ArrayList<D>();
if (listeInitiale != null && initialisation == false) {
sel = listeInitiale;
if (listView.isRendered()) {
initialisation = true;
}
Debug.log("GetSelection dans listeInitiale :"+sel.size());
} else if (listView.isRendered()) {
sel = listView.getChecked();
}
return sel;
}
public void setSelection(List<D> selection) {
nettoyerListeDeCasesACocher();
for (D d : selection) {
listView.setChecked(d, true);
}
}
 
/**
* Returns the combo's list view.
*
* @return the view
*/
public CheckBoxListView<D> getListView() {
return listView;
}
/**
* Returns the combo's list view.
*
* @return the view
*/
public CheckBoxListView<D> getView() {
return listView;
}
/**
* Sets the combo's view.
*
* @param view the view
*/
public void setView(CheckBoxListView<D> view) {
this.listView = view;
}
public String getRawSeparator() {
return rawSeparator;
}
public void setRawSeparator(String rawSeparator) {
this.rawSeparator = rawSeparator;
}
public void setValueFieldSeparator(String valueFieldSeparator) {
this.valueFieldSeparator = valueFieldSeparator;
}
public String getValueFieldSeparator() {
return valueFieldSeparator;
}
/**
* Hides the dropdown list if it is currently expanded. Fires the
* <i>Collapse</i> event on completion.
*/
public void collapse() {
if (!expanded) {
return;
}
eventPreview.remove();
expanded = false;
list.hide();
RootPanel.get().remove(list);
fireEvent(Events.Collapse, new FieldEvent(this));
mettreAJour("collapse");
}
/**
* Expands the dropdown list if it is currently hidden. Fires the
* <i>expand</i> event on completion.
*/
public void expand() {
if (expanded || !hasFocus) {
return;
}
expanded = true;
Debug.log("dans expand");
if (!initialized) {
createList(false);
} else {
RootPanel.get().add(list);
}
list.show();
list.layout();
list.el().updateZIndex(0);
restrict();
 
eventPreview.add();
 
fireEvent(Events.Expand, new FieldEvent(this));
if (premierAppel) {
premierAppel = false;
collapse();
expand();
Debug.log("premier appel");
}
}
 
protected void initList() {
Debug.log("initialisation de la liste");
if (listView == null) {
Debug.log("La vue de la liste était nulle");
setView(new CheckBoxListView<D>());
}
 
String style = getListStyle();
listView.setStyleAttribute("overflowX", "hidden");
listView.setStyleName(style + "-inner");
listView.setStyleAttribute("padding", "0px");
listView.setSelectOnOver(true);
listView.setBorders(false);
listView.setStyleAttribute("backgroundColor", "white");
listView.setSelectStyle(getSelectedStyle());
listView.setLoadingText(getLoadingText());
if (getTemplate() == null) {
listView.setDisplayProperty(getDisplayField());
} else {
listView.setTemplate(getTemplate());
}
setMaxHeight(0);
 
list = new LayoutContainer() {
@Override
protected void onRender(Element parent, int index) {
super.onRender(parent, index);
eventPreview.getIgnoreList().add(getElement());
}
};
list.setScrollMode(Scroll.NONE);
list.setShim(true);
list.setShadow(true);
list.setBorders(true);
list.setStyleName(style);
list.hide();
assert store != null : "ComboBox needs a store";
 
list.add(listView);
listView.show();
if (!lazyRender) {
createList(true);
}
bindStore(store, true);
};
protected void doForce() {}
private void bindStore(ListStore<D> store, boolean initial) {
if (this.store != null && !initial) {
this.store.removeStoreListener(storeListener);
if (store == null) {
this.store = null;
if (listView != null) {
listView.setStore(null);
}
}
}
if (store != null) {
this.store = store;
if (store.getLoader() == null) {
mode = "local";
}
if (listView != null) {
listView.setStore(store);
}
store.addStoreListener(storeListener);
}
}
private void updateHiddenValue() {
if (hiddenInput != null) {
hiddenInput.setValue(collecterIdentifiants());
}
}
 
private void mettreAJour(String origine) {
setSelection(getSelection());
setRawValue(collecterTexte());
updateHiddenValue();
Debug.log("Mise à jour "+origine+" : "+collecterTexte());
}
private void nettoyerListeDeCasesACocher() {
if (listView.isRendered()) {
List<D> listeADecocher = listView.getChecked();
for (D d : listeADecocher) {
listView.setChecked(d, false);
}
}
}
public void peupler(String identifiants) {
peuplerAvecIdentifiant(identifiants);
}
public void peuplerAvecIdentifiant(String identifiants) {
List<D> liste = parserChaine(identifiants, valueFieldSeparator, getValueField());
executerPeuplement(liste);
}
public void peuplerAvecTexte(String texte) {
List<D> liste = parserChaine(texte, rawSeparator, getDisplayField());
executerPeuplement(liste);
}
private void executerPeuplement(List<D> liste) {
listeInitiale = liste;
initialisation = false;
mettreAJour("executerPeuplement");
}
public String collecter() {
return collecterIdentifiants();
}
public String collecterIdentifiants() {
return executerCollecte(getSelection(), getValueField(), valueFieldSeparator);
}
public String collecterTexte() {
return executerCollecte(getSelection(), getDisplayField(), rawSeparator);
}
private String executerCollecte(List<D> selection, String champCle, String separateur) {
String chaineDeSortie = "";
Iterator<D> it = selection.iterator();
while (it.hasNext()) {
D d = it.next();
chaineDeSortie += d.get(champCle);
if (it.hasNext()) {
chaineDeSortie += separateur;
}
}
return chaineDeSortie;
}
private List<D> parserChaine(String chaineAAnalyser, String separateur, String champCle) {
ArrayList<D> liste = new ArrayList<D>();
chaineAAnalyser = chaineAAnalyser.trim();
if (!UtilString.isEmpty(chaineAAnalyser)) {
String[] valeurs = chaineAAnalyser.split(separateur);
int nbreValeurs = valeurs.length;
Debug.log("Executer peuplement : "+chaineAAnalyser+" - nbre : "+nbreValeurs);
if (nbreValeurs > 0 && getStore() != null) {
Debug.log("Executer peuplement : "+chaineAAnalyser+" - nbre : "+nbreValeurs);
for (int i = 0; i < nbreValeurs; i++) {
String valeur = valeurs[i];
D d = getStore().findModel(champCle, valeur);
liste.add(d);
}
}
}
return liste;
}
public String formaterTexteEnIdentifiants(String texte) {
List<D> liste = parserChaine(texte, rawSeparator, getDisplayField());
return executerCollecte(liste, getValueField(), valueFieldSeparator);
}
public String formaterIdentifiantsEnTexte(String identifiants) {
List<D> liste = parserChaine(identifiants, valueFieldSeparator, getValueField());
return executerCollecte(liste, getDisplayField(), rawSeparator);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/configuration/APropos.java
New file
0,0 → 1,82
package org.tela_botanica.client.configuration;
 
import com.google.gwt.i18n.client.Dictionary;
 
/**
* Classe chargeant certains paramètres de configuration à partir d'un fichier
* javascript (config.js)
*
* @author Aurélien PERONNET
*
*/
public class APropos {
private String appliNom;
private String appliCode;
private String appliVersionNom;
private String appliVersionCode;
private String developpeurs;
private String traducteurs;
private String licence;
private String dateHeureCompilation;
private String revisionGlobale;
private String versionJavaCompilation;
public APropos() {
// on utilise le dictionnaire d'internationalisation pour lire les variables du fichier javascript
Dictionary apropos = Dictionary.getDictionary("apropos");
appliNom = apropos.get("appliNom");
appliCode = apropos.get("appliCode");
appliVersionNom = apropos.get("appliVersionNom");
appliVersionCode = apropos.get("appliVersionCode");
developpeurs = apropos.get("developpeurs");
traducteurs = apropos.get("traducteurs");
licence = apropos.get("licence");
dateHeureCompilation = apropos.get("dateHeureCompilation");
revisionGlobale = apropos.get("revisionGlobale");
versionJavaCompilation = apropos.get("versionJavaCompilation");
}
 
public String getAppliNom() {
return appliNom;
}
public String getAppliCode() {
return appliCode;
}
public String getAppliVersionNom() {
return appliVersionNom;
}
public String getAppliVersionCode() {
return appliVersionCode;
}
public String getDeveloppeurs() {
return developpeurs;
}
public String getTraducteurs() {
return traducteurs;
}
public String getLicence() {
return licence;
}
public String getDateHeureCompilation() {
return dateHeureCompilation;
}
public String getRevisionGlobale() {
return revisionGlobale;
}
public String getVersionJavaCompilation() {
return versionJavaCompilation;
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/configuration/Configuration.java
New file
0,0 → 1,126
package org.tela_botanica.client.configuration;
 
import java.util.LinkedHashMap;
 
import com.google.gwt.i18n.client.Dictionary;
 
/**
* Classe chargeant certains paramètres de configuration à partir d'un fichier
* javascript (config.js)
*
* @author Aurélien PERONNET
*
*/
public class Configuration {
 
/**
* Tableau associatif contenant les identifiants des listes
*/
private LinkedHashMap<String, Integer> listesId = new LinkedHashMap<String, Integer>();
/**
* Tableau associatif contenant les identifiants des urls externes
*/
private LinkedHashMap<String, String> urls = new LinkedHashMap<String, String>();
 
/**
* Constructeur sans argument
*/
public Configuration() {
// on utilise le dictionnaire d'internationalisation pour lire les variables du fichier javascript
Dictionary configuration = Dictionary.getDictionary("configuration");
listesId.put("stpr", Integer.valueOf(configuration.get("listeStpr")));
listesId.put("stpu", Integer.valueOf(configuration.get("listeStpu")));
listesId.put("statut", Integer.valueOf(configuration.get("listeStatut")));
listesId.put("fonction", Integer.valueOf(configuration.get("listeFonction")));
listesId.put("botaAcronyme", Integer.valueOf(configuration.get("listeAcronymeBota")));
listesId.put("localStockage", Integer.valueOf(configuration.get("listeStockageLocal")));
listesId.put("meubleStockage", Integer.valueOf(configuration.get("listeStockageMeuble")));
listesId.put("parametreStockage", Integer.valueOf(configuration.get("listeStockageParametre")));
listesId.put("autreCollection", Integer.valueOf(configuration.get("listeCollectionAutre")));
listesId.put("opRestau", Integer.valueOf(configuration.get("listeRestaurationOperation")));
listesId.put("onep", Integer.valueOf(configuration.get("listeONEP")));
listesId.put("autreMateriel", Integer.valueOf(configuration.get("listeMaterielAutre")));
listesId.put("poisonTraitement", Integer.valueOf(configuration.get("listeEmpoisonnement")));
listesId.put("insecteTraitement", Integer.valueOf(configuration.get("listeDesinsectisation")));
listesId.put("actionValorisation", Integer.valueOf(configuration.get("listeValorisationAction")));
listesId.put("continentEtFr", Integer.valueOf(configuration.get("listeContinentEtFr")));
listesId.put("typeRecherche", Integer.valueOf(configuration.get("listeRechercheType")));
listesId.put("pays", Integer.valueOf(configuration.get("listePays")));
listesId.put("typeCollectionNcd", Integer.valueOf(configuration.get("listeTypeCollectionNcd")));
listesId.put("typeCollectionBota", Integer.valueOf(configuration.get("listeTypeCollectionBota")));
listesId.put("typeDepot", Integer.valueOf(configuration.get("listeTypeDepot")));
listesId.put("typeUniteRangement", Integer.valueOf(configuration.get("listeTypeUniteRangement")));
listesId.put("etat", Integer.valueOf(configuration.get("listeEtat")));
listesId.put("etatClassement", Integer.valueOf(configuration.get("listeEtatClassement")));
listesId.put("typeUniteBase", Integer.valueOf(configuration.get("listeTypeUniteBase")));
listesId.put("typePapier", Integer.valueOf(configuration.get("listeTypePapier")));
listesId.put("methodeRangement", Integer.valueOf(configuration.get("listeMethodeRangement")));
listesId.put("methodeFixation", Integer.valueOf(configuration.get("listeMethodeFixation")));
listesId.put("methodeFixationSurSpecimen", Integer.valueOf(configuration.get("listeMethodeFixationSurSpecimen")));
listesId.put("typeEcriture", Integer.valueOf(configuration.get("listeTypeEcriture")));
listesId.put("onpi", Integer.valueOf(configuration.get("listeONPI")));
listesId.put("specimenDegradation", Integer.valueOf(configuration.get("listeSpecimenDegradation")));
listesId.put("supportDegradation", Integer.valueOf(configuration.get("listeSupportDegradation")));
listesId.put("niveauDetermination", Integer.valueOf(configuration.get("listeNiveauDetermination")));
listesId.put("natureVegetale", Integer.valueOf(configuration.get("listeNatureVegetale")));
listesId.put("siecleNaturaliste", Integer.valueOf(configuration.get("listeSiecleNaturaliste")));
listesId.put("dateDebut", Integer.valueOf(configuration.get("listeDateDebut")));
listesId.put("dateFin", Integer.valueOf(configuration.get("listeDateFin")));
listesId.put("onp", Integer.valueOf(configuration.get("listeONP")));
listesId.put("niveauImportance", Integer.valueOf(configuration.get("listeNiveauImportance")));
listesId.put("ea", Integer.valueOf(configuration.get("listeEA")));
listesId.put("typeClassement", Integer.valueOf(configuration.get("listeTypeClassement")));
listesId.put("relationPersonneCollection", Integer.valueOf(configuration.get("listeRelationPersonneCollection")));
listesId.put("inventaireForme", Integer.valueOf(configuration.get("listeInventaireForme")));
listesId.put("inventaireLogiciel", Integer.valueOf(configuration.get("listeInventaireLogiciel")));
listesId.put("inventaireEtat", Integer.valueOf(configuration.get("listeInventaireEtat")));
listesId.put("groupementPrincipe", Integer.valueOf(configuration.get("listeGroupementPrincipe")));
listesId.put("realisationBut", Integer.valueOf(configuration.get("listeRealisationBut")));
listesId.put("ion", Integer.valueOf(configuration.get("listeION")));
listesId.put("typeCommentaireCollection", Integer.valueOf(configuration.get("listeTypeCommentaireCollection")));
listesId.put("prefixe", Integer.valueOf(configuration.get("listePrefixes")));
listesId.put("suffixes", Integer.valueOf(configuration.get("listeSuffixes")));
listesId.put("sexe", Integer.valueOf(configuration.get("listeSexe")));
listesId.put("tel", Integer.valueOf(configuration.get("listeTel")));
listesId.put("region", Integer.valueOf(configuration.get("listeRegions")));
listesId.put("dureesIndexation", Integer.valueOf(configuration.get("listeDureesIndexation")));
listesId.put("frequencesIndexation", Integer.valueOf(configuration.get("listeFrequencesIndexation")));
listesId.put("langues", Integer.valueOf(configuration.get("listeLangues")));
listesId.put("nbElementsPage", Integer.valueOf(configuration.get("nbElementsPage")));
listesId.put("relationPersonnePublication", Integer.valueOf(configuration.get("relationPersonnePublication")));
urls.put("base", configuration.get("serviceBaseUrl"));
urls.put("cel", configuration.get("celUrl"));
urls.put("bogue", configuration.get("bogueUrl"));
urls.put("commentaire", configuration.get("commentaireUrl"));
}
/**
* Accesseur pour l'id d'une liste
*
* @return l'identifiant de la liste ou null s'il n'est pas trouvé
*/
public Integer getListeId(String code) {
if (listesId.containsKey(code)) {
return listesId.get(code);
}
return null;
}
/**
* Accesseur pour l'url de base du serveur jrest
*
* @return une url de la forme http://emplacement_serveur/jrest
*/
public String getServiceBaseUrl() {
return getUrl("base");
}
 
public String getUrl(String code) {
if (urls.containsKey(code)) {
return urls.get(code);
}
return null;
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/ValeurListe.java
New file
0,0 → 1,82
package org.tela_botanica.client.modeles;
 
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONString;
 
/**
* Table de hachage composée d'informations sur les Valeurs des listes, renvoyé par un objet de type DAO
* La clé est le nom de l'entite + le nom de l'entite parente
*
* @author david delon
*
*/
public class ValeurListe extends aDonneeListe<Valeur> {
/**
* Identifiant pour sérialisé l'objet...
*/
private static final long serialVersionUID = 7784635999621813450L;
private int id = 0;
/**
* Constructeur sans paramètres
*/
public ValeurListe() {
super();
}
/**
* Constructeur avec paramètre
* @param taille la taille de la table de hachage
*/
public ValeurListe(int taille) {
super(taille);
}
/**
* Constructeur pour une liste d'institutions
* @param dates
*/
public ValeurListe(JSONArray liste) {
super(liste.size());
this.constuireObjet(liste);
}
 
public ValeurListe(JSONString listeId, JSONArray listeValeurs) {
super(listeValeurs.size());
this.setId(Integer.parseInt(listeId.stringValue()));
this.constuireObjet(listeValeurs);
}
private void constuireObjet(JSONArray liste) {
final int taillemax = liste.size();
for (int i = 0; i < taillemax; i++) {
JSONObject listeValeur = liste.get(i).isObject();
if (listeValeur != null) {
Valeur valeur = new Valeur(listeValeur);
this.put(valeur.getId(), valeur);
}
}
}
/**
* @param id l'identifiant à définir
*/
public void setId(int id) {
this.id = id;
}
 
/**
* @return l'identifiant de la liste
*/
public Integer getId() {
return id;
}
public void ajouter(Valeur val) {
this.put(val.getId(), val);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/Aide.java
New file
0,0 → 1,42
package org.tela_botanica.client.modeles;
 
import com.extjs.gxt.ui.client.data.BaseTreeModel;
 
public class Aide extends BaseTreeModel {
 
private static final long serialVersionUID = 4660015084509968872L;
 
public Aide() {
}
 
public Aide(String n) {
set("nom", n);
}
 
public Aide(String nom, String code, String auteur, String groupe) {
set("nom", nom);
set("code", code);
set("auteur", auteur);
set("groupe", groupe);
}
 
public String getNom() {
return (String) get("nom");
}
public String getCode() {
return (String) get("code");
}
 
public String getAuteur() {
return (String) get("auteur");
}
 
public String getGroupe() {
return (String) get("groupe");
}
 
public String toString() {
return getNom();
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/Menu.java
New file
0,0 → 1,50
package org.tela_botanica.client.modeles;
 
import java.io.Serializable;
 
import com.extjs.gxt.ui.client.data.BaseTreeModel;
 
public class Menu extends BaseTreeModel implements Serializable {
 
/**
* Identifiant pour sérialisé l'objet...
*/
private static final long serialVersionUID = 4;
 
public Menu() {
}
 
public Menu(String nom) {
set("nom", nom);
}
public Menu(String nom, String code) {
set("nom", nom);
set("code", code);
}
 
public Menu(String nom, BaseTreeModel[] enfant) {
this(nom);
for (int i = 0; i < enfant.length; i++) {
add(enfant[i]);
}
}
 
public String getNom() {
return get("nom");
}
public void setNom(String nom) {
set("nom", nom);
}
public String getCode() {
return get("code");
}
public void setCode(String code) {
set("code", code);
}
 
public String toString() {
return getNom()+" - Nbre enfant :"+this.getChildCount();
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/MenuApplicationId.java
New file
0,0 → 1,12
package org.tela_botanica.client.modeles;
 
public class MenuApplicationId {
public static final String ACCUEIL = "Accueil";
public static final String PROJET = "Projets";
public static final String STRUCTURE = "Structures";
public static final String COLLECTION = "Collections";
public static final String PERSONNE = "Personnes";
public static final String PUBLICATION = "Publications";
public static final String COMMENTAIRE = "Commentaires";
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/personne/Personne.java
New file
0,0 → 1,304
package org.tela_botanica.client.modeles.personne;
 
import java.util.Date;
import java.util.Iterator;
import java.util.Set;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.publication.PublicationAPersonneListe;
import org.tela_botanica.client.util.UtilString;
 
import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.json.client.JSONObject;
 
public class Personne extends aDonnee {
 
private static final long serialVersionUID = -6974716696155349332L;
 
public static final String PREFIXE = "cp";
public static final String TELEPHONE_FIXE = "FIX";
public static final String TELEPHONE_GSM = "GSM";
public static final String TELEPHONE_FAX = "FAX";
public static final String ETRE_DECEDE = "30745";
public static final String ETRE_VIVANT = "30746";
private PublicationAPersonneListe publicationsLiees= null;
public Personne() {
}
public Personne(JSONObject personne) {
initialiserModele(personne);
//Ajout du champ courriel principal
this.setCourrielPrinc(this.getInfoDenormaliseParPosition(this.renvoyerValeurCorrecte("truk_courriel"), 1));
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
public Object obtenirValeurChamp(String nomChamp) {
return renvoyerValeurCorrecte(nomChamp);
}
public Date getDate(String nomChamp) {
String strDate = renvoyerValeurCorrecte(nomChamp);
Date dateRetour = null;
try {
if ((strDate != null) && (!strDate.equals("0000-00-00"))) {
dateRetour = DateTimeFormat.getFormat("yyyy-MM-dd").parseStrict(strDate);
}
} catch (StringIndexOutOfBoundsException e) {
GWT.log("Impossible de parser la date " + strDate, e);
}
return dateRetour;
}
public String getString(String nomChamp) {
return String.valueOf(renvoyerValeurCorrecte(nomChamp));
}
//Traitement des truks
protected void remplacerTypeDansChaineDenormalise(String champ, String type, Object valeur) {
if (valeur != null && !valeur.equals("")) {
ajouterChaineDenormaliseAvecType(champ, type, valeur);
} else {
supprimerTypeDansChaineDenormalise(champ, type);
}
}
/**
* Ajoute un nouvel élément sans type à une chaine dénormalisée.
* Champ de type "truk" contenant seulement des valeurs séparées par ";;".
* Si l'élément existe déjà, il ne sera pas ajouté.
*
* @param champ le nom du champ dénormalisé
* @param valeur la valeur à ajouter
*/
protected void ajouterChaineDenormalise(String champ, Object valeur) {
if (valeur instanceof String) {
String chaineExistante = renvoyerValeurCorrecte(champ);
if (chaineExistante.equals("")) {
this.set(champ, valeur);
} else {
// Si la valeur à ajouter n'est pas déjà présente, nous l'ajoutons
if (!chaineExistante.matches("(^|"+SEPARATEUR_VALEURS+")"+valeur+"("+SEPARATEUR_VALEURS+"|$)")) {
this.set(champ, chaineExistante+SEPARATEUR_VALEURS+valeur);
}
}
}
}
// ID PERSONNE
public String getId() {
return renvoyerValeurCorrecte("id_personne");
}
public void setId(String personneId) {
this.set("id_personne", personneId);
}
// ID PROJET
public String getIdProjet() {
return renvoyerValeurCorrecte("ce_projet");
}
// NOM COMPLET
public String getNomComplet() {
return renvoyerValeurCorrecte("fmt_nom_complet");
}
public void setNomComplet(String nomComplet) {
this.set("fmt_nom_complet", nomComplet);
}
public void setFmtNomComplet(String prefixe, String suffixe) {
String fmtNomComplet = "";
if ((prefixe != null)&&(!prefixe.trim().equals(""))) {
fmtNomComplet += prefixe + " ";
}
if ((this.getPrenom()!=null)&&(!this.getPrenom().trim().equals(""))) {
fmtNomComplet += this.getPrenom() + " ";
}
if ((this.getNom()!=null)&&(!this.getNom().trim().equals(""))) {
fmtNomComplet += this.getNom() + " ";
}
if ((suffixe!=null)&&(!suffixe.trim().equals(""))) {
fmtNomComplet += suffixe;
}
 
setNomComplet(UtilString.ucFirst(fmtNomComplet));
}
// NOM
public String getNom() {
return renvoyerValeurCorrecte("nom");
}
public void setNom(String nom) {
set("nom", nom);
}
// PRÉNOM
public String getPrenom() {
return renvoyerValeurCorrecte("prenom");
}
public void setPrenom(String prenom) {
set("prenom", prenom);
}
// TÉLÉPHONE
public String getTelephone() {
return renvoyerValeurCorrecte("truk_telephone");
}
public void setTelephone(String t) {
this.set("truk_telephone", t);
}
public void ajouterTelephone(String type, Object valeur) {
ajouterChaineDenormaliseAvecType("truk_telephone", type, valeur);
}
public String selectionnerTelephone(String type) {
return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), type);
}
// FAX
public String getFax() {
return renvoyerValeurCorrecte("truk_fax");
}
public void setFax(String f) {
this.set("truk_fax", f);
}
public void ajouterFax(Object valeur) {
ajouterChaineDenormalise("truk_fax", valeur);
}
public String selectionnerFax(int position) {
return getInfoDenormaliseParPosition(renvoyerValeurCorrecte("truk_fax"), position);
}
// COURRIEL
public String getCourriel() {
return renvoyerValeurCorrecte("truk_courriel");
}
public void setCourriel(String c) {
this.set("truk_courriel", c);
}
public void ajouterCourriel(String c) {
ajouterChaineDenormalise("truk_courriel", c);
}
public String selectionnerCourriel(int position) {
return getInfoDenormaliseParPosition(renvoyerValeurCorrecte("truk_courriel"), position);
}
// SPÉCIALITÉ
public String getSpecialite() {
return renvoyerValeurCorrecte("ce_truk_specialite");
}
public void setSpecialite(String s) {
// Pas de liste pour l'instant, donc tout passe dans "Autre".
setChaineDenormaliseUnique("ce_truk_specialite", "AUTRE", s);
}
public String afficherSpecialite() {
return getChaineDenormaliseUnique("ce_truk_specialite");
}
// NAISSANCE DATE
public String getNaissanceDate() {
String dateNaiss = "";
dateNaiss = get("naissance_date");
if (UtilString.isEmpty(dateNaiss)||dateNaiss.equals("0000-00-00")) {
dateNaiss = Mediateur.i18nC.inconnue();
}
return dateNaiss;
}
public void setNaissanceDate(Date naissanceDate) {
if (naissanceDate != null) {
this.set("naissance_date", DateTimeFormat.getFormat("yyyy-MM-dd").format(naissanceDate));
}
}
// NAISSANCE LIEU
public String getNaissanceLieu() {
return renvoyerValeurCorrecte("naissance_lieu");
}
public void setNaissanceLieu(String naissanceLieu) {
this.set("naissance_lieu", naissanceLieu);
}
// DÉCÉS
public boolean estDecedee() {
String ceDeces = getDeces();
if (ceDeces.isEmpty() || ceDeces.equals(ETRE_DECEDE)) {
return false;
} else {
return true;
}
}
public String getDeces() {
return renvoyerValeurCorrecte("ce_deces");
}
public void setDeces(String deces) {
set("ce_deces", deces);
}
public void setDeces(Date decesDate, String lieuDeces) {
set("ce_deces", ETRE_DECEDE);
setDecesDate(decesDate);
setDecesLieu(lieuDeces);
}
public void setNonDecedee() {
set("ce_deces", ETRE_VIVANT);
setDecesDate(null);
setDecesLieu("");
}
// DÉCÉS DATE
public String getDecesDate() {
String dateDeces = renvoyerValeurCorrecte("deces_date");
if (UtilString.isEmpty(dateDeces) || dateDeces.equals("0000-00-00")) {
dateDeces = Mediateur.i18nC.inconnue();
}
return dateDeces;
}
public void setDecesDate(Date decesDate) {
if (decesDate != null) {
this.set("deces_date", DateTimeFormat.getFormat("yyyy-MM-dd").format(decesDate));
} else {
this.set("deces_date", "");
}
}
// DÉCÉS LIEU
public String getDecesLieu() {
return renvoyerValeurCorrecte("deces_lieu");
}
public void setDecesLieu(String decesLieu) {
this.set("deces_lieu", decesLieu);
}
// PARAMÊTRE
public String getParametre() {
return renvoyerValeurCorrecte("parametre");
}
public void setParametre(String parametre) {
this.set("parametre", parametre);
}
public void setCourrielPrinc(String courriel) {
this.set("_courriel_princ_", courriel);
}
public String getCourrielPrinc() {
return (String) this.get("_courriel_princ_");
}
// PUBLICATIONS LIÉES
public PublicationAPersonneListe getPublicationsLiees() {
return publicationsLiees;
}
public void setPublicationsLiees(PublicationAPersonneListe relationsCollectionAPublication) {
publicationsLiees = relationsCollectionAPublication;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/personne/PersonneListe.java
New file
0,0 → 1,162
package org.tela_botanica.client.modeles.personne;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.interfaces.ListePaginable;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.aDonneeListe;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.i18n.client.Dictionary;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
 
/**
* Table de hachage composée d'informations sur les Valeurs des listes, renvoyé
* par un objet de type DAO La clé est le nom de l'entite + le nom de l'entite
* parente
*
* @author david delon
*
*/
public class PersonneListe extends aDonneeListe<Personne> implements
ListePaginable {
 
private static final long serialVersionUID = 2930530504922300155L;
private int currentPage = 0;
private int nbElementsPage = Integer.valueOf(((Dictionary) Dictionary
.getDictionary("configuration")).get("nbElementsPage"));
private int nbElementsTotal;
private Rafraichissable vueARafraichir;
 
/**
* Constructeur sans paramètres
*/
public PersonneListe() {
super();
}
 
/**
* Constructeur avec paramètre
*
* @param taille
* la taille de la table de hachage
*/
public PersonneListe(int taille) {
super(taille);
}
 
/**
* Constructeur pour une liste de personne
*
* @param dates
*/
public PersonneListe(JSONArray personneListe) {
super(personneListe.size());
 
final int taillemax = personneListe.size();
for (int i = 0; i < taillemax; i++) {
JSONObject personneCourante = personneListe.get(i).isObject();
 
if (personneCourante != null) {
Personne personne = new Personne(personneCourante);
this.put(personne.getId(), personne);
}
}
}
 
public PersonneListe(JSONArray personneListe, JSONNumber nbElements,
Rafraichissable vueARafraichir) {
super(personneListe.size());
 
this.nbElementsTotal = Integer.valueOf(nbElements.toString());
final int taillemax = personneListe.size();
for (int i = 0; i < taillemax; i++) {
JSONObject personneCourante = personneListe.get(i).isObject();
 
if (personneCourante != null) {
Personne personne = new Personne(personneCourante);
this.put(personne.getId(), personne);
}
}
 
this.vueARafraichir = vueARafraichir;
}
 
public int[] getPageTable() {
int[] page = new int[4];
 
// nombre de pages au total
page[0] = calculerNbPages();
 
// Page En Cours
page[1] = currentPage;
 
// nbElementsParPage
page[2] = nbElementsPage;
 
// et le dernier le nombre total d'éléments
page[3] = nbElementsTotal;
 
return page;
}
 
/**
* Calcule le nombre de pages nécessaires pour afficher un nombre d'élements
* donnés en fonction de la taille de page en cours
*
* @return le nombre de pages
*/
public int calculerNbPages() {
// A cause de la betise de java pour les conversion implicite on fait
// quelques conversions manuellement
// pour eviter qu'il arrondisse mal la division
// nombre de pages = (nombre d'element / taille de la page) arrondie à
// l'entier superieur
 
double nPage = (1.0 * nbElementsTotal) / (1.0 * nbElementsPage);
double nPageRound = Math.ceil(nPage);
Double nPageInt = new Double(nPageRound);
 
// on convertit en entier
return nPageInt.intValue();
}
 
public void changerNumeroPage(int pageCourante) {
currentPage = pageCourante;
selectionnerPersonne();
}
 
public void changerTaillePage(int nouvelleTaillePage) {
nbElementsPage = nouvelleTaillePage;
selectionnerPersonne();
}
 
public void recharger() {
selectionnerPersonne();
}
 
public void setPageCourante(int pageCourante) {
this.currentPage = pageCourante;
}
 
public void setTaillePage(int taillePage) {
this.nbElementsPage = taillePage;
}
 
public void selectionnerPersonne() {
Mediateur mediateur = (Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerPersonne(vueARafraichir, null, null, currentPage,
nbElementsPage);
}
 
public void filtrerParNom(String nom) {
Mediateur mediateur = (Mediateur) Registry.get(RegistreId.MEDIATEUR);
Personne personne = new Personne();
personne.setNom("%" + nom + "%");
mediateur.selectionnerPersonne(vueARafraichir, personne, null, currentPage,
nbElementsPage);
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/personne/PersonneAsyncDao.java
New file
0,0 → 1,129
package org.tela_botanica.client.modeles.personne;
 
import java.util.HashMap;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.util.UtilDAO;
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONValue;
 
public class PersonneAsyncDao {
private static final String SERVICE_NOM = "CoelPersonne";
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
public PersonneAsyncDao(Rafraichissable vue) {
vueARafraichir = vue;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
 
public void selectionner(String personneId, String projetId, String nomComplet, final int pageCourante, final int nbElements) {
System.out.println(pageCourante +" " + nbElements);
String[] parametres = {personneId, projetId, nomComplet};
HashMap<String, String> restrictions = new HashMap<String, String>();
restrictions.put("start", String.valueOf(pageCourante*nbElements));
if (nbElements != -1) {
restrictions.put("limit", String.valueOf(nbElements));
}
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
// Si la requête est un succès, réception d'un tableau
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
// Transformation du tableau JSON réponse en ListeInstitution
Information info = new Information("liste_personne");
PersonneListe personnes;
if (reponse.get(0).isArray() != null) {
personnes = new PersonneListe(reponse);
} else {
personnes = new PersonneListe(reponse.get(1).isArray(), reponse.get(0).isNumber(), vueARafraichir);
}
personnes.setTaillePage(nbElements);
personnes.setPageCourante(pageCourante);
info.setDonnee(0, personnes);
// et on met à jour le demandeur des données
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un tableau JSON et vaut : "+responseValue.toString(), null);
}
}
});
}
public void ajouter(Personne personne) {
String postDonneesEncodees = personne.obtenirChainePOST();
postDonneesEncodees += "&cmhl_ce_modifier_par=" + utilisateurId;
 
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("ajout_personne");
String structureIdOuMessage = responseValue.isString().stringValue();
if (structureIdOuMessage.matches("^[0-9]+$")) {
info.setDonnee(structureIdOuMessage);
} else {
info.setMessage(structureIdOuMessage);
}
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void modifier(Personne personne) {
String postDonneesEncodees = personne.obtenirChainePOST();
postDonneesEncodees += "&cmhl_ce_modifier_par=" + utilisateurId;
GWT.log(postDonneesEncodees, null);
String[] parametres = {personne.getId()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
Information info = new Information("modification_personne");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
 
public void supprimer(String personnesId) {
String[] parametres = {utilisateurId, personnesId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("suppression_personne");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/aDonnee.java
New file
0,0 → 1,457
package org.tela_botanica.client.modeles;
 
import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
 
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilArray;
 
import com.extjs.gxt.ui.client.core.FastMap;
import com.extjs.gxt.ui.client.data.BaseModelData;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.JSONObject;
 
/**
* @author jpm
*
*/
public abstract class aDonnee extends BaseModelData implements Serializable {
 
private static final long serialVersionUID = 3527760464061629791L;
public static final String TYPE_AUTRE = "AUTRE";
public static final String TYPE_TOTAL = "TOTAL";
public static final String SEPARATEUR_TYPE_VALEUR = "##";
public static final String SEPARATEUR_VALEURS = ";;";
public static final String SEPARATEUR_DONNEES = "||";
public static final String ETAT_AJOUTE = "A";
public static final Object ETAT_MODIFIE = "M";
public static final String VALEUR_NULL = "NC";
protected abstract String getPrefixe();
public String getDateModification() {
return (String) renvoyerValeurCorrecte("cmhl_date_modification");
}
public String getNotes() {
return (String) renvoyerValeurCorrecte("cmhl_notes");
}
public String getIdModifierPar() {
return (String) renvoyerValeurCorrecte("cmhl_ce_modifier_par");
}
public String getIdEtat() {
return (String) renvoyerValeurCorrecte("cmhl_ce_etat");
}
public String getIp() {
return (String) renvoyerValeurCorrecte("cmhl_ip");
}
protected void initialiserModele(JSONObject jsonObjet) {
// l'objet JSON est une table de hachage
Set<String> im = jsonObjet.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
if (cle.startsWith(getPrefixe()+"_")) {
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+getPrefixe()+"_", "");
// Sinon, nous ajoutons la clé avec une valeur vide
String valeur = "";
if (jsonObjet.get(cle).isString() != null) {
valeur = jsonObjet.get(cle).isString().stringValue();
}
this.set(cleObjet, valeur);
}
}
}
/**
* Pour éviter que l'on traite des valeurs nulles à l'affichage on passe par
* cette fonction qui retire les charactères nuls qui font planter
* l'affichage, il ne faut pas utiliser get directement
*
* @param cle
* @return la valeur associée à la clé
*/
protected String renvoyerValeurCorrecte(String cle) {
String sortie = "";
if (this.get(cle) != null) {
String valeur = ""+this.get(cle);
if (! valeur.equals("null")) {
char nullChar = '\u0000';
String sNull = "" + nullChar;
valeur = valeur.replaceAll(sNull, "");
sortie = valeur;
}
}
return sortie;
}
/**
* Ajoute un nouvel élément avec son type à une chaine dénormalisée.
* Champ de type "truk" contenant des valeurs séparées par ";;" qui elle même possèdent un type séparé par "##".
* Si l'élément existe déjà, il ne sera pas ajouté.
*
* @param champ le nom du champ dénormalisé
* @param type le type de la valeur à ajouter
* @param valeur la valeur à ajouter
*/
protected void ajouterChaineDenormaliseAvecType(String champ, String type, Object valeur) {
if (valeur instanceof String) {
String chaineExistante = renvoyerValeurCorrecte(champ);
if (chaineExistante.equals("")) {
this.set(champ, type+SEPARATEUR_TYPE_VALEUR+valeur);
} else {
// Si la valeur à ajouter n'est pas déjà présente, nous l'ajoutons
if (!chaineExistante.matches("(^|"+SEPARATEUR_VALEURS+")"+type+SEPARATEUR_TYPE_VALEUR+valeur+"("+SEPARATEUR_VALEURS+"|$)")) {
this.set(champ, chaineExistante+";;"+type+SEPARATEUR_TYPE_VALEUR+valeur);
}
}
}
}
protected void supprimerTypeDansChaineDenormalise(String champ, String type) {
String chaineExistante = renvoyerValeurCorrecte(champ);
if (!chaineExistante.equals("")) {
if (chaineExistante.matches("(?:^|.*"+SEPARATEUR_VALEURS+")"+type+SEPARATEUR_TYPE_VALEUR+".*")) {
chaineExistante = chaineExistante.replaceFirst("(^|.*"+SEPARATEUR_VALEURS+")"+type+SEPARATEUR_TYPE_VALEUR+".*?("+SEPARATEUR_VALEURS+".*|$)", "$1$2");
chaineExistante = chaineExistante.replaceAll("(.*)"+SEPARATEUR_VALEURS+SEPARATEUR_VALEURS+"(.*)", "$1"+SEPARATEUR_VALEURS+"$2");
chaineExistante = chaineExistante.replaceAll("^"+SEPARATEUR_VALEURS+"(.*)", "$1");
chaineExistante = chaineExistante.replaceAll("(.*)"+SEPARATEUR_VALEURS+"$", "$1");
this.set(champ, chaineExistante);
}
}
}
protected void remplacerTypeDansChaineDenormalise(String champ, String type, Object valeur) {
if (valeur != null && !valeur.equals("")) {
ajouterChaineDenormaliseAvecType(champ, type, valeur);
} else {
supprimerTypeDansChaineDenormalise(champ, type);
}
}
/**
* Ajoute un nouvel élément sans type à une chaine dénormalisée.
* Champ de type "truk" contenant seulement des valeurs séparées par ";;".
* Si l'élément existe déjà, il ne sera pas ajouté.
*
* @param champ le nom du champ dénormalisé
* @param valeur la valeur à ajouter
*/
protected void ajouterChaineDenormalise(String champ, Object valeur) {
if (valeur instanceof String) {
String chaineExistante = renvoyerValeurCorrecte(champ);
if (chaineExistante.equals("")) {
this.set(champ, valeur);
} else {
// Si la valeur à ajouter n'est pas déjà présente, nous l'ajoutons
if (!chaineExistante.matches("(^|"+SEPARATEUR_VALEURS+")"+valeur+"("+SEPARATEUR_VALEURS+"|$)")) {
this.set(champ, chaineExistante+SEPARATEUR_VALEURS+valeur);
}
}
}
}
/**
* Permet de constuire correctement une chaine dénormalisée unique (champ de type "ce_truk").
*
* @param champ le nom du champ dénormalisé
* @param type le type de la valeur à ajouter
* @param valeur la valeur à ajouter
*/
protected void setChaineDenormaliseUnique(String champ, String type, String valeur) {
if (valeur == null || valeur.equals("")) {
this.set(champ, "");
} else if (valeur instanceof String) {
if (((String) valeur).matches("^[0-9]+$")) {
this.set(champ, valeur);
} else {
this.set(champ, type+SEPARATEUR_TYPE_VALEUR+valeur);
}
}
}
/**
* Permet de récupérer pour l'affichage une chaine dénormalisée unique (champ de type "ce_truk").
*
* @param champ le nom du champ dénormalisé
*/
protected String getChaineDenormaliseUnique(String champ) {
String valeur = renvoyerValeurCorrecte(champ);
if (!valeur.equals("")) {
valeur = valeur.replaceFirst("^"+TYPE_AUTRE+SEPARATEUR_TYPE_VALEUR, "");
}
return valeur;
}
protected String getInfoDenormaliseParType(String chaineExistante, String type) {
String sortie = "";
if (!chaineExistante.equals("")) {
String[] valeurs = chaineExistante.split(SEPARATEUR_VALEURS);
for (int i = 0; i < valeurs.length; i++) {
if (valeurs[i].startsWith(type+SEPARATEUR_TYPE_VALEUR)) {
sortie = valeurs[i].replaceFirst("^"+type+SEPARATEUR_TYPE_VALEUR, "");
}
}
}
return sortie;
}
/**
* Permet de récupérer une map avec toutes les valeurs de la chaine truk sous la forme clé => valeur
*
* @param champ le nom du champ dénormalisé
* @return map ou liste en fonction du type de chaine truk (list si champ;;champ;; map si type##champ;;)
*/
public Object getChaineDenormaliseAsMapOrList(String champ) {
Object retourObjet = null;
String valeurChamp = renvoyerValeurCorrecte(champ);
if ((valeurChamp!=null)&&(!valeurChamp.trim().equals(""))) {
String[] valeurs = valeurChamp.split(SEPARATEUR_VALEURS);
if (valeurs.length > 0) {
if (valeurs[0].contains(SEPARATEUR_TYPE_VALEUR)) {
// Les champs sont typés, on en fait une Map
HashMap<String,String> mapValeurs = new HashMap<String,String>();
for (int i = 0; i < valeurs.length; i++) {
String typeEtValeur[] = valeurs[i].split(SEPARATEUR_TYPE_VALEUR);
mapValeurs.put(typeEtValeur[1], typeEtValeur[0]);
}
retourObjet = mapValeurs;
}
else {
//Les champs ne sont pas typés, on en fait une Liste
LinkedList<String> listeValeurs = new LinkedList<String>();
for (int i = 0; i < valeurs.length; i++) {
if ((valeurs[i]!=null)&&(!valeurs[i].equals(""))) {
listeValeurs.add(valeurs[i]);
}
}
retourObjet = listeValeurs;
}
}
}
return retourObjet;
}
/**
* Permet de modifier correctement une chaine dénormalisée (champ de type "truk").
* Remplace par la valeur de la première instance du type indiqué dans la chaine dénormalisée.
* Si aucun type n'est trouvé, nous en ajoutons un avec la nouvelle valeur.
*
* @param champ le nom du champ dénormalisé
* @param type le type de la valeur à modifier
* @param valeur la valeur pour le type en question
*/
protected void modifierChaineDenormaliseParType(String champ, String type, Object valeur) {
if (valeur == null || valeur.equals("")) {
supprimerTypeDansChaineDenormalise(champ, type);
} else if (valeur instanceof String) {
String chaineExistante = renvoyerValeurCorrecte(champ);
if (chaineExistante.equals("")) {
this.set(champ, type+SEPARATEUR_TYPE_VALEUR+valeur);
} else {
String[] valeurs = chaineExistante.split(SEPARATEUR_VALEURS);
HashMap<String,String> valeursModifiees = new HashMap<String,String>();
for (int i = 0; i < valeurs.length; i++) {
if (valeurs[i].startsWith(type+SEPARATEUR_TYPE_VALEUR)) {
valeursModifiees.put(type, type+SEPARATEUR_TYPE_VALEUR+valeur);
} else if (i == (valeurs.length -1) && !valeurs[i].startsWith(type+SEPARATEUR_TYPE_VALEUR)) {
valeursModifiees.put(valeurs[i].split(SEPARATEUR_TYPE_VALEUR)[0], valeurs[i]);
valeursModifiees.put(type, type+SEPARATEUR_TYPE_VALEUR+valeur);
} else {
valeursModifiees.put(valeurs[i].split(SEPARATEUR_TYPE_VALEUR)[0], valeurs[i]);
}
}
String[] tableauValeursModifiees = valeursModifiees.values().toArray(new String[valeursModifiees.size()]);
this.set(champ, UtilArray.implode(tableauValeursModifiees, SEPARATEUR_VALEURS));
}
}
}
protected String getInfoDenormaliseParPosition(String chaineExistante, int position) {
String sortie = "";
if (!chaineExistante.equals("")) {
String[] valeurs = chaineExistante.split(SEPARATEUR_VALEURS);
if (valeurs.length >= position) {
for (int i = 0; i < valeurs.length; i++) {
if (i == (position - 1)) {
if (valeurs[i].contains(SEPARATEUR_TYPE_VALEUR)) {
sortie = valeurs[i].replaceFirst("^[^#]+"+SEPARATEUR_VALEURS, "");
} else {
sortie = valeurs[i];
}
break;
}
}
}
}
return sortie;
}
/**
* Permet de modifier correctement une chaine dénormalisée (champ de type "truk").
* Remplace par la valeur l'instance dont la position a été indiquée.
* Si la chaine dénormalisée est vide, l'élement est ajouté quelque soit la position indiquée.
* Si la position est supérieure au nombre d'élément de la chaine dénormalisé, rien n'est modifié.
*
* @param champ le nom du champ dénormalisé
* @param position le type de la valeur à modifier
* @param valeur la valeur à remplacer à la position indiquée
*/
protected void modifierChaineDenormaliseParPosition(String champ, int position, Object valeur) {
if (valeur == null || valeur.equals("")) {
supprimerChaineDenormaliseParPosition(champ, position);
} else if (valeur instanceof String) {
String chaineExistante = renvoyerValeurCorrecte(champ);
if (chaineExistante.equals("")) {
this.set(champ, valeur);
} else {
String[] valeurs = chaineExistante.split(SEPARATEUR_VALEURS);
if (valeurs.length >= position) {
for (int i = 0; i < valeurs.length; i++) {
if (i == (position - 1)) {
valeurs[i] = (String) valeur;
break;
}
}
this.set(champ, UtilArray.implode(valeurs, SEPARATEUR_VALEURS));
}
}
}
}
protected void supprimerChaineDenormaliseParPosition(String champ, int position) {
String chaineExistante = renvoyerValeurCorrecte(champ);
if (!chaineExistante.equals("")) {
String[] valeurs = chaineExistante.split(SEPARATEUR_VALEURS);
HashMap<String,String> valeursModifiees = new HashMap<String,String>();
if (valeurs.length >= position) {
for (int i = 0; i < valeurs.length; i++) {
if (i != (position - 1)) {
valeursModifiees.put(""+i, valeurs[i]);
}
}
String[] tableauValeursModifiees = valeursModifiees.values().toArray(new String[valeursModifiees.size()]);
this.set(champ, UtilArray.implode(tableauValeursModifiees, SEPARATEUR_VALEURS));
}
}
}
/** (non-Javadoc)
* @see java.lang.Object#toString()
*/
public String toString() {
String sortie = "";
// Champs du BaseModelData
Set<String> proprietes = this.getProperties().keySet();
TreeSet<String> proprietesTriees = new TreeSet<String>(proprietes);
for (Iterator<String> it = proprietesTriees.iterator(); it.hasNext();) {
String cle = it.next();
if (this.get(cle) != null && !this.get(cle).equals("")) {
sortie += cle+" : "+this.get(cle).toString()+"\n";
}
}
return sortie;
}
public Boolean comparer(BaseModelData objetAComparer) {
Boolean retour = true;
Map<String, Object> a = this.getProperties();
Map<String, Object> b = objetAComparer.getProperties();
if (a.size() != b.size()) {
retour = false;
} else {
Set<String> cles = a.keySet();
Iterator<String> it = cles.iterator();
while (it.hasNext()) {
String cle = it.next();
if (a.get(cle) != null && !a.get(cle).equals(b.get(cle))) {
retour = false;
break;
}
}
}
return retour;
}
public Object cloner(BaseModelData nouvelleInstance) {
Map<String, Object> proprietes = this.getProperties();
Set<String> cles = proprietes.keySet();
for (Iterator<String> it = cles.iterator(); it.hasNext();) {
String cle = it.next();
nouvelleInstance.set(cle, this.get(cle));
}
return nouvelleInstance;
}
/**
* Renvoie une chaîne de caractère formatée et encodée pour POST avec toutes les propriétés du modèle
* */
public String obtenirChainePOST() {
String post = "";
FastMap<?> proprietees = (FastMap<?>) getProperties();
Collection<String> cles = proprietees.keySet();
Iterator<String> it = cles.iterator();
while (it.hasNext()) {
String cle = it.next();
//Les Radio Box couplées à la fonction autobind créer des variables gxt.RadioGroup.X, qu'il ne faut pas mettre dans la requête
if (!cle.startsWith("gxt.")&&!cle.matches("^_.+_$")) {
post += getPrefixe() + "_" + cle + "=" + URL.encodeComponent(renvoyerValeurCorrecte(cle));
if (it.hasNext()) {
post += "&";
}
}
}
return post;
}
/**
* Met à jour l'objet this avec les données de l'objet passé en paramêtre.
*
* */
public void mettreAJour(aDonnee nouveau) {
Collection<String> cles = nouveau.getProperties().keySet();
Iterator<String> it = cles.iterator();
while (it.hasNext()) {
String cle = it.next();
if (!this.get(cle).equals(nouveau.get(cle))) {
this.set(cle, nouveau.get(cle));
}
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/aDonneeListe.java
New file
0,0 → 1,28
package org.tela_botanica.client.modeles;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
 
abstract public class aDonneeListe<T> extends HashMap<String,T> {
private static final long serialVersionUID = -8567158151109232877L;
 
public aDonneeListe() {
super();
}
public aDonneeListe(int taille) {
super(taille);
}
public List<T> toList() {
List<T> listeACreer = new ArrayList<T>();
Iterator<String> it = keySet().iterator();
while (it.hasNext()) {
listeACreer.add((T) get(it.next()));
}
return listeACreer;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/Utilisateur.java
New file
0,0 → 1,217
package org.tela_botanica.client.modeles;
 
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
 
import com.google.gwt.json.client.JSONObject;
 
public class Utilisateur extends aDonnee {
 
private static final long serialVersionUID = -4016615552202089985L;
public static final String PREFIXE = "cp";
public Utilisateur() {
initialiserUtilisateur(null, false);
}
 
public Utilisateur(String id, boolean identifie) {
initialiserUtilisateur(id, identifie);
}
public Utilisateur(JSONObject utilisateur) {
// l'objet JSON est une table de hachage
Set<String> im = utilisateur.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
// Valeur est vide par défaut
String valeur = "";
if (utilisateur.get(cle).isString() != null) {
valeur = utilisateur.get(cle).isString().stringValue();
this.set(cleObjet, valeur);
} else {
this.set(cleObjet, valeur);
}
}
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
 
private void initialiserUtilisateur(String id, boolean etreIdentifie) {
setId(id);
setIdentification(etreIdentifie);
}
// ID
/**
* Retourne l'id de l'utilisateur ou l'identifiant de session si la personne n'est pas identifiée.
* @return String id de l'utilisateur
*/
public String getId() {
return renvoyerValeurCorrecte("id_personne");
}
public void setId(String id) {
set("id_personne", id);
}
// NOM COMPLET
/**
* Retourne le nom complet et formaté de l'utilisateur
* @return String nom complet
*/
public String getNomComplet() {
return renvoyerValeurCorrecte("fmt_nom_complet");
}
public void setNomComplet(String nom_complet) {
set("fmt_nom_complet", nom_complet);
}
 
// PRÉNOM
/**
* Retourne le prénom de l'utilisateur
* @return String prénom
*/
public String getPrenom() {
return renvoyerValeurCorrecte("prenom");
}
public void setPrenom(String prenom) {
set("prenom", prenom);
}
// NOM
/**
* Retourne le nom de l'utilisateur
* @return String nom
*/
public String getNom() {
return renvoyerValeurCorrecte("nom");
}
public void setNom(String nom) {
set("nom", nom);
}
// LOGIN
/**
* Retourne le login de l'utilisateur ou l'identifiant de session si la personne n'est pas identifiée.
* @return String login
*/
public String getLogin() {
return renvoyerValeurCorrecte("login");
}
public void setLogin(String l) {
set("login", l);
}
// MOT DE PASSE
/**
* Retourne le mot de passe de l'utilisateur
* @return String mot de passe
*/
public String getMotDePasse() {
return renvoyerValeurCorrecte("mot_de_passe");
}
public void setMotDePasse(String mdp) {
set("mot_de_passe", mdp);
}
// PARAMÈTRE
public String getParametre() {
String xml = renvoyerValeurCorrecte("parametre");
if (xml.equals("")) {
xml = "<?xml version='1.0' encoding='UTF-8'?>\n<parametres>\n</parametres>";
}
return xml;
}
public void setParametre(String param) {
set("parametre", param);
}
// +---------------------------------------------------------------------------------------------------------------+
// IDENTIFIÉ
/**
* Retourne vrai si utilisateur est identifié.
* @return boolean
*/
public boolean isIdentifie() {
if (get("identifie").equals(true) && getLicence().equals("1")) {
return true;
} else {
return false;
}
}
public void setIdentification(Boolean bool) {
set("identifie", bool);
}
// EXISTE DANS ANNUAIRE
/**
* Renvoie si l'utilisateur est présent dans l'annuaire ou non
* @return vrai s'il est présent
*/
@SuppressWarnings("unchecked")
public boolean existeDansAnnuaire() {
HashMap<String, String> infosAnnuaire = (HashMap<String, String>) get("infosAnnuaire");
return !(infosAnnuaire == null || infosAnnuaire.size() == 0);
}
// INFOS DANS ANNUAIRE
@SuppressWarnings("unchecked")
public HashMap<String, String> getInfosAnnuaire() {
if (existeDansAnnuaire()) {
return (HashMap<String, String>) get("infosAnnuaire");
} else {
return null;
}
}
public void setInfosAnnuaire(JSONObject infosAnnuaire) {
// l'objet JSON est une table de hachage
Set<String> im = infosAnnuaire.keySet();
HashMap<String, String> mapAnnuaire = new HashMap<String, String>();
// Parcourt pour chaque clé
Iterator<String> it = im.iterator();
while (it.hasNext()) {
String cle = it.next();
if (infosAnnuaire.get(cle).isString() != null) {
String valeur = infosAnnuaire.get(cle).isString().stringValue();
mapAnnuaire.put(cle, valeur);
}
}
if (mapAnnuaire.size() > 0) {
this.set("infosAnnuaire", mapAnnuaire);
}
}
public void majUtilisateurInfoAnnuaire() {
HashMap<String, String> infosAnnuaire = getInfosAnnuaire();
setNom(infosAnnuaire.get("nom"));
setPrenom(infosAnnuaire.get("prenom"));
setLogin(infosAnnuaire.get("courriel"));
setMotDePasse(infosAnnuaire.get("mot_de_passe"));
}
// LICENCE ACCEPTÉE
public void setLicence(String licence) {
this.set("licenceAcceptee", licence);
}
public String getLicence() {
if (this.get("licenceAcceptee") != null) {
return this.get("licenceAcceptee");
} else {
return "";
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/UniteBase.java
New file
0,0 → 1,112
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.util.UtilString;
 
import com.extjs.gxt.ui.client.data.BaseModelData;
 
public class UniteBase extends BaseModelData {
private static final long serialVersionUID = 394843761854792528L;
public static final String COMPTE_EXACT = "E";
public static final String COMPTE_APPROXIMATIF = "A";
public UniteBase() {
}
public UniteBase(String id, String type, int nombre, String precision, String format, int nombreParts, String precisionPart, int nombreSp, String precisionSp) {
setId(id);
setType(type);
setNombre(nombre);
setPrecision(precision);
setFormat(format);
setTypeAutre(false);
}
public String getId() {
return renvoyerValeurCorrecte((String) get("id"));
}
public void setId(String id) {
set("id", id);
}
public String getType() {
return renvoyerValeurCorrecte((String) get("type"));
}
public void setType(String type) {
set("type", type);
}
 
public double getNombre() {
if (get("nombre") == null) {
return new Double(0);
}
return get("nombre");
}
public void setNombre(double nombre) {
set("nombre", nombre);
}
public String getPrecision() {
return renvoyerValeurCorrecte((String) get("precision"));
}
public void setPrecision(String precision) {
set("precision", precision);
}
public String getFormat() {
return renvoyerValeurCorrecte((String) get("format"));
}
public void setFormat(String format) {
set("format", format);
}
public double getNombrePart() {
if (get("nombre_part") == null) {
return new Double(0);
}
return get("nombre_part");
}
public void setNombrePart(double nombre) {
set("nombre_part", nombre);
}
public String getPrecisionPart() {
return renvoyerValeurCorrecte((String) get("precision_part"));
}
public void setPrecisionPart(String precision) {
set("precision_part", precision);
}
public double getNombreSp() {
if (get("nombre_sp") == null) {
return new Double(0);
}
return get("nombre_sp");
}
public void setNombreSp(double nombre) {
set("nombre_sp", nombre);
}
public String getPrecisionSp() {
return renvoyerValeurCorrecte((String) get("precision_sp"));
}
public void setPrecisionSp(String precision) {
set("precision_sp", precision);
}
public boolean getTypeAutre() {
return get("type_autre");
}
public void setTypeAutre(boolean bool) {
set("type_autre", bool);
}
private String renvoyerValeurCorrecte(String valeur) {
String valeurCorrecte = "";
if (!UtilString.isEmpty(valeur)) {
valeurCorrecte = valeur;
}
return valeurCorrecte;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionACommentaire.java
New file
0,0 → 1,105
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.commentaire.Commentaire;
 
import com.google.gwt.json.client.JSONObject;
 
public class CollectionACommentaire extends aDonnee {
private static final long serialVersionUID = 8751553802444398035L;
public static final String PREFIXE = "ccac";
private Commentaire commentaireLiee = null;
public CollectionACommentaire() {
initialiser(new JSONObject(), false);
}
public CollectionACommentaire(JSONObject collectionACommentaireListe) {
initialiser(collectionACommentaireListe, true);
}
public CollectionACommentaire(JSONObject collectionACommentaireListe, boolean chargerCommentaire) {
initialiser(collectionACommentaireListe, chargerCommentaire);
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
private void initialiser(JSONObject collectionACommentaireListe, boolean chargerCommentaire) {
if (chargerCommentaire) {
setCommentaire(new Commentaire(collectionACommentaireListe, false));
} else {
setCommentaire(new Commentaire());
}
initialiserModele(collectionACommentaireListe);
initialiserChampsPourGrille();
}
// COMMENTAIRE
public Commentaire getCommentaire() {
return commentaireLiee;
}
public void setCommentaire(Commentaire commentaire) {
commentaireLiee = commentaire;
initialiserChampsPourGrille();
if (commentaire != null) {
setIdCommentaire(commentaire.getId());
}
}
private void initialiserChampsPourGrille() {
set("_type_", getType());
set("_titre_", getCommentaire().getTitre());
set("_texte_", getCommentaire().getTexte());
set("_ponderation_", getCommentaire().getPonderation());
set("_public_", getCommentaire().getPublic());
set("_etat_", "");
}
// ID
/** Génère un identifiant de CollectionACommentaire.
*
* C'est une concaténation des clés primaires de la table coel_collection_a_commentaire séparées par un tiret "-".
*
* @return identifiant unique d'une relation "collection à commentaire".
*/
public String getId() {
String idCollection = getIdCollection();
String idCommentaire = getIdCommentaire();
if (idCollection.equals("") && idCommentaire.equals("")) {
return null;
} else {
return (idCollection+"-"+idCommentaire);
}
}
//+---------------------------------------------------------------------------------------------------------------+
// CHAMPS PROVENANT de la TABLE COEL_COLLECTION_A_COMMENTAIRE
// ID COLLECTION
public String getIdCollection() {
return renvoyerValeurCorrecte("id_collection");
}
public void setIdCollection(String idCollection) {
set("id_collection", idCollection);
}
// ID COMENTAIRE
public String getIdCommentaire() {
return renvoyerValeurCorrecte("id_commentaire");
}
public void setIdCommentaire(String ic) {
set("id_commentaire", ic);
}
// TRUCK TYPE
public String getType() {
return renvoyerValeurCorrecte("truk_type");
}
public void setType(String type) {
set("truk_type", type);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionACommentaireListe.java
New file
0,0 → 1,34
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.modeles.aDonneeListe;
 
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
 
public class CollectionACommentaireListe extends aDonneeListe<CollectionACommentaire> {
 
private static final long serialVersionUID = 1L;
 
public CollectionACommentaireListe() {
super();
}
public CollectionACommentaireListe(int taille) {
super(taille);
}
public CollectionACommentaireListe(JSONArray collectionACommentaires) {
super(collectionACommentaires.size()) ;
final int taillemax = collectionACommentaires.size();
for (int i = 0; i < taillemax; i++) {
JSONObject collectionACommentaireCourant = collectionACommentaires.get(i).isObject() ;
if (collectionACommentaireCourant != null) {
CollectionACommentaire collectionACommentaire = new CollectionACommentaire(collectionACommentaireCourant);
this.put(collectionACommentaire.getId(), collectionACommentaire);
}
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionACommentaireAsyncDao.java
New file
0,0 → 1,126
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONValue;
 
public class CollectionACommentaireAsyncDao {
private static final String SERVICE_NOM = "CoelCollectionACommentaire";
public static final String SUPPRESSION_PAR_COLLECTION = "SuppressionParCollection";
public static final String SUPPRESSION_PAR_COMMENTAIRE = "SuppressionParCommentaire";
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
 
public CollectionACommentaireAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
public void selectionner(final String collectionId) {
String[] parametres = {collectionId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
Debug.log(rb.getUrl());
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
Information info = new Information("liste_collection_a_commentaire");
if (responseValue != null) {
// Si la requête est un succès, reception d'un tableau
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
// Transformation du tableau JSON réponse en ListCommentaier
CollectionACommentaireListe commentaires = new CollectionACommentaireListe(reponse);
info.setDonnee(0, commentaires);
// et on met à jour le demandeur des données
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un talbeau JSON et vaut : "+responseValue.toString(), null);
}
} else {
if (collectionId == null) {
// Dans le cas, où nous demandons toutes les relations Collection à Commentaires et qu'il n'y en a pas, nous retournons un message d'information
info.setMessage("Aucune relations entre la collection et les commentaires");
vueARafraichir.rafraichir(info);
}
}
}
});
}
 
public void ajouter(String collectionId, CollectionACommentaire commentaires) {
String postDonneesEncodees = construirePost(collectionId, commentaires);
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
Information info = new Information("ajout_collection_a_commentaire");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void modifier(CollectionACommentaire commentaires) {
String[] parametres = {commentaires.getIdCollection(), commentaires.getIdCommentaire()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
String postDonneesEncodees = construirePost(commentaires.getIdCollection(), commentaires);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
Information info = new Information("modif_collection_a_commentaire");
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void supprimer(String idCollectionACommentaire, String mode) {
String[] parametres = {utilisateurId, idCollectionACommentaire, mode};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("suppression_collection_a_commentaire");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
private String construirePost(String collectionId, CollectionACommentaire commentaire) {
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId) +
"&ccac_id_collection=" + URL.encodeComponent(collectionId) +
"&ccac_id_commentaire=" + URL.encodeComponent(commentaire.getIdCommentaire()) +
"&ccac_truk_type=" + URL.encodeComponent(commentaire.getType());
return postDonnees;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionBotanique.java
New file
0,0 → 1,389
package org.tela_botanica.client.modeles.collection;
 
import java.util.Iterator;
import java.util.Set;
 
import org.tela_botanica.client.modeles.aDonnee;
 
import com.google.gwt.json.client.JSONObject;
 
public class CollectionBotanique extends aDonnee {
 
private static final long serialVersionUID = -6659148189825855729L;
public static final String PREFIXE = "ccb";
public CollectionBotanique() {
}
public CollectionBotanique(JSONObject botanique) {
// l'objet JSON est une table de hachage
Set<String> im = botanique.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
if (cle.startsWith(PREFIXE+"_")) {
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
// Sinon, nous ajoutons la clé avec une valeur vide
String valeur = "";
if (botanique.get(cle).isString() != null) {
valeur = botanique.get(cle).isString().stringValue();
}
this.set(cleObjet, valeur);
}
}
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
// ID
public String getId() {
return renvoyerValeurCorrecte("id_collection");
}
public void setId(String idCollection) {
this.set("id_collection", idCollection);
}
// NBRE ECHANTILLON
public String getNbreEchantillon() {
return renvoyerValeurCorrecte("nbre_echantillon");
}
public void setNbreEchantillon(String type) {
this.set("nbre_echantillon", type);
}
// TYPE
public String getType() {
return renvoyerValeurCorrecte("ce_truk_type");
}
public void setType(String type) {
this.set("ce_truk_type", type);
}
// UNITÉ RANGEMENT
public String getUniteRangement() {
return renvoyerValeurCorrecte("truk_unite_rangement");
}
public void setUniteRangement(String uniteRangement) {
this.set("truk_unite_rangement", uniteRangement);
}
// UNITÉ RANGEMENT ÉTAT
public String getUniteRangementEtat() {
return renvoyerValeurCorrecte("ce_unite_rangement_etat");
}
public void setUniteRangementEtat(String uniteRangementEtat) {
this.set("ce_unite_rangement_etat", uniteRangementEtat);
}
 
// UNITÉ BASE
public String getUniteBase() {
return renvoyerValeurCorrecte("truk_unite_base");
}
public void setUniteBase(String uniteBase) {
this.set("truk_unite_base", uniteBase);
}
// CONSERVATION PAPIER TYPE
public String getConservationPapierType() {
return renvoyerValeurCorrecte("truk_conservation_papier_type");
}
public void setConservationPapierType(String typePapierConservation) {
this.set("truk_conservation_papier_type", typePapierConservation);
}
// CONSERVATION MÉTHODE
public String getConservationMethode() {
return renvoyerValeurCorrecte("truk_conservation_methode");
}
public void setConservationMethode(String methodeConservation) {
this.set("truk_conservation_methode", methodeConservation);
}
// ÉTIQUETTE FIXATION POURCENT
public String getEtiquetteFixationPourcent() {
return renvoyerValeurCorrecte("etiquette_fixation_pourcent");
}
public void setEtiquetteFixationPourcent(String etiquetteFixationPourcent) {
this.set("etiquette_fixation_pourcent", etiquetteFixationPourcent);
}
// SPÉCIMEN FIXATION POURCENT
public String getSpecimenFixationPourcent() {
return renvoyerValeurCorrecte("specimen_fixation_pourcent");
}
public void setSpecimenFixationPourcent(String specimenFixationPourcent) {
this.set("specimen_fixation_pourcent", specimenFixationPourcent);
}
// SPÉCIMEN FIXATION MÉTHODE
public String getSpecimenFixationMethode() {
return renvoyerValeurCorrecte("truk_specimen_fixation_methode");
}
public void setSpecimenFixationMethode(String specimenFixationMethode) {
this.set("truk_specimen_fixation_methode", specimenFixationMethode);
}
// ÉTIQUETTE FIXATION SUPPORT
public String getEtiquetteFixationSupport() {
return renvoyerValeurCorrecte("truk_etiquette_fixation_support");
}
public void setEtiquetteFixationSupport(String etiquetteFixationSupport) {
this.set("truk_etiquette_fixation_support", etiquetteFixationSupport);
}
// ÉTIQUETTE FIXATION SPECIMEN
public String getEtiquetteFixationSpecimen() {
return renvoyerValeurCorrecte("truk_etiquette_fixation_specimen");
}
public void setEtiquetteFixationSpecimen(String etiquetteFixationSpecimen) {
this.set("truk_etiquette_fixation_specimen", etiquetteFixationSpecimen);
}
// ÉTIQUETTE ÉCRITURE
public String getEtiquetteEcriture() {
return renvoyerValeurCorrecte("truk_etiquette_ecriture");
}
public void setEtiquetteEcriture(String etiquetteEcriture) {
this.set("truk_etiquette_ecriture", etiquetteEcriture);
}
// TRAITEMENT
public String getTraitement() {
return renvoyerValeurCorrecte("ce_traitement");
}
public void setTraitement(String traitement) {
this.set("ce_traitement", traitement);
}
// TRAITEMENT POISON
public String getTraitementPoison() {
return renvoyerValeurCorrecte("truk_traitement_poison");
}
public void setTraitementPoison(String traitementPoison) {
this.set("truk_traitement_poison", traitementPoison);
}
// TRAITEMENT INSECTE
public String getTraitementInsecte() {
return renvoyerValeurCorrecte("truk_traitement_insecte");
}
public void setTraitementInsecte(String traitementInsecte) {
this.set("truk_traitement_insecte", traitementInsecte);
}
// ÉTAT GÉNÉRAL
public String getEtatGeneral() {
return renvoyerValeurCorrecte("ce_etat_general");
}
public void setEtatGeneral(String etatGeneral) {
this.set("ce_etat_general", etatGeneral);
}
// DÉGRADATION SPECIMEN
public String getDegradationSpecimen() {
return renvoyerValeurCorrecte("truk_degradation_specimen");
}
public void setDegradationSpecimen(String degradationSpecimen) {
this.set("truk_degradation_specimen", degradationSpecimen);
}
// DÉGRADATION PRÉSENTATION
public String getDegradationPresentation() {
return renvoyerValeurCorrecte("truk_degradation_presentation");
}
public void setDegradationPresentation(String degradationPresentation) {
this.set("truk_degradation_presentation", degradationPresentation);
}
// DÉTERMINATION
public String getDetermination() {
return renvoyerValeurCorrecte("ce_determination");
}
public void setDetermination(String determination) {
this.set("ce_determination", determination);
}
// NATURE
public String getNature() {
return renvoyerValeurCorrecte("truk_nature");
}
public void setNature(String nature) {
this.set("truk_nature", nature);
}
// SPÉCIALITÉ
public String getSpecialite() {
return renvoyerValeurCorrecte("specialite");
}
public void setSpecialite(String specialite) {
this.set("specialite", specialite);
}
// RÉCOLTE DATE DÉBUT
public String getRecolteDateDebut() {
return renvoyerValeurCorrecte("recolte_date_debut");
}
public void setRecolteDateDebut(String dateDebut) {
this.set("recolte_date_debut", dateDebut);
}
// RÉCOLTE DATE DÉBUT TYPE
public String getRecolteDateDebutType() {
return renvoyerValeurCorrecte("ce_recolte_date_debut_type");
}
public void setRecolteDateDebutType(String dateDebutType) {
this.set("ce_recolte_date_debut_type", dateDebutType);
}
// RÉCOLTE DATE FIN
public String getRecolteDateFin() {
return renvoyerValeurCorrecte("recolte_date_fin");
}
public void setRecolteDateFin(String dateFin) {
this.set("recolte_date_fin", dateFin);
}
// RÉCOLTE DATE DÉBUT TYPE
public String getRecolteDateFinType() {
return renvoyerValeurCorrecte("ce_recolte_date_fin_type");
}
public void setRecolteDateFinType(String dateFinType) {
this.set("ce_recolte_date_fin_type", dateFinType);
}
// CLASSEMENT ANNOTATION
public String getClassementAnnotation() {
return renvoyerValeurCorrecte("annotation_classement");
}
public void setClassementAnnotation(String annotation) {
this.set("annotation_classement", annotation);
}
// CLASSEMENT ÉTAT
public String getClassementEtat() {
return renvoyerValeurCorrecte("ce_classement_etat");
}
public void setClassementEtat(String classementEtat) {
this.set("ce_classement_etat", classementEtat);
}
// ÉTIQUETTE RENSEIGNEMENT
public String getEtiquetteRenseignement() {
return renvoyerValeurCorrecte("truk_etiquette_renseignement");
}
public void setEtiquetteRenseignement(String etiquetteRenseignement) {
this.set("truk_etiquette_renseignement", etiquetteRenseignement);
}
// PRÉCISION LOCALITÉ
public String getPrecisionLocalite() {
return renvoyerValeurCorrecte("ce_precision_localite");
}
public void setPrecisionLocalite(String precisionLocalite) {
this.set("ce_precision_localite", precisionLocalite);
}
// PRÉCISION DATE
public String getPrecisionDate() {
return renvoyerValeurCorrecte("ce_precision_date");
}
public void setPrecisionDate(String precisionDate) {
this.set("ce_precision_date", precisionDate);
}
// ANNOTATIONS DIVERSES
public String getAnnotationsDiverses() {
return renvoyerValeurCorrecte("annotation_diverse");
}
public void setAnnotationsDiverses(String annotation) {
this.set("annotation_diverse", annotation);
}
// COLLECTION INTÉGRÉ
public String getCollectionIntegre() {
return renvoyerValeurCorrecte("ce_collection_integre");
}
public void setCollectionIntegre(String collectionIntegre) {
this.set("ce_collection_integre", collectionIntegre);
}
// COLLECTION INTÉGRÉ INFO
public String getCollectionIntegreInfo() {
return renvoyerValeurCorrecte("ce_collection_integre_info");
}
public void setCollectionIntegreInfo(String collectionIntegreInfo) {
this.set("ce_collection_integre_info", collectionIntegreInfo);
}
// INVENTAIRE
public String getInventaire() {
return renvoyerValeurCorrecte("ce_inventaire");
}
public void setInventaire(String inventaire) {
this.set("ce_inventaire", inventaire);
}
// INVENTAIRE AUTEUR
public String getInventaireAuteur() {
return renvoyerValeurCorrecte("ce_inventaire_auteur");
}
public void setInventaireAuteur(String inventaireAuteur) {
this.set("ce_inventaire_auteur", inventaireAuteur);
}
// INVENTAIRE FORME
public String getInventaireForme() {
return renvoyerValeurCorrecte("ce_inventaire_forme");
}
public void setInventaireForme(String inventaireForme) {
this.set("ce_inventaire_forme", inventaireForme);
}
// INVENTAIRE INFO
public String getInventaireInfo() {
return renvoyerValeurCorrecte("inventaire_info");
}
public void setInventaireInfo(String inventaireInfo) {
this.set("inventaire_info", inventaireInfo);
}
// INVENTAIRE DIGITAL
public String getInventaireDigital() {
return renvoyerValeurCorrecte("ce_truk_inventaire_digital");
}
public void setInventaireDigital(String inventaireDigital) {
this.set("ce_truk_inventaire_digital", inventaireDigital);
}
// INVENTAIRE DIGITAL POURCENT
public String getInventaireDigitalPourcent() {
return renvoyerValeurCorrecte("inventaire_digital_pourcent");
}
public void setInventaireDigitalPourcent(String inventaireDigitalPourcent) {
this.set("inventaire_digital_pourcent", inventaireDigitalPourcent);
}
// INVENTAIRE ETAT
public String getInventaireEtat() {
return renvoyerValeurCorrecte("ce_inventaire_etat");
}
public void setInventaireEtat(String inventaireEtat) {
this.set("ce_inventaire_etat", inventaireEtat);
}
// INVENTAIRE DONNÉES TYPES
public String getInventaireDonneesTypes() {
return renvoyerValeurCorrecte("inventaire_donnee_type");
}
public void setInventaireDonneesTypes(String inventaireDonneesTypes) {
this.set("inventaire_donnee_type", inventaireDonneesTypes);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/UniteRangement.java
New file
0,0 → 1,78
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.util.UtilString;
 
import com.extjs.gxt.ui.client.data.BaseModelData;
 
public class UniteRangement extends BaseModelData {
private static final long serialVersionUID = 394843761854792528L;
public static final String COMPTE_EXACT = "E";
public static final String COMPTE_APPROXIMATIF = "A";
public UniteRangement() {
}
public UniteRangement(String id, String type, int nombre, String precision, String format) {
setId(id);
setType(type);
setNombre(nombre);
setPrecision(precision);
setFormat(format);
setTypeAutre(false);
}
public String getId() {
return renvoyerValeurCorrecte((String) get("id"));
}
public void setId(String id) {
set("id", id);
}
public String getType() {
return renvoyerValeurCorrecte((String) get("type"));
}
public void setType(String type) {
set("type", type);
}
 
public double getNombre() {
if (get("nombre") == null) {
return new Double(0);
}
return get("nombre");
}
public void setNombre(double nombre) {
set("nombre", nombre);
}
public String getPrecision() {
return renvoyerValeurCorrecte((String) get("precision"));
}
public void setPrecision(String precision) {
set("precision", precision);
}
public String getFormat() {
return renvoyerValeurCorrecte((String) get("format"));
}
public void setFormat(String format) {
set("format", format);
}
public boolean getTypeAutre() {
return get("type_autre");
}
public void setTypeAutre(boolean bool) {
set("type_autre", bool);
}
private String renvoyerValeurCorrecte(String valeur) {
String valeurCorrecte = "";
if (!UtilString.isEmpty(valeur)) {
valeurCorrecte = valeur;
}
return valeurCorrecte;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPersonne.java
New file
0,0 → 1,104
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.personne.Personne;
 
import com.google.gwt.json.client.JSONObject;
 
public class CollectionAPersonne extends aDonnee {
private static final long serialVersionUID = 1L;
public static final String PREFIXE = "ccap";
private Personne personneLiee = null;
public CollectionAPersonne() {
initialiser(new JSONObject());
}
public CollectionAPersonne(JSONObject collectionAPersonneListe) {
initialiser(collectionAPersonneListe);
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
private void initialiser(JSONObject collectionAPersonneListe) {
setPersonne(new Personne(collectionAPersonneListe));
initialiserModele(collectionAPersonneListe);
initialiserChampsPourGrille();
}
// PERSONNE
public Personne getPersonne() {
return personneLiee;
}
public void setPersonne(Personne personne) {
personneLiee = personne;
initialiserChampsPourGrille();
if (personne != null) {
setIdPersonne(personne.getId());
}
}
private void initialiserChampsPourGrille() {
set("_role_", getIdRole());
set("fmt_nom_complet", getPersonne().getNomComplet());
set("nom", getPersonne().getNom());
set("prenom", getPersonne().getPrenom());
set("naissance_date", getPersonne().getNaissanceDate());
set("naissance_lieu", getPersonne().getNaissanceLieu());
set("_deces_", getPersonne().getDeces());
set("deces_date", getPersonne().getDecesDate());
set("deces_lieu", getPersonne().getDecesLieu());
set("_etat_", "");
}
// ID
/** Génère un identifiant de CollectionAPersonne.
*
* C'est une concaténation des clés primaires de la table coel_collection_a_personne séparées par un tiret "-".
*
* @return identifiant unique d'une relation "collection à personne".
*/
public String getId() {
String idCollection = getIdCollection();
String idPersonne = getIdPersonne();
String idRole = getIdRole();
if (idCollection.equals("") && idPersonne.equals("") && idRole.equals("")) {
return null;
} else {
return (idCollection+"-"+idPersonne+"-"+idRole);
}
}
//+---------------------------------------------------------------------------------------------------------------+
// CHAMPS PROVENANT de la TABLE COEL_COLLECTION_A_PERSONNE
// ID COLLECTION
public String getIdCollection() {
return renvoyerValeurCorrecte("id_collection");
}
public void setIdCollection(String idCollection) {
set("id_collection", idCollection);
}
// ID PERSONNE
public String getIdPersonne() {
return renvoyerValeurCorrecte("id_personne");
}
public void setIdPersonne(String ip) {
set("id_personne", ip);
}
// ID RôLE
public String getIdRole() {
return renvoyerValeurCorrecte("id_role");
}
public void setIdRole(String ir) {
set("id_role", ir);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPublication.java
New file
0,0 → 1,94
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.publication.Publication;
 
import com.google.gwt.json.client.JSONObject;
 
public class CollectionAPublication extends aDonnee {
private static final long serialVersionUID = 1L;
public static final String PREFIXE = "ccapu";
private Publication publicationLiee = null;
public CollectionAPublication() {
initialiser(new JSONObject());
}
public CollectionAPublication(JSONObject collectionAPublicationListe) {
initialiser(collectionAPublicationListe);
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
private void initialiser(JSONObject collectionAPublicationListe) {
setPublication(new Publication(collectionAPublicationListe));
initialiserChampsPourGrille();
initialiserModele(collectionAPublicationListe);
}
// PUBLICATION
public Publication getPublication() {
return publicationLiee;
}
public void setPublication(Publication publication) {
publicationLiee = publication;
initialiserChampsPourGrille();
if (publication != null) {
setIdPublication(publication.getId());
}
}
private void initialiserChampsPourGrille() {
set("fmt_auteur", getPublication().getAuteur());
set("titre", getPublication().getTitre());
set("collection", getPublication().getCollection());
set("_editeur_", "");
set("_annee_", "");
set("indication_nvt", getPublication().getIndicationNvt());
set("fascicule", getPublication().getFascicule());
set("truk_pages", getPublication().getPages());
set("_etat_", "");
}
// ID
/** Génère un identifiant de CollectionAPersonne.
*
* C'est une concaténation des clés primaires de la table coel_collection_a_personne séparées par un tiret "-".
*
* @return identifiant unique d'une relation "collection à personne".
*/
public String getId() {
String idCollection = getIdCollection();
String idPublication = getIdPublication();
if (idCollection.equals("") && idPublication.equals("")) {
return null;
} else {
return (idCollection+"-"+idPublication);
}
}
//+---------------------------------------------------------------------------------------------------------------+
// CHAMPS PROVENANT de la TABLE COEL_COLLECTION_A_PERSONNE
// ID COLLECTION
public String getIdCollection() {
return renvoyerValeurCorrecte("id_collection");
}
public void setIdCollection(String idCollection) {
set("id_collection", idCollection);
}
// ID PUBLICATION
public String getIdPublication() {
return renvoyerValeurCorrecte("id_publication");
}
public void setIdPublication(String ip) {
set("id_publication", ip);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPersonneListe.java
New file
0,0 → 1,41
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.modeles.aDonneeListe;
 
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
 
/**
* Table de hachage composée d'informations sur les Structures et les Personnes, renvoyé par un objet de type DAO
* La clé est une concaténation des clés primaires de la table coel_structure_a_personne séparées par un tiret "-".
*
* @author david delon
*
*/
public class CollectionAPersonneListe extends aDonneeListe<CollectionAPersonne> {
 
private static final long serialVersionUID = 1L;
 
public CollectionAPersonneListe() {
super();
}
public CollectionAPersonneListe(int taille) {
super(taille);
}
public CollectionAPersonneListe(JSONArray structures) {
super(structures.size()) ;
final int taillemax = structures.size();
for (int i = 0; i < taillemax; i++) {
JSONObject collectionAPersonneCourante = structures.get(i).isObject() ;
if (collectionAPersonneCourante != null) {
CollectionAPersonne collectionAPersonne = new CollectionAPersonne(collectionAPersonneCourante);
this.put(collectionAPersonne.getId(), collectionAPersonne);
}
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPublicationListe.java
New file
0,0 → 1,41
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.modeles.aDonneeListe;
 
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
 
/**
* Table de hachage composée d'informations sur les Structures et les Personnes, renvoyé par un objet de type DAO
* La clé est une concaténation des clés primaires de la table coel_structure_a_personne séparées par un tiret "-".
*
* @author david delon
*
*/
public class CollectionAPublicationListe extends aDonneeListe<CollectionAPublication> {
 
private static final long serialVersionUID = 1L;
 
public CollectionAPublicationListe() {
super();
}
public CollectionAPublicationListe(int taille) {
super(taille);
}
public CollectionAPublicationListe(JSONArray publications) {
super(publications.size()) ;
final int taillemax = publications.size();
for (int i = 0; i < taillemax; i++) {
JSONObject collectionAPublicationCourante = publications.get(i).isObject() ;
if (collectionAPublicationCourante != null) {
CollectionAPublication collectionAPublication = new CollectionAPublication(collectionAPublicationCourante);
this.put(collectionAPublication.getId(), collectionAPublication);
}
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPersonneAsyncDao.java
New file
0,0 → 1,124
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONValue;
 
public class CollectionAPersonneAsyncDao {
private static final String SERVICE_NOM = "CoelCollectionAPersonne";
 
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
 
public CollectionAPersonneAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
public void selectionner(final String collectionId, final String roleId) {
String[] parametres = {collectionId, roleId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
Debug.log(rb.getUrl());
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
Information info = new Information("liste_collection_a_personne");
if (responseValue != null) {
// Si la requête est un succès, reception d'un tableau
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
// Transformation du tableau JSON réponse en ListeInstitution
CollectionAPersonneListe personnes = new CollectionAPersonneListe(reponse);
info.setDonnee(0, personnes);
// et on met à jour le demandeur des données
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un talbeau JSON et vaut : "+responseValue.toString(), null);
}
} else {
if (collectionId == null) {
// Dans le cas, où nous demandons toutes les relations Collection à Personne et qu'il n'y en a pas, nous retournons un message d'information
info.setMessage("Aucune relations entre la collection et les personnes");
vueARafraichir.rafraichir(info);
}
}
}
});
}
 
public void ajouter(String collectionId, CollectionAPersonne personnes) {
String postDonneesEncodees = construirePost(collectionId, personnes);
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
Information info = new Information("ajout_collection_a_personne");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void modifier(CollectionAPersonne personnes) {
String[] parametres = {personnes.getIdCollection(), personnes.getIdPersonne(), personnes.getIdRole()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
String postDonneesEncodees = construirePost(personnes.getIdCollection(), personnes);
Debug.log(rb.getUrl());
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
Information info = new Information("modif_collection_a_personne");
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void supprimer(String idCollectionAPersonne) {
String[] parametres = {utilisateurId, idCollectionAPersonne};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("suppression_collection_a_personne");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
private String construirePost(String collectionId, CollectionAPersonne personne) {
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId) +
"&ccap_id_collection=" + URL.encodeComponent(collectionId) +
"&ccap_id_personne=" + URL.encodeComponent(personne.getIdPersonne()) +
"&ccap_id_role=" + URL.encodeComponent(personne.getIdRole());
return postDonnees;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionAPublicationAsyncDao.java
New file
0,0 → 1,123
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONValue;
 
public class CollectionAPublicationAsyncDao {
private static final String SERVICE_NOM = "CoelCollectionAPublication";
 
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
 
public CollectionAPublicationAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
public void selectionner(final String collectionId) {
String[] parametres = {collectionId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
Debug.log(rb.getUrl());
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
Information info = new Information("liste_collection_a_publication");
if (responseValue != null) {
// Si la requête est un succès, reception d'un tableau
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
// Transformation du tableau JSON réponse en ListeInstitution
CollectionAPublicationListe publications = new CollectionAPublicationListe(reponse);
info.setDonnee(0, publications);
// et on met à jour le demandeur des données
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un talbeau JSON et vaut : "+responseValue.toString(), null);
}
} else {
if (collectionId == null) {
// Dans le cas, où nous demandons toutes les relations Collection à Publication et qu'il n'y en a pas, nous retournons un message d'information
info.setMessage("Aucune relations entre la collection et les publications");
vueARafraichir.rafraichir(info);
}
}
}
});
}
 
public void ajouter(String collectionId, CollectionAPublication publications) {
String postDonneesEncodees = construirePost(collectionId, publications);
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
Information info = new Information("ajout_collection_a_publication");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void modifier(CollectionAPublication publications) {
String[] parametres = {publications.getIdCollection(), publications.getIdPublication()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
String postDonneesEncodees = construirePost(publications.getIdCollection(), publications);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
Information info = new Information("modif_collection_a_publication");
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void supprimer(String idCollectionAPublication) {
String[] parametres = {utilisateurId, idCollectionAPublication};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("suppression_collection_a_publication");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
private String construirePost(String collectionId, CollectionAPublication publication) {
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId) +
"&ccapu_id_collection=" + URL.encodeComponent(collectionId) +
"&ccapu_id_publication=" + URL.encodeComponent(publication.getIdPublication());
return postDonnees;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/Collection.java
New file
0,0 → 1,419
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.modeles.aDonnee;
 
import com.google.gwt.json.client.JSONObject;
 
public class Collection extends aDonnee {
private static final long serialVersionUID = 3295310312337145716L;
public static final String PREFIXE = "cc";
private CollectionBotanique botanique = null;
private CollectionAPersonneListe personnesLiees = null;
private CollectionAPublicationListe publicationsLiees = null;
private CollectionACommentaireListe commentairesLiees = null;
public Collection() {
}
public Collection(JSONObject collection) {
initialiserModele(collection);
}
 
@Override
protected String getPrefixe() {
return PREFIXE;
}
// BOTANIQUE
public CollectionBotanique getBotanique() {
if (botanique == null) {
botanique = new CollectionBotanique();
}
return botanique;
}
public void setBotanique(CollectionBotanique botaniqueAStocker) {
botanique = botaniqueAStocker;
}
// PERSONNES LIÉES
public CollectionAPersonneListe getPersonnesLiees() {
if (personnesLiees == null) {
personnesLiees = new CollectionAPersonneListe();
}
return personnesLiees;
}
public void setPersonnesLiees(CollectionAPersonneListe relationsCollectionAPersonne) {
personnesLiees = relationsCollectionAPersonne;
}
// PUBLICATIONS LIÉES
public CollectionAPublicationListe getPublicationsLiees() {
if (publicationsLiees == null) {
publicationsLiees = new CollectionAPublicationListe();
}
return publicationsLiees;
}
public void setPublicationsLiees(CollectionAPublicationListe relationsCollectionAPublication) {
publicationsLiees = relationsCollectionAPublication;
}
// COMMENTAIRES LIÉS
public CollectionACommentaireListe getCommentairesLiees() {
if (commentairesLiees == null) {
commentairesLiees = new CollectionACommentaireListe();
}
return commentairesLiees;
}
public void setCommentairesLiees(CollectionACommentaireListe relationsCollectionACommentaire) {
commentairesLiees = relationsCollectionACommentaire;
}
// ID
public String getId() {
return renvoyerValeurCorrecte("id_collection");
}
public void setId(String idCollection) {
this.set("id_collection", idCollection);
}
// CE PROJET
public String getIdProjet() {
return renvoyerValeurCorrecte("ce_projet");
}
public void setIdProjet(String idProjet) {
this.set("ce_projet", idProjet);
}
// COLLECTION MERE ID
public String getCollectionMereId() {
return renvoyerValeurCorrecte("ce_mere");
}
public void setCollectionMereId(String collectionMereId) {
this.set("ce_mere", collectionMereId);
}
// COLLECTION MERE NOM
public String getCollectionMereNom() {
return renvoyerValeurCorrecte("collection_mere_nom");
}
public void setCollectionMereNom(String collectionMereNom) {
this.set("collection_mere_nom", collectionMereNom);
}
// CE STRUCTURE
public String getIdStructure() {
return renvoyerValeurCorrecte("ce_structure");
}
public void setIdStructure(String idStructure) {
this.set("ce_structure", idStructure);
}
 
// GUID
public String getGuid() {
return renvoyerValeurCorrecte("guid");
}
public void setGuid(String guid) {
this.set("guid", guid);
}
 
// IDENTIFIANT ALTERNATIF
public String getIdAlternatif() {
return renvoyerValeurCorrecte("truk_identifiant_alternatif");
}
public void setIdAlternatif(String idAlter) {
this.set("truk_identifiant_alternatif", idAlter);
}
// CODE
public String getCode() {
return renvoyerValeurCorrecte("truk_code");
}
public void setCode(String code) {
this.set("truk_code", code);
}
// NOM
public String getNom() {
return renvoyerValeurCorrecte("nom");
}
public void setNom(String nom) {
this.set("nom", nom);
}
// NOM ALTERNATIF
public String getNomAlternatif() {
return renvoyerValeurCorrecte("truk_nom_alternatif");
}
public void setNomAlternatif(String nomAlter) {
this.set("truk_nom_alternatif", nomAlter);
}
// DESCRIPTION
public String getDescription() {
return renvoyerValeurCorrecte("description");
}
public void setDescription(String description) {
this.set("description", description);
}
// DESCRIPTION SPECIALISTE
public String getDescriptionSpecialiste() {
return renvoyerValeurCorrecte("description_specialiste");
}
public void setDescriptionSpecialiste(String descriptionSepcialiste) {
this.set("description_specialiste", descriptionSepcialiste);
}
// HISTORIQUE
public String getHistorique() {
return renvoyerValeurCorrecte("historique");
}
public void setHistorique(String historique) {
this.set("historique", historique);
}
 
// URL
public String getUrls() {
return renvoyerValeurCorrecte("truk_url");
}
public void setUrls(String urls) {
this.set("truk_url", urls);
}
// GROUPEMENT PRINCIPE
public String getGroupementPrincipe() {
return renvoyerValeurCorrecte("truk_groupement_principe");
}
public void setGroupementPrincipe(String groupementPrincipe) {
this.set("truk_groupement_principe", groupementPrincipe);
}
// GROUPEMENT BUT
public String getGroupementBut() {
return renvoyerValeurCorrecte("truk_groupement_but");
}
public void setGroupementBut(String groupementBut) {
this.set("truk_groupement_but", groupementBut);
}
// TYPE NCD
public String getTypeNcd() {
return renvoyerValeurCorrecte("ce_type");
}
public void setTypeNcd(String typeNcd) {
this.set("ce_type", typeNcd);
}
// TYPE DEPOT
public String getTypeDepot() {
return renvoyerValeurCorrecte("ce_type_depot");
}
public void setTypeDepot(String typeDepot) {
this.set("ce_type_depot", typeDepot);
}
// COTE
public String getCote() {
return renvoyerValeurCorrecte("cote");
}
public void setCote(String cote) {
this.set("cote", cote);
}
// DIMENSSION
public String getDimenssion() {
return renvoyerValeurCorrecte("dimenssion");
}
public void setDimenssion(String dimenssion) {
this.set("dimenssion", dimenssion);
}
// CONDITION ACCÉS
public String getConditionAcces() {
return renvoyerValeurCorrecte("condition_acces");
}
public void setConditionAcces(String conditionAcces) {
this.set("condition_acces", conditionAcces);
}
// CONDITION USAGE
public String getConditionUsage() {
return renvoyerValeurCorrecte("condition_usage");
}
public void setConditionUsage(String conditionUsage) {
this.set("condition_usage", conditionUsage);
}
// COUVERTURE VERNACULAIRE
public String getCouvertureVernaculaire() {
return renvoyerValeurCorrecte("truk_couverture_vernaculaire");
}
public void setCouvertureVernaculaire(String couvertureVernaculaire) {
this.set("truk_couverture_vernaculaire", couvertureVernaculaire);
}
// COUVERTURE TAXONOMIQUE
public String getCouvertureTaxonomique() {
return renvoyerValeurCorrecte("truk_couverture_taxonomique");
}
public void setCouvertureTaxonomique(String couvertureTaxonomique) {
this.set("truk_couverture_taxonomique", couvertureTaxonomique);
}
// COUVERTURE REGNE
public String getCouvertureRegne() {
return renvoyerValeurCorrecte("truk_couverture_regne");
}
public void setCouvertureRegne(String couvertureRegne) {
this.set("truk_couverture_regne", couvertureRegne);
}
// COUVERTURE TEMPORELLE
public String getCouvertureTemporelle() {
return renvoyerValeurCorrecte("truk_couverture_temporelle");
}
public void setCouvertureTemporelle(String couvertureTemporelle) {
this.set("truk_couverture_temporelle", couvertureTemporelle);
}
// COUVERTURE VIE
public String getCouvertureVie() {
return renvoyerValeurCorrecte("truk_couverture_vie");
}
public void setCouvertureVie(String couvertureVie) {
this.set("truk_couverture_Vie", couvertureVie);
}
// CONSERVATION STATUT
public String getConservationStatut() {
return renvoyerValeurCorrecte("truk_conservation_statut");
}
public void setConservationStatut(String conservationStatut) {
this.set("truk_conservation_statut", conservationStatut);
}
// PRESERVATION
public String getPreservation() {
return renvoyerValeurCorrecte("truk_preservation");
}
public void setPreservation(String preservation) {
this.set("truk_preservation", preservation);
}
// DEVELOPPEMENT
public String getDeveloppement() {
return renvoyerValeurCorrecte("ce_developpement");
}
public void setDeveloppement(String developpement) {
this.set("ce_developpement", developpement);
}
// PERIODE CONSTITUTION
public String getPeriodeConstitution() {
return renvoyerValeurCorrecte("truk_periode_constitution");
}
public void setPeriodeConstitution(String periodeConstitution) {
this.set("truk_periode_constitution", periodeConstitution);
}
// COUVERTURE LIEU
public String getCouvertureLieu() {
return renvoyerValeurCorrecte("truk_couverture_lieu");
}
public void setCouvertureLieu(String couvertureLieu) {
this.set("truk_couverture_lieu", couvertureLieu);
}
// COORDONNÉE
public String getCoordonnee() {
return renvoyerValeurCorrecte("truk_coordonnee");
}
public void setCoordonnee(String coordonnee) {
this.set("truk_coordonnee", coordonnee);
}
// SPECIMEN TYPE
public String getSpecimenType() {
return renvoyerValeurCorrecte("ce_specimen_type");
}
public void setSpecimenType(String specimenType) {
this.set("ce_specimen_type", specimenType);
}
// SPECIMEN TYPE NOMBRE
public String getSpecimenTypeNbre() {
return renvoyerValeurCorrecte("specimen_type_nbre");
}
public void setSpecimenTypeNbre(String specimenTypeNbre) {
this.set("specimen_type_nbre", specimenTypeNbre);
}
// SPECIMEN TYPE NOMBRE PRECISION
public String getSpecimenTypeNbrePrecision() {
return renvoyerValeurCorrecte("ce_specimen_type_nbre_precision");
}
public void setSpecimenTypeNbrePrecision(String specimenTypeNbrePrecision) {
this.set("ce_specimen_type_nbre_precision", specimenTypeNbrePrecision);
}
// SPECIMEN TYPE CLASSEMENT
public String getSpecimenTypeClassement() {
return renvoyerValeurCorrecte("ce_specimen_type_classement");
}
public void setSpecimenTypeClassement(String specimenTypeClassement) {
this.set("ce_specimen_type_classement", specimenTypeClassement);
}
// EXPEDITION NOM
public String getExpeditionNom() {
return renvoyerValeurCorrecte("expedition_nom");
}
public void setExpeditionNom(String expeditionNom) {
this.set("expedition_nom", expeditionNom);
}
// DIGITAL MEDIUM
public String getDigitalMedium() {
return renvoyerValeurCorrecte("truk_digital_medium");
}
public void setDigitalMedium(String digitalMedium) {
this.set("truk_digital_medium", digitalMedium);
}
// DIGITAL FORMAT
public String getDigitalFormat() {
return renvoyerValeurCorrecte("truk_digital_format");
}
public void setDigitalFormat(String digitalFormat) {
this.set("truk_digital_format", digitalFormat);
}
// PUBLIC
public boolean etrePublic() {
String publicMark = getPublic();
boolean estPublic = true;
if (publicMark.equals("0")) {
estPublic = false;
}
return estPublic;
}
public String getPublic() {
return renvoyerValeurCorrecte("mark_public");
}
public void setBoolPublic(String publicBool) {
this.set("mark_public", publicBool);
}
// +--------------------------------------------------------------------------------------------------------------+
// STRUCTURE NOM
public String getStructureNom() {
return renvoyerValeurCorrecte("structure_nom");
}
// STRUCTURE VILLE
public String getStructureVille() {
return renvoyerValeurCorrecte("structure_ville");
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionListe.java
New file
0,0 → 1,150
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.interfaces.ListePaginable;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.aDonneeListe;
import org.tela_botanica.client.modeles.structure.Structure;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.i18n.client.Dictionary;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
 
/**
* Table de hachage composée d'informations sur les Structures, renvoyé par un objet de type DAO
* La clé est le nom de l'entite + le nom de l'entite parente
*
* @author david delon
*
*/
public class CollectionListe extends aDonneeListe<Collection> implements ListePaginable{
private static final long serialVersionUID = 8024454926649039456L;
private int currentPage = 0;
private int nbElementsPage = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
private int nbElementsTotal;
private Rafraichissable vueARafraichir;
public CollectionListe() {
super();
}
public CollectionListe(int taille) {
super(taille);
}
/**
* Constructeur pour une liste d'institutions
* @param dates
*/
public CollectionListe(JSONArray structures) {
super(structures.size()) ;
final int taillemax = structures.size();
for (int i = 0; i < taillemax; i++) {
JSONObject collectionCourante = structures.get(i).isObject() ;
if (collectionCourante != null) {
Collection collection = new Collection(collectionCourante);
CollectionBotanique botanique = new CollectionBotanique(collectionCourante);
collection.setBotanique(botanique);
this.put(collection.getId(), collection);
}
}
}
public CollectionListe(JSONArray collectionListe, JSONNumber nbElements, Rafraichissable vueARafraichir) {
super(collectionListe.size());
this.nbElementsTotal = Integer.valueOf(nbElements.toString());
final int taillemax = collectionListe.size();
for (int i = 0; i < taillemax; i++) {
JSONObject collection = collectionListe.get(i).isObject() ;
if (collection != null) {
Collection collectionCourante = new Collection(collection);
this.put(collectionCourante.getId(), collectionCourante);
}
}
this.vueARafraichir = vueARafraichir;
}
 
 
public void changerNumeroPage(int pageCourante) {
currentPage = pageCourante;
selectionnerCollection();
}
 
public void changerTaillePage(int nouvelleTaillePage) {
nbElementsPage = nouvelleTaillePage;
selectionnerCollection();
}
public void recharger() {
selectionnerCollection();
}
public void setPageCourante(int pageCourante) {
this.currentPage = pageCourante;
}
 
public void setTaillePage(int taillePage) {
this.nbElementsPage = taillePage;
}
public int[] getPageTable() {
int[] page = new int[4];
 
// nombre de pages au total
page[0] = calculerNbPages();
 
// Page En Cours
page[1] = currentPage;
 
// nbElementsParPage
page[2] = nbElementsPage;
 
// et le dernier le nombre total d'éléments
page[3] = nbElementsTotal;
 
return page;
}
/**
* Calcule le nombre de pages nécessaires pour afficher un nombre d'élements
* donnés en fonction de la taille de page en cours
*
* @return le nombre de pages
*/
public int calculerNbPages() {
// A cause de la betise de java pour les conversion implicite on fait
// quelques conversions manuellement
// pour eviter qu'il arrondisse mal la division
// nombre de pages = (nombre d'element / taille de la page) arrondie à
// l'entier superieur
 
double nPage = (1.0 * nbElementsTotal) / (1.0 * nbElementsPage);
double nPageRound = Math.ceil(nPage);
Double nPageInt = new Double(nPageRound);
 
// on convertit en entier
return nPageInt.intValue();
}
public void selectionnerCollection() {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerCollection(vueARafraichir, null, null, currentPage, nbElementsPage);
}
public void filtrerParNom(String nom) {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerCollection(vueARafraichir, null, "%" + nom + "%", 0, nbElementsPage);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionAsyncDao.java
New file
0,0 → 1,226
package org.tela_botanica.client.modeles.collection;
 
import java.util.HashMap;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONValue;
 
public class CollectionAsyncDao {
public static final String SERVICE_NOM = "CoelCollection";
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
public CollectionAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
public void selectionner(final String projetId, final String collectionId, final String nomCollection, final int start, final int nbElements) {
// Ajout des paramètres et données à selectionner dans l'URL
String[] parametres = {projetId, collectionId, nomCollection};
HashMap<String, String> restrictions = new HashMap<String, String>();
restrictions.put("start", String.valueOf(start*nbElements));
if (nbElements != -1) {
restrictions.put("limit", String.valueOf(nbElements));
}
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue != null) {
// Si la requête est un succès, reception d'un objet ou d'un tableau
JSONArray responseArray = responseValue.isArray();
if (responseArray.get(1).isObject() != null) {
final JSONObject reponse = responseArray.get(1).isObject();
Collection collection = new Collection(reponse);
CollectionBotanique collectionBotanique = new CollectionBotanique(reponse);
collection.setBotanique(collectionBotanique);
Information info = new Information("selection_collection");
info.setDonnee(0, collection);
vueARafraichir.rafraichir(info);
} else if (responseValue.isArray() != null) {
final JSONArray reponse = responseArray.get(1).isArray();
CollectionListe collections = new CollectionListe(reponse, responseArray.get(0).isNumber(), vueARafraichir);
collections.setTaillePage(nbElements);
collections.setPageCourante(start);
vueARafraichir.rafraichir(collections);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
}
} else {
// Dans le cas, où nous demandons toutes les institutions et qu'il n'y en a pas, nous retournons un objet vide
if (collectionId == null) {
CollectionListe collections = new CollectionListe(0);
vueARafraichir.rafraichir(collections);
}
}
}
});
}
public void ajouter(Collection collection) {
String postDonneesEncodees = construirePost(null, collection);
 
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("ajout_collection");
String structureIdOuMessage = responseValue.isString().stringValue();
if (structureIdOuMessage.matches("^[0-9]+$")) {
info.setDonnee(structureIdOuMessage);
} else {
info.setMessage(structureIdOuMessage);
}
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void modifier(Collection collection) {
String postDonneesEncodees = construirePost(collection.getId(), collection);
String[] parametres = {collection.getId()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
Information info = new Information("modif_collection");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void supprimer(String collectionsId) {
String[] parametres = {utilisateurId, collectionsId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("suppression_collection");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
private String construirePost(String collectionId, Collection collection) {
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId);
if (collection != null) {
if (collectionId != null) {
postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
}
Debug.log("id projet:"+collection.getIdProjet());
Debug.log("liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());
}
if (collection.getBotanique() != null) {
if (collectionId != null) {
postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
}
CollectionBotanique collectionBotanique = collection.getBotanique();
postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());
}
return postDonnees;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/structure/Structure.java
New file
0,0 → 1,336
package org.tela_botanica.client.modeles.structure;
 
import java.util.Date;
import java.util.Iterator;
import java.util.Set;
 
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.personne.Personne;
 
import com.extjs.gxt.ui.client.data.BaseModelData;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.json.client.JSONObject;
 
public class Structure extends aDonnee {
private static final long serialVersionUID = -5623886668593288218L;
 
public static final String PREFIXE = "cs";
public static final String URL_SITE = "WEB";
public static final String URL_LOGO = "LOGO";
private BaseModelData urls = null;
private StructureAPersonneListe personnel = null;
private StructureValorisation valorisation = null;
private StructureConservation conservation = null;
public Structure() {
// Constructions du tableau des urls interne
urls = new BaseModelData();
}
public Structure(JSONObject institution) {
// Constructions du tableau des urls interne
urls = new BaseModelData();
 
// l'objet JSON est une table de hachage
Set<String> im = institution.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
if (cle.startsWith(PREFIXE+"_")) {
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
// Sinon, nous ajoutons la clé avec une valeur vide
String valeur = "";
if (institution.get(cle).isString() != null) {
valeur = institution.get(cle).isString().stringValue();
}
if (cleObjet.equals("truk_url")) {
this.setUrl(valeur);
} else {
this.set(cleObjet, valeur);
}
}
}
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
public String getId() {
return renvoyerValeurCorrecte("id_structure");
}
public void setId(String idStructure) {
this.set("id_structure", idStructure);
}
public String getIdProjet() {
return renvoyerValeurCorrecte("ce_projet");
}
public void setIdProjet(String idProjet) {
this.set("ce_projet", idProjet);
}
public String getIdMere() {
return renvoyerValeurCorrecte("ce_mere");
}
public void setIdMere(String idMere) {
this.set("ce_mere", idMere);
}
public String getGuid() {
return renvoyerValeurCorrecte("guid");
}
public void setGuid(String guid) {
this.set("guid", guid);
}
public String getIdAlternatif() {
return renvoyerValeurCorrecte("truk_identifiant_alternatif");
}
public void setIdAlternatif(String idAlter) {
this.set("truk_identifiant_alternatif", idAlter);
}
public String getNom() {
return renvoyerValeurCorrecte("nom");
}
public void setNom(String nom) {
this.set("nom", nom);
}
public String getNomAlternatif() {
return renvoyerValeurCorrecte("truk_nom_alternatif");
}
public String getDescription() {
return renvoyerValeurCorrecte("description");
}
public String getType() {
return renvoyerValeurCorrecte("ce_type");
}
public void setType(String type) {
this.set("ce_type", type);
}
public String getTypePrive() {
return renvoyerValeurCorrecte("ce_truk_type_prive");
}
public void setTypePrive(String typePrive) {
this.set("ce_truk_type_prive", typePrive);
}
public String getTypePublic() {
return renvoyerValeurCorrecte("ce_truk_type_public");
}
public void setTypePublic(String typePublic) {
this.set("ce_truk_type_public", typePublic);
}
public String getAdresse() {
return (String) renvoyerValeurCorrecte("adresse_01");
}
public void setAdresse(String adr) {
this.set("adresse_01", adr);
}
public String getAdresseComplement() {
return renvoyerValeurCorrecte("adresse_02");
}
 
public String getDateFondationFormatMysql() {
return renvoyerValeurCorrecte("date_fondation");
}
public String getDateFondationFormatLong() {
String dateFormatee = "";
Date dateFondation = getDateFondation();
if (dateFondation != null) {
dateFormatee = DateTimeFormat.getLongDateFormat().format(dateFondation);
}
return dateFormatee;
}
public Date getDateFondation() {
Date fondationDate = null;
String fondationChaine = renvoyerValeurCorrecte("date_fondation");
if (!fondationChaine.isEmpty() && !fondationChaine.equals("0000-00-00")) {
fondationDate = DateTimeFormat.getFormat("yyyy-MM-dd").parseStrict(fondationChaine);
}
return fondationDate;
}
public void setDateFondation(Date dateFondation) {
if (dateFondation != null) {
this.set("date_fondation", DateTimeFormat.getFormat("yyyy-MM-dd").format(dateFondation));
}
}
public void setDateFondation(String dateFondation) {
if (dateFondation != null) {
this.set("date_fondation", dateFondation);
}
}
public String getCodePostal() {
return renvoyerValeurCorrecte("code_postal");
}
public void setCodePostal(String codePostal) {
this.set("code_postal", codePostal);
}
public String getVille() {
return renvoyerValeurCorrecte("ville");
}
public void setVille(String ville) {
this.set("ville", ville);
}
public String getRegion() {
return getChaineDenormaliseUnique("ce_truk_region");
}
public void setRegion(String region) {
this.set("ce_truk_region", region);
}
public String getPays() {
return getChaineDenormaliseUnique("ce_truk_pays");
}
public void setPays(String pays) {
this.set("ce_truk_pays", pays);
}
public String getLatitude() {
return renvoyerValeurCorrecte("latitude");
}
 
public String getLongitude() {
return renvoyerValeurCorrecte("longitude");
}
// TELEPHONE
public String getTelephone() {
return renvoyerValeurCorrecte("truk_telephone");
}
public void setTelephone(String tel) {
this.set("truk_telephone", tel);
}
// TELEPHONE FIXE
public String getTelephoneFixe() {
return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FIXE);
}
public void setTelephoneFixe(String fixe) {
modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FIXE, fixe);
}
//TELEPHONE FAX
public String getFax() {
return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FAX);
}
public void setFax(String fax) {
modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FAX, fax);
}
// COURRIEL
public String getCourriel() {
return renvoyerValeurCorrecte("courriel");
}
public void setCourriel(String courriel) {
this.set("courriel", courriel);
}
// URL
public String getUrl(String type) {
return urls.get(type);
}
public String getUrl() {
String urlsDenormalise = "";
Set<String> proprietes = urls.getProperties().keySet();
for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
String cle = it.next();
urlsDenormalise += cle+"##"+urls.get(cle)+";;";
}
urlsDenormalise.replaceFirst(";;$", "");
return urlsDenormalise;
}
public void setUrl(String urlsDenormalise) {
if (urlsDenormalise != null && !urlsDenormalise.equals("")) {
//GWT.log(urlsDenormalise, null);
String[] tableauUrls = urlsDenormalise.split(";;");
for (int i = 0; i < tableauUrls.length; i++) {
String url = tableauUrls[i];
//GWT.log("\t"+url, null);
String[] tableauUrl = url.split("##");
if (tableauUrl.length == 2) {
//GWT.log("\t\t"+tableauUrl[0]+"-"+tableauUrl[1], null);
urls.set(tableauUrl[0], tableauUrl[1]);
}
}
}
}
public void setUrl(String type, String url) {
if (url != null) {
urls.set(type, url);
}
}
public int getNbrePersonne() {
if (renvoyerValeurCorrecte("nbre_personne").equals("")) {
return 0;
} else {
return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne"));
}
}
public void setNbrePersonne(int nbrePersonne) {
this.set("nbre_personne", Integer.toString(nbrePersonne));
}
public String getConditionAcces() {
return renvoyerValeurCorrecte("condition_acces");
}
 
public String getConditionUsage() {
return renvoyerValeurCorrecte("condition_usage");
}
public StructureAPersonneListe getPersonnel() {
return personnel;
}
public void setPersonnel(StructureAPersonneListe personnelAStocker) {
personnel = personnelAStocker;
}
public StructureValorisation getValorisation() {
return valorisation;
}
public void setValorisation(StructureValorisation valorisationAStocker) {
valorisation = valorisationAStocker;
}
public StructureConservation getConservation() {
return conservation;
}
public void setConservation(StructureConservation conservationAStocker) {
conservation = conservationAStocker;
}
public String toString() {
String sortie = "";
// Champs du BaseModelData
Set<String> proprietes = this.getProperties().keySet();
for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
String cle = it.next();
sortie += cle+" : "+this.get(cle)+"\n";
}
// Champs spéciaux
sortie += getUrl();
return sortie;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/structure/StructureListe.java
New file
0,0 → 1,150
package org.tela_botanica.client.modeles.structure;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.interfaces.ListePaginable;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.aDonneeListe;
import org.tela_botanica.client.modeles.personne.Personne;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.i18n.client.Dictionary;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
 
/**
* Table de hachage composée d'informations sur les Structures, renvoyé par un objet de type DAO
* La clé est le nom de l'entite + le nom de l'entite parente
*
* @author david delon
*
*/
public class StructureListe extends aDonneeListe<Structure> implements ListePaginable{
private static final long serialVersionUID = 7384579567038300856L;
private int currentPage = 0;
private int nbElementsPage = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
private int nbElementsTotal;
private Rafraichissable vueARafraichir;
public StructureListe() {
super();
}
public StructureListe(int taille) {
super(taille);
}
/**
* Constructeur pour une liste d'institutions
* @param dates
*/
public StructureListe(JSONArray structures) {
super(structures.size()) ;
final int taillemax = structures.size();
for (int i = 0; i < taillemax; i++) {
JSONObject structureCourante = structures.get(i).isObject() ;
if (structureCourante != null) {
Structure structure = new Structure(structureCourante);
StructureValorisation valorisation = new StructureValorisation(structureCourante);
structure.setValorisation(valorisation);
StructureConservation conservation = new StructureConservation(structureCourante);
structure.setConservation(conservation);
this.put(structure.getId(), structure);
}
}
}
public StructureListe(JSONArray structureListe, JSONNumber nbElements, Rafraichissable vueARafraichir) {
super(structureListe.size());
this.nbElementsTotal = Integer.valueOf(nbElements.toString());
final int taillemax = structureListe.size();
for (int i = 0; i < taillemax; i++) {
JSONObject structure = structureListe.get(i).isObject() ;
if (structure != null) {
Structure structureCourante = new Structure(structure);
this.put(structureCourante.getId(), structureCourante);
}
}
this.vueARafraichir = vueARafraichir;
}
 
public void changerNumeroPage(int pageCourante) {
currentPage = pageCourante;
selectionnerStructure();
}
 
public void changerTaillePage(int nouvelleTaillePage) {
nbElementsPage = nouvelleTaillePage;
selectionnerStructure();
}
public void recharger() {
selectionnerStructure();
}
public void setPageCourante(int pageCourante) {
this.currentPage = pageCourante;
}
 
public void setTaillePage(int taillePage) {
this.nbElementsPage = taillePage;
}
public int[] getPageTable() {
int[] page = new int[4];
 
// nombre de pages au total
page[0] = calculerNbPages();
 
// Page En Cours
page[1] = currentPage;
 
// nbElementsParPage
page[2] = nbElementsPage;
 
// et le dernier le nombre total d'éléments
page[3] = nbElementsTotal;
 
return page;
}
/**
* Calcule le nombre de pages nécessaires pour afficher un nombre d'élements
* donnés en fonction de la taille de page en cours
*
* @return le nombre de pages
*/
public int calculerNbPages() {
// A cause de la betise de java pour les conversion implicite on fait
// quelques conversions manuellement
// pour eviter qu'il arrondisse mal la division
// nombre de pages = (nombre d'element / taille de la page) arrondie à
// l'entier superieur
 
double nPage = (1.0 * nbElementsTotal) / (1.0 * nbElementsPage);
double nPageRound = Math.ceil(nPage);
Double nPageInt = new Double(nPageRound);
 
// on convertit en entier
return nPageInt.intValue();
}
public void selectionnerStructure() {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerStructure(vueARafraichir, null, null, null, currentPage, nbElementsPage);
}
public void filtrerParNom(String nom) {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerStructure(vueARafraichir, null, null, "%" + nom + "%", 0, nbElementsPage);
}
}
Property changes:
Added: svn:mergeinfo
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/structure/StructureAsyncDao.java
New file
0,0 → 1,220
package org.tela_botanica.client.modeles.structure;
 
import java.util.HashMap;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.personne.PersonneListe;
import org.tela_botanica.client.modeles.projet.ProjetListe;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONValue;
 
public class StructureAsyncDao {
private static final String SERVICE_NOM = "CoelStructure";
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
public StructureAsyncDao(Rafraichissable vue) {
vueARafraichir = vue;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
GWT.log("ID utilisateur :"+utilisateurId, null);
}
public void selectionner(final String projetId, final String structureId, final String nomStructure, final int pageCourante, final int nbElements) {
String[] parametres = {projetId, structureId, nomStructure};
HashMap<String, String> restrictions = new HashMap<String, String>();
restrictions.put("start", String.valueOf(pageCourante*nbElements));
if (nbElements != -1) {
restrictions.put("limit", String.valueOf(nbElements));
}
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue != null) {
Information info = new Information("selection_structure");
// Si la requête est un succès, reception d'un objet ou d'un tableau
JSONArray responseArray = responseValue.isArray();
if (responseArray.get(1).isObject() != null) {
final JSONObject reponse = responseArray.get(1).isObject();
Structure structure = new Structure(reponse);
StructureConservation structureConservation = new StructureConservation(reponse);
StructureValorisation structureValorisation = new StructureValorisation(reponse);
info.setDonnee(0, structure);
info.setDonnee(1, structureConservation);
info.setDonnee(2, structureValorisation);
vueARafraichir.rafraichir(info);
} else if (responseArray.get(1).isArray() != null) {
final JSONArray reponse = responseValue.isArray();
StructureListe structures; // = new StructureListe(reponse);
if (reponse.get(1).isObject() != null) {
structures = new StructureListe(reponse.get(1).isArray());
} else {
structures = new StructureListe(reponse.get(1).isArray(), reponse.get(0).isNumber(), vueARafraichir);
}
structures.setTaillePage(nbElements);
structures.setPageCourante(pageCourante);
info.setDonnee(0, structures);
vueARafraichir.rafraichir(structures);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
}
} else {
if (structureId == null) {
// Dans le cas, où nous demandons toutes les institutions et qu'il n'y en a pas, nous retournons un objet vide
StructureListe structures = new StructureListe(0);
vueARafraichir.rafraichir(structures);
}
}
}
});
}
public void ajouter(final Structure str, StructureConservation conservation, StructureValorisation valorisation) {
String postDonneesEncodees = construirePost(null, str, conservation, valorisation);
 
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("ajout_structure");
String structureIdOuMessage = responseValue.isString().stringValue();
if (structureIdOuMessage.matches("^[0-9]+$")) {
info.setDonnee(structureIdOuMessage);
} else {
info.setMessage(structureIdOuMessage);
}
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
 
public void modifier(String structureId, Structure str, StructureConservation conservation, StructureValorisation valorisation) {
String postDonneesEncodees = construirePost(structureId, str, conservation, valorisation);
String[] parametres = {structureId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
Information info = new Information("modif_structure");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void supprimer(String structuresId) {
String[] parametres = {utilisateurId, structuresId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("suppression_structure");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
private String construirePost(String structureId, Structure str, StructureConservation conservation, StructureValorisation valorisation) {
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId);
if (str != null) {
if (structureId != null) {
postDonnees += "&cs_id_structure=" + URL.encodeComponent(structureId);
}
postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(str.getIdProjet()).getAbreviation());
postDonnees += "&cs_ce_projet=" + URL.encodeComponent(str.getIdProjet()) +
"&cs_ce_mere=" + URL.encodeComponent(str.getIdMere()) +
"&cs_guid=" + URL.encodeComponent(str.getGuid()) +
"&cs_truk_identifiant_alternatif=" + URL.encodeComponent(str.getIdAlternatif()) +
"&cs_nom=" + URL.encodeComponent(str.getNom()) +
"&cs_truk_nom_alternatif=" + URL.encodeComponent(str.getNomAlternatif()) +
"&cs_ce_type=" + URL.encodeComponent(str.getType()) +
"&cs_ce_truk_type_prive=" + URL.encodeComponent(str.getTypePrive()) +
"&cs_ce_truk_type_public=" + URL.encodeComponent(str.getTypePublic()) +
"&cs_adresse_01=" + URL.encodeComponent(str.getAdresse()) +
"&cs_adresse_02=" + URL.encodeComponent(str.getAdresseComplement()) +
"&cs_date_fondation=" + URL.encodeComponent(str.getDateFondationFormatMysql()) +
"&cs_code_postal=" + URL.encodeComponent(str.getCodePostal()) +
"&cs_ville=" + URL.encodeComponent(str.getVille()) +
"&cs_ce_truk_region=" + URL.encodeComponent(str.get("ce_truk_region").toString()) +
"&cs_ce_truk_pays=" + URL.encodeComponent(str.getPays()) +
"&cs_truk_telephone=" + URL.encodeComponent(str.getTelephone()) +
"&cs_truk_url=" + URL.encodeComponent(str.getUrl()) +
"&cs_nbre_personne=" + URL.encodeComponent(Integer.toString(str.getNbrePersonne())) +
"&cs_courriel=" + URL.encodeComponent(str.getCourriel());
}
if (conservation != null) {
if (structureId != null) {
postDonnees += "&csc_id_structure=" + URL.encodeComponent(structureId);
}
postDonnees += "&csc_mark_formation=" + URL.encodeComponent(conservation.getFormation()) +
"&csc_formation=" + URL.encodeComponent(conservation.getFormationInfo()) +
"&csc_mark_formation_interet=" + URL.encodeComponent(conservation.getFormationInteret()) +
"&csc_truk_stockage_local=" + URL.encodeComponent(conservation.getStockageLocal()) +
"&csc_truk_stockage_meuble=" + URL.encodeComponent(conservation.getStockageMeuble()) +
"&csc_truk_stockage_parametre=" + URL.encodeComponent(conservation.getStockageParametre()) +
"&csc_mark_collection_commune=" + URL.encodeComponent(conservation.getCollectionCommune()) +
"&csc_truk_collection_autre=" + URL.encodeComponent(conservation.getCollectionAutre()) +
"&csc_mark_acces_controle=" + URL.encodeComponent(conservation.getAccesControle()) +
"&csc_mark_restauration=" + URL.encodeComponent(conservation.getRestauration()) +
"&csc_truk_restauration_operation=" + URL.encodeComponent(conservation.getRestaurationOperation()) +
"&csc_ce_materiel_conservation=" + URL.encodeComponent(conservation.getMaterielConservation()) +
"&csc_truk_materiel_autre=" + URL.encodeComponent(conservation.getMaterielAutre()) +
"&csc_mark_traitement=" + URL.encodeComponent(conservation.getTraitement()) +
"&csc_truk_traitement=" + URL.encodeComponent(conservation.getTraitements()) +
"&csc_mark_acquisition_collection=" + URL.encodeComponent(conservation.getAcquisitionCollection()) +
"&csc_mark_acquisition_echantillon=" + URL.encodeComponent(conservation.getAcquisitionEchantillon()) +
"&csc_mark_acquisition_traitement=" + URL.encodeComponent(conservation.getAcquisitionTraitement()) +
"&csc_truk_acquisition_traitement_poison=" + URL.encodeComponent(conservation.getAcquisitionTraitementPoison()) +
"&csc_truk_acquisition_traitement_insecte=" + URL.encodeComponent(conservation.getAcquisitionTraitementInsecte());
}
if (valorisation != null) {
if (structureId != null) {
postDonnees += "&csv_id_structure=" + URL.encodeComponent(structureId);
}
postDonnees += "&csv_mark_action=" + URL.encodeComponent(valorisation.getAction()) +
"&csv_truk_action=" + URL.encodeComponent(valorisation.getActionInfo()) +
"&csv_publication=" + URL.encodeComponent(valorisation.getPublication()) +
"&csv_collection_autre=" + URL.encodeComponent(valorisation.getCollectionAutre()) +
"&csv_mark_action_future=" + URL.encodeComponent(valorisation.getActionFuture()) +
"&csv_action_future=" + URL.encodeComponent(valorisation.getActionFutureInfo()) +
"&csv_mark_recherche=" + URL.encodeComponent(valorisation.getRecherche()) +
"&csv_truk_recherche_provenance=" + URL.encodeComponent(valorisation.getRechercheProvenance()) +
"&csv_truk_recherche_type=" + URL.encodeComponent(valorisation.getRechercheType()) +
"&csv_mark_acces_ss_motif=" + URL.encodeComponent(valorisation.getAccesSansMotif()) +
"&csv_acces_ss_motif=" + URL.encodeComponent(valorisation.getAccesSansMotifInfo()) +
"&csv_mark_visite_avec_motif=" + URL.encodeComponent(valorisation.getVisiteAvecMotif()) +
"&csv_visite_avec_motif=" + URL.encodeComponent(valorisation.getVisiteAvecMotifInfo());
}
return postDonnees;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/structure/StructureAPersonne.java
New file
0,0 → 1,295
package org.tela_botanica.client.modeles.structure;
 
import java.util.Iterator;
import java.util.Set;
 
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.personne.Personne;
 
import com.google.gwt.json.client.JSONObject;
 
public class StructureAPersonne extends aDonnee {
 
private static final long serialVersionUID = -7265602594281982891L;
 
public static final String PREFIXE = "csap";
public static final String FONCTION_DIRECTEUR = "2028";
public static final String FONCTION_CONSERVATEUR = "2029";
public static final String FONCTION_TECHNICIEN = "2030";
public static final String ROLE_ADMIN = "2026";
public static final String ROLE_EQUIPE = "2027";
public static final String ETAT_AJOUTE = "A";
public StructureAPersonne() {
// Définition des valeurs par défaut de variables obligatoires vis à vis de l'utilisation de l'objet
set("contact", false);
set("fonction", "");
set("statut", "");
set("travail", 0);
}
public StructureAPersonne(JSONObject personnel) {
// Définition des valeurs par défaut de variables obligatoires vis à vis de l'utilisation de l'objet
set("contact", false);
set("fonction", "");
set("statut", "");
set("travail", 0);
// L'objet JSON est une table de hachage
Set<String> im = personnel.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
if (cle.startsWith(PREFIXE+"_")) {
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
// Sinon, nous ajoutons la clé avec une valeur vide
String valeur = "";
if (personnel.get(cle).isString() != null) {
valeur = personnel.get(cle).isString().stringValue();
}
set(cleObjet, valeur);
if (cle.equals("mark_contact")) {
set("contact", (valeur.equals("1") ? true : false));
} else if (cle.equals("bota_travail_hebdo_tps")) {
set("travail", Integer.parseInt(valeur));
}
}
if (cle.startsWith(Personne.PREFIXE+"_")) {
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+Personne.PREFIXE+"_", "");
// Sinon, nous ajoutons la clé avec une valeur vide
String valeur = "";
if (personnel.get(cle).isString() != null) {
valeur = personnel.get(cle).isString().stringValue();
}
if (cleObjet.equals("truk_telephone")) {
set("telephone", valeur);
set("tel_fix", getInfoDenormaliseParType(valeur, Personne.TELEPHONE_FIXE));
set("tel_fax", getInfoDenormaliseParType(valeur, Personne.TELEPHONE_FAX));
} else if (cleObjet.equals("truk_courriel")) {
set("courriel", getInfoDenormaliseParPosition(valeur, 1));
} else if (cleObjet.equals("ce_truk_specialite")) {
set("specialite", getInfoDenormaliseParPosition(valeur, 1));
} else {
set(cleObjet, valeur);
}
}
}
}
/**
* Constructeur avec la fonction à passer en paramètre
*
* @param fonction fonction de la personne dans la structure.
* @param role identifiant du rôle de la personne vis à vis de la structure.
*/
public StructureAPersonne(String fonction, String roleId) {
setFonction(fonction);
setIdRole(roleId);
// Définition des valeurs par défaut de variables obligatoires vis à vis de l'utilisation de l'objet
set("contact", false);
set("fonction", fonction);
set("statut", "");
set("travail", 0);
}
/**
* Constructeur avec la fonction à passer en paramètre
*
* @param fonction fonction de la personne dans la structure.
* @param role identifiant du rôle de la personne vis à vis de la structure.
*/
public StructureAPersonne(String fonction, String roleId, String codeEtat) {
setFonction(fonction);
setIdRole(roleId);
// Définition des valeurs par défaut de variables obligatoires vis à vis de l'utilisation de l'objet
set("contact", false);
set("fonction", fonction);
set("statut", "");
set("travail", 0);
set("etat", codeEtat);
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
// ID
/** Génère un identifiant de StructureAPersonne.
*
* C'est une concaténation des clés primaires de la table coel_structure_a_personne séparées par un tiret "-".
*
* @return identifiant unique d'une relation "structure à personne".
*/
public String getId() {
String idStructure = renvoyerValeurCorrecte("id_structure");
String idPersonne = renvoyerValeurCorrecte("id_personne");
String idRole = renvoyerValeurCorrecte("id_role");
if (idStructure.equals("") && idPersonne.equals("") && idRole.equals("")) {
return null;
} else {
return (idStructure+"-"+idPersonne+"-"+idRole);
}
}
//+---------------------------------------------------------------------------------------------------------------+
// CHAMPS PROVENANT de la TABLE COEL_STRUCTURE_A_PERSONNE
// ID STRUCTURE
public String getIdStructure() {
return renvoyerValeurCorrecte("id_structure");
}
public void setIdStructure(String is) {
set("id_structure", is);
}
// ID PERSONNE
public String getIdPersonne() {
return renvoyerValeurCorrecte("id_personne");
}
public void setIdPersonne(String ip) {
set("id_personne", ip);
}
// ID RôLE
public String getIdRole() {
return renvoyerValeurCorrecte("id_role");
}
public void setIdRole(String ir) {
set("id_role", ir);
}
// FONCTION
public String getFonction() {
return renvoyerValeurCorrecte("ce_truk_fonction");
}
public void setFonction(String ctf) {
set("ce_truk_fonction", ctf);
}
public void setFonction(String type, String valeur) {
setChaineDenormaliseUnique("ce_truk_fonction", type, valeur);
}
// SERVICE
public String getService() {
return renvoyerValeurCorrecte("service");
}
public void setService(String s) {
set("service", s);
}
// STATUT
public String getStatut() {
return renvoyerValeurCorrecte("ce_truk_statut");
}
public void setStatut(String cts) {
set("ce_truk_statut", cts);
}
public void setStatut(String type, String valeur) {
setChaineDenormaliseUnique("ce_truk_statut", type, valeur);
}
// CONTACT
public String getContact() {
return renvoyerValeurCorrecte("mark_contact");
}
public void setContact(String c) {
//set("contact", (c.equals("1") ? true : false));
set("mark_contact", c);
}
public void setContact(Boolean c) {
setContact((c.equals(Boolean.TRUE) ? "1" : "0"));
}
// BOTA TRAVAIL HEBDO TPS
public String getBotaTravailHebdoTps() {
return renvoyerValeurCorrecte("bota_travail_hebdo_tps");
}
public void setBotaTravailHebdoTps(String btht) {
set("bota_travail_hebdo_tps", btht);
}
//+---------------------------------------------------------------------------------------------------------------+
// CHAMPS PROVENANT de la TABLE COEL_PERSONNE
// ID PROJET PERSONNE
public String getIdProjetPersonne() {
return renvoyerValeurCorrecte("ce_projet");
}
public void setIdProjetPersonne(String ipp) {
set("ce_projet", ipp);
}
// PRÉNOM
public String getPrenom() {
return renvoyerValeurCorrecte("prenom");
}
public void setPrenom(String prenom) {
set("prenom", prenom);
}
// NOM
public String getNom() {
return renvoyerValeurCorrecte("nom");
}
public void setNom(String nom) {
set("nom", nom);
}
// TÉLÉPHONE
public String getTelephone() {
return renvoyerValeurCorrecte("telephone");
}
public void setTelephone(String tel) {
set("telephone", tel);
}
// TÉLÉPHONE FIXE
public String getTelephoneFixe() {
return getInfoDenormaliseParType(renvoyerValeurCorrecte("telephone"), Personne.TELEPHONE_FIXE);
}
public void setTelephoneFixe(String fixe) {
// Nous remplaçons le premier numéro de Téléphone FIX de la personne
modifierChaineDenormaliseParType("telephone", Personne.TELEPHONE_FIXE, fixe);
}
// TÉLÉPHONE FAX
public String getFax() {
return getInfoDenormaliseParType(renvoyerValeurCorrecte("telephone"), Personne.TELEPHONE_FAX);
}
public void setFax(String fax) {
// Nous remplaçons le premier numéro de FAX de la personne
modifierChaineDenormaliseParType("telephone", Personne.TELEPHONE_FAX, fax);
}
// COURRIEL
public String getCourriel() {
return renvoyerValeurCorrecte("courriel");
}
public void setCourriel(String courriel) {
// Nous remplaçons le courriel en position 1 (principal)
this.modifierChaineDenormaliseParPosition("courriel", 1, courriel);
}
public String selectionnerCourriel(int position) {
return getInfoDenormaliseParPosition(renvoyerValeurCorrecte("courriel"), position);
}
// SPÉCIALITÉ
public String getSpecialite() {
return renvoyerValeurCorrecte("specialite");
}
public void setSpecialite(String specialite) {
setChaineDenormaliseUnique("specialite", "AUTRE", specialite);
}
public String afficherSpecialite() {
return getChaineDenormaliseUnique("specialite");
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/structure/StructureConservation.java
New file
0,0 → 1,231
package org.tela_botanica.client.modeles.structure;
 
import java.util.Iterator;
import java.util.Set;
 
import org.tela_botanica.client.modeles.aDonnee;
 
import com.google.gwt.json.client.JSONObject;
 
public class StructureConservation extends aDonnee {
private static final long serialVersionUID = -4556005804101933910L;
 
public static final String PREFIXE = "csc";
 
public StructureConservation() {
}
public StructureConservation(JSONObject conservation) {
// L'objet JSON est une table de hachage
Set<String> im = conservation.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
if (cle.startsWith(PREFIXE+"_")) {
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
// Sinon, nous ajoutons la clé avec une valeur vide
String valeur = "";
if (conservation.get(cle).isString() != null) {
valeur = conservation.get(cle).isString().stringValue();
}
this.set(cleObjet, valeur);
}
}
}
 
@Override
protected String getPrefixe() {
return PREFIXE;
}
// FORMATION
public String getFormation() {
return renvoyerValeurCorrecte("mark_formation");
}
public void setFormation(String f) {
this.set("mark_formation", f);
}
// FORMATION INFO
public String getFormationInfo() {
return renvoyerValeurCorrecte("formation");
}
public void setFormationInfo(String f) {
this.set("formation", f);
}
// FORMATION INTÉRÊT
public String getFormationInteret() {
return renvoyerValeurCorrecte("mark_formation_interet");
}
public void setFormationInteret(String f) {
this.set("mark_formation_interet", f);
}
// STOCKAGE LOCAL
public String getStockageLocal() {
return renvoyerValeurCorrecte("truk_stockage_local");
}
public void setStockageLocal(String sl) {
this.set("truk_stockage_local", sl);
}
public void setStockageLocal(String type, Object valeur) {
remplacerTypeDansChaineDenormalise("truk_stockage_local", type, valeur);
}
// STOCKAGE MEUBLE
public String getStockageMeuble() {
return renvoyerValeurCorrecte("truk_stockage_meuble");
}
public void setStockageMeuble(String sm) {
this.set("truk_stockage_meuble", sm);
}
public void setStockageMeuble(String type, Object valeur) {
remplacerTypeDansChaineDenormalise("truk_stockage_meuble", type, valeur);
}
// STOCKAGE PARAMÊTRE
public String getStockageParametre() {
return renvoyerValeurCorrecte("truk_stockage_parametre");
}
public void setStockageParametre(String sl) {
this.set("truk_stockage_parametre", sl);
}
public void setStockageParametre(String type, Object valeur) {
remplacerTypeDansChaineDenormalise("truk_stockage_parametre", type, valeur);
}
// COLLECTION COMMUNE
public String getCollectionCommune() {
return renvoyerValeurCorrecte("mark_collection_commune");
}
public void setCollectionCommune(String ccm) {
this.set("mark_collection_commune", ccm);
}
// COLLECTION AUTRE
public String getCollectionAutre() {
return renvoyerValeurCorrecte("truk_collection_autre");
}
public void setCollectionAutre(String ca) {
this.set("truk_collection_autre", ca);
}
public void setCollectionAutre(String type, Object valeur) {
remplacerTypeDansChaineDenormalise("truk_collection_autre", type, valeur);
}
// ACCÈS CONTROLÉ
public String getAccesControle() {
return renvoyerValeurCorrecte("mark_acces_controle");
}
public void setAccesControle(String ac) {
this.set("mark_acces_controle", ac);
}
// RESTAURATION
public String getRestauration() {
return renvoyerValeurCorrecte("mark_restauration");
}
public void setRestauration(String ccm) {
this.set("mark_restauration", ccm);
}
// RESTAURATION OPÉRATION
public String getRestaurationOperation() {
return renvoyerValeurCorrecte("truk_restauration_operation");
}
public void setRestaurationOperation(String ro) {
this.set("truk_restauration_operation", ro);
}
public void setRestaurationOperation(String type, Object valeur) {
ajouterChaineDenormaliseAvecType("truk_restauration_operation", type, valeur);
}
// MATERIEL CONSERVATION
public String getMaterielConservation() {
return renvoyerValeurCorrecte("ce_materiel_conservation");
}
public void setMaterielConservation(String mc) {
this.set("ce_materiel_conservation", mc);
}
// MATERIEL AUTRE
public String getMaterielAutre() {
return renvoyerValeurCorrecte("truk_materiel_autre");
}
public void setMaterielAutre(String ma) {
this.set("truk_materiel_autre", ma);
}
public void setMaterielAutre(String type, Object valeur) {
ajouterChaineDenormaliseAvecType("truk_materiel_autre", type, valeur);
}
// TRAITEMENT
public String getTraitement() {
return renvoyerValeurCorrecte("mark_traitement");
}
public void setTraitement(String t) {
this.set("mark_traitement", t);
}
// TRAITEMENTS
public String getTraitements() {
return renvoyerValeurCorrecte("truk_traitement");
}
public void setTraitements(String t) {
this.set("truk_traitement", t);
}
public void setTraitements(String type, Object valeur) {
ajouterChaineDenormaliseAvecType("truk_traitement", type, valeur);
}
// ACQUISITION COLLECTION
public String getAcquisitionCollection() {
return renvoyerValeurCorrecte("mark_acquisition_collection");
}
public void setAcquisitionCollection(String ac) {
this.set("mark_acquisition_collection", ac);
}
// ACQUISITION ECHANTILLON
public String getAcquisitionEchantillon() {
return renvoyerValeurCorrecte("mark_acquisition_echantillon");
}
public void setAcquisitionEchantillon(String ae) {
this.set("mark_acquisition_echantillon", ae);
}
// ACQUISITION TRAITEMENT
public String getAcquisitionTraitement() {
return renvoyerValeurCorrecte("mark_acquisition_traitement");
}
public void setAcquisitionTraitement(String at) {
this.set("mark_acquisition_traitement", at);
}
// ACQUISITION TRAITEMENT POISON
public String getAcquisitionTraitementPoison() {
return renvoyerValeurCorrecte("truk_acquisition_traitement_poison");
}
public void setAcquisitionTraitementPoison(String atp) {
this.set("truk_acquisition_traitement_poison", atp);
}
public void setAcquisitionTraitementPoison(String type, Object valeur) {
ajouterChaineDenormaliseAvecType("truk_acquisition_traitement_poison", type, valeur);
}
// ACQUISITION TRAITEMENT INSECTE
public String getAcquisitionTraitementInsecte() {
return renvoyerValeurCorrecte("truk_acquisition_traitement_insecte");
}
public void setAcquisitionTraitementInsecte(String ati) {
this.set("truk_acquisition_traitement_insecte", ati);
}
public void setAcquisitionTraitementInsecte(String type, Object valeur) {
ajouterChaineDenormaliseAvecType("truk_acquisition_traitement_insecte", type, valeur);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/structure/StructureValorisation.java
New file
0,0 → 1,162
package org.tela_botanica.client.modeles.structure;
 
import java.util.Iterator;
import java.util.Set;
 
import org.tela_botanica.client.modeles.aDonnee;
 
import com.google.gwt.json.client.JSONObject;
 
public class StructureValorisation extends aDonnee {
private static final long serialVersionUID = 8906713360999774621L;
 
public static final String PREFIXE = "csv";
 
public StructureValorisation() {
}
public StructureValorisation(JSONObject valorisation) {
// L'objet JSON est une table de hachage
Set<String> im = valorisation.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
if (cle.startsWith(PREFIXE+"_")) {
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
// Sinon, nous ajoutons la clé avec une valeur vide
String valeur = "";
if (valorisation.get(cle).isString() != null) {
valeur = valorisation.get(cle).isString().stringValue();
}
this.set(cleObjet, valeur);
}
}
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
// ACTION
public String getAction() {
return renvoyerValeurCorrecte("mark_action");
}
public void setAction(String a) {
this.set("mark_action", a);
}
// ACTION INFO
public String getActionInfo() {
return renvoyerValeurCorrecte("truk_action");
}
public void setActionInfo(String a) {
this.set("truk_action", a);
}
public void setActionInfo(String type, Object valeur) {
remplacerTypeDansChaineDenormalise("truk_action", type, valeur);
}
// PUBLICATION
public String getPublication() {
return renvoyerValeurCorrecte("publication");
}
public void setPublication(String p) {
this.set("publication", p);
}
// COLLECTION AUTRE
public String getCollectionAutre() {
return renvoyerValeurCorrecte("collection_autre");
}
public void setCollectionAutre(String ca) {
this.set("collection_autre", ca);
}
public void setCollectionAutre(String type, Object valeur) {
remplacerTypeDansChaineDenormalise("collection_autre", type, valeur);
}
// ACTION FUTURE
public String getActionFuture() {
return renvoyerValeurCorrecte("mark_action_future");
}
public void setActionFuture(String af) {
this.set("mark_action_future", af);
}
// ACTION FUTURE INFO
public String getActionFutureInfo() {
return renvoyerValeurCorrecte("action_future");
}
public void setActionFutureInfo(String af) {
this.set("action_future", af);
}
 
// RECHERCHE
public String getRecherche() {
return renvoyerValeurCorrecte("mark_recherche");
}
public void setRecherche(String r) {
this.set("mark_recherche", r);
}
// RECHERCHE PROVENANCE
public String getRechercheProvenance() {
return renvoyerValeurCorrecte("truk_recherche_provenance");
}
public void setRechercheProvenance(String rp) {
this.set("truk_recherche_provenance", rp);
}
public void setRechercheProvenance(String type, Object valeur) {
remplacerTypeDansChaineDenormalise("truk_recherche_provenance", type, valeur);
}
// RECHERCHE TYPE
public String getRechercheType() {
return renvoyerValeurCorrecte("truk_recherche_type");
}
public void setRechercheType(String rt) {
this.set("truk_recherche_type", rt);
}
public void setRechercheType(String type, Object valeur) {
remplacerTypeDansChaineDenormalise("truk_recherche_type", type, valeur);
}
// ACCES SANS MOTIF
public String getAccesSansMotif() {
return renvoyerValeurCorrecte("mark_acces_ss_motif");
}
public void setAccesSansMotif(String asm) {
this.set("mark_acces_ss_motif", asm);
}
// ACCES SANS MOTIF INFO
public String getAccesSansMotifInfo() {
return renvoyerValeurCorrecte("acces_ss_motif");
}
public void setAccesSansMotifInfo(String asm) {
this.set("acces_ss_motif", asm);
}
// VISITE AVEC MOTIF
public String getVisiteAvecMotif() {
return renvoyerValeurCorrecte("mark_visite_avec_motif");
}
public void setVisiteAvecMotif(String vam) {
this.set("mark_visite_avec_motif", vam);
}
// VISITE AVEC MOTIF INFO
public String getVisiteAvecMotifInfo() {
return renvoyerValeurCorrecte("visite_avec_motif");
}
public void setVisiteAvecMotifInfo(String vam) {
this.set("visite_avec_motif", vam);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/structure/StructureAPersonneListe.java
New file
0,0 → 1,41
package org.tela_botanica.client.modeles.structure;
 
import org.tela_botanica.client.modeles.aDonneeListe;
 
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
 
/**
* Table de hachage composée d'informations sur les Structures et les Personnes, renvoyé par un objet de type DAO
* La clé est une concaténation des clés primaires de la table coel_structure_a_personne séparées par un tiret "-".
*
* @author david delon
*
*/
public class StructureAPersonneListe extends aDonneeListe<StructureAPersonne> {
private static final long serialVersionUID = -2000442795474013672L;
 
public StructureAPersonneListe() {
super();
}
public StructureAPersonneListe(int taille) {
super(taille);
}
public StructureAPersonneListe(JSONArray structures) {
super(structures.size()) ;
final int taillemax = structures.size();
for (int i = 0; i < taillemax; i++) {
JSONObject structureAPersonneCourante = structures.get(i).isObject() ;
if (structureAPersonneCourante != null) {
StructureAPersonne structureAPersonne = new StructureAPersonne(structureAPersonneCourante);
this.put(structureAPersonne.getId(), structureAPersonne);
}
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/structure/StructureAPersonneAsyncDao.java
New file
0,0 → 1,137
package org.tela_botanica.client.modeles.structure;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONValue;
 
public class StructureAPersonneAsyncDao {
private static final String SERVICE_NOM = "CoelStructureAPersonne";
 
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
 
public StructureAPersonneAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
public void selectionner(final String structureId, final String roleId) {
String[] parametres = {structureId, roleId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
Information info = new Information("liste_structure_a_personne");
if (responseValue != null) {
// Si la requête est un succès, reception d'un tableau
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
// Transformation du tableau JSON réponse en ListeInstitution
StructureAPersonneListe personnel = new StructureAPersonneListe(reponse);
info.setDonnee(0, personnel);
// et on met à jour le demandeur des données
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un talbeau JSON et vaut : "+responseValue.toString(), null);
}
} else {
if (structureId == null) {
// Dans le cas, où nous demandons toutes les relations Structure à Personne et qu'il n'y en a pas, nous retournons un message d'information
info.setMessage("Aucun personnel");
vueARafraichir.rafraichir(info);
}
}
}
});
}
 
public void ajouter(String structureId, StructureAPersonne personnel) {
String postDonneesEncodees = construirePost(structureId, personnel);
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
Information info = new Information("ajout_structure_a_personne");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void modifier(StructureAPersonne personnel) {
String[] parametres = {personnel.getIdStructure(), personnel.getIdPersonne(), personnel.getIdRole()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
String postDonneesEncodees = construirePost(personnel.getIdStructure(), personnel);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
Information info = new Information("modif_structure_a_personne");
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
public void supprimer(String idStrAPer) {
String[] parametres = {utilisateurId, idStrAPer};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("suppression_structure_a_personne");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
private String construirePost(String structureId, StructureAPersonne personnel) {
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId);
if (!personnel.getIdPersonne().equals("")) {
postDonnees += "&csap_id_personne=" + URL.encodeComponent(personnel.getIdPersonne()) +
"&cp_id_personne=" + URL.encodeComponent(personnel.getIdPersonne());
}
postDonnees += "&csap_id_structure=" + URL.encodeComponent(structureId) +
"&csap_id_role=" + URL.encodeComponent(personnel.getIdRole()) +
"&csap_ce_truk_fonction=" + URL.encodeComponent(personnel.getFonction()) +
"&csap_service=" + URL.encodeComponent(personnel.getService()) +
"&csap_ce_truk_statut=" + URL.encodeComponent(personnel.getStatut()) +
"&csap_mark_contact=" + URL.encodeComponent(personnel.getContact()) +
"&csap_bota_travail_hebdo_tps=" + URL.encodeComponent(personnel.getBotaTravailHebdoTps()) +
"&cp_ce_projet=" + URL.encodeComponent(personnel.getIdProjetPersonne()) +
"&cp_prenom=" + URL.encodeComponent(personnel.getPrenom()) +
"&cp_nom=" + URL.encodeComponent(personnel.getNom()) +
"&cp_truk_telephone=" + URL.encodeComponent(personnel.getTelephone()) +
"&cp_truk_courriel=" + URL.encodeComponent(personnel.getCourriel()) +
"&cp_ce_truk_specialite=" + URL.encodeComponent(personnel.getSpecialite()) +
"";
return postDonnees;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/ValeurListeAsyncDao.java
New file
0,0 → 1,62
package org.tela_botanica.client.modeles;
 
import java.util.HashMap;
 
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.util.UtilDAO;
 
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.json.client.JSONValue;
 
public class ValeurListeAsyncDao {
private static HashMap<String, ValeurListe> ontologieCache = new HashMap<String, ValeurListe>();
private static final String SERVICE_NOM = "CoelValeurListe";
private Rafraichissable vueARafraichir = null;
public ValeurListeAsyncDao(Rafraichissable vueCourante) {
vueARafraichir = vueCourante;
}
public void obtenirListe(Integer cle) {
selectionner("id", cle, null, null);
}
public void selectionner(String type, Integer cle, String abv, String idValeur) {
// La cleParent en Integer est insuffisante pour les liste valeurs comme Région qui on plusieurs sections sur leur liste
// (ex : on ne sélectionne que les régions FR.__ puis les régions ES.__ sur la liste 1078 ....
final String cleParent = cle + (abv == null ? "" : abv);
if (ontologieCache.containsKey(cleParent)) {
vueARafraichir.rafraichir(ontologieCache.get(cleParent));
} else {
String paramAbv = (type.equals("id") ? null : abv);
String[] parametres = {type, cleParent.toString(), paramAbv, idValeur};
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isObject() != null) {
final JSONObject reponse = responseValue.isObject();
JSONString listeId = reponse.get("id").isString();
JSONArray listeValeurs = reponse.get("valeurs").isArray();
if (listeId != null) {
// Transformation du tableau JSON réponse en Liste
ValeurListe liste = new ValeurListe(listeId, listeValeurs);
// Stockage en cache
ontologieCache.put(cleParent, liste);
// et on met à jour le demandeur des données
vueARafraichir.rafraichir(liste);
}
}
}
});
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/commentaire/Commentaire.java
New file
0,0 → 1,133
package org.tela_botanica.client.modeles.commentaire;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.collection.Collection;
import org.tela_botanica.client.modeles.collection.CollectionACommentaire;
 
import com.google.gwt.json.client.JSONObject;
 
public class Commentaire extends aDonnee {
 
private static final long serialVersionUID = 7216356814682582569L;
private static final String PREFIXE = "ccm";
private Collection collection = null;
private CollectionACommentaire collectionACommentaire = null;
public Commentaire() {
}
public Commentaire(JSONObject commentaire) {
initialiserCommentaire(commentaire, false);
}
 
public Commentaire(JSONObject commentaire, boolean chargerCollectionACommentaire) {
initialiserCommentaire(commentaire, chargerCollectionACommentaire);
}
public void initialiserCommentaire(JSONObject commentaire, boolean chargerCollectionACommentaire) {
initialiserModele(commentaire);
collection = new Collection(commentaire);
if (chargerCollectionACommentaire) {
collectionACommentaire = new CollectionACommentaire(commentaire);
} else {
collectionACommentaire = new CollectionACommentaire();
}
initialiserChampsPourGrille();
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
private void initialiserChampsPourGrille() {
set("_collection_nom_", getCollection().getNom());
set("_type_", getCollectionACommentaire().getType());
set("_titre_", getTitre());
set("_texte_", getTexteResume());
set("_ponderation_", getPonderation());
set("_public_", getPublic());
set("_etat_", "");
}
public Collection getCollection() {
if (collection == null) {
collection = new Collection();
}
return collection;
}
public void setCollection(Collection collectionAStocker) {
collection = collectionAStocker;
}
public CollectionACommentaire getCollectionACommentaire() {
if (collectionACommentaire == null) {
collectionACommentaire = new CollectionACommentaire();
}
return collectionACommentaire;
}
public void setCollectionACommentaire(CollectionACommentaire collectionACommentaireAStocker) {
collectionACommentaire = collectionACommentaireAStocker;
}
public String getId() {
return renvoyerValeurCorrecte("id_commentaire");
}
public void setId(String idCommentaire) {
this.set("id_commentaire", idCommentaire);
}
public String getIdProjet() {
return renvoyerValeurCorrecte("ce_projet");
}
public void setIdProjet(String idProjet) {
this.set("ce_projet", idProjet);
}
public String getCommentairePereId() {
return renvoyerValeurCorrecte("ce_pere");
}
public void setCommentairePereId(String idPere) {
this.set("ce_pere", idPere);
}
public String getTitre() {
return renvoyerValeurCorrecte("titre");
}
public void setTitre(String titre) {
this.set("titre", titre);
}
public String getTexteResume() {
String resume = getTexte();
if (getTexte().length() > 100) {
resume = getTexte().substring(0, 100);
}
return resume;
}
public String getTexte() {
return renvoyerValeurCorrecte("texte");
}
public void setTexte(String texte) {
this.set("texte", texte);
}
public String getPonderation() {
return renvoyerValeurCorrecte("ponderation");
}
public void setPonderation(String ponderation) {
this.set("ponderation", ponderation);
}
public boolean etrePublic() {
return (getPublic().equals("1") ? true : false);
}
public String getPublic() {
return renvoyerValeurCorrecte("mark_public");
}
public void setPublic(String publique) {
this.set("mark_public", publique);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/commentaire/CommentaireListe.java
New file
0,0 → 1,141
package org.tela_botanica.client.modeles.commentaire;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.interfaces.ListePaginable;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.aDonneeListe;
import org.tela_botanica.client.modeles.structure.Structure;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.i18n.client.Dictionary;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
 
public class CommentaireListe extends aDonneeListe<Commentaire> implements ListePaginable {
 
private static final long serialVersionUID = 2600314321196345072L;
private int currentPage = 0;
private int nbElementsPage = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
private int nbElementsTotal;
private Rafraichissable vueARafraichir;
public CommentaireListe() {
super();
}
public CommentaireListe(int taille) {
super(taille);
}
/**
* Constructeur pour une liste de commentaires
* @param dates
*/
public CommentaireListe(JSONArray commentaires) {
super(commentaires.size());
boolean chargerCollectionACommentaire = true;
int taille = commentaires.size();
for (int i = 0; i < taille; i++) {
JSONObject commentaireCourant = commentaires.get(i).isObject() ;
if (commentaireCourant != null) {
Commentaire commentaire = new Commentaire(commentaireCourant, chargerCollectionACommentaire);
this.put(commentaire.getId(), commentaire);
}
}
}
public CommentaireListe(JSONArray commentaireListe, JSONNumber nbElements, Rafraichissable vueARafraichir) {
super(commentaireListe.size());
this.nbElementsTotal = Integer.valueOf(nbElements.toString());
final int taillemax = commentaireListe.size();
for (int i = 0; i < taillemax; i++) {
JSONObject commentaire = commentaireListe.get(i).isObject() ;
if (commentaire != null) {
Commentaire commentaireCourant = new Commentaire(commentaire);
this.put(commentaireCourant.getId(), commentaireCourant);
}
}
this.vueARafraichir = vueARafraichir;
}
public void changerNumeroPage(int pageCourante) {
currentPage = pageCourante;
selectionnerCommentaire();
}
 
public void changerTaillePage(int nouvelleTaillePage) {
nbElementsPage = nouvelleTaillePage;
selectionnerCommentaire();
}
public void recharger() {
selectionnerCommentaire();
}
public void setPageCourante(int pageCourante) {
this.currentPage = pageCourante;
}
 
public void setTaillePage(int taillePage) {
this.nbElementsPage = taillePage;
}
public int[] getPageTable() {
int[] page = new int[4];
 
// nombre de pages au total
page[0] = calculerNbPages();
 
// Page En Cours
page[1] = currentPage;
 
// nbElementsParPage
page[2] = nbElementsPage;
 
// et le dernier le nombre total d'éléments
page[3] = nbElementsTotal;
 
return page;
}
/**
* Calcule le nombre de pages nécessaires pour afficher un nombre d'élements
* donnés en fonction de la taille de page en cours
*
* @return le nombre de pages
*/
public int calculerNbPages() {
// A cause de la betise de java pour les conversion implicite on fait
// quelques conversions manuellement
// pour eviter qu'il arrondisse mal la division
// nombre de pages = (nombre d'element / taille de la page) arrondie à
// l'entier superieur
 
double nPage = (1.0 * nbElementsTotal) / (1.0 * nbElementsPage);
double nPageRound = Math.ceil(nPage);
Double nPageInt = new Double(nPageRound);
 
// on convertit en entier
return nPageInt.intValue();
}
public void selectionnerCommentaire() {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerCommentaire(vueARafraichir, null, null, currentPage, nbElementsPage);
}
public void filtrerParNom(String nom) {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerCommentaireParTitre(vueARafraichir, "%" + nom + "%");
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/commentaire/CommentaireAsyncDao.java
New file
0,0 → 1,132
package org.tela_botanica.client.modeles.commentaire;
 
import java.util.HashMap;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONValue;
 
public class CommentaireAsyncDao {
private static final String SERVICE_NOM = "CoelCommentaire";
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
public CommentaireAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante ;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
 
public void selectionner(final String commentaireId, String projetId, String titre, final int pageCourante, final int nbElements) {
String[] parametres = {projetId, commentaireId, titre};
HashMap<String, String> restrictions = new HashMap<String, String>();
restrictions.put("start", String.valueOf(pageCourante*nbElements));
if (nbElements != -1) {
restrictions.put("limit", String.valueOf(nbElements));
}
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue != null) {
// Si la requête est un succès, réception d'un objet ou d'un tableau
JSONArray responseArray = responseValue.isArray();
if (responseArray.get(1).isObject() != null) {
final JSONObject reponse = responseArray.get(1).isObject();
// Transformation du tableau JSON réponse en ListeInstitution
Commentaire commentaire = new Commentaire(reponse);
// et on met à jour le demandeur des données
vueARafraichir.rafraichir(commentaire);
} else if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
CommentaireListe commentaires;
if (reponse.get(1).isObject() != null) {
commentaires = new CommentaireListe(reponse.get(1).isArray());
} else {
commentaires = new CommentaireListe(reponse.get(1).isArray(), reponse.get(0).isNumber(), vueARafraichir);
}
commentaires.setTaillePage(nbElements);
commentaires.setPageCourante(pageCourante);
 
vueARafraichir.rafraichir(commentaires);
} else {
GWT.log("La réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
}
} else {
// Dans le cas, où nous demandons toutes les publication et qu'il n'y en a pas, nous retournons un objet vide
if (commentaireId == null) {
CommentaireListe commentaires = new CommentaireListe(0);
vueARafraichir.rafraichir(commentaires);
}
}
}
});
}
 
public void ajouter(Commentaire commentaire) {
String postDonneesEncodees = commentaire.obtenirChainePOST()+"&cmhl_ce_modifier_par="+utilisateurId;
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "ajout_commentaire");
}
}) ;
}
public void modifier(Commentaire commentaire) {
String[] parametres = {commentaire.getId()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
String postDonneesEncodees = commentaire.obtenirChainePOST()+"&cmhl_ce_modifier_par="+utilisateurId;
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "modif_commentaire");
}
});
}
 
public void supprimer(String commentairesId) {
String[] parametres = {utilisateurId, commentairesId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "suppression_commentaire");
}
});
}
private void traiterReponse(JSONValue reponseValeur, String type) {
Information info = new Information(type);
// Si la requête est un succès, réception d'une chaîne
if (reponseValeur.isString() != null) {
String idOuMessage = reponseValeur.isString().stringValue();
if (idOuMessage.matches("^[0-9]+$")) {
info.setDonnee(idOuMessage);
} else {
info.setMessage(idOuMessage);
}
} else {
info.setDeboguage("La réponse n'est pas une chaine JSON.");
}
vueARafraichir.rafraichir(info);
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/InterneValeur.java
New file
0,0 → 1,32
package org.tela_botanica.client.modeles;
 
import com.extjs.gxt.ui.client.data.BaseModelData;
 
public class InterneValeur extends BaseModelData {
private static final long serialVersionUID = 8587069259740389877L;
 
public InterneValeur() {
}
public InterneValeur(String abr, String nom) {
setAbr(abr);
setNom(nom);
}
public String getNom() {
return get("nom");
}
public void setNom(String nom) {
set("nom", nom);
}
 
public String getAbr() {
return get("abr");
}
 
public void setAbr(String abr) {
set("abr", abr);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/projet/Projet.java
New file
0,0 → 1,122
package org.tela_botanica.client.modeles.projet;
 
import org.tela_botanica.client.modeles.aDonnee;
 
import com.google.gwt.json.client.JSONObject;
 
public class Projet extends aDonnee {
private static final long serialVersionUID = 6733053168274995082L;
 
private static final String PREFIXE = "cpr";
 
public Projet() {}
public Projet(JSONObject liste) {
initialiserModele(liste);
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
public String getId() {
return renvoyerValeurCorrecte("id_projet");
}
public void setId(String projetId) {
set("id_projet", projetId);
}
public String getNom() {
return renvoyerValeurCorrecte("nom");
}
public void setNom(String nom) {
set("nom", nom);
}
public String getAbreviation() {
return renvoyerValeurCorrecte("abreviation");
}
public void setAbreviation(String abrev) {
set("abreviation", abrev);
}
public String getResume() {
return renvoyerValeurCorrecte("resume");
}
public void setResume(String valeur) {
set("resume", valeur);
}
public String getDescription() {
return renvoyerValeurCorrecte("description");
}
public void setDescription(String valeur) {
set("description", valeur);
}
public String getUrl() {
return renvoyerValeurCorrecte("url");
}
public void setUrl(String valeur) {
set("url", valeur);
}
public String getMotsCles() {
return renvoyerValeurCorrecte("mot_cles");
}
public void setMotsCles(String valeur) {
set("mot_cles", valeur);
}
public String getCitation() {
return renvoyerValeurCorrecte("citation");
}
public void setCitation(String valeur) {
set("citation", valeur);
}
public String getLicence() {
return renvoyerValeurCorrecte("licence");
}
public void setLicence(String valeur) {
set("licence", valeur);
}
public String getLangue() {
return renvoyerValeurCorrecte("ce_langue");
}
public void setLangue(String valeur) {
set("ce_langue", valeur);
}
public String getIndexationHeure() {
return renvoyerValeurCorrecte("indexation_heure");
}
public void setIndexationHeure(String valeur) {
set("indexation_heure", valeur);
}
public String getIndexationDuree() {
return renvoyerValeurCorrecte("ce_indexation_duree");
}
public void setIndexationDuree(String valeur) {
set("ce_indexation_duree", valeur);
}
public String getIndexationFreq() {
return renvoyerValeurCorrecte("ce_indexation_freq");
}
public void setIndexationFreq(String valeur) {
set("ce_indexation_freq", valeur);
}
public String getMarkPublic() {
return renvoyerValeurCorrecte("mark_public");
}
public void setMarkPublic(String valeur) {
set("mark_public", valeur);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/projet/ProjetListe.java
New file
0,0 → 1,151
package org.tela_botanica.client.modeles.projet;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.interfaces.ListePaginable;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.aDonneeListe;
import org.tela_botanica.client.modeles.structure.Structure;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.i18n.client.Dictionary;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
 
/**
* Table de hachage composée d'informations sur les Valeurs des listes, renvoyé par un objet de type DAO
* La clé est l'id de l'entite.
*
* @author Grégoire DUCHÉ
*
*/
public class ProjetListe extends aDonneeListe<Projet> implements ListePaginable {
private static final long serialVersionUID = -9030260944108896455L;
private int currentPage = 0;
private int nbElementsPage = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
private int nbElementsTotal;
private Rafraichissable vueARafraichir;
/**
* Constructeur sans paramètres
*/
public ProjetListe() {
super();
}
/**
* Constructeur avec paramètre
* @param taille la taille de la table de hachage
*/
public ProjetListe(int taille) {
super(taille);
}
/**
* Constructeur pour une liste de projets
* @param dates
*/
public ProjetListe(JSONArray projetsListe) {
super(projetsListe.size());
final int taillemax = projetsListe.size();
for (int i = 0; i < taillemax; i++) {
JSONObject projetCourant = projetsListe.get(i).isObject() ;
if (projetCourant != null) {
Projet projet = new Projet(projetCourant);
this.put(projet.getId(), projet);
}
}
}
public ProjetListe(JSONArray projetListe, JSONNumber nbElements, Rafraichissable vueARafraichir) {
super(projetListe.size());
this.nbElementsTotal = Integer.valueOf(nbElements.toString());
final int taillemax = projetListe.size();
for (int i = 0; i < taillemax; i++) {
JSONObject projet = projetListe.get(i).isObject() ;
if (projet != null) {
Projet projetCourant = new Projet(projet);
this.put(projetCourant.getId(), projetCourant);
}
}
this.vueARafraichir = vueARafraichir;
}
public void changerNumeroPage(int pageCourante) {
currentPage = pageCourante;
selectionnerStructure();
}
 
public void changerTaillePage(int nouvelleTaillePage) {
nbElementsPage = nouvelleTaillePage;
selectionnerStructure();
}
public void recharger() {
selectionnerStructure();
}
public void setPageCourante(int pageCourante) {
this.currentPage = pageCourante;
}
 
public void setTaillePage(int taillePage) {
this.nbElementsPage = taillePage;
}
public int[] getPageTable() {
int[] page = new int[4];
 
// nombre de pages au total
page[0] = calculerNbPages();
 
// Page En Cours
page[1] = currentPage;
 
// nbElementsParPage
page[2] = nbElementsPage;
 
// et le dernier le nombre total d'éléments
page[3] = nbElementsTotal;
 
return page;
}
/**
* Calcule le nombre de pages nécessaires pour afficher un nombre d'élements
* donnés en fonction de la taille de page en cours
*
* @return le nombre de pages
*/
public int calculerNbPages() {
// A cause de la betise de java pour les conversion implicite on fait
// quelques conversions manuellement
// pour eviter qu'il arrondisse mal la division
// nombre de pages = (nombre d'element / taille de la page) arrondie à
// l'entier superieur
 
double nPage = (1.0 * nbElementsTotal) / (1.0 * nbElementsPage);
double nPageRound = Math.ceil(nPage);
Double nPageInt = new Double(nPageRound);
 
// on convertit en entier
return nPageInt.intValue();
}
public void selectionnerStructure() {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerProjet(vueARafraichir, null, null, currentPage, nbElementsPage);
}
public void filtrerParNom(String nom) {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerProjet(vueARafraichir, null, "%" + nom + "%", 0, nbElementsPage);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/projet/ProjetAsyncDao.java
New file
0,0 → 1,141
package org.tela_botanica.client.modeles.projet;
 
import java.util.HashMap;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.widget.Info;
import com.google.gwt.core.client.GWT;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONValue;
 
public class ProjetAsyncDao {
private static final String SERVICE_NOM = "CoelProjet";
String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
public ProjetAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
public void selectionner(final String projetId, final String nom, final int pageCourante, final int nbElements) {
String[] param = {projetId, nom};
HashMap<String, String> restrictions = new HashMap<String, String>();
restrictions.put("start", String.valueOf(pageCourante*nbElements));
if (nbElements != -1) {
restrictions.put("limit", String.valueOf(nbElements));
}
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, param, restrictions);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue != null) {
// Si la requête est un succès, reception d'un objet ou d'un tableau
JSONArray responseArray = responseValue.isArray();
if (responseArray.get(1).isObject() != null) {
final JSONObject reponse = responseArray.get(1).isObject();
Projet projet = new Projet(reponse);
Information info = new Information("selection_projet");
info.setDonnee(0, projet);
vueARafraichir.rafraichir(info);
} else if (responseArray.get(1).isArray() != null) {
final JSONArray reponse = responseValue.isArray();
ProjetListe projets;
if (responseArray.get(1).isObject() != null) {
projets = new ProjetListe(reponse.get(1).isArray());
} else {
projets = new ProjetListe(reponse.get(1).isArray(), reponse.get(0).isNumber(), vueARafraichir);
}
projets.setTaillePage(nbElements);
projets.setPageCourante(pageCourante);
vueARafraichir.rafraichir(projets);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
}
} else {
// Dans le cas, où nous demandons tous les projets et qu'il n'y en a pas, nous retournons un objet vide
if (projetId == null) {
ProjetListe projets = new ProjetListe(0);
vueARafraichir.rafraichir(projets);
}
}
}
});
}
public void ajouter(Projet projet) {
String postDonneesEncodees = projet.obtenirChainePOST()+"&cmhl_ce_modifier_par="+utilisateurId;
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "ajout_projet");
}
}) ;
}
public void modifier(Projet projet) {
String[] parametres = {projet.getId()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
String postDonneesEncodees = projet.obtenirChainePOST()+"&cmhl_ce_modifier_par="+utilisateurId;
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "modif_projet");
}
});
}
 
public void supprimer(String projetsId) {
String[] parametres = {utilisateurId, projetsId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "suppression_projet");
}
});
}
private void traiterReponse(JSONValue reponseValeur, String type) {
Information info = new Information(type);
String idsNonSuppr = "";
// Si la requête est un succès, réception d'une chaîne
if (type.equals("suppression_projet") && reponseValeur.isArray() != null) {
JSONArray tableauInfo = reponseValeur.isArray();
idsNonSuppr = tableauInfo.get(0).isString().stringValue();
} else if (reponseValeur.isString() != null) {
String idOuMessage = reponseValeur.isString().stringValue();
if (idOuMessage.matches("^[0-9]+$")) {
info.setDonnee(idOuMessage);
} else {
info.setDonnee("");
info.setMessage(idOuMessage);
}
} else {
info.setDeboguage("La réponse n'est pas une chaine JSON.");
}
info.setDonnee(1, idsNonSuppr);
vueARafraichir.rafraichir(info);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/projet/ProjetVersion.java
New file
0,0 → 1,79
package org.tela_botanica.client.modeles.projet;
 
import java.util.Iterator;
import java.util.Set;
 
import org.tela_botanica.client.modeles.aDonnee;
 
import com.google.gwt.json.client.JSONObject;
 
public class ProjetVersion extends aDonnee {
 
/**
*
*/
private static final long serialVersionUID = 1L;
 
private static final String PREFIXE = "cprv";
 
public ProjetVersion() {
//this.set("mark_contact", false);
super();
}
public ProjetVersion(JSONObject liste) {
// l'objet JSON est une table de hachage
Set<String> im = liste.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
if (liste.get(cle).isString() != null) {
String valeur = liste.get(cle).isString().stringValue();
this.set(cleObjet, valeur);
} else {
// Sinon, nous ajoutons la clé avec une valeur vide
String valeur = " ";
this.set(cleObjet, valeur);
}
}
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
public String getIdVersion() {
return renvoyerValeurCorrecte("id_version");
}
public String getIdProjet() {
return renvoyerValeurCorrecte("id_projet");
}
public String getNom() {
return renvoyerValeurCorrecte("nom");
}
public String getCode() {
return renvoyerValeurCorrecte("code");
}
public String getDateDebut() {
return renvoyerValeurCorrecte("date_debut");
}
public String getDateFin() {
return renvoyerValeurCorrecte("date_fin");
}
public String getMeta() {
return renvoyerValeurCorrecte("ce_meta ");
}
 
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/InterneValeurListe.java
New file
0,0 → 1,39
package org.tela_botanica.client.modeles;
 
import java.util.ArrayList;
import java.util.List;
 
public class InterneValeurListe {
 
public static List<InterneValeur> getTypeAcronyme() {
List<InterneValeur> acronymes = new ArrayList<InterneValeur>();
acronymes.add(new InterneValeur("", "Aucun"));
acronymes.add(getTypeAcronymeIH());
acronymes.add(getTypeAcronymeMNHN());
return acronymes;
}
public static List<InterneValeur> getTypeStructure() {
List<InterneValeur> types = new ArrayList<InterneValeur>();
types.add(new InterneValeur("", "Aucun"));
types.add(getTypePublique());
types.add(getTypePrivee());
return types;
}
public static InterneValeur getTypePublique() {
return new InterneValeur("stpu", "Publique");
}
public static InterneValeur getTypePrivee() {
return new InterneValeur("stpr", "Privée");
}
public static InterneValeur getTypeAcronymeIH() {
return new InterneValeur("IH", "Index Herbariorum");
}
public static InterneValeur getTypeAcronymeMNHN() {
return new InterneValeur("MNHN", "Muséum National d'Histoire Naturelle de Paris");
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/Information.java
New file
0,0 → 1,119
package org.tela_botanica.client.modeles;
 
import java.util.ArrayList;
 
import com.google.gwt.json.client.JSONArray;
 
public class Information {
private String type = null;
private ArrayList<String> messages = null;
private ArrayList<String> deboguages = null;
private ArrayList<Object> donnees = null;
public Information() {
donnees = new ArrayList<Object>();
messages = new ArrayList<String>();
deboguages = new ArrayList<String>();
}
 
public Information(String t) {
donnees = new ArrayList<Object>();
messages = new ArrayList<String>();
deboguages = new ArrayList<String>();
type = t;
}
public Information(String t, String m) {
donnees = new ArrayList<Object>();
messages = new ArrayList<String>();
messages.add(m);
deboguages = new ArrayList<String>();
type = t;
}
public Information(String t, JSONArray jsonArray) {
donnees = new ArrayList<Object>();
messages = new ArrayList<String>();
for(int i = 0 ; i < jsonArray.size() ; i++) {
if (jsonArray.get(i).isString() != null) {
messages.add(jsonArray.get(i).isString().stringValue());
}
}
deboguages = new ArrayList<String>();
type = t;
}
 
public Information(String t, Object o) {
donnees = new ArrayList<Object>();
donnees.add(o);
messages = new ArrayList<String>();
deboguages = new ArrayList<String>();
type = t;
}
 
public void setType(String t) {
type = t;
}
public String getType() {
return type;
}
public void setMessage(String message) {
messages.add(message);
}
public String getMessage(int index) {
return messages.get(index);
}
public ArrayList<String> getMessages() {
return messages;
}
public void setDeboguage(String messageDeboguage) {
deboguages.add(messageDeboguage);
}
public void setDeboguages(JSONArray jsonArray) {
for(int i = 0 ; i < jsonArray.size() ; i++) {
if (jsonArray.get(i).isString() != null) {
deboguages.add(jsonArray.get(i).isString().stringValue());
}
}
}
public String getDeboguage(int index) {
return deboguages.get(index);
}
public ArrayList<String> getDeboguages() {
return deboguages;
}
public void setDonnee(Object objet) {
donnees.add(objet);
}
public void setDonnee(int index, Object objet) {
if (objet != null) {
donnees.add(index, objet);
}
}
public Object getDonnee(int index) {
try {
return donnees.get(index);
} catch (Exception e) {
return null;
}
}
public ArrayList<Object> getDonnees() {
return donnees;
}
 
public String toString() {
String chaine = new String();
if (messages != null) {
for (int i = 0 ; i < messages.size() ; i++) {
// GXT ne prend pas en compte /n ou /r/n...
chaine += getMessage(i)+"\n";
}
}
return chaine;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/publication/PublicationAPersonne.java
New file
0,0 → 1,150
package org.tela_botanica.client.modeles.publication;
 
import java.util.Iterator;
import java.util.Set;
 
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.personne.Personne;
 
import com.google.gwt.json.client.JSONObject;
 
public class PublicationAPersonne extends aDonnee {
 
private static final long serialVersionUID = 7769105365939978129L;
public static final String PREFIXE = "cpuap";
public static final String ROLE_AUTEUR = "2360";
//FIXME: insérer en base de données une valeur cohérente pour l'identifiant ci-dessous
public static final String ROLE_SUJET = "30762";
private Personne personneLiee = null;
private Publication publicationLiee = null;
public PublicationAPersonne() {
new PublicationAPersonne(new JSONObject());
}
public PublicationAPersonne(JSONObject pubAPersListe) {
personneLiee = new Personne(pubAPersListe);
publicationLiee = new Publication(pubAPersListe);
// l'objet JSON est une table de hachage
Set<String> im = pubAPersListe.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
// Valeur vide par défaut
String valeur = "";
if (pubAPersListe.get(cle).isString() != null) {
valeur = pubAPersListe.get(cle).isString().stringValue();
this.set(cleObjet, valeur);
} else {
this.set(cleObjet, valeur);
}
}
initialiserChampsPourGrille();
}
private void initialiserChampsPourGrille() {
set("fmt_auteur", publicationLiee.getAuteur());
set("titre", publicationLiee.getTitre());
set("collection", publicationLiee.getCollection());
set("_editeur_", "");
set("_annee_", "");
set("indication_nvt", publicationLiee.getIndicationNvt());
set("fascicule", publicationLiee.getFascicule());
set("truk_pages", publicationLiee.getPages());
set("_etat_", "");
set("_role_", this.get("id_role"));
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
 
public Personne getPersonne() {
return personneLiee;
}
public void setPersonne(Personne personne) {
personneLiee = personne;
if (personne != null) {
setIdPersonne(personne.getId());
}
}
// ID
public String getId() {
String idPublication = getIdPublication();
String idPersonne = getIdPersonne();
String idRole = getIdRole();
if (idPublication.equals("") && idPersonne.equals("") && idRole.equals("")) {
return null;
} else {
return (idPublication+"-"+idPersonne+"-"+idRole);
}
}
// ID PUBLICATION
public String getIdPublication() {
return renvoyerValeurCorrecte("id_publication");
}
public void setIdPublication(String id) {
set("id_publication", id);
}
// PUBLICATION LIEE
public Publication getPublicationLiee() {
return this.publicationLiee;
}
// LIER PUBLICATION
public void setPublicationLiee(Publication publication) {
this.publicationLiee = publication;
initialiserChampsPourGrille();
}
// ROLE
public String getRole() {
String role = this.get("_role_");
if (role != null) {
return role;
} else {
return "";
}
}
// ID PERSONNE
public String getIdPersonne() {
return renvoyerValeurCorrecte("id_personne");
}
public void setIdPersonne(String id) {
set("id_personne", id);
}
// ID RôLE
public String getIdRole() {
return renvoyerValeurCorrecte("id_role");
}
public void setIdRole(String id) {
set("id_role", id);
}
// TYPE
public String getType() {
return renvoyerValeurCorrecte("ce_truk_type");
}
public void setType(String type) {
set("ce_truk_type", type);
}
public void setFonction(String type, String valeur) {
setChaineDenormaliseUnique("ce_truk_type", type, valeur);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/publication/PublicationAPersonneListe.java
New file
0,0 → 1,33
package org.tela_botanica.client.modeles.publication;
 
import org.tela_botanica.client.modeles.aDonneeListe;
 
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
 
public class PublicationAPersonneListe extends aDonneeListe<PublicationAPersonne> {
 
private static final long serialVersionUID = -5950583940829919577L;
 
public PublicationAPersonneListe() {
super();
}
public PublicationAPersonneListe(int i) {
super(i);
}
public PublicationAPersonneListe(JSONArray auteurs) {
super(auteurs.size()) ;
final int taillemax = auteurs.size();
for (int i = 0; i < taillemax; i++) {
JSONObject publicationAPersonneCourante = auteurs.get(i).isObject() ;
if (publicationAPersonneCourante != null) {
PublicationAPersonne publicationAPersonne = new PublicationAPersonne(publicationAPersonneCourante);
this.put(publicationAPersonne.getId(), publicationAPersonne);
}
}
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/publication/PublicationAPersonneAsyncDao.java
New file
0,0 → 1,120
package org.tela_botanica.client.modeles.publication;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONValue;
 
public class PublicationAPersonneAsyncDao {
 
private static final String SERVICE_NOM = "CoelPublicationAPersonne";
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
public PublicationAPersonneAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
public void selectionner(String publicationId, String personnesId, String roleId) {
String[] parametres = {publicationId, personnesId, roleId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue != null) {
// Si la requête est un succès, réception d'un objet ou d'un tableau
if (responseValue.isObject() != null) {
final JSONObject reponse = responseValue.isObject();
// Transformation du tableau JSON réponse en ListeInstitution
PublicationAPersonne publicationAPersonne = new PublicationAPersonne(reponse);
// et on met à jour le demandeur des données
vueARafraichir.rafraichir(publicationAPersonne);
} else if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
PublicationAPersonneListe publicationsAPersonneListe = new PublicationAPersonneListe(reponse);
vueARafraichir.rafraichir(publicationsAPersonneListe);
} else {
GWT.log("La réponse n'est pas un objet ou un tableau JSON et vaut : "+responseValue.toString(), null);
}
} else {
// Dans le cas, où nous demandons toutes les publication et qu'il n'y en a pas, nous retournons un objet vide
PublicationAPersonneListe publicationAPersonneListe = new PublicationAPersonneListe(0);
vueARafraichir.rafraichir(publicationAPersonneListe);
}
}
});
}
public void ajouter(String publicationId, String personnesId, String roleId) {
String postDonneesEncodees = "cpuap_id_publication="+URL.encodeComponent(publicationId)
+"&cpuap_id_auteur="+URL.encodeComponent(personnesId)
+"&cpuap_id_role="+URL.encodeComponent(roleId)
+"&cmhl_ce_modifier_par="+utilisateurId;
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "ajout_publication_a_personne");
}
});
}
 
public void modifier(String publicationId, String personnesId, String roleId) {
String[] parametres = {publicationId, personnesId, roleId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
String postDonneesEncodees = "cpuap_id_publication="+URL.encodeComponent(publicationId)
+"&cmhl_ce_modifier_par="+utilisateurId;
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "modif_publication_a_personne");
}
});
}
public void supprimer(String idPublicationAPersonne) {
String[] parametres = {utilisateurId, idPublicationAPersonne};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
Information info = new Information("suppression_publication_a_personne");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
} else {
GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
}
});
}
private void traiterReponse(JSONValue reponseValeur, String type) {
Information info = new Information(type);
// Si la requête est un succès, réception d'une chaîne
if (reponseValeur.isBoolean() != null) {
info.setDonnee(reponseValeur.isBoolean().booleanValue());
} else if (reponseValeur.isString() != null) {
info.setDonnee(reponseValeur.isString().stringValue());
} else {
info.setDeboguage("La réponse n'est pas une chaine JSON.");
}
vueARafraichir.rafraichir(info);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/publication/Publication.java
New file
0,0 → 1,126
package org.tela_botanica.client.modeles.publication;
 
import org.tela_botanica.client.modeles.aDonnee;
import org.tela_botanica.client.modeles.structure.Structure;
 
import com.google.gwt.json.client.JSONObject;
 
public class Publication extends aDonnee {
 
private static final long serialVersionUID = 4142843068041690126L;
 
private static final String PREFIXE = "cpu";
private Structure editeur = null;
public Publication() {
}
public Publication(JSONObject publication) {
initialiserModele(publication);
editeur = new Structure(publication);
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
public void setStructureEditeur(Structure structure) {
editeur = structure;
}
public String getId() {
return renvoyerValeurCorrecte("id_publication");
}
public void setId(String idPublication) {
this.set("id_publication", idPublication);
}
public String getIdProjet() {
return renvoyerValeurCorrecte("ce_projet");
}
public void setIdProjet(String idProjet) {
this.set("ce_projet", idProjet);
}
public String getNomComplet() {
return renvoyerValeurCorrecte("fmt_nom_complet");
}
public void setNomComplet(String nomComplet) {
this.set("fmt_nom_complet", nomComplet);
}
public String getURI() {
return renvoyerValeurCorrecte("uri");
}
public void setUri(String uri) {
this.set("uri", uri);
}
 
public String getAuteur() {
return renvoyerValeurCorrecte("fmt_auteur");
}
public void setAuteur(String auteurFormate) {
this.set("fmt_auteur", auteurFormate);
}
 
public String getCollection() {
return renvoyerValeurCorrecte("collection");
}
public void setCollection(String collection) {
this.set("collection", collection);
}
public String getTitre() {
return renvoyerValeurCorrecte("titre");
}
public void setTitre(String titre) {
this.set("titre", titre);
}
 
public String getNomEditeur() {
String editeurNom = getEditeur();
if (editeurNom.matches("[0-9]+")) {
editeurNom = editeur.getNom();
}
return editeurNom;
}
public String getEditeur() {
return getChaineDenormaliseUnique("ce_truk_editeur");
}
public void setEditeur(String editeur) {
setChaineDenormaliseUnique("ce_truk_editeur", "AUTRE", editeur);
}
 
public String getAnneeParution() {
return renvoyerValeurCorrecte("date_parution").substring(0, 4);
}
public String getDateParution() {
return renvoyerValeurCorrecte("date_parution");
}
public void setDateParution(String date) {
this.set("date_parution", date);
}
 
public String getIndicationNvt() {
return renvoyerValeurCorrecte("indication_nvt");
}
public void setIndicationNvt(String nvt) {
this.set("indication_nvt", nvt);
}
public String getFascicule() {
return renvoyerValeurCorrecte("fascicule");
}
public void setFascicule(String fascicule) {
this.set("fascicule", fascicule);
}
public String getPages() {
return renvoyerValeurCorrecte("truk_pages");
}
public void setPages(String pages) {
this.set("truk_pages", pages);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/publication/PublicationListe.java
New file
0,0 → 1,138
package org.tela_botanica.client.modeles.publication;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import com.google.gwt.i18n.client.Dictionary;
import org.tela_botanica.client.interfaces.ListePaginable;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.aDonneeListe;
import org.tela_botanica.client.modeles.structure.Structure;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
 
public class PublicationListe extends aDonneeListe<Publication> implements ListePaginable {
 
private static final long serialVersionUID = 2600314321196345072L;
private int currentPage = 0;
private int nbElementsPage = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
private int nbElementsTotal;
private Rafraichissable vueARafraichir;
public PublicationListe() {
super();
}
public PublicationListe(int taille) {
super(taille);
}
/**
* Constructeur pour une liste d'institutions
* @param dates
*/
public PublicationListe(JSONArray publications) {
 
super(publications.size());
int taille = publications.size();
for (int i = 0; i < taille; i++) {
JSONObject publicationCourante = publications.get(i).isObject() ;
if (publicationCourante != null) {
Publication publication = new Publication(publicationCourante);
this.put(publication.getId(), publication);
}
}
}
public PublicationListe(JSONArray publicationListe, JSONNumber nbElements, Rafraichissable vueARafraichir) {
super(publicationListe.size());
this.nbElementsTotal = Integer.valueOf(nbElements.toString());
final int taillemax = publicationListe.size();
for (int i = 0; i < taillemax; i++) {
JSONObject publication = publicationListe.get(i).isObject() ;
if (publication != null) {
Publication publicationCourante = new Publication(publication);
this.put(publicationCourante.getId(), publicationCourante);
}
}
this.vueARafraichir = vueARafraichir;
}
public void changerNumeroPage(int pageCourante) {
currentPage = pageCourante;
selectionnerPublication();
}
 
public void changerTaillePage(int nouvelleTaillePage) {
nbElementsPage = nouvelleTaillePage;
selectionnerPublication();
}
public void recharger() {
selectionnerPublication();
}
public void setPageCourante(int pageCourante) {
this.currentPage = pageCourante;
}
 
public void setTaillePage(int taillePage) {
this.nbElementsPage = taillePage;
}
public int[] getPageTable() {
int[] page = new int[4];
 
// nombre de pages au total
page[0] = calculerNbPages();
 
// Page En Cours
page[1] = currentPage;
 
// nbElementsParPage
page[2] = nbElementsPage;
 
// et le dernier le nombre total d'éléments
page[3] = nbElementsTotal;
 
return page;
}
/**
* Calcule le nombre de pages nécessaires pour afficher un nombre d'élements
* donnés en fonction de la taille de page en cours
*
* @return le nombre de pages
*/
public int calculerNbPages() {
// A cause de la betise de java pour les conversion implicite on fait
// quelques conversions manuellement
// pour eviter qu'il arrondisse mal la division
// nombre de pages = (nombre d'element / taille de la page) arrondie à
// l'entier superieur
 
double nPage = (1.0 * nbElementsTotal) / (1.0 * nbElementsPage);
double nPageRound = Math.ceil(nPage);
Double nPageInt = new Double(nPageRound);
 
// on convertit en entier
return nPageInt.intValue();
}
public void selectionnerPublication() {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerPublication(vueARafraichir, null, null, null, currentPage, nbElementsPage);
}
public void filtrerParNom(String nom) {
Mediateur mediateur =(Mediateur) Registry.get(RegistreId.MEDIATEUR);
mediateur.selectionnerPublicationParNomComplet(vueARafraichir, null, "%" + nom + "%");
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/publication/PublicationAsyncDao.java
New file
0,0 → 1,133
package org.tela_botanica.client.modeles.publication;
 
import java.util.HashMap;
 
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.modeles.Information;
import org.tela_botanica.client.modeles.structure.StructureListe;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONValue;
 
public class PublicationAsyncDao {
private static final String SERVICE_NOM = "CoelPublication";
private String utilisateurId = null;
private Rafraichissable vueARafraichir = null;
public PublicationAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante ;
utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
}
 
public void selectionner(final String publicationId, String projetId, String nomComplet, final int nbElements, final int pageCourante) {
String[] parametres = {projetId, publicationId, nomComplet};
 
HashMap<String, String> restrictions = new HashMap<String, String>();
restrictions.put("start", String.valueOf(pageCourante*nbElements));
if (nbElements != -1) {
restrictions.put("limit", String.valueOf(nbElements));
}
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue != null) {
// Si la requête est un succès, réception d'un objet ou d'un tableau
JSONArray responseArray = responseValue.isArray();
if (responseArray.get(1).isObject() != null) {
final JSONObject reponse = responseArray.get(1).isObject();
// Transformation du tableau JSON réponse en ListeInstitution
Publication publication = new Publication(reponse);
// et on met à jour le demandeur des données
vueARafraichir.rafraichir(publication);
} else if (responseArray.get(1).isArray() != null) {
final JSONArray reponse = responseValue.isArray();
PublicationListe publications;
if (reponse.get(1).isObject() != null) {
publications = new PublicationListe(reponse.get(1).isArray());
} else {
publications = new PublicationListe(reponse.get(1).isArray(), reponse.get(0).isNumber(), vueARafraichir);
}
publications.setTaillePage(nbElements);
publications.setPageCourante(pageCourante);
vueARafraichir.rafraichir(publications);
} else {
GWT.log("La réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
}
} else {
// Dans le cas, où nous demandons toutes les publication et qu'il n'y en a pas, nous retournons un objet vide
if (publicationId == null) {
PublicationListe publications = new PublicationListe(0);
vueARafraichir.rafraichir(publications);
}
}
}
});
}
 
public void ajouter(Publication publication) {
String postDonneesEncodees = publication.obtenirChainePOST()+"&cmhl_ce_modifier_par="+utilisateurId;
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "ajout_publication");
}
}) ;
}
public void modifier(Publication publication) {
String[] parametres = {publication.getId()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
String postDonneesEncodees = publication.obtenirChainePOST()+"&cmhl_ce_modifier_par="+utilisateurId;
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "modif_publication");
}
});
}
 
public void supprimer(String publicationsId) {
String[] parametres = {utilisateurId, publicationsId};
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue reponseValeur) {
traiterReponse(reponseValeur, "suppression_publication");
}
});
}
private void traiterReponse(JSONValue reponseValeur, String type) {
Information info = new Information(type);
// Si la requête est un succès, réception d'une chaîne
if (reponseValeur.isString() != null) {
String idOuMessage = reponseValeur.isString().stringValue();
if (idOuMessage.matches("^[0-9]+$")) {
info.setDonnee(idOuMessage);
} else {
info.setMessage(idOuMessage);
}
} else {
info.setDeboguage("La réponse n'est pas une chaine JSON.");
}
vueARafraichir.rafraichir(info);
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/UtilisateurAsyncDao.java
New file
0,0 → 1,180
package org.tela_botanica.client.modeles;
 
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
import org.tela_botanica.client.http.JsonRestRequestCallback;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.widget.Info;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.Response;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONBoolean;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.json.client.JSONValue;
import com.google.gwt.user.client.Window;
 
/**
* Modele DAO, specifique, permettant la validation, l'acces aux donnees distantes et la présentation des donnees en retour
*
*/
public class UtilisateurAsyncDao {
private static final String SERVICE_NOM = "CoelUtilisateur";
private Utilisateur utilisateur = null;
private Rafraichissable vueARafraichir = null;
/**
* Constructeur
* @param retour : méthode appellée en retour d'appel.
*/
public UtilisateurAsyncDao(Rafraichissable vueARafraichirCourrante) {
vueARafraichir = vueARafraichirCourrante;
utilisateur = (Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT);
}
/**
* Méthode de classe d'appel du service des gestion d'identification.
*/
public void getEtatUtilisateur() {
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
// Identifiant utilisateur ou identifiant de session si non identifié
String login = ((JSONString) reponse.get(2)).stringValue();
// Drapeau leve si utilisateur deja identifié
boolean identifie = ((JSONBoolean) reponse.get(3)).booleanValue();
utilisateur.setIdentification(identifie);
utilisateur.setLogin(login);
vueARafraichir.rafraichir(utilisateur);
}
}
});
}
 
/**
* Méthode déconnectant un utilisateur de l'application.
* @param identifiant de l'utilisateur à déconnecter.
*/
public void deconnecterUtilisateur() {
String[] parametres = {utilisateur.getId()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
// Identifiant utilisateur ou identifiant de session si non identifié
String id = ((JSONString) reponse.get(2)).stringValue();
// Drapeau levé si l'utilisateur est déjà identifié
boolean identifie = ((JSONBoolean) reponse.get(3)).booleanValue();
// Nous réinitialisons l'utilisateur
utilisateur = new Utilisateur(id, identifie);
GWT.log(utilisateur.toString(), null);
vueARafraichir.rafraichir(utilisateur);
}
}
});
}
/**
* Méthode connectant un utilisateur à l'application.
* @param Utilisateur l'utilisateur courant.
*/
public void connecterUtilisateur() {
String[] parametres = {utilisateur.getLogin(), utilisateur.getMotDePasse()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
//Ajout des informations de l'annuaire
if (reponse.get(0).isObject() != null) {
utilisateur.setInfosAnnuaire(reponse.get(0).isObject());
}
//Ajout des informations licence
if (reponse.get(1).isString() != null) {
utilisateur.setLicence(reponse.get(1).isString().stringValue());
} else {
utilisateur.setLicence("");
}
if (reponse.size() > 0) {
// Identifiant de l'utilisateur ou identifiant de session si non identifié
utilisateur.setId(((JSONString) reponse.get(2)).stringValue());
// Drapeau levé si l'utilisateur est déjà identifié
GWT.log(reponse.toString(), null);
utilisateur.setIdentification(((JSONBoolean) reponse.get(3)).booleanValue());
// Plus de deux valeurs, l'utilisateur est identifié nous récupérons des données supplémentaires
if (reponse.size() > 4) {
// Nom complet de l'utilisateur
if (reponse.get(4).isString() != null) {
utilisateur.setNomComplet(((JSONString) reponse.get(4)).stringValue());
}
// Prénom de l'utilisateur
if (reponse.get(5).isString() != null) {
utilisateur.setPrenom(((JSONString) reponse.get(5)).stringValue());
}
// Nom de l'utilisateur
if (reponse.get(6).isString() != null) {
utilisateur.setNom(((JSONString) reponse.get(6)).stringValue());
}
// Paramètres
if (reponse.get(7).isString() != null) {
Debug.log(((JSONString) reponse.get(7)).stringValue());
utilisateur.setParametre(((JSONString) reponse.get(7)).stringValue());
}
}
vueARafraichir.rafraichir(utilisateur);
}
}
}
});
}
/*
* */
public void accepterLicence() {
String[] parametres = {utilisateur.getLogin(), utilisateur.getMotDePasse(), utilisateur.getId()};
final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
rb.envoyerRequete(null, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
if (reponse.get(1).isString() != null) {
String licenceAcceptee = reponse.get(1).isString().stringValue();
Information info = new Information("maj_licence");
info.setDonnee(0, licenceAcceptee);
vueARafraichir.rafraichir(info);
}
}
}
});
}
}
Property changes:
Added: svn:mergeinfo
/tags/v1.0-syrah/src/org/tela_botanica/client/modeles/Valeur.java
New file
0,0 → 1,92
package org.tela_botanica.client.modeles;
 
import java.util.Iterator;
import java.util.Set;
 
import com.google.gwt.json.client.JSONObject;
 
public class Valeur extends aDonnee {
private static final long serialVersionUID = 2278245640718653819L;
 
public static final String PREFIXE = "cmlv";
public static final String COLLECTION_NCD_HERBIER = "2157";
 
public Valeur() {
}
public Valeur(JSONObject liste) {
// l'objet JSON est une table de hachage
Set<String> im = liste.keySet();
 
// Parcourt pour chaque clé
for (Iterator<String> it = im.iterator(); it.hasNext();) {
// Si elle est associée à une valeur, nous l'ajoutons
String cle = it.next();
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
if (liste.get(cle).isString() != null) {
String valeur = liste.get(cle).isString().stringValue();
this.set(cleObjet, valeur);
} else {
// Sinon, nous ajoutons la clé avec une valeur vide
String valeur = " ";
this.set(cleObjet, valeur);
}
}
}
public Valeur(String id, String nom, String abr, String description) {
this.set("id_valeur", id);
this.set("nom", nom);
this.set("abreviation", abr);
this.set("description", description);
}
@Override
protected String getPrefixe() {
return PREFIXE;
}
/** Accesseur à l'identifiant de la valeur.
*
* @return String l'identifiant de la valeur.
*/
public String getId() {
return (String) renvoyerValeurCorrecte("id_valeur");
}
/** Accesseur au nom de la valeur.
*
* @return String le nom de la valeur.
*/
public String getNom() {
return (String) renvoyerValeurCorrecte("nom");
}
/** Accesseur à l'abréviation de la valeur.
*
* @return String l'abréviation de la valeur.
*/
public String getAbreviation() {
return (String) renvoyerValeurCorrecte("abreviation");
}
/** Accesseur à la description de la valeur.
*
* @return String la description de la valeur.
*/
public String getDescription() {
return (String) renvoyerValeurCorrecte("description");
}
/** Accesseur à l'identifiant parent de la valeur.
*
* @return String l'identifiant de la valeur.
*/
public String getParentId() {
return (String) renvoyerValeurCorrecte("ce_parent");
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/ComposantClass.java
New file
0,0 → 1,28
package org.tela_botanica.client;
 
public final class ComposantClass {
public static final String ICONE_AIDE = "icone-aide";
public static final String ICONE_AJOUTER = "icone-ajouter";
public static final String ICONE_BASCULE = "icone-bascule";
public static final String ICONE_BEL = "icone-bel";
public static final String ICONE_CEL = "icone-cel";
public static final String ICONE_CONNEXION = "icone-connexion";
public static final String ICONE_DECONNEXION = "icone-deconnexion";
public static final String ICONE_IMPRIMER = "icone-imprimer";
public static final String ICONE_MODIFIER = "icone-modifier";
public static final String ICONE_PANNEAU_LISTE = "icone-appli-panneau-liste";
public static final String ICONE_PARAMETRE = "icone-param";
public static final String ICONE_PREFERENCE = "icone-preference";
public static final String ICONE_RAFRAICHIR = "icone-rafraichir";
public static final String ICONE_SUPPRIMER = "icone-supprimer";
 
public static final String DETAIL_CORPS_CONTENU = "coel-detail-corps-contenu";
public static final String LABEL = "coel-label";
public static final String FIELDSET = "coel-fieldset";
public static final String CLEAR = "coel-clear";
public static final String META = "coel-meta";
public static final String INDENTATION = "coel-indentation";
public static final String OBLIGATOIRE = "coel-obligatoire";
public static final String OBLIGATOIRE_OK = "coel-obligatoire-ok";
public static final String LIEN_EXTERNE = "coel-lien-externe";
}
/tags/v1.0-syrah/src/org/tela_botanica/client/util/UtilNombre.java
New file
0,0 → 1,11
package org.tela_botanica.client.util;
 
import com.google.gwt.i18n.client.NumberFormat;
 
public class UtilNombre {
public static String formaterEnEntier(double nombre) {
NumberFormat formatNbreEntier = NumberFormat.getFormat("#");
return formatNbreEntier.format(nombre);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/util/UtilDAO.java
New file
0,0 → 1,101
package org.tela_botanica.client.util;
 
import java.util.HashMap;
import java.util.Iterator;
 
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.configuration.Configuration;
import org.tela_botanica.client.http.JsonRestRequestBuilder;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.http.client.URL;
 
/**
* @author Gréguoire DUCHÉ <greguoire@tela-botanica.org>
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
* @description La classe utilDAO fournit des méthodes communes pour les outils DAO
* */
public class UtilDAO {
private static String baseUrl = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
public static final String GET = "GET";
public static final String POST = "POST";
public static final String DELETE = "DELETE";
public static final String PUT = "PUT";
private static final String SEPARATEUR_CHEMIN = "/";
private static final String SEPARATEUR_CLE_VALEUR = "=";
private static final String SEPARATEUR_PARAMETRE = "&";
private static final String SEPARATEUR_CHEMIN_PARAMETRE = "?";
private static final String CONTENU_CHEMIN_VIDE = "*";
 
public static JsonRestRequestBuilder construireRequetePost(String nomService) {
return construireRequete(nomService, null, null, POST);
}
 
public static JsonRestRequestBuilder construireRequetePost(String nomService, String[] parametres) {
return construireRequete(nomService, parametres, null, POST);
}
 
public static JsonRestRequestBuilder construireRequete(String nomService) {
return construireRequete(nomService, null, null, GET);
}
public static JsonRestRequestBuilder construireRequete(String nomService, String[] parametres) {
return construireRequete(nomService, parametres, null, GET);
}
public static JsonRestRequestBuilder construireRequete(String nomService, HashMap<String, String> restrictions) {
return construireRequete(nomService, null, restrictions, GET);
}
public static JsonRestRequestBuilder construireRequete(String nomService, String[] parametres, HashMap<String, String> restrictions) {
return construireRequete(nomService, parametres, restrictions, GET);
}
 
private static JsonRestRequestBuilder construireRequete(String nomService, String[] parametres, HashMap<String, String> restrictions, String typeRequete) {
String restrictionsUrl = construireUrlParametres(restrictions);
String parametresUrl = construireUrlChemin(parametres);
String urlComplete = baseUrl + nomService + parametresUrl + restrictionsUrl;
String urlCompleteEncodee = URL.encode(urlComplete);
System.out.println(urlCompleteEncodee);
JsonRestRequestBuilder jrrb;
if (typeRequete.equals(GET)) {
jrrb = new JsonRestRequestBuilder(JsonRestRequestBuilder.GET, urlCompleteEncodee);
} else {
jrrb = new JsonRestRequestBuilder(JsonRestRequestBuilder.POST, urlCompleteEncodee);
}
return jrrb;
}
private static String construireUrlParametres(HashMap<String, String> parametres) {
String parametresUrl = "";
if (parametres != null && parametres.size() > 0) {
parametresUrl = SEPARATEUR_CHEMIN_PARAMETRE;
Iterator<String> iterateur = parametres.keySet().iterator();
while (iterateur.hasNext()) {
String cle = iterateur.next();
parametresUrl += cle + SEPARATEUR_CLE_VALEUR + parametres.get(cle);
if (iterateur.hasNext()) {
parametresUrl = parametresUrl + SEPARATEUR_PARAMETRE;
}
}
}
return parametresUrl;
}
private static String construireUrlChemin(String[] morceauxDuChemin) {
String cheminUrl = "";
if (morceauxDuChemin != null && morceauxDuChemin.length > 0) {
cheminUrl = SEPARATEUR_CHEMIN;
for (int i = 0; i < morceauxDuChemin.length; i++) {
cheminUrl += (UtilString.isEmpty(morceauxDuChemin[i]) ? CONTENU_CHEMIN_VIDE : morceauxDuChemin[i]) + SEPARATEUR_CHEMIN;
}
}
return cheminUrl;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/util/UtilTruk.java
New file
0,0 → 1,34
package org.tela_botanica.client.util;
 
 
import java.util.Iterator;
import java.util.LinkedList;
 
public class UtilTruk {
/**
* Traite une liste récupéré de truk et renvoie une chaîne de caractère formatée
*
* @param la liste truk
* @param le séparateur pour chaque valeur
* */
public static String traiterTrukListe(LinkedList<String> listTruk, String separateur) {
String listeRetour = "";
Iterator<String> it = listTruk.iterator();
while (it.hasNext()) {
String valeurCourante = it.next();
listeRetour += valeurCourante;
if (it.hasNext()) {
listeRetour += separateur;
}
}
return listeRetour;
}
 
}
/tags/v1.0-syrah/src/org/tela_botanica/client/util/UtilString.java
New file
0,0 → 1,56
package org.tela_botanica.client.util;
 
import java.util.Date;
 
import com.google.gwt.i18n.client.DateTimeFormat;
 
public class UtilString {
/**
* Mets la première lettre d'une chaine en majuscule
*
* @param chaineDeCaractere
* @result ChaineDeCaractere
*/
public static String ucFirst(String inputStr) {
if (isEmpty(inputStr)) {
return "";
}
return inputStr.substring(0,1).toUpperCase() + inputStr.substring(1, inputStr.length());
}
public static boolean isEmpty(String chaine) {
boolean etreVide = false;
if (chaine == null || chaine.equals("") || chaine.equals("0000-00-00") || chaine.equals("0000-00-00 00:00:00")) {
etreVide = true;
}
return etreVide;
}
public static double formaterEnDouble(String nombre) {
if (!isEmpty(nombre)) {
return Double.parseDouble(nombre);
}
return new Double(0);
}
public static int formaterEnEntier(String nombre) {
if (!isEmpty(nombre)) {
return Integer.parseInt(nombre);
}
return new Integer(0);
}
public static Date formaterEnDate(String dateChaine) {
Date date = null;
if (!isEmpty(dateChaine)) {
if (dateChaine.matches("^[0-9]{4}-00-00$")) {
dateChaine = dateChaine.replaceFirst("^([0-9]{4})-00-00$", "$1-01-01");
} else if (dateChaine.matches("^[0-9]{4}-[0-9]{2}-00$")) {
dateChaine = dateChaine.replaceFirst("^([0-9]{4})-([0-9]{2})-00$", "$1-$2-01");
}
date = UtilDate.formatDateMysql.parseStrict(dateChaine);
}
return date;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/util/Debug.java
New file
0,0 → 1,10
package org.tela_botanica.client.util;
 
import com.google.gwt.core.client.GWT;
 
public class Debug {
public static void log(String texte) {
GWT.log(texte, null);
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/util/UtilDate.java
New file
0,0 → 1,19
package org.tela_botanica.client.util;
 
import java.util.Date;
 
import com.google.gwt.i18n.client.DateTimeFormat;
 
public class UtilDate {
public final static DateTimeFormat formatDateMysql = DateTimeFormat.getFormat("yyyy-MM-dd");
public final static DateTimeFormat formatDateFr = DateTimeFormat.getFormat("dd/MM/yyyy");
public static String formaterEnString(Date date) {
String dateChaine = "0000-00-00";
if (date != null) {
dateChaine = formatDateMysql.format(date);
}
return dateChaine;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/util/Print.java
New file
0,0 → 1,69
package org.tela_botanica.client.util;
 
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.UIObject;
 
/**
* <pre>
* Generic printing class
* can be used to print the Window it self, DOM.Elements, UIObjects (Widgets) and plain HTML
*
* Usage:
* You must insert this iframe in your host page:
* <iframe id="__printingFrame" style="width:0;height:0;border:0"></iframe>
*
* Window:
* Print.it();
*
* Objects/HTML:
* Print.it(RootPanel.get("myId"));
* Print.it(DOM.getElementById("myId"));
 
* Print.it("Just <b>Print.it()</b>!");
*
* Objects/HTML using styles:
* Print.it("<link rel='StyleSheet' type='text/css' media='paper' href='/paperStyle.css'>", RootPanel.get('myId'));
* Print.it("<style type='text/css' media='paper'> .newPage {page-break-after: always; } </style>","Hi<p class='newPage'></p>By");
* </pre>
*/
public class Print {
 
public static native void it() /*-{
$wnd.print();
}-*/;
 
public static native void it(String html) /*-{
var frame = $doc.getElementById('__printingFrame');
if (!frame) {
$wnd.alert("Error: Can't find printing frame.");
return;
}
frame = frame.contentWindow;
var doc = frame.document;
doc.open();
doc.write(html);
doc.close();
frame.focus();
frame.print();
}-*/;
 
public static void it(UIObject obj) {
it("", obj.getElement().toString());
}
 
public static void it(Element element) {
it("", element.toString());
}
 
public static void it(String style, String it) {
it("<it><header>"+style+"</header><body>"+it+"</body></it>");
}
 
public static void it(String style, UIObject obj) {
it(style, obj.getElement().toString());
}
 
public static void it(String style, Element element) {
it(style, element.toString());
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/util/UtilArray.java
New file
0,0 → 1,20
package org.tela_botanica.client.util;
 
public class UtilArray {
/**
* @see http://leghumped.com/blog/2007/12/20/in_array-and-implode-for-java/
* @param ary
* @param delim
* @return
*/
public static String implode(String[] ary, String delim) {
String out = "";
for (int i = 0; i < ary.length; i++) {
if (i != 0) { out += delim; }
out += ary[i];
}
return out;
}
}
/tags/v1.0-syrah/src/org/tela_botanica/client/util/Pattern.java
New file
0,0 → 1,40
package org.tela_botanica.client.util;
 
public class Pattern {
public static final String url = "^(?:(?:ht|f)tp(?:s?)\\:\\/\\/|~/|/)?"+ // Protocol
"(?:\\w+:\\w+@)?"+ // Username:Password
"(?:(?:[-\\w]+\\.)+"+ // Subdomains
"(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))"+ // TopLevel Domains
"(?::[\\d]{1,5})?"+ // Port
"(?:(?:(?:/(?:[-\\w~!$+|.,=]|%[a-f\\d]{2})+)+|/)+|\\?|#)?"+ // Directories
"(?:(?:\\?(?:[-\\w~!$+|.,*:]|%[a-f\\d{2}])+=(?:[-\\w~!$+|.,*:=]|%[a-f\\d]{2})*)(?:&(?:[-\\w~!$+|.,*:]|%[a-f\\d{2}])+=(?:[-\\w~!$+|.,*:=]|%[a-f\\d]{2})*)*)*"+ // Query
"(?:#(?:[-\\w~!$+|.,*:=]|%[a-f\\d]{2})*)?$"; // Anchor
public static final String email = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*"+ // Identité
"@"+ // At
"(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?";// Domaine
public static final String heureMinute = "^(?:[0-1][0-9]|2[0-4])"+ // Heure au format 24h
":"+ // Séparateur d'heure et minute
"(?:[0-5][0-9]|60)$"; // Minutes;
/**
* Méthode similaire à la méthode : java.util.Pattern.quote().
* java.util.Pattern n'est pas implémenté par GWT.
* Nous protégeons les caractères spéciaux.
*
* @link http://java.developpez.com/faq/java/?page=langage_chaine
* @param chaine
* @return
*/
public static String quote(String chaine) {
chaine.replace("\\", "\\\\");
String[] caracteresSpeciaux = {".", "$", "[", "]", "(", ")", "{", "}", "^", "?", "*", "+", "-", "|"};
for (int i = 0; i < caracteresSpeciaux.length; i++) {
chaine = chaine.replace(caracteresSpeciaux[i], "\\"+caracteresSpeciaux[i]);
}
return chaine;
}
}
/tags/v1.0-syrah/Coel-compile
New file
0,0 → 1,27
#!/bin/sh
APPDIR=`dirname $0`;
 
# Création d'un lien symbolique si nécessaire.
if [ ! -h $APPDIR/../org.tela_botanica.Coel ]; then
cd $APPDIR/..;
ln -s coel/war org.tela_botanica.Coel;
fi;
 
 
# Création du fichier apropos.js si nécessaire
if [ ! -h $APPDIR/war/apropos.js ]; then
cp $APPDIR/war/apropos.defaut.js $APPDIR/war/apropos.js;
fi;
 
export COEL_COMPILATION_DATE=`date`;
export COEL_REVISION_GLOBAL=`svnversion -n`;
 
export COEL_JAVA_VERSION=`java -version 2>&1 | sed -e :a -e '/$/N; s/\n/ - /; ta' | sed 's/"//g'`;
perl -e 'print "Date:".$ENV{COEL_COMPILATION_DATE},"\n"'
perl -e 'print "Révision globale:".$ENV{COEL_REVISION_GLOBAL},"\n"'
perl -e 'print "Java version:".$ENV{COEL_JAVA_VERSION},"\n"'
 
perl -pi -e 's/dateHeureCompilation:"[^"]*"/dateHeureCompilation:"$ENV{COEL_COMPILATION_DATE}"/g' $APPDIR/war/apropos.js
perl -pi -e 's/revisionGlobale:"[^"]*"/revisionGlobale:"$ENV{COEL_REVISION_GLOBAL}"/g' $APPDIR/war/apropos.js
perl -pi -e 's/versionJavaCompilation:"[^"]*"/versionJavaCompilation:"$ENV{COEL_JAVA_VERSION}"/g' $APPDIR/war/apropos.js
java -Xmx1024M -cp "$APPDIR/src:$APPDIR/bin:/opt/gwt-2.0.0/gwt-user.jar:/opt/gwt-2.0.0/gwt-dev.jar:/opt/gxt-2.1.0/gxt.jar" com.google.gwt.dev.Compiler org.tela_botanica.Coel;
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/tags/v1.0-syrah/A_LIRE.txt
New file
0,0 → 1,9
Pour faire fonctionner COEL dans eclipse après avoir mise à jour depuis le dépôt SVN, vous devez :
- télécharger GWT-2.0.0
- l'installer dans /home/mon_compte/Applications/gwt-2.0.0
- créer le lien : /opt/gwt-2.0.0 qui pointe vers /home/mon_compte/Applications/gwt-2.0.0
- télécharger GXT
- l'installer dans /home/mon_compte/Applications/gxt-2.1.0
- créer le lien : /opt/gxt-2.1.0 qui pointe vers /home/mon_compte/Applications/gxt-2.1.0
- créer le lien "gxt" dans le dossier war qui pointe vers le dossier /opt/gxt-2.1.0/resources
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/tags/v1.0-syrah/war/config.js
New file
0,0 → 1,126
var configuration = {
serviceBaseUrl:"http://localhost/jrest/",
bogueUrl:"http://www.tela-botanica.net/suivi/index.php?project=31",
commentaireUrl:"http://www.tela-botanica.org/wikini/eflore/wakka.php?wiki=AideCoelCommentaire",
celUrl:"http://www.tela-botanica.org/appli:cel2",
// liste 09 : Liste des fonctions d'une personne au sein d'une structure
listeFonction:1012,
// liste 10 : Liste des statuts d'une personne au sein d'une structure
listeStatut:1013,
// liste 12 : Liste des types de structure privé
listeStpr:1015,
// liste 13 : Liste des types de structure public
listeStpu:1016,
// liste 14 : Liste des identifiants alternatifs de structures à vocation botanique
listeAcronymeBota:1017,
// liste 15 : Liste des types de local de stockage de collections
listeStockageLocal:1018,
// liste 16 : Liste des types de mobilier de stockage de collections
listeStockageMeuble:1019,
// liste 17 : Liste des paramètres de contrôle environnemental d'un local
listeStockageParametre:1020,
// liste 18 : Liste des types de collection non botanique
listeCollectionAutre:1021,
// liste 19 : Liste des types d'opération de restauration pour les collections botaniques
listeRestaurationOperation:1022,
// liste 20 : Liste oui/non/en partie
listeONEP:1023,
// liste 21 : Liste du matériel dit de nom conservation des parts d'herbier
listeMaterielAutre:1024,
// liste 22 : Liste de traitement anti-insecte pour les collections botaniques
listeDesinsectisation:1025,
// liste 23 : Liste des poisons utilisés pour les collections botaniques
listeEmpoisonnement:1026,
// liste 24 : Liste des actions de valorisation des collections
listeValorisationAction:1027,
// liste 25 : Liste des continents habités incluant aussi le pays France
listeContinentEtFr:1028,
// liste 26 : Liste des types de recherche nécessitant la consultation de collection botanique
listeRechercheType:1029,
// liste 27 : Liste des relations entre une collection et une personne
listeRelationPersonneCollection:1030,
// liste 29 : Liste des types de collection dans le standard NCD
listeTypeCollectionNcd:1032,
// liste 30 : Liste des types de dépôt de collection
listeTypeDepot:1033,
// liste 31 : Liste des principes de groupement d'une collection dans le standard NCD
listeGroupementPrincipe:1034,
// liste 32 : Liste des buts de réalisation d'une collection dans le standard NCD
listeRealisationBut:1035,
// liste 37 : Liste des siècles pour les collections naturalistes
listeSiecleNaturaliste:1040,
// liste 38 : Liste indéterminé/peut-être/oui/non
listeONPI:1041,
// liste 39 : Liste des types de classement des spécimens types dans une collection
listeTypeClassement:1042,
// liste 40 : Liste des natures végétales
listeNatureVegetale:1043,
// liste 41 : Liste des types d'unité de rangement pour les collections botaniques
listeTypeUniteRangement:1044,
// liste 42 : Liste des états
listeEtat:1045,
// liste 43 : Liste des types de support pour les spécimens des collections botaniques
listeTypeUniteBase:1046,
// liste 44 : Liste des types de papier de support pour les spécimens des collections botaniques
listeTypePapier:1047,
// liste 45 : Liste des méthodes de rangement des supports pour les spécimens des collections botaniques
listeMethodeRangement:1048,
// liste 46 : Liste des méthodes de fixation sur le support pour les collections botaniques
listeMethodeFixation:1049,
// liste 47 : Liste des méthodes de fixation des étiquettes sur les spécimens pour les collections botaniques
listeMethodeFixationSurSpecimen:1050,
// liste 48 : Liste des types d'écriture d'étiquette
listeTypeEcriture:1051,
// liste 49 : Liste des origines des dégradations des spécimens de collections botaniques
listeSpecimenDegradation:1052,
// liste 50 : Liste des origines des dégradations des supports de collections botaniques
listeSupportDegradation:1053,
// liste 51 : Liste des niveaux de détermination des spécimens de collections botaniques
listeNiveauDetermination:1054,
// liste 52 : Liste des types de date de début
listeDateDebut:1055,
// liste 53 : Liste des types de date de fin
listeDateFin:1056,
// liste 54 : Liste des états de classement
listeEtatClassement:1057,
// liste 57 : Liste indéterminé/parfois/oui/non
listeONP:1060,
// liste 58 : Liste des formes d'inventaire
listeInventaireForme:1061,
// liste 59 : Liste des types de logiciel pour les inventaires informatiques
listeInventaireLogiciel:1062,
// liste 60 : Liste des états d'inventaire
listeInventaireEtat:1063,
// liste 65 : Liste des types de commentaires associés à une collection
listeTypeCommentaireCollection:1068,
// liste 71 : Liste des pays du standard ISO-3166-1
listePays:1074,
// liste 77 : Liste indéterminé/oui/non
listeION:1080,
// liste 78 : Liste des niveaux d'importance
listeNiveauImportance:1081,
// liste 79 : Liste exact/approximatif
listeEA:1082,
// liste 80 : Liste des types de collection botanique
listeTypeCollectionBota:1083,
// Liste des préfixes
listePrefixes:1004,
// Liste des suffixes
listeSuffixes:1005,
// Liste sexe:
listeSexe:1067,
// Liste tel:
listeTel:1007,
// Liste régions
listeRegions:1078,
// Liste des langues
listeLangues:1071,
// Liste des durées d'indexation
listeDureesIndexation:1072,
// Liste des fréquences d'indexation
listeFrequencesIndexation:1073,
// Liste des types de publication vis à vis d'une personne
relationPersonnePublication:1065,
//Nombre d'éléments par page
nbElementsPage:10
};
/tags/v1.0-syrah/war/info.php
New file
0,0 → 1,0
<?php phpinfo();?>
/tags/v1.0-syrah/war/Coel.html
New file
0,0 → 1,61
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set -->
<!-- the browser's rendering engine into -->
<!-- "Quirks Mode". Replacing this declaration -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout. -->
 
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="gwt:property" content="locale=fr">
<!-- -->
<!-- Any title is fine -->
<!-- -->
<title>Coel</title>
<!-- Fichier CSS spécifique à GXT -->
<link rel="stylesheet" type="text/css" href="gxt/css/gxt-all.css" />
<!-- Fichier CSS spécifique à l'application -->
<link rel="stylesheet" type="text/css" href="Coel.css" />
<!-- Fichier JS de configuration spécifique à l'application -->
<script type="text/javascript" language="javascript" src="config.js"></script>
<script type="text/javascript" language="javascript" src="apropos.js"></script>
<!-- -->
<!-- This script loads your compiled module. -->
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
<script type="text/javascript" language="javascript" src="coel/coel.nocache.js"></script>
</head>
 
<!-- -->
<!-- The body can have arbitrary html, or -->
<!-- you can leave the body empty if you want -->
<!-- to create a completely dynamic UI. -->
<!-- -->
<body>
<div id="loading">
<div class="loading-indicator">
<img src="images/large-loading.gif" width="32" height="32" style="margin-right:8px;float:left;vertical-align:top;"/>
COEL v1.0
<a href="http://extjs.com"></a><br />
<span id="loading-msg">Chargement de l'application Collections en Ligne...</span>
<noscript>
<p>
<span class="attention">ATTENTION : </span>
il semblerait que le Javascript ne soit pas activé sur votre navigateur.
Veuillez l'activer pour utiliser cette application.
</p>
</noscript>
</div>
</div>
<!-- OPTIONAL: include this if you want history support -->
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
<!-- OPTIONEL: inclure la ligne ci-dessous si vous utilisez la classe org.tela_botanica.coel.util.print -->
<iframe id="__printingFrame" style="width:0;height:0;border:0"></iframe>
</body>
</html>
/tags/v1.0-syrah/war/apropos.defaut.js
New file
0,0 → 1,12
var apropos = {
appliNom:"Collections en ligne",
appliCode:"COEL",
appliVersionCode:"1.0",
appliVersionNom:"Syrah",
developpeurs:"Jean-Pascal MILCENT, Grégoire DUCHÉ, Aurélien PERONNET",
traducteurs:"",
licence:"GPL v3 et CECILL v2",
dateHeureCompilation:"",
revisionGlobale:"",
versionJavaCompilation:""
};
/tags/v1.0-syrah/war/images/icones/lien_externe.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/war/images/icones/lien_externe.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/war/images/bg/hd-bg.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/tags/v1.0-syrah/war/images/bg/hd-bg.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/tags/v1.0-syrah/war/images/large-loading.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/tags/v1.0-syrah/war/images/large-loading.gif
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/tags/v1.0-syrah/war/WEB-INF/lib
New file
Property changes:
Added: svn:ignore
+gwt-servlet.jar
/tags/v1.0-syrah/war/WEB-INF/web.xml
New file
0,0 → 1,9
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
 
<!-- Default page to serve -->
<welcome-file-list>
<welcome-file>Coel.html</welcome-file>
</welcome-file-list>
 
</web-app>
/tags/v1.0-syrah/war/Coel.css
New file
0,0 → 1,224
/** Les CSS de l'application COEL */
*{
margin:0;
padding:0;}
/* #------------------------------------------------------------------------------------------------------# */
/* CHARGEMENT APPLICATION */
/* #------------------------------------------------------------------------------------------------------# */
#loading{
position:absolute;
left:45%;
top:40%;
margin-left:-45px;
padding:2px;
z-index:20001;
height:auto;
border:1px solid #ccc;
width:400px;}
#loading a{
color:#225588;}
#loading .loading-indicator{
background:white;
color:#444;
font:bold 13px tahoma, arial, helvetica;
padding:10px;
margin:0;
height:auto;}
#loading .loading-indicator img{
margin-right:8px;
float:left;
vertical-align:top;}
#loading-msg{
font:normal 10px arial, tahoma, sans-serif;}
/* #------------------------------------------------------------------------------------------------------# */
/* GÉNÉRAL */
/* #------------------------------------------------------------------------------------------------------# */
.attention{
font:bold 14px;
color:red;}
.coel-label{
font-weight:bold;
line-height:18px;}
.coel-fieldset{
float:left;
padding:5px;
width:45%;}
.coel-clear{
clear:both;
line-height:0;
border:none;
width:0;/*Pour IE*/}
.coel-meta{
font-size:10px;
font-weight:normal;}
.coel-indentation{
padding-left:15px;}
a.coel-lien-externe:after{
content:" " url(images/icones/lien_externe.png);}
/* #------------------------------------------------------------------------------------------------------# */
/* ENTÊTE */
/* #------------------------------------------------------------------------------------------------------# */
#coel-entete{
color:white;
height:100px;
background:#1E4176 url(images/bg/hd-bg.png) repeat-x scroll 0pt;
border:0pt none;
padding-left:3px;}
#coel-titre{
font-family:tahoma, arial, sans-serif;
font-size:16px;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:normal;
padding:0 0 8 6px;}
#coel-identification{
color:white;
float:right;
margin:2 5 0 0px}
/* #------------------------------------------------------------------------------------------------------# */
/* AIDE */
/* #------------------------------------------------------------------------------------------------------# */
#coel-id-panneau-aide{
font-size:11px;
margin:5px;}
#coel-id-panneau-aide ul{
list-style-type:disc;
padding-left:15px;}
#coel-id-panneau-aide ol{
list-style-type:decimal;
padding-left:15px;}
/* #------------------------------------------------------------------------------------------------------# */
/* CONNEXION/DECONNEXION */
/* #------------------------------------------------------------------------------------------------------# */
#coel-identification-zone-msg{
text-align:center;
background-color:#F8B9B9;
border:1px solid red;
margin:5px 0;}
/* #------------------------------------------------------------------------------------------------------# */
/* PANNEAU DÉTAIL */
/* #------------------------------------------------------------------------------------------------------# */
#coel-detail-entete{
height:45px;
background-color:#ddd;
border-bottom:1px solid silver;}
 
#coel-detail-entete h1{
font-weight:bold;
font-size:12px;
padding:5 0 2 5px;}
#coel-detail-entete h2{
font-size:11px;
font-weight:normal;
padding:0 5 0 5px;}
#coel-detail-entete .coel-meta{
position:absolute;
top:0;
right:0;
padding:5px;}
 
.coel-detail-corps-contenu{
padding:0 12px;
background-color:white;}
.coel-detail-corps-contenu h2{
font-size:14px;
color:#1C3C78;
padding:12px 0 5px 0;}
.coel-detail-corps-contenu h3{
font-style:italic;
padding:12px 0 5px 0;}
.coel-detail-corps-contenu table{
border:1px solid #1C3C78;
border-collapse:collapse;
width:100% !important;width:95%;/*Pour IE*/
margin:auto;}
.coel-detail-corps-contenu thead, .coel-detail-corps-contenu tfoot{
background-color:#D0E3FA;
background-image:url(sky.jpg);
border:1px solid #1C3C78;}
.coel-detail-corps-contenu tbody{
background-color:#FFFFFF;
border:1px solid #1C3C78;}
.coel-detail-corps-contenu th{
font-family:monospace;
border:1px dotted #1C3C78;
padding:5px;
background-color:#EFF6FF;
width:25%;}
.coel-detail-corps-contenu td{
font-family:sans-serif;
font-size:80%;
border:1px solid #1C3C78;
padding:5px;
text-align:left;}
.coel-detail-corps-contenu caption{
font-family:sans-serif;}
 
.coel-detail-corps-contenu ul{
list-style-type:disc;}
.coel-detail-corps-contenu li{
margin-left:25px;
padding:2px;}
 
#personne-logo-div {
position:absolute;
right:0;
width:30%;
text-align:right;
}
 
#personne-logo-div img {
height:40px;
}
/* #------------------------------------------------------------------------------------------------------# */
/* ÎCONES */
/* #------------------------------------------------------------------------------------------------------# */
.no-icone{
padding:0;}
/* #------------------------------------------------------------------------------------------------------#*/
/* IMAGES */
/* #------------------------------------------------------------------------------------------------------#*/
.conteneur-image-centre{
text-align:center;}
.logo-personne{
max-height:250px;}
/* #----------------------------------------------------------------------------------------------------------#*/
/* PANNEAU PUBLICATION */
/* #----------------------------------------------------------------------------------------------------------#*/
 
.x-formulaire-auteur{
padding-left:100px;}
.x-formulaire-auteur-label{
padding:3px 0 !important;
text-align:left;
clear:left;
display:block;
float:left;
padding:3px 3px 3px 0;
position:relative;
width:100px;
z-index:2;
font-weight:bold;
font-family:tahoma,arial,helvetica,sans-serif;
font-size:12px;
font-size-adjust:none;
font-style:normal;
font-variant:normal;
line-height:normal;}
/* #----------------------------------------------------------------------------------------------------------#*/
/* AUTRES */
/* #----------------------------------------------------------------------------------------------------------#*/
#main-button button{
font-weight:bold;
text-decoration:underline;}
/* #----------------------------------------------------------------------------------------------------------#*/
/* FORMULAIRE */
/* #----------------------------------------------------------------------------------------------------------#*/
.coel-obligatoire, .coel-obligatoire input, .coel-obligatoire textarea{
background:#FAA391;}
.coel-obligatoire-ok, .coel-obligatoire-ok input, .coel-obligatoire-ok textarea {
background:#B7DAAA;}
/tags/v1.0-syrah/war
New file
Property changes:
Added: svn:ignore
+coel
+coel-test
+apropos.js
+gxt
/tags/v1.0-syrah/CoelTest-web
New file
0,0 → 1,3
#!/bin/sh
APPDIR=`dirname $0`;
java -Dgwt.args="-web -out war/coel-test" -Xmx256M -cp "$APPDIR/src:$APPDIR/test:$APPDIR/bin:/opt/eclipse/plugins/org.junit_3.8.2.v20090203-1005/junit.jar:/opt/gwt-2.0.0/gwt-user.jar:/opt/gwt-2.0.0/gwt-dev.jar:/opt/gxt-2.1.0/gxt.jar" junit.textui.TestRunner org.tela_botanica.client.CoelTestSuite "$@";
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/tags/v1.0-syrah/.settings/org.eclipse.core.runtime.prefs
New file
0,0 → 1,3
#Fri Dec 05 11:01:41 CET 2008
eclipse.preferences.version=1
line.separator=\n
/tags/v1.0-syrah/.settings/org.eclipse.core.resources.prefs
New file
0,0 → 1,5
#Tue Oct 20 12:27:12 CEST 2009
eclipse.preferences.version=1
encoding//src/org/tela_botanica/client/i18n/Constantes.properties=UTF-8
encoding//src/org/tela_botanica/client/i18n/ErrorMessages.properties=UTF-8
encoding/<project>=UTF-8
/tags/v1.0-syrah/test/org/tela_botanica/client/CoelTest.java
New file
0,0 → 1,17
package org.tela_botanica.client;
 
import com.google.gwt.junit.client.GWTTestCase;
 
public class CoelTest extends GWTTestCase {
private Coel module = null;
public String getModuleName() {
return "org.tela_botanica.Coel";
}
protected void gwtSetUp() {
module = new Coel();
module.onModuleLoad();
}
}
/tags/v1.0-syrah/test/org/tela_botanica/client/vues/structure/StructureDetailPanneauVueTest.java
New file
0,0 → 1,34
package org.tela_botanica.client.vues.structure;
 
import org.tela_botanica.client.Coel;
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.vues.structure.StructureDetailVue;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.junit.client.GWTTestCase;
 
public class StructureDetailPanneauVueTest extends GWTTestCase {
private Coel module = null;
private Mediateur mediateur = null;
public String getModuleName() {
return "org.tela_botanica.Coel";
}
protected void gwtSetUp() {
module = new Coel();
module.onModuleLoad();
mediateur = Registry.get(RegistreId.MEDIATEUR);
}
public void testerConstructionTxtListeOntologie() {
StructureDetailVue vueDetail = new StructureDetailVue(mediateur);
String chaineAAnalyser = "2068;;2069;;2067";
 
String chaineFormatee = vueDetail.construireTxtListeOntologie(chaineAAnalyser);
System.out.println(chaineFormatee);
assertEquals("Bâtiment (ex. : Herbier), Pièce, Réserves", chaineFormatee);
}
}
/tags/v1.0-syrah/test/org/tela_botanica/client/CoelTestSuite.java
New file
0,0 → 1,17
package org.tela_botanica.client;
 
import junit.framework.Test;
import junit.framework.TestSuite;
 
import org.tela_botanica.client.vues.structure.StructureDetailPanneauVueTest;
 
import com.google.gwt.junit.tools.GWTTestSuite;
 
public class CoelTestSuite extends GWTTestSuite {
public static Test suite() {
TestSuite suite = new TestSuite("Tests du COEL");
suite.addTestSuite(CoelTest.class);
suite.addTestSuite(StructureDetailPanneauVueTest.class);
return suite;
}
}
/tags/v1.0-syrah
New file
Property changes:
Added: svn:ignore
+tomcat
+bin
+www-test
+.gwt-tmp