| Line 8... |
Line 8... |
| 8 |
import org.tela_botanica.client.modeles.objets.Utilisateur;
|
8 |
import org.tela_botanica.client.modeles.objets.Utilisateur;
|
| 9 |
import org.tela_botanica.client.observation.ObservationModele;
|
9 |
import org.tela_botanica.client.observation.ObservationModele;
|
| 10 |
import org.tela_botanica.client.util.Util;
|
10 |
import org.tela_botanica.client.util.Util;
|
| Line 11... |
Line 11... |
| 11 |
|
11 |
|
| 12 |
import com.google.gwt.http.client.Request;
|
12 |
import com.google.gwt.http.client.Request;
|
| 13 |
import com.google.gwt.http.client.RequestBuilder;
|
13 |
import org.tela_botanica.client.util.RequestBuilderWithCredentials;
|
| 14 |
import com.google.gwt.http.client.RequestCallback;
|
14 |
import com.google.gwt.http.client.RequestCallback;
|
| 15 |
import com.google.gwt.http.client.RequestException;
|
15 |
import com.google.gwt.http.client.RequestException;
|
| 16 |
import com.google.gwt.http.client.Response;
|
16 |
import com.google.gwt.http.client.Response;
|
| 17 |
import com.google.gwt.json.client.JSONArray;
|
17 |
import com.google.gwt.json.client.JSONArray;
|
| Line 50... |
Line 50... |
| 50 |
String paramGet = "id_image="+id ;
|
50 |
String paramGet = "id_image="+id ;
|
| Line 51... |
Line 51... |
| 51 |
|
51 |
|
| Line 52... |
Line 52... |
| 52 |
raf = r ;
|
52 |
raf = r ;
|
| 53 |
|
53 |
|
| 54 |
// et on envoie ça au serveur
|
54 |
// et on envoie ça au serveur
|
| 55 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, Configuration.getServiceBaseUrl()
|
55 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.GET, Configuration.getServiceBaseUrl()
|
| 56 |
+ "/inventoryImageLink/" + Utilisateur.getInstance().getIdentifiantUtilisateurConsulte() + "/" + paramGet);
|
56 |
+ "/inventoryImageLink/" + Utilisateur.getInstance().getIdentifiantUtilisateurConsulte() + "/" + paramGet);
|
| Line 57... |
Line 57... |
| 57 |
try {
|
57 |
try {
|
| Line 111... |
Line 111... |
| 111 |
{
|
111 |
{
|
| 112 |
String paramGet = "id_observation="+idObs ;
|
112 |
String paramGet = "id_observation="+idObs ;
|
| 113 |
raf = r ;
|
113 |
raf = r ;
|
| Line 114... |
Line 114... |
| 114 |
|
114 |
|
| 115 |
// et on envoie ça au serveur
|
115 |
// et on envoie ça au serveur
|
| 116 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, Configuration.getServiceBaseUrl()
|
116 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.GET, Configuration.getServiceBaseUrl()
|
| 117 |
+ "/inventoryImageLink/" + utilisateur + "/" + paramGet);
|
117 |
+ "/inventoryImageLink/" + utilisateur + "/" + paramGet);
|
| 118 |
try {
|
118 |
try {
|
| Line 119... |
Line 119... |
| 119 |
rb.sendRequest(null, new RequestCallback() {
|
119 |
rb.sendRequest(null, new RequestCallback() {
|
| Line 178... |
Line 178... |
| 178 |
postData += "id_image="+idsImages ;
|
178 |
postData += "id_image="+idsImages ;
|
| 179 |
postData += "&id_observation="+idsObs ;
|
179 |
postData += "&id_observation="+idsObs ;
|
| 180 |
postData += "&ce_utilisateur="+Utilisateur.getInstance().getIdentifiantUtilisateurConsulte() ;
|
180 |
postData += "&ce_utilisateur="+Utilisateur.getInstance().getIdentifiantUtilisateurConsulte() ;
|
| Line 181... |
Line 181... |
| 181 |
|
181 |
|
| 182 |
// et on envoie ça au serveur
|
182 |
// et on envoie ça au serveur
|
| 183 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
|
183 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST, Configuration.getServiceBaseUrl()
|
| 184 |
+ "/inventoryImageLink/");
|
184 |
+ "/inventoryImageLink/");
|
| 185 |
try {
|
185 |
try {
|
| Line 186... |
Line 186... |
| 186 |
rb.sendRequest(postData, new RequestCallback() {
|
186 |
rb.sendRequest(postData, new RequestCallback() {
|
| Line 214... |
Line 214... |
| 214 |
String identifiant = "" ;
|
214 |
String identifiant = "" ;
|
| Line 215... |
Line 215... |
| 215 |
|
215 |
|
| Line 216... |
Line 216... |
| 216 |
identifiant = Utilisateur.getInstance().getIdentifiantUtilisateurConsulte();
|
216 |
identifiant = Utilisateur.getInstance().getIdentifiantUtilisateurConsulte();
|
| 217 |
|
217 |
|
| 218 |
// et on envoie ça au serveur
|
218 |
// et on envoie ça au serveur
|
| Line 219... |
Line 219... |
| 219 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
|
219 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST, Configuration.getServiceBaseUrl()
|
| 220 |
+ "/inventoryImageLink/"+identifiant+"/"+idImg+"/"+idObs);
|
220 |
+ "/inventoryImageLink/"+identifiant+"/"+idImg+"/"+idObs);
|