Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1559 Rev 1572
Line 7... Line 7...
7
import java.util.Iterator;
7
import java.util.Iterator;
8
import java.util.Map;
8
import java.util.Map;
Line 9... Line 9...
9
 
9
 
10
import org.tela_botanica.client.CarnetEnLigneMediateur;
10
import org.tela_botanica.client.CarnetEnLigneMediateur;
-
 
11
import org.tela_botanica.client.interfaces.Rafraichissable;
11
import org.tela_botanica.client.interfaces.Rafraichissable;
12
import org.tela_botanica.client.modeles.objets.ChampEtendu;
12
import org.tela_botanica.client.modeles.objets.Configuration;
13
import org.tela_botanica.client.modeles.objets.Configuration;
13
import org.tela_botanica.client.modeles.objets.EntiteGeographiqueObservation;
14
import org.tela_botanica.client.modeles.objets.EntiteGeographiqueObservation;
14
import org.tela_botanica.client.modeles.objets.ListeObservation;
15
import org.tela_botanica.client.modeles.objets.ListeObservation;
15
import org.tela_botanica.client.modeles.objets.ListeReferentielCommune;
16
import org.tela_botanica.client.modeles.objets.ListeReferentielCommune;
Line 98... Line 99...
98
	private String referentielGeo = null;
99
	private String referentielGeo = null;
Line 99... Line 100...
99
 
100
 
Line 100... Line 101...
100
	// Pour remise a zero partielle lors d'une validation
101
	// Pour remise a zero partielle lors d'une validation
101
	
102
	
Line 102... Line 103...
102
	private  enum Champs {
103
	private  enum Champs {
103
	    DATE, LIEUDIT, STATION, MILIEU, COMMENT, COMMUNE, ESPECE, TOUT, LATITUDE, LONGITUDE, ABONDANCE, CERTITUDE, REFERENTIELTAXO, PHENOLOGIE;
104
	    DATE, LIEUDIT, STATION, MILIEU, COMMENT, COMMUNE, ESPECE, TOUT, LATITUDE, LONGITUDE, ALTITUDE, ABONDANCE, CERTITUDE, REFERENTIELTAXO, PHENOLOGIE;
Line 104... Line 105...
104
	    
105
	    
Line 131... Line 132...
131
	    		return "latitude";
132
	    		return "latitude";
Line 132... Line 133...
132
	    		
133
	    		
133
	    	case LONGITUDE:
134
	    	case LONGITUDE:
Line -... Line 135...
-
 
135
	    		return "longitude";
-
 
136
	    		
-
 
137
	    	case ALTITUDE:
134
	    		return "longitude";
138
	    		return "altitude";
135
	    		
139
	    		
Line 136... Line 140...
136
	    	case ABONDANCE:
140
	    	case ABONDANCE:
137
	    		return "abondance";
141
	    		return "abondance";
Line 144... Line 148...
144
	    	
148
	    	
145
	    	case PHENOLOGIE:
149
	    	case PHENOLOGIE:
Line 146... Line 150...
146
	    		return "phenologie";
150
	    		return "phenologie";
147
	    		
151
	    		
148
	    	case TOUT:
152
	    	case TOUT:
149
	    		return "date, commune, lieu dit, station, milieu, espèce, commentaire, latitude, longitude, abondance, identification, referentiel, phenologie";
153
	    		return "date, commune, lieu dit, station, milieu, espèce, commentaire, latitude, longitude, altitude, abondance, identification, referentiel, phenologie";
150
	    	}
154
	    	}
151
			return TOUT.toString();
155
			return TOUT.toString();
Line 164... Line 168...
164
	
168
	
165
	private boolean modification = false ;
169
	private boolean modification = false ;
Line 166... Line 170...
166
	private Toolbar bt = null ;
170
	private Toolbar bt = null ;
167
	
171
	
168
	private final String VALEURS_MULTIPLES = "(Valeurs multiples)";
172
	private final String VALEURS_MULTIPLES = "(Valeurs multiples)";
169
	private final String modeleMessageModif = "commune:lieu-dit:station:milieu:latitude:longitude:date:espece:commentaire:abondance:identification:referentiel:phenologie";
