| Line 220... |
Line 220... |
| 220 |
|
220 |
|
| Line 221... |
Line 221... |
| 221 |
public void onActivate(Panel panel) {
|
221 |
public void onActivate(Panel panel) {
|
| 222 |
|
222 |
|
| - |
|
223 |
if (panel.equals(conteneurFormulaire)) {
|
| 223 |
if (panel.equals(conteneurFormulaire)) {
|
224 |
if (!cartoObservationVue.isCarteAjoutee()) {
|
| 224 |
if (!cartoObservationVue.isCarteAjoutee()) {
|
225 |
|
| 225 |
if(formulaireSaisieObservationVue.communeInitialisee()) {
|
226 |
if(formulaireSaisieObservationVue.communeInitialisee()) {
|
| 226 |
String nomCommune = formulaireSaisieObservationVue.getCommune();
|
227 |
String nomCommune = formulaireSaisieObservationVue.getCommune();
|
| 227 |
String codePostal = formulaireSaisieObservationVue.getDepartement();
|
228 |
String codePostal = formulaireSaisieObservationVue.getDepartement();
|
| Line 469... |
Line 470... |
| 469 |
|
470 |
|
| Line 470... |
Line 471... |
| 470 |
observationModele.obtenirLiaisonImage(mvz, ordreObservation) ;
|
471 |
observationModele.obtenirLiaisonImage(mvz, ordreObservation) ;
|
| Line -... |
Line 472... |
| - |
|
472 |
|
| - |
|
473 |
filtres.getArbreMotsClesObservationVue().rafraichir(obs.getMotsCles(), false);
|
| - |
|
474 |
|
| - |
|
475 |
// si on a des coordonnées valides dans le formulaire alors localise directement avec
|
| - |
|
476 |
if(formulaireSaisieObservationVue.coordonneesValides() != null) {
|
| - |
|
477 |
EntiteGeographiqueObservation infos = new EntiteGeographiqueObservation(obs.getIdentifiantLocalite(), obs.getLocalite(), null, null);
|
| - |
|
478 |
infos.setLat(""+obs.getCoordonneeX());
|
| - |
|
479 |
infos.setLon(""+obs.getCoordonneeY());
|
| 471 |
|
480 |
cartoObservationVue.rafraichir(infos, false);
|
| 472 |
filtres.getArbreMotsClesObservationVue().rafraichir(obs.getMotsCles(), false);
|
481 |
} else {
|
| 473 |
|
482 |
// sinon appel à géonames pour obtenir des coordonnées du centre de la commune
|
| Line 474... |
Line 483... |
| 474 |
observationModele.obtenirInformationCommune(cartoObservationVue, obs.getLocalite(), obs.getIdentifiantLocalite());
|
483 |
observationModele.obtenirInformationCommune(cartoObservationVue, obs.getLocalite(), obs.getIdentifiantLocalite());
|
| 475 |
|
484 |
}
|
| 476 |
}
|
485 |
}
|