Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1310 Rev 1327
Line 6... Line 6...
6
import java.util.List;
6
import java.util.List;
Line 7... Line 7...
7
 
7
 
8
import org.tela_botanica.client.ComposantClass;
8
import org.tela_botanica.client.ComposantClass;
9
import org.tela_botanica.client.Mediateur;
9
import org.tela_botanica.client.Mediateur;
-
 
10
import org.tela_botanica.client.RegistreId;
10
import org.tela_botanica.client.RegistreId;
11
import org.tela_botanica.client.composants.ChampComboBoxRechercheTempsReelPaginable;
-
 
12
import org.tela_botanica.client.composants.InfoLogger;
-
 
13
import org.tela_botanica.client.composants.pagination.ProxyProjets;
11
import org.tela_botanica.client.composants.InfoLogger;
14
import org.tela_botanica.client.composants.pagination.ProxyValeur;
12
import org.tela_botanica.client.images.Images;
15
import org.tela_botanica.client.images.Images;
13
import org.tela_botanica.client.interfaces.Rafraichissable;
16
import org.tela_botanica.client.interfaces.Rafraichissable;
14
import org.tela_botanica.client.modeles.Information;
17
import org.tela_botanica.client.modeles.Information;
15
import org.tela_botanica.client.modeles.InterneValeur;
18
import org.tela_botanica.client.modeles.InterneValeur;
Line 33... Line 36...
33
import org.tela_botanica.client.util.UtilArray;
36
import org.tela_botanica.client.util.UtilArray;
34
import org.tela_botanica.client.util.UtilString;
37
import org.tela_botanica.client.util.UtilString;
35
import org.tela_botanica.client.vues.Formulaire;
38
import org.tela_botanica.client.vues.Formulaire;
Line 36... Line 39...
36
 
39
 
-
 
40
import com.extjs.gxt.ui.client.Style.Scroll;
-
 
41
import com.extjs.gxt.ui.client.data.ModelData;
37
import com.extjs.gxt.ui.client.Style.Scroll;
42
import com.extjs.gxt.ui.client.data.ModelType;
38
import com.extjs.gxt.ui.client.event.Events;
43
import com.extjs.gxt.ui.client.event.Events;
39
import com.extjs.gxt.ui.client.Registry;
44
import com.extjs.gxt.ui.client.Registry;
40
import com.extjs.gxt.ui.client.event.BaseEvent;
45
import com.extjs.gxt.ui.client.event.BaseEvent;
41
import com.extjs.gxt.ui.client.event.ButtonEvent;
46
import com.extjs.gxt.ui.client.event.ButtonEvent;
Line 70... Line 75...
70
import com.extjs.gxt.ui.client.widget.form.NumberField;
75
import com.extjs.gxt.ui.client.widget.form.NumberField;
71
import com.extjs.gxt.ui.client.widget.form.Radio;
76
import com.extjs.gxt.ui.client.widget.form.Radio;
72
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
77
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
73
import com.extjs.gxt.ui.client.widget.form.TextArea;
78
import com.extjs.gxt.ui.client.widget.form.TextArea;
74
import com.extjs.gxt.ui.client.widget.form.TextField;
79
import com.extjs.gxt.ui.client.widget.form.TextField;
-
 
80
import com.extjs.gxt.ui.client.widget.form.Validator;
75
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
81
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
76
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
82
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
77
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
83
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
78
import com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig;
84
import com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig;
79
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
85
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
Line 129... Line 135...
129
	private TextField<String> cpChp = null;
135
	private TextField<String> cpChp = null;
130
	private TextField<String> villeChp = null;
136
	private TextField<String> villeChp = null;
131
	private ListStore<Valeur> magazinRegion = null;
137
	private ListStore<Valeur> magazinRegion = null;
132
	private ComboBox<Valeur> comboRegion = null;
138
	private ComboBox<Valeur> comboRegion = null;
133
	private ListStore<Valeur> magazinPays = null;
139
	private ListStore<Valeur> magazinPays = null;
134
	private ComboBox<Valeur> comboPays = null;
140
	private ChampComboBoxRechercheTempsReelPaginable comboPays = null;
135
	private TextField<String> latitudeChp = null;
141
	private TextField<String> latitudeChp = null;
136
	private TextField<String> longitudeChp = null;
142
	private TextField<String> longitudeChp = null;
137
	private TextField<String> telChp = null;
