Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 266 Rev 267
Line 13... Line 13...
13
 
13
 
14
import org.tela_botanica.client.RegistreId;
14
import org.tela_botanica.client.RegistreId;
15
import org.tela_botanica.client.i18n.Constantes;
15
import org.tela_botanica.client.i18n.Constantes;
16
import org.tela_botanica.client.interfaces.Rafraichissable;
16
import org.tela_botanica.client.interfaces.Rafraichissable;
-
 
17
import org.tela_botanica.client.modeles.Personne;
17
import org.tela_botanica.client.modeles.Personne;
18
import org.tela_botanica.client.modeles.PersonneListe;
Line 18... Line 19...
18
import org.tela_botanica.client.util.UtilTruk;
19
import org.tela_botanica.client.util.UtilTruk;
Line 55... Line 56...
55
	private FieldSet fsAdressePerso;
56
	private FieldSet fsAdressePerso;
56
		// contient : adresse perso / adresse pro
57
		// contient : adresse perso / adresse pro
Line 57... Line 58...
57
	
58
	
58
	// Onglet 3 : Informations naturalistes
59
	// Onglet 3 : Informations naturalistes
-
 
60
	private TabItem tabInfosNat;
-
 
61
	private FieldSet fsInfosNat;
Line 59... Line 62...
59
	private TabItem tabInfosNat;
62
	
Line 60... Line 63...
60
	
63
	
61
	public PersonneDetailPanneauVue() {
64
	public PersonneDetailPanneauVue() {
Line 105... Line 108...
105
		
108
		
Line 106... Line 109...
106
		this.add(tabAdresse);
109
		this.add(tabAdresse);
107
		
110
		
-
 
111
		//Onglet info naturalistes
-
 
112
		tabInfosNat = new TabItem("Informations naturalistes");
Line 108... Line 113...
108
		//Onglet info naturalistes
113
		fsInfosNat = new FieldSet();
Line 109... Line 114...
109
		tabInfosNat = new TabItem("Informations naturalistes");
114
		fsInfosNat.setLayout(new FormLayout());
Line 157... Line 162...
157
			panneauIdentite.add(fsContact);
162
			panneauIdentite.add(fsContact);
Line 158... Line 163...
158
			
163
			
159
			fsIdentite.removeAll();
164
			fsIdentite.removeAll();
160
			fsContact.removeAll();
165
			fsContact.removeAll();
-
 
166
			fsAdressePerso.removeAll();
161
			fsAdressePerso.removeAll();
167
			fsInfosNat.removeAll();
Line 162... Line 168...
162
			//Ajout des champs Identité
168
			//Ajout des champs Identité
Line 340... Line 346...
340
			 * Adresses :
346
			 * Adresses :
341
			 * */
347
			 * */
342
			String adresse01 = (String) personne.obtenirValeurChamp("adresse_01");
348
			String adresse01 = (String) personne.obtenirValeurChamp("adresse_01");
343
			ajouterLabelField(fsAdressePerso, "Adresse", adresse01);
349
			ajouterLabelField(fsAdressePerso, "Adresse", adresse01);
Line 344... Line -...
344
			
-
 
345
			
350
			
346
			String adresse02 = (String) personne.obtenirValeurChamp("adresse_02");
351
			String adresse02 = (String) personne.obtenirValeurChamp("adresse_02");
Line 347... Line 352...
347
			ajouterLabelField(fsAdressePerso, "", adresse02);
352
			ajouterLabelField(fsAdressePerso, "", adresse02);
348
			
353
			
Line 363... Line 368...
363
			
368
			
364
			fsAdressePerso.addText("<br >");	
369
			fsAdressePerso.addText("<br >");	
Line 365... Line 370...
365
			fsAdressePerso.setWidth("350px");
370
			fsAdressePerso.setWidth("350px");
366
			
371
			
Line 367... Line 372...
367
			tabAdresse.add(fsAdressePerso);
372
			tabAdresse.add(fsAdressePerso);
368
			tabAdresse.setScrollMode(Scroll.AUTO);
373
			//tabAdresse.setScrollMode(Scroll.AUTO);
369
			
374
			
Line 370... Line 375...
370
 
375
 
371
			/*
376
			/*
-
 
377
			 *	Infos naturalistes 
-
 
378
			 * */
-
 
379
			
-
 
380
			// Biographie
-
 
381
			// Spécialité (typé)
-
 
382
			
-
 
383
			fsInfosNat.setHeading("Infos...");
-
 
384
			tabInfosNat.add(fsInfosNat);
-
 
385
			
-
 
386
			HashMap hmSpecialite = (HashMap) personne.getChaineDenormaliseAsMapOrList("ce_truk_specialite");
-
 
387
			if ((hmSpecialite != null)&&(hmSpecialite.size() > 0))	{
-
 
388
				
-
 
389
				Collection<String> specialiteKeys = hmSpecialite.keySet();
-
 
390
				Iterator<String> itSpec = specialiteKeys.iterator();
-
 
391
				
-
 
392
				while (itSpec.hasNext())	{
-
 
393
					String key = itSpec.next();
-
 
394
					LabelField specLabel = new LabelField();
-
 
395
					String label = "";
-
 
396
					try {
-
 
397
						label = constantesI18n.getString(key);
-
 
398
					}
-
 
399
					catch (MissingResourceException e)	{
-
 
400
						label = key;
-
 
401
					}
-
 
402
					
-
 
403
					specLabel.setFieldLabel( label + ":");
-
 
404
					
372
			 *	Infos naturalistes 
405
					specLabel.setValue(hmSpecialite.get(key));
373
			 * */
406
					
374
			
407
					fsInfosNat.add(specLabel);
375
			// Biographie
408
				}
376
			// Spécialité
409
			}