Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 268 Rev 277
Line 13... Line 13...
13
import org.tela_botanica.client.modeles.Information;
13
import org.tela_botanica.client.modeles.Information;
14
import org.tela_botanica.client.modeles.InterneValeur;
14
import org.tela_botanica.client.modeles.InterneValeur;
15
import org.tela_botanica.client.modeles.InterneValeurListe;
15
import org.tela_botanica.client.modeles.InterneValeurListe;
16
import org.tela_botanica.client.modeles.Personne;
16
import org.tela_botanica.client.modeles.Personne;
17
import org.tela_botanica.client.modeles.PersonneListe;
17
import org.tela_botanica.client.modeles.PersonneListe;
-
 
18
import org.tela_botanica.client.modeles.Projet;
-
 
19
import org.tela_botanica.client.modeles.ProjetListe;
18
import org.tela_botanica.client.modeles.Structure;
20
import org.tela_botanica.client.modeles.Structure;
19
import org.tela_botanica.client.modeles.StructureAPersonne;
21
import org.tela_botanica.client.modeles.StructureAPersonne;
20
import org.tela_botanica.client.modeles.StructureAPersonneListe;
22
import org.tela_botanica.client.modeles.StructureAPersonneListe;
21
import org.tela_botanica.client.modeles.StructureConservation;
23
import org.tela_botanica.client.modeles.StructureConservation;
22
import org.tela_botanica.client.modeles.StructureValorisation;
24
import org.tela_botanica.client.modeles.StructureValorisation;
Line 84... Line 86...
84
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
86
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
85
import com.google.gwt.core.client.GWT;
87
import com.google.gwt.core.client.GWT;
86
import com.google.gwt.i18n.client.DateTimeFormat;
88
import com.google.gwt.i18n.client.DateTimeFormat;
87
import com.google.gwt.i18n.client.NumberFormat;
89
import com.google.gwt.i18n.client.NumberFormat;
88
import com.google.gwt.user.client.Window;
90
import com.google.gwt.user.client.Window;
-
 
91
import com.google.gwt.user.client.ui.ListBox;
Line 89... Line 92...
89
 
92
 
