Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 192 Rev 206
Line 86... Line 86...
86
	private Constantes i18nC = null;
86
	private Constantes i18nC = null;
87
	private Mediateur mediateur = null;
87
	private Mediateur mediateur = null;
88
	private Modele modele = null ;
88
	private Modele modele = null ;
Line 89... Line 89...
89
 
89
 
90
	private String mode = "AJOUT";
90
	private String mode = "AJOUT";
91
	private FormPanel structureFormPanneau;
91
	private FormPanel structureFormPanneau = null;
92
	private int tabIndex = 100;
92
	private int tabIndex = 100;
Line 93... Line 93...
93
	private TabPanel onglets;
93
	private TabPanel onglets = null;
94
 
94
 
95
	private TabItem identificationOnglet;
95
	private TabItem identificationOnglet = null;
96
	private TabItem personnelOnglet = null;
96
	private TabItem personnelOnglet = null;
-
 
97
	private TabItem conservationOnglet = null;
-
 
98
	private TabItem valorisationOnglet = null;
-
 
99
 
-
 
100
	private HiddenField<String> idStructureChp = null;
-
 
101
	
Line -... Line 102...
-
 
102
	private StructureConservation conservation = null;
97
	private TabItem conservationOnglet = null;
103
	private StructureValorisation valorisation = null;
98
	private TabItem valorisationOnglet = null;
104
	
99
	
105
	// Onglet IDENTIFICATION
100
	private ListStore<Valeur> magazinLstpr = null;
106
	private ListStore<Valeur> magazinLstpr = null;
101
	private ComboBox<Valeur> comboLstpr = null;
107
	private ComboBox<Valeur> comboLstpr = null;
Line 107... Line 113...
107
	private ComboBox<Valeur> comboLiFonction = null;
113
	private ComboBox<Valeur> comboLiFonction = null;
108
	private ComboBox<InterneValeur> comboAcronyme = null;
114
	private ComboBox<InterneValeur> comboAcronyme = null;
109
	private TextField<String> ihChp = null;
115
	private TextField<String> ihChp = null;
110
	private TextField<String> mnhnChp = null;
116
	private TextField<String> mnhnChp = null;
111
	private ComboBox<InterneValeur> comboTypeStructure = null;
117
	private ComboBox<InterneValeur> comboTypeStructure = null;
-
 
118
	private TextField<String> nomStructureChp;
-
 
119
	private DateField dateFondationChp;
-
 
120
	private TextArea adrChp;
-
 
121
	private TextField<String> cpChp;
-
 
122
	private TextField<String> villeChp;
-
 
123
	private TextField<String> regionChp;
-
 
124
	private TextField<String> telChp;
-
 
125
	private TextField<String> faxChp;
-
 
126
	private TextField<String> emailChp;
-
 
127
	private TextField<String> urlChp;
-
 
128
	private ListStore<Valeur> magazinPays;
-
 
129
	private ComboBox<Valeur> comboPays;
Line -... Line 130...
-
 
130
 
112
 
131
	// Onglet PERSONNEL
113
	private EditorGrid<Personne> grillePersonnel = null;
132
	private EditorGrid<Personne> grillePersonnel = null;
114
	private ListStore<Personne> personnelGrilleMagazin = null;
133
	private ListStore<Personne> personnelGrilleMagazin = null;
-
 
134
	private LabelField nbreTotalPersonnelChp = null;
-
 
135
	private NumberField nbreTotalPersonneStructureChp = null;
-
 
136
 
-
 
137
	// Onglet CONSERVATION
-
 
138
	private RadioGroup formationMarkRGrpChp;
-
 
139
	private RadioGroup interetFormationMarkRGrpChp;
-
 
140
	private RadioGroup collectionCommuneMarkRGrpChp;
-
 
141
	private RadioGroup accesControleMarkRGrpChp;
-
 
142
	private RadioGroup restaurationMarkRGrpChp;
-
 
143
	private RadioGroup traitementMarkRGrpChp;
-
 
144
	private RadioGroup collectionAcquisitionMarkRGrpChp;
-
 
145
	private RadioGroup echantillonAcquisitionMarkRGrpChp;
-
 
146
	private TextField<String> localStockageAutreChp;
-
 
147
	private TextField<String> meubleStockageAutreChp;
-
 
148
	private TextField<String> parametreStockageAutreChp;
-
 
149
	private TextField<String> collectionAutreAutreChp;
-
 
150
	private TextField<String> autreCollectionAutreChp;
-
 
151
	private TextField<String> opRestauAutreChp;
-
 
152
	private TextField<String> autreMaterielAutreChp;
-
 
153
	private TextField<String> poisonTraitementAutreChp;
-
 
154
	private TextField<String> traitementAutreChp;
-
 
155
	private TextField<String> insecteTraitementAutreChp;
-
 
156
	private TextField<String> actionAutreChp;
-
 
157
	private TextField<String> provenanceRechercheAutreChp;
115
	private LabelField nbreTotalPersonnelChp = null;
158
	private TextField<String> typeRechercheAutreChp;
116
	private CheckBoxGroup localStockageTrukCacGrpChp = null;
159
	private CheckBoxGroup localStockageTrukCacGrpChp = null;
117
	private ContentPanel localStockageTrukCp = null;
160
	private ContentPanel localStockageTrukCp = null;
118
	private CheckBoxGroup meubleStockageTrukCacGrpChp = null;
161
	private CheckBoxGroup meubleStockageTrukCacGrpChp = null;
119
	private ContentPanel meubleStockageTrukCp = null;
162
	private ContentPanel meubleStockageTrukCp = null;
Line 129... Line 172...
129
	private CheckBoxGroup traitementTrukCacGrpChp = null;
172
	private CheckBoxGroup traitementTrukCacGrpChp = null;
130
	private ContentPanel poisonTraitementTrukCp = null;
173
	private ContentPanel poisonTraitementTrukCp = null;
131
	private ContentPanel insecteTraitementTrukCp = null;
174
	private ContentPanel insecteTraitementTrukCp = null;
132
	private CheckBoxGroup insecteTraitementTrukCacGrpChp = null;
175
	private CheckBoxGroup insecteTraitementTrukCacGrpChp = null;
133
	private CheckBoxGroup poisonTraitementTrukCacGrpChp = null;
176
	private CheckBoxGroup poisonTraitementTrukCacGrpChp = null;
134
 
-
 
135
	private ContentPanel actionTrukCp = null;
-
 
136
	private CheckBoxGroup actionTrukCacGrpChp = null;
-
 
137
	private ContentPanel autreCollectionTrukCp = null;
177
	private ContentPanel autreCollectionTrukCp = null;
138
	private CheckBoxGroup autreCollectionTrukCacGrpChp = null;
178
	private CheckBoxGroup autreCollectionTrukCacGrpChp = null;
139
	private ContentPanel provenanceRechercheTrukCp = null;
179
	private ContentPanel provenanceRechercheTrukCp = null;
140
	private CheckBoxGroup provenanceRechercheTrukCacGrpChp = null;
180
	private CheckBoxGroup provenanceRechercheTrukCacGrpChp = null;
141
	private CheckBoxGroup typeRechercheTrukCacGrpChp = null;
181
	private CheckBoxGroup typeRechercheTrukCacGrpChp = null;
Line 146... Line 186...
146
	private TextField<String> formationChp = null;
