| Line 7... |
Line 7... |
| 7 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
7 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 8 |
import org.tela_botanica.client.modeles.dao.ExportObservationsDAO;
|
8 |
import org.tela_botanica.client.modeles.dao.ExportObservationsDAO;
|
| 9 |
import org.tela_botanica.client.modeles.dao.ImageGeneriqueVueAsynchroneDAO;
|
9 |
import org.tela_botanica.client.modeles.dao.ImageGeneriqueVueAsynchroneDAO;
|
| 10 |
import org.tela_botanica.client.modeles.dao.ImageInformationRepartitionAsynchroneDAO;
|
10 |
import org.tela_botanica.client.modeles.dao.ImageInformationRepartitionAsynchroneDAO;
|
| 11 |
import org.tela_botanica.client.modeles.dao.ImportObservationAsynchroneDAO;
|
11 |
import org.tela_botanica.client.modeles.dao.ImportObservationAsynchroneDAO;
|
| 12 |
import org.tela_botanica.client.modeles.dao.InformationCommuneDAO;
|
12 |
import org.tela_botanica.client.modeles.dao.InformationLocaliteDAO;
|
| 13 |
import org.tela_botanica.client.modeles.dao.LiaisonMotsClesObsAsynchroneDAO;
|
13 |
import org.tela_botanica.client.modeles.dao.LiaisonMotsClesObsAsynchroneDAO;
|
| 14 |
import org.tela_botanica.client.modeles.dao.LienImageAsynchroneDAO;
|
14 |
import org.tela_botanica.client.modeles.dao.LienImageAsynchroneDAO;
|
| 15 |
import org.tela_botanica.client.modeles.dao.ListeDateObservationAsynchroneDAO;
|
15 |
import org.tela_botanica.client.modeles.dao.ListeDateObservationAsynchroneDAO;
|
| 16 |
import org.tela_botanica.client.modeles.dao.ListeEntiteGeographiqueObservationAsynchroneDAO;
|
16 |
import org.tela_botanica.client.modeles.dao.ListeEntiteGeographiqueObservationAsynchroneDAO;
|
| 17 |
import org.tela_botanica.client.modeles.dao.ListeObservationAsynchroneDAO;
|
17 |
import org.tela_botanica.client.modeles.dao.ListeObservationAsynchroneDAO;
|
| 18 |
import org.tela_botanica.client.modeles.dao.ListeReferentielCommuneAsynchroneDAO;
|
18 |
import org.tela_botanica.client.modeles.dao.ListeReferentielLocaliteAsynchroneDAO;
|
| 19 |
import org.tela_botanica.client.modeles.dao.ListeReferentielNomAsynchroneDAO;
|
19 |
import org.tela_botanica.client.modeles.dao.ListeReferentielNomAsynchroneDAO;
|
| 20 |
import org.tela_botanica.client.modeles.dao.ListeReferentielPersoAsynchroneDAO;
|
20 |
import org.tela_botanica.client.modeles.dao.ListeReferentielPersoAsynchroneDAO;
|
| 21 |
import org.tela_botanica.client.modeles.dao.MotsClesAsynchroneDAO;
|
21 |
import org.tela_botanica.client.modeles.dao.MotsClesAsynchroneDAO;
|
| 22 |
import org.tela_botanica.client.modeles.dao.NomRetenuAsynchroneDAO;
|
22 |
import org.tela_botanica.client.modeles.dao.NomRetenuAsynchroneDAO;
|
| 23 |
import org.tela_botanica.client.modeles.dao.NombreObservationAsynchroneDAO;
|
23 |
import org.tela_botanica.client.modeles.dao.NombreObservationAsynchroneDAO;
|
| Line 75... |
Line 75... |
| 75 |
* DAO dont le resultat peut etre mis en cache
|
75 |
* DAO dont le resultat peut etre mis en cache
|
| 76 |
*
|
76 |
*
|
| 77 |
*/
|
77 |
*/
|
| Line 78... |
Line 78... |
| 78 |
|
78 |
|
| 79 |
private ListeReferentielNomAsynchroneDAO nomDAO=null;
|
79 |
private ListeReferentielNomAsynchroneDAO nomDAO=null;
|
| 80 |
private ListeReferentielCommuneAsynchroneDAO refDAO=null;
|
80 |
private ListeReferentielLocaliteAsynchroneDAO refDAO=null;
|
| Line 81... |
Line 81... |
| 81 |
private ListeReferentielPersoAsynchroneDAO refPersoDAO=null;
|
81 |
private ListeReferentielPersoAsynchroneDAO refPersoDAO=null;
|
| 82 |
|
82 |
|
| 83 |
/**
|
83 |
/**
|
| Line 167... |
Line 167... |
| 167 |
loaDAO.obtenirListeObservation(r, Utilisateur.getInstance().getIdentifiantUtilisateurConsulte(), criteres2);
|
167 |
loaDAO.obtenirListeObservation(r, Utilisateur.getInstance().getIdentifiantUtilisateurConsulte(), criteres2);
|
| 168 |
}
|
168 |
}
|
| Line 169... |
Line 169... |
| 169 |
|
169 |
|
| 170 |
|
170 |
|
| 171 |
/**
|
171 |
/**
|
| 172 |
* Obtenir une liste de commune
|
172 |
* Obtenir une liste de localites
|
| 173 |
* @param r
|
173 |
* @param r
|
| Line 174... |
Line 174... |
| 174 |
* @param critere
|
174 |
* @param critere
|
| Line 175... |
Line 175... |
| 175 |
*/
|
175 |
*/
|
| 176 |
|
176 |
|
| 177 |
public void obtenirListeReferentielCommune(Rafraichissable r, String critere) {
|
177 |
public void obtenirListeReferentielLocalite(Rafraichissable r, String critere) {
|
| 178 |
|
178 |
|
| Line 179... |
Line 179... |
| 179 |
if (refDAO==null) {
|
179 |
if (refDAO==null) {
|
| Line 180... |
Line 180... |
| 180 |
refDAO=new ListeReferentielCommuneAsynchroneDAO(this);
|
180 |
refDAO=new ListeReferentielLocaliteAsynchroneDAO(this);
|
| 181 |
}
|
181 |
}
|
| 182 |
refDAO.obtenirListeDonnees(r, critere);
|
182 |
refDAO.obtenirListeDonnees(r, critere);
|
| 183 |
|
183 |
|
| 184 |
}
|
184 |
}
|
| 185 |
|
185 |
|
| Line 687... |
Line 687... |
| 687 |
|
687 |
|
| 688 |
public String getIdPourOrdreObs(String ordreObs) {
|
688 |
public String getIdPourOrdreObs(String ordreObs) {
|
| 689 |
return (cacheObservation.get(ordreObs) != null) ? cacheObservation.get(ordreObs).getId() : null;
|
689 |
return (cacheObservation.get(ordreObs) != null) ? cacheObservation.get(ordreObs).getId() : null;
|
| Line 690... |
Line 690... |
| 690 |
}
|
690 |
}
|
| 691 |
|
691 |
|
| 692 |
public void obtenirInformationCommune(Rafraichissable r, String nomCommune, String codePostal) {
|
692 |
public void obtenirInformationLocalite(Rafraichissable r, String nomLocalite, String code) {
|
| 693 |
InformationCommuneDAO infocommune = new InformationCommuneDAO(r);
|
693 |
InformationLocaliteDAO infoLocalite = new InformationLocaliteDAO(r);
|
| Line 694... |
Line 694... |
| 694 |
infocommune.obtenirInfosCommune(r, nomCommune, codePostal);
|
694 |
infoLocalite.obtenirInfosLocalite(r, nomLocalite, code);
|
| 695 |
}
|
695 |
}
|
| 696 |
|
696 |
|
| 697 |
public void obtenirInformationCoord(Rafraichissable r, double lat, double lng) {
|
697 |
public void obtenirInformationCoord(Rafraichissable r, double lat, double lng) {
|
| 698 |
InformationCommuneDAO infocommune = new InformationCommuneDAO(r);
|
698 |
InformationLocaliteDAO infoLocalite = new InformationLocaliteDAO(r);
|