Line 101... |
Line 101... |
101 |
});
|
101 |
});
|
102 |
}
|
102 |
}
|
Line 103... |
Line 103... |
103 |
|
103 |
|
104 |
public void modifier(Collection collection) {
|
104 |
public void modifier(Collection collection) {
|
- |
|
105 |
String postDonneesEncodees = construirePost(collection.getId(), collection);
|
Line 105... |
Line 106... |
105 |
String postDonneesEncodees = construirePost(collection.getId(), collection);
|
106 |
GWT.log(postDonneesEncodees, null);
|
106 |
|
107 |
|
107 |
String[] parametres = {collection.getId()};
|
108 |
String[] parametres = {collection.getId()};
|
108 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
|
109 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
|
Line 143... |
Line 144... |
143 |
|
144 |
|
144 |
if (collection != null) {
|
145 |
if (collection != null) {
|
145 |
if (collectionId != null) {
|
146 |
if (collectionId != null) {
|
146 |
postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
|
147 |
postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
|
- |
|
148 |
}
|
147 |
}
|
149 |
|
148 |
Debug.log("id projet:"+collection.getIdProjet());
|
150 |
/*Debug.log("id projet:"+collection.getIdProjet());
|
149 |
Debug.log("liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
|
151 |
Debug.log("liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
|
150 |
postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
|
152 |
postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
|
151 |
postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
|
153 |
postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
|
152 |
"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
|
154 |
"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
|
Line 167... |
Line 169... |
167 |
"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
|
169 |
"&cc_truk_periode_constitution=" + URL.encodeComponent(collection.getPeriodeConstitution()) +
|
168 |
"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
|
170 |
"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
|
169 |
"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
|
171 |
"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
|
170 |
"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
|
172 |
"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
|
171 |
"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
|
173 |
"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
|
172 |
"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());
|
174 |
"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
|
- |
|
175 |
postDonnees += "&" + collection.obtenirChainePOST();
|
173 |
}
|
176 |
}
|
Line 174... |
Line 177... |
174 |
|
177 |
|
175 |
if (collection.getBotanique() != null) {
|
178 |
if (collection.getBotanique() != null) {
|
176 |
if (collectionId != null) {
|
179 |
if (collectionId != null) {
|
177 |
postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
|
180 |
postDonnees += "&ccb_id_collection=" + URL.encodeComponent(collectionId);
|
178 |
}
|
181 |
}
|
179 |
CollectionBotanique collectionBotanique = collection.getBotanique();
|
182 |
CollectionBotanique collectionBotanique = collection.getBotanique();
|
180 |
postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
|
183 |
/*postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
|
181 |
"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
|
184 |
"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
|
182 |
"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
|
185 |
"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
|
183 |
"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
|
186 |
"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
|
184 |
"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
|
187 |
"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
|
Line 216... |
Line 219... |
216 |
"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
|
219 |
"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
|
217 |
"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
|
220 |
"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
|
218 |
"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
|
221 |
"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
|
219 |
"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
|
222 |
"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
|
220 |
"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
|
223 |
"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
|
221 |
"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());
|
224 |
"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
|
- |
|
225 |
postDonnees += "&" + collectionBotanique.obtenirChainePOST();
|
222 |
}
|
226 |
}
|
Line 223... |
Line 227... |
223 |
|
227 |
|
224 |
return postDonnees;
|
228 |
return postDonnees;
|
225 |
}
|
229 |
}
|
226 |
}
|
230 |
}
|