186
	private TextField<String> formationChp = null;
147
	private RadioGroup traitementAcquisitionMarkRGrpChp = null;
187
	private RadioGroup traitementAcquisitionMarkRGrpChp = null;
148
	private LabelField traitementAcquisitionMarkLabel = null;
188
	private LabelField traitementAcquisitionMarkLabel = null;
149
	private RadioGroup materielConservationCeRGrpChp = null;
189
	private RadioGroup materielConservationCeRGrpChp = null;
Line 150... Line -...
150
 
-
 
151
	private RadioGroup actionMarkRGrpChp;
-
 
152
	private TextField<String> nomStructureChp;
-
 
153
	private DateField dateFondationChp;
190
 
154
	private TextArea adrChp;
-
 
155
	private TextField<String> cpChp;
-
 
156
	private TextField<String> villeChp;
-
 
157
	private TextField<String> regionChp;
-
 
158
	private TextField<String> telChp;
-
 
159
	private TextField<String> faxChp;
-
 
160
	private TextField<String> emailChp;
-
 
161
	private TextField<String> urlChp;
-
 
162
	private ListStore<Valeur> magazinPays;
-
 
163
	private ComboBox<Valeur> comboPays;
-
 
164
	private HiddenField<String> idStructureChp;
191
	// Onglet VALORISATION
165
	private RadioGroup formationMarkRGrpChp;
-
 
166
	private RadioGroup interetFormationMarkRGrpChp;
192
	private RadioGroup actionMarkRGrpChp = null;
167
	private RadioGroup collectionCommuneMarkRGrpChp;
193
	private ContentPanel actionTrukCp = null;
168
	private RadioGroup accesControleMarkRGrpChp;
-
 
169
	private RadioGroup restaurationMarkRGrpChp;
-
 
170
	private RadioGroup traitementMarkRGrpChp;
-
 
171
	private RadioGroup collectionAcquisitionMarkRGrpChp;
-
 
172
	private RadioGroup echantillonAcquisitionMarkRGrpChp;
-
 
173
	private NumberField nbreTotalPersonneStructureChp;
-
 
174
	private TextField<String> localStockageAutreChp;
-
 
175
	private TextField<String> meubleStockageAutreChp;
-
 
176
	private TextField<String> parametreStockageAutreChp;
-
 
177
	private TextField<String> collectionAutreAutreChp;
-
 
178
	private TextField<String> autreCollectionAutreChp;
-
 
179
	private TextField<String> opRestauAutreChp;
-
 
180
	private TextField<String> autreMaterielAutreChp;
-
 
181
	private TextField<String> poisonTraitementAutreChp;
-
 
182
	private TextField<String> traitementAutreChp;
-
 
183
	private TextField<String> insecteTraitementAutreChp;
-
 
184
	private TextField<String> actionAutreChp;
-
 
185
	private TextField<String> provenanceRechercheAutreChp;
-
 
186
	private TextField<String> typeRecherche;
194
	private CheckBoxGroup actionTrukCacGrpChp = null;
187
	private RadioGroup futureActionMarkRGrpChp;
195
	private RadioGroup futureActionMarkRGrpChp;
188
	private RadioGroup rechercheMarkRGrpChp;
196
	private RadioGroup rechercheMarkRGrpChp;
189
	private RadioGroup sansMotifAccesMarkRGrpChp;
197
	private RadioGroup sansMotifAccesMarkRGrpChp;
190
	private RadioGroup avecMotifAccesMarkRGrpChp;
198
	private RadioGroup avecMotifAccesMarkRGrpChp;
191
	private TextField<String> publicationChp;
199
	private TextField<String> publicationChp;
192
	private ContentPanel materielConservationCp;
-
 
193
	private StructureConservation conservation;
-
 
Line 194... Line -...
194
	private StructureValorisation valorisation;
-
 
195
 
-
 
196
 
200
	private ContentPanel materielConservationCp;
197
	
201
 
198
	public FormStructureVue() {
202
	public FormStructureVue() {
199
		//+-----------------------------------------------------------------------------------------------------------+		
203
		//+-----------------------------------------------------------------------------------------------------------+		
200
		// Initialisation de variables
204
		// Initialisation de variables
Line 220... Line 224...
220
		onglets.setHeight("100%");
224
		onglets.setHeight("100%");
Line 221... Line 225...
221
		
225
		
222
		//+-----------------------------------------------------------------------------------------------------------+
226
		//+-----------------------------------------------------------------------------------------------------------+
223
		// Onlget formulaire IDENTIFICATION
227
		// Onlget formulaire IDENTIFICATION
224
		onglets.add(creerOngletIdentification());
228
		onglets.add(creerOngletIdentification());
225
 
229
		
226
		//+-----------------------------------------------------------------------------------------------------------+
230
		//+-----------------------------------------------------------------------------------------------------------+
227
		// Onlget formulaire PERSONNEL
231
		// Onlget formulaire PERSONNEL
Line 228... Line 232...
228
		onglets.add(creerOngletPersonnel());
232
		onglets.add(creerOngletPersonnel());
Line 278... Line 282...
278
		if (mode == "AJOUT") {
282
		if (mode == "AJOUT") {
279
			//mediateur.ajouterStructure(this, structure);
283
			//mediateur.ajouterStructure(this, structure);
280
		} else if (mode == "MODIF") {
284
		} else if (mode == "MODIF") {
281
			mediateur.modifierStructure(this, structure, conservation, valorisation);
285
			mediateur.modifierStructure(this, structure, conservation, valorisation);
282
		}
286
		}
283
		//GWT.log("Info Structure envoyées :\n"+structure.toString(), null);
287
		GWT.log("Info Structure envoyées :\n"+valorisation.toString(), null);
284
	}
288
	}
Line 285... Line 289...
285
	
289
	
-
 