143
	private TextField<String> telChp = null;
138
	private TextField<String> faxChp = null;
144
	private TextField<String> faxChp = null;
139
	private TextField<String> emailChp = null;
145
	private TextField<String> emailChp = null;
Line 216... Line 222...
216
	private LayoutContainer materielConservationCp = null;
222
	private LayoutContainer materielConservationCp = null;
217
	private ListStore<Personne> personneExistanteMagazin = null;
223
	private ListStore<Personne> personneExistanteMagazin = null;
218
	private ComboBox<Personne> personneExistanteCombo = null;
224
	private ComboBox<Personne> personneExistanteCombo = null;
219
	private Button supprimerPersonnelBtn = null;
225
	private Button supprimerPersonnelBtn = null;
220
	private ListStore<Projet> projetsMagazin = null;
226
	private ListStore<Projet> projetsMagazin = null;
221
	private ComboBox<Projet> projetsCombo = null;
227
	private ChampComboBoxRechercheTempsReelPaginable projetsCombo = null;
222
	private CellEditor fonctionEditor = null;
228
	private CellEditor fonctionEditor = null;
223
	private List<Valeur> fonctionsListe = null;
229
	private List<Valeur> fonctionsListe = null;
Line 224... Line 230...
224
 
230
 
225
	public StructureForm(Mediateur mediateurCourrant, String modeDeCreation) {
231
	public StructureForm(Mediateur mediateurCourrant, String modeDeCreation) {
Line 321... Line 327...
321
				(identificationOnglet.getData("acces").equals(false) && identification.getNom().equals(""))) {
327
				(identificationOnglet.getData("acces").equals(false) && identification.getNom().equals(""))) {
322
			messages.add("Veuillez indiquez un nom à l'institution.");
328
			messages.add("Veuillez indiquez un nom à l'institution.");
323
		}
329
		}
Line 324... Line 330...
324
		
330
		
325
		// Vérification des infos sur le projet de la structure
331
		// Vérification des infos sur le projet de la structure
326
		if (	(identificationOnglet.getData("acces").equals(true) && projetsCombo.getValue() == null) ||
332
		if (	(identificationOnglet.getData("acces").equals(true) && projetsCombo.getCombo().getValue() == null) ||
327
				(identificationOnglet.getData("acces").equals(true) && projetsCombo.getValue().equals("")) ||
333
				(identificationOnglet.getData("acces").equals(true) && projetsCombo.getCombo().getValue().equals("")) ||
328
				(identificationOnglet.getData("acces").equals(false) && identification.getIdProjet().equals(""))) {
334
				(identificationOnglet.getData("acces").equals(false) && identification.getIdProjet().equals(""))) {
329
			messages.add("Veuillez sélectionner un projet pour l'institution.");
335
			messages.add("Veuillez sélectionner un projet pour l'institution.");
Line 330... Line 336...
330
		}
336
		}
Line 646... Line 652...
646
			Structure structureCollectee = (Structure) identification.cloner(new Structure());
652
			Structure structureCollectee = (Structure) identification.cloner(new Structure());
Line 647... Line 653...
647
			
653
			
648
			structureCollectee.setId(idStructureChp.getValue());
654
			structureCollectee.setId(idStructureChp.getValue());
649
			structureCollectee.setNom(nomStructureChp.getValue());
655
			structureCollectee.setNom(nomStructureChp.getValue());
650
			// Récupération de l'identifiant du projet
656
			// Récupération de l'identifiant du projet
651
			if (projetsCombo.getValue() != null) {
657
			if (projetsCombo.getCombo().getValue() != null) {
652
				structureCollectee.setIdProjet(projetsCombo.getValue().getId());
658
				structureCollectee.setIdProjet(new Projet(projetsCombo.getValeur()).getId());
653
			}
659
			}
654
			// Récupération de l'acronyme (= identifiant alternatif)
660
			// Récupération de l'acronyme (= identifiant alternatif)
655
			structureCollectee.setIdAlternatif(null);
661
			structureCollectee.setIdAlternatif(null);
656
			if (comboAcronyme.getValue() != null) {
662
			if (comboAcronyme.getValue() != null) {
Line 700... Line 706...
700
				strRegion = valeurRegion.getId();
706
				strRegion = valeurRegion.getId();
701
			}
707
			}
Line 702... Line 708...
702
			
708
			
703
			structureCollectee.setRegion(strRegion);
