/trunk/src/org/tela_botanica/client/vues/collection/CollectionFormPersonne.java |
---|
646,12 → 646,12 |
} |
private void obtenirPersonnesSaisis(String nom) { |
mediateur.selectionnerPersonneParNomComplet(this, null, "%"+nom+"%"); |
mediateur.selectionnerPersonneParNomComplet(this, null, "%"+nom+"%", null); |
} |
private void actualiserGrille() { |
if (mode.equals(Formulaire.MODE_MODIFIER)) { |
mediateur.selectionnerCollectionAPersonne(this, collection.getId(), null); |
mediateur.selectionnerCollectionAPersonne(this, collection.getId(), null, null); |
} else { |
grille.getStore().removeAll(); |
layout(); |
/trunk/src/org/tela_botanica/client/vues/collection/CollectionFormPublication.java |
---|
256,7 → 256,7 |
private void actualiserGrille() { |
if (mode.equals(Formulaire.MODE_MODIFIER)) { |
mediateur.selectionnerCollectionAPublication(this, collection.getId()); |
mediateur.selectionnerCollectionAPublication(this, collection.getId(), null); |
} else { |
grille.getStore().removeAll(); |
layout(); |
/trunk/src/org/tela_botanica/client/vues/collection/CollectionFormGeneral.java |
---|
22,6 → 22,7 |
import org.tela_botanica.client.modeles.projet.ProjetListe; |
import org.tela_botanica.client.modeles.structure.Structure; |
import org.tela_botanica.client.modeles.structure.StructureListe; |
import org.tela_botanica.client.synchronisation.Sequenceur; |
import org.tela_botanica.client.util.Debug; |
import org.tela_botanica.client.vues.Formulaire; |
import org.tela_botanica.client.vues.FormulaireOnglet; |
81,6 → 82,8 |
private ChampComboBoxListeValeurs butRealisationCombo = null; |
private Sequenceur sequenceur = new Sequenceur(); |
public CollectionFormGeneral(Formulaire formulaireCourrant) { |
initialiserOnglet(formulaireCourrant); |
setId(ID); |
123,7 → 126,7 |
modelTypeProjets.addField("cpr_id_projet"); |
String displayNameProjets = "cpr_nom"; |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>(); |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>(sequenceur); |
projetsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyProjets, modelTypeProjets, displayNameProjets); |
projetsCombo.setWidth(250, 600); |
162,7 → 165,7 |
modelTypeStructures.addField("cs_id_structure"); |
String displayNameStructures = "cs_nom"; |
ProxyStructures<ModelData> proxyStructures = new ProxyStructures<ModelData>(); |
ProxyStructures<ModelData> proxyStructures = new ProxyStructures<ModelData>(sequenceur); |
structuresCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyStructures, modelTypeStructures, displayNameStructures); |
structuresCombo.setWidth(250, 600); |
199,9 → 202,10 |
modelTypeCollections.setTotalName("nbElements"); |
modelTypeCollections.addField("cc_nom"); |
modelTypeCollections.addField("cc_id_collection"); |
modelTypeCollections.addField("cc_ce_mere"); |
String displayNameCollections = "cc_nom"; |
ProxyCollections<ModelData> proxyCollections = new ProxyCollections<ModelData>(); |
ProxyCollections<ModelData> proxyCollections = new ProxyCollections<ModelData>(sequenceur); |
collectionsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyCollections, modelTypeCollections, displayNameCollections); |
collectionsCombo.setWidth(250, 600); |
446,7 → 450,8 |
} |
private void setValeurComboCollections() { |
if (collectionsCombo.getCombo().getStore() != null && collection != null) { |
collectionsCombo.getCombo().setValue(collectionsCombo.getStore().findModel("id_collection", collection.getCollectionMereId())); |
Debug.log("collection.getCollectionMereId()="+collection.getCollectionMereId()); |
collectionsCombo.getCombo().setValue(collectionsCombo.getStore().findModel("cc_ce_mere", collection.getCollectionMereId())); |
} |
} |
/trunk/src/org/tela_botanica/client/vues/collection/CollectionForm.java |
---|
11,6 → 11,7 |
import org.tela_botanica.client.modeles.MenuApplicationId; |
import org.tela_botanica.client.modeles.Valeur; |
import org.tela_botanica.client.modeles.collection.Collection; |
import org.tela_botanica.client.synchronisation.Sequenceur; |
import org.tela_botanica.client.util.Debug; |
import org.tela_botanica.client.util.UtilArray; |
import org.tela_botanica.client.util.UtilString; |
47,6 → 48,8 |
private CollectionFormCommentaire commentaireOnglet = null; |
private TextField<String> nomChp = null; |
private Sequenceur sequenceur = new Sequenceur(); |
public CollectionForm(Mediateur mediateurCourrant, String collectionId) { |
initialiserCollectionForm(mediateurCourrant, collectionId); |
} |
64,10 → 67,10 |
creerFieldsetPrincipal(); |
if (modeDeCreation.equals(Formulaire.MODE_MODIFIER)) { |
mediateurCourrant.selectionnerCollection(this, collectionId, null); |
mediateurCourrant.selectionnerCollectionAPersonne(this, collectionId, null); |
mediateurCourrant.selectionnerCollectionAPublication(this, collectionId); |
mediateurCourrant.selectionnerCollectionACommentaire(this, collectionId); |
mediateurCourrant.selectionnerCollection(this, collectionId, null, sequenceur); |
mediateurCourrant.selectionnerCollectionAPersonne(this, collectionId, null, sequenceur); |
mediateurCourrant.selectionnerCollectionAPublication(this, collectionId, sequenceur); |
mediateurCourrant.selectionnerCollectionACommentaire(this, collectionId, sequenceur); |
} |
} |
/trunk/src/org/tela_botanica/client/vues/collection/CollectionFormCommentaire.java |
---|
601,12 → 601,12 |
} |
private void obtenirCommentairesSaisis(String titre) { |
mediateur.selectionnerCommentaireParTitre(this, titre+"%"); |
mediateur.selectionnerCommentaireParTitre(this, titre+"%", null); |
} |
private void actualiserGrille() { |
if (mode.equals(Formulaire.MODE_MODIFIER)) { |
mediateur.selectionnerCollectionACommentaire(this, collection.getId()); |
mediateur.selectionnerCollectionACommentaire(this, collection.getId(), null); |
} else { |
grille.getStore().removeAll(); |
layout(); |