Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 41 Rev 45
Line 7... Line 7...
7
import com.google.gwt.http.client.RequestBuilder;
7
import com.google.gwt.http.client.RequestBuilder;
8
import com.google.gwt.http.client.RequestCallback;
8
import com.google.gwt.http.client.RequestCallback;
9
import com.google.gwt.http.client.RequestException;
9
import com.google.gwt.http.client.RequestException;
10
import com.google.gwt.http.client.Response;
10
import com.google.gwt.http.client.Response;
11
import com.google.gwt.http.client.URL;
11
import com.google.gwt.http.client.URL;
12
import com.google.gwt.user.client.HTTPRequest;
-
 
13
import com.google.gwt.user.client.ResponseTextHandler;
-
 
14
import com.google.gwt.user.client.Window;
-
 
Line 15... Line 12...
15
 
12
 
16
/**
13
/**
17
 * DAO d'accès a une observation
14
 * DAO d'accès a une observation
18
 * 
15
 * 
Line 59... Line 56...
59
			String postData = "identifiant="
56
			String postData = "identifiant="
60
				+ utilisateur + "&nom_sel=" + URL.encodeComponent(obs.getNomSaisi()) + "&num_nom_sel=" + obs.getNumeroNomenclaturalSaisi()
57
				+ utilisateur + "&nom_sel=" + URL.encodeComponent(obs.getNomSaisi()) + "&num_nom_sel=" + obs.getNumeroNomenclaturalSaisi()
61
				+ "&location=" + URL.encodeComponent(obs.getLocalite()) + "&id_location=" + obs.getIdentifiantLocalite() + "&date_observation=" +  obs.getDate()
58
				+ "&location=" + URL.encodeComponent(obs.getLocalite()) + "&id_location=" + obs.getIdentifiantLocalite() + "&date_observation=" +  obs.getDate()
62
				+ "&lieudit="+ URL.encodeComponent(obs.getLieudit()) + "&station="+ URL.encodeComponent(obs.getLieudit()) +"&milieu="+ URL.encodeComponent(obs.getMilieu()) + "&commentaire="+ URL.encodeComponent(obs.getCommentaire()) ;
59
				+ "&lieudit="+ URL.encodeComponent(obs.getLieudit()) + "&station="+ URL.encodeComponent(obs.getLieudit()) +"&milieu="+ URL.encodeComponent(obs.getMilieu()) + "&commentaire="+ URL.encodeComponent(obs.getCommentaire()) ;
Line 63... Line -...
63
 
-
 
Line 64... Line 60...
64
			Window.alert("URL : "+rb.getUrl()+" param : "+postData) ;
60
 
Line 65... Line 61...
65
			
61