Subversion Repositories eFlore/Applications.coel

Rev

Rev 956 | Rev 1041 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 956 Rev 968
1
package org.tela_botanica.client.modeles.collection;
1
package org.tela_botanica.client.modeles.collection;
2
 
2
 
3
import org.tela_botanica.client.Mediateur;
3
import org.tela_botanica.client.Mediateur;
4
import org.tela_botanica.client.RegistreId;
4
import org.tela_botanica.client.RegistreId;
5
import org.tela_botanica.client.http.JsonRestRequestBuilder;
5
import org.tela_botanica.client.http.JsonRestRequestBuilder;
6
import org.tela_botanica.client.http.JsonRestRequestCallback;
6
import org.tela_botanica.client.http.JsonRestRequestCallback;
7
import org.tela_botanica.client.interfaces.Rafraichissable;
7
import org.tela_botanica.client.interfaces.Rafraichissable;
8
import org.tela_botanica.client.modeles.Information;
8
import org.tela_botanica.client.modeles.Information;
9
import org.tela_botanica.client.modeles.projet.ProjetListe;
9
import org.tela_botanica.client.modeles.projet.ProjetListe;
-
 
10
import org.tela_botanica.client.util.Debug;
10
import org.tela_botanica.client.util.UtilDAO;
11
import org.tela_botanica.client.util.UtilDAO;
11
 
12
 
12
import com.extjs.gxt.ui.client.Registry;
13
import com.extjs.gxt.ui.client.Registry;
13
import com.google.gwt.core.client.GWT;
14
import com.google.gwt.core.client.GWT;
14
import com.google.gwt.http.client.URL;
15
import com.google.gwt.http.client.URL;
15
import com.google.gwt.json.client.JSONArray;
16
import com.google.gwt.json.client.JSONArray;
16
import com.google.gwt.json.client.JSONObject;
17
import com.google.gwt.json.client.JSONObject;
17
import com.google.gwt.json.client.JSONValue;
18
import com.google.gwt.json.client.JSONValue;
18
 
19
 
