Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1219 Rev 1255
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);
104
		String postDonneesEncodees = construirePost(collection.getId(), collection);		
106
		GWT.log(postDonneesEncodees, null);
-
 
107
		
-
 
108
		String[] parametres = {collection.getId()};
105
		String[] parametres = {collection.getId()};
109
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
106
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
110
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
107
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
111
			@Override
108
			@Override
112
			public void surReponse(JSONValue responseValue) {
109
			public void surReponse(JSONValue responseValue) {
113
				// Si la requête est un succès, reception d'une chaine
110
				// Si la requête est un succès, reception d'une chaine
114
				if (responseValue.isString() != null) {
111
				if (responseValue.isString() != null) {
115
					Information info = new Information("modif_collection");
112
					Information info = new Information("modif_collection");
116
					info.setMessage(responseValue.isString().stringValue());
113
					info.setMessage(responseValue.isString().stringValue());
117
					vueARafraichir.rafraichir(info);
114
					vueARafraichir.rafraichir(info);
118
				} else {
115
				} else {
119
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
116
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
120
				}
117
				}
121
			}
118
			}
122
		});
119
		});
123
	}
120
	}
124
	
121
	
125
	public void supprimer(String collectionsId) {
122
	public void supprimer(String collectionsId) {
126
		String[] parametres = {utilisateurId, collectionsId};
123
		String[] parametres = {utilisateurId, collectionsId};
127
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
124
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
128
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
125
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
129
			@Override
126
			@Override
130
			public void surReponse(JSONValue responseValue) {
127
			public void surReponse(JSONValue responseValue) {
131
				if (responseValue.isString() != null) {
128
				if (responseValue.isString() != null) {
132
					Information info = new Information("suppression_collection");
129
					Information info = new Information("suppression_collection");
133
					info.setMessage(responseValue.isString().stringValue());
130
					info.setMessage(responseValue.isString().stringValue());
134
					vueARafraichir.rafraichir(info);
131
					vueARafraichir.rafraichir(info);
135
				} else {
132
				} else {
136
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
133
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
137
				}
134
				}
138
			}
135
			}
139
		});
136
		});
140
	}
137
	}
141
	
138
	
142
	private String construirePost(String collectionId, Collection collection) {
-
 
143
		
-
 
144
Debug.log("BEGIN CollectionAsynDao.construirePost()");
-
 
145
 
-
 
146
Debug.log("Collection = "+collection.toString());
-
 
147
		
139
	private String construirePost(String collectionId, Collection collection) {		
148
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
140
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
149
			
141
			
150
		if (collection != null) {
142
		if (collection != null) {
151
			if (collectionId != null) {
143
			if (collectionId != null) {
152
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
144
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
153
			}
145
			}
154
			
-
 
155
Debug.log("CollectionAsynDao.construirePost(), id projet:"+collection.getIdProjet());
-
 
156
Debug.log("CollectionAsynDao.construirePost(), liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
-
 
157
 
146
 
158
			/*
147
			/*
159
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
148
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
160
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
149
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
161
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
150
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
162
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
151
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
163
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
152
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
164
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
153
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
165
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
154
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
166
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
155
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
167
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
156
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
168
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
157
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
169
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
158
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
170
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
159
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
171
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
160
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
172
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
161
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
173
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
162
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
174
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
163
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
175
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
164
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
176
				"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
165
				"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
177
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
166
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
178
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
167
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
179
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
168
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
180
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
169
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
181
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
170
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
182
			postDonnees += "&" + collection.obtenirChainePOST();
171
			postDonnees += "&" + collection.obtenirChainePOST();
183
	
-
 
184
			Debug.log("1) postDonnees = "+postDonnees);
-
 
185
		}
172
		}
186
		
173
		
187
		if (collection.getBotanique() != null) {
174
		if (collection.getBotanique() != null) {
188
			if (collectionId != null) {
175
			if (collectionId != null) {
189
				postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
176
				postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
190
			}
177
			}
191
			CollectionBotanique collectionBotanique = collection.getBotanique();
178
			CollectionBotanique collectionBotanique = collection.getBotanique();
192
			/*postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
179
			/*postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
193
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
180
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
194
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
181
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
195
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
182
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
196
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
183
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
197
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
184
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
198
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
185
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
199
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
186
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
200
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
187
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
201
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
188
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
202
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
189
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
203
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
190
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
204
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
191
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
205
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
192
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
206
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
193
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
207
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
194
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
208
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
195
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
209
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
196
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
210
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
197
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
211
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
198
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
212
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
199
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
213
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
200
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
214
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
201
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
215
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
202
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
216
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
203
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
217
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
204
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
218
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
205
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
219
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
206
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
220
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
207
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
221
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
208
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
222
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
209
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
223
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
210
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
224
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
211
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
225
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
212
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
226
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
213
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
227
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
214
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
228
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
215
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
229
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
216
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
230
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
217
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
231
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
218
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
232
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
219
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
233
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
220
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
234
			postDonnees += "&" + collectionBotanique.obtenirChainePOST();
221
			postDonnees += "&" + collectionBotanique.obtenirChainePOST();
235
			
-
 
236
Debug.log("2) postDonnees = "+postDonnees);
-
 
237
 
-
 
238
		}
222
		}
239
		
-
 
240
Debug.log("END CollectionAsynDao.construirePost()");
-
 
241
		
223
		
242
		return postDonnees;
224
		return postDonnees;
243
	}
225
	}
244
}
226
}