290
	private StructureValorisation collecterStructureValorisation() {
-
 
291
		if (valorisationOnglet.getData("acces").equals(false)) {
-
 
292
			return valorisation;
286
	private StructureValorisation collecterStructureValorisation() {
293
		} else {
287
		// Création de l'objet
294
			// Création de l'objet
288
		StructureValorisation valorisation = new StructureValorisation();
295
			StructureValorisation valorisationModifie = new StructureValorisation();
289
		
296
			
290
		// ACTION
297
			// ACTION
291
		if (actionMarkRGrpChp.getValue() != null) {
298
			if (actionMarkRGrpChp.getValue() != null) {
-
 
299
				valorisationModifie.setAction(actionMarkRGrpChp.getValue().getValueAttribute());
-
 
300
			}
-
 
301
			
-
 
302
			// ACTION INFO
-
 
303
			valorisationModifie.setActionInfo(creerChaineDenormalisee(actionTrukCacGrpChp.getValues()));
-
 
304
			valorisationModifie.setActionInfo("AUTRE", actionAutreChp.getValue());
-
 
305
			
-
 
306
			// PUBLICATION
-
 
307
			valorisationModifie.setPublication(publicationChp.getValue());
-
 
308
			
-
 
309
			// COLLECTION AUTRE
-
 
310
			valorisationModifie.setCollectionAutre(creerChaineDenormalisee(autreCollectionTrukCacGrpChp.getValues()));
-
 
311
			valorisationModifie.setCollectionAutre("AUTRE", autreCollectionAutreChp.getValue());
-
 
312
			
-
 
313
			// ACTION FUTURE
-
 
314
			if (futureActionMarkRGrpChp.getValue() != null) {
-
 
315
				valorisationModifie.setActionFuture(futureActionMarkRGrpChp.getValue().getValueAttribute());
-
 
316
			}
-
 
317
			// ACTION FUTURE INFO
-
 
318
			valorisationModifie.setActionFutureInfo(futureActionChp.getValue());
-
 
319
			
-
 
320
			// RECHERCHE
-
 
321
			if (rechercheMarkRGrpChp.getValue() != null) {
-
 
322
				valorisationModifie.setRecherche(rechercheMarkRGrpChp.getValue().getValueAttribute());
-
 
323
			}
-
 
324
			
-
 
325
			// RECHERCHE PROVENANCE
-
 
326
			valorisationModifie.setRechercheProvenance(creerChaineDenormalisee(provenanceRechercheTrukCacGrpChp.getValues()));
-
 
327
			valorisationModifie.setRechercheProvenance("AUTRE", provenanceRechercheAutreChp.getValue());
-
 
328
			
-
 
329
			// RECHERCHE TYPE
-
 
330
			valorisationModifie.setRechercheType(creerChaineDenormalisee(typeRechercheTrukCacGrpChp.getValues()));
-
 
331
			valorisationModifie.setRechercheType("AUTRE", typeRechercheAutreChp.getValue());
-
 
332
			
-
 
333
			// ACCÈS SANS MOTIF
-
 
334
			if (sansMotifAccesMarkRGrpChp.getValue() != null) {
-
 
335
				valorisationModifie.setAccesSansMotif(sansMotifAccesMarkRGrpChp.getValue().getValueAttribute());
-
 
336
			}
-
 
337
			// ACCÈS SANS MOTIF INFO
-
 
338
			valorisationModifie.setAccesSansMotifInfo(sansMotifAccesChp.getValue());
-
 
339
			
-
 
340
			// VISITE AVEC MOTIF
-
 
341
			if (avecMotifAccesMarkRGrpChp.getValue() != null) {
-
 
342
				valorisationModifie.setVisiteAvecMotif(avecMotifAccesMarkRGrpChp.getValue().getValueAttribute());
-
 
343
			}
-
 
344
			// VISITE AVEC MOTIF INFO
-
 
345
			valorisationModifie.setVisiteAvecMotifInfo(avecMotifAccesChp.getValue());
-
 
346
			
292
			valorisation.setAction(actionMarkRGrpChp.getValue().getValueAttribute());
347
			return valorisationModifie;
293
		}
-
 
294
		
-
 
295
		// ACTION INFO
-
 
296
		valorisation.setActionInfo(creerChaineDenormalisee(actionTrukCacGrpChp.getValues()));
-
 
297
		valorisation.setActionInfo("AUTRE", actionAutreChp.getValue());
-
 
298
		
-
 
299
		// PUBLICATION
-
 
300
		
-
 
301
		// COLLECTION AUTRE
-
 
302
		
-
 
303
		// ACTION FUTURE
-
 
304
		
-
 
305
		// ACTION FUTURE INFO
-
 
306
		
-
 
307
		
-
 
308
		return valorisation;
348
		}
Line 309... Line 349...
309
	}
349
	}
-
 
350
	
310
	
