| Line 18... |
Line 18... |
| 18 |
import com.google.gwt.http.client.URL;
|
18 |
import com.google.gwt.http.client.URL;
|
| 19 |
import com.google.gwt.json.client.JSONArray;
|
19 |
import com.google.gwt.json.client.JSONArray;
|
| 20 |
import com.google.gwt.json.client.JSONNumber;
|
20 |
import com.google.gwt.json.client.JSONNumber;
|
| 21 |
import com.google.gwt.json.client.JSONObject;
|
21 |
import com.google.gwt.json.client.JSONObject;
|
| 22 |
import com.google.gwt.json.client.JSONValue;
|
22 |
import com.google.gwt.json.client.JSONValue;
|
| - |
|
23 |
import com.google.gwt.user.client.Window;
|
| Line 23... |
Line 24... |
| 23 |
|
24 |
|
| Line 24... |
Line 25... |
| 24 |
public class CollectionAsyncDao {
|
25 |
public class CollectionAsyncDao {
|
| 25 |
|
26 |
|
| Line 209... |
Line 210... |
| 209 |
if (collection != null) {
|
210 |
if (collection != null) {
|
| 210 |
if (collectionId != null) {
|
211 |
if (collectionId != null) {
|
| 211 |
postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
|
212 |
postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
|
| 212 |
}
|
213 |
}
|
| Line 213... |
Line -... |
| 213 |
|
- |
|
| 214 |
/*
|
- |
|
| 215 |
postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
|
- |
|
| 216 |
postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
|
- |
|
| 217 |
"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
|
- |
|
| 218 |
"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
|
- |
|
| 219 |
"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
|
- |
|
| 220 |
"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
|
- |
|
| 221 |
"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
|
- |
|
| 222 |
"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
|
- |
|
| 223 |
"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
|
- |
|
| 224 |
"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
|
- |
|
| 225 |
"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
|
- |
|
| 226 |
"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
|
- |
|
| 227 |
"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
|
- |
|
| 228 |
"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
|
- |
|
| 229 |
"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
|
- |
|
| 230 |
"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
|
- |
|
| 231 |
"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
|
- |
|
| 232 |
"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
|
- |
|
| 233 |
"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
|
- |
|
| 234 |
"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
|
- |
|
| 235 |
"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
|
- |
|
| 236 |
"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
|
- |
|
| 237 |
"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
|
214 |
|
| 238 |
postDonnees += "&" + collection.obtenirChainePOST();
|
- |
|
| 239 |
}
|
215 |
postDonnees += "&" + collection.obtenirChainePOST();
|
| 240 |
|
216 |
|
| 241 |
if (collection.getBotanique() != null) {
|
217 |
if (collection.getBotanique() != null) {
|
| 242 |
if (collectionId != null) {
|
218 |
if (collectionId != null) {
|
| - |
|
219 |
postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
|
| - |
|
220 |
}
|
| - |
|
221 |
CollectionBotanique collectionBotanique = collection.getBotanique();
|
| 243 |
postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
|
222 |
postDonnees += "&" + collectionBotanique.obtenirChainePOST();
|
| 244 |
}
|
- |
|
| 245 |
CollectionBotanique collectionBotanique = collection.getBotanique();
|
- |
|
| 246 |
/*postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
|
- |
|
| 247 |
"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
|
- |
|
| 248 |
"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
|
- |
|
| 249 |
"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
|
- |
|
| 250 |
"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
|
- |
|
| 251 |
"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
|
- |
|
| 252 |
"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
|
- |
|
| 253 |
"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
|
- |
|
| 254 |
"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
|
- |
|
| 255 |
"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
|
- |
|
| 256 |
"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
|
- |
|
| 257 |
"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
|
- |
|
| 258 |
"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
|
- |
|
| 259 |
"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
|
- |
|
| 260 |
"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
|
- |
|
| 261 |
"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
|
- |
|
| 262 |
"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
|
- |
|
| 263 |
"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
|
- |
|
| 264 |
"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
|
- |
|
| 265 |
"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
|
- |
|
| 266 |
"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
|
- |
|
| 267 |
"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
|
- |
|
| 268 |
"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
|
- |
|
| 269 |
"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
|
- |
|
| 270 |
"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
|
- |
|
| 271 |
"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
|
- |
|
| 272 |
"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
|
- |
|
| 273 |
"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
|
- |
|
| 274 |
"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
|
- |
|
| 275 |
"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
|
- |
|
| 276 |
"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
|
- |
|
| 277 |
"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
|
- |
|
| 278 |
"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
|
- |
|
| 279 |
"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
|
- |
|
| 280 |
"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
|
- |
|
| 281 |
"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
|
- |
|
| 282 |
"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
|
- |
|
| 283 |
"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
|
- |
|
| 284 |
"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
|
- |
|
| 285 |
"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
|
- |
|
| 286 |
"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
|
- |
|
| 287 |
"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
|
- |
|
| 288 |
postDonnees += "&" + collectionBotanique.obtenirChainePOST();
|
223 |
}
|
| Line 289... |
Line 224... |
| 289 |
}
|
224 |
}
|
| 290 |
|
225 |
|
| 291 |
return postDonnees;
|
226 |
return postDonnees;
|
| 292 |
}
|
227 |
}
|