Line 138... |
Line 138... |
138 |
}
|
138 |
}
|
139 |
});
|
139 |
});
|
140 |
}
|
140 |
}
|
Line 141... |
Line 141... |
141 |
|
141 |
|
- |
|
142 |
private String construirePost(String collectionId, Collection collection) {
|
- |
|
143 |
|
- |
|
144 |
Debug.log("BEGIN CollectionAsynDao.construirePost()");
|
- |
|
145 |
|
- |
|
146 |
Debug.log("Collection = "+collection.toString());
|
142 |
private String construirePost(String collectionId, Collection collection) {
|
147 |
|
Line 143... |
Line 148... |
143 |
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId);
|
148 |
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId);
|
144 |
|
149 |
|
145 |
if (collection != null) {
|
150 |
if (collection != null) {
|
146 |
if (collectionId != null) {
|
151 |
if (collectionId != null) {
|
Line 147... |
Line 152... |
147 |
postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
|
152 |
postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
|
148 |
}
|
153 |
}
|
- |
|
154 |
|
- |
|
155 |
Debug.log("CollectionAsynDao.construirePost(), id projet:"+collection.getIdProjet());
|
149 |
|
156 |
Debug.log("CollectionAsynDao.construirePost(), liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
|
150 |
/*Debug.log("id projet:"+collection.getIdProjet());
|
157 |
|
151 |
Debug.log("liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
|
158 |
/*
|
152 |
postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
|
159 |
postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
|
153 |
postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
|
160 |
postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
|
Line 171... |
Line 178... |
171 |
"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
|
178 |
"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
|
172 |
"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
|
179 |
"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
|
173 |
"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
|
180 |
"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
|
174 |
"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
|
181 |
"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
|
175 |
postDonnees += "&" + collection.obtenirChainePOST();
|
182 |
postDonnees += "&" + collection.obtenirChainePOST();
|
- |
|
183 |
|
- |
|
184 |
Debug.log("1) postDonnees = "+postDonnees);
|
176 |
}
|
185 |
}
|
Line 177... |
Line 186... |
177 |
|
186 |
|
178 |
if (collection.getBotanique() != null) {
|
187 |
if (collection.getBotanique() != null) {
|
179 |
if (collectionId != null) {
|
188 |
if (collectionId != null) {
|
Line 221... |
Line 230... |
221 |
"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
|
230 |
"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
|
222 |
"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
|
231 |
"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
|
223 |
"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
|
232 |
"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
|
224 |
"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
|
233 |
"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
|
225 |
postDonnees += "&" + collectionBotanique.obtenirChainePOST();
|
234 |
postDonnees += "&" + collectionBotanique.obtenirChainePOST();
|
- |
|
235 |
|
- |
|
236 |
Debug.log("2) postDonnees = "+postDonnees);
|
- |
|
237 |
|
226 |
}
|
238 |
}
|
Line -... |
Line 239... |
- |
|
239 |
|
- |
|
240 |
Debug.log("END CollectionAsynDao.construirePost()");
|
227 |
|
241 |
|
228 |
return postDonnees;
|
242 |
return postDonnees;
|
229 |
}
|
243 |
}
|
230 |
}
|
244 |
}
|