19
public class CollectionAsyncDao {
20
public class CollectionAsyncDao {
20
	
21
	
21
	public static final String SERVICE_NOM = "CoelCollection";
22
	public static final String SERVICE_NOM = "CoelCollection";
22
	private String utilisateurId = null;
23
	private String utilisateurId = null;
23
	private Rafraichissable vueARafraichir = null;
24
	private Rafraichissable vueARafraichir = null;
24
	
25
	
25
	public CollectionAsyncDao(Rafraichissable vueARafraichirCourrante) {
26
	public CollectionAsyncDao(Rafraichissable vueARafraichirCourrante) {
26
		vueARafraichir = vueARafraichirCourrante;
27
		vueARafraichir = vueARafraichirCourrante;
27
		utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
28
		utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
28
	}
29
	}
29
	
30
	
30
	public void selectionner(final String projetId, final String collectionId) {
31
	public void selectionner(final String projetId, final String collectionId) {
31
		// Ajout des paramètres et données à selectionner dans l'URL
32
		// Ajout des paramètres et données à selectionner dans l'URL
32
		String[] parametres = {projetId, collectionId};
33
		String[] parametres = {projetId, collectionId};
33
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
34
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
34
		rb.envoyerRequete(null, new JsonRestRequestCallback() {
35
		rb.envoyerRequete(null, new JsonRestRequestCallback() {
35
			@Override
36
			@Override
36
			public void surReponse(JSONValue responseValue) {
37
			public void surReponse(JSONValue responseValue) {
37
				if (responseValue != null) {
38
				if (responseValue != null) {
38
					// Si la requête est un succès, reception d'un objet ou d'un tableau
39
					// Si la requête est un succès, reception d'un objet ou d'un tableau
39
					if (responseValue.isObject() != null) {
40
					if (responseValue.isObject() != null) {
40
						final JSONObject reponse = responseValue.isObject();
41
						final JSONObject reponse = responseValue.isObject();
41
						Collection collection = new Collection(reponse);
42
						Collection collection = new Collection(reponse);
42
						CollectionBotanique collectionBotanique = new CollectionBotanique(reponse);
43
						CollectionBotanique collectionBotanique = new CollectionBotanique(reponse);
43
						collection.setBotanique(collectionBotanique);
44
						collection.setBotanique(collectionBotanique);
44
						
45
						
45
						Information info = new Information("selection_collection");
46
						Information info = new Information("selection_collection");
46
						info.setDonnee(0, collection);
47
						info.setDonnee(0, collection);
47
						vueARafraichir.rafraichir(info);
48
						vueARafraichir.rafraichir(info);
48
					} else if (responseValue.isArray() != null) {
49
					} else if (responseValue.isArray() != null) {
49
						final JSONArray reponse = responseValue.isArray();
50
						final JSONArray reponse = responseValue.isArray();
50
						CollectionListe collections = new CollectionListe(reponse);
51
						CollectionListe collections = new CollectionListe(reponse);
51
						vueARafraichir.rafraichir(collections);
52
						vueARafraichir.rafraichir(collections);
52
					} else {
53
					} else {
53
						GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
54
						GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
54
					}
55
					}
55
				} else {
56
				} else {
56
					// Dans le cas, où nous demandons toutes les institutions et qu'il n'y en a pas, nous retournons un objet vide
57
					// Dans le cas, où nous demandons toutes les institutions et qu'il n'y en a pas, nous retournons un objet vide
57
					if (collectionId == null) {
58
					if (collectionId == null) {
58
						CollectionListe collections = new CollectionListe(0);
59
						CollectionListe collections = new CollectionListe(0);
59
						vueARafraichir.rafraichir(collections);								
60
						vueARafraichir.rafraichir(collections);								
60
					}
61
					}
61
				}
62
				}
62
			}
63
			}
63
		});
64
		});
64
	}
65
	}
65
	
66
	
66
	public void ajouter(Collection collection) {
67
	public void ajouter(Collection collection) {
67
		String postDonneesEncodees = construirePost(null, collection);
68
		String postDonneesEncodees = construirePost(null, collection);
68
 
69
 
69
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
70
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
70
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
71
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
71
			@Override
72
			@Override
72
			public void surReponse(JSONValue responseValue) {
73
			public void surReponse(JSONValue responseValue) {
73
				if (responseValue.isString() != null) {
74
				if (responseValue.isString() != null) {
74
					Information info = new Information("ajout_collection");
75
					Information info = new Information("ajout_collection");
75
					String structureIdOuMessage = responseValue.isString().stringValue();
76
					String structureIdOuMessage = responseValue.isString().stringValue();
76
					if (structureIdOuMessage.matches("^[0-9]+$")) {
77
					if (structureIdOuMessage.matches("^[0-9]+$")) {
77
						info.setDonnee(structureIdOuMessage);
78
						info.setDonnee(structureIdOuMessage);
78
					} else {
79
					} else {
79
						info.setMessage(structureIdOuMessage);
80
						info.setMessage(structureIdOuMessage);
80
					}
81
					}
81
					vueARafraichir.rafraichir(info);
82
					vueARafraichir.rafraichir(info);
82
				} else {
83
				} else {
83
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
84
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
84
				}
85
				}
85
			}
86
			}
86
		});
87
		});
87
	}
88
	}
88
	
89
	
89
	public void modifier(Collection collection) {
90
	public void modifier(Collection collection) {
90
		String postDonneesEncodees = construirePost(collection.getId(), collection);
91
		String postDonneesEncodees = construirePost(collection.getId(), collection);
91
		
92
		
92
		String[] parametres = {collection.getId()};
93
		String[] parametres = {collection.getId()};
93
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
94
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
94
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
95
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
95
			@Override
96
			@Override
96
			public void surReponse(JSONValue responseValue) {
97
			public void surReponse(JSONValue responseValue) {
97
				// Si la requête est un succès, reception d'une chaine
98
				// Si la requête est un succès, reception d'une chaine
98
				if (responseValue.isString() != null) {
99
				if (responseValue.isString() != null) {
99
					Information info = new Information("modif_collection");
100
					Information info = new Information("modif_collection");
100
					info.setMessage(responseValue.isString().stringValue());
101
					info.setMessage(responseValue.isString().stringValue());
101
					vueARafraichir.rafraichir(info);
102
					vueARafraichir.rafraichir(info);
102
				} else {
103
				} else {
103
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
104
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
104
				}
105
				}
105
			}
106
			}
106
		});
