Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 648 Rev 686
Line 1607... Line 1607...
1607
		fieldSetIdentite.add(dateFondationChp);
1607
		fieldSetIdentite.add(dateFondationChp);
Line 1608... Line 1608...
1608
		
1608
		
1609
		nbreTotalPersonneStructureChp = new NumberField(); 
1609
		nbreTotalPersonneStructureChp = new NumberField(); 
1610
		nbreTotalPersonneStructureChp.setFieldLabel("Nombre de personne travaillant dans l'institution");
1610
		nbreTotalPersonneStructureChp.setFieldLabel("Nombre de personne travaillant dans l'institution");
1611
		nbreTotalPersonneStructureChp.setFormat(NumberFormat.getFormat("#"));
1611
		nbreTotalPersonneStructureChp.setFormat(NumberFormat.getFormat("#"));
1612
		nbreTotalPersonneStructureChp.setToolTip("Ce champ doit contenir un nombre");
1612
		nbreTotalPersonneStructureChp.setToolTip(i18nC.champNumerique());
Line 1613... Line 1613...
1613
		fieldSetIdentite.add(nbreTotalPersonneStructureChp);
1613
		fieldSetIdentite.add(nbreTotalPersonneStructureChp);
Line 1614... Line 1614...
1614
 
1614
 
Line 1945... Line 1945...
1945
	public void rafraichirValeurListe(ValeurListe listeValeurs) {
1945
	public void rafraichirValeurListe(ValeurListe listeValeurs) {
1946
		List<Valeur> liste = listeValeurs.toList();
1946
		List<Valeur> liste = listeValeurs.toList();
Line 1947... Line 1947...
1947
 
1947
 
1948
		// Test pour savoir si la liste contient des éléments
1948
		// Test pour savoir si la liste contient des éléments
1949
		if (liste.size() > 0) {
-
 
1950
			Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
1949
		if (liste.size() > 0) {
1951
			if (listeValeurs.getId().equals(config.getListeId("stpr"))) {
1950
			if (listeValeurs.getId().equals(config.getListeId("stpr"))) {
1952
				magazinLstpr.removeAll();
1951
				magazinLstpr.removeAll();
1953
				magazinLstpr.add(liste);
1952
				magazinLstpr.add(liste);
1954
				comboLstpr.setStore(magazinLstpr);
1953
				comboLstpr.setStore(magazinLstpr);
Line 2046... Line 2045...
2046
			GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
2045
			GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
2047
		}
2046
		}
2048
	}
2047
	}
Line 2049... Line 2048...
2049
	
2048
	
2050
	private void rafraichirProjetListe(ProjetListe projets) {
2049
	private void rafraichirProjetListe(ProjetListe projets) {
2051
		List<Projet> liste = new ArrayList<Projet>();
-
 
2052
		for (Iterator<String> it = projets.keySet().iterator(); it.hasNext();) {
-
 
2053
			liste.add(projets.get(it.next()));
-
 
2054
		}
2050
		List<Projet> liste = projets.toList();
2055
		projetsMagazin.removeAll();
2051
		projetsMagazin.removeAll();
2056
		projetsMagazin.add(liste);
2052
		projetsMagazin.add(liste);
2057
		projetsCombo.setStore(projetsMagazin);
2053
		projetsCombo.setStore(projetsMagazin);