Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1255 Rev 1327
1
package org.tela_botanica.client.modeles.collection;
1
package org.tela_botanica.client.modeles.collection;
2
 
2
 
3
import java.util.HashMap;
3
import java.util.HashMap;
4
 
4
 
5
import org.tela_botanica.client.Mediateur;
5
import org.tela_botanica.client.Mediateur;
6
import org.tela_botanica.client.RegistreId;
6
import org.tela_botanica.client.RegistreId;
7
import org.tela_botanica.client.http.JsonRestRequestBuilder;
7
import org.tela_botanica.client.http.JsonRestRequestBuilder;
8
import org.tela_botanica.client.http.JsonRestRequestCallback;
8
import org.tela_botanica.client.http.JsonRestRequestCallback;
9
import org.tela_botanica.client.interfaces.Rafraichissable;
9
import org.tela_botanica.client.interfaces.Rafraichissable;
10
import org.tela_botanica.client.modeles.Information;
10
import org.tela_botanica.client.modeles.Information;
11
import org.tela_botanica.client.modeles.projet.ProjetListe;
11
import org.tela_botanica.client.modeles.projet.ProjetListe;
12
import org.tela_botanica.client.util.Debug;
12
import org.tela_botanica.client.util.Debug;
13
import org.tela_botanica.client.util.UtilDAO;
13
import org.tela_botanica.client.util.UtilDAO;
14
 
14
 
15
import com.extjs.gxt.ui.client.Registry;
15
import com.extjs.gxt.ui.client.Registry;
16
import com.google.gwt.core.client.GWT;
16
import com.google.gwt.core.client.GWT;
17
import com.google.gwt.http.client.URL;
17
import com.google.gwt.http.client.URL;
18
import com.google.gwt.json.client.JSONArray;
18
import com.google.gwt.json.client.JSONArray;
19
import com.google.gwt.json.client.JSONNumber;
19
import com.google.gwt.json.client.JSONNumber;
20
import com.google.gwt.json.client.JSONObject;
20
import com.google.gwt.json.client.JSONObject;
21
import com.google.gwt.json.client.JSONValue;
21
import com.google.gwt.json.client.JSONValue;
22
 
22
 