351
	private void peuplerStructureValorisation() {
311
	private void peuplerStructureValorisation() {
352
		if (valorisation != null) {
312
		// ACTION
353
			// ACTION
313
		actionMarkRGrpChp.get((valorisation.getAction().equals("1") ? 0 : 1)).setValue((valorisation.getAction().equals("1") ? true : false));
354
			actionMarkRGrpChp.get((valorisation.getAction().equals("1") ? 0 : 1)).setValue((valorisation.getAction().equals("1") ? true : false));
314
		
355
			
315
		// ACTION INFO
356
			// ACTION INFO
316
		peuplerCasesACocher(valorisation.getActionInfo(), actionTrukCacGrpChp, actionAutreChp);
357
			peuplerCasesACocher(valorisation.getActionInfo(), actionTrukCacGrpChp, actionAutreChp);
-
 
358
			
317
		
359
			// PUBLICATION
318
		// PUBLICATION
360
			publicationChp.setValue(valorisation.getPublication());
-
 
361
			
319
		
362
			// COLLECTION AUTRE
320
		// COLLECTION AUTRE
363
			peuplerCasesACocher(valorisation.getCollectionAutre(), autreCollectionTrukCacGrpChp, autreCollectionAutreChp);
-
 
364
			
321
		
365
			// ACTION FUTURE
322
		// ACTION FUTURE
366
			futureActionMarkRGrpChp.get((valorisation.getActionFuture().equals("1") ? 0 : 1)).setValue((valorisation.getActionFuture().equals("1") ? true : false));
-
 
367
			
-
 
368
			// ACTION FUTURE INFO
-
 
369
			futureActionChp.setValue(valorisation.getActionFutureInfo());
-
 
370
			
-
 
371
			// RECHERCHE
-
 
372
			rechercheMarkRGrpChp.get((valorisation.getRecherche().equals("1") ? 0 : 1)).setValue((valorisation.getRecherche().equals("1") ? true : false));
-
 
373
			// RECHERCHE PROVENANCE
-
 
374
			peuplerCasesACocher(valorisation.getRechercheProvenance(), provenanceRechercheTrukCacGrpChp, provenanceRechercheAutreChp);
-
 
375
			// RECHERCHE TYPE
-
 
376
			peuplerCasesACocher(valorisation.getRechercheType(), typeRechercheTrukCacGrpChp, typeRechercheAutreChp);
-
 
377
 
-
 
378
			// ACCÈS SANS MOTIF
-
 
379
			sansMotifAccesMarkRGrpChp.get((valorisation.getAccesSansMotif().equals("1") ? 0 : 1)).setValue((valorisation.getAccesSansMotif().equals("1") ? true : false));
-
 
380
			// ACCÈS SANS MOTIF INFO
-
 
381
			sansMotifAccesChp.setValue(valorisation.getAccesSansMotifInfo());
-
 
382
			
-
 
383
			// VISITE AVEC MOTIF
-
 
384
			avecMotifAccesMarkRGrpChp.get((valorisation.getVisiteAvecMotif().equals("1") ? 0 : 1)).setValue((valorisation.getVisiteAvecMotif().equals("1") ? true : false));
-
 
385
			// VISITE AVEC MOTIF INFO
323
		
386
			avecMotifAccesChp.setValue(valorisation.getVisiteAvecMotifInfo());
Line 324... Line 387...
324
		// ACTION FUTURE INFO
387
		}
325
	}
-
 
326
	
-
 
327
	private StructureConservation collecterStructureConservation() {
-
 
328
		// Création de l'objet
-
 
329
		StructureConservation conservation = new StructureConservation();
-
 
330
		
-
 
331
		// FORMATION
-
 
332
		if (formationMarkRGrpChp.getValue() != null) {
-
 
333
			conservation.setFormation(formationMarkRGrpChp.getValue().getValueAttribute());
388
	}
334
		}
389
	
335
		// FORMATION INFO
-
 
336
		conservation.setFormationInfo(formationChp.getValue());
-
 
337
		// FORMATION INTERET
390
	private StructureConservation collecterStructureConservation() {
338
		if (interetFormationMarkRGrpChp.getValue() != null) {
-
 
339
			conservation.setFormationInteret(interetFormationMarkRGrpChp.getValue().getValueAttribute());
-
 
340
		}
-
 
341
		
-
 
342
		// STOCKAGE LOCAL
-
 
343
		conservation.setStockageLocal(creerChaineDenormalisee(localStockageTrukCacGrpChp.getValues()));
-
 
344
		conservation.setStockageLocal("AUTRE", localStockageAutreChp.getValue());
-
 
345
 
-
 
346
		// STOCKAGE MEUBLE
-
 
347
		conservation.setStockageMeuble(creerChaineDenormalisee(meubleStockageTrukCacGrpChp.getValues()));
-
 
348
		conservation.setStockageMeuble("AUTRE", meubleStockageAutreChp.getValue());
-
 
349
		
-
 
350
		// STOCKAGE PAREMETRE
-
 
351
		conservation.setStockageParametre(creerChaineDenormalisee(parametreStockageTrukCacGrpChp.getValues()));
391
		if (conservationOnglet.getData("acces").equals(false)) {
352
		conservation.setStockageParametre("AUTRE", parametreStockageAutreChp.getValue());
-
 
353
		
-
 
354
		// COLLECTION COMMUNE
-
 
355
		if (collectionCommuneMarkRGrpChp.getValue() != null) {
-
 
356
			conservation.setCollectionCommune(collectionCommuneMarkRGrpChp.getValue().getValueAttribute());
-
 
357
		}
-
 
358
		// COLLECTION AUTRE
-
 
359
		conservation.setCollectionAutre(creerChaineDenormalisee(collectionAutreTrukCacGrpChp.getValues()));
-
 
360
		conservation.setCollectionAutre("AUTRE", collectionAutreAutreChp.getValue());
-
 
361
		
-
 
362
		// ACCÈS CONTROLÉ
-
 
363
		if (accesControleMarkRGrpChp.getValue() != null) {
-
 
364
			conservation.setAccesControle(accesControleMarkRGrpChp.getValue().getValueAttribute());
-
 
365
		}
-
 
366
		
-
 
367
		// RESTAURATION
-
 
368
		if (restaurationMarkRGrpChp.getValue() != null) {
-
 
369
			conservation.setRestauration(restaurationMarkRGrpChp.getValue().getValueAttribute());
-
 
370
		}
392
			return conservation;
371
		// RESTAURATION OPÉRATION
-
 
372
		conservation.setRestaurationOperation(creerChaineDenormalisee(opRestauTrukCacGrpChp.getValues()));
-
 
373
		conservation.setRestaurationOperation("AUTRE", opRestauAutreChp.getValue());
-
 
374
		
-
 
375
		// MATERIEL CONSERVATION
-
 
Line -... Line 393...
-
 
393
		} else {
-
 
394
			// Création de l'objet
-
 
395
			StructureConservation conservationModifie = new StructureConservation();
-
 
396
			
-
 
397
			// FORMATION
-
 
398
			if (formationMarkRGrpChp.getValue() != null) {
-
 
399
				conservationModifie.setFormation(formationMarkRGrpChp.getValue().getValueAttribute());
-
 
400
			}
-
 
401
			// FORMATION INFO
-
 
402
			conservationModifie.setFormationInfo(formationChp.getValue());
-
 
403
			// FORMATION INTERET
-
 
404
			if (interetFormationMarkRGrpChp.getValue() != null) {
-
 
405
				conservationModifie.setFormationInteret(interetFormationMarkRGrpChp.getValue().getValueAttribute());
-
 
406
			}
-
 
407
			
-
 
408
			// STOCKAGE LOCAL
-
 
409
			conservationModifie.setStockageLocal(creerChaineDenormalisee(localStockageTrukCacGrpChp.getValues()));
-
 
410
			conservationModifie.setStockageLocal("AUTRE", localStockageAutreChp.getValue());
-
 
411
	
-
 
412
			// STOCKAGE MEUBLE
-
 
413
			conservationModifie.setStockageMeuble(creerChaineDenormalisee(meubleStockageTrukCacGrpChp.getValues()));
-
 
414
			conservationModifie.setStockageMeuble("AUTRE", meubleStockageAutreChp.getValue());
-
 
415
			
-
 
416
			// STOCKAGE PAREMETRE
-
 
417
			conservationModifie.setStockageParametre(creerChaineDenormalisee(parametreStockageTrukCacGrpChp.getValues()));
-
 
418
			conservationModifie.setStockageParametre("AUTRE", parametreStockageAutreChp.getValue());
-
 
419
			
-
 
420
			// COLLECTION COMMUNE
-
 
421
			if (collectionCommuneMarkRGrpChp.getValue() != null) {
-
 
422
				conservationModifie.setCollectionCommune(collectionCommuneMarkRGrpChp.getValue().getValueAttribute());
-
 
423
			}
-
 
424
			// COLLECTION AUTRE
-
 
425
			conservationModifie.setCollectionAutre(creerChaineDenormalisee(collectionAutreTrukCacGrpChp.getValues()));
-
 
426
			conservationModifie.setCollectionAutre("AUTRE", collectionAutreAutreChp.getValue());
-
 
427
			
-
 
428
			// ACCÈS CONTROLÉ
-
 
429
			if (accesControleMarkRGrpChp.getValue() != null) {
-
 
430
				conservationModifie.setAccesControle(accesControleMarkRGrpChp.getValue().getValueAttribute());
-
 
431
			}
-
 
432
			
-
 
433
			// RESTAURATION
-
 
434
			if (restaurationMarkRGrpChp.getValue() != null) {
-
 
435
				conservationModifie.setRestauration(restaurationMarkRGrpChp.getValue().getValueAttribute());
-
 
436
			}
-
 
437
			// RESTAURATION OPÉRATION
-
 
438
			conservationModifie.setRestaurationOperation(creerChaineDenormalisee(opRestauTrukCacGrpChp.getValues()));
-
 
439
			conservationModifie.setRestaurationOperation("AUTRE", opRestauAutreChp.getValue());
-
 
440
			
-
 
441
			// MATERIEL CONSERVATION
376
		if (materielConservationCeRGrpChp.getValue() != null) {
442
			if (materielConservationCeRGrpChp.getValue() != null) {
377
			conservation.setMaterielConservation(materielConservationCeRGrpChp.getValue().getValueAttribute());
443
				conservationModifie.setMaterielConservation(materielConservationCeRGrpChp.getValue().getValueAttribute());
378
		}
444
			}
379
			
445
				
380
		// MATERIEL AUTRE
446
			// MATERIEL AUTRE
381
		conservation.setMaterielAutre(creerChaineDenormalisee(autreMaterielTrukCacGrpChp.getValues()));
447
			conservationModifie.setMaterielAutre(creerChaineDenormalisee(autreMaterielTrukCacGrpChp.getValues()));
382
		conservation.setMaterielAutre("AUTRE", autreMaterielAutreChp.getValue());
448
			conservationModifie.setMaterielAutre("AUTRE", autreMaterielAutreChp.getValue());
383
		
449
			
384
		// TRAITEMENT
450
			// TRAITEMENT
385
		if (traitementMarkRGrpChp.getValue() != null) {
451
			if (traitementMarkRGrpChp.getValue() != null) {
386
			conservation.setTraitement(traitementMarkRGrpChp.getValue().getValueAttribute());
452
				conservationModifie.setTraitement(traitementMarkRGrpChp.getValue().getValueAttribute());
387
		}
453
			}
388
		// TRAIEMENTS
454
			// TRAIEMENTS
389
		conservation.setTraitements(creerChaineDenormalisee(traitementTrukCacGrpChp.getValues()));
455
			conservationModifie.setTraitements(creerChaineDenormalisee(traitementTrukCacGrpChp.getValues()));
390
		conservation.setTraitements("AUTRE", traitementAutreChp.getValue());
456
			conservationModifie.setTraitements("AUTRE", traitementAutreChp.getValue());
391
		
457
			
392
		
458
			
393
		// ACQUISITION COLLECTION
459
			// ACQUISITION COLLECTION
394
		if (collectionAcquisitionMarkRGrpChp.getValue() != null) {
460
			if (collectionAcquisitionMarkRGrpChp.getValue() != null) {
395
			conservation.setAcquisitionCollection(collectionAcquisitionMarkRGrpChp.getValue().getValueAttribute());
461
				conservationModifie.setAcquisitionCollection(collectionAcquisitionMarkRGrpChp.getValue().getValueAttribute());
396
		}
462
			}
397
		
463
			
398
		// ACQUISITION ECHANTILLON
464
			// ACQUISITION ECHANTILLON
399
		if (echantillonAcquisitionMarkRGrpChp.getValue() != null) {
465
			if (echantillonAcquisitionMarkRGrpChp.getValue() != null) {
400
			conservation.setAcquisitionEchantillon(echantillonAcquisitionMarkRGrpChp.getValue().getValueAttribute());
466
				conservationModifie.setAcquisitionEchantillon(echantillonAcquisitionMarkRGrpChp.getValue().getValueAttribute());
-
 
467
			}
-
 
468
			// ACQUISITION TRAITEMENT
-
 
469
			if (traitementAcquisitionMarkRGrpChp.getValue() != null) {
-
 
470
				conservationModifie.setAcquisitionTraitement(traitementAcquisitionMarkRGrpChp.getValue().getValueAttribute());
-
 
471
			}
-
 
472
			// ACQUISITION TRAITEMENT POISON
-
 
473
			conservationModifie.setAcquisitionTraitementPoison(creerChaineDenormalisee(poisonTraitementTrukCacGrpChp.getValues()));
-
 
474
			conservationModifie.setAcquisitionTraitementPoison("AUTRE", poisonTraitementAutreChp.getValue());
-
 
475
			// ACQUISITION TRAITEMENT INSECTE
-
 
476
			conservationModifie.setAcquisitionTraitementInsecte(creerChaineDenormalisee(insecteTraitementTrukCacGrpChp.getValues()));
-
 
477
			conservationModifie.setAcquisitionTraitementInsecte("AUTRE", insecteTraitementAutreChp.getValue());
401
		}
478
			
402
		// ACQUISITION TRAITEMENT
-
 
403
		if (traitementAcquisitionMarkRGrpChp.getValue() != null) {
-
 
404
			conservation.setAcquisitionTraitement(traitementAcquisitionMarkRGrpChp.getValue().getValueAttribute());
-
 
405
		}
-
 
406
		// ACQUISITION TRAITEMENT POISON
-
 
407
		conservation.setAcquisitionTraitementPoison(creerChaineDenormalisee(poisonTraitementTrukCacGrpChp.getValues()));
-
 
408
		conservation.setAcquisitionTraitementPoison("AUTRE", poisonTraitementAutreChp.getValue());
-
 
409
		// ACQUISITION TRAITEMENT INSECTE
-
 
410
		conservation.setAcquisitionTraitementInsecte(creerChaineDenormalisee(insecteTraitementTrukCacGrpChp.getValues()));
-
 
411
		conservation.setAcquisitionTraitementInsecte("AUTRE", insecteTraitementAutreChp.getValue());
-
 
412
		
479
			// Retour de l'objet
Line 413... Line 480...
413
		// Retour de l'objet
480
			//GWT.log(conservationLocal.toString(), null);
-
 
481
			return conservationModifie;
414
		GWT.log(conservation.toString(), null);
482
		}
415
		return conservation;
483
	}
416
	}
