| Line 91... |
Line 91... |
| 91 |
* le mots clés à ajouter avec son parent et son identifiant
|
91 |
* le mots clés à ajouter avec son parent et son identifiant
|
| 92 |
*/
|
92 |
*/
|
| Line 93... |
Line 93... |
| 93 |
|
93 |
|
| Line 94... |
Line -... |
| 94 |
public void modifier(final Rafraichissable r, String utilisateur, final Observation obs) {
|
- |
|
| 95 |
|
- |
|
| 96 |
|
- |
|
| 97 |
|
- |
|
| 98 |
// private void addElement(String nom_sel, String num_nom_sel, String nom_ret,
|
- |
|
| 99 |
// 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) {
|
94 |
public void modifier(final Rafraichissable r, String utilisateur, final Observation obs) {
|
| Line 100... |
Line 95... |
| 100 |
|
95 |
|
| - |
|
96 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()+ "/Inventory/" + utilisateur + "/" + obs.getNumeroOrdre()+ "/") ;
|
| 101 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,Configuration.getServiceBaseUrl()+ "/Inventory/" + utilisateur + "/" + obs.getNumeroOrdre()+ "/") ;
|
97 |
|
| - |
|
98 |
String postData = "identifiant="
|
| 102 |
|
99 |
+ utilisateur
|
| - |
|
100 |
+ "&nom_sel=" + URL.encodeComponent(obs.getNomSaisi())
|
| - |
|
101 |
+ "&num_nom_sel=" + obs.getNumeroNomenclaturalSaisi()
|
| - |
|
102 |
+ "&location=" + URL.encodeComponent(obs.getLocalite())
|
| 103 |
String postData = "identifiant="
|
103 |
+ "&id_location=" + obs.getIdentifiantLocalite()
|
| - |
|
104 |
+ "&date_observation=" + obs.getDate()
|
| - |
|
105 |
+ "&lieudit="+ URL.encodeComponent(obs.getLieudit())
|
| Line 104... |
Line 106... |
| 104 |
+ utilisateur + "&nom_sel=" + URL.encodeComponent(obs.getNomSaisi()) + "&num_nom_sel=" + obs.getNumeroNomenclaturalSaisi()
|
106 |
+ "&station="+ URL.encodeComponent(obs.getStation())
|
| Line 105... |
Line 107... |
| 105 |
+ "&location=" + URL.encodeComponent(obs.getLocalite()) + "&id_location=" + obs.getIdentifiantLocalite() + "&date_observation=" + obs.getDate()
|
107 |
+"&milieu="+ URL.encodeComponent(obs.getMilieu())
|