23
public class CollectionAsyncDao {
23
public class CollectionAsyncDao {
24
	
24
	
25
	public static final String SERVICE_NOM = "CoelCollection";
25
	public static final String SERVICE_NOM = "CoelCollection";
26
	private String utilisateurId = null;
26
	private String utilisateurId = null;
27
	private Rafraichissable vueARafraichir = null;
27
	private Rafraichissable vueARafraichir = null;
28
	
28
	
29
	public CollectionAsyncDao(Rafraichissable vueARafraichirCourrante) {
29
	public CollectionAsyncDao(Rafraichissable vueARafraichirCourrante) {
30
		vueARafraichir = vueARafraichirCourrante;
30
		vueARafraichir = vueARafraichirCourrante;
31
		utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
31
		utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
32
	}
32
	}
33
	
33
 
-
 
34
	/**
-
 
35
	 * 
-
 
36
	 * @param paginationProgressive : définit le mode de consultation de la base de données
-
 
37
	 * 			- True :	la consultation des données est progressive, ce qui signifie que la liste est chargée (paginée) au
-
 
38
	 * 						fur et à mesure de la consultation des données par l'utilisateur.
-
 
39
	 * 			- False :	la consultation des données est classique : un seul appel à la base de données est effectué, le retour
-
 
40
	 * 						est renvoyé à l'appelant
-
 
41
	 * 			// FIXME : si la taille de la liste est supérieure à la limite du JREST (150), ce deuxieme mode ne fonctionne pas
-
 
42
	 */
34
	public void selectionner(final String projetId, final String collectionId, final String nomCollection, final int start, final int nbElements) {
43
	public void selectionner(final boolean paginationProgressive, final String projetId, final String collectionId, final String nomCollection, final int start, final int nbElements) {
-
 
44
 
35
		// Ajout des paramètres et données à selectionner dans l'URL
45
		// Ajout des paramètres et données à selectionner dans l'URL
-
 
46
		String nom = (nomCollection == null) ? "%" : nomCollection+"%";
36
		String[] parametres = {projetId, collectionId, nomCollection};
47
		String[] parametres = {projetId, collectionId, nom};
-
 
48
		
37
		HashMap<String, String> restrictions = new HashMap<String, String>();
49
		HashMap<String, String> restrictions = new HashMap<String, String>();
38
		restrictions.put("start", String.valueOf(start*nbElements));
-
 
-
 
50
		
39
		if (nbElements != -1)	{
51
		if (nbElements != -1)	{
40
			restrictions.put("limit", String.valueOf(nbElements));
52
			restrictions.put("limit", String.valueOf(nbElements));
41
		}
53
		}
42
		
54
 
-
 
55
		/** GESTION DE LA REQUETE dans le cas d'une liste paginée progressive **/
-
 
56
		if (paginationProgressive) {
-
 
57
 
-
 
58
			/** DEFINITION DU TUPLE DE DEPART **/
-
 
59
			restrictions.put("start", String.valueOf(start));
-
 
60
			
-
 
61
			/** CONSTRUCTION DE LA REQUETE **/
-
 
62
    		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
-
 
63
 
-
 
64
    		/** ENVOI DE LA REQUETE **/
-
 
65
    		rb.envoyerRequete(null, new JsonRestRequestCallback()
-
 
66
    		{
-
 
67
    			/** RECEPTION DE LA REPONSE **/
-
 
68
    			public void surReponse(JSONValue responseValue)
-
 
69
    			{
-
 
70
    				/** Dans le cas d'une liste paginée, vueARafraichir est un objet Proxy.
-
 
71
    				 * On retourne l'objet JSON au proxy afin que ce soit lui qui le traite **/
-
 
72
    				vueARafraichir.rafraichir(responseValue);
-
 
73
    			}
-
 
74
    		});
-
 
75
		}
-
 
76
		/** GESTION DE LA REQUETE dans le cas d'une liste NON paginée progressive **/
-
 
77
		else {
-
 
78
			
-
 
79
			/** DEFINITION DU TUPLE DE DEPART **/
-
 
80
			restrictions.put("start", String.valueOf(start*nbElements));
-
 
81
			
43
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
82
			final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
44
		
83
			
45
		rb.envoyerRequete(null, new JsonRestRequestCallback() {
84
			rb.envoyerRequete(null, new JsonRestRequestCallback() {
46
			@Override
85
				@Override
47
			public void surReponse(JSONValue responseValue) {
86
				public void surReponse(JSONValue responseValue) {
48
				if (responseValue != null) {
87
					if (responseValue != null) {
-
 
88
 
49
					// Si la requête est un succès, reception d'un objet ou d'un tableau
89
						JSONObject responseObject = responseValue.isObject();
-
 
90
 
50
					JSONArray responseArray = responseValue.isArray();
91
						if (responseObject != null) {
-
 
92
							
-
 
93
							// Si la réponse est un tableau, alors c'est une liste de collections qui a été retournée
51
					if (responseArray.get(1).isObject() != null) {
94
							if (responseObject.get("collections").isArray() != null) {
52
						final JSONObject reponse = responseArray.get(1).isObject();
95
								final JSONArray reponse = responseObject.get("collections").isArray();
53
						Collection collection = new Collection(reponse);
96
								CollectionListe collections = new CollectionListe(reponse, responseObject.get("nbElements").isNumber(), vueARafraichir);
54
						CollectionBotanique collectionBotanique = new CollectionBotanique(reponse);
97
								collections.setTaillePage(nbElements);
55
						collection.setBotanique(collectionBotanique);
98
								collections.setPageCourante(start);							
56
						
99
								
57
						Information info = new Information("selection_collection");
100
								vueARafraichir.rafraichir(collections);
-
 
101
								
58
						info.setDonnee(0, collection);
102
							// Si la réponse est un objet, alors c'est une unique collection qui a été retournée
59
						vueARafraichir.rafraichir(info);
-
 
60
					} else if (responseValue.isArray() != null) {
103
							} else if (responseObject.get("collections").isObject() != null) {
61
						final JSONArray reponse = responseArray.get(1).isArray();
104
								final JSONObject reponse = responseObject.get("collections").isObject();
62
						CollectionListe collections = new CollectionListe(reponse, responseArray.get(0).isNumber(), vueARafraichir);
105
								Collection collection = new Collection(reponse);
63
						collections.setTaillePage(nbElements);
106
								CollectionBotanique collectionBotanique = new CollectionBotanique(reponse);
64
						collections.setPageCourante(start);							
107
								collection.setBotanique(collectionBotanique);
65
						
108
								
-
 
109
								Information info = new Information("selection_collection");
-
 
110
								info.setDonnee(0, collection);
66
						vueARafraichir.rafraichir(collections);
111
								vueARafraichir.rafraichir(info);
-
 
112
							}
-
 
113
						} else {
-
 
114
							GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
-
 
115
						}
67
					} else {
116
					} else {
68
						GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
-
 
69
					}
-
 
70
				} else {
-
 
71
					// Dans le cas, où nous demandons toutes les institutions et qu'il n'y en a pas, nous retournons un objet vide
117
						// Dans le cas, où nous demandons toutes les institutions et qu'il n'y en a pas, nous retournons un objet vide
72
					if (collectionId == null) {
118
						if (collectionId == null) {
73
						CollectionListe collections = new CollectionListe(0);
119
							CollectionListe collections = new CollectionListe(0);
74
						vueARafraichir.rafraichir(collections);								
120
							vueARafraichir.rafraichir(collections);								
-
 
121
						}
75
					}
122
					}
76
				}
123
				}
77
			}
124
			});
78
		});
125
		}
79
	}
126
	}
80
	
127
	
81
	public void ajouter(Collection collection) {		
128
	public void ajouter(Collection collection) {		
82
		String postDonneesEncodees = construirePost(null, collection);
129
		String postDonneesEncodees = construirePost(null, collection);
83
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
130
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
84
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
131
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
85
			@Override
132
			@Override
86
			public void surReponse(JSONValue responseValue) {
133
			public void surReponse(JSONValue responseValue) {
87
				if (responseValue.isString() != null) {
134
				if (responseValue.isString() != null) {
88
					Information info = new Information("ajout_collection");
135
					Information info = new Information("ajout_collection");
89
					String structureIdOuMessage = responseValue.isString().stringValue();
136
					String structureIdOuMessage = responseValue.isString().stringValue();
90
					if (structureIdOuMessage.matches("^[0-9]+$")) {
137
					if (structureIdOuMessage.matches("^[0-9]+$")) {
91
						info.setDonnee(structureIdOuMessage);
138
						info.setDonnee(structureIdOuMessage);
92
					} else {
139
					} else {
93
						info.setMessage(structureIdOuMessage);
140
						info.setMessage(structureIdOuMessage);
94
					}
141
					}
95
					vueARafraichir.rafraichir(info);
142
					vueARafraichir.rafraichir(info);
96
				} else {
143
				} else {
97
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
144
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
98
				}
145
				}
99
			}
146
			}
100
		});
147
		});
