Subversion Repositories eFlore/Applications.coel

Rev

Rev 780 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 780 Rev 797
Line 204... Line 204...
204
			
204
			
Line 205... Line 205...
205
			tplIdentite += "</div>";
205
			tplIdentite += "</div>";
Line 206... Line 206...
206
			
206
			
207
			afficherOnglet(tplIdentite, tabIdentiteParams, tabIdentite);
207
			afficherOnglet(tplIdentite, tabIdentiteParams, tabIdentite);
208
			
208
			
209
			String tabAdresseTpl = 	"<div class='css_corps'>" +
209
			String tabAdresseTpl = 	"<div class='{css_corps}'>" +
210
									"	<div class='css_fieldset'>" +
210
									"	<div class='{css_fieldset}'>" +
211
									"		<h1>Adresse personnelle:</h1>" +
211
									"		<h2>Adresse personnelle:</h2>" +
212
									"		{adresse01} <br />" +
212
									"		{adresse01} <br />" +
213
									"		{adresse02} <br />" +
213
									"		{adresse02} <br />" +
Line 227... Line 227...
227
			
227
			
228
			afficherOnglet(tabAdresseTpl, paramAdresseTpl, tabAdresse);
228
			afficherOnglet(tabAdresseTpl, paramAdresseTpl, tabAdresse);
Line 229... Line 229...
229
			tabAdresse.setStyleAttribute("padding", "15px");
229
			tabAdresse.setStyleAttribute("padding", "15px");
230
 
-
 
231
			// Infos naturalistes :Biographie, Spécialité (typé)
230
 
232
			
231
			// Infos naturalistes :Biographie, Spécialité (typé)
233
			String tplInfosNat = "<div class='css_corps'>" +
232
			String tplInfosNat = "<div class='{css_corps}'>" +
234
								 "	<div class='css_fieldset'>" +
233
								 "	<div class='{css_fieldset}'>" +
-
 
234
								 "		<h2>" + mediateur.i18nC.personneSpecialite() + "</h1>"+
235
								 "		<h1>Spécialités</h1>"+
235
								 "			{specialites}" +
236
								 "			{specialites}" +
236
								 "		<h2>" + mediateur.i18nC.personneRecolte() + "</h2>" +
237
								 "		<h1>Récolte</h1>" + 
237
								 "		{recoltes}" +
238
								 "  </div>" +
238
								 "  </div>" +
Line 239... Line -...
239
								 "</div>";
-
 
240
			Params prmInfosNat = new Params();
-
 
241
			
-
 
242
			String strSpecialites = "";
-
 
243
			HashMap hmSpecialite = (HashMap) personne.getChaineDenormaliseAsMapOrList("ce_truk_specialite");
-
 
244
			if ((hmSpecialite != null)&&(hmSpecialite.size() > 0))	{
-
 
245
				
-
 
246
				Collection<String> specialiteKeys = hmSpecialite.keySet();
-
 
247
				Iterator<String> itSpec = specialiteKeys.iterator();
-
 
248
				
-
 
249
				while (itSpec.hasNext())	{
-
 
250
					String key = itSpec.next();
-
 
251
					LabelField specLabel = new LabelField();
239
								 "</div>";
252
					String label = "";
-
 
253
					try {
-
 
254
						label = mediateur.i18nC.getString(key);
-
 
255
					}
-
 
256
					catch (MissingResourceException e)	{
-
 
257
						label = key;
-
 
258
					}
-
 
259
					
-
 
260
					specLabel.setFieldLabel( label + ":");
-
 
261
					
-
 
262
					specLabel.setValue(hmSpecialite.get(key));
-
 
263
					
-
 
264
					strSpecialites += specLabel + "<br />";
-
 
Line -... Line 240...
-
 
240
			Params prmInfosNat = new Params();
-
 
241
			
-
 
242
			//TODO : replace id region par valeur
-
 
243
			
265
				}
244
			String specialite = construireTxtTruck(personne.getSpecialite());
266
			}
245
			prmInfosNat.set("specialites", specialite);
-
 
246
			
-
 
247
			String recolte = construireTxtTruck(personne.getString("truk_recolte"));
Line 267... Line -...
267
			prmInfosNat.set("specialites", strSpecialites);
-
 
268
			
-
 
269
			String strRecolte  ="";
-
 
270
 
-
 
271
			
-
 
272
			LinkedList<String> lstRecolte = (LinkedList) personne.getChaineDenormaliseAsMapOrList("truk_recolte");
-
 
273
			if ((lstRecolte!=null)&&(lstRecolte.size()>0))	{
-
 
274
				FieldSet fsRecolte = new FieldSet();
-
 
275
				fsRecolte.setHeading("Récoltes");
-
 
276
				fsRecolte.setLayout(new FormLayout());
-
 
277
				
-
 
278
				Iterator<String> itRecolte = lstRecolte.iterator();
-
 
279
				while (itRecolte.hasNext())	{
-
 
280
					
-
 
281
					String recolteCourante = itRecolte.next();
-
 
282
					LabelField lfRecolte = new LabelField();
-
 
283
					String[] splitRecolte = recolteCourante.split("\\|");
-
 
284
					
-
 
285
					String labelRecolte = "";
-
 
286
					if (splitRecolte.length > 1)	{
-
 
287
						lfRecolte.setValue(splitRecolte[1]);
-
 
288
					}
-
 
289
					
-
 
290
					lfRecolte.setFieldLabel(splitRecolte[0]);
-
 
291
					fsRecolte.add(lfRecolte);
-
 
292
					
-
 
293
					LinkedList<LabelField> lstComposantsRegion = (LinkedList<LabelField>) hmLabelFieldRegion.get(splitRecolte[0]);
-
 
294
					
-
 
295
					if (lstComposantsRegion == null)	{
-
 
296
						lstComposantsRegion = new LinkedList<LabelField>();
-
 
297
					}
-
 
298
					
-
 
299
					lstComposantsRegion.add(lfRecolte);
-
 
300
					hmLabelFieldRegion.remove(splitRecolte[0]);
-
 
301
					hmLabelFieldRegion.put(splitRecolte[0], lstComposantsRegion);
-
 
Line 302... Line 248...
302
									
248
			prmInfosNat.set("recoltes", recolte);
303
				}
249
			
304
				
250
			afficherOnglet(tplInfosNat, prmInfosNat, tabInfosNat);
305
				tabInfosNat.add(fsRecolte);
251
			tabAdresse.setStyleAttribute("padding", "15px");