173
	private final String modeleMessageModif = "commune:lieu-dit:station:milieu:latitude:longitude:altitude:date:espece:commentaire:abondance:identification:referentiel:phenologie";
170
	private boolean communeModifiee = false;
174
	private boolean communeModifiee = false;
171
	private boolean lieuDitModifie = false;
175
	private boolean lieuDitModifie = false;
172
	private boolean stationModifiee = false;
176
	private boolean stationModifiee = false;
Line 220... Line 224...
220
 
224
 
Line 221... Line 225...
221
	private TextField longitude;
225
	private TextField longitude;
Line -... Line 226...
-
 
226
 
-
 
227
	private TextField latitude;
222
 
228
	
Line 223... Line 229...
223
	private TextField latitude;
229
	private TextField altitude;
Line 224... Line 230...
224
	
230
	
Line 237... Line 243...
237
	private boolean longlatAjoutee;
243
	private boolean longlatAjoutee;
Line 238... Line 244...
238
 
244
 
Line 239... Line 245...
239
	private boolean latModifiee;
245
	private boolean latModifiee;
-
 
246
 
-
 
247
	private boolean longModifiee;
Line 240... Line 248...
240
 
248
	
Line 241... Line 249...
241
	private boolean longModifiee;
249
	private boolean altModifiee;
Line 355... Line 363...
355
		latitude.setAllowBlank(true);
363
		latitude.setAllowBlank(true);
Line 356... Line 364...
356
	    
364
	    
357
	    longitude = new TextField("Lon", "lon");
365
	    longitude = new TextField("Lon", "lon");
358
	    longitude.setGrowMax(70);
366
	    longitude.setGrowMax(70);
-
 
367
		longitude.setAllowBlank(true);
-
 
368
		
-
 
369
		altitude = new TextField("Alt (mètres)", "alt");
-
 
370
		altitude.setGrowMax(70);
Line 359... Line 371...
359
		longitude.setAllowBlank(true);
371
		altitude.setAllowBlank(true);
Line 360... Line 372...
360
				
372
				
Line 377... Line 389...
377
		coordPanel.addToRow(longitude, new ColumnLayoutData(largeur));  
389
		coordPanel.addToRow(longitude, new ColumnLayoutData(largeur));  
378
		coordPanel.addToRow(lienSelectionCommune, new ColumnLayoutData(largeur)); 
390
		coordPanel.addToRow(lienSelectionCommune, new ColumnLayoutData(largeur)); 
379
		lienSelectionCommune.addClass("lien_decale");
391
		lienSelectionCommune.addClass("lien_decale");
380
		coordPanel.setBorder(false);
392
		coordPanel.setBorder(false);
Line -... Line 393...
-
 
393
		
-
 
394
		coordPanel.addToRow(altitude, new ColumnLayoutData(largeur));
381
		
395
		
382
		  //création du champs coordonnées	
396
		  //création du champs coordonnées	
Line 383... Line 397...
383
		referentielGeo = Configuration.getReferentielGeo();
397
		referentielGeo = Configuration.getReferentielGeo();
384
		
398
		
Line 710... Line 724...
710
		ajouterListenerChampEvenementsClavier(selecteurReferentielTaxo);
724
		ajouterListenerChampEvenementsClavier(selecteurReferentielTaxo);
711
		ajouterListenerChampEvenementsClavier(espece, listenerConfigEspece);
725
		ajouterListenerChampEvenementsClavier(espece, listenerConfigEspece);
712
		ajouterListenerChampEvenementsClavier(comment);
726
		ajouterListenerChampEvenementsClavier(comment);
713
		ajouterListenerChampEvenementsClavier(latitude);
727
		ajouterListenerChampEvenementsClavier(latitude);
714
		ajouterListenerChampEvenementsClavier(longitude);
728
		ajouterListenerChampEvenementsClavier(longitude);
-
 
729
		ajouterListenerChampEvenementsClavier(altitude);
715
		ajouterListenerChampEvenementsClavier(selecteurAbondance);			