101
	}
148
	}
102
	
149
	
103
	public void modifier(Collection collection) {
150
	public void modifier(Collection collection) {
104
		String postDonneesEncodees = construirePost(collection.getId(), collection);		
151
		String postDonneesEncodees = construirePost(collection.getId(), collection);		
105
		String[] parametres = {collection.getId()};
152
		String[] parametres = {collection.getId()};
106
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
153
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
107
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
154
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
108
			@Override
155
			@Override
109
			public void surReponse(JSONValue responseValue) {
156
			public void surReponse(JSONValue responseValue) {
110
				// Si la requête est un succès, reception d'une chaine
157
				// Si la requête est un succès, reception d'une chaine
111
				if (responseValue.isString() != null) {
158
				if (responseValue.isString() != null) {
112
					Information info = new Information("modif_collection");
159
					Information info = new Information("modif_collection");
113
					info.setMessage(responseValue.isString().stringValue());
160
					info.setMessage(responseValue.isString().stringValue());
114
					vueARafraichir.rafraichir(info);
161
					vueARafraichir.rafraichir(info);
115
				} else {
162
				} else {
116
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
163
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
117
				}
164
				}
118
			}
165
			}
119
		});
166
		});
120
	}
167
	}
121
	
168
	
122
	public void supprimer(String collectionsId) {
169
	public void supprimer(String collectionsId) {
123
		String[] parametres = {utilisateurId, collectionsId};
170
		String[] parametres = {utilisateurId, collectionsId};
124
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
171
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
125
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
172
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
126
			@Override
173
			@Override
127
			public void surReponse(JSONValue responseValue) {
174
			public void surReponse(JSONValue responseValue) {
128
				if (responseValue.isString() != null) {
175
				if (responseValue.isString() != null) {
129
					Information info = new Information("suppression_collection");
176
					Information info = new Information("suppression_collection");
130
					info.setMessage(responseValue.isString().stringValue());
177
					info.setMessage(responseValue.isString().stringValue());
131
					vueARafraichir.rafraichir(info);
178
					vueARafraichir.rafraichir(info);
132
				} else {
179
				} else {
133
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
180
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
134
				}
181
				}
135
			}
182
			}
136
		});
