Subversion Repositories eFlore/Applications.cel

Rev

Rev 989 | Rev 1488 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 989 Rev 1293
Line 4... Line 4...
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.modeles.objets.ListeObservation;
6
import org.tela_botanica.client.modeles.objets.ListeObservation;
7
import org.tela_botanica.client.modeles.objets.Observation;
7
import org.tela_botanica.client.modeles.objets.Observation;
8
import org.tela_botanica.client.observation.ObservationModele;
8
import org.tela_botanica.client.observation.ObservationModele;
9
import org.tela_botanica.client.util.Util;
-
 
Line 10... Line -...
10
 
-
 
11
import com.google.gwt.core.client.GWT;
9
 
12
import com.google.gwt.http.client.Request;
10
import com.google.gwt.http.client.Request;
13
import com.google.gwt.http.client.RequestBuilder;
11
import com.google.gwt.http.client.RequestBuilder;
14
import com.google.gwt.http.client.RequestCallback;
12
import com.google.gwt.http.client.RequestCallback;
15
import com.google.gwt.http.client.RequestException;
13
import com.google.gwt.http.client.RequestException;
16
import com.google.gwt.http.client.Response;
14
import com.google.gwt.http.client.Response;
17
import com.google.gwt.http.client.URL;
15
import com.google.gwt.http.client.URL;
18
import com.google.gwt.json.client.JSONArray;
16
import com.google.gwt.json.client.JSONArray;
19
import com.google.gwt.json.client.JSONObject;
17
import com.google.gwt.json.client.JSONObject;
20
import com.google.gwt.json.client.JSONParser;
-
 
21
import com.google.gwt.json.client.JSONString;
18
import com.google.gwt.json.client.JSONParser;
22
import com.google.gwt.json.client.JSONValue;
-
 
Line 23... Line 19...
23
import com.google.gwt.user.client.Window;
19
import com.google.gwt.json.client.JSONValue;
24
 
20
 
25
/**
21
/**
26
 * DAO la liste des observations attachées a un observateur.
22
 * DAO la liste des observations attachées a un observateur.
Line 79... Line 75...
79
			}
75
			}
80
		}
76
		}
Line 81... Line 77...
81
		
77
		
82
		// on envoie le get asynchrone
78
		// on envoie le get asynchrone
83
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,Configuration.getServiceBaseUrl()
79
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,Configuration.getServiceBaseUrl()
Line 84... Line 80...
84
				+"/InventoryObservationList/"+utilisateur+"/"+requete) ;
80
				+"/InventoryObservationList/"+utilisateur+"/?"+requete) ;
85
		
81
		
Line -... Line 82...
-
 
82
		try {
86
		try {
83
			rb.sendRequest(null, new RequestCallback() {
87
			rb.sendRequest(null, new RequestCallback() {
84
 
Line 88... Line 85...
88
 
85
				@Override
Line -... Line 86...
-
 
86
				public void onError(final Request request, final Throwable exception) {
89
				public void onError(final Request request, final Throwable exception) {
87
					// TODO Auto-generated method stub
90
					// TODO Auto-generated method stub
88
					
Line 91... Line 89...
91
					
89
				}
92
				}
90
 
Line 186... Line 184...
186
 
184
 
Line 187... Line 185...
187
				try {
185
				try {
Line -... Line 186...
-
 
186
					
188
					
187
					rb.sendRequest(postData, new RequestCallback() {
189
					rb.sendRequest(postData, new RequestCallback() {
188
 
Line 190... Line 189...
190
 
189
						@Override
Line -... Line 190...
-
 
190
						public void onError(Request request, Throwable exception) {
191
						public void onError(Request request, Throwable exception) {
191
							// TODO Auto-generated method stub
192
							// TODO Auto-generated method stub
192
							
193
							
193
						}
194
						}
194
 
195
 
195
						@Override
Line 229... Line 229...
229
				+ numerosOrdre);
229
				+ numerosOrdre);
Line 230... Line 230...
230
 
230
 
231
		try {
231
		try {
Line -... Line 232...
-
 
232
			rb.sendRequest(postData, new RequestCallback() {
232
			rb.sendRequest(postData, new RequestCallback() {
233
 
233
 
234
				@Override
Line 234... Line 235...
234
				public void onError(Request request, Throwable exception) {
235
				public void onError(Request request, Throwable exception) {
Line -... Line 236...
-
 
236
					// TODO Auto-generated method stub
235
					// TODO Auto-generated method stub
237
 
236
 
238
				}
Line 237... Line 239...
237
				}
239