709
			structureCollectee.setRegion(strRegion);
704
			structureCollectee.setPays(null);
710
			structureCollectee.setPays(null);
705
			if (comboPays.getValue() != null) {
711
			if (comboPays.getCombo().getValue() != null) {
706
				structureCollectee.setPays(comboPays.getValue().getId());
712
				structureCollectee.setPays(new Valeur(comboPays.getValeur()).getId());
707
			} else if (comboPays.getRawValue() != "") {
713
			} else if (comboPays.getCombo().getRawValue() != "") {
708
				structureCollectee.setPays(comboPays.getRawValue());
714
				structureCollectee.setPays(comboPays.getCombo().getRawValue());
709
			}
715
			}
710
			structureCollectee.setLatitude(latitudeChp.getValue());
716
			structureCollectee.setLatitude(latitudeChp.getValue());
Line 711... Line 717...
711
			structureCollectee.setLongitude(longitudeChp.getValue());
717
			structureCollectee.setLongitude(longitudeChp.getValue());
Line 735... Line 741...
735
			// Initialisation de l'objet Structure
741
			// Initialisation de l'objet Structure
736
			identification = new Structure();
742
			identification = new Structure();
737
			// Indication du projet sélectionné par défaut
743
			// Indication du projet sélectionné par défaut
738
			String projetCourantId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getProjetId();
744
			String projetCourantId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getProjetId();
739
			if (projetCourantId != null && !projetCourantId.equals("0")) {
745
			if (projetCourantId != null && !projetCourantId.equals("0")) {
740
				projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", projetCourantId));
746
				projetsCombo.getCombo().setValue(projetsCombo.getStore().findModel("cpr_id_projet", projetCourantId));
741
			}
747
			}
742
		}
748
		}