Line 90... Line 93...
90
public class FormStructureVue extends LayoutContainer implements Rafraichissable {
93
public class FormStructureVue extends LayoutContainer implements Rafraichissable {
91
	
94
	
92
	private Constantes i18nC = null;
95
	private Constantes i18nC = null;
Line 93... Line 96...
93
	private Mediateur mediateur = null;
96
	private Mediateur mediateur = null;
-
 
97
	private Modele modele = null ;
94
	private Modele modele = null ;
98
 
95
 
99
	private String mode = "AJOUT";
Line 96... Line 100...
96
	private String mode = "AJOUT";
100
	private int tabIndex = 100;
97
	private FormPanel structureFormPanneau = null;
101
	private FormPanel structureFormPanneau = null;
Line 207... Line 211...
207
	private TextField<String> publicationChp;
211
	private TextField<String> publicationChp;
208
	private ContentPanel materielConservationCp;
212
	private ContentPanel materielConservationCp;
209
	private ListStore<Personne> personneExistanteMagazin;
213
	private ListStore<Personne> personneExistanteMagazin;
210
	private ComboBox<Personne> personneExistanteCombo;
214
	private ComboBox<Personne> personneExistanteCombo;
211
	private TextToolItem supprimerPersonnelBtn;
215
	private TextToolItem supprimerPersonnelBtn;
-
 
216
	private ListBox projetChp;
-
 
217
	private ListStore<Projet> projetsMagazin;
-
 
218
	private ComboBox<Projet> projetsCombo;
Line 212... Line 219...
212
 
219
 
213
 
220
 
214
	public FormStructureVue() {
221
	public FormStructureVue() {
Line 296... Line 303...
296
			StructureValorisation valorisation = collecterStructureValorisation();
303
			StructureValorisation valorisation = collecterStructureValorisation();
297
			collecterStructurePersonnel();
304
			collecterStructurePersonnel();
Line 298... Line 305...
298
			
305
			
299
			if (mode.equals("AJOUT")) {
306
			if (mode.equals("AJOUT")) {
300
				// Ajout des informations sur la Structure
307
				// Ajout des informations sur la Structure
301
				mediateur.ajouterStructure(this, structure);
308
				mediateur.ajouterStructure(this, structure, conservation, valorisation);
302
				// L'ajout des relations StructureAPersonne se fait quand la structure a été ajoutée
309
				// L'ajout des relations StructureAPersonne se fait quand la structure a été ajoutée
303
				// Voir la méthode rafraichir().
310
				// Voir la méthode rafraichir().
304
			} else if (mode.equals("MODIF")) {
311
			} else if (mode.equals("MODIF")) {
305
				// Modification des informations sur la Structure
312
				// Modification des informations sur la Structure
Line 623... Line 630...
623
			return identification;
630
			return identification;
624
		} else {
631
		} else {
625
			Structure structure = new Structure();
632
			Structure structure = new Structure();
626
			structure.setId(idStructureChp.getValue());
633
			structure.setId(idStructureChp.getValue());
627
			structure.setNom(nomStructureChp.getValue());
634
			structure.setNom(nomStructureChp.getValue());
-
 
635
			// Récupération de l'identifiant du projet
-
 
636
			if (projetsCombo.getValue() != null) {
-
 
637
				structure.setIdProjet(projetsCombo.getValue().getId());
-
 
638
			}
628
			// Récupération de l'acronyme (= identifiant alternatif)
639
			// Récupération de l'acronyme (= identifiant alternatif)
629
			structure.setIdAlternatif(null);
640
			structure.setIdAlternatif(null);
630
			if (comboAcronyme.getValue() != null) {
641
			if (comboAcronyme.getValue() != null) {
631
				String typeAcronyme = comboAcronyme.getValue().getAbr();
642
				String typeAcronyme = comboAcronyme.getValue().getAbr();
632
				if (typeAcronyme == "IH") {
643
				if (typeAcronyme == "IH") {
Line 678... Line 689...
678
			identificationOnglet.setData("acces", true);
689
			identificationOnglet.setData("acces", true);
679
		}
690
		}
680
		if (mode.equals("MODIF") && identification != null && identificationOnglet.getData("acces").equals(false)) {
691
		if (mode.equals("MODIF") && identification != null && identificationOnglet.getData("acces").equals(false)) {
681
			idStructureChp.setValue(identification.getId());
692
			idStructureChp.setValue(identification.getId());
682
			nomStructureChp.setValue(identification.getNom());
693
			nomStructureChp.setValue(identification.getNom());
-
 
694
			if (!identification.getIdProjet().equals("0")) {
-
 
695
				projetsCombo.setValue(projetsCombo.getStore().findModel("id_projet", identification.getIdProjet()));
-
 
696
			}
-
 
697
			
683
			if (!identification.getIdAlternatif().isEmpty()) {
698
			if (!identification.getIdAlternatif().isEmpty()) {
684
				String[] acronyme = identification.getIdAlternatif().split("##");
699
				String[] acronyme = identification.getIdAlternatif().split("##");
685
				if (acronyme[0].matches("^IH$")) {
700
				if (acronyme[0].matches("^IH$")) {
686
					comboAcronyme.setValue(InterneValeurListe.getTypeAcronymeIH());
701
					comboAcronyme.setValue(InterneValeurListe.getTypeAcronymeIH());
687
					ihChp.setValue(acronyme[1]);
702
					ihChp.setValue(acronyme[1]);
Line 1102... Line 1117...
1102
 
1117
 
1103
		GridSelectionModel<StructureAPersonne> sm = new GridSelectionModel<StructureAPersonne>();
1118
		GridSelectionModel<StructureAPersonne> sm = new GridSelectionModel<StructureAPersonne>();
Line 1104... Line 1119...
1104
		configs.add(r);
1119
		configs.add(r);
1105
		
1120
		
1106
		ColumnConfig column = new ColumnConfig("fonction", "Fonction", 150);
1121
		ColumnConfig column = new ColumnConfig("fonction", "Fonction", 150);
1107
		modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("fonction"));
1122
		modele.obtenirListeValeurs(this, ((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("fonction"));
Line 1108... Line 1123...
1108
		magazinLiFonction = new ListStore<Valeur>();
1123
		magazinLiFonction = new ListStore<Valeur>();
1109
		magazinLiFonction.add(new ArrayList<Valeur>());
1124
		magazinLiFonction.add(new ArrayList<Valeur>());
Line 1201... Line 1216...
1201
		column = new ColumnConfig("courriel", "Courriel principal", 200);
1216
		column = new ColumnConfig("courriel", "Courriel principal", 200);
1202
		TextField<String> emailChp = new TextField<String>();  
1217
		TextField<String> emailChp = new TextField<String>();  
1203
		column.setEditor(new CellEditor(emailChp));
1218
		column.setEditor(new CellEditor(emailChp));
1204
		configs.add(column);
1219
		configs.add(column);
Line 1205... Line 1220...
1205
		
1220
		
1206
		modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("statut"));
1221
		modele.obtenirListeValeurs(this, ((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("statut"));
1207
		magazinLiStatut = new ListStore<Valeur>();
1222
		magazinLiStatut = new ListStore<Valeur>();
Line 1208... Line 1223...
1208
		magazinLiStatut.add(new ArrayList<Valeur>());
1223
		magazinLiStatut.add(new ArrayList<Valeur>());
1209
		
1224
		
Line 1419... Line 1434...
1419
		fieldSetIdentite.setHeading("Identité");
1434
		fieldSetIdentite.setHeading("Identité");
1420
		fieldSetIdentite.setCollapsible(true);
1435
		fieldSetIdentite.setCollapsible(true);
1421
		fieldSetIdentite.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
1436
		fieldSetIdentite.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
Line 1422... Line 1437...
1422
		
1437
		
1423
		nomStructureChp = new TextField<String>();
1438
		nomStructureChp = new TextField<String>();
1424
		nomStructureChp.setTabIndex(100);
1439
		nomStructureChp.setTabIndex(tabIndex++);
1425
		nomStructureChp.setFieldLabel("Nom de la structure");
1440
		nomStructureChp.setFieldLabel("Nom de la structure");
1426
		nomStructureChp.setAllowBlank(false);
1441
		nomStructureChp.setAllowBlank(false);
1427
		nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
1442
		nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
Line -... Line 1443...
-
 
1443
		fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
-
 
1444
		
-
 
1445
		modele.selectionnerProjets(this);
-
 
1446
		projetsMagazin = new ListStore<Projet>();
-
 
1447
		projetsMagazin.add(new ArrayList<Projet>());
-
 
1448
		projetsCombo = new ComboBox<Projet>();
-
 
1449
		projetsCombo.setTabIndex(tabIndex++);
-
 
1450
		projetsCombo.setFieldLabel("Projet");
-
 
1451
		projetsCombo.setLabelSeparator("");
-
 
1452
		projetsCombo.setDisplayField("nom");
-
 
1453
		projetsCombo.setEditable(false);
-
 
1454
		projetsCombo.setTriggerAction(TriggerAction.ALL);
-
 
1455
		projetsCombo.setStore(projetsMagazin);
1428
		fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
1456
		fieldSetIdentite.add(projetsCombo, new FormData(450, 0));
1429
		
1457
		
1430
		// Création du sous-formulaire : Acronyme
1458
		// Création du sous-formulaire : Acronyme
1431
		LayoutContainer ligne = new LayoutContainer();  
1459
		LayoutContainer ligne = new LayoutContainer();  
1432
		ligne.setLayout(new ColumnLayout());
1460
		ligne.setLayout(new ColumnLayout());
Line 1437... Line 1465...
1437
		
1465
		
1438
		ListStore<InterneValeur> acronymes = new ListStore<InterneValeur>();  
1466
		ListStore<InterneValeur> acronymes = new ListStore<InterneValeur>();  
Line 1439... Line 1467...
1439
		acronymes.add(InterneValeurListe.getTypeAcronyme()); 
1467
		acronymes.add(InterneValeurListe.getTypeAcronyme()); 
1440
		
1468
		
1441
		comboAcronyme = new ComboBox<InterneValeur>();
1469
		comboAcronyme = new ComboBox<InterneValeur>();
1442
		comboAcronyme.setTabIndex(101);
1470
		comboAcronyme.setTabIndex(tabIndex++);
1443
		comboAcronyme.setEmptyText("Sélectioner un type d'acronyme...");
1471
		comboAcronyme.setEmptyText("Sélectioner un type d'acronyme...");
1444
		comboAcronyme.setFieldLabel("Acronymes");
1472
		comboAcronyme.setFieldLabel("Acronymes");
1445
		comboAcronyme.setDisplayField("nom");
1473
		comboAcronyme.setDisplayField("nom");
Line 1466... Line 1494...
1466
        });
1494
        });
1467
		gauche.add(comboAcronyme);
1495
		gauche.add(comboAcronyme);
Line 1468... Line 1496...
1468
		
1496
		
1469
		ihChp = new TextField<String>();  
1497
		ihChp = new TextField<String>();  
1470
		//ihChp.setEmptyText("Index Herbariorum");
1498
		//ihChp.setEmptyText("Index Herbariorum");
1471
		ihChp.setTabIndex(102);
1499
		ihChp.setTabIndex(tabIndex++);
1472
		ihChp.setLabelSeparator("");
1500
		ihChp.setLabelSeparator("");
1473
		ihChp.setToolTip("Index Herbariorum : herbier de plus de 5000 échantillons");
1501
		ihChp.setToolTip("Index Herbariorum : herbier de plus de 5000 échantillons");
1474
		ihChp.hide();
1502
		ihChp.hide();
Line 1475... Line 1503...
1475
		droite.add(ihChp);
1503
		droite.add(ihChp);
1476
		
1504
		
1477
		mnhnChp = new TextField<String>();
1505
		mnhnChp = new TextField<String>();
1478
		mnhnChp.setTabIndex(103);
1506
		mnhnChp.setTabIndex(tabIndex++);
1479
		//mnhnChp.setEmptyText("MNHN");
1507
		//mnhnChp.setEmptyText("MNHN");
1480
		mnhnChp.setLabelSeparator("");
1508
		mnhnChp.setLabelSeparator("");
1481
		mnhnChp.setToolTip("Acronyme MNHN : herbier de moins de 5000 échantillons");
1509
		mnhnChp.setToolTip("Acronyme MNHN : herbier de moins de 5000 échantillons");
Line 1498... Line 1526...
1498
		
1526
		
1499
		ListStore<InterneValeur> typesStructure = new ListStore<InterneValeur>();  
1527
		ListStore<InterneValeur> typesStructure = new ListStore<InterneValeur>();  
Line 1500... Line 1528...
1500
		typesStructure.add(InterneValeurListe.getTypeStructure());
1528
		typesStructure.add(InterneValeurListe.getTypeStructure());
1501
		
1529
		
1502
		comboTypeStructure = new ComboBox<InterneValeur>();
1530
		comboTypeStructure = new ComboBox<InterneValeur>();
1503
		comboTypeStructure.setTabIndex(104);
1531
		comboTypeStructure.setTabIndex(tabIndex++);
1504
		comboTypeStructure.setEmptyText("Sélectioner un type de structure...");
1532
		comboTypeStructure.setEmptyText("Sélectioner un type de structure...");
1505
		comboTypeStructure.setFieldLabel("Statut des structures");
1533
		comboTypeStructure.setFieldLabel("Statut des structures");
1506
		comboTypeStructure.setDisplayField("nom");
1534
		comboTypeStructure.setDisplayField("nom");
Line 1525... Line 1553...
1525
				}
1553
				}
1526
			}
1554
			}
1527
        });
1555
        });
1528
		gaucheTs.add(comboTypeStructure);
1556
		gaucheTs.add(comboTypeStructure);
Line 1529... Line 1557...
1529
		
1557
		
1530
		modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpu"));
1558
		modele.obtenirListeValeurs(this, ((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpu"));
1531
		magazinLstpu = new ListStore<Valeur>();
1559
		magazinLstpu = new ListStore<Valeur>();
1532
		magazinLstpu.add(new ArrayList<Valeur>());
1560
		magazinLstpu.add(new ArrayList<Valeur>());
1533
		comboLstpu = new ComboBox<Valeur>();
1561
		comboLstpu = new ComboBox<Valeur>();
1534
		comboLstpu.setTabIndex(105);
1562
		comboLstpu.setTabIndex(tabIndex++);
1535
		//comboLstpu.setFieldLabel("Statut des structures publiques");
1563
		//comboLstpu.setFieldLabel("Statut des structures publiques");
1536
		comboLstpu.setLabelSeparator("");
1564
		comboLstpu.setLabelSeparator("");
1537
		comboLstpu.setDisplayField("nom");
1565
		comboLstpu.setDisplayField("nom");
1538
		comboLstpu.setEditable(false);
1566
		comboLstpu.setEditable(false);
1539
		comboLstpu.setTriggerAction(TriggerAction.ALL);
1567
		comboLstpu.setTriggerAction(TriggerAction.ALL);
1540
		comboLstpu.setStore(magazinLstpu);
1568
		comboLstpu.setStore(magazinLstpu);
1541
		comboLstpu.hide();
1569
		comboLstpu.hide();
Line 1542... Line 1570...
1542
		droiteTs.add(comboLstpu);
1570
		droiteTs.add(comboLstpu);
1543
		
1571
		
1544
		modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpr"));
1572
		modele.obtenirListeValeurs(this, ((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpr"));
1545
		magazinLstpr = new ListStore<Valeur>();
1573
		magazinLstpr = new ListStore<Valeur>();
1546
		magazinLstpr.add(new ArrayList<Valeur>());
1574
		magazinLstpr.add(new ArrayList<Valeur>());
1547
		comboLstpr = new ComboBox<Valeur>();
1575
		comboLstpr = new ComboBox<Valeur>();
1548
		comboLstpr.setTabIndex(106);
1576
		comboLstpr.setTabIndex(tabIndex++);
1549
		//comboLstpr.setFieldLabel("Statut des structures privées");
1577
		//comboLstpr.setFieldLabel("Statut des structures privées");
1550
		comboLstpr.setLabelSeparator("");
1578
		comboLstpr.setLabelSeparator("");
1551
		comboLstpr.setDisplayField("nom");
1579
		comboLstpr.setDisplayField("nom");
Line 1558... Line 1586...
1558
		ligneTs.add(gaucheTs, new ColumnData(0.5));  
1586
		ligneTs.add(gaucheTs, new ColumnData(0.5));  
1559
		ligneTs.add(droiteTs, new ColumnData(0.5));
1587
		ligneTs.add(droiteTs, new ColumnData(0.5));
1560
		fieldSetIdentite.add(ligneTs);
1588
		fieldSetIdentite.add(ligneTs);
Line 1561... Line 1589...
1561
		
1589
		
1562
		dateFondationChp = new DateField();
1590
		dateFondationChp = new DateField();
1563
		dateFondationChp.setTabIndex(107);
1591
		dateFondationChp.setTabIndex(tabIndex++);
1564
		dateFondationChp.setFieldLabel("Date de fondation");
1592
		dateFondationChp.setFieldLabel("Date de fondation");
1565
		dateFondationChp.getPropertyEditor().getFormat();
1593
		dateFondationChp.getPropertyEditor().getFormat();
1566
		dateFondationChp.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd/MM/yyyy"));
1594
		dateFondationChp.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd/MM/yyyy"));
1567
		dateFondationChp.getMessages().setInvalidText("La valeur saisie n'est pas une date valide. La date doit être au format «jj/mm/aaaa».");
1595
		dateFondationChp.getMessages().setInvalidText("La valeur saisie n'est pas une date valide. La date doit être au format «jj/mm/aaaa».");
Line 1592... Line 1620...
1592
		fieldSetAdresse.setCollapsible(true);
1620
		fieldSetAdresse.setCollapsible(true);
Line 1593... Line 1621...
1593
		
1621
		
Line 1594... Line 1622...
1594
		fieldSetAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 4));
1622
		fieldSetAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 4));
1595
		
1623
		
1596
		adrChp = new TextArea();
1624
		adrChp = new TextArea();
1597
		adrChp.setTabIndex(108);
1625
		adrChp.setTabIndex(tabIndex++);
Line 1598... Line 1626...
1598
		adrChp.setFieldLabel("Adresse");
1626
		adrChp.setFieldLabel("Adresse");
1599
		fieldSetAdresse.add(adrChp, new FormData(550, 0));
1627
		fieldSetAdresse.add(adrChp, new FormData(550, 0));
1600
		
1628
		
1601
		cpChp = new TextField<String>();
1629
		cpChp = new TextField<String>();
Line 1602... Line 1630...
1602
		cpChp.setTabIndex(109);
1630
		cpChp.setTabIndex(tabIndex++);
1603
		cpChp.setFieldLabel("Code postal");
1631
		cpChp.setFieldLabel("Code postal");
1604
		gaucheFdAdresse.add(cpChp);
1632
		gaucheFdAdresse.add(cpChp);
1605
		
1633
		
Line 1606... Line 1634...
1606
		villeChp = new TextField<String>();
1634
		villeChp = new TextField<String>();
1607
		villeChp.setTabIndex(110);
1635
		villeChp.setTabIndex(tabIndex++);
1608
		villeChp.setFieldLabel("Ville");
1636
		villeChp.setFieldLabel("Ville");
1609
		droiteFdAdresse.add(villeChp);
1637
		droiteFdAdresse.add(villeChp);
Line 1610... Line 1638...
1610
		
1638
		
1611
		regionChp = new TextField<String>();
1639
		regionChp = new TextField<String>();
1612
		regionChp.setTabIndex(111);
1640
		regionChp.setTabIndex(tabIndex++);
1613
		regionChp.setFieldLabel("Région");
1641
		regionChp.setFieldLabel("Région");
1614
		gaucheFdAdresse.add(regionChp);
1642
		gaucheFdAdresse.add(regionChp);
1615
		
1643
		
1616
		//paysChp = new TextField<String>();
1644
		//paysChp = new TextField<String>();
1617
		//paysChp.setTabIndex(112);
1645
		//paysChp.setTabIndex(112);
1618
		//paysChp.setFieldLabel("Pays");
1646
		//paysChp.setFieldLabel("Pays");
1619
		modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("pays"));
1647
		modele.obtenirListeValeurs(this, ((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("pays"));
1620
		magazinPays = new ListStore<Valeur>();
1648
		magazinPays = new ListStore<Valeur>();
1621
		magazinPays.add(new ArrayList<Valeur>());
1649
		magazinPays.add(new ArrayList<Valeur>());
1622
		comboPays = new ComboBox<Valeur>();
1650
		comboPays = new ComboBox<Valeur>();
Line 1653... Line 1681...
1653
		fieldSetTelMail.setCollapsible(true);
1681
		fieldSetTelMail.setCollapsible(true);
Line 1654... Line 1682...
1654
		
1682
		
Line 1655... Line 1683...
1655
		fieldSetTelMail.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
1683
		fieldSetTelMail.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
1656
				
1684
				
1657
		telChp = new TextField<String>();
1685
		telChp = new TextField<String>();
1658
		telChp.setTabIndex(113);
1686
		telChp.setTabIndex(tabIndex++);
Line 1659... Line 1687...
1659
		telChp.setFieldLabel("Téléphone");
1687
		telChp.setFieldLabel("Téléphone");
1660
		gaucheFdTelMail.add(telChp);
1688
		gaucheFdTelMail.add(telChp);
1661
		
1689
		
1662
		faxChp = new TextField<String>();
1690
		faxChp = new TextField<String>();
Line 1663... Line 1691...
1663
		faxChp.setTabIndex(114);
1691
		faxChp.setTabIndex(tabIndex++);
1664
		faxChp.setFieldLabel("Fax");
1692
		faxChp.setFieldLabel("Fax");
1665
		droiteFdTelMail.add(faxChp);
1693
		droiteFdTelMail.add(faxChp);
1666
		
1694
		
1667
		emailChp = new TextField<String>();
1695
		emailChp = new TextField<String>();
Line 1668... Line 1696...
1668
		emailChp.setTabIndex(115);
1696
		emailChp.setTabIndex(tabIndex++);
1669
		emailChp.setFieldLabel("Courriel");
1697
		emailChp.setFieldLabel("Courriel");
1670
		emailChp.setToolTip("Saisir le courriel de l'organisation, pas de courriel individuel. Ex. : accueil@organisation.org");
1698
		emailChp.setToolTip("Saisir le courriel de l'organisation, pas de courriel individuel. Ex. : accueil@organisation.org");
1671
		gaucheFdTelMail.add(emailChp);
1699
		gaucheFdTelMail.add(emailChp);
Line 1672... Line 1700...
1672
		
1700
		
1673
		urlChp = new TextField<String>();
1701
		urlChp = new TextField<String>();
Line 1864... Line 1892...
1864
	 * 
1892
	 * 
1865
	 * @param listeNom nom de la liste de valeur
1893
	 * @param listeNom nom de la liste de valeur
1866
	 * @return
1894
	 * @return
1867
	 */
1895
	 */
1868
	private ContentPanel creerChoixMultipleCp(String listeNom) {
1896
	private ContentPanel creerChoixMultipleCp(String listeNom) {
1869
		modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId(listeNom));
1897
		modele.obtenirListeValeurs(this, ((Configuration) Registry.get(RegistreId.CONFIG)).getListeId(listeNom));
1870
		ContentPanel cp = new ContentPanel();
1898
		ContentPanel cp = new ContentPanel();
1871
		cp.setLayout(creerFormLayout(650, LabelAlign.TOP, 0));
1899
		cp.setLayout(creerFormLayout(650, LabelAlign.TOP, 0));
1872
		cp.setHeaderVisible(false);
1900
		cp.setHeaderVisible(false);
1873
		return cp;
1901
		return cp;
1874
	}
1902
	}
Line 2101... Line 2129...
2101
					}
2129
					}
2102
					//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
2130
					//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
2103
				} else {
2131
				} else {
2104
					GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
2132
					GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
2105
				}
2133
				}
-
 
2134
			} else if (nouvelleDonnees instanceof ProjetListe) {
-
 
2135
				ProjetListe projets = (ProjetListe) nouvelleDonnees;
-
 
2136
				
-
 
2137
				List<Projet> liste = new ArrayList<Projet>();
-
 
2138
				for (Iterator<String> it = projets.keySet().iterator(); it.hasNext();) {
-
 
2139
					liste.add(projets.get(it.next()));
-
 
2140
				}
-
 
2141
				projetsMagazin.removeAll();
-
 
2142
				projetsMagazin.add(liste);
-
 
2143
				projetsCombo.setStore(projetsMagazin);
-
 
2144
			} else {
-
 
2145
				GWT.log("Pas de correspondance dans la méthode rafraichir() de la classe "+this.getClass(), null);
2106
			}
2146
			}
2107
		} catch (Exception e) {
2147
		} catch (Exception e) {
2108
			GWT.log("rafraichir()", e);
2148
			GWT.log("rafraichir()", e);
2109
		}
2149
		}
2110
	}
2150
	}