Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 609 → Rev 612

/trunk/src/org/tela_botanica/client/modeles/StructureAsyncDao.java
109,7 → 109,7
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url);
String postDonneesEncodees = construirePost(utilisateurId, str, conservation, valorisation);
String postDonneesEncodees = construirePost(utilisateurId, null, str, conservation, valorisation);
 
try {
rb.sendRequest(postDonneesEncodees, new RequestCallback() {
246,8 → 246,8
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url);
String postDonneesEncodees = construirePost(utilisateurId, str, conservation, valorisation);
GWT.log(postDonneesEncodees, null);
String postDonneesEncodees = construirePost(utilisateurId, structureId, str, conservation, valorisation);
try {
rb.sendRequest(postDonneesEncodees, new RequestCallback() {
305,9 → 305,12
}
}
private String construirePost(String utilisateurId, Structure str, StructureConservation conservation, StructureValorisation valorisation) {
private String construirePost(String utilisateurId, String structureId, Structure str, StructureConservation conservation, StructureValorisation valorisation) {
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId);
if (str != null) {
if (structureId != null) {
postDonnees += "&cs_id_structure=" + URL.encodeComponent(structureId);
}
postDonnees += "&cs_ce_projet=" + URL.encodeComponent(str.getIdProjet()) +
"&cs_ce_mere=" + URL.encodeComponent(str.getIdMere()) +
"&cs_guid=" + URL.encodeComponent(str.getGuid()) +
329,6 → 332,9
"&cs_nbre_personne=" + URL.encodeComponent(Integer.toString(str.getNbrePersonne()));
}
if (conservation != null) {
if (structureId != null) {
postDonnees += "&csc_id_structure=" + URL.encodeComponent(structureId);
}
postDonnees += "&csc_mark_formation=" + URL.encodeComponent(conservation.getFormation()) +
"&csc_formation=" + URL.encodeComponent(conservation.getFormationInfo()) +
"&csc_mark_formation_interet=" + URL.encodeComponent(conservation.getFormationInteret()) +
351,6 → 357,9
"&csc_truk_acquisition_traitement_insecte=" + URL.encodeComponent(conservation.getAcquisitionTraitementInsecte());
}
if (valorisation != null) {
if (structureId != null) {
postDonnees += "&csc_id_structure=" + URL.encodeComponent(structureId);
}
postDonnees += "&csv_mark_action=" + URL.encodeComponent(valorisation.getAction()) +
"&csv_truk_action=" + URL.encodeComponent(valorisation.getActionInfo()) +
"&csv_publication=" + URL.encodeComponent(valorisation.getPublication()) +