743
		if (mode.equals(MODE_MODIFIER) && identification != null && identificationOnglet.getData("acces").equals(false)) {
749
		if (mode.equals(MODE_MODIFIER) && identification != null && identificationOnglet.getData("acces").equals(false)) {
744
			idStructureChp.setValue(identification.getId());
750
			idStructureChp.setValue(identification.getId());
745
			nomStructureChp.setValue(identification.getNom());
751
			nomStructureChp.setValue(identification.getNom());
746
			if (!identification.getIdProjet().equals("0")) {
752
			if (!identification.getIdProjet().equals("0")) {
747
				projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", identification.getIdProjet()));
753
				projetsCombo.getCombo().setValue(projetsCombo.getStore().findModel("cpr_id_projet", identification.getIdProjet()));
748
			}
754
			}
Line 749... Line 755...
749
			
755
			
750
			if (!identification.getIdAlternatif().isEmpty()) {
756
			if (!identification.getIdAlternatif().isEmpty()) {
751
				String[] acronyme = identification.getIdAlternatif().split("##");
757
				String[] acronyme = identification.getIdAlternatif().split("##");
Line 793... Line 799...
793
			cpChp.setValue(identification.getCodePostal());
799
			cpChp.setValue(identification.getCodePostal());
794
			villeChp.setValue(identification.getVille());
800
			villeChp.setValue(identification.getVille());
795
			mettreAJourRegion();
801
			mettreAJourRegion();
796
			//(identification.getRegion());
802
			//(identification.getRegion());
797
			if (identification.getPays().matches("^[0-9]+$")) {
803
			if (identification.getPays().matches("^[0-9]+$")) {
798
				comboPays.setValue(comboPays.getStore().findModel("id_valeur", identification.getPays()));
804
				comboPays.getCombo().setValue(comboPays.getStore().findModel("cmlv_id_valeur", identification.getPays()));
799
			} else {
805
			} else {
800
				comboPays.setRawValue(identification.getPays());
806
				comboPays.getCombo().setRawValue(identification.getPays());
801
			}
807
			}
802
			latitudeChp.setValue(identification.getLatitude());
808
			latitudeChp.setValue(identification.getLatitude());
803
			longitudeChp.setValue(identification.getLongitude());
809
			longitudeChp.setValue(identification.getLongitude());
Line 804... Line 810...
804
			
810
			
Line 1073... Line 1079...
1073
					if (mode.equals("MODIF")) {
1079
					if (mode.equals("MODIF")) {
1074
						personne.setIdStructure(identification.getId());
1080
						personne.setIdStructure(identification.getId());
1075
					}
1081
					}
Line 1076... Line 1082...
1076
					
1082
					
1077
					// Récupération de l'id du projet de la structure qui servira aussi pour les Personnes crées dans ce formulaire
1083
					// Récupération de l'id du projet de la structure qui servira aussi pour les Personnes crées dans ce formulaire
1078
					if (personne.getIdPersonne().equals("") && projetsCombo.getValue() != null) {
1084
					if (personne.getIdPersonne().equals("") && projetsCombo.getCombo().getValue() != null) {
1079
						personne.setIdProjetPersonne(projetsCombo.getValue().getId());
1085
						personne.setIdProjetPersonne(new Projet(projetsCombo.getValeur()).getId());
Line 1080... Line 1086...
1080
					}
1086
					}
1081
					
1087
					
1082
					// Gestion de la fonction
1088
					// Gestion de la fonction
Line 1560... Line 1566...
1560
		nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
1566
		nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
1561
		nomStructureChp.addStyleName(ComposantClass.OBLIGATOIRE);
1567
		nomStructureChp.addStyleName(ComposantClass.OBLIGATOIRE);
1562
		nomStructureChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1568
		nomStructureChp.addListener(Events.Valid, creerEcouteurChampObligatoire());
1563
		fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
1569
		fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
Line 1564... Line -...
1564
		
-
 
1565
		
1570
		
1566
		projetsMagazin = new ListStore<Projet>();
1571
		ModelType modelTypeProjets = new ModelType();
1567
		mediateur.selectionnerProjet(this, null);
1572
		modelTypeProjets.setRoot("projets");
1568
		projetsCombo = new ComboBox<Projet>();
1573
		modelTypeProjets.setTotalName("nbElements");
1569
		projetsCombo.setTabIndex(tabIndex++);
1574
		modelTypeProjets.addField("cpr_nom");
-
 
1575
		modelTypeProjets.addField("cpr_id_projet");
1570
		projetsCombo.setFieldLabel("Projet");
1576
		
1571
		projetsCombo.setLabelSeparator("");
1577
		String displayNameProjets = "cpr_nom";
-
 
1578
		ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>();
-
 
1579
		
1572
		projetsCombo.setDisplayField("nom");
1580
		projetsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyProjets, modelTypeProjets, displayNameProjets);
1573
		projetsCombo.setEditable(false);
1581
		projetsCombo.getCombo().setTabIndex(tabIndex++);
1574
		projetsCombo.setTriggerAction(TriggerAction.ALL);
1582
		projetsCombo.getCombo().setFieldLabel(i18nC.projetChamp());
1575
		projetsCombo.setStore(projetsMagazin);
1583
		projetsCombo.getCombo().setForceSelection(true);
1576
		projetsCombo.addStyleName(ComposantClass.OBLIGATOIRE);
1584
		projetsCombo.getCombo().addStyleName(ComposantClass.OBLIGATOIRE);
-
 
1585
		projetsCombo.getCombo().addListener(Events.Valid, Formulaire.creerEcouteurChampObligatoire());
1577
		projetsCombo.addListener(Events.Valid, creerEcouteurChampObligatoire());
1586
		projetsCombo.setWidth(120, 450);
Line 1578... Line 1587...
1578
		fieldSetIdentite.add(projetsCombo, new FormData(450, 0));
1587
		fieldSetIdentite.add(projetsCombo, new FormData(450, 0));
1579
		
1588
		
1580
		// Création du sous-formulaire : Acronyme
1589
		// Création du sous-formulaire : Acronyme
Line 1747... Line 1756...
1747
		
1756
		
1748
		//+-----------------------------------------------------------------------------------------------------------+		
1757
		//+-----------------------------------------------------------------------------------------------------------+		
1749
		// Fieldset ADRESSE
1758
		// Fieldset ADRESSE
1750
		LayoutContainer principalFdAdresse = new LayoutContainer();  
1759
		LayoutContainer principalFdAdresse = new LayoutContainer();  
1751
		principalFdAdresse.setLayout(new ColumnLayout());
1760
		principalFdAdresse.setLayout(new ColumnLayout());
Line 1752... Line 1761...
1752
		principalFdAdresse.setSize(600, -1);
1761
		principalFdAdresse.setSize(700, -1);
1753
		
1762
		
Line 1754... Line 1763...
1754
		LayoutContainer gaucheFdAdresse = new LayoutContainer();
1763
		LayoutContainer gaucheFdAdresse = new LayoutContainer();
1755
		gaucheFdAdresse.setLayout(creerFormLayout(null, LabelAlign.LEFT));
1764
		gaucheFdAdresse.setLayout(creerFormLayout(null, LabelAlign.LEFT));
-
 
1765
		
Line 1756... Line 1766...
1756
		
1766
		LayoutContainer droiteFdAdresse = new LayoutContainer();
1757
		LayoutContainer droiteFdAdresse = new LayoutContainer();
1767
		droiteFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT));
1758
		droiteFdAdresse.setLayout(creerFormLayout(null, LabelAlign.LEFT));
1768
		droiteFdAdresse.setWidth(300);
Line 1781... Line 1791...
1781
		villeChp = new TextField<String>();
1791
		villeChp = new TextField<String>();
1782
		villeChp.setTabIndex(tabIndex++);
1792
		villeChp.setTabIndex(tabIndex++);
1783
		villeChp.setFieldLabel("Ville");
1793
		villeChp.setFieldLabel("Ville");
1784
		gaucheFdAdresse.add(villeChp, new FormData("95%"));
1794
		gaucheFdAdresse.add(villeChp, new FormData("95%"));
Line 1785... Line 1795...
1785
		
1795
		
1786
		magazinPays = new ListStore<Valeur>(); 
1796
		ModelType modelTypesPays = new ModelType();
1787
		comboPays = new ComboBox<Valeur>();
1797
		modelTypesPays.setRoot("valeurs");
1788
		comboPays.setTabIndex(tabIndex++);
1798
		modelTypesPays.setTotalName("nbElements");
1789
		comboPays.setFieldLabel("Pays");
1799
		modelTypesPays.addField("cmlv_nom");
1790
		comboPays.setEmptyText("Sélectionner un pays...");
1800
		modelTypesPays.addField("cmlv_id_valeur");
1791
		comboPays.setEditable(true);
1801
		modelTypesPays.addField("cmlv_abreviation");
-
 
1802
		modelTypesPays.addField("cmlv_description");
-
 
1803
		
-
 
1804
		String displayNamePays = "cmlv_nom";
-
 
1805
		String nomListeTypes = "pays";
-
 
1806
		ProxyValeur<ModelData> proxyPays = new ProxyValeur<ModelData>(nomListeTypes);
-
 
1807
		
1792
		comboPays.setLabelSeparator("");
1808
		comboPays = new ChampComboBoxRechercheTempsReelPaginable(proxyPays, modelTypesPays, displayNamePays);
1793
		comboPays.setDisplayField("nom");
1809
		comboPays.setWidth(100,300);
1794
		comboPays.setTemplate(getTemplatePays());
1810
		comboPays.getCombo().setTabIndex(tabIndex++);
1795
		comboPays.setTypeAhead(true);
1811
		comboPays.getCombo().setFieldLabel("Pays");
1796
		comboPays.setTriggerAction(TriggerAction.ALL);
1812
		comboPays.getCombo().setForceSelection(true);
Line 1797... Line 1813...
1797
		comboPays.setStore(magazinPays);
1813
		comboPays.getCombo().setTemplate(getTemplatePays());
1798
		
1814
		
1799
		SelectionChangedListener<Valeur> selectionChange = new SelectionChangedListener<Valeur>() {
1815
		SelectionChangedListener<ModelData> selectionChange = new SelectionChangedListener<ModelData>() {
-
 
1816
			public void selectionChanged(SelectionChangedEvent se) {
1800
			public void selectionChanged(SelectionChangedEvent se) {
1817
				// Rafraichir avec le pays sélectionné
1801
				// Rafraichir avec le pays sélectionné
1818
				comboRegion.clear();
1802
				obtenirListeRegionParPays(((Valeur) se.getSelectedItem()).getAbreviation().toString());
1819
				obtenirListeRegionParPays((new Valeur(se.getSelectedItem())).getAbreviation().toString());
1803
			}
-
 
1804
		};
1820
			}
1805
		
-
 
Line 1806... Line 1821...
1806
		comboPays.addSelectionChangedListener(selectionChange);
1821
		};
1807
		
-
 
Line 1808... Line 1822...
1808
		
1822
		comboPays.getCombo().addSelectionChangedListener(selectionChange);
1809
		droiteFdAdresse.add(comboPays, new FormData("95%"));
1823
		
1810
		mediateur.obtenirListeValeurEtRafraichir(this, "pays");
1824
		droiteFdAdresse.add(comboPays, new FormData("95%"));
1811
		
1825
		
1812
		magazinRegion = new ListStore<Valeur>();
1826
		magazinRegion = new ListStore<Valeur>();
1813
		comboRegion = new ComboBox<Valeur>();
1827
		comboRegion = new ComboBox<Valeur>();
1814
		comboRegion.setTabIndex(tabIndex++);
1828
		comboRegion.setTabIndex(tabIndex++);
1815
		comboRegion.setFieldLabel("Région");
1829
		comboRegion.setFieldLabel("Région");
1816
		comboRegion.setEmptyText("Sélectionner une région...");
1830
		comboRegion.setEmptyText("Sélectionner une région...");
1817
		comboRegion.setDisplayField("nom");
-
 
1818
		comboRegion.setTypeAhead(true);
1831
		comboRegion.setDisplayField("nom");
Line 1819... Line 1832...
1819
		comboRegion.setTriggerAction(TriggerAction.ALL);
1832
		comboRegion.setTypeAhead(true);
1820
		comboRegion.setStore(magazinRegion);
1833
		comboRegion.setTriggerAction(TriggerAction.ALL);
1821
		
1834
		comboRegion.setStore(magazinRegion);
Line 1908... Line 1921...
1908
	}
