Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 156 Rev 217
Line 25... Line 25...
25
import org.tela_botanica.client.modeles.NomRetenuAsynchroneDao;
25
import org.tela_botanica.client.modeles.NomRetenuAsynchroneDao;
26
import org.tela_botanica.client.modeles.NombreObservationAsynchroneDAO;
26
import org.tela_botanica.client.modeles.NombreObservationAsynchroneDAO;
27
import org.tela_botanica.client.modeles.Observation;
27
import org.tela_botanica.client.modeles.Observation;
28
import org.tela_botanica.client.modeles.ObservationAsynchroneDAO;
28
import org.tela_botanica.client.modeles.ObservationAsynchroneDAO;
29
import org.tela_botanica.client.modeles.TransmissionObservationAsynchroneDAO;
29
import org.tela_botanica.client.modeles.TransmissionObservationAsynchroneDAO;
-
 
30
import org.tela_botanica.client.vues.observation.ListeObservationVue;
-
 
31
 
30
import com.google.gwt.json.client.JSONArray;
32
import com.google.gwt.json.client.JSONArray;
31
import com.google.gwt.json.client.JSONObject;
33
import com.google.gwt.json.client.JSONObject;
32
import com.gwtext.client.data.Node;
34
import com.gwtext.client.data.Node;
33
import com.gwtext.client.data.Tree;
35
import com.gwtext.client.data.Tree;
34
import com.gwtext.client.widgets.tree.TreeNode;
36
import com.gwtext.client.widgets.tree.TreeNode;
Line 134... Line 136...
134
			noaDAO.obtenirNombreObservation(r, observationMediateur.getIdentifiant(), criteres) ;
136
			noaDAO.obtenirNombreObservation(r, observationMediateur.getIdentifiant(), criteres) ;
Line 135... Line 137...
135
					
137
					
Line -... Line 138...
-
 
138
	}
-
 
139
	
-
 
140
	
-
 
141
	public void obtenirListeObservation(Rafraichissable r) {
136
	}
142
		obtenirListeObservation(r,observationMediateur.getTaillePage(),observationMediateur.getPageEnCours());
137
	
143
	}
138
	
144
	
139
	/**
145
	/**
140
	 * Appelle le DAO asynchrone pour obtenir la liste des images
146
	 * Appelle le DAO asynchrone pour obtenir la liste des images
Line 161... Line 167...
161
				criteres2[i+2][0] = criteres[i][0] ; 
167
				criteres2[i+2][0] = criteres[i][0] ; 
162
				criteres2[i+2][1] = criteres[i][1] ; 
168
				criteres2[i+2][1] = criteres[i][1] ; 
163
			}
169
			}
Line 164... Line 170...
164
			
170
			
165
			// et on crée un DAO auquel on les transmet et qui envoie une requete pour recevoir les images
-
 
166
			
171
			// et on crée un DAO auquel on les transmet et qui envoie une requete pour recevoir les images
167
			ListeObservationAsynchroneDAO loaDAO = new ListeObservationAsynchroneDAO(this);
172
			ListeObservationAsynchroneDAO loaDAO = new ListeObservationAsynchroneDAO(this);
168
			loaDAO.obtenirListeObservation(r, observationMediateur.getIdentifiant(), criteres2);		
173
			loaDAO.obtenirListeObservation(r, observationMediateur.getIdentifiant(), criteres2);		
Line 227... Line 232...
227
		ObservationAsynchroneDAO obsDAO=new ObservationAsynchroneDAO(this);
232
		ObservationAsynchroneDAO obsDAO=new ObservationAsynchroneDAO(this);
228
		obsDAO.modifier(r, observationMediateur.getIdentifiant(), obs);
233
		obsDAO.modifier(r, observationMediateur.getIdentifiant(), obs);
Line 229... Line 234...
229
			
234
			
Line -... Line 235...
-
 
235
	}
-
 
236
	
-
 
237
 
-
 
238
 
-
 
239
	public void modifierObservationEnMasse(
-
 
240
			Rafraichissable r, Observation obs) {
-
 
241
		ListeObservationAsynchroneDAO liObsDAO=new ListeObservationAsynchroneDAO(this);
-
 
242
		liObsDAO.modifierEnMasse(r, observationMediateur.getIdentifiant(), obs);
-
 
243
		
-
 
244
	}
-
 
245
 
230
	}
246
 
Line 231... Line 247...
231
	
247
	
232
	public void supprimerObservation(Rafraichissable r, String numeroOrdre) {
248
	public void supprimerObservation(Rafraichissable r, String numeroOrdre) {
Line 673... Line 689...
673
 
689
 
674
	public ListeObservation getCacheObservation() {
690
	public ListeObservation getCacheObservation() {
675
		return cacheObservation ;
691
		return cacheObservation ;
Line 676... Line -...
676
	}
-
 
Line 677... Line 692...
677
 
692
	}