730
		ajouterListenerChampEvenementsClavier(selecteurAbondance);			
716
		ajouterListenerChampEvenementsClavier(selecteurCertitude);			
731
		ajouterListenerChampEvenementsClavier(selecteurCertitude);			
717
		ajouterListenerChampEvenementsClavier(selecteurStadePheno);
732
		ajouterListenerChampEvenementsClavier(selecteurStadePheno);
718
		ajouterListenerChampsCombobox();
733
		ajouterListenerChampsCombobox();
Line 895... Line 910...
895
		
910
		
896
		if(champ.equals(latitude)) {  	    	    	  
911
		if(champ.equals(latitude)) {  	    	    	  
897
	    	validerSaisie(Champs.LATITUDE); 
912
	    	validerSaisie(Champs.LATITUDE); 
Line -... Line 913...
-
 
913
		}
-
 
914
		
-
 
915
		if(champ.equals(altitude)) {  	    	    	  
-
 
916
	    	validerSaisie(Champs.ALTITUDE); 
898
		}
917
		}
899
		
918
		
900
		if(champ.equals(espece)) {
919
		if(champ.equals(espece)) {
901
			if(selectionEspece) {
920
			if(selectionEspece) {
902
	    		especeModifiee = true;
921
	    		especeModifiee = true;
Line 961... Line 980...
961
			latModifiee = true;
980
			latModifiee = true;
962
	      	tCoord.cancel();
981
	      	tCoord.cancel();
963
	      	tCoord.schedule(250);
982
	      	tCoord.schedule(250);
964
		}
983
		}
Line -... Line 984...
-
 
984
		
-
 
985
		if(champ.equals(altitude)) {  	    	    	  
-
 
986
			altModifiee = true;  	
-
 
987
		}
965
		
988
		
966
		if(champ.equals(comment)) {
989
		if(champ.equals(comment)) {
967
			commModifie = true;
990
			commModifie = true;
Line 968... Line 991...
968
		}
991
		}
Line 1302... Line 1325...
1302
		Observation obs=new Observation(espece.getText(),numeroNom,commune.getText(),departement,lieudit.getText(),station.getText(),milieu.getText(), comment.getText(),dateObs);	
1325
		Observation obs=new Observation(espece.getText(),numeroNom,commune.getText(),departement,lieudit.getText(),station.getText(),milieu.getText(), comment.getText(),dateObs);	
Line 1303... Line 1326...
1303
		
1326
		
1304
		String[] coords = getValeurCoordonnees();
1327
		String[] coords = getValeurCoordonnees();
1305
		obs.setLatitude(coords[0]);
1328
		obs.setLatitude(coords[0]);
-
 
1329
		obs.setLongitude(coords[1]);
Line 1306... Line 1330...
1306
		obs.setLongitude(coords[1]);
1330
		obs.setAltitude(altitude.getText());
1307
 
1331
 
1308
		obs.setAbondance(getAbondance());
1332
		obs.setAbondance(getAbondance());
Line 1353... Line 1377...
1353
		
1377
		
Line 1354... Line 1378...
1354
		String[] coords = getValeurCoordonnees();
1378
		String[] coords = getValeurCoordonnees();
1355
		
1379
		
-
 
1380
		obs.setLatitude(coords[0]);
Line 1356... Line 1381...
1356
		obs.setLatitude(coords[0]);
1381
		obs.setLongitude(coords[1]);
1357
		obs.setLongitude(coords[1]);
1382
		obs.setAltitude(altitude.getText());
1358
		
1383
		
1359
		obs.setAbondance(getAbondance());
1384
		obs.setAbondance(getAbondance());
Line 1380... Line 1405...
1380
		String dateM = null;
1405
		String dateM = null;
1381
		String especeM = null;
1406
		String especeM = null;
1382
		String commM = null; 
1407
		String commM = null; 
1383
		String latM = null;
1408
		String latM = null;
1384
		String longM = null;
1409
		String longM = null;
-
 
1410
		String altM = null;
1385
		String abondanceM = null;
1411
		String abondanceM = null;
1386
		String certitudeM = null;
1412
		String certitudeM = null;
1387
		String referentielTaxoM = null;
1413
		String referentielTaxoM = null;
1388
		String phenologieM = null;
1414
		String phenologieM = null;
Line 1462... Line 1488...
1462
			latM = latitude.getText();
1488
			latM = latitude.getText();
1463
		}else {
1489
		}else {
1464
			champs = champs.replaceAll(":latitude", "");
1490
			champs = champs.replaceAll(":latitude", "");
1465
		}
1491
		}
