Subversion Repositories eFlore/Applications.coel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1496 → Rev 1737

/branches/v1.1-aramon/src/org/tela_botanica/client/composants/ChampComboBoxListeValeurs.java
9,6 → 9,7
import org.tela_botanica.client.vues.Formulaire;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.Field;
107,9 → 108,25
}
return champATrier;
}
public void setTrie(String champATrier) {
 
/**
* Définit le nom du champ selon lequel trier, et si trierJusteApres vaut true, trie
* @param champATrier
*/
public void setTrie(String champATrier, boolean trierJusteApres) {
nomChampATrier = champATrier;
if (trierJusteApres) {
trier();
}
}
 
/**
* Définit le nom du champ selon lequel trier, et trie juste après
* @param champATrier
*/
public void setTrie(String champATrier) {
setTrie(champATrier, true);
}
public void actualiserValeurParDefaut() {
if (valeurDefautId != null && getStore() != null) {
116,6 → 133,15
setValue(getStore().findModel("id_valeur", valeurDefautId));
}
}
 
/**
* Trie le contenu de la comboboîte selon le nomChampATrier défini. S'il n'y en a aucun, échoue silencieusement (niark niark)
*/
public void trier() {
if (! this.nomChampATrier.isEmpty()) {
this.getStore().sort(this.nomChampATrier, SortDir.ASC);
}
}
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof ValeurListe) {
Property changes:
Modified: svn:mergeinfo
Merged /trunk/src/org/tela_botanica/client/composants/ChampComboBoxListeValeurs.java:r1735-1736
/branches/v1.1-aramon/src/org/tela_botanica/client/modeles/personne/PersonneAsyncDao.java
12,11 → 12,13
import org.tela_botanica.client.synchronisation.Sequenceur;
import org.tela_botanica.client.util.Debug;
import org.tela_botanica.client.util.UtilDAO;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.GWT;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONValue;
import com.google.gwt.user.client.Window;
 
public class PersonneAsyncDao {
private static final String SERVICE_NOM = "CoelPersonne";
40,7 → 42,7
*/
public void selectionner(final boolean paginationProgressive, String personneId, String projetId, String nomComplet, final int start, final int nbElements, final Integer seqId) {
 
String nom = (nomComplet == null) ? "%" : nomComplet+"%";
String nom = (nomComplet == null) ? "%" : "%"+nomComplet+"%";
String[] parametres = {personneId, projetId, nom};
HashMap<String, String> restrictions = new HashMap<String, String>();
Property changes:
Modified: svn:mergeinfo
Merged /trunk/src/org/tela_botanica/client/modeles/personne/PersonneAsyncDao.java:r1735-1736
/branches/v1.1-aramon/src/org/tela_botanica/client/modeles
Property changes:
Modified: svn:mergeinfo
Merged /trunk/src/org/tela_botanica/client/modeles:r1735-1736
/branches/v1.1-aramon/src
Property changes:
Modified: svn:mergeinfo
Merged /trunk/src:r1735-1736
/branches/v1.1-aramon/.
Property changes:
Modified: svn:mergeinfo
Merged /trunk:r1735-1736