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