100,8 → 100,6 |
private String numeroNom = null; |
private String numeroOrdre = null; |
|
private String codeInseeCommune = null; |
|
private String referentielGeo = null; |
|
// Pour remise a zero partielle lors d'une validation |
1091,10 → 1089,10 |
final EntiteGeographiqueObservation infosCom) { |
|
String nCommune = ""; |
if(infosCom != null && !infosCom.getZoneGeo().trim().equals("")){ |
nCommune += infosCom.getZoneGeo(); |
if(!infosCom.getIdZoneGeo().trim().equals("")) |
nCommune += " ("+Util.convertirChaineZoneGeoVersCodeInsee(infosCom.getIdZoneGeo())+")"; |
if(infosCom != null && !infosCom.getCommune().trim().equals("")){ |
nCommune += infosCom.getCommune(); |
if(!infosCom.getIdLocalite().trim().equals("")) |
nCommune += " ("+infosCom.getIdLocalite()+")"; |
|
lienSelectionCommune.setHtml("<a id=\"lien_selection_commune\" tabindex=\"9\">"+nCommune+"</a>"); |
lienSelectionCommune.setStyleName("img-curseur-depl"); |
1141,14 → 1139,13 |
String nCommune = ""; |
|
|
if(infosCom.getZoneGeo() != null && !infosCom.getZoneGeo().equals("")) { |
nCommune += infosCom.getZoneGeo(); |
if(infosCom.getCommune() != null && !infosCom.getCommune().equals("")) { |
nCommune += infosCom.getCommune(); |
} |
|
if(infosCom.getIdZoneGeo() != null && !infosCom.getIdZoneGeo().equals("")) { |
String codeGeoFormate = Util.convertirChaineZoneGeoVersCodeInsee(infosCom.getIdZoneGeo()); |
nCommune += " ("+codeGeoFormate+")"; |
departement = Util.convertirChaineZoneGeoVersCodeInsee(infosCom.getIdZoneGeo());; |
if(infosCom.getIdLocalite() != null && !infosCom.getIdLocalite().equals("")) { |
nCommune += " ("+infosCom.getIdLocalite()+")"; |
departement = infosCom.getIdLocalite(); |
} |
commune.setValue(nCommune); |
communeModifiee = true; |
1470,7 → 1467,7 |
|
} |
if(!obs.getLocalite().equals("null") && !obs.getLocalite().equals("000null")) { |
if(!idLoc.equals("000null") && !idLoc.equals("")) { |
if(!idLoc.equals("000null")) { |
if(!idLoc.equals(VALEURS_MULTIPLES)) { |
commune.setValue(obs.getLocalite()+" ("+idLoc+")") ; |
} else { |
1495,10 → 1492,10 |
numeroOrdre = obs.getNumeroOrdre() ; |
} |
|
if(!obs.getLatitude().equals("null") && !obs.getLatitude().equals("000null") |
&& !obs.getLongitude().equals("null") && !obs.getLongitude().equals("000null")) { |
latitude.setValue(obs.getLatitude()) ; |
longitude.setValue(obs.getLongitude()) ; |
if(!obs.getCoordonneeX().equals("null") && !obs.getCoordonneeX().equals("000null") |
&& !obs.getCoordonneeY().equals("null") && !obs.getCoordonneeY().equals("000null")) { |
latitude.setValue(obs.getCoordonneeX()) ; |
longitude.setValue(obs.getCoordonneeY()) ; |
} |
} |
|
1663,8 → 1660,8 |
espece = comparerDifferencesChamps(espece, obsEnCours.getNomSaisi()); |
date = comparerDifferencesChamps(date, obsEnCours.getDate()); |
notes = comparerDifferencesChamps(notes, obsEnCours.getCommentaire()); |
lat = comparerDifferencesChamps(lat, obsEnCours.getLatitude()); |
lon = comparerDifferencesChamps(lon, obsEnCours.getLongitude()); |
lat = comparerDifferencesChamps(lat, obsEnCours.getCoordonneeX()); |
lon = comparerDifferencesChamps(lon, obsEnCours.getCoordonneeY()); |
|
ordreObs += obsEnCours.getNumeroOrdre()+","; |
} |
1746,7 → 1743,7 |
} |
|
private void obtenirInformationCommune() { |
observationMediateur.obtenirInformationCommune(getCommuneSansDepartement(), obtenirDepartementAPartirChampCommune()); |
observationMediateur.obtenirInformationCommune(getCommune(), obtenirDepartementAPartirChampCommune()); |
} |
|
public double[] coordonneesValides() { |
1808,11 → 1805,9 |
departement = dep ; |
} |
|
if(departement.length() == 4) { |
if(departement.length() == 1) { |
departement = "0"+departement; |
} |
|
departement = departement.substring(0,2); |
} |
catch(NumberFormatException e) |
{ |