| Line 7... |
Line 7... |
| 7 |
import org.tela_botanica.client.http.JsonRestRequestBuilder;
|
7 |
import org.tela_botanica.client.http.JsonRestRequestBuilder;
|
| 8 |
import org.tela_botanica.client.http.JsonRestRequestCallback;
|
8 |
import org.tela_botanica.client.http.JsonRestRequestCallback;
|
| 9 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
9 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 10 |
import org.tela_botanica.client.modeles.Information;
|
10 |
import org.tela_botanica.client.modeles.Information;
|
| 11 |
import org.tela_botanica.client.modeles.personne.PersonneListe;
|
11 |
import org.tela_botanica.client.modeles.personne.PersonneListe;
|
| 12 |
import org.tela_botanica.client.modeles.projet.ProjetListe;
|
- |
|
| 13 |
import org.tela_botanica.client.synchronisation.Reponse;
|
12 |
import org.tela_botanica.client.synchronisation.Reponse;
|
| 14 |
import org.tela_botanica.client.util.UtilDAO;
|
13 |
import org.tela_botanica.client.util.UtilDAO;
|
| Line 15... |
Line 14... |
| 15 |
|
14 |
|
| 16 |
import com.extjs.gxt.ui.client.Registry;
|
15 |
import com.extjs.gxt.ui.client.Registry;
|
| Line 41... |
Line 40... |
| 41 |
* fur et à mesure de la consultation des données par l'utilisateur.
|
40 |
* fur et à mesure de la consultation des données par l'utilisateur.
|
| 42 |
* - False : la consultation des données est classique : un seul appel à la base de données est effectué, le retour
|
41 |
* - False : la consultation des données est classique : un seul appel à la base de données est effectué, le retour
|
| 43 |
* est renvoyé à l'appelant
|
42 |
* est renvoyé à l'appelant
|
| 44 |
* // FIXME : si la taille de la liste est supérieure à la limite du JREST (150), ce deuxieme mode ne fonctionne pas
|
43 |
* // FIXME : si la taille de la liste est supérieure à la limite du JREST (150), ce deuxieme mode ne fonctionne pas
|
| 45 |
*/
|
44 |
*/
|
| 46 |
public void selectionner(final boolean paginationProgressive, final String projetId, final String structureId, final String nomStructure, final String formatRetour, final int start, final int nbElements, final Integer seqId, final boolean searchCity) {
|
45 |
public void selectionner(final boolean paginationProgressive, final String structureId, final String nomStructure, final String formatRetour, final int start, final int nbElements, final Integer seqId, final boolean searchCity) {
|
| 47 |
String[] parametres = {projetId, structureId, nomStructure};
|
46 |
String[] parametres = {structureId, nomStructure};
|
| Line 48... |
Line 47... |
| 48 |
|
47 |
|
| Line 49... |
Line 48... |
| 49 |
HashMap<String, String> restrictions = new HashMap<String, String>();
|
48 |
HashMap<String, String> restrictions = new HashMap<String, String>();
|
| 50 |
|
49 |
|
| Line 243... |
Line 242... |
| 243 |
if (str != null) {
|
242 |
if (str != null) {
|
| 244 |
if (structureId != null) {
|
243 |
if (structureId != null) {
|
| 245 |
postDonnees += "&cs_id_structure=" + URL.encodeComponent(structureId);
|
244 |
postDonnees += "&cs_id_structure=" + URL.encodeComponent(structureId);
|
| 246 |
}
|
245 |
}
|
| Line 247... |
Line -... |
| 247 |
|
- |
|
| 248 |
postDonnees += "&cpr_abreviation=" + URL.encodeComponent(str.getAbreviationProjet());
|
246 |
|
| 249 |
postDonnees += "&cs_ce_projet=" + URL.encodeComponent(str.getIdProjet()) +
|
- |
|
| 250 |
"&cs_ce_mere=" + URL.encodeComponent(str.getIdMere()) +
|
247 |
postDonnees += "&cs_ce_mere=" + URL.encodeComponent(str.getIdMere()) +
|
| 251 |
"&cs_guid=" + URL.encodeComponent(str.getGuid()) +
|
248 |
"&cs_guid=" + URL.encodeComponent(str.getGuid()) +
|
| 252 |
"&cs_truk_identifiant_alternatif=" + URL.encodeComponent(str.getIdAlternatif()) +
|
249 |
"&cs_truk_identifiant_alternatif=" + URL.encodeComponent(str.getIdAlternatif()) +
|
| 253 |
"&cs_nom=" + URL.encodeComponent(str.getNom()) +
|
250 |
"&cs_nom=" + URL.encodeComponent(str.getNom()) +
|
| 254 |
"&cs_truk_nom_alternatif=" + URL.encodeComponent(str.getNomAlternatif()) +
|
251 |
"&cs_truk_nom_alternatif=" + URL.encodeComponent(str.getNomAlternatif()) +
|