Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 217 Rev 220
Line 148... Line 148...
148
				String postData = "identifiant="
148
				String postData = "identifiant="
149
					+ identifiant ;
149
					+ identifiant ;
150
				if(obs.getNomSaisi() != null) {
150
				if(obs.getNomSaisi() != null) {
151
					postData += "&nom_sel=" + URL.encodeComponent(obs.getNomSaisi());
151
					postData += "&nom_sel=" + URL.encodeComponent(obs.getNomSaisi());
152
				}
152
				}
-
 
153
				if(obs.getNumeroNomenclaturalSaisi() != null) {
153
					/* + "&num_nom_sel=" + obs.getNumeroNomenclaturalSaisi()
154
					postData += "&num_nom_sel=" + obs.getNumeroNomenclaturalSaisi();
-
 
155
				}
154
					 
156
				
155
					+ "&location=" + URL.encodeComponent(obs.getLocalite())
157
				if(obs.getIdentifiantLocalite() != null) {
156
					+ "&id_location=" + obs.getIdentifiantLocalite() 
158
					postData += "&id_location=" + obs.getIdentifiantLocalite();
-
 
159
				}
-
 
160
				
157
					+ "&date_observation=" +  obs.getDate()
161
				if(obs.getLocalite() != null) {
158
					+ "&lieudit="+ URL.encodeComponent(obs.getLieudit()) 
-
 
159
					+ "&station="+ URL.encodeComponent(obs.getStation()) 
162
					postData += "&location=" + URL.encodeComponent(obs.getLocalite()); 
160
					+"&milieu="+ URL.encodeComponent(obs.getMilieu())
-
 
161
					+"&commentaire="+URL.encodeComponent(""+obs.getCommentaire())
-
 
162
					*/
163
				}
163
					/*+"&mots_cles="+URL.encodeComponent(obs.getMotsCles()) */;
-
 
164
 
164
				
-
 
165
				if(obs.getDate() != null) {
-
 
166
					postData += "&date_observation=" +  obs.getDate();
-
 
167
				}
Line -... Line 168...
-
 
168
				
-
 
169
				if(obs.getLieudit() != null) {
-
 
170
					postData += "&lieudit="+ URL.encodeComponent(obs.getLieudit()); 
-
 
171
				}
-
 
172
				
-
 
173
				if(obs.getStation() != null) {
-
 
174
					postData += "&station="+ URL.encodeComponent(obs.getStation());
-
 
175
				}
-
 
176
				
-
 
177
				if(obs.getMilieu() != null) {
-
 
178
					postData += "&milieu="+ URL.encodeComponent(obs.getMilieu());
-
 
179
				}
-
 
180
				
-
 
181
				if(obs.getCommentaire() != null) {
-
 
182
					postData += "&commentaire="+URL.encodeComponent(""+obs.getCommentaire());
-
 
183
				}
165
				
184
					/*+"&mots_cles="+URL.encodeComponent(obs.getMotsCles()) */;
Line 166... Line 185...
166
				try {
185
				try {
Line 167... Line 186...
167
					
186