Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 220 Rev 266
Line 52... Line 52...
52
			// on construit les paramètres du get avec les critères (&critere1=valeur1&critere2=valeur2 etc...)
52
			// on construit les paramètres du get avec les critères (&critere1=valeur1&critere2=valeur2 etc...)
53
			// ils contiennent limite et taille page et autres filtres (communes , lieu dit etc ...)S
53
			// ils contiennent limite et taille page et autres filtres (communes , lieu dit etc ...)S
Line 54... Line 54...
54
			
54
			
Line 55... Line 55...
55
			for (int i = 0; i < criteres.length; i++) {
55
			for (int i = 0; i < criteres.length; i++) {
56
				
56
				
57
				if(!criteres[i][1].equals(""))
57
				if(!criteres[i][1].equals("") && criteres[i][1] != null)
58
				{
58
				{
59
					if(i!= 0)
59
					if(i!= 0)
60
					{
60
					{
Line 110... Line 110...
110
								String station=Util.toCelString(((JSONString) observation .get(10)).toString());
110
								String station=Util.toCelString(((JSONString) observation .get(10)).toString());
111
								String milieu=Util.toCelString(((JSONString) observation .get(11)).toString());
111
								String milieu=Util.toCelString(((JSONString) observation .get(11)).toString());
112
								String commentaire=Util.toCelString(((JSONString) observation .get(12)).toString());
112
								String commentaire=Util.toCelString(((JSONString) observation .get(12)).toString());
113
								String date=((JSONString) observation .get(8)).stringValue();
113
								String date=((JSONString) observation .get(8)).stringValue();
114
								String numeroOrdre=((JSONString) observation.get(7)).stringValue();
114
								String numeroOrdre=((JSONString) observation.get(7)).stringValue();
115
								//String motsCles=((JSONString) observation.get(15)).stringValue();
115
								String coordX=((JSONString) observation.get(15)).stringValue();
-
 
116
								String coordY=((JSONString) observation.get(16)).stringValue();
Line 116... Line 117...
116
								
117
								
117
								Observation obs=new Observation(transmis, nomSaisi, nomRetenu, numeroNomenclaturalSaisi, numeroNomenclaturalRetenu ,numeroTaxonomique, famille, localite, identifiantLocalite, lieudit, station, milieu, commentaire, date, numeroOrdre/*, motsCles*/);
-
 
-
 
118
								Observation obs=new Observation(transmis, nomSaisi, nomRetenu, numeroNomenclaturalSaisi, numeroNomenclaturalRetenu ,numeroTaxonomique, famille, localite, identifiantLocalite, lieudit, station, milieu, commentaire, date, numeroOrdre/*, motsCles*/);
-
 
119
								obs.setCoordonneeX(coordX);
118
			
120
								obs.setCoordonneeY(coordY);
Line 119... Line 121...
119
								observationData.put(obs.getNumeroOrdre(),obs);
121
								observationData.put(obs.getNumeroOrdre(),obs);
120
								
122
								
Line 179... Line 181...
179
				}
181
				}
Line 180... Line 182...
180
				
182
				
181
				if(obs.getCommentaire() != null) {
183
				if(obs.getCommentaire() != null) {
182
					postData += "&commentaire="+URL.encodeComponent(""+obs.getCommentaire());
184
					postData += "&commentaire="+URL.encodeComponent(""+obs.getCommentaire());
-
 
185
				}
-
 
186
				
-
 
187
				if(obs.getCoordonneeX() != null && obs.getCoordonneeY() != null) {
-
 
188
					postData += "&coord_x="+URL.encodeComponent(""+obs.getCoordonneeX());
-
 
189
					postData += "&coord_y="+URL.encodeComponent(""+obs.getCoordonneeY());
-
 
190
				}
-
 
191
				
-
 
192
				
183
				}
193
				
184
					/*+"&mots_cles="+URL.encodeComponent(obs.getMotsCles()) */;
194
					/*+"&mots_cles="+URL.encodeComponent(obs.getMotsCles()) */;
Line 185... Line 195...
185
				try {
195
				try {