Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1218 → Rev 1219

/branches/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/Collection.java
17,7 → 17,7
private CollectionAPersonneListe personnesLiees = null;
private CollectionAPublicationListe publicationsLiees = null;
private CollectionACommentaireListe commentairesLiees = null;
public static String[] champsObligatoires = {"cc_id_collection"};
public static String[] champsObligatoires = {"cc_id_collection","cc_ce_type"};
public Collection() {
}
/branches/v1.0-syrah/src/org/tela_botanica/client/modeles/collection/CollectionAsyncDao.java
140,6 → 140,11
}
private String construirePost(String collectionId, Collection collection) {
Debug.log("BEGIN CollectionAsynDao.construirePost()");
 
Debug.log("Collection = "+collection.toString());
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId);
if (collection != null) {
147,8 → 152,10
postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
}
/*Debug.log("id projet:"+collection.getIdProjet());
Debug.log("liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
Debug.log("CollectionAsynDao.construirePost(), id projet:"+collection.getIdProjet());
Debug.log("CollectionAsynDao.construirePost(), liste projet:"+((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).toString());
 
/*
postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
173,6 → 180,8
"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());*/
postDonnees += "&" + collection.obtenirChainePOST();
Debug.log("1) postDonnees = "+postDonnees);
}
if (collection.getBotanique() != null) {
223,8 → 232,13
"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());*/
postDonnees += "&" + collectionBotanique.obtenirChainePOST();
Debug.log("2) postDonnees = "+postDonnees);
 
}
Debug.log("END CollectionAsynDao.construirePost()");
return postDonnees;
}
}