Line 52... |
Line 52... |
52 |
|
52 |
|
53 |
|
53 |
|
Line 54... |
Line -... |
54 |
// private void addElement(String nom_sel, String num_nom_sel, String nom_ret,
|
- |
|
55 |
// 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) {
|
54 |
// private void addElement(String nom_sel, String num_nom_sel, String nom_ret,
|
- |
|
55 |
// 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) {
|
56 |
|
56 |
|
57 |
|
57 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,oModele.getConfig().getServiceBaseUrl()+ "/Inventory/") ;
|
58 |
HTTPRequest.asyncPost(oModele.getConfig().getServiceBaseUrl()+ "/Inventory/", "identifiant="
|
58 |
String postData = "identifiant="
|
59 |
+ utilisateur + "&nom_sel=" + URL.encodeComponent(obs.getNomSaisi()) + "&num_nom_sel=" + obs.getNumeroNomenclaturalSaisi()
|
59 |
+ utilisateur + "&nom_sel=" + URL.encodeComponent(obs.getNomSaisi()) + "&num_nom_sel=" + obs.getNumeroNomenclaturalSaisi()
|
- |
|
60 |
+ "&nom_ret=" + URL.encodeComponent(obs.getNomRetenu()) + "&num_nom_ret=" + obs.getNumeroNomenclaturalRetenu()
|
- |
|
61 |
+ "&num_taxon=" + obs.getNumeroTaxonomique() + "&famille=" + URL.encodeComponent(obs.getFamille()) + "&location=" + URL.encodeComponent(obs.getLocalite()) + "&id_location=" + obs.getIdentifiantLocalite() + "&date_observation=" + obs.getDate()
|
60 |
+ "&nom_ret=" + URL.encodeComponent(obs.getNomRetenu()) + "&num_nom_ret=" + obs.getNumeroNomenclaturalRetenu()
|
62 |
+ "&lieudit="+ URL.encodeComponent(obs.getLieudit()) + "&station="+ URL.encodeComponent(obs.getLieudit()) +"&milieu="+ URL.encodeComponent(obs.getMilieu()) + "&commentaire="+ URL.encodeComponent(obs.getCommentaire()) ;
|
61 |
+ "&num_taxon=" + obs.getNumeroTaxonomique() + "&famille=" + URL.encodeComponent(obs.getFamille()) + "&location=" + URL.encodeComponent(obs.getLocalite()) + "&id_location=" + obs.getIdentifiantLocalite() + "&date_observation=" + obs.getDate()
|
63 |
|
- |
|
64 |
try {
|
- |
|
65 |
|
- |
|
66 |
rb.sendRequest(postData, new RequestCallback() {
|
- |
|
67 |
|
- |
|
68 |
public void onError(Request request, Throwable exception) {
|
62 |
+ "&lieudit="+ URL.encodeComponent(obs.getLieudit()) + "&station="+ URL.encodeComponent(obs.getLieudit()) +"&milieu="+ URL.encodeComponent(obs.getMilieu()) + "&commentaire="+ URL.encodeComponent(obs.getCommentaire()),
|
69 |
// TODO Auto-generated method stub
|
63 |
|
70 |
|
- |
|
71 |
}
|
- |
|
72 |
|
64 |
new ResponseTextHandler() {
|
73 |
public void onResponseReceived(Request request,
|
- |
|
74 |
Response response) {
|
65 |
|
75 |
|
- |
|
76 |
r.rafraichir(obs,true);
|
- |
|
77 |
|
66 |
public void onCompletion(String str) {
|
78 |
}
|
- |
|
79 |
|
- |
|
80 |
|
- |
|
81 |
}) ;
|
67 |
r.rafraichir(obs,true);
|
82 |
|
68 |
}
|
83 |
} catch (RequestException e) {
|
Line 69... |
Line 84... |
69 |
});
|
84 |
|
70 |
}
|
85 |
}
|