Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 265 → Rev 266

/trunk/src/org/tela_botanica/client/modeles/ListeObservationAsynchroneDAO.java
54,7 → 54,7
for (int i = 0; i < criteres.length; i++) {
if(!criteres[i][1].equals(""))
if(!criteres[i][1].equals("") && criteres[i][1] != null)
{
if(i!= 0)
{
112,10 → 112,12
String commentaire=Util.toCelString(((JSONString) observation .get(12)).toString());
String date=((JSONString) observation .get(8)).stringValue();
String numeroOrdre=((JSONString) observation.get(7)).stringValue();
//String motsCles=((JSONString) observation.get(15)).stringValue();
String coordX=((JSONString) observation.get(15)).stringValue();
String coordY=((JSONString) observation.get(16)).stringValue();
Observation obs=new Observation(transmis, nomSaisi, nomRetenu, numeroNomenclaturalSaisi, numeroNomenclaturalRetenu ,numeroTaxonomique, famille, localite, identifiantLocalite, lieudit, station, milieu, commentaire, date, numeroOrdre/*, motsCles*/);
obs.setCoordonneeX(coordX);
obs.setCoordonneeY(coordY);
observationData.put(obs.getNumeroOrdre(),obs);
181,6 → 183,14
if(obs.getCommentaire() != null) {
postData += "&commentaire="+URL.encodeComponent(""+obs.getCommentaire());
}
if(obs.getCoordonneeX() != null && obs.getCoordonneeY() != null) {
postData += "&coord_x="+URL.encodeComponent(""+obs.getCoordonneeX());
postData += "&coord_y="+URL.encodeComponent(""+obs.getCoordonneeY());
}
/*+"&mots_cles="+URL.encodeComponent(obs.getMotsCles()) */;
try {