1921
	}
Line 1909... Line 1922...
1909
	
1922
	
1910
	private native String getTemplatePays() /*-{ 
1923
	private native String getTemplatePays() /*-{ 
1911
		return  [ 
1924
		return  [ 
1912
		'<tpl for=".">', 
1925
		'<tpl for=".">', 
1913
		'<div class="x-combo-list-item">{nom} ({abreviation})</div>', 
1926
		'<div class="x-combo-list-item">{cmlv_nom} ({cmlv_abreviation})</div>', 
1914
		'</tpl>' 
1927
		'</tpl>' 
1915
		].join(""); 
1928
		].join(""); 
Line 1916... Line 1929...
1916
		}-*/;
1929
		}-*/;
Line 2150... Line 2163...
2150
				fonctionsListe = liste;
2163
				fonctionsListe = liste;
2151
				fonctionsMagazin.removeAll();
2164
				fonctionsMagazin.removeAll();
2152
				fonctionsMagazin.add(liste);
2165
				fonctionsMagazin.add(liste);
2153
				fonctionsCombo.setStore(fonctionsMagazin);
2166
				fonctionsCombo.setStore(fonctionsMagazin);
2154
			}
2167
			}
-
 
2168
			/* 
2155
			if (listeValeurs.getId().equals(config.getListeId("pays"))) {
2169
			if (listeValeurs.getId().equals(config.getListeId("pays"))) {
2156
				magazinPays.removeAll();
2170
				magazinPays.removeAll();
2157
				magazinPays.add(liste);
2171
				magazinPays.add(liste);
2158
				comboPays.setStore(magazinPays);
2172
				comboPays.setStore(magazinPays);
2159
			}
2173
			}*/