484
	
417
	
485
	private void peuplerStructureConservation() {
418
	private void peuplerStructureConservation() {
486
		if (conservation != null) {
419
		// FORMATION
487
			// FORMATION
420
		// Bouton oui, à toujours l'index 0 donc on teste en fonction...
488
			// Bouton oui, à toujours l'index 0 donc on teste en fonction...
421
		formationMarkRGrpChp.get((conservation.getFormation().equals("1") ? 0 : 1)).setValue((conservation.getFormation().equals("1") ? true : false));
489
			formationMarkRGrpChp.get((conservation.getFormation().equals("1") ? 0 : 1)).setValue((conservation.getFormation().equals("1") ? true : false));
422
		// FORMATION INFO
490
			// FORMATION INFO
423
		formationChp.setValue(conservation.getFormationInfo());
491
			formationChp.setValue(conservation.getFormationInfo());
424
		// FORMATION INTERET
492
			// FORMATION INTERET
425
		interetFormationMarkRGrpChp.get((conservation.getFormationInteret().equals("1") ? 0 : 1)).setValue((conservation.getFormationInteret().equals("1") ? true : false));
493
			interetFormationMarkRGrpChp.get((conservation.getFormationInteret().equals("1") ? 0 : 1)).setValue((conservation.getFormationInteret().equals("1") ? true : false));
426
 
494
	
427
		// STOCKAGE LOCAL		
495
			// STOCKAGE LOCAL		
428
		peuplerCasesACocher(conservation.getStockageLocal(), localStockageTrukCacGrpChp,localStockageAutreChp);
496
			peuplerCasesACocher(conservation.getStockageLocal(), localStockageTrukCacGrpChp,localStockageAutreChp);
429
 
497
	
430
		// STOCKAGE MEUBLE
498
			// STOCKAGE MEUBLE
431
		peuplerCasesACocher(conservation.getStockageMeuble(), meubleStockageTrukCacGrpChp, meubleStockageAutreChp);
499
			peuplerCasesACocher(conservation.getStockageMeuble(), meubleStockageTrukCacGrpChp, meubleStockageAutreChp);
432
 
500
	
433
		// STOCKAGE PAREMETRE
501
			// STOCKAGE PAREMETRE
434
		peuplerCasesACocher(conservation.getStockageParametre(), parametreStockageTrukCacGrpChp, parametreStockageAutreChp);
502
			peuplerCasesACocher(conservation.getStockageParametre(), parametreStockageTrukCacGrpChp, parametreStockageAutreChp);
435
		
503
			
436
		// COLLECTION COMMUNE
504
			// COLLECTION COMMUNE
437
		collectionCommuneMarkRGrpChp.get((conservation.getCollectionCommune().equals("1") ? 0 : 1)).setValue((conservation.getCollectionCommune().equals("1") ? true : false));
505
			collectionCommuneMarkRGrpChp.get((conservation.getCollectionCommune().equals("1") ? 0 : 1)).setValue((conservation.getCollectionCommune().equals("1") ? true : false));
438
		// COLLECTION AUTRE
506
			// COLLECTION AUTRE
439
		peuplerCasesACocher(conservation.getCollectionAutre(), collectionAutreTrukCacGrpChp, collectionAutreAutreChp);
507
			peuplerCasesACocher(conservation.getCollectionAutre(), collectionAutreTrukCacGrpChp, collectionAutreAutreChp);
440
		
508
			
441
		// ACCÈS CONTROLÉ
509
			// ACCÈS CONTROLÉ
442
		accesControleMarkRGrpChp.get((conservation.getAccesControle().equals("1") ? 0 : 1)).setValue((conservation.getAccesControle().equals("1") ? true : false));
510
			accesControleMarkRGrpChp.get((conservation.getAccesControle().equals("1") ? 0 : 1)).setValue((conservation.getAccesControle().equals("1") ? true : false));
443
		
511
			
444
		// RESTAURATION
512
			// RESTAURATION
445
		restaurationMarkRGrpChp.get((conservation.getRestauration().equals("1") ? 0 : 1)).setValue((conservation.getRestauration().equals("1") ? true : false));
513
			restaurationMarkRGrpChp.get((conservation.getRestauration().equals("1") ? 0 : 1)).setValue((conservation.getRestauration().equals("1") ? true : false));
446
		// RESTAURATION OPÉRATION
514
			// RESTAURATION OPÉRATION
447
		peuplerCasesACocher(conservation.getRestaurationOperation(), opRestauTrukCacGrpChp, opRestauAutreChp);
515
			peuplerCasesACocher(conservation.getRestaurationOperation(), opRestauTrukCacGrpChp, opRestauAutreChp);
448
		
516
			
449
		// MATERIEL CONSERVATION
517
			// MATERIEL CONSERVATION
450
		peuplerBoutonsRadio(conservation.getMaterielConservation(), materielConservationCeRGrpChp);
518
			peuplerBoutonsRadio(conservation.getMaterielConservation(), materielConservationCeRGrpChp);
451
		
519
			
452
		// MATERIEL AUTRE
520
			// MATERIEL AUTRE
453
		peuplerCasesACocher(conservation.getMaterielAutre(), autreMaterielTrukCacGrpChp, autreMaterielAutreChp);
521
			peuplerCasesACocher(conservation.getMaterielAutre(), autreMaterielTrukCacGrpChp, autreMaterielAutreChp);
454
		
522
			
455
		// TRAITEMENT
523
			// TRAITEMENT
456
		traitementMarkRGrpChp.get((conservation.getTraitement().equals("1") ? 0 : 1)).setValue((conservation.getTraitement().equals("1") ? true : false));
524
			traitementMarkRGrpChp.get((conservation.getTraitement().equals("1") ? 0 : 1)).setValue((conservation.getTraitement().equals("1") ? true : false));
457
		// TRAITEMENTS
525
			// TRAITEMENTS
458
		peuplerCasesACocher(conservation.getTraitements(), traitementTrukCacGrpChp, traitementAutreChp);
526
			peuplerCasesACocher(conservation.getTraitements(), traitementTrukCacGrpChp, traitementAutreChp);
459
		
527
			
460
		// ACQUISITION COLLECTION
528
			// ACQUISITION COLLECTION
461
		collectionAcquisitionMarkRGrpChp.get((conservation.getAcquisitionCollection().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionCollection().equals("1") ? true : false));
529
			collectionAcquisitionMarkRGrpChp.get((conservation.getAcquisitionCollection().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionCollection().equals("1") ? true : false));
462
		
530
			
463
		// ACQUISITION ECHANTILLON
531
			// ACQUISITION ECHANTILLON
464
		echantillonAcquisitionMarkRGrpChp.get((conservation.getAcquisitionEchantillon().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionEchantillon().equals("1") ? true : false));
532
			echantillonAcquisitionMarkRGrpChp.get((conservation.getAcquisitionEchantillon().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionEchantillon().equals("1") ? true : false));
465
		
533
			
466
		// ACQUISITION TRAITEMENT
534
			// ACQUISITION TRAITEMENT
467
		traitementAcquisitionMarkRGrpChp.get((conservation.getAcquisitionTraitement().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionTraitement().equals("1") ? true : false));
535
			traitementAcquisitionMarkRGrpChp.get((conservation.getAcquisitionTraitement().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionTraitement().equals("1") ? true : false));
-
 
536
			
468
		
537
			// ACQUISITION TRAITEMENT POISON
Line 469... Line 538...
469
		// ACQUISITION TRAITEMENT POISON
538
			peuplerCasesACocher(conservation.getAcquisitionTraitementPoison(), poisonTraitementTrukCacGrpChp, poisonTraitementAutreChp);
470
		peuplerCasesACocher(conservation.getAcquisitionTraitementPoison(), poisonTraitementTrukCacGrpChp, poisonTraitementAutreChp);
539
			// ACQUISITION TRAITEMENT INSECTE
471
		// ACQUISITION TRAITEMENT INSECTE
540
			peuplerCasesACocher(conservation.getAcquisitionTraitementInsecte(), insecteTraitementTrukCacGrpChp, insecteTraitementAutreChp);
Line 479... Line 548...
479
		structure.setNom(nomStructureChp.getValue());
548
		structure.setNom(nomStructureChp.getValue());
480
		// Récupération de l'acronyme (= identifiant alternatif)
549
		// Récupération de l'acronyme (= identifiant alternatif)
481
		structure.setIdAlternatif(null);
550
		structure.setIdAlternatif(null);
482
		if (comboAcronyme.getValue() != null) {
551
		if (comboAcronyme.getValue() != null) {
483
			String typeAcronyme = comboAcronyme.getValue().getAbr();
552
			String typeAcronyme = comboAcronyme.getValue().getAbr();
484
			GWT.log("Acronyme : "+typeAcronyme, null);
-
 
485
			if (typeAcronyme == "IH") {
553
			if (typeAcronyme == "IH") {
486
				structure.setIdAlternatif(typeAcronyme+"##"+ihChp.getValue());
554
				structure.setIdAlternatif(typeAcronyme+"##"+ihChp.getValue());
487
			} else if (typeAcronyme == "MNHN") {
555
			} else if (typeAcronyme == "MNHN") {
488
				structure.setIdAlternatif(typeAcronyme+"##"+mnhnChp.getValue());
556
				structure.setIdAlternatif(typeAcronyme+"##"+mnhnChp.getValue());
489
			}
557
			}
Line 491... Line 559...
491
		// Récupération statut de la structure
559
		// Récupération statut de la structure
492
		structure.setTypePublic(null);
560
		structure.setTypePublic(null);
493
		structure.setTypePrive(null);
561
		structure.setTypePrive(null);
494
		if (comboTypeStructure.getValue() != null) {
562
		if (comboTypeStructure.getValue() != null) {
495
			String typeStructure = comboTypeStructure.getValue().getAbr();
563
			String typeStructure = comboTypeStructure.getValue().getAbr();
496
			GWT.log("Statut : "+typeStructure, null);
-
 
497
			if (typeStructure == "stpu" && comboLstpu.getValue() != null) {
564
			if (typeStructure == "stpu" && comboLstpu.getValue() != null) {
498
				structure.setTypePublic(comboLstpu.getValue().getId());
565
				structure.setTypePublic(comboLstpu.getValue().getId());
499
			} else if (typeStructure == "stpr" && comboLstpr.getValue() != null) {
566
			} else if (typeStructure == "stpr" && comboLstpr.getValue() != null) {
500
				structure.setTypePrive(comboLstpr.getValue().getId());
567
				structure.setTypePrive(comboLstpr.getValue().getId());
501
			}
568
			}
Line 521... Line 588...
521
		// CONSERVATION
588
		// CONSERVATION
Line 522... Line 589...
522
		
589
		
523
		return structure;
590
		return structure;
Line 524... Line -...
524
	}
-
 
525
	
591
	}
526
	
592
	
527
	private void peuplerStructureIdentification(Structure str) {
593
	private void peuplerStructureIdentification(Structure str) {
528
		idStructureChp.setValue(str.getId());
594
		idStructureChp.setValue(str.getId());
529
		nomStructureChp.setValue(str.getNom());
595
		nomStructureChp.setValue(str.getNom());
Line 550... Line 616...
550
		}
616
		}
551
		dateFondationChp.setValue(str.getDateFondation());
617
		dateFondationChp.setValue(str.getDateFondation());
Line 552... Line 618...
552
		
618
		
553
		adrChp.setValue(str.getAdresse());
619
		adrChp.setValue(str.getAdresse());
554
		cpChp.setValue(str.getCodePostal());
-
 
555
		GWT.log("Classe :"+this.getClass(), null);
620
		cpChp.setValue(str.getCodePostal());
556
		villeChp.setValue(str.getVille());
621
		villeChp.setValue(str.getVille());
557
		regionChp.setValue(str.getRegion());
622
		regionChp.setValue(str.getRegion());
558
		if (str.getPays().matches("^[A-Z]{2}$")) {
623
		if (str.getPays().matches("^[A-Z]{2}$")) {
559
			comboPays.setValue(comboPays.getStore().findModel("abreviation", str.getPays()));
624
			comboPays.setValue(comboPays.getStore().findModel("abreviation", str.getPays()));
Line 570... Line 635...
570
	private TabItem creerOngletValorisation() {
635
	private TabItem creerOngletValorisation() {
571
		valorisationOnglet = new TabItem();  
636
		valorisationOnglet = new TabItem();  
572
		valorisationOnglet.setText("Valorisation");
637
		valorisationOnglet.setText("Valorisation");
573
		valorisationOnglet.setScrollMode(Scroll.AUTO);
638
		valorisationOnglet.setScrollMode(Scroll.AUTO);
574
		valorisationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
639
		valorisationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
-
 
640
		valorisationOnglet.setData("acces", false); // Permet de savoir si l'onblet a été accédé par l'utilisateur
575
		valorisationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
641
		valorisationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
576
			public void handleEvent(ComponentEvent be) {
642
			public void handleEvent(ComponentEvent be) {
-
 
643
				// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter... 
-
 
644
				valorisationOnglet.setData("acces", true);
577
				peuplerStructureValorisation();
645
				peuplerStructureValorisation();
578
			}
646
			}
579
		});
647
		});
Line 580... Line 648...
580
		
648
		
Line 587... Line 655...
587
		actionTrukCp.hide();
655
		actionTrukCp.hide();
588
		actionTrukCacGrpChp = new CheckBoxGroup();
656
		actionTrukCacGrpChp = new CheckBoxGroup();
589
		actionTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
657
		actionTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
590
		valorisationOnglet.add(actionTrukCp);
658
		valorisationOnglet.add(actionTrukCp);
Line 591... Line 659...
591
		
659
		
592
		publicationChp = new TextField<String>();
660
		publicationChp = new TextArea();
593
		publicationChp.setFieldLabel("Quelques titres des ouvrages, articles scientifiques, ...");
661
		publicationChp.setFieldLabel("Quelques titres des ouvrages, articles scientifiques, ...");
Line 594... Line 662...
594
		valorisationOnglet.add(publicationChp);
662
		valorisationOnglet.add(publicationChp, new FormData(550, 0));
595
		
663
		
596
		autreCollectionTrukCp = creerChoixMultipleCp("autreCollection");
664
		autreCollectionTrukCp = creerChoixMultipleCp("autreCollection");
597
		autreCollectionTrukCacGrpChp = new CheckBoxGroup();
665
		autreCollectionTrukCacGrpChp = new CheckBoxGroup();
Line 598... Line 666...
598
		autreCollectionTrukCacGrpChp.setFieldLabel("L'organisme dispose-t-il d'autres collections (permettant une valorisation pluridisciplinaire) ?");
666
		autreCollectionTrukCacGrpChp.setFieldLabel("L'organisme dispose-t-il d'autres collections (permettant une valorisation pluridisciplinaire) ?");
599
		valorisationOnglet.add(autreCollectionTrukCp);
667
		valorisationOnglet.add(autreCollectionTrukCp);
600
		
668
		
Line 601... Line 669...
601
		futureActionMarkRGrpChp = creerChoixUniqueRadioGroupe("future_action_mark", "ouiNon");
669
		futureActionMarkRGrpChp = creerChoixUniqueRadioGroupe("future_action_mark", "ouiNon");
602
		futureActionMarkRGrpChp.setFieldLabel("Envisagez vous des actions de valorisation dans le cadre de votre politique culturelle ?");
670
		futureActionMarkRGrpChp.setFieldLabel("Envisagez vous des actions de valorisation dans le cadre de votre politique culturelle ?");
603
		valorisationOnglet.add(futureActionMarkRGrpChp);
671
		valorisationOnglet.add(futureActionMarkRGrpChp);
604
		
672
		
Line 605... Line 673...
605
		futureActionChp = new TextField<String>();
673
		futureActionChp = new TextArea();
606
		futureActionChp.setFieldLabel("Si oui, lesquelles ?");
674
		futureActionChp.setFieldLabel("Si oui, lesquelles ?");
607
		futureActionChp.hide();
675
		futureActionChp.hide();
Line 625... Line 693...
625
		
693
		
626
		sansMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("sans_motif_acces_mark", "ouiNon");
694
		sansMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("sans_motif_acces_mark", "ouiNon");
627
		sansMotifAccesMarkRGrpChp.setFieldLabel("Peut-on consulter vos collections botaniques sans motif de recherches scientifiques ?");
695
		sansMotifAccesMarkRGrpChp.setFieldLabel("Peut-on consulter vos collections botaniques sans motif de recherches scientifiques ?");
Line 628... Line 696...
628
		valorisationOnglet.add(sansMotifAccesMarkRGrpChp);
696
		valorisationOnglet.add(sansMotifAccesMarkRGrpChp);
629
		
697
		
630
		sansMotifAccesChp = new TextField<String>();
698
		valorisationOnglet.add(sansMotifAccesChp = new TextArea(), new FormData(550, 0));
631
		sansMotifAccesChp.hide();
-
 
Line 632... Line 699...
632
		sansMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les consulter ?");
699
		sansMotifAccesChp.hide();
633
		valorisationOnglet.add(sansMotifAccesChp);
700
		sansMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les consulter ?");
634
		
701
		
Line 635... Line 702...
635
		avecMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("avec_motif_acces_mark", "ouiNon");
702
		avecMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("avec_motif_acces_mark", "ouiNon");
636
		avecMotifAccesMarkRGrpChp.setFieldLabel("Peut-on visiter vos collections botaniques avec des objectifs de recherches scientifiques ?");
703
		avecMotifAccesMarkRGrpChp.setFieldLabel("Peut-on visiter vos collections botaniques avec des objectifs de recherches scientifiques ?");
637
		valorisationOnglet.add(avecMotifAccesMarkRGrpChp);
704
		valorisationOnglet.add(avecMotifAccesMarkRGrpChp);
Line 638... Line 705...
638
		
705
		
639
		valorisationOnglet.add(avecMotifAccesChp = new TextField<String>());
706
		valorisationOnglet.add(avecMotifAccesChp = new TextArea(), new FormData(550, 0));
Line 640... Line -...
640
		avecMotifAccesChp.hide();
-
 
641
		avecMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les visiter ?");
707
		avecMotifAccesChp.hide();
642
		
708
		avecMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les visiter ?");
643
		return valorisationOnglet;
709
		
644
	}
710
		return valorisationOnglet;
645
	
711
	}
-
 
712
	
646
	
713
	private TabItem creerOngletConservation() {
647
	private TabItem creerOngletConservation() {
714
		conservationOnglet = new TabItem();
-
 
715
		conservationOnglet.setText("Conservation");
-
 
716
		conservationOnglet.setScrollMode(Scroll.AUTO);
648
		conservationOnglet = new TabItem();
717
		conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
649
		conservationOnglet.setText("Conservation");
718
		conservationOnglet.setData("acces", false);
650
		conservationOnglet.setScrollMode(Scroll.AUTO);
719
		conservationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
Line 651... Line 720...
651
		conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
720
			public void handleEvent(ComponentEvent be) {  
652
		conservationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {  
721
				// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
Line 1264... Line 1333...
1264
		'<div class="x-combo-list-item">{nom} ({abreviation})</div>', 
1333
		'<div class="x-combo-list-item">{nom} ({abreviation})</div>', 
1265
		'</tpl>' 
1334
		'</tpl>' 
1266
		].join(""); 
1335
		].join(""); 
1267
		}-*/;
1336
		}-*/;
Line 1268... Line -...
1268
	
-
 
1269
	
-
 
1270
	
1337
	
1271
	private void peuplerCasesACocher(String donnees, CheckBoxGroup groupeCac, TextField<String> champAutre) {
1338
	private void peuplerCasesACocher(String donnees, CheckBoxGroup groupeCac, TextField<String> champAutre) {
1272
		String[] valeurs = donnees.split(";;");
1339
		String[] valeurs = donnees.split(";;");
1273
		for (int i = 0; i < valeurs.length; i++) {
1340
		for (int i = 0; i < valeurs.length; i++) {
1274
			if (valeurs[i].startsWith("AUTRE##")) {
1341
			if (valeurs[i].startsWith("AUTRE##")) {
Line 1489... Line 1556...
1489
		}
1556
		}
Line 1490... Line 1557...
1490
		
1557
		
1491
		cp.layout();
1558
		cp.layout();
Line 1492... Line -...
1492
	}
-
 
1493
	
1559
	}
1494
 
1560
	
1495
	public void rafraichir(Object nouvelleDonnees) {
1561
	public void rafraichir(Object nouvelleDonnees) {
1496
		if (nouvelleDonnees instanceof Information) {
1562
		if (nouvelleDonnees instanceof Information) {
1497
			Information info = (Information) nouvelleDonnees;
1563
			Information info = (Information) nouvelleDonnees;
1498
			if (info.getMessages() != null) {
1564
			if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
1499
				GWT.log(info.getMessages().toString(), null);
1565
				GWT.log(info.getMessages().toString(), null);
1500
			}
1566
			}
1501
			if (info.getType().equals("modif_structure")) {
1567
			if (info.getType().equals("modif_structure")) {
1502
				Info.display("Modification d'une institution", info.toString());
1568
				Info.display("Modification d'une institution", info.toString());
1503
			} else if (info.getType().equals("ajout_structure")) {
1569
			} else if (info.getType().equals("ajout_structure")) {
1504
				Info.display("Ajout d'une Institution", info.toString());
1570
				Info.display("Ajout d'une Institution", info.toString());
1505
			} else if (info.getType().equals("selection_structure")) {
1571
			} else if (info.getType().equals("selection_structure")) {
1506
				Info.display("Modification d'une institution", info.toString());
1572
				Info.display("Modification d'une institution", info.toString());
1507
				mode = "MODIF";
1573
				mode = "MODIF";
1508
				GWT.log(mode, null);
1574
				GWT.log("Mode du formulaire : "+mode, null);
1509
				String titre = i18nC.titreModifFormStructurePanneau();
1575
				String titre = i18nC.titreModifFormStructurePanneau();
1510
				if (info.getDonnee(0) != null) {
1576
				if (info.getDonnee(0) != null) {
1511
					Structure str = (Structure) info.getDonnee(0);
1577
					Structure str = (Structure) info.getDonnee(0);
Line 1518... Line 1584...
1518
						peuplerStructureConservation();
1584
						peuplerStructureConservation();
1519
					}
1585
					}
1520
				}
1586
				}
1521
				if (info.getDonnee(2) != null) {
1587
				if (info.getDonnee(2) != null) {
1522
					valorisation = (StructureValorisation) info.getDonnee(2);
1588
					valorisation = (StructureValorisation) info.getDonnee(2);
-
 
1589
					if (valorisation != null) {
-
 
1590
						GWT.log(valorisation.toString(), null);
-
 
1591
						if (onglets.getSelectedItem().equals(valorisationOnglet)) {
1523
					peuplerStructureValorisation();
1592
							peuplerStructureValorisation();
-
 
1593
						}
-
 
1594
					}
1524
				}
1595
				}
1525
				structureFormPanneau.setHeading(titre);
1596
				structureFormPanneau.setHeading(titre);
1526
			}
1597
			}
1527
		} else if (nouvelleDonnees instanceof ValeurListe) {
1598
		} else if (nouvelleDonnees instanceof ValeurListe) {
1528
			ValeurListe listeValeurs = (ValeurListe) nouvelleDonnees;
1599
			ValeurListe listeValeurs = (ValeurListe) nouvelleDonnees;
Line 1619... Line 1690...
1619
				if (listeValeurs.getId().equals(config.getListeId("continentEtFr"))) {
1690
				if (listeValeurs.getId().equals(config.getListeId("continentEtFr"))) {
1620
					provenanceRechercheAutreChp = new TextField<String>();
1691
					provenanceRechercheAutreChp = new TextField<String>();
1621
					creerChoixMultipleCac(provenanceRechercheTrukCp, provenanceRechercheTrukCacGrpChp, listeValeurs, provenanceRechercheAutreChp);
1692
					creerChoixMultipleCac(provenanceRechercheTrukCp, provenanceRechercheTrukCacGrpChp, listeValeurs, provenanceRechercheAutreChp);
1622
				}
1693
				}
1623
				if (listeValeurs.getId().equals(config.getListeId("typeRecherche"))) {
1694
				if (listeValeurs.getId().equals(config.getListeId("typeRecherche"))) {
1624
					typeRecherche = new TextField<String>();
1695
					typeRechercheAutreChp = new TextField<String>();
1625
					creerChoixMultipleCac(typeRechercheTrukCp, typeRechercheTrukCacGrpChp, listeValeurs, typeRecherche);
1696
					creerChoixMultipleCac(typeRechercheTrukCp, typeRechercheTrukCacGrpChp, listeValeurs, typeRechercheAutreChp);
1626
				}
1697
				}
1627
				//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
1698
				//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
1628
			} else {
1699
			} else {
1629
				GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
1700
				GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
1630
			}
1701
			}