48,25 → 48,21 |
|
public void ajouter(final Rafraichissable r, String utilisateur, final Observation obs) { |
|
|
// private void addElement(String nom_sel, String num_nom_sel, String nom_ret, |
// String num_nom_ret, String num_taxon, String famille,final String loc, String id_location,String dat, String lieu, String sta, String mil, String comment) { |
|
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()+ "/Inventory/") ; |
|
String postData = "identifiant=" |
String postData = "ce_utilisateur=" |
+ utilisateur |
+"&nom_sel="+URL.encodeComponent(obs.getNomSaisi()) |
+"&num_nom_sel="+obs.getNumeroNomenclaturalSaisi() |
+"&location="+URL.encodeComponent(obs.getLocalite()) |
+"&id_location="+obs.getIdentifiantLocalite() |
+"&nom_sel_nn="+obs.getNumeroNomenclaturalSaisi() |
+"&zone_geo="+URL.encodeComponent(obs.getLocalite()) |
+"&ce_zone_geo="+obs.getIdentifiantLocalite() |
+"&date_observation=" + obs.getDate() |
+"&lieudit="+ URL.encodeComponent(obs.getLieudit()) |
+"&station="+URL.encodeComponent(obs.getStation()) |
+"&milieu="+URL.encodeComponent(obs.getMilieu()) |
+"&commentaire="+obs.getCommentaire() |
+"&coord_x="+URL.encodeComponent(""+obs.getCoordonneeX()) |
+"&coord_y="+URL.encodeComponent(""+obs.getCoordonneeY());; |
+"&latitude="+URL.encodeComponent(""+obs.getLatitude()) |
+"&longitude="+URL.encodeComponent(""+obs.getLongitude());; |
|
|
try { |
107,9 → 103,9 |
String postData = "identifiant=" |
+ utilisateur |
+ "&nom_sel=" + URL.encodeComponent(obs.getNomSaisi()) |
+ "&num_nom_sel=" + obs.getNumeroNomenclaturalSaisi() |
+ "&location=" + URL.encodeComponent(obs.getLocalite()) |
+ "&id_location=" + obs.getIdentifiantLocalite() |
+ "&nom_sel_nn=" + obs.getNumeroNomenclaturalSaisi() |
+ "&zone_geo=" + URL.encodeComponent(obs.getLocalite()) |
+ "&ce_zone_geo=" + obs.getIdentifiantLocalite() |
+ "&date_observation=" + obs.getDate() |
+ "&lieudit="+ URL.encodeComponent(obs.getLieudit()) |
+ "&station="+ URL.encodeComponent(obs.getStation()) |
116,8 → 112,8 |
+"&milieu="+ URL.encodeComponent(obs.getMilieu()) |
+"&commentaire="+obs.getCommentaire() |
+"&mots_cles="+URL.encodeComponent(""+obs.getMotsCles()) |
+"&coord_x="+URL.encodeComponent(""+obs.getCoordonneeX()) |
+"&coord_y="+URL.encodeComponent(""+obs.getCoordonneeY()); |
+"&latitude="+URL.encodeComponent(""+obs.getLatitude()) |
+"&longitude="+URL.encodeComponent(""+obs.getLongitude()); |
|
try { |
|