| Line 6... |
Line 6... |
| 6 |
import java.util.Map;
|
6 |
import java.util.Map;
|
| Line 7... |
Line 7... |
| 7 |
|
7 |
|
| 8 |
import org.tela_botanica.client.CarnetEnLigneMediateur;
|
8 |
import org.tela_botanica.client.CarnetEnLigneMediateur;
|
| 9 |
import org.tela_botanica.client.cel2;
|
9 |
import org.tela_botanica.client.cel2;
|
| 10 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
10 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 11 |
import org.tela_botanica.client.modeles.dao.InformationCommuneDAO;
|
11 |
import org.tela_botanica.client.modeles.dao.InformationLocaliteDAO;
|
| 12 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
12 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
| 13 |
import org.tela_botanica.client.modeles.objets.EntiteGeographiqueObservation;
|
13 |
import org.tela_botanica.client.modeles.objets.EntiteGeographiqueObservation;
|
| 14 |
import org.tela_botanica.client.modeles.objets.InfosReferentielNom;
|
14 |
import org.tela_botanica.client.modeles.objets.InfosReferentielNom;
|
| 15 |
import org.tela_botanica.client.modeles.objets.ListeObservation;
|
15 |
import org.tela_botanica.client.modeles.objets.ListeObservation;
|
| Line 612... |
Line 612... |
| 612 |
}
|
612 |
}
|
| Line 613... |
Line 613... |
| 613 |
|
613 |
|
| 614 |
// Assistants de saisie
|
614 |
// Assistants de saisie
|
| 615 |
/**
|
615 |
/**
|
| 616 |
*
|
616 |
*
|
| 617 |
* Lance un appel de recherche d'une liste de commune correspondant aux criteres de selectionne
|
617 |
* Lance un appel de recherche d'une liste de localite correspondant aux criteres de selection
|
| 618 |
* @param r : la vue demandeuse de donnee
|
618 |
* @param r : la vue demandeuse de donnee
|
| 619 |
* @param critere : les criteres de selection
|
619 |
* @param critere : les criteres de selection
|
| Line 620... |
Line 620... |
| 620 |
*/
|
620 |
*/
|
| Line 621... |
Line 621... |
| 621 |
|
621 |
|
| 622 |
public void obtenirListeReferentielCommune(Rafraichissable r, String critere) {
|
622 |
public void obtenirListeReferentielLocalite(Rafraichissable r, String critere) {
|
| Line 623... |
Line 623... |
| 623 |
|
623 |
|
| 624 |
observationModele.obtenirListeReferentielCommune(r,critere) ;
|
624 |
observationModele.obtenirListeReferentielLocalite(r,critere) ;
|
| 625 |
}
|
625 |
}
|
| Line 1129... |
Line 1129... |
| 1129 |
|
1129 |
|
| 1130 |
public void obtenirInformationCoord(Rafraichissable r, double lat, double lng) {
|
1130 |
public void obtenirInformationCoord(Rafraichissable r, double lat, double lng) {
|
| 1131 |
observationModele.obtenirInformationCoord(r, lat, lng);
|
1131 |
observationModele.obtenirInformationCoord(r, lat, lng);
|
| Line 1132... |
Line 1132... |
| 1132 |
}
|
1132 |
}
|
| 1133 |
|
1133 |
|
| 1134 |
public void obtenirInformationCommune(Rafraichissable r, String nomCommune, String codePostal) {
|
1134 |
public void obtenirInformationLocalite(Rafraichissable r, String nomLocalite, String codeLoc) {
|
| Line 1135... |
Line 1135... |
| 1135 |
observationModele.obtenirInformationCommune(r,nomCommune, codePostal);
|
1135 |
observationModele.obtenirInformationLocalite(r, nomLocalite, codeLoc);
|
| 1136 |
}
|
1136 |
}
|
| 1137 |
|
1137 |
|
| Line 1138... |
Line 1138... |
| 1138 |
public void obtenirInformationCoord(double lat, double lng) {
|
1138 |
public void obtenirInformationCoord(double lat, double lng) {
|
| 1139 |
this.obtenirInformationCoord(lat, lng, false);
|
1139 |
this.obtenirInformationCoord(lat, lng, false);
|
| 1140 |
}
|
1140 |
}
|
| 1141 |
|
1141 |
|
| 1142 |
public void obtenirInformationCoord(double lat, double lng, boolean zoomer) {
|
1142 |
public void obtenirInformationCoord(double lat, double lng, boolean zoomer) {
|
| 1143 |
cartoObservationVue.setDoitZoomerSurRetour(true);
|
1143 |
cartoObservationVue.setDoitZoomerSurRetour(true);
|
| 1144 |
// Les requêtes hors France sont longues, on veille donc à ne pas les empiler
|
1144 |
// Les requêtes hors France sont longues, on veille donc à ne pas les empiler
|
| 1145 |
// inutilement pour ne pas les traiter au retour
|
1145 |
// inutilement pour ne pas les traiter au retour
|
| 1146 |
InformationCommuneDAO.annulerRequeteEnCours();
|
1146 |
InformationLocaliteDAO.annulerRequeteEnCours();
|
| 1147 |
// Pour faire patienter l'utilisateur le temps de trouver la zone
|
1147 |
// Pour faire patienter l'utilisateur le temps de trouver la zone
|
| 1148 |
//Util.curseurAttente();
|
1148 |
//Util.curseurAttente();
|
| Line 1149... |
Line 1149... |
| 1149 |
afficherFenetreCarto();
|
1149 |
afficherFenetreCarto();
|
| 1150 |
cartoObservationVue.afficherCarteEnAttenteAvecMarker(lat, lng);
|
- |
|
| 1151 |
observationModele.obtenirInformationCoord(cartoObservationVue, lat, lng);
|
1150 |
cartoObservationVue.afficherCarteEnAttenteAvecMarker(lat, lng);
|
| 1152 |
}
|
1151 |
observationModele.obtenirInformationCoord(cartoObservationVue, lat, lng);
|
| Line 1153... |
Line 1152... |
| 1153 |
|
1152 |
}
|
| 1154 |
public void obtenirInformationCommune(String nomCommune,
|
1153 |
|
| 1155 |
String codeLoc) {
|
1154 |
public void obtenirInformationLocalite(String nomLocalite, String codeLoc) {
|
| Line 1163... |
Line 1162... |
| 1163 |
*/
|
1162 |
*/
|
| 1164 |
public void rafraichirFenetreCartoSurPoint(EntiteGeographiqueObservation infos) {
|
1163 |
public void rafraichirFenetreCartoSurPoint(EntiteGeographiqueObservation infos) {
|
| 1165 |
cartoObservationVue.rafraichir(infos, false);
|
1164 |
cartoObservationVue.rafraichir(infos, false);
|
| 1166 |
}
|
1165 |
}
|
| Line 1167... |
Line 1166... |
| 1167 |
|
1166 |
|
| 1168 |
public void rafraichirSaisieCommuneObservation(EntiteGeographiqueObservation infosCommune) {
|
1167 |
public void rafraichirSaisieLocaliteObservation(EntiteGeographiqueObservation infosLocalite) {
|
| 1169 |
InformationCommuneDAO.annulerRequeteEnCours();
|
1168 |
InformationLocaliteDAO.annulerRequeteEnCours();
|
| 1170 |
formulaireSaisieObservationVue.rafraichir(infosCommune, false);
|
1169 |
formulaireSaisieObservationVue.rafraichir(infosLocalite, false);
|
| 1171 |
cacherFenetreCarto();
|
1170 |
cacherFenetreCarto();
|
| Line 1172... |
Line 1171... |
| 1172 |
}
|
1171 |
}
|
| 1173 |
|
1172 |
|