Subversion Repositories eFlore/Applications.cel

Rev

Rev 989 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 989 Rev 1293
Line 9... Line 9...
9
import com.google.gwt.http.client.RequestBuilder;
9
import com.google.gwt.http.client.RequestBuilder;
10
import com.google.gwt.http.client.RequestCallback;
10
import com.google.gwt.http.client.RequestCallback;
11
import com.google.gwt.http.client.RequestException;
11
import com.google.gwt.http.client.RequestException;
12
import com.google.gwt.http.client.Response;
12
import com.google.gwt.http.client.Response;
13
import com.google.gwt.http.client.URL;
13
import com.google.gwt.http.client.URL;
14
import com.google.gwt.user.client.Window;
-
 
Line 15... Line 14...
15
 
14
 
16
 
15
 
17
/**
16
/**
Line 63... Line 62...
63
				+"&station="+URL.encodeComponent(obs.getStation()) 
62
				+"&station="+URL.encodeComponent(obs.getStation()) 
64
				+"&milieu="+URL.encodeComponent(obs.getMilieu()) 
63
				+"&milieu="+URL.encodeComponent(obs.getMilieu()) 
65
				+"&commentaire="+obs.getCommentaire() 
64
				+"&commentaire="+obs.getCommentaire() 
66
				+"&latitude="+URL.encodeComponent(""+obs.getLatitude())
65
				+"&latitude="+URL.encodeComponent(""+obs.getLatitude())
67
				+"&longitude="+URL.encodeComponent(""+obs.getLongitude());;
66
				+"&longitude="+URL.encodeComponent(""+obs.getLongitude());;
68
 
-
 
69
			
-
 
70
			try {
67
			try {
Line 71... Line 68...
71
				
68
				
Line -... Line 69...
-
 
69
				rb.sendRequest(postData, new RequestCallback() {
72
				rb.sendRequest(postData, new RequestCallback() {
70
 
73
 
71
					@Override
Line 74... Line 72...
74
					public void onError(Request request, Throwable exception) {
72
					public void onError(Request request, Throwable exception) {
Line -... Line 73...
-
 
73
						// TODO Auto-generated method stub
75
						// TODO Auto-generated method stub
74
						
76
						
75
					}
Line 77... Line 76...
77
					}
76
 
Line 78... Line 77...
78
 
77
					@Override
79
					public void onResponseReceived(Request request,
-
 
80
							Response response) {
-
 
81
						
78
					public void onResponseReceived(Request request,
Line 82... Line 79...
82
						r.rafraichir(obs,true);
79
							Response response) {
Line 83... Line 80...
83
						
80
						
Line 111... Line 108...
111
				+ "&date_observation=" +  obs.getDate()
108
				+ "&date_observation=" +  obs.getDate()
112
				+ "&lieudit="+ URL.encodeComponent(obs.getLieudit()) 
109
				+ "&lieudit="+ URL.encodeComponent(obs.getLieudit()) 
113
				+ "&station="+ URL.encodeComponent(obs.getStation()) 
110
				+ "&station="+ URL.encodeComponent(obs.getStation()) 
114
				+"&milieu="+ URL.encodeComponent(obs.getMilieu())
111
				+"&milieu="+ URL.encodeComponent(obs.getMilieu())
115
				+"&commentaire="+obs.getCommentaire()
112
				+"&commentaire="+obs.getCommentaire()
116
				+"&mots_cles="+URL.encodeComponent(""+obs.getMotsCles()) 
-
 
117
				+"&latitude="+URL.encodeComponent(""+obs.getLatitude())
113
				+"&latitude="+URL.encodeComponent(""+obs.getLatitude())
118
				+"&longitude="+URL.encodeComponent(""+obs.getLongitude());
114
				+"&longitude="+URL.encodeComponent(""+obs.getLongitude());
Line 119... Line 115...
119
			
115
			
Line 120... Line 116...
120
			try {
116
			try {
Line -... Line 117...
-
 
117
				
121
				
118
				rb.sendRequest(postData, new RequestCallback() {
122
				rb.sendRequest(postData, new RequestCallback() {
119
 
Line 123... Line 120...
123
 
120
					@Override
Line -... Line 121...
-
 
121
					public void onError(Request request, Throwable exception) {
124
					public void onError(Request request, Throwable exception) {
122
						// TODO Auto-generated method stub
125
						// TODO Auto-generated method stub
123
						
Line 126... Line 124...
126
						
124
					}
Line 156... Line 154...
156
				+ numeroOrdre);
154
				+ numeroOrdre);
Line 157... Line 155...
157
 
155
 
158
		try {
156
		try {
Line -... Line 157...
-
 
157
			rb.sendRequest(postData, new RequestCallback() {
159
			rb.sendRequest(postData, new RequestCallback() {
158
 
160
 
159
				@Override
Line 161... Line 160...
161
				public void onError(Request request, Throwable exception) {
160
				public void onError(Request request, Throwable exception) {
Line -... Line 161...
-
 
161
					// TODO Auto-generated method stub
162
					// TODO Auto-generated method stub
162
 
163
 
163
				}
Line 164... Line 164...
164
				}
164