Line -... Line 1492...
-
 
1492
		
-
 
1493
		if(altModifiee) {
-
 
1494
			altM = altitude.getText();
-
 
1495
		}else {
-
 
1496
			champs = champs.replaceAll(":altitude", "");
-
 
1497
		}
1466
		
1498
		
1467
		if(longModifiee) {
1499
		if(longModifiee) {
1468
			longM = longitude.getText();
1500
			longM = longitude.getText();
1469
		}else {
1501
		}else {
1470
			champs = champs.replaceAll(":longitude", "");
1502
			champs = champs.replaceAll(":longitude", "");
Line 1506... Line 1538...
1506
		} else {
1538
		} else {
1507
			Observation obs = new Observation(especeM,numNomSelM,communeM,departementM,lieuDitM,stationM,milieuM, commM,dateM);
1539
			Observation obs = new Observation(especeM,numNomSelM,communeM,departementM,lieuDitM,stationM,milieuM, commM,dateM);
1508
			obs.setNumeroOrdre(numeroOrdre);
1540
			obs.setNumeroOrdre(numeroOrdre);
1509
			obs.setLatitude(latM);
1541
			obs.setLatitude(latM);
1510
			obs.setLongitude(longM);
1542
			obs.setLongitude(longM);
-
 
1543
			obs.setAltitude(altM);
1511
			obs.setAbondance(abondanceM);
1544
			obs.setAbondance(abondanceM);
1512
			obs.setCertitude(certitudeM);
1545
			obs.setCertitude(certitudeM);
1513
			obs.setReferentielTaxo(referentielTaxoM);
1546
			obs.setReferentielTaxo(referentielTaxoM);
1514
			obs.setPhenologie(phenologieM);
1547
			obs.setPhenologie(phenologieM);
1515
			if(Window.confirm(message)) {
1548
			if(Window.confirm(message)) {
Line 1594... Line 1627...
1594
		}
1627
		}
1595
		if(!obs.getNumeroOrdre().equals("null") && !obs.getNumeroOrdre().equals("000null")) {
1628
		if(!obs.getNumeroOrdre().equals("null") && !obs.getNumeroOrdre().equals("000null")) {
1596
			numeroOrdre = obs.getNumeroOrdre() ;
1629
			numeroOrdre = obs.getNumeroOrdre() ;
1597
		}
1630
		}
Line 1598... Line 1631...
1598
		
1631
		
1599
		if(!obs.getLatitude().equals("null") && !obs.getLatitude().equals("000null")
1632
		if(doitAfficherLatLon(obs)) {
1600
				&& !obs.getLongitude().equals("null") && !obs.getLongitude().equals("000null")) {
1633
			latitude.setValue(Util.formaterNombre(obs.getLatitude())) ;
-
 
1634
			longitude.setValue(Util.formaterNombre(obs.getLongitude())) ;
-
 
1635
		}
-
 
1636
		
1601
			latitude.setValue(obs.getLatitude()) ;
1637
		if(!obs.getAltitude().isEmpty() && !obs.getAltitude().equals("null") && !obs.getAltitude().equals("000null")) {
1602
			longitude.setValue(obs.getLongitude()) ;
1638
			altitude.setValue(Util.formaterNombre(obs.getAltitude())) ;
Line 1603... Line 1639...
1603
		}
1639
		}
1604
		
1640
		
Line 1624... Line 1660...
1624
		}
1660
		}
Line 1625... Line 1661...
1625
		
1661
		
1626
		afficherChampsEtendus(obs);
1662
		afficherChampsEtendus(obs);
Line -... Line 1663...
-
 
1663
	}
-
 
