| Line 3... |
Line 3... |
| 3 |
import org.tela_botanica.client.image.ImageModele;
|
3 |
import org.tela_botanica.client.image.ImageModele;
|
| 4 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
4 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 5 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
5 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
| 6 |
import org.tela_botanica.client.observation.ObservationModele;
|
6 |
import org.tela_botanica.client.observation.ObservationModele;
|
| Line 7... |
Line -... |
| 7 |
|
- |
|
| 8 |
import com.google.gwt.core.client.GWT;
|
7 |
|
| 9 |
import com.google.gwt.http.client.Request;
|
8 |
import com.google.gwt.http.client.Request;
|
| 10 |
import com.google.gwt.http.client.RequestBuilder;
|
9 |
import com.google.gwt.http.client.RequestBuilder;
|
| 11 |
import com.google.gwt.http.client.RequestCallback;
|
10 |
import com.google.gwt.http.client.RequestCallback;
|
| 12 |
import com.google.gwt.http.client.RequestException;
|
11 |
import com.google.gwt.http.client.RequestException;
|
| 13 |
import com.google.gwt.http.client.Response;
|
12 |
import com.google.gwt.http.client.Response;
|
| 14 |
import com.google.gwt.http.client.URL;
|
13 |
import com.google.gwt.http.client.URL;
|
| 15 |
import com.google.gwt.json.client.JSONParser;
|
14 |
import com.google.gwt.json.client.JSONParser;
|
| 16 |
import com.google.gwt.json.client.JSONString;
|
15 |
import com.google.gwt.json.client.JSONString;
|
| 17 |
import com.google.gwt.json.client.JSONValue;
|
- |
|
| 18 |
import com.google.gwt.user.client.ResponseTextHandler;
|
- |
|
| Line 19... |
Line 16... |
| 19 |
import com.google.gwt.user.client.Window;
|
16 |
import com.google.gwt.json.client.JSONValue;
|
| 20 |
|
17 |
|
| 21 |
/**
|
18 |
/**
|
| 22 |
* DAO qui renvoie le nombre d'image associées à différents critères donnés (utile pour la pagination)
|
19 |
* DAO qui renvoie le nombre d'image associées à différents critères donnés (utile pour la pagination)
|
| Line 68... |
Line 65... |
| 68 |
requete += criteres[i][0]+"="+URL.encodeComponent(criteres[i][1]) ;
|
65 |
requete += criteres[i][0]+"="+URL.encodeComponent(criteres[i][1]) ;
|
| 69 |
}
|
66 |
}
|
| 70 |
}
|
67 |
}
|
| 71 |
}
|
68 |
}
|
| Line 72... |
Line 69... |
| 72 |
|
69 |
|
| Line 73... |
Line 70... |
| 73 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,Configuration.getServiceBaseUrl()+"/InventoryObservationCount/"+utilisateur+"/"+requete) ;
|
70 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,Configuration.getServiceBaseUrl()+"/InventoryObservationCount/"+utilisateur+"/?"+requete) ;
|
| Line 74... |
Line 71... |
| 74 |
|
71 |
|
| Line -... |
Line 72... |
| - |
|
72 |
try {
|
| 75 |
try {
|
73 |
|
| 76 |
|
74 |
rb.sendRequest(null, new RequestCallback() {
|
| Line 77... |
Line 75... |
| 77 |
rb.sendRequest(null, new RequestCallback() {
|
75 |
|
| Line -... |
Line 76... |
| - |
|
76 |
@Override
|
| 78 |
|
77 |
public void onError(Request request, Throwable exception) {
|
| 79 |
public void onError(Request request, Throwable exception) {
|
78 |
// TODO Auto-generated method stub
|
| Line 80... |
Line 79... |
| 80 |
// TODO Auto-generated method stub
|
79 |
|