Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1173 Rev 1262
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
	public void selectionner(final String projetId, final String collectionId, final String nomCollection, final int start, final int nbElements) {
34
	public void selectionner(final String projetId, final String collectionId, final String nomCollection, final int start, final int nbElements) {
35
		// Ajout des paramètres et données à selectionner dans l'URL
35
		// Ajout des paramètres et données à selectionner dans l'URL
36
		String[] parametres = {projetId, collectionId, nomCollection};
36
		String[] parametres = {projetId, collectionId, nomCollection};
37
		HashMap<String, String> restrictions = new HashMap<String, String>();
37
		HashMap<String, String> restrictions = new HashMap<String, String>();
38
		restrictions.put("start", String.valueOf(start*nbElements));
38
		restrictions.put("start", String.valueOf(start*nbElements));
39
		if (nbElements != -1)	{
39
		if (nbElements != -1)	{
40
			restrictions.put("limit", String.valueOf(nbElements));
40
			restrictions.put("limit", String.valueOf(nbElements));
41
		}
41
		}
42
		
42
		
43
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
43
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, restrictions);
44
		
44
		
45
		rb.envoyerRequete(null, new JsonRestRequestCallback() {
45
		rb.envoyerRequete(null, new JsonRestRequestCallback() {
46
			@Override
46
			@Override
47
			public void surReponse(JSONValue responseValue) {
47
			public void surReponse(JSONValue responseValue) {
48
				if (responseValue != null) {
48
				if (responseValue != null) {
49
					// Si la requête est un succès, reception d'un objet ou d'un tableau
49
					// Si la requête est un succès, reception d'un objet ou d'un tableau
50
					JSONArray responseArray = responseValue.isArray();
50
					JSONArray responseArray = responseValue.isArray();
51
					if (responseArray.get(1).isObject() != null) {
51
					if (responseArray.get(1).isObject() != null) {
52
						final JSONObject reponse = responseArray.get(1).isObject();
52
						final JSONObject reponse = responseArray.get(1).isObject();
53
						Collection collection = new Collection(reponse);
53
						Collection collection = new Collection(reponse);
54
						CollectionBotanique collectionBotanique = new CollectionBotanique(reponse);
54
						CollectionBotanique collectionBotanique = new CollectionBotanique(reponse);
55
						collection.setBotanique(collectionBotanique);
55
						collection.setBotanique(collectionBotanique);
56
						
56
						
57
						Information info = new Information("selection_collection");
57
						Information info = new Information("selection_collection");
58
						info.setDonnee(0, collection);
58
						info.setDonnee(0, collection);
59
						vueARafraichir.rafraichir(info);
59
						vueARafraichir.rafraichir(info);
60
					} else if (responseValue.isArray() != null) {
60
					} else if (responseValue.isArray() != null) {
61
						final JSONArray reponse = responseArray.get(1).isArray();
61
						final JSONArray reponse = responseArray.get(1).isArray();
62
						CollectionListe collections = new CollectionListe(reponse, responseArray.get(0).isNumber(), vueARafraichir);
62
						CollectionListe collections = new CollectionListe(reponse, responseArray.get(0).isNumber(), vueARafraichir);
63
						collections.setTaillePage(nbElements);
63
						collections.setTaillePage(nbElements);
64
						collections.setPageCourante(start);							
64
						collections.setPageCourante(start);							
65
						
65
						
66
						vueARafraichir.rafraichir(collections);
66
						vueARafraichir.rafraichir(collections);
67
					} else {
67
					} else {
68
						GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
68
						GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
69
					}
69
					}
70
				} else {
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
71
					// 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) {
72
					if (collectionId == null) {
73
						CollectionListe collections = new CollectionListe(0);
73
						CollectionListe collections = new CollectionListe(0);
74
						vueARafraichir.rafraichir(collections);								
74
						vueARafraichir.rafraichir(collections);								
75
					}
75
					}
76
				}
76
				}
77
			}
77
			}
78
		});
78
		});
79
	}
79
	}
80
	
80
	
81
	public void ajouter(Collection collection) {
81
	public void ajouter(Collection collection) {		
82
		String postDonneesEncodees = construirePost(null, collection);
-
 
83
 
82
		String postDonneesEncodees = construirePost(null, collection);
84
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
83
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
85
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
84
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
86
			@Override
85
			@Override
87
			public void surReponse(JSONValue responseValue) {
86
			public void surReponse(JSONValue responseValue) {
88
				if (responseValue.isString() != null) {
87
				if (responseValue.isString() != null) {
89
					Information info = new Information("ajout_collection");
88
					Information info = new Information("ajout_collection");
90
					String structureIdOuMessage = responseValue.isString().stringValue();
89
					String structureIdOuMessage = responseValue.isString().stringValue();
91
					if (structureIdOuMessage.matches("^[0-9]+$")) {
90
					if (structureIdOuMessage.matches("^[0-9]+$")) {
92
						info.setDonnee(structureIdOuMessage);
91
						info.setDonnee(structureIdOuMessage);
93
					} else {
92
					} else {
94
						info.setMessage(structureIdOuMessage);
93
						info.setMessage(structureIdOuMessage);
95
					}
94
					}
96
					vueARafraichir.rafraichir(info);
95
					vueARafraichir.rafraichir(info);
97
				} else {
96
				} else {
98
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
97
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
99
				}
98
				}
100
			}
99
			}
101
		});
