Line 12... |
Line 12... |
12 |
import com.google.gwt.user.client.ResponseTextHandler;
|
12 |
import com.google.gwt.user.client.ResponseTextHandler;
|
Line 13... |
Line 13... |
13 |
|
13 |
|
14 |
/**
|
14 |
/**
|
15 |
* DAO la liste des observations attachées a un observateur
|
15 |
* DAO la liste des observations attachées a un observateur
|
- |
|
16 |
* @author David Delon
|
16 |
* @author David Delon
|
17 |
* TODO : se servir de ObservationDAO pour la lecture unitaire
|
17 |
*
|
18 |
*
|
18 |
*/
|
19 |
*/
|
Line 86... |
Line 87... |
86 |
observationData = new ListeObservation(taillemax);
|
87 |
observationData = new ListeObservation(taillemax);
|
Line 87... |
Line 88... |
87 |
|
88 |
|
Line 88... |
Line 89... |
88 |
for (int i = 0; i < taillemax; i++) {
|
89 |
for (int i = 0; i < taillemax; i++) {
|
- |
|
90 |
|
89 |
|
91 |
if ((observation=reponse.get(i).isArray()) != null) {
|
- |
|
92 |
|
- |
|
93 |
|
90 |
if ((observation=reponse.get(i).isArray()) != null) {
|
94 |
|
- |
|
95 |
|
91 |
|
96 |
String transmis=((JSONString) observation.get(13)).stringValue();
|
92 |
String transmis=((JSONString) observation.get(13)).stringValue();
|
97 |
String identifiantLocalite=((JSONString) observation.get(14)).toString();
|
- |
|
98 |
String nomSaisi=Util.toCelString(((JSONString) observation.get(0)).toString());
|
93 |
String nomSaisi=Util.toCelString(((JSONString) observation.get(0)).toString());
|
99 |
String nomRetenu=Util.toCelString(((JSONString) observation.get(2)).toString());
|
94 |
String nomRetenu=Util.toCelString(((JSONString) observation.get(2)).toString());
|
100 |
String numeroNomenclaturalSaisi=((JSONString) observation.get(1)).stringValue();
|
95 |
String numeroNomenclatural=((JSONString) observation.get(3)).stringValue();
|
101 |
String numeroNomenclaturalRetenu=((JSONString) observation.get(3)).stringValue();
|
96 |
String numeroTaxonomique=((JSONString) observation.get(4)).stringValue();
|
102 |
String numeroTaxonomique=((JSONString) observation.get(4)).stringValue();
|
97 |
String famille=Util.toCelString(((JSONString) observation .get(5)).toString());
|
103 |
String famille=Util.toCelString(((JSONString) observation .get(5)).toString());
|
98 |
String localite=Util.toCelString(((JSONString) observation .get(6)).toString());
|
104 |
String localite=Util.toCelString(((JSONString) observation .get(6)).toString());
|
99 |
String lieudit=Util.toCelString(((JSONString) observation .get(9)).toString());
|
105 |
String lieudit=Util.toCelString(((JSONString) observation .get(9)).toString());
|
100 |
String station=Util.toCelString(((JSONString) observation .get(10)).toString());
|
106 |
String station=Util.toCelString(((JSONString) observation .get(10)).toString());
|
101 |
String milieu=Util.toCelString(((JSONString) observation .get(11)).toString());
|
107 |
String milieu=Util.toCelString(((JSONString) observation .get(11)).toString());
|
102 |
String commentaire=Util.toCelString(((JSONString) observation .get(12)).toString());
|
108 |
String commentaire=Util.toCelString(((JSONString) observation .get(12)).toString());
|
Line 103... |
Line 109... |
103 |
String date=((JSONString) observation .get(8)).stringValue();
|
109 |
String date=((JSONString) observation .get(8)).stringValue();
|
Line 104... |
Line 110... |
104 |
String numeroOrdre=((JSONString) observation.get(7)).stringValue();
|
110 |
String numeroOrdre=((JSONString) observation.get(7)).stringValue();
|
105 |
|
111 |
|
Line 106... |
Line 112... |
106 |
Observation obs=new Observation(transmis, nomSaisi, nomRetenu, numeroNomenclatural, numeroTaxonomique, famille, localite, lieudit, station, milieu, commentaire, date, numeroOrdre);
|
112 |
Observation obs=new Observation(transmis, nomSaisi, nomRetenu, numeroNomenclaturalSaisi, numeroNomenclaturalRetenu ,numeroTaxonomique, famille, localite, identifiantLocalite, lieudit, station, milieu, commentaire, date, numeroOrdre);
|