107
		});
107
	}
108
	}
108
	
109
	
109
	public void supprimer(String collectionsId) {
110
	public void supprimer(String collectionsId) {
110
		String[] parametres = {utilisateurId, collectionsId};
111
		String[] parametres = {utilisateurId, collectionsId};
111
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
112
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
112
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
113
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
113
			@Override
114
			@Override
114
			public void surReponse(JSONValue responseValue) {
115
			public void surReponse(JSONValue responseValue) {
115
				if (responseValue.isString() != null) {
116
				if (responseValue.isString() != null) {
116
					Information info = new Information("suppression_collection");
117
					Information info = new Information("suppression_collection");
117
					info.setMessage(responseValue.isString().stringValue());
118
					info.setMessage(responseValue.isString().stringValue());
118
					vueARafraichir.rafraichir(info);
119
					vueARafraichir.rafraichir(info);
119
				} else {
120
				} else {
120
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
121
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
121
				}
122
				}
122
			}
123
			}
123
		});
124
		});
124
	}
125
	}
125
	
126
	
126
	private String construirePost(String collectionId, Collection collection) {
127
	private String construirePost(String collectionId, Collection collection) {
127
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
128
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
128
			
129
			
129
		if (collection != null) {
130
		if (collection != null) {
130
			if (collectionId != null) {
131
			if (collectionId != null) {
131
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
132
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
132
			}
133
			}
-
 
134
			Debug.log("id projet:"+collection.getIdProjet());
-
 
135
			Debug.log("liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
133
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
136
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
134
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
137
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
135
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
138
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
136
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
139
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
137
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
140
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
138
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
141
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
139
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
142
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
140
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
143
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
141
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
144
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
142
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
145
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
143
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
146
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
144
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
147
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
145
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
148
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
146
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
149
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
147
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
150
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
148
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
151
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
149
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
152
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
150
				"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
153
				"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
151
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
154
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
152
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
155
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
153
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
156
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
154
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
157
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
155
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());
158
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());
156
		}
159
		}
157
		
160
		
158
		if (collection.getBotanique() != null) {
161
		if (collection.getBotanique() != null) {
159
			if (collectionId != null) {
162
			if (collectionId != null) {
160
				postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
163
				postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
161
			}
164
			}
162
			CollectionBotanique collectionBotanique = collection.getBotanique();
165
			CollectionBotanique collectionBotanique = collection.getBotanique();
163
			postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
166
			postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
164
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
167
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
165
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
168
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
166
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
169
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
167
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
170
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
168
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
171
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
169
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
172
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
170
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
173
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
171
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
174
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
172
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
175
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
173
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
176
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
174
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
177
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
175
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
178
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
176
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
179
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
177
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
180
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
178
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
181
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
179
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
182
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
180
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
183
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
181
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
184
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
182
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
185
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
183
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
186
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
184
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
187
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
185
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
188
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
186
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
189
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
187
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
190
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
188
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
191
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
189
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
192
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
190
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
193
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
191
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
194
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
192
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
195
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
193
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
196
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
194
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
197
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
195
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
198
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
196
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
199
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
197
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
200
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
198
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
201
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
199
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
202
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
200
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
203
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
201
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
204
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
202
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
205
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
203
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
206
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
204
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());
207
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());
205
		}
208
		}
206
		
209
		
207
		return postDonnees;
210
		return postDonnees;
208
	}
211
	}
209
}
212
}