| Line 11... |
Line 11... |
| 11 |
import org.tela_botanica.client.modeles.ImageAsynchroneDAO;
|
11 |
import org.tela_botanica.client.modeles.ImageAsynchroneDAO;
|
| 12 |
import org.tela_botanica.client.modeles.ImageCarnet;
|
12 |
import org.tela_botanica.client.modeles.ImageCarnet;
|
| 13 |
import org.tela_botanica.client.modeles.ImageGeneriqueVueAsynchroneDAO;
|
13 |
import org.tela_botanica.client.modeles.ImageGeneriqueVueAsynchroneDAO;
|
| 14 |
import org.tela_botanica.client.modeles.ImageInformationRepartitionAsynchroneDAO;
|
14 |
import org.tela_botanica.client.modeles.ImageInformationRepartitionAsynchroneDAO;
|
| 15 |
import org.tela_botanica.client.modeles.ImportObservationAsynchroneDAO;
|
15 |
import org.tela_botanica.client.modeles.ImportObservationAsynchroneDAO;
|
| - |
|
16 |
import org.tela_botanica.client.modeles.InformationCommuneDAO;
|
| 16 |
import org.tela_botanica.client.modeles.LienImageAsynchroneDAO;
|
17 |
import org.tela_botanica.client.modeles.LienImageAsynchroneDAO;
|
| 17 |
import org.tela_botanica.client.modeles.ListeDateObservationAsynchroneDAO;
|
18 |
import org.tela_botanica.client.modeles.ListeDateObservationAsynchroneDAO;
|
| 18 |
import org.tela_botanica.client.modeles.ListeEntiteGeographiqueObservationAsynchroneDAO;
|
19 |
import org.tela_botanica.client.modeles.ListeEntiteGeographiqueObservationAsynchroneDAO;
|
| 19 |
import org.tela_botanica.client.modeles.ListeObservation;
|
20 |
import org.tela_botanica.client.modeles.ListeObservation;
|
| 20 |
import org.tela_botanica.client.modeles.ListeObservationAsynchroneDAO;
|
21 |
import org.tela_botanica.client.modeles.ListeObservationAsynchroneDAO;
|
| Line 29... |
Line 30... |
| 29 |
import org.tela_botanica.client.modeles.TransmissionObservationAsynchroneDAO;
|
30 |
import org.tela_botanica.client.modeles.TransmissionObservationAsynchroneDAO;
|
| 30 |
import org.tela_botanica.client.vues.observation.ListeObservationVue;
|
31 |
import org.tela_botanica.client.vues.observation.ListeObservationVue;
|
| Line 31... |
Line 32... |
| 31 |
|
32 |
|
| 32 |
import com.google.gwt.json.client.JSONArray;
|
33 |
import com.google.gwt.json.client.JSONArray;
|
| - |
|
34 |
import com.google.gwt.json.client.JSONObject;
|
| 33 |
import com.google.gwt.json.client.JSONObject;
|
35 |
import com.google.gwt.maps.client.geom.LatLng;
|
| 34 |
import com.gwtext.client.data.Node;
|
36 |
import com.gwtext.client.data.Node;
|
| - |
|
37 |
import com.gwtext.client.data.Tree;
|
| 35 |
import com.gwtext.client.data.Tree;
|
38 |
import com.gwtext.client.widgets.map.LatLonPoint;
|
| Line 36... |
Line 39... |
| 36 |
import com.gwtext.client.widgets.tree.TreeNode;
|
39 |
import com.gwtext.client.widgets.tree.TreeNode;
|
| Line 113... |
Line 116... |
| 113 |
config = new Configuration();
|
116 |
config = new Configuration();
|
| Line 114... |
Line 117... |
| 114 |
|
117 |
|
| Line 115... |
Line -... |
| 115 |
|
- |
|
| 116 |
}
|
- |
|
| 117 |
|
118 |
|
| 118 |
|
119 |
}
|
| 119 |
|
120 |
|
| 120 |
/**
|
121 |
/**
|
| 121 |
* Appelle le DAO asynchrone pour obtenir le nombre d'observation
|
122 |
* Appelle le DAO asynchrone pour obtenir le nombre d'observation
|
| Line 149... |
Line 150... |
| 149 |
*/
|
150 |
*/
|
| 150 |
public void obtenirListeObservation(Rafraichissable r, int taillePage, int pageEncours) {
|
151 |
public void obtenirListeObservation(Rafraichissable r, int taillePage, int pageEncours) {
|
| Line 151... |
Line 152... |
| 151 |
|
152 |
|
| 152 |
|
153 |
|
| 153 |
String[][] criteres = {{"",""}} ;
|
154 |
String[][] criteres = {{"",""}} ;
|
| Line 154... |
Line 155... |
| 154 |
criteres = observationMediateur.renvoyerFiltres() ;
|
155 |
criteres = observationMediateur.renvoyerFiltres() ;
|
| 155 |
// on rassemble les critères
|
156 |
// on rassemble les critères
|
| Line 333... |
Line 334... |
| 333 |
public void exporterObservations() {
|
334 |
public void exporterObservations() {
|
| Line 334... |
Line 335... |
| 334 |
|
335 |
|
| 335 |
String[][] criteres = {{"",""}} ;
|
336 |
String[][] criteres = {{"",""}} ;
|
| 336 |
criteres = observationMediateur.renvoyerFiltres() ;
|
337 |
criteres = observationMediateur.renvoyerFiltres() ;
|
| 337 |
// on rassemble les critères
|
- |
|
| 338 |
|
- |
|
| 339 |
|
338 |
// on rassemble les critères
|
| 340 |
// on les crée un DAO auquel on les transmet et qui demande le nombre d'images correspondantes (pour les pages)
|
- |
|
| 341 |
|
339 |
// on les crée un DAO auquel on les transmet et qui demande le nombre d'images correspondantes (pour les pages)
|
| 342 |
ExportObservationsDAO exoDAO = new ExportObservationsDAO(this) ;
|
340 |
ExportObservationsDAO exoDAO = new ExportObservationsDAO(this) ;
|
| Line 343... |
Line -... |
| 343 |
exoDAO.exporterObservations(observationMediateur.getIdentifiant(), criteres) ;
|
- |
|
| 344 |
|
341 |
exoDAO.exporterObservations(observationMediateur.getIdentifiant(), criteres) ;
|
| Line 345... |
Line 342... |
| 345 |
|
342 |
|
| Line 352... |
Line 349... |
| 352 |
LienImageAsynchroneDAO lienDAO = new LienImageAsynchroneDAO(this) ;
|
349 |
LienImageAsynchroneDAO lienDAO = new LienImageAsynchroneDAO(this) ;
|
| 353 |
lienDAO.supprimerLienImageObservation(idImg, idObs) ;
|
350 |
lienDAO.supprimerLienImageObservation(idImg, idObs) ;
|
| Line 354... |
Line 351... |
| 354 |
|
351 |
|
| Line 355... |
Line -... |
| 355 |
}
|
- |
|
| 356 |
|
- |
|
| 357 |
|
352 |
}
|
| Line 358... |
Line 353... |
| 358 |
|
353 |
|
| 359 |
public String getIdentifiant() {
|
354 |
public String getIdentifiant() {
|
| Line 360... |
Line -... |
| 360 |
|
- |
|
| 361 |
return observationMediateur.getIdentifiant() ;
|
- |
|
| 362 |
}
|
355 |
|
| 363 |
|
356 |
return observationMediateur.getIdentifiant() ;
|
| 364 |
|
357 |
}
|
| 365 |
|
358 |
|
| Line 366... |
Line 359... |
| 366 |
public void supprimerListeObservation(Rafraichissable r,
|
359 |
public void supprimerListeObservation(Rafraichissable r,
|
| Line 367... |
Line -... |
| 367 |
String numObs) {
|
- |
|
| 368 |
ListeObservationAsynchroneDAO lioaDAO = new ListeObservationAsynchroneDAO(this);
|
- |
|
| 369 |
lioaDAO.supprimerListeObservation(r, observationMediateur.getIdentifiant(), numObs);
|
360 |
String numObs) {
|
| 370 |
|
361 |
ListeObservationAsynchroneDAO lioaDAO = new ListeObservationAsynchroneDAO(this);
|
| 371 |
}
|
362 |
lioaDAO.supprimerListeObservation(r, observationMediateur.getIdentifiant(), numObs);
|
| 372 |
|
363 |
|
| Line 373... |
Line 364... |
| 373 |
|
364 |
}
|
| Line 374... |
Line -... |
| 374 |
|
- |
|
| 375 |
public void transmettreListeObservation(
|
- |
|
| 376 |
Rafraichissable r, String numObsapl, boolean publier) {
|
365 |
|
| Line 377... |
Line 366... |
| 377 |
TransmissionObservationAsynchroneDAO toaDAO = new TransmissionObservationAsynchroneDAO(this);
|
366 |
public void transmettreListeObservation(
|
| 378 |
toaDAO.transmettreObservations(r, observationMediateur.getIdentifiant(), numObsapl, publier);
|
367 |
Rafraichissable r, String numObsapl, boolean publier) {
|
| Line 689... |
Line 678... |
| 689 |
|
678 |
|
| 690 |
public ListeObservation getCacheObservation() {
|
679 |
public ListeObservation getCacheObservation() {
|
| 691 |
return cacheObservation ;
|
680 |
return cacheObservation ;
|
| Line -... |
Line 681... |
| - |
|
681 |
}
|
| - |
|
682 |
|
| - |
|
683 |
public void obtenirInformationCommune(Rafraichissable r, String nomCommune, String codePostal) {
|
| - |
|
684 |
InformationCommuneDAO infocommune = new InformationCommuneDAO(r);
|
| - |
|
685 |
infocommune.obtenirInfosCommune(r, nomCommune, codePostal);
|
| - |
|
686 |
}
|
| - |
|
687 |
|
| - |
|
688 |
public void obtenirInformationCoord(Rafraichissable r, LatLng coord) {
|
| - |
|
689 |
InformationCommuneDAO infocommune = new InformationCommuneDAO(r);
|
| - |
|
690 |
infocommune.obtenirCommunePlusProche(r, coord.getLongitude(), coord.getLatitude());
|
| Line 692... |
Line 691... |
| 692 |
}
|
691 |
}
|