100
		});
102
	}
101
	}
103
	
102
	
104
	public void modifier(Collection collection) {
103
	public void modifier(Collection collection) {
105
		String postDonneesEncodees = construirePost(collection.getId(), collection);
-
 
106
		GWT.log(postDonneesEncodees, null);
-
 
-
 
104
		
107
		
105
		String postDonneesEncodees = construirePost(collection.getId(), collection);		
108
		String[] parametres = {collection.getId()};
106
		String[] parametres = {collection.getId()};
109
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
107
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
110
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
108
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
111
			@Override
109
			@Override
112
			public void surReponse(JSONValue responseValue) {
110
			public void surReponse(JSONValue responseValue) {
113
				// Si la requête est un succès, reception d'une chaine
111
				// Si la requête est un succès, reception d'une chaine
114
				if (responseValue.isString() != null) {
112
				if (responseValue.isString() != null) {
115
					Information info = new Information("modif_collection");
113
					Information info = new Information("modif_collection");
116
					info.setMessage(responseValue.isString().stringValue());
114
					info.setMessage(responseValue.isString().stringValue());
117
					vueARafraichir.rafraichir(info);
115
					vueARafraichir.rafraichir(info);
118
				} else {
116
				} else {
119
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
117
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
120
				}
118
				}
121
			}
119
			}
122
		});
120
		});
123
	}
121
	}
124
	
122
	
125
	public void supprimer(String collectionsId) {
123
	public void supprimer(String collectionsId) {
126
		String[] parametres = {utilisateurId, collectionsId};
124
		String[] parametres = {utilisateurId, collectionsId};
127
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
125
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
128
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
126
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
129
			@Override
127
			@Override
130
			public void surReponse(JSONValue responseValue) {
128
			public void surReponse(JSONValue responseValue) {
131
				if (responseValue.isString() != null) {
129
				if (responseValue.isString() != null) {
132
					Information info = new Information("suppression_collection");
130
					Information info = new Information("suppression_collection");
133
					info.setMessage(responseValue.isString().stringValue());
131
					info.setMessage(responseValue.isString().stringValue());
134
					vueARafraichir.rafraichir(info);
132
					vueARafraichir.rafraichir(info);
135
				} else {
133
				} else {
136
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
134
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
137
				}
135
				}
138
			}
136
			}
139
		});
137
		});
140
	}
138
	}
141
	
139
	
142
	private String construirePost(String collectionId, Collection collection) {
140
	private String construirePost(String collectionId, Collection collection) {		
143
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
141
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
144
			
142
			
145
		if (collection != null) {
143
		if (collection != null) {
146
			if (collectionId != null) {
144
			if (collectionId != null) {
147
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
145
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
148
			}
146
			}
149
			
147
 
150
			/*Debug.log("id projet:"+collection.getIdProjet());
148
			/*
151
			Debug.log("liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
-
 
152
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
149
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
153
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
150
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
154
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
151
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
155
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
152
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
156
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
153
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
157
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
154
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
158
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
155
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
159
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
156
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
160
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
157
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
161
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
158
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
162
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
159
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
163
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
160
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
164
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
161
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
165
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
162
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
166
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
163
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
167
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
164
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
168
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
165
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
169
				"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
166
				"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
170
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
167
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
171
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
168
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
172
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
169
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
173
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
170
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
174
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
171
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
175
			postDonnees += "&" + collection.obtenirChainePOST();
172
			postDonnees += "&" + collection.obtenirChainePOST();
176
		}
173
		}
177
		
174
		
178
		if (collection.getBotanique() != null) {
175
		if (collection.getBotanique() != null) {
179
			if (collectionId != null) {
176
			if (collectionId != null) {
180
				postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
177
				postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
181
			}
178
			}
182
			CollectionBotanique collectionBotanique = collection.getBotanique();
179
			CollectionBotanique collectionBotanique = collection.getBotanique();
183
			/*postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
180
			/*postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
184
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
181
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
185
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
182
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
186
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
183
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
187
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
184
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
188
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
185
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
189
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
186
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
190
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
187
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
191
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
188
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
192
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
189
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
193
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
190
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
194
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
191
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
195
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
192
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
196
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
193
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
197
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
194
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
198
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
195
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
199
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
196
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
200
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
197
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
201
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
198
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
202
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
199
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
203
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
200
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
204
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
201
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
205
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
202
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
206
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
203
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
207
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
204
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
208
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
205
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
209
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
206
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
210
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
207
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
211
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
208
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
212
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
209
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
213
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
210
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
214
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
211
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
215
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
212
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
216
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
213
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
217
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
214
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
218
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
215
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
219
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
216
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
220
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
217
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
221
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
218
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
222
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
219
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
223
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
220
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
224
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
221
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
225
			postDonnees += "&" + collectionBotanique.obtenirChainePOST();
222
			postDonnees += "&" + collectionBotanique.obtenirChainePOST();
226
		}
223
		}
227
		
224
		
228
		return postDonnees;
225
		return postDonnees;
229
	}
226
	}
230
}
227
}