Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2567 → Rev 2568

/trunk/src/org/tela_botanica/client/observation/ObservationModele.java
9,13 → 9,13
import org.tela_botanica.client.modeles.dao.ImageGeneriqueVueAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.ImageInformationRepartitionAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.ImportObservationAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.InformationCommuneDAO;
import org.tela_botanica.client.modeles.dao.InformationLocaliteDAO;
import org.tela_botanica.client.modeles.dao.LiaisonMotsClesObsAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.LienImageAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.ListeDateObservationAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.ListeEntiteGeographiqueObservationAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.ListeObservationAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.ListeReferentielCommuneAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.ListeReferentielLocaliteAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.ListeReferentielNomAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.ListeReferentielPersoAsynchroneDAO;
import org.tela_botanica.client.modeles.dao.MotsClesAsynchroneDAO;
77,7 → 77,7
*/
private ListeReferentielNomAsynchroneDAO nomDAO=null;
private ListeReferentielCommuneAsynchroneDAO refDAO=null;
private ListeReferentielLocaliteAsynchroneDAO refDAO=null;
private ListeReferentielPersoAsynchroneDAO refPersoDAO=null;
 
/**
169,15 → 169,15
 
/**
* Obtenir une liste de commune
* Obtenir une liste de localites
* @param r
* @param critere
*/
public void obtenirListeReferentielCommune(Rafraichissable r, String critere) {
public void obtenirListeReferentielLocalite(Rafraichissable r, String critere) {
if (refDAO==null) {
refDAO=new ListeReferentielCommuneAsynchroneDAO(this);
refDAO=new ListeReferentielLocaliteAsynchroneDAO(this);
}
refDAO.obtenirListeDonnees(r, critere);
184,7 → 184,7
}
/**
* Obtenir une liste de commune
* Obtenir une liste de valeur vis à vis d'un champ donné pour un utilisateur
* @param r
* @param critere
*/
689,13 → 689,13
return (cacheObservation.get(ordreObs) != null) ? cacheObservation.get(ordreObs).getId() : null;
}
 
public void obtenirInformationCommune(Rafraichissable r, String nomCommune, String codePostal) {
InformationCommuneDAO infocommune = new InformationCommuneDAO(r);
infocommune.obtenirInfosCommune(r, nomCommune, codePostal);
public void obtenirInformationLocalite(Rafraichissable r, String nomLocalite, String code) {
InformationLocaliteDAO infoLocalite = new InformationLocaliteDAO(r);
infoLocalite.obtenirInfosLocalite(r, nomLocalite, code);
}
public void obtenirInformationCoord(Rafraichissable r, double lat, double lng) {
InformationCommuneDAO infocommune = new InformationCommuneDAO(r);
infocommune.obtenirCommunePlusProche(r, lng, lat);
InformationLocaliteDAO infoLocalite = new InformationLocaliteDAO(r);
infoLocalite.obtenirLocalitePlusProche(r, lng, lat);
}
}