Subversion Repositories eFlore/Applications.cel

Rev

Rev 318 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 318 Rev 357
Line 15... Line 15...
15
import org.tela_botanica.client.modeles.Observation;
15
import org.tela_botanica.client.modeles.Observation;
16
import org.tela_botanica.client.modeles.ReferentielCommune;
16
import org.tela_botanica.client.modeles.ReferentielCommune;
17
import org.tela_botanica.client.modeles.ReferentielNom;
17
import org.tela_botanica.client.modeles.ReferentielNom;
18
import org.tela_botanica.client.observation.ObservationMediateur;
18
import org.tela_botanica.client.observation.ObservationMediateur;
Line -... Line 19...
-
 
19
 
19
 
20
import com.google.gwt.core.client.GWT;
20
import com.google.gwt.core.client.JavaScriptObject;
21
import com.google.gwt.core.client.JavaScriptObject;
21
import com.google.gwt.maps.client.geom.LatLng;
22
import com.google.gwt.maps.client.geom.LatLng;
22
import com.google.gwt.user.client.Timer;
23
import com.google.gwt.user.client.Timer;
23
import com.google.gwt.user.client.Window;
24
import com.google.gwt.user.client.Window;
Line 1099... Line 1100...
1099
				Observation obs = (Observation)nouvelleDonnees ;
1100
				Observation obs = (Observation)nouvelleDonnees ;
1100
				afficherDetailsObservation(obs) ;
1101
				afficherDetailsObservation(obs) ;
1101
			}
1102
			}
Line 1102... Line 1103...
1102
			
1103
			
-
 
1104
			if(nouvelleDonnees instanceof ListeObservation) {
1103
			if(nouvelleDonnees instanceof ListeObservation) {
1105
				
1104
				ListeObservation listeObs = (ListeObservation)nouvelleDonnees;
1106
				ListeObservation listeObs = (ListeObservation)nouvelleDonnees;
1105
				calculerAfficherDifferences(listeObs);
1107
				calculerAfficherDifferences(listeObs);
Line 1106... Line 1108...
1106
			}
1108
			}
Line 1186... Line 1188...
1186
		if(infosCom.getIdLocalite() != null && !infosCom.getIdLocalite().equals("")) {
1188
		if(infosCom.getIdLocalite() != null && !infosCom.getIdLocalite().equals("")) {
1187
			nCommune += " ("+infosCom.getIdLocalite()+")";
1189
			nCommune += " ("+infosCom.getIdLocalite()+")";
1188
			departement = infosCom.getIdLocalite();
1190
			departement = infosCom.getIdLocalite();
1189
		}
1191
		}
1190
		commune.setValue(nCommune);
1192
		commune.setValue(nCommune);
-
 
1193
		communeModifiee = true;
1191
	}
1194
	}
Line 1192... Line 1195...
1192
 
1195
 
Line 1193... Line 1196...
1193
	private void rafraichirCommuneEtCoord(EntiteGeographiqueObservation infosCom) {
1196
	private void rafraichirCommuneEtCoord(EntiteGeographiqueObservation infosCom) {
Line 1200... Line 1203...
1200
 
1203
 
1201
		if(infosCom.getLon() != null && !infosCom.getLon().equals("")) {
1204
		if(infosCom.getLon() != null && !infosCom.getLon().equals("")) {
1202
			longitude.setValue(infosCom.getLon());
1205
			longitude.setValue(infosCom.getLon());
Line -... Line 1206...
-
 
1206
		}
1203
		}
1207
		
Line 1204... Line -...
1204
		
-
 
1205
		coordPanel.setVisible(true);
1208
		latModifiee = true;
1206
		
1209
		longModifiee = true;
Line 1207... Line 1210...
1207
		latModifiee = false;
1210
		
Line 1208... Line 1211...
1208
		longModifiee = false;
1211
		coordPanel.setVisible(true);