183
		});
137
	}
184
	}
138
	
185
	
139
	private String construirePost(String collectionId, Collection collection) {		
186
	private String construirePost(String collectionId, Collection collection) {		
140
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
187
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
141
			
188
			
142
		if (collection != null) {
189
		if (collection != null) {
143
			if (collectionId != null) {
190
			if (collectionId != null) {
144
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
191
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
145
			}
192
			}
146
 
193
 
147
			/*
194
			/*
148
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
195
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
149
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
196
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
150
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
197
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
151
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
198
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
152
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
199
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
153
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
200
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
154
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
201
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
155
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
202
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
156
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
203
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
157
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
204
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
158
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
205
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
159
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
206
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
160
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
207
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
161
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
208
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
162
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
209
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
163
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
210
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
164
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
211
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
165
				"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
212
				"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
166
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
213
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
167
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
214
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
168
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
215
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
169
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
216
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
170
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
217
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
171
			postDonnees += "&" + collection.obtenirChainePOST();
218
			postDonnees += "&" + collection.obtenirChainePOST();
172
		}
219
		}
173
		
220
		
174
		if (collection.getBotanique() != null) {
221
		if (collection.getBotanique() != null) {
175
			if (collectionId != null) {
222
			if (collectionId != null) {
176
				postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
223
				postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
177
			}
224
			}
178
			CollectionBotanique collectionBotanique = collection.getBotanique();
225
			CollectionBotanique collectionBotanique = collection.getBotanique();
179
			/*postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
226
			/*postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
180
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
227
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
181
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
228
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
182
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
229
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
183
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
230
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
184
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
231
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
185
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
232
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
186
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
233
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
187
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
234
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
188
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
235
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
189
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
236
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
190
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
237
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
191
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
238
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
192
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
239
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
193
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
240
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
194
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
241
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
195
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
242
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
196
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
243
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
197
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
244
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
198
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
245
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
199
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
246
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
200
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
247
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
201
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
248
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
202
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
249
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
203
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
250
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
204
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
251
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
205
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
252
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
206
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
253
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
207
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
254
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
208
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
255
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
209
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
256
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
210
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
257
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
211
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
258
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
212
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
259
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
213
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
260
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
214
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
261
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
215
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
262
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
216
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
263
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
217
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
264
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
218
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
265
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
219
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
266
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
220
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
267
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
221
			postDonnees += "&" + collectionBotanique.obtenirChainePOST();
268
			postDonnees += "&" + collectionBotanique.obtenirChainePOST();
222
		}
269
		}
223
		
270
		
224
		return postDonnees;
271
		return postDonnees;
225
	}
272
	}
226
}
273
}