Line 2160... Line 2174...
2160
			
2174
			
2161
			if (listeValeurs.getId().equals(config.getListeId("region"))) {
2175
			if (listeValeurs.getId().equals(config.getListeId("region"))) {
2162
				magazinRegion.removeAll();
2176
				magazinRegion.removeAll();
2163
				magazinRegion.add(liste);
2177
				magazinRegion.add(liste);
Line 2237... Line 2251...
2237
			GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
2251
			GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
2238
		}
2252
		}
2239
	}
2253
	}
Line 2240... Line 2254...
2240
	
2254
	
-
 
2255
	private void rafraichirProjetListe(ProjetListe projets) {
-
 
2256
		Debug.log("PASSE ICI");
2241
	private void rafraichirProjetListe(ProjetListe projets) {
2257
		/*
2242
		List<Projet> liste = projets.toList();
2258
		List<Projet> liste = projets.toList();
2243
		projetsMagazin.removeAll();
2259
		projetsMagazin.removeAll();
2244
		projetsMagazin.add(liste);
2260
		projetsMagazin.add(liste);
2245
		projetsCombo.setStore(projetsMagazin);
2261
		projetsCombo.setStore(projetsMagazin);*/
Line 2246... Line 2262...
2246
	}
2262
	}
Line 2247... Line 2263...
2247
	
2263