1664
	
-
 
1665
	private boolean doitAfficherLatLon(Observation obs) {
-
 
1666
		return !obs.getLatitude().isEmpty() &&
-
 
1667
				!obs.getLatitude().equals("null") && 
-
 
1668
				!obs.getLatitude().equals("000null") &&
-
 
1669
				!Util.estZero(obs.getLatitude()) && 
-
 
1670
				!obs.getLongitude().isEmpty() && 
-
 
1671
				!obs.getLongitude().equals("null") && 
-
 
1672
				!obs.getLongitude().equals("000null") &&
-
 
1673
				!Util.estZero(obs.getLongitude());
1627
	}
1674
	}
1628
	
1675
	
1629
	private void viderChampsEtendus() {
1676
	private void viderChampsEtendus() {
1630
		if(listeChampsEtendus != null) {
1677
		if(listeChampsEtendus != null) {
1631
			for (Iterator<String> it = listeChampsEtendus.keySet().iterator(); it.hasNext();) {
1678
			for (Iterator<String> it = listeChampsEtendus.keySet().iterator(); it.hasNext();) {
Line 1640... Line 1687...
1640
		viderChampsEtendus();
1687
		viderChampsEtendus();
1641
		if(obs.getChampsEtendus().size() > 0) {
1688
		if(obs.getChampsEtendus().size() > 0) {
1642
			listeChampsEtendus = new HashMap<String, TextField>(obs.getChampsEtendus().size());
1689
			listeChampsEtendus = new HashMap<String, TextField>(obs.getChampsEtendus().size());
1643
			boolean gauche = true;
1690
			boolean gauche = true;
1644
			for (Iterator<String> iterator = obs.getChampsEtendus().keySet().iterator(); iterator.hasNext();) {
1691
			for (Iterator<String> iterator = obs.getChampsEtendus().keySet().iterator(); iterator.hasNext();) {
1645
				String label = iterator.next();
1692
				String id = iterator.next();
1646
				String valeur = obs.getChampsEtendus().get(label);
1693
				ChampEtendu champ = obs.getChampsEtendus().get(id);
-
 
1694
				String valeur = champ.getValeur();
-
 
1695
				String label = champ.getLabel();
1647
				
1696
				
1648
				TextField champEtendu = new TextField();
1697
				TextField champTexteEtendu = new TextField();
1649
				champEtendu.setAutoWidth(true);
1698
				champTexteEtendu.setAutoWidth(true);
1650
				champEtendu.setLabel(formaterLabel(label));
1699
				champTexteEtendu.setLabel(formaterLabel(label));
1651
				champEtendu.setTitle(label);
1700
				champTexteEtendu.setTitle(label);
-
 
1701
				champTexteEtendu.setId(id);
1652
				champEtendu.setValue(valeur);
1702
				champTexteEtendu.setValue(valeur);
1653
				if(gauche) {
1703
				if(gauche) {
1654
					panneauPremierColonne.add(champEtendu);
1704
					panneauPremierColonne.add(champTexteEtendu);
1655
				} else {
1705
				} else {
1656
					panneauSecondeColonne.add(champEtendu);
1706
					panneauSecondeColonne.add(champTexteEtendu);
1657
				}
1707
				}
1658
				listeChampsEtendus.put(label, champEtendu);
1708
				listeChampsEtendus.put(id, champTexteEtendu);
1659
				gauche = !gauche;
1709
				gauche = !gauche;
1660
			}
1710
			}
1661
		}
1711
		}
1662
		doLayout();
1712
		doLayout();
1663
	}
1713
	}
Line 1664... Line 1714...
1664
	
1714
	
1665
	private Map<String, String> getValeursChampsEtendus() {
1715
	private Map<String, ChampEtendu> getValeursChampsEtendus() {
1666
		Map<String, String> valeursChampsEtendus = new HashMap<String, String>();
1716
		Map<String, ChampEtendu> valeursChampsEtendus = new HashMap<String, ChampEtendu>();
1667
		if(listeChampsEtendus != null) {
1717
		if(listeChampsEtendus != null) {
1668
			for (Iterator<String> it = listeChampsEtendus.keySet().iterator(); it.hasNext();) {
1718
			for (Iterator<String> it = listeChampsEtendus.keySet().iterator(); it.hasNext();) {
1669
				String labelChamp = it.next();
1719
				String cle = it.next();
-
 
1720
				TextField champTexteEtendu = listeChampsEtendus.get(cle);
-
 
1721
				String label = champTexteEtendu.getFieldLabel();
-
 
1722
				String valeur = champTexteEtendu.getValueAsString();
1670
				TextField champEtendu = listeChampsEtendus.get(labelChamp);
1723
				ChampEtendu champEtendu = new ChampEtendu(cle, label, valeur);
1671
				valeursChampsEtendus.put(labelChamp, champEtendu.getValueAsString());
1724
				valeursChampsEtendus.put(cle, champEtendu);
1672
			}
1725
			}
1673
		}
1726
		}
1674
		return valeursChampsEtendus;
1727
		return valeursChampsEtendus;
Line 1731... Line 1784...
1731
			case LONGITUDE:
1784
			case LONGITUDE:
1732
				longitude.reset();
1785
				longitude.reset();
1733
				afficherIndicationCommune(null);
1786
				afficherIndicationCommune(null);
1734
				break;
1787
				break;
Line -... Line 1788...
-
 
1788
				
-
 
1789
			case ALTITUDE:
-
 
1790
				altitude.reset();
-
 
1791
				break;
1735
				
1792
				
1736
			case ABONDANCE:
1793
			case ABONDANCE:
1737
				selecteurAbondance.setValue("");
1794
				selecteurAbondance.setValue("");
Line 1738... Line 1795...
1738
				break;
1795
				break;
Line 1757... Line 1814...
1757
				milieu.reset() ;
1814
				milieu.reset() ;
1758
				comment.reset() ;
1815
				comment.reset() ;
1759
				milieu.reset() ;
1816
				milieu.reset() ;
1760
				latitude.reset();
1817
				latitude.reset();
1761
				longitude.reset();
1818
				longitude.reset();
-
 
1819
				altitude.reset();
1762
				departement ="";
1820
				departement ="";
1763
				espece.reset();
1821
				espece.reset();
1764
				selecteurAbondance.clearValue();
1822
				selecteurAbondance.clearValue();
1765
				selecteurCertitude.clearValue();
1823
				selecteurCertitude.clearValue();
1766
				selecteurReferentielTaxo.clearValue();
1824
				selecteurReferentielTaxo.clearValue();
Line 1845... Line 1903...
1845
		String espece = null;
1903
		String espece = null;
1846
		String date = null;
1904
		String date = null;
1847
		String notes = null;
1905
		String notes = null;
1848
		String lat = null;
1906
		String lat = null;
1849
		String lon = null;
1907
		String lon = null;
-
 
1908
		String alt = null;
1850
		String abondance = null;
1909
		String abondance = null;
1851
		String certitude = null;
1910
		String certitude = null;
1852
		String referentielTaxo = null;
1911
		String referentielTaxo = null;
1853
		String phenologie = null;
1912
		String phenologie = null;
Line 1864... Line 1923...
1864
			espece = comparerDifferencesChamps(espece, obsEnCours.getNomSaisi()); 
1923
			espece = comparerDifferencesChamps(espece, obsEnCours.getNomSaisi()); 
1865
			date = comparerDifferencesChamps(date, obsEnCours.getDate());
1924
			date = comparerDifferencesChamps(date, obsEnCours.getDate());
1866
			notes = comparerDifferencesChamps(notes, obsEnCours.getCommentaire());
1925
			notes = comparerDifferencesChamps(notes, obsEnCours.getCommentaire());
1867
			lat = comparerDifferencesChamps(lat, obsEnCours.getLatitude());
1926
			lat = comparerDifferencesChamps(lat, obsEnCours.getLatitude());
1868
			lon = comparerDifferencesChamps(lon, obsEnCours.getLongitude());
1927
			lon = comparerDifferencesChamps(lon, obsEnCours.getLongitude());
-
 
1928
			alt = comparerDifferencesChamps(alt, obsEnCours.getAltitude());
1869
			abondance = comparerDifferencesChamps(abondance, obsEnCours.getAbondance());
1929
			abondance = comparerDifferencesChamps(abondance, obsEnCours.getAbondance());
1870
			certitude = comparerDifferencesChamps(certitude, obsEnCours.getCertitude());
1930
			certitude = comparerDifferencesChamps(certitude, obsEnCours.getCertitude());
1871
			referentielTaxo = comparerDifferencesChamps(referentielTaxo, obsEnCours.getReferentielTaxo());
1931
			referentielTaxo = comparerDifferencesChamps(referentielTaxo, obsEnCours.getReferentielTaxo());
1872
			phenologie = comparerDifferencesChamps(phenologie, obsEnCours.getPhenologie());
1932
			phenologie = comparerDifferencesChamps(phenologie, obsEnCours.getPhenologie());
Line 1876... Line 1936...
1876
		
1936
		
1877
		Observation obs=new Observation(espece,numeroNom,commune,departement,lieuDit,station,milieu, notes,date);
1937
		Observation obs=new Observation(espece,numeroNom,commune,departement,lieuDit,station,milieu, notes,date);
1878
		obs.setNumeroOrdre(ordreObs);
1938
		obs.setNumeroOrdre(ordreObs);
1879
		obs.setLatitude(lat);
1939
		obs.setLatitude(lat);
-
 
1940
		obs.setLongitude(lon);
1880
		obs.setLongitude(lon);
1941
		obs.setAltitude(alt);
1881
		obs.setAbondance(abondance);
1942
		obs.setAbondance(abondance);
1882
		obs.setCertitude(certitude);
1943
		obs.setCertitude(certitude);
1883
		obs.setReferentielTaxo(referentielTaxo);
1944
		obs.setReferentielTaxo(referentielTaxo);
1884
		obs.setPhenologie(phenologie);
1945
		obs.setPhenologie(phenologie);
Line 1909... Line 1970...
1909
		dateModifiee = false;
1970
		dateModifiee = false;
1910
		especeModifiee = false;
1971
		especeModifiee = false;
1911
		commModifie = false;
1972
		commModifie = false;
1912
		latModifiee = false;
1973
		latModifiee = false;
1913
		longModifiee = false;
1974
		longModifiee = false;
-
 
1975
		altModifiee = false;
1914
		abondanceModifiee = false;
1976
		abondanceModifiee = false;
1915
		certitudeModifiee = false;
1977
		certitudeModifiee = false;
1916
		referentielTaxoModifie = false;
1978
		referentielTaxoModifie = false;
1917
		phenologieModifiee = false;
1979
		phenologieModifiee = false;
1918
	}
1980
	}
Line 1938... Line 2000...
1938
			}	
2000
			}	
1939
		});
2001
		});
Line 1940... Line 2002...
1940
			
2002
			
1941
		latitude.setTabIndex(8);
2003
		latitude.setTabIndex(8);
-
 
2004
		longitude.setTabIndex(9);
1942
		longitude.setTabIndex(9);
2005
		altitude.setTabIndex(10);
1943
		comment.setTabIndex(10);
2006
		comment.setTabIndex(11);
1944
		date.setTabIndex(11);
2007
		date.setTabIndex(12);
1945
		espece.setTabIndex(12);
2008
		espece.setTabIndex(13);
1946
		selecteurCertitude.setTabIndex(13);
2009
		selecteurCertitude.setTabIndex(14);
1947
		selecteurAbondance.setTabIndex(14);
2010
		selecteurAbondance.setTabIndex(15);
1948
		selecteurStadePheno.setTabIndex(15);
2011
		selecteurStadePheno.setTabIndex(16);
1949
		boutonOK.setTabIndex(16);
2012
		boutonOK.setTabIndex(17);
Line 1950... Line 2013...
1950
		boutonAnnuler.setTabIndex(17);
2013
		boutonAnnuler.setTabIndex(18);
Line 1951... Line 2014...
1951
		
2014
		
1952
	}
2015
	}