| Line 1... |
Line 1... |
| 1 |
package org.tela_botanica.client.observation;
|
1 |
package org.tela_botanica.client.observation;
|
| Line 2... |
Line -... |
| 2 |
|
- |
|
| 3 |
|
- |
|
| 4 |
|
- |
|
| 5 |
// TODO : systematiser les onQuelquechose, appelle depuis les vues
|
- |
|
| 6 |
import java.util.Map;
|
2 |
|
| 7 |
|
- |
|
| 8 |
import org.tela_botanica.client.CarnetEnLigneMediateur;
|
3 |
|
| 9 |
import org.tela_botanica.client.cel2;
|
4 |
import org.tela_botanica.client.CarnetEnLigneMediateur;
|
| 10 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
5 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 11 |
import org.tela_botanica.client.modeles.dao.InformationLocaliteDAO;
|
6 |
import org.tela_botanica.client.modeles.dao.InformationLocaliteDAO;
|
| 12 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
7 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
| 13 |
import org.tela_botanica.client.modeles.objets.EntiteGeographiqueObservation;
|
8 |
import org.tela_botanica.client.modeles.objets.EntiteGeographiqueObservation;
|
| 14 |
import org.tela_botanica.client.modeles.objets.InfosReferentielNom;
|
9 |
import org.tela_botanica.client.modeles.objets.InfosReferentielNom;
|
| 15 |
import org.tela_botanica.client.modeles.objets.ListeObservation;
|
10 |
import org.tela_botanica.client.modeles.objets.ListeObservation;
|
| 16 |
import org.tela_botanica.client.modeles.objets.Observation;
|
- |
|
| 17 |
import org.tela_botanica.client.modeles.objets.Utilisateur;
|
- |
|
| 18 |
import org.tela_botanica.client.modeles.objets.ListeReferentielPerso.TypesReferentiels;
|
11 |
import org.tela_botanica.client.modeles.objets.Observation;
|
| 19 |
import org.tela_botanica.client.util.Util;
|
12 |
import org.tela_botanica.client.modeles.objets.Utilisateur;
|
| 20 |
import org.tela_botanica.client.vues.observation.CartographieObservationVue;
|
13 |
import org.tela_botanica.client.vues.observation.CartographieObservationVue;
|
| 21 |
import org.tela_botanica.client.vues.observation.FormulaireImportObservationVue;
|
14 |
import org.tela_botanica.client.vues.observation.FormulaireImportObservationVue;
|
| 22 |
import org.tela_botanica.client.vues.observation.FormulaireSaisieObservationVue;
|
15 |
import org.tela_botanica.client.vues.observation.FormulaireSaisieObservationVue;
|
| Line 29... |
Line 22... |
| 29 |
import org.tela_botanica.client.vues.observation.indicateurs.MiniZoomImageVue;
|
22 |
import org.tela_botanica.client.vues.observation.indicateurs.MiniZoomImageVue;
|
| Line 30... |
Line 23... |
| 30 |
|
23 |
|
| 31 |
import com.google.gwt.core.client.GWT;
|
24 |
import com.google.gwt.core.client.GWT;
|
| 32 |
import com.google.gwt.user.client.History;
|
25 |
import com.google.gwt.user.client.History;
|
| 33 |
import com.google.gwt.user.client.Window;
|
- |
|
| 34 |
import com.google.maps.gwt.client.LatLng;
|
26 |
import com.google.gwt.user.client.Window;
|
| 35 |
import com.gwtext.client.core.EventObject;
|
27 |
import com.gwtext.client.core.EventObject;
|
| 36 |
import com.gwtext.client.core.Ext;
|
28 |
import com.gwtext.client.core.Ext;
|
| 37 |
import com.gwtext.client.core.ExtElement;
|
29 |
import com.gwtext.client.core.ExtElement;
|
| 38 |
import com.gwtext.client.core.RegionPosition;
|
30 |
import com.gwtext.client.core.RegionPosition;
|
| Line 49... |
Line 41... |
| 49 |
import com.gwtext.client.widgets.layout.BorderLayout;
|
41 |
import com.gwtext.client.widgets.layout.BorderLayout;
|
| 50 |
import com.gwtext.client.widgets.layout.BorderLayoutData;
|
42 |
import com.gwtext.client.widgets.layout.BorderLayoutData;
|
| 51 |
import com.gwtext.client.widgets.layout.FitLayout;
|
43 |
import com.gwtext.client.widgets.layout.FitLayout;
|
| 52 |
import com.gwtext.client.widgets.layout.RowLayout;
|
44 |
import com.gwtext.client.widgets.layout.RowLayout;
|
| 53 |
import com.gwtext.client.widgets.layout.RowLayoutData;
|
45 |
import com.gwtext.client.widgets.layout.RowLayoutData;
|
| 54 |
import com.gwtext.client.widgets.map.LatLonPoint;
|
- |
|
| 55 |
import com.gwtext.client.widgets.tree.TreeNode;
|
46 |
import com.gwtext.client.widgets.tree.TreeNode;
|
| Line 56... |
Line 47... |
| 56 |
|
47 |
|
| 57 |
|
48 |
|
| Line 98... |
Line 89... |
| 98 |
public ListeObservationVue listeObservation = null ;
|
89 |
public ListeObservationVue listeObservation = null ;
|
| Line 99... |
Line 90... |
| 99 |
|
90 |
|
| 100 |
/**
|
91 |
/**
|
| 101 |
* Saisie des Observations
|
92 |
* Saisie des Observations
|
| 102 |
*/
|
- |
|
| 103 |
|
93 |
*/
|
| Line 104... |
Line 94... |
| 104 |
private FormulaireSaisieObservationVue formulaireSaisieObservationVue=null;
|
94 |
private FormulaireSaisieObservationVue formulaireSaisieObservationVue=null;
|
| 105 |
|
95 |
|
| 106 |
|
96 |
|
| 107 |
/**
|
97 |
/**
|
| 108 |
*
|
98 |
*
|
| 109 |
* Import des observations depuis un fichier
|
- |
|
| 110 |
*
|
99 |
* Import des observations depuis un fichier
|
| Line 111... |
Line 100... |
| 111 |
*/
|
100 |
*
|
| 112 |
|
101 |
*/
|
| Line 464... |
Line 453... |
| 464 |
}
|
453 |
}
|
| 465 |
formulaireSaisieObservationVue.rafraichir(listeObs, false);
|
454 |
formulaireSaisieObservationVue.rafraichir(listeObs, false);
|
| 466 |
}
|
455 |
}
|
| 467 |
}
|
456 |
}
|
| Line 468... |
Line 457... |
| 468 |
|
457 |
|
| 469 |
public void obtenirImageInformationExternes(String referentielTaxo, String numeroNomenclaturalSaisiObservation) {
|
- |
|
| 470 |
|
458 |
public void obtenirImageInformationExternes(String referentielTaxo, String numeroNomenclaturalSaisiObservation) {
|
| 471 |
if(details.isVisible()) {
|
459 |
if(details.isVisible()) {
|
| 472 |
if(GWT.isScript()) {
|
460 |
if(GWT.isScript()) {
|
| 473 |
masquerChargementInfosObservations() ;
|
461 |
masquerChargementInfosObservations() ;
|
| 474 |
}
|
462 |
}
|
| - |
|
463 |
String[] infosRefNom = {numeroNomenclaturalSaisiObservation, referentielTaxo};
|
| 475 |
liExtVue.rafraichir(numeroNomenclaturalSaisiObservation, false);
|
464 |
liExtVue.rafraichir(infosRefNom, false);
|
| 476 |
observationModele.obtenirImageInformationRepartition(informationRepartitionVue, referentielTaxo, numeroNomenclaturalSaisiObservation) ;
|
465 |
observationModele.obtenirImageInformationRepartition(informationRepartitionVue, referentielTaxo, numeroNomenclaturalSaisiObservation) ;
|
| 477 |
observationModele.obtenirImageGenerique(imageGeneriqueVue, referentielTaxo, numeroNomenclaturalSaisiObservation) ;
|
466 |
observationModele.obtenirImageGenerique(imageGeneriqueVue, referentielTaxo, numeroNomenclaturalSaisiObservation) ;
|
| 478 |
}
|
467 |
}
|
| Line 609... |
Line 598... |
| 609 |
|
598 |
|
| 610 |
public boolean listeAvoirObservations() {
|
599 |
public boolean listeAvoirObservations() {
|
| 611 |
return listeObservation.getStore().getCount() > 0;
|
600 |
return listeObservation.getStore().getCount() > 0;
|
| Line 612... |
Line -... |
| 612 |
}
|
- |
|
| 613 |
|
- |
|
| 614 |
// Assistants de saisie
|
- |
|
| 615 |
/**
|
- |
|
| 616 |
*
|
- |
|
| 617 |
* Lance un appel de recherche d'une liste de localite correspondant aux criteres de selection
|
- |
|
| 618 |
* @param r : la vue demandeuse de donnee
|
- |
|
| 619 |
* @param critere : les criteres de selection
|
- |
|
| 620 |
*/
|
- |
|
| 621 |
|
- |
|
| 622 |
public void obtenirListeReferentielLocalite(Rafraichissable r, String critere) {
|
- |
|
| 623 |
|
- |
|
| 624 |
observationModele.obtenirListeReferentielLocalite(r,critere) ;
|
- |
|
| 625 |
}
|
- |
|
| 626 |
|
- |
|
| 627 |
// Assistants de saisie
|
- |
|
| 628 |
/**
|
- |
|
| 629 |
*
|
- |
|
| 630 |
* Lance un appel de recherche d'une liste de résultats
|
- |
|
| 631 |
* correspondant aux criteres de selections pour un référentiel donné
|
- |
|
| 632 |
* @param r : la vue demandeuse de donnee
|
- |
|
| 633 |
* @param referentiel : le référentiel demandé
|
- |
|
| 634 |
* @param critere : les criteres de selection
|
- |
|
| 635 |
*/
|
- |
|
| 636 |
public void obtenirListeReferentielPerso(Rafraichissable r, TypesReferentiels referentiel, String critere) {
|
- |
|
| 637 |
observationModele.obtenirListeReferentielPerso(r, referentiel, critere) ;
|
- |
|
| 638 |
}
|
- |
|
| 639 |
|
- |
|
| 640 |
/**
|
- |
|
| 641 |
*
|
- |
|
| 642 |
* Lance un appel de recherche d'une liste de nom scientifique correspondant aux criteres de selectionne
|
- |
|
| 643 |
* @param r : la vue demandeuse de donnee
|
- |
|
| 644 |
* @param critere : les criteres de selection
|
- |
|
| 645 |
*/
|
- |
|
| 646 |
|
- |
|
| 647 |
public void obtenirListeReferentielNom(Rafraichissable r,String referentiel, String critere) {
|
- |
|
| 648 |
|
- |
|
| 649 |
observationModele.obtenirListeReferentielNom(r, referentiel, critere) ;
|
- |
|
| 650 |
}
|
601 |
}
|
| 651 |
|
- |
|
| 652 |
// Etat du syteme
|
602 |
|
| 653 |
|
603 |
// Etat du syteme
|
| 654 |
/**
|
604 |
/**
|
| 655 |
* C'est dans cette fonction que doivent être renvoyé les valeurs des filtres
|
605 |
* C'est dans cette fonction que doivent être renvoyé les valeurs des filtres
|
| 656 |
* sous forme de tableau [nom, valeur]
|
606 |
* sous forme de tableau [nom, valeur]
|