Line 14... |
Line 14... |
14 |
import org.tela_botanica.client.modeles.Information;
|
14 |
import org.tela_botanica.client.modeles.Information;
|
15 |
import org.tela_botanica.client.modeles.InterneValeur;
|
15 |
import org.tela_botanica.client.modeles.InterneValeur;
|
16 |
import org.tela_botanica.client.modeles.InterneValeurListe;
|
16 |
import org.tela_botanica.client.modeles.InterneValeurListe;
|
17 |
import org.tela_botanica.client.modeles.Personne;
|
17 |
import org.tela_botanica.client.modeles.Personne;
|
18 |
import org.tela_botanica.client.modeles.Structure;
|
18 |
import org.tela_botanica.client.modeles.Structure;
|
- |
|
19 |
import org.tela_botanica.client.modeles.StructureAPersonne;
|
- |
|
20 |
import org.tela_botanica.client.modeles.StructureAPersonneListe;
|
19 |
import org.tela_botanica.client.modeles.StructureConservation;
|
21 |
import org.tela_botanica.client.modeles.StructureConservation;
|
- |
|
22 |
import org.tela_botanica.client.modeles.StructureListe;
|
20 |
import org.tela_botanica.client.modeles.StructureValorisation;
|
23 |
import org.tela_botanica.client.modeles.StructureValorisation;
|
21 |
import org.tela_botanica.client.modeles.Valeur;
|
24 |
import org.tela_botanica.client.modeles.Valeur;
|
22 |
import org.tela_botanica.client.modeles.ValeurListe;
|
25 |
import org.tela_botanica.client.modeles.ValeurListe;
|
Line 23... |
Line 26... |
23 |
|
26 |
|
24 |
import com.extjs.gxt.ui.client.Events;
|
27 |
import com.extjs.gxt.ui.client.Events;
|
25 |
import com.extjs.gxt.ui.client.Registry;
|
28 |
import com.extjs.gxt.ui.client.Registry;
|
26 |
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
|
29 |
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
|
- |
|
30 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
27 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
31 |
import com.extjs.gxt.ui.client.event.BaseEvent;
|
28 |
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
32 |
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
29 |
import com.extjs.gxt.ui.client.event.Listener;
|
33 |
import com.extjs.gxt.ui.client.event.Listener;
|
30 |
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
34 |
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
31 |
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
35 |
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
Line 97... |
Line 101... |
97 |
private TabItem conservationOnglet = null;
|
101 |
private TabItem conservationOnglet = null;
|
98 |
private TabItem valorisationOnglet = null;
|
102 |
private TabItem valorisationOnglet = null;
|
Line 99... |
Line 103... |
99 |
|
103 |
|
Line 100... |
Line -... |
100 |
private HiddenField<String> idStructureChp = null;
|
- |
|
101 |
|
- |
|
102 |
private StructureConservation conservation = null;
|
- |
|
103 |
private StructureValorisation valorisation = null;
|
104 |
private HiddenField<String> idStructureChp = null;
|
- |
|
105 |
|
104 |
|
106 |
// Onglet IDENTIFICATION
|
105 |
// Onglet IDENTIFICATION
|
107 |
private Structure identification;
|
106 |
private ListStore<Valeur> magazinLstpr = null;
|
108 |
private ListStore<Valeur> magazinLstpr = null;
|
107 |
private ComboBox<Valeur> comboLstpr = null;
|
109 |
private ComboBox<Valeur> comboLstpr = null;
|
108 |
private ListStore<Valeur> magazinLstpu = null;
|
110 |
private ListStore<Valeur> magazinLstpu = null;
|
Line 127... |
Line 129... |
127 |
private TextField<String> urlChp;
|
129 |
private TextField<String> urlChp;
|
128 |
private ListStore<Valeur> magazinPays;
|
130 |
private ListStore<Valeur> magazinPays;
|
129 |
private ComboBox<Valeur> comboPays;
|
131 |
private ComboBox<Valeur> comboPays;
|
Line 130... |
Line 132... |
130 |
|
132 |
|
131 |
// Onglet PERSONNEL
|
- |
|
132 |
private EditorGrid<Personne> grillePersonnel = null;
|
- |
|
133 |
private ListStore<Personne> personnelGrilleMagazin = null;
|
133 |
// Onglet PERSONNEL
|
134 |
private LabelField nbreTotalPersonnelChp = null;
|
134 |
private ArrayList<StructureAPersonne> personnel;
|
- |
|
135 |
private NumberField nbreTotalPersonneStructureChp = null;
|
- |
|
136 |
private EditorGrid<StructureAPersonne> grillePersonnel = null;
|
- |
|
137 |
private ListStore<StructureAPersonne> personnelGrilleMagazin = null;
|
135 |
private NumberField nbreTotalPersonneStructureChp = null;
|
138 |
private LabelField nbreTotalPersonnelChp = null;
|
136 |
|
139 |
|
- |
|
140 |
// Onglet CONSERVATION
|
137 |
// Onglet CONSERVATION
|
141 |
private StructureConservation conservation = null;
|
138 |
private RadioGroup formationMarkRGrpChp;
|
142 |
private RadioGroup formationMarkRGrpChp;
|
139 |
private RadioGroup interetFormationMarkRGrpChp;
|
143 |
private RadioGroup interetFormationMarkRGrpChp;
|
140 |
private RadioGroup collectionCommuneMarkRGrpChp;
|
144 |
private RadioGroup collectionCommuneMarkRGrpChp;
|
141 |
private RadioGroup accesControleMarkRGrpChp;
|
145 |
private RadioGroup accesControleMarkRGrpChp;
|
Line 187... |
Line 191... |
187 |
private RadioGroup traitementAcquisitionMarkRGrpChp = null;
|
191 |
private RadioGroup traitementAcquisitionMarkRGrpChp = null;
|
188 |
private LabelField traitementAcquisitionMarkLabel = null;
|
192 |
private LabelField traitementAcquisitionMarkLabel = null;
|
189 |
private RadioGroup materielConservationCeRGrpChp = null;
|
193 |
private RadioGroup materielConservationCeRGrpChp = null;
|
Line 190... |
Line 194... |
190 |
|
194 |
|
- |
|
195 |
// Onglet VALORISATION
|
191 |
// Onglet VALORISATION
|
196 |
private StructureValorisation valorisation = null;
|
192 |
private RadioGroup actionMarkRGrpChp = null;
|
197 |
private RadioGroup actionMarkRGrpChp = null;
|
193 |
private ContentPanel actionTrukCp = null;
|
198 |
private ContentPanel actionTrukCp = null;
|
194 |
private CheckBoxGroup actionTrukCacGrpChp = null;
|
199 |
private CheckBoxGroup actionTrukCacGrpChp = null;
|
195 |
private RadioGroup futureActionMarkRGrpChp;
|
200 |
private RadioGroup futureActionMarkRGrpChp;
|
196 |
private RadioGroup rechercheMarkRGrpChp;
|
201 |
private RadioGroup rechercheMarkRGrpChp;
|
197 |
private RadioGroup sansMotifAccesMarkRGrpChp;
|
202 |
private RadioGroup sansMotifAccesMarkRGrpChp;
|
198 |
private RadioGroup avecMotifAccesMarkRGrpChp;
|
203 |
private RadioGroup avecMotifAccesMarkRGrpChp;
|
199 |
private TextField<String> publicationChp;
|
204 |
private TextField<String> publicationChp;
|
Line -... |
Line 205... |
- |
|
205 |
private ContentPanel materielConservationCp;
|
- |
|
206 |
|
200 |
private ContentPanel materielConservationCp;
|
207 |
|
201 |
|
208 |
|
202 |
public FormStructureVue() {
|
209 |
public FormStructureVue() {
|
203 |
//+-----------------------------------------------------------------------------------------------------------+
|
210 |
//+-----------------------------------------------------------------------------------------------------------+
|
204 |
// Initialisation de variables
|
211 |
// Initialisation de variables
|
Line 241... |
Line 248... |
241 |
|
248 |
|
242 |
//+-----------------------------------------------------------------------------------------------------------+
|
249 |
//+-----------------------------------------------------------------------------------------------------------+
|
Line 243... |
Line 250... |
243 |
// Gestion du FORMULAIRE GÉNÉRAL
|
250 |
// Gestion du FORMULAIRE GÉNÉRAL
|
244 |
|
251 |
|
Line 245... |
Line 252... |
245 |
// Sélection de l'onglet par défaut
|
252 |
// Sélection de l'onglet par défaut
|
246 |
onglets.setSelection(valorisationOnglet);
|
253 |
onglets.setSelection(personnelOnglet);
|
Line 247... |
Line 254... |
247 |
|
254 |
|
Line 282... |
Line 289... |
282 |
if (mode == "AJOUT") {
|
289 |
if (mode == "AJOUT") {
|
283 |
//mediateur.ajouterStructure(this, structure);
|
290 |
//mediateur.ajouterStructure(this, structure);
|
284 |
} else if (mode == "MODIF") {
|
291 |
} else if (mode == "MODIF") {
|
285 |
mediateur.modifierStructure(this, structure, conservation, valorisation);
|
292 |
mediateur.modifierStructure(this, structure, conservation, valorisation);
|
286 |
}
|
293 |
}
|
287 |
GWT.log("Info Structure envoyées :\n"+valorisation.toString(), null);
|
294 |
GWT.log("Info Structure envoyées :\n"+conservation.toString(), null);
|
288 |
}
|
295 |
}
|
Line 289... |
Line 296... |
289 |
|
296 |
|
290 |
private StructureValorisation collecterStructureValorisation() {
|
297 |
private StructureValorisation collecterStructureValorisation() {
|
291 |
if (valorisationOnglet.getData("acces").equals(false)) {
|
298 |
if (valorisationOnglet.getData("acces").equals(false)) {
|
Line 349... |
Line 356... |
349 |
}
|
356 |
}
|
Line 350... |
Line 357... |
350 |
|
357 |
|
351 |
private void peuplerStructureValorisation() {
|
358 |
private void peuplerStructureValorisation() {
|
352 |
if (valorisation != null) {
|
359 |
if (valorisation != null) {
|
353 |
// ACTION
|
360 |
// ACTION
|
Line 354... |
Line 361... |
354 |
actionMarkRGrpChp.get((valorisation.getAction().equals("1") ? 0 : 1)).setValue((valorisation.getAction().equals("1") ? true : false));
|
361 |
actionMarkRGrpChp.get((valorisation.getAction().equals("1") ? 0 : 1)).setValue(true);
|
355 |
|
362 |
|
Line 356... |
Line 363... |
356 |
// ACTION INFO
|
363 |
// ACTION INFO
|
Line 361... |
Line 368... |
361 |
|
368 |
|
362 |
// COLLECTION AUTRE
|
369 |
// COLLECTION AUTRE
|
Line 363... |
Line 370... |
363 |
peuplerCasesACocher(valorisation.getCollectionAutre(), autreCollectionTrukCacGrpChp, autreCollectionAutreChp);
|
370 |
peuplerCasesACocher(valorisation.getCollectionAutre(), autreCollectionTrukCacGrpChp, autreCollectionAutreChp);
|
364 |
|
371 |
|
Line 365... |
Line 372... |
365 |
// ACTION FUTURE
|
372 |
// ACTION FUTURE
|
366 |
futureActionMarkRGrpChp.get((valorisation.getActionFuture().equals("1") ? 0 : 1)).setValue((valorisation.getActionFuture().equals("1") ? true : false));
|
373 |
futureActionMarkRGrpChp.get((valorisation.getActionFuture().equals("1") ? 0 : 1)).setValue(true);
|
Line 367... |
Line 374... |
367 |
|
374 |
|
368 |
// ACTION FUTURE INFO
|
375 |
// ACTION FUTURE INFO
|
369 |
futureActionChp.setValue(valorisation.getActionFutureInfo());
|
376 |
futureActionChp.setValue(valorisation.getActionFutureInfo());
|
370 |
|
377 |
|
371 |
// RECHERCHE
|
378 |
// RECHERCHE
|
372 |
rechercheMarkRGrpChp.get((valorisation.getRecherche().equals("1") ? 0 : 1)).setValue((valorisation.getRecherche().equals("1") ? true : false));
|
379 |
rechercheMarkRGrpChp.get((valorisation.getRecherche().equals("1") ? 0 : 1)).setValue(true);
|
Line 373... |
Line 380... |
373 |
// RECHERCHE PROVENANCE
|
380 |
// RECHERCHE PROVENANCE
|
374 |
peuplerCasesACocher(valorisation.getRechercheProvenance(), provenanceRechercheTrukCacGrpChp, provenanceRechercheAutreChp);
|
381 |
peuplerCasesACocher(valorisation.getRechercheProvenance(), provenanceRechercheTrukCacGrpChp, provenanceRechercheAutreChp);
|
375 |
// RECHERCHE TYPE
|
382 |
// RECHERCHE TYPE
|
376 |
peuplerCasesACocher(valorisation.getRechercheType(), typeRechercheTrukCacGrpChp, typeRechercheAutreChp);
|
383 |
peuplerCasesACocher(valorisation.getRechercheType(), typeRechercheTrukCacGrpChp, typeRechercheAutreChp);
|
Line 377... |
Line 384... |
377 |
|
384 |
|
378 |
// ACCÈS SANS MOTIF
|
385 |
// ACCÈS SANS MOTIF
|
379 |
sansMotifAccesMarkRGrpChp.get((valorisation.getAccesSansMotif().equals("1") ? 0 : 1)).setValue((valorisation.getAccesSansMotif().equals("1") ? true : false));
|
386 |
sansMotifAccesMarkRGrpChp.get((valorisation.getAccesSansMotif().equals("1") ? 0 : 1)).setValue(true);
|
380 |
// ACCÈS SANS MOTIF INFO
|
387 |
// ACCÈS SANS MOTIF INFO
|
- |
|
388 |
sansMotifAccesChp.setValue(valorisation.getAccesSansMotifInfo());
|
- |
|
389 |
|
381 |
sansMotifAccesChp.setValue(valorisation.getAccesSansMotifInfo());
|
390 |
// VISITE AVEC MOTIF
|
382 |
|
391 |
avecMotifAccesMarkRGrpChp.get((valorisation.getVisiteAvecMotif().equals("1") ? 0 : 1)).setValue(true);
|
Line 383... |
Line 392... |
383 |
// VISITE AVEC MOTIF
|
392 |
// VISITE AVEC MOTIF INFO
|
384 |
avecMotifAccesMarkRGrpChp.get((valorisation.getVisiteAvecMotif().equals("1") ? 0 : 1)).setValue((valorisation.getVisiteAvecMotif().equals("1") ? true : false));
|
393 |
avecMotifAccesChp.setValue(valorisation.getVisiteAvecMotifInfo());
|
Line 484... |
Line 493... |
484 |
|
493 |
|
485 |
private void peuplerStructureConservation() {
|
494 |
private void peuplerStructureConservation() {
|
486 |
if (conservation != null) {
|
495 |
if (conservation != null) {
|
487 |
// FORMATION
|
496 |
// FORMATION
|
488 |
// Bouton oui, à toujours l'index 0 donc on teste en fonction...
|
497 |
// Bouton oui, à toujours l'index 0 donc on teste en fonction...
|
489 |
formationMarkRGrpChp.get((conservation.getFormation().equals("1") ? 0 : 1)).setValue((conservation.getFormation().equals("1") ? true : false));
|
498 |
formationMarkRGrpChp.get((conservation.getFormation().equals("1") ? 0 : 1)).setValue(true);
|
490 |
// FORMATION INFO
|
499 |
// FORMATION INFO
|
491 |
formationChp.setValue(conservation.getFormationInfo());
|
500 |
formationChp.setValue(conservation.getFormationInfo());
|
492 |
// FORMATION INTERET
|
501 |
// FORMATION INTERET
|
Line 493... |
Line 502... |
493 |
interetFormationMarkRGrpChp.get((conservation.getFormationInteret().equals("1") ? 0 : 1)).setValue((conservation.getFormationInteret().equals("1") ? true : false));
|
502 |
interetFormationMarkRGrpChp.get((conservation.getFormationInteret().equals("1") ? 0 : 1)).setValue(true);
|
494 |
|
503 |
|
Line 495... |
Line 504... |
495 |
// STOCKAGE LOCAL
|
504 |
// STOCKAGE LOCAL
|
Line 500... |
Line 509... |
500 |
|
509 |
|
501 |
// STOCKAGE PAREMETRE
|
510 |
// STOCKAGE PAREMETRE
|
Line 502... |
Line 511... |
502 |
peuplerCasesACocher(conservation.getStockageParametre(), parametreStockageTrukCacGrpChp, parametreStockageAutreChp);
|
511 |
peuplerCasesACocher(conservation.getStockageParametre(), parametreStockageTrukCacGrpChp, parametreStockageAutreChp);
|
503 |
|
512 |
|
504 |
// COLLECTION COMMUNE
|
513 |
// COLLECTION COMMUNE
|
505 |
collectionCommuneMarkRGrpChp.get((conservation.getCollectionCommune().equals("1") ? 0 : 1)).setValue((conservation.getCollectionCommune().equals("1") ? true : false));
|
514 |
collectionCommuneMarkRGrpChp.get((conservation.getCollectionCommune().equals("1") ? 0 : 1)).setValue(true);
|
Line 506... |
Line 515... |
506 |
// COLLECTION AUTRE
|
515 |
// COLLECTION AUTRE
|
507 |
peuplerCasesACocher(conservation.getCollectionAutre(), collectionAutreTrukCacGrpChp, collectionAutreAutreChp);
|
516 |
peuplerCasesACocher(conservation.getCollectionAutre(), collectionAutreTrukCacGrpChp, collectionAutreAutreChp);
|
Line 508... |
Line 517... |
508 |
|
517 |
|
509 |
// ACCÈS CONTROLÉ
|
518 |
// ACCÈS CONTROLÉ
|
510 |
accesControleMarkRGrpChp.get((conservation.getAccesControle().equals("1") ? 0 : 1)).setValue((conservation.getAccesControle().equals("1") ? true : false));
|
519 |
accesControleMarkRGrpChp.get((conservation.getAccesControle().equals("1") ? 0 : 1)).setValue(true);
|
511 |
|
520 |
|
Line 512... |
Line 521... |
512 |
// RESTAURATION
|
521 |
// RESTAURATION
|
513 |
restaurationMarkRGrpChp.get((conservation.getRestauration().equals("1") ? 0 : 1)).setValue((conservation.getRestauration().equals("1") ? true : false));
|
522 |
restaurationMarkRGrpChp.get((conservation.getRestauration().equals("1") ? 0 : 1)).setValue(true);
|
Line 514... |
Line 523... |
514 |
// RESTAURATION OPÉRATION
|
523 |
// RESTAURATION OPÉRATION
|
515 |
peuplerCasesACocher(conservation.getRestaurationOperation(), opRestauTrukCacGrpChp, opRestauAutreChp);
|
524 |
peuplerCasesACocher(conservation.getRestaurationOperation(), opRestauTrukCacGrpChp, opRestauAutreChp);
|
Line 516... |
Line 525... |
516 |
|
525 |
|
517 |
// MATERIEL CONSERVATION
|
526 |
// MATERIEL CONSERVATION
|
518 |
peuplerBoutonsRadio(conservation.getMaterielConservation(), materielConservationCeRGrpChp);
|
527 |
peuplerBoutonsRadio(conservation.getMaterielConservation(), materielConservationCeRGrpChp);
|
519 |
|
528 |
|
Line 520... |
Line 529... |
520 |
// MATERIEL AUTRE
|
529 |
// MATERIEL AUTRE
|
521 |
peuplerCasesACocher(conservation.getMaterielAutre(), autreMaterielTrukCacGrpChp, autreMaterielAutreChp);
|
530 |
peuplerCasesACocher(conservation.getMaterielAutre(), autreMaterielTrukCacGrpChp, autreMaterielAutreChp);
|
Line 522... |
Line 531... |
522 |
|
531 |
|
523 |
// TRAITEMENT
|
532 |
// TRAITEMENT
|
Line 524... |
Line 533... |
524 |
traitementMarkRGrpChp.get((conservation.getTraitement().equals("1") ? 0 : 1)).setValue((conservation.getTraitement().equals("1") ? true : false));
|
533 |
traitementMarkRGrpChp.get((conservation.getTraitement().equals("1") ? 0 : 1)).setValue(true);
|
525 |
// TRAITEMENTS
|
534 |
// TRAITEMENTS
|
Line 526... |
Line 535... |
526 |
peuplerCasesACocher(conservation.getTraitements(), traitementTrukCacGrpChp, traitementAutreChp);
|
535 |
peuplerCasesACocher(conservation.getTraitements(), traitementTrukCacGrpChp, traitementAutreChp);
|
527 |
|
536 |
|
528 |
// ACQUISITION COLLECTION
|
537 |
// ACQUISITION COLLECTION
|
529 |
collectionAcquisitionMarkRGrpChp.get((conservation.getAcquisitionCollection().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionCollection().equals("1") ? true : false));
|
538 |
collectionAcquisitionMarkRGrpChp.get((conservation.getAcquisitionCollection().equals("1") ? 0 : 1)).setValue(true);
|
- |
|
539 |
|
- |
|
540 |
// ACQUISITION ECHANTILLON
|
530 |
|
541 |
echantillonAcquisitionMarkRGrpChp.get((conservation.getAcquisitionEchantillon().equals("1") ? 0 : 1)).setValue(true);
|
531 |
// ACQUISITION ECHANTILLON
|
542 |
|
Line 532... |
Line 543... |
532 |
echantillonAcquisitionMarkRGrpChp.get((conservation.getAcquisitionEchantillon().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionEchantillon().equals("1") ? true : false));
|
543 |
// ACQUISITION TRAITEMENT
|
533 |
|
- |
|
534 |
// ACQUISITION TRAITEMENT
|
- |
|
535 |
traitementAcquisitionMarkRGrpChp.get((conservation.getAcquisitionTraitement().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionTraitement().equals("1") ? true : false));
|
- |
|
536 |
|
- |
|
537 |
// ACQUISITION TRAITEMENT POISON
|
- |
|
538 |
peuplerCasesACocher(conservation.getAcquisitionTraitementPoison(), poisonTraitementTrukCacGrpChp, poisonTraitementAutreChp);
|
- |
|
539 |
// ACQUISITION TRAITEMENT INSECTE
|
544 |
traitementAcquisitionMarkRGrpChp.get((conservation.getAcquisitionTraitement().equals("1") ? 0 : 1)).setValue(true);
|
540 |
peuplerCasesACocher(conservation.getAcquisitionTraitementInsecte(), insecteTraitementTrukCacGrpChp, insecteTraitementAutreChp);
|
- |
|
541 |
}
|
- |
|
542 |
}
|
- |
|
543 |
|
- |
|
544 |
private Structure collecterStructureIdentification() {
|
- |
|
545 |
// IDENTIFICATION
|
- |
|
546 |
Structure structure = new Structure();
|
- |
|
547 |
structure.setId(idStructureChp.getValue());
|
- |
|
548 |
structure.setNom(nomStructureChp.getValue());
|
- |
|
549 |
// Récupération de l'acronyme (= identifiant alternatif)
|
- |
|
550 |
structure.setIdAlternatif(null);
|
- |
|
551 |
if (comboAcronyme.getValue() != null) {
|
- |
|
552 |
String typeAcronyme = comboAcronyme.getValue().getAbr();
|
- |
|
553 |
if (typeAcronyme == "IH") {
|
- |
|
554 |
structure.setIdAlternatif(typeAcronyme+"##"+ihChp.getValue());
|
- |
|
555 |
} else if (typeAcronyme == "MNHN") {
|
- |
|
556 |
structure.setIdAlternatif(typeAcronyme+"##"+mnhnChp.getValue());
|
- |
|
557 |
}
|
- |
|
558 |
}
|
- |
|
559 |
// Récupération statut de la structure
|
- |
|
560 |
structure.setTypePublic(null);
|
- |
|
561 |
structure.setTypePrive(null);
|
- |
|
562 |
if (comboTypeStructure.getValue() != null) {
|
- |
|
563 |
String typeStructure = comboTypeStructure.getValue().getAbr();
|
- |
|
564 |
if (typeStructure == "stpu" && comboLstpu.getValue() != null) {
|
- |
|
565 |
structure.setTypePublic(comboLstpu.getValue().getId());
|
- |
|
566 |
} else if (typeStructure == "stpr" && comboLstpr.getValue() != null) {
|
- |
|
567 |
structure.setTypePrive(comboLstpr.getValue().getId());
|
- |
|
568 |
}
|
- |
|
569 |
}
|
- |
|
570 |
structure.setDateFondation(dateFondationChp.getValue());
|
- |
|
571 |
|
- |
|
572 |
structure.setAdresse(adrChp.getValue());
|
- |
|
573 |
structure.setCodePostal(cpChp.getValue());
|
- |
|
574 |
structure.setVille(villeChp.getValue());
|
- |
|
575 |
structure.setRegion(regionChp.getValue());
|
- |
|
576 |
structure.setPays(null);
|
- |
|
577 |
if (comboPays.getValue() != null) {
|
- |
|
578 |
structure.setPays(comboPays.getValue().getAbreviation());
|
545 |
|
579 |
} else if (comboPays.getRawValue() != "") {
|
- |
|
580 |
structure.setPays(comboPays.getRawValue());
|
- |
|
581 |
}
|
- |
|
582 |
|
- |
|
583 |
structure.setTelephone(telChp.getValue());
|
- |
|
584 |
structure.setFax(faxChp.getValue());
|
- |
|
585 |
structure.setCourriel(emailChp.getValue());
|
- |
|
586 |
structure.setUrl(Structure.URL_SITE, urlChp.getValue());
|
- |
|
587 |
|
- |
|
588 |
// CONSERVATION
|
- |
|
589 |
|
- |
|
590 |
return structure;
|
- |
|
591 |
}
|
- |
|
592 |
|
- |
|
593 |
private void peuplerStructureIdentification(Structure str) {
|
- |
|
594 |
idStructureChp.setValue(str.getId());
|
- |
|
595 |
nomStructureChp.setValue(str.getNom());
|
- |
|
596 |
if (!str.getIdAlternatif().isEmpty()) {
|
- |
|
597 |
String[] acronyme = str.getIdAlternatif().split("##");
|
- |
|
598 |
if (acronyme[0].matches("^IH$")) {
|
- |
|
599 |
comboAcronyme.setValue(InterneValeurListe.getTypeAcronymeIH());
|
- |
|
600 |
ihChp.setValue(acronyme[1]);
|
- |
|
601 |
} else if (acronyme[0].matches("^MNHN$")) {
|
- |
|
602 |
comboAcronyme.setValue(InterneValeurListe.getTypeAcronymeMNHN());
|
- |
|
603 |
mnhnChp.setValue(acronyme[1]);
|
- |
|
604 |
}
|
- |
|
605 |
}
|
- |
|
606 |
if (!str.getTypePrive().isEmpty()) {
|
- |
|
607 |
if (str.getTypePrive().matches("^[0-9]+$")) {
|
- |
|
608 |
comboTypeStructure.setValue(InterneValeurListe.getTypePrivee());
|
- |
|
609 |
comboLstpr.setValue(comboLstpr.getStore().findModel("id_valeur", str.getTypePrive()));
|
- |
|
610 |
}
|
- |
|
611 |
} else if (!str.getTypePublic().isEmpty()) {
|
- |
|
612 |
if (str.getTypePublic().matches("^[0-9]+$")) {
|
- |
|
613 |
comboTypeStructure.setValue(InterneValeurListe.getTypePublique());
|
546 |
// ACQUISITION TRAITEMENT POISON
|
- |
|
547 |
peuplerCasesACocher(conservation.getAcquisitionTraitementPoison(), poisonTraitementTrukCacGrpChp, poisonTraitementAutreChp);
|
- |
|
548 |
// ACQUISITION TRAITEMENT INSECTE
|
- |
|
549 |
peuplerCasesACocher(conservation.getAcquisitionTraitementInsecte(), insecteTraitementTrukCacGrpChp, insecteTraitementAutreChp);
|
- |
|
550 |
|
- |
|
551 |
conservationOnglet.layout();
|
- |
|
552 |
}
|
- |
|
553 |
}
|
- |
|
554 |
|
- |
|
555 |
private Structure collecterStructureIdentification() {
|
- |
|
556 |
if (identificationOnglet.getData("acces").equals(false)) {
|
- |
|
557 |
return identification;
|
- |
|
558 |
} else {
|
- |
|
559 |
Structure structure = new Structure();
|
- |
|
560 |
structure.setId(idStructureChp.getValue());
|
- |
|
561 |
structure.setNom(nomStructureChp.getValue());
|
- |
|
562 |
// Récupération de l'acronyme (= identifiant alternatif)
|
- |
|
563 |
structure.setIdAlternatif(null);
|
- |
|
564 |
if (comboAcronyme.getValue() != null) {
|
- |
|
565 |
String typeAcronyme = comboAcronyme.getValue().getAbr();
|
- |
|
566 |
if (typeAcronyme == "IH") {
|
- |
|
567 |
structure.setIdAlternatif(typeAcronyme+"##"+ihChp.getValue());
|
- |
|
568 |
} else if (typeAcronyme == "MNHN") {
|
- |
|
569 |
structure.setIdAlternatif(typeAcronyme+"##"+mnhnChp.getValue());
|
- |
|
570 |
}
|
- |
|
571 |
}
|
- |
|
572 |
// Récupération statut de la structure
|
- |
|
573 |
structure.setTypePublic(null);
|
- |
|
574 |
structure.setTypePrive(null);
|
- |
|
575 |
if (comboTypeStructure.getValue() != null) {
|
- |
|
576 |
String typeStructure = comboTypeStructure.getValue().getAbr();
|
- |
|
577 |
if (typeStructure == "stpu" && comboLstpu.getValue() != null) {
|
- |
|
578 |
structure.setTypePublic(comboLstpu.getValue().getId());
|
- |
|
579 |
} else if (typeStructure == "stpr" && comboLstpr.getValue() != null) {
|
- |
|
580 |
structure.setTypePrive(comboLstpr.getValue().getId());
|
- |
|
581 |
}
|
- |
|
582 |
}
|
- |
|
583 |
structure.setDateFondation(dateFondationChp.getValue());
|
- |
|
584 |
|
- |
|
585 |
structure.setAdresse(adrChp.getValue());
|
- |
|
586 |
structure.setCodePostal(cpChp.getValue());
|
- |
|
587 |
structure.setVille(villeChp.getValue());
|
- |
|
588 |
structure.setRegion(regionChp.getValue());
|
- |
|
589 |
structure.setPays(null);
|
- |
|
590 |
if (comboPays.getValue() != null) {
|
- |
|
591 |
structure.setPays(comboPays.getValue().getAbreviation());
|
- |
|
592 |
} else if (comboPays.getRawValue() != "") {
|
- |
|
593 |
structure.setPays(comboPays.getRawValue());
|
- |
|
594 |
}
|
- |
|
595 |
|
- |
|
596 |
structure.setTelephone(telChp.getValue());
|
- |
|
597 |
structure.setFax(faxChp.getValue());
|
- |
|
598 |
structure.setCourriel(emailChp.getValue());
|
- |
|
599 |
structure.setUrl(Structure.URL_SITE, urlChp.getValue());
|
- |
|
600 |
|
- |
|
601 |
return structure;
|
- |
|
602 |
}
|
- |
|
603 |
}
|
- |
|
604 |
|
- |
|
605 |
private void peuplerStructureIdentification() {
|
- |
|
606 |
if (identification != null) {
|
- |
|
607 |
idStructureChp.setValue(identification.getId());
|
- |
|
608 |
nomStructureChp.setValue(identification.getNom());
|
- |
|
609 |
if (!identification.getIdAlternatif().isEmpty()) {
|
- |
|
610 |
String[] acronyme = identification.getIdAlternatif().split("##");
|
- |
|
611 |
if (acronyme[0].matches("^IH$")) {
|
- |
|
612 |
comboAcronyme.setValue(InterneValeurListe.getTypeAcronymeIH());
|
- |
|
613 |
ihChp.setValue(acronyme[1]);
|
- |
|
614 |
} else if (acronyme[0].matches("^MNHN$")) {
|
- |
|
615 |
comboAcronyme.setValue(InterneValeurListe.getTypeAcronymeMNHN());
|
- |
|
616 |
mnhnChp.setValue(acronyme[1]);
|
- |
|
617 |
}
|
- |
|
618 |
}
|
- |
|
619 |
if (!identification.getTypePrive().isEmpty()) {
|
- |
|
620 |
if (identification.getTypePrive().matches("^[0-9]+$")) {
|
- |
|
621 |
comboTypeStructure.setValue(InterneValeurListe.getTypePrivee());
|
- |
|
622 |
comboLstpr.setValue(comboLstpr.getStore().findModel("id_valeur", identification.getTypePrive()));
|
- |
|
623 |
}
|
- |
|
624 |
} else if (!identification.getTypePublic().isEmpty()) {
|
- |
|
625 |
if (identification.getTypePublic().matches("^[0-9]+$")) {
|
- |
|
626 |
comboTypeStructure.setValue(InterneValeurListe.getTypePublique());
|
614 |
comboLstpu.setValue(comboLstpu.getStore().findModel("id_valeur", str.getTypePublic()));
|
627 |
comboLstpu.setValue(comboLstpu.getStore().findModel("id_valeur", identification.getTypePublic()));
|
- |
|
628 |
}
|
- |
|
629 |
}
|
- |
|
630 |
dateFondationChp.setValue(identification.getDateFondation());
|
- |
|
631 |
|
- |
|
632 |
adrChp.setValue(identification.getAdresse());
|
- |
|
633 |
cpChp.setValue(identification.getCodePostal());
|
- |
|
634 |
villeChp.setValue(identification.getVille());
|
- |
|
635 |
regionChp.setValue(identification.getRegion());
|
615 |
}
|
636 |
if (identification.getPays().matches("^[A-Z]{2}$")) {
|
616 |
}
|
- |
|
617 |
dateFondationChp.setValue(str.getDateFondation());
|
- |
|
618 |
|
- |
|
619 |
adrChp.setValue(str.getAdresse());
|
- |
|
620 |
cpChp.setValue(str.getCodePostal());
|
- |
|
621 |
villeChp.setValue(str.getVille());
|
637 |
comboPays.setValue(comboPays.getStore().findModel("abreviation", identification.getPays()));
|
Line 622... |
Line 638... |
622 |
regionChp.setValue(str.getRegion());
|
638 |
} else {
|
623 |
if (str.getPays().matches("^[A-Z]{2}$")) {
|
639 |
comboPays.setRawValue(identification.getPays());
|
624 |
comboPays.setValue(comboPays.getStore().findModel("abreviation", str.getPays()));
|
640 |
}
|
Line 835... |
Line 851... |
835 |
conservationOnglet.add(insecteTraitementTrukCp);
|
851 |
conservationOnglet.add(insecteTraitementTrukCp);
|
Line 836... |
Line 852... |
836 |
|
852 |
|
837 |
return conservationOnglet;
|
853 |
return conservationOnglet;
|
Line -... |
Line 854... |
- |
|
854 |
}
|
- |
|
855 |
|
- |
|
856 |
|
- |
|
857 |
private void peuplerStructurePersonnel() {
|
- |
|
858 |
if (identification != null) {
|
- |
|
859 |
// NBRE PERSONNE
|
- |
|
860 |
nbreTotalPersonneStructureChp.setValue(identification.getNbrePersonne());
|
- |
|
861 |
}
|
- |
|
862 |
|
- |
|
863 |
if (personnel != null) {
|
- |
|
864 |
personnelGrilleMagazin.removeAll();
|
- |
|
865 |
personnelGrilleMagazin.add(personnel);
|
- |
|
866 |
|
- |
|
867 |
grillePersonnel.getColumnModel().getColumn(1).getEditor().fireEvent(Events.StateSave);
|
- |
|
868 |
/*
|
- |
|
869 |
int nbreLigne = personnelGrilleMagazin.getCount();
|
- |
|
870 |
for (int i = 0; i < nbreLigne; i++) {
|
- |
|
871 |
|
- |
|
872 |
}
|
- |
|
873 |
*/
|
- |
|
874 |
personnelOnglet.layout();
|
- |
|
875 |
}
|
838 |
}
|
876 |
}
|
839 |
|
877 |
|
- |
|
878 |
private TabItem creerOngletPersonnel() {
|
840 |
private TabItem creerOngletPersonnel() {
|
879 |
personnelOnglet = new TabItem();
|
841 |
personnelOnglet = new TabItem();
|
880 |
|
842 |
personnelOnglet.setText("Personnel");
|
881 |
personnelOnglet.setText("Personnel");
|
- |
|
882 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
- |
|
883 |
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT, null));
|
- |
|
884 |
personnelOnglet.setData("acces", false); // Permet de savoir si l'onblet a été accédé par l'utilisateur
|
- |
|
885 |
personnelOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
- |
|
886 |
public void handleEvent(ComponentEvent be) {
|
- |
|
887 |
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
|
- |
|
888 |
personnelOnglet.setData("acces", true);
|
- |
|
889 |
peuplerStructurePersonnel();
|
- |
|
890 |
}
|
Line 843... |
Line 891... |
843 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
891 |
|
844 |
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT, null));
|
892 |
});
|
845 |
|
893 |
|
846 |
nbreTotalPersonneStructureChp = new NumberField();
|
894 |
nbreTotalPersonneStructureChp = new NumberField();
|
Line 854... |
Line 902... |
854 |
nbreTotalPersonnelChp = new LabelField();
|
902 |
nbreTotalPersonnelChp = new LabelField();
|
855 |
nbreTotalPersonnelChp.setFieldLabel("Nombre de personne travaillant sur les collections");
|
903 |
nbreTotalPersonnelChp.setFieldLabel("Nombre de personne travaillant sur les collections");
|
856 |
nbreTotalPersonnelChp.setLabelSeparator(":");
|
904 |
nbreTotalPersonnelChp.setLabelSeparator(":");
|
857 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
905 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
858 |
personnelOnglet.add(nbreTotalPersonnelChp);
|
906 |
personnelOnglet.add(nbreTotalPersonnelChp);
|
859 |
|
907 |
|
860 |
return personnelOnglet;
|
908 |
return personnelOnglet;
|
861 |
}
|
909 |
}
|
Line 862... |
Line 910... |
862 |
|
910 |
|
- |
|
911 |
private ContentPanel creerGrillePersonnel() {
|
Line 863... |
Line 912... |
863 |
private ContentPanel creerGrillePersonnel() {
|
912 |
ContentPanel cp = new ContentPanel();
|
864 |
|
913 |
|
865 |
List<Personne> personnes = new ArrayList<Personne>();
|
914 |
List<StructureAPersonne> personnes = new ArrayList<StructureAPersonne>();
|
Line 866... |
Line 915... |
866 |
personnes.add(new Personne(Valeur.FONCTION_DIRECTEUR));
|
915 |
personnes.add(new StructureAPersonne(Valeur.FONCTION_DIRECTEUR));
|
867 |
personnes.add(new Personne(Valeur.FONCTION_CONSERVATEUR));
|
916 |
personnes.add(new StructureAPersonne(Valeur.FONCTION_CONSERVATEUR));
|
Line 868... |
Line 917... |
868 |
|
917 |
|
Line 869... |
Line 918... |
869 |
personnelGrilleMagazin = new ListStore<Personne>();
|
918 |
personnelGrilleMagazin = new ListStore<StructureAPersonne>();
|
870 |
personnelGrilleMagazin.add(personnes);
|
919 |
personnelGrilleMagazin.add(personnes);
|
Line 871... |
Line 920... |
871 |
|
920 |
|
872 |
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
|
921 |
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
|
873 |
|
922 |
|
Line 883... |
Line 932... |
883 |
comboLiFonction.setTriggerAction(TriggerAction.ALL);
|
932 |
comboLiFonction.setTriggerAction(TriggerAction.ALL);
|
884 |
comboLiFonction.setEditable(true);
|
933 |
comboLiFonction.setEditable(true);
|
885 |
comboLiFonction.setDisplayField("nom");
|
934 |
comboLiFonction.setDisplayField("nom");
|
886 |
//comboLiStatut.setEmptyText("Sélectionez une fonction...");
|
935 |
//comboLiStatut.setEmptyText("Sélectionez une fonction...");
|
887 |
comboLiFonction.setStore(magazinLiFonction);
|
936 |
comboLiFonction.setStore(magazinLiFonction);
|
- |
|
937 |
/*
|
- |
|
938 |
comboLiFonction.addListener(Events.Blur, new Listener<BaseEvent>() {
|
- |
|
939 |
|
- |
|
940 |
@Override
|
- |
|
941 |
public void handleEvent(BaseEvent be) {
|
- |
|
942 |
//grillePersonnel..comboLiFonction.getRawValue();
|
- |
|
943 |
|
- |
|
944 |
}
|
- |
|
945 |
|
- |
|
946 |
});*/
|
Line 888... |
Line 947... |
888 |
|
947 |
|
889 |
CellEditor fonctionEditor = new CellEditor(comboLiFonction) {
|
948 |
CellEditor fonctionEditor = new CellEditor(comboLiFonction) {
|
890 |
@Override
|
949 |
@Override
|
891 |
public Object preProcessValue(Object value) {
|
950 |
public Object preProcessValue(Object valeur) {
|
892 |
if (value == null) {
|
951 |
if (valeur == null) {
|
- |
|
952 |
return valeur;
|
- |
|
953 |
}
|
- |
|
954 |
GWT.log("pre : "+valeur.toString(), null);
|
- |
|
955 |
Object retour = null;
|
- |
|
956 |
if (((String) valeur).matches("^[0-9]+$")) {
|
- |
|
957 |
retour = comboLiFonction.getStore().findModel("id_valeur", (String) valeur);
|
- |
|
958 |
} else {
|
893 |
return value;
|
959 |
retour = comboLiFonction.getStore().findModel("nom", (String) valeur);
|
894 |
}
|
960 |
}
|
895 |
//GWT.log("pre : "+value.toString(), null);
|
961 |
GWT.log("pre - retour : \n"+retour.toString(), null);
|
896 |
return comboLiFonction.getStore().findModel("nom", (String) value);
|
962 |
return retour;
|
Line 897... |
Line 963... |
897 |
}
|
963 |
}
|
898 |
|
964 |
|
899 |
@Override
|
965 |
@Override
|
- |
|
966 |
public Object postProcessValue(Object valeur) {
|
- |
|
967 |
if (valeur == null) {
|
- |
|
968 |
// Si la combobox n'a pas été utilisé, nous renvoyons la valeur brute saisie par l'utilisateur
|
- |
|
969 |
return this.getField().getRawValue();
|
- |
|
970 |
} else {
|
- |
|
971 |
this.setUpdateEl(false);
|
- |
|
972 |
GWT.log("post : \n"+valeur.toString(), null);
|
- |
|
973 |
if (valeur instanceof String && ((String) valeur).matches("^[0-9]+$")) {
|
- |
|
974 |
GWT.log("ici", null);
|
- |
|
975 |
return (comboLiFonction.getStore().findModel("id_valeur", (String) valeur)).getNom();
|
- |
|
976 |
} else {
|
900 |
public Object postProcessValue(Object value) {
|
977 |
String nom = (((Valeur) valeur).getNom());
|
- |
|
978 |
GWT.log("la "+nom, null);
|
901 |
if (value == null) {
|
979 |
return nom;
|
902 |
return value;
|
- |
|
903 |
}
|
- |
|
904 |
//GWT.log("post : "+value.toString(), null);
|
980 |
}
|
905 |
return ((Valeur) value).get("nom");
|
981 |
}
|
906 |
}
|
982 |
}
|
907 |
};
|
983 |
};
|
Line 908... |
Line 984... |
908 |
column.setEditor(fonctionEditor);
|
984 |
column.setEditor(fonctionEditor);
|
Line 928... |
Line 1004... |
928 |
nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
1004 |
nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
929 |
nomChp.setAutoValidate(true);
|
1005 |
nomChp.setAutoValidate(true);
|
930 |
column.setEditor(new CellEditor(nomChp));
|
1006 |
column.setEditor(new CellEditor(nomChp));
|
931 |
configs.add(column);
|
1007 |
configs.add(column);
|
Line 932... |
Line 1008... |
932 |
|
1008 |
|
933 |
column = new ColumnConfig("tel", "Téléphone", 100);
|
1009 |
column = new ColumnConfig("telephone", "Téléphone fixe", 100);
|
934 |
TextField<String> telChp = new TextField<String>();
|
1010 |
TextField<String> telChp = new TextField<String>();
|
935 |
column.setEditor(new CellEditor(telChp));
|
1011 |
column.setEditor(new CellEditor(telChp));
|
Line 936... |
Line 1012... |
936 |
configs.add(column);
|
1012 |
configs.add(column);
|
Line 977... |
Line 1053... |
977 |
};
|
1053 |
};
|
978 |
column = new ColumnConfig("statut", "Statut", 100);
|
1054 |
column = new ColumnConfig("statut", "Statut", 100);
|
979 |
column.setEditor(statutEditor);
|
1055 |
column.setEditor(statutEditor);
|
980 |
configs.add(column);
|
1056 |
configs.add(column);
|
Line 981... |
Line 1057... |
981 |
|
1057 |
|
982 |
column = new ColumnConfig("tps_w", "Temps travail", 100);
|
1058 |
column = new ColumnConfig("travail", "Temps travail", 100);
|
983 |
column.setNumberFormat(NumberFormat.getFormat("##"));
|
1059 |
column.setNumberFormat(NumberFormat.getFormat("##"));
|
984 |
NumberField tpsWChp = new NumberField();
|
1060 |
NumberField tpsWChp = new NumberField();
|
985 |
tpsWChp.setFormat(NumberFormat.getFormat("##"));
|
1061 |
tpsWChp.setFormat(NumberFormat.getFormat("##"));
|
986 |
tpsWChp.setToolTip("Ce champ doit contenir un nombre");
|
1062 |
tpsWChp.setToolTip("Ce champ doit contenir un nombre");
|
987 |
column.setEditor(new CellEditor(tpsWChp));
|
1063 |
column.setEditor(new CellEditor(tpsWChp));
|
Line 988... |
Line 1064... |
988 |
configs.add(column);
|
1064 |
configs.add(column);
|
989 |
|
1065 |
|
990 |
column = new ColumnConfig("specialites", "Spécialités botaniques", 150);
|
1066 |
column = new ColumnConfig("specialite", "Spécialité principale", 150);
|
991 |
TextField<String> speChp = new TextField<String>();
|
1067 |
TextField<String> speChp = new TextField<String>();
|
Line 992... |
Line 1068... |
992 |
column.setEditor(new CellEditor(speChp));
|
1068 |
column.setEditor(new CellEditor(speChp));
|
993 |
configs.add(column);
|
1069 |
configs.add(column);
|
Line 994... |
Line -... |
994 |
|
- |
|
- |
|
1070 |
|
995 |
CheckColumnConfig checkColumn = new CheckColumnConfig("mark_contact", "Contact ?", 60);
|
1071 |
CheckColumnConfig checkColumn = new CheckColumnConfig("contact", "Contact ?", 60);
|
996 |
configs.add(checkColumn);
|
1072 |
configs.add(checkColumn);
|
997 |
|
1073 |
|
998 |
ContentPanel cp = new ContentPanel();
|
1074 |
|
999 |
cp.setHeading("Personnes travaillant sur les collections");
|
1075 |
cp.setHeading("Personnes travaillant sur les collections");
|
Line 1007... |
Line 1083... |
1007 |
|
1083 |
|
1008 |
TextToolItem ajouterPersonnelBtn = new TextToolItem("Ajouter", "icone-vcard-ajouter");
|
1084 |
TextToolItem ajouterPersonnelBtn = new TextToolItem("Ajouter", "icone-vcard-ajouter");
|
1009 |
ajouterPersonnelBtn.addSelectionListener(new SelectionListener<ToolBarEvent>() {
|
1085 |
ajouterPersonnelBtn.addSelectionListener(new SelectionListener<ToolBarEvent>() {
|
1010 |
@Override
|
1086 |
@Override
|
1011 |
public void componentSelected(ToolBarEvent ce) {
|
1087 |
public void componentSelected(ToolBarEvent ce) {
|
1012 |
Personne personne = new Personne();
|
1088 |
StructureAPersonne personne = new StructureAPersonne();
|
1013 |
grillePersonnel.stopEditing();
|
1089 |
grillePersonnel.stopEditing();
|
1014 |
personnelGrilleMagazin.insert(personne, 0);
|
1090 |
personnelGrilleMagazin.insert(personne, 0);
|
1015 |
grillePersonnel.startEditing(0, 0);
|
1091 |
grillePersonnel.startEditing(0, 0);
|
1016 |
// Mise à jour du nombre de personnel travaillant sur les collections
|
1092 |
// Mise à jour du nombre de personnel travaillant sur les collections
|
Line 1039... |
Line 1115... |
1039 |
toolBar.add(supprimerPersonnelBtn);
|
1115 |
toolBar.add(supprimerPersonnelBtn);
|
1040 |
cp.setTopComponent(toolBar);
|
1116 |
cp.setTopComponent(toolBar);
|
Line 1041... |
Line 1117... |
1041 |
|
1117 |
|
Line 1042... |
Line 1118... |
1042 |
ColumnModel cm = new ColumnModel(configs);
|
1118 |
ColumnModel cm = new ColumnModel(configs);
|
1043 |
|
1119 |
|
1044 |
grillePersonnel = new EditorGrid<Personne>(personnelGrilleMagazin, cm);
|
1120 |
grillePersonnel = new EditorGrid<StructureAPersonne>(personnelGrilleMagazin, cm);
|
1045 |
grillePersonnel.setBorders(true);
|
1121 |
grillePersonnel.setBorders(true);
|
1046 |
grillePersonnel.setSelectionModel(sm);
|
1122 |
grillePersonnel.setSelectionModel(sm);
|
1047 |
grillePersonnel.addPlugin(sm);
|
1123 |
grillePersonnel.addPlugin(sm);
|
1048 |
grillePersonnel.addPlugin(checkColumn);
|
- |
|
- |
|
1124 |
grillePersonnel.addPlugin(checkColumn);
|
- |
|
1125 |
grillePersonnel.setAutoExpandColumn("specialite");
|
1049 |
grillePersonnel.setAutoExpandColumn("specialites");
|
1126 |
grillePersonnel.setStripeRows(true);
|
- |
|
1127 |
grillePersonnel.setTrackMouseOver(true);
|
1050 |
|
1128 |
cp.add(grillePersonnel);
|
1051 |
cp.add(grillePersonnel);
|
1129 |
|
Line 1052... |
Line 1130... |
1052 |
return cp;
|
1130 |
return cp;
|
1053 |
}
|
1131 |
}
|
1054 |
|
1132 |
|
1055 |
private TabItem creerOngletIdentification() {
|
1133 |
private TabItem creerOngletIdentification() {
|
1056 |
//+-----------------------------------------------------------------------------------------------------------+
|
1134 |
//+-----------------------------------------------------------------------------------------------------------+
|
1057 |
// Onlget formulaire IDENTIFICATION
|
1135 |
// Onlget formulaire IDENTIFICATION
|
1058 |
identificationOnglet = new TabItem();
|
1136 |
identificationOnglet = new TabItem();
|
- |
|
1137 |
identificationOnglet.setId("identification");
|
- |
|
1138 |
identificationOnglet.setText("Identification");
|
- |
|
1139 |
identificationOnglet.setLayout(new FormLayout());
|
- |
|
1140 |
identificationOnglet.setData("acces", false);
|
- |
|
1141 |
identificationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
- |
|
1142 |
public void handleEvent(ComponentEvent be) {
|
- |
|
1143 |
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
|
- |
|
1144 |
identificationOnglet.setData("acces", true);
|
1059 |
identificationOnglet.setId("identification");
|
1145 |
peuplerStructureIdentification();
|
1060 |
identificationOnglet.setText("Identification");
|
1146 |
}
|
1061 |
identificationOnglet.setLayout(new FormLayout());
|
1147 |
});
|
1062 |
|
1148 |
|
Line 1063... |
Line 1149... |
1063 |
//+-----------------------------------------------------------------------------------------------------------+
|
1149 |
//+-----------------------------------------------------------------------------------------------------------+
|
Line 1478... |
Line 1564... |
1478 |
composants.add(autreMaterielTrukCp);
|
1564 |
composants.add(autreMaterielTrukCp);
|
1479 |
valeurPourAfficher = "non";
|
1565 |
valeurPourAfficher = "non";
|
1480 |
}
|
1566 |
}
|
Line 1481... |
Line 1567... |
1481 |
|
1567 |
|
1482 |
// Nous affichons/cachons les composant de la liste
|
1568 |
// Nous affichons/cachons les composant de la liste
|
1483 |
final int tailleMax = composants.size();
|
1569 |
final int nbreComposants = composants.size();
|
1484 |
//GWT.log("Id : "+radioBtn.getId()+" - Class : "+radioBtn.getClass().toString()+"- Taille : "+tailleMax, null);
|
1570 |
//GWT.log("Id : "+radioBtn.getId()+" - Class : "+radioBtn.getClass().toString()+"- Taille : "+tailleMax, null);
|
1485 |
//Window.alert("Radio grp nom : "+radioGroupeNom+" - Id btn : "+radioBtn.getId()+" - Class : "+radioBtn.getClass().toString()+"- Taille : "+tailleMax);
|
1571 |
//Window.alert("Radio grp nom : "+radioGroupeNom+" - Id btn : "+radioBtn.getId()+" - Class : "+radioBtn.getClass().toString()+"- Taille : "+tailleMax);
|
1486 |
for (int i = 0; i < tailleMax; i++) {
|
1572 |
for (int i = 0; i < nbreComposants; i++) {
|
1487 |
// En fonction du type de bouton cliquer, on affiche ou cache les champs
|
1573 |
// En fonction du type de bouton cliquer, on affiche ou cache les champs
|
1488 |
String type = radioBtn.getBoxLabel().toLowerCase();
|
1574 |
String type = radioBtn.getBoxLabel().toLowerCase();
|
1489 |
//GWT.log(type, null);
|
1575 |
//GWT.log(type, null);
|
1490 |
if (radioBtn.getValue() == true) {
|
1576 |
if (radioBtn.getValue() == true) {
|
Line 1557... |
Line 1643... |
1557 |
|
1643 |
|
1558 |
cp.layout();
|
1644 |
cp.layout();
|
Line 1559... |
Line 1645... |
1559 |
}
|
1645 |
}
|
- |
|
1646 |
|
1560 |
|
1647 |
public void rafraichir(Object nouvelleDonnees) {
|
1561 |
public void rafraichir(Object nouvelleDonnees) {
|
1648 |
try {
|
1562 |
if (nouvelleDonnees instanceof Information) {
|
1649 |
if (nouvelleDonnees instanceof Information) {
|
1563 |
Information info = (Information) nouvelleDonnees;
|
1650 |
Information info = (Information) nouvelleDonnees;
|
1564 |
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
|
1651 |
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
|
1565 |
GWT.log(info.getMessages().toString(), null);
|
1652 |
GWT.log(info.getMessages().toString(), null);
|
1566 |
}
|
1653 |
}
|
1567 |
if (info.getType().equals("modif_structure")) {
|
1654 |
if (info.getType().equals("modif_structure")) {
|
1568 |
Info.display("Modification d'une institution", info.toString());
|
1655 |
Info.display("Modification d'une institution", info.toString());
|
1569 |
} else if (info.getType().equals("ajout_structure")) {
|
1656 |
} else if (info.getType().equals("ajout_structure")) {
|
1570 |
Info.display("Ajout d'une Institution", info.toString());
|
1657 |
Info.display("Ajout d'une Institution", info.toString());
|
1571 |
} else if (info.getType().equals("selection_structure")) {
|
1658 |
} else if (info.getType().equals("selection_structure")) {
|
1572 |
Info.display("Modification d'une institution", info.toString());
|
1659 |
Info.display("Modification d'une institution", info.toString());
|
1573 |
mode = "MODIF";
|
1660 |
mode = "MODIF";
|
1574 |
GWT.log("Mode du formulaire : "+mode, null);
|
1661 |
GWT.log("Mode du formulaire : "+mode, null);
|
1575 |
String titre = i18nC.titreModifFormStructurePanneau();
|
1662 |
String titre = i18nC.titreModifFormStructurePanneau();
|
1576 |
if (info.getDonnee(0) != null) {
|
1663 |
if (info.getDonnee(0) != null) {
|
1577 |
Structure str = (Structure) info.getDonnee(0);
|
1664 |
identification = (Structure) info.getDonnee(0);
|
1578 |
titre += " - ID : "+str.getId();
|
1665 |
if (onglets.getSelectedItem().equals(identificationOnglet)) {
|
1579 |
peuplerStructureIdentification(str);
|
1666 |
peuplerStructureIdentification();
|
1580 |
}
|
1667 |
}
|
1581 |
if (info.getDonnee(1) != null) {
|
- |
|
1582 |
conservation = (StructureConservation) info.getDonnee(1);
|
- |
|
1583 |
if (onglets.getSelectedItem().equals(conservationOnglet)) {
|
1668 |
// Composition du titre
|
1584 |
peuplerStructureConservation();
|
- |
|
1585 |
}
|
1669 |
titre += " - ID : "+identification.getId();
|
1586 |
}
|
1670 |
}
|
1587 |
if (info.getDonnee(2) != null) {
|
- |
|
1588 |
valorisation = (StructureValorisation) info.getDonnee(2);
|
- |
|
1589 |
if (valorisation != null) {
|
1671 |
if (info.getDonnee(1) != null) {
|
1590 |
GWT.log(valorisation.toString(), null);
|
1672 |
conservation = (StructureConservation) info.getDonnee(1);
|
1591 |
if (onglets.getSelectedItem().equals(valorisationOnglet)) {
|
1673 |
if (onglets.getSelectedItem().equals(conservationOnglet)) {
|
1592 |
peuplerStructureValorisation();
|
1674 |
peuplerStructureConservation();
|
1593 |
}
|
- |
|
1594 |
}
|
- |
|
1595 |
}
|
- |
|
1596 |
structureFormPanneau.setHeading(titre);
|
1675 |
}
|
1597 |
}
|
1676 |
}
|
1598 |
} else if (nouvelleDonnees instanceof ValeurListe) {
|
- |
|
1599 |
ValeurListe listeValeurs = (ValeurListe) nouvelleDonnees;
|
- |
|
1600 |
|
- |
|
1601 |
List<Valeur> liste = new ArrayList<Valeur>();
|
- |
|
1602 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
- |
|
1603 |
liste.add(listeValeurs.get(it.next()));
|
- |
|
1604 |
}
|
1677 |
if (info.getDonnee(2) != null) {
|
1605 |
// Test pour savoir si la liste contient des éléments
|
- |
|
1606 |
if (liste.size() > 0) {
|
- |
|
1607 |
Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
|
- |
|
1608 |
if (listeValeurs.getId().equals(config.getListeId("stpr"))) {
|
- |
|
1609 |
magazinLstpr.removeAll();
|
- |
|
1610 |
magazinLstpr.add(liste);
|
- |
|
1611 |
comboLstpr.setStore(magazinLstpr);
|
1678 |
valorisation = (StructureValorisation) info.getDonnee(2);
|
1612 |
}
|
- |
|
1613 |
if (listeValeurs.getId().equals(config.getListeId("stpu"))) {
|
- |
|
1614 |
magazinLstpu.removeAll();
|
- |
|
1615 |
magazinLstpu.add(liste);
|
- |
|
1616 |
comboLstpu.setStore(magazinLstpu);
|
- |
|
1617 |
}
|
1679 |
if (valorisation != null) {
|
1618 |
if (listeValeurs.getId().equals(config.getListeId("statut"))) {
|
- |
|
1619 |
magazinLiStatut.removeAll();
|
- |
|
1620 |
magazinLiStatut.add(liste);
|
- |
|
1621 |
comboLiStatut.setStore(magazinLiStatut);
|
- |
|
1622 |
}
|
- |
|
1623 |
if (listeValeurs.getId().equals(config.getListeId("fonction"))) {
|
- |
|
1624 |
magazinLiFonction.removeAll();
|
- |
|
1625 |
magazinLiFonction.add(liste);
|
- |
|
1626 |
comboLiFonction.setStore(magazinLiFonction);
|
- |
|
1627 |
}
|
- |
|
1628 |
if (listeValeurs.getId().equals(config.getListeId("pays"))) {
|
- |
|
1629 |
magazinPays.removeAll();
|
- |
|
1630 |
magazinPays.add(liste);
|
- |
|
1631 |
comboPays.setStore(magazinPays);
|
- |
|
1632 |
}
|
- |
|
1633 |
if (listeValeurs.getId().equals(config.getListeId("localStockage"))) {
|
- |
|
1634 |
localStockageAutreChp = new TextField<String>();
|
- |
|
1635 |
creerChoixMultipleCac(localStockageTrukCp, localStockageTrukCacGrpChp, listeValeurs, localStockageAutreChp);
|
- |
|
1636 |
}
|
- |
|
1637 |
if (listeValeurs.getId().equals(config.getListeId("meubleStockage"))) {
|
- |
|
1638 |
meubleStockageAutreChp = new TextField<String>();
|
- |
|
1639 |
creerChoixMultipleCac(meubleStockageTrukCp, meubleStockageTrukCacGrpChp, listeValeurs, meubleStockageAutreChp);
|
- |
|
1640 |
}
|
- |
|
1641 |
if (listeValeurs.getId().equals(config.getListeId("parametreStockage"))) {
|
- |
|
1642 |
parametreStockageAutreChp = new TextField<String>();
|
1680 |
if (onglets.getSelectedItem().equals(valorisationOnglet)) {
|
1643 |
creerChoixMultipleCac(parametreStockageTrukCp, parametreStockageTrukCacGrpChp, listeValeurs, parametreStockageAutreChp);
|
- |
|
1644 |
}
|
- |
|
1645 |
if (listeValeurs.getId().equals(config.getListeId("autreCollection"))) {
|
- |
|
1646 |
if (collectionAutreTrukCp.getItemByItemId("collectionAutreTrukCacGrpChp") == null) {
|
- |
|
1647 |
collectionAutreTrukCacGrpChp.setId("collectionAutreTrukCacGrpChp");
|
- |
|
1648 |
collectionAutreAutreChp = new TextField<String>();
|
1681 |
peuplerStructureValorisation();
|
1649 |
creerChoixMultipleCac(collectionAutreTrukCp, collectionAutreTrukCacGrpChp, listeValeurs, collectionAutreAutreChp);
|
- |
|
1650 |
}
|
- |
|
1651 |
if (autreCollectionTrukCp.getItemByItemId("autreCollectionTrukCacGrpChp") == null) {
|
- |
|
1652 |
autreCollectionTrukCacGrpChp.setId("autreCollectionTrukCacGrpChp");
|
- |
|
1653 |
autreCollectionAutreChp = new TextField<String>();
|
1682 |
}
|
1654 |
creerChoixMultipleCac(autreCollectionTrukCp, autreCollectionTrukCacGrpChp, listeValeurs, autreCollectionAutreChp);
|
- |
|
1655 |
}
|
- |
|
1656 |
}
|
1683 |
}
|
1657 |
if (listeValeurs.getId().equals(config.getListeId("opRestau"))) {
|
- |
|
1658 |
opRestauAutreChp = new TextField<String>();
|
- |
|
1659 |
creerChoixMultipleCac(opRestauTrukCp, opRestauTrukCacGrpChp, listeValeurs, opRestauAutreChp);
|
1684 |
}
|
1660 |
}
|
1685 |
structureFormPanneau.setHeading(titre);
|
1661 |
if (listeValeurs.getId().equals(config.getListeId("onep"))) {
|
1686 |
} else if (info.getType().equals("liste_structure_a_personne")) {
|
1662 |
creerChoixUniqueBoutonRadio(materielConservationCeRGrpChp, listeValeurs);
|
1687 |
if (info.getDonnee(0) != null) {
|
1663 |
materielConservationCp.add(materielConservationCeRGrpChp);
|
- |
|
1664 |
materielConservationCp.layout();
|
1688 |
StructureAPersonneListe personnes = (StructureAPersonneListe) info.getDonnee(0);
|
1665 |
}
|
1689 |
personnel = new ArrayList<StructureAPersonne>();
|
1666 |
if (listeValeurs.getId().equals(config.getListeId("autreMateriel"))) {
|
1690 |
for (Iterator<String> it = personnes.keySet().iterator(); it.hasNext();) {
|
1667 |
autreMaterielAutreChp = new TextField<String>();
|
- |
|
1668 |
creerChoixMultipleCac(autreMaterielTrukCp, autreMaterielTrukCacGrpChp, listeValeurs, autreMaterielAutreChp);
|
- |
|
1669 |
}
|
1691 |
String index = it.next();
|
1670 |
if (listeValeurs.getId().equals(config.getListeId("poisonTraitement"))) {
|
- |
|
1671 |
poisonTraitementAutreChp = new TextField<String>();
|
1692 |
personnes.get(index).set("fonction", magazinLiFonction.findModel("id_valeur", personnes.get(index).getFonction()).getNom());
|
- |
|
1693 |
personnel.add(personnes.get(index));
|
1672 |
creerChoixMultipleCac(poisonTraitementTrukCp, poisonTraitementTrukCacGrpChp, listeValeurs, poisonTraitementAutreChp);
|
1694 |
}
|
1673 |
}
|
1695 |
|
1674 |
if (listeValeurs.getId().equals(config.getListeId("insecteTraitement"))) {
|
- |
|
1675 |
if (traitementTrukCp.getItemByItemId("traitementTrukCacGrpChp") == null) {
|
1696 |
//GWT.log(personnel.toString(), null);
|
1676 |
traitementTrukCacGrpChp.setId("traitementTrukCacGrpChp");
|
- |
|
1677 |
traitementAutreChp = new TextField<String>();
|
1697 |
if (onglets.getSelectedItem().equals(personnelOnglet)) {
|
1678 |
creerChoixMultipleCac(traitementTrukCp, traitementTrukCacGrpChp, listeValeurs, traitementAutreChp);
|
- |
|
1679 |
}
|
- |
|
1680 |
if (insecteTraitementTrukCp.getItemByItemId("insecteTraitementTrukCacGrpChp") == null) {
|
- |
|
1681 |
insecteTraitementTrukCacGrpChp.setId("insecteTraitementTrukCacGrpChp");
|
- |
|
1682 |
insecteTraitementAutreChp = new TextField<String>();
|
1698 |
peuplerStructurePersonnel();
|
1683 |
creerChoixMultipleCac(insecteTraitementTrukCp, insecteTraitementTrukCacGrpChp, listeValeurs, insecteTraitementAutreChp);
|
1699 |
}
|
- |
|
1700 |
}
|
- |
|
1701 |
}
|
- |
|
1702 |
} else if (nouvelleDonnees instanceof ValeurListe) {
|
- |
|
1703 |
ValeurListe listeValeurs = (ValeurListe) nouvelleDonnees;
|
- |
|
1704 |
|
- |
|
1705 |
List<Valeur> liste = new ArrayList<Valeur>();
|
- |
|
1706 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
- |
|
1707 |
liste.add(listeValeurs.get(it.next()));
|
- |
|
1708 |
}
|
- |
|
1709 |
// Test pour savoir si la liste contient des éléments
|
- |
|
1710 |
if (liste.size() > 0) {
|
- |
|
1711 |
Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
|
- |
|
1712 |
if (listeValeurs.getId().equals(config.getListeId("stpr"))) {
|
- |
|
1713 |
magazinLstpr.removeAll();
|
- |
|
1714 |
magazinLstpr.add(liste);
|
- |
|
1715 |
comboLstpr.setStore(magazinLstpr);
|
- |
|
1716 |
}
|
- |
|
1717 |
if (listeValeurs.getId().equals(config.getListeId("stpu"))) {
|
- |
|
1718 |
magazinLstpu.removeAll();
|
- |
|
1719 |
magazinLstpu.add(liste);
|
- |
|
1720 |
comboLstpu.setStore(magazinLstpu);
|
- |
|
1721 |
}
|
- |
|
1722 |
if (listeValeurs.getId().equals(config.getListeId("statut"))) {
|
- |
|
1723 |
magazinLiStatut.removeAll();
|
- |
|
1724 |
magazinLiStatut.add(liste);
|
- |
|
1725 |
comboLiStatut.setStore(magazinLiStatut);
|
- |
|
1726 |
}
|
- |
|
1727 |
if (listeValeurs.getId().equals(config.getListeId("fonction"))) {
|
- |
|
1728 |
magazinLiFonction.removeAll();
|
- |
|
1729 |
magazinLiFonction.add(liste);
|
- |
|
1730 |
comboLiFonction.setStore(magazinLiFonction);
|
- |
|
1731 |
}
|
- |
|
1732 |
if (listeValeurs.getId().equals(config.getListeId("pays"))) {
|
- |
|
1733 |
magazinPays.removeAll();
|
- |
|
1734 |
magazinPays.add(liste);
|
- |
|
1735 |
comboPays.setStore(magazinPays);
|
- |
|
1736 |
}
|
- |
|
1737 |
if (listeValeurs.getId().equals(config.getListeId("localStockage"))) {
|
- |
|
1738 |
localStockageAutreChp = new TextField<String>();
|
- |
|
1739 |
creerChoixMultipleCac(localStockageTrukCp, localStockageTrukCacGrpChp, listeValeurs, localStockageAutreChp);
|
- |
|
1740 |
}
|
- |
|
1741 |
if (listeValeurs.getId().equals(config.getListeId("meubleStockage"))) {
|
- |
|
1742 |
meubleStockageAutreChp = new TextField<String>();
|
- |
|
1743 |
creerChoixMultipleCac(meubleStockageTrukCp, meubleStockageTrukCacGrpChp, listeValeurs, meubleStockageAutreChp);
|
- |
|
1744 |
}
|
- |
|
1745 |
if (listeValeurs.getId().equals(config.getListeId("parametreStockage"))) {
|
- |
|
1746 |
parametreStockageAutreChp = new TextField<String>();
|
- |
|
1747 |
creerChoixMultipleCac(parametreStockageTrukCp, parametreStockageTrukCacGrpChp, listeValeurs, parametreStockageAutreChp);
|
- |
|
1748 |
}
|
- |
|
1749 |
if (listeValeurs.getId().equals(config.getListeId("autreCollection"))) {
|
- |
|
1750 |
if (collectionAutreTrukCp.getItemByItemId("collectionAutreTrukCacGrpChp") == null) {
|
- |
|
1751 |
collectionAutreTrukCacGrpChp.setId("collectionAutreTrukCacGrpChp");
|
- |
|
1752 |
collectionAutreAutreChp = new TextField<String>();
|
- |
|
1753 |
creerChoixMultipleCac(collectionAutreTrukCp, collectionAutreTrukCacGrpChp, listeValeurs, collectionAutreAutreChp);
|
- |
|
1754 |
}
|
- |
|
1755 |
if (autreCollectionTrukCp.getItemByItemId("autreCollectionTrukCacGrpChp") == null) {
|
- |
|
1756 |
autreCollectionTrukCacGrpChp.setId("autreCollectionTrukCacGrpChp");
|
- |
|
1757 |
autreCollectionAutreChp = new TextField<String>();
|
- |
|
1758 |
creerChoixMultipleCac(autreCollectionTrukCp, autreCollectionTrukCacGrpChp, listeValeurs, autreCollectionAutreChp);
|
- |
|
1759 |
}
|
- |
|
1760 |
}
|
- |
|
1761 |
if (listeValeurs.getId().equals(config.getListeId("opRestau"))) {
|
- |
|
1762 |
opRestauAutreChp = new TextField<String>();
|
- |
|
1763 |
creerChoixMultipleCac(opRestauTrukCp, opRestauTrukCacGrpChp, listeValeurs, opRestauAutreChp);
|
- |
|
1764 |
}
|
- |
|
1765 |
if (listeValeurs.getId().equals(config.getListeId("onep"))) {
|
- |
|
1766 |
creerChoixUniqueBoutonRadio(materielConservationCeRGrpChp, listeValeurs);
|
- |
|
1767 |
materielConservationCp.add(materielConservationCeRGrpChp);
|
- |
|
1768 |
materielConservationCp.layout();
|
- |
|
1769 |
}
|
- |
|
1770 |
if (listeValeurs.getId().equals(config.getListeId("autreMateriel"))) {
|
- |
|
1771 |
autreMaterielAutreChp = new TextField<String>();
|
- |
|
1772 |
creerChoixMultipleCac(autreMaterielTrukCp, autreMaterielTrukCacGrpChp, listeValeurs, autreMaterielAutreChp);
|
- |
|
1773 |
}
|
- |
|
1774 |
if (listeValeurs.getId().equals(config.getListeId("poisonTraitement"))) {
|
- |
|
1775 |
poisonTraitementAutreChp = new TextField<String>();
|
- |
|
1776 |
creerChoixMultipleCac(poisonTraitementTrukCp, poisonTraitementTrukCacGrpChp, listeValeurs, poisonTraitementAutreChp);
|
- |
|
1777 |
}
|
- |
|
1778 |
if (listeValeurs.getId().equals(config.getListeId("insecteTraitement"))) {
|
- |
|
1779 |
if (traitementTrukCp.getItemByItemId("traitementTrukCacGrpChp") == null) {
|
- |
|
1780 |
traitementTrukCacGrpChp.setId("traitementTrukCacGrpChp");
|
- |
|
1781 |
traitementAutreChp = new TextField<String>();
|
- |
|
1782 |
creerChoixMultipleCac(traitementTrukCp, traitementTrukCacGrpChp, listeValeurs, traitementAutreChp);
|
- |
|
1783 |
}
|
- |
|
1784 |
if (insecteTraitementTrukCp.getItemByItemId("insecteTraitementTrukCacGrpChp") == null) {
|
- |
|
1785 |
insecteTraitementTrukCacGrpChp.setId("insecteTraitementTrukCacGrpChp");
|
- |
|
1786 |
insecteTraitementAutreChp = new TextField<String>();
|
- |
|
1787 |
creerChoixMultipleCac(insecteTraitementTrukCp, insecteTraitementTrukCacGrpChp, listeValeurs, insecteTraitementAutreChp);
|
1684 |
}
|
1788 |
}
|
1685 |
}
|
1789 |
}
|
1686 |
if (listeValeurs.getId().equals(config.getListeId("actionValorisation"))) {
|
1790 |
if (listeValeurs.getId().equals(config.getListeId("actionValorisation"))) {
|
1687 |
actionAutreChp = new TextField<String>();
|
1791 |
actionAutreChp = new TextField<String>();
|
1688 |
creerChoixMultipleCac(actionTrukCp, actionTrukCacGrpChp, listeValeurs, actionAutreChp);
|
1792 |
creerChoixMultipleCac(actionTrukCp, actionTrukCacGrpChp, listeValeurs, actionAutreChp);
|
1689 |
}
|
1793 |
}
|
1690 |
if (listeValeurs.getId().equals(config.getListeId("continentEtFr"))) {
|
1794 |
if (listeValeurs.getId().equals(config.getListeId("continentEtFr"))) {
|
1691 |
provenanceRechercheAutreChp = new TextField<String>();
|
1795 |
provenanceRechercheAutreChp = new TextField<String>();
|
1692 |
creerChoixMultipleCac(provenanceRechercheTrukCp, provenanceRechercheTrukCacGrpChp, listeValeurs, provenanceRechercheAutreChp);
|
1796 |
creerChoixMultipleCac(provenanceRechercheTrukCp, provenanceRechercheTrukCacGrpChp, listeValeurs, provenanceRechercheAutreChp);
|
1693 |
}
|
1797 |
}
|
1694 |
if (listeValeurs.getId().equals(config.getListeId("typeRecherche"))) {
|
1798 |
if (listeValeurs.getId().equals(config.getListeId("typeRecherche"))) {
|
- |
|
1799 |
typeRechercheAutreChp = new TextField<String>();
|
- |
|
1800 |
creerChoixMultipleCac(typeRechercheTrukCp, typeRechercheTrukCacGrpChp, listeValeurs, typeRechercheAutreChp);
|
- |
|
1801 |
}
|
- |
|
1802 |
//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
|
1695 |
typeRechercheAutreChp = new TextField<String>();
|
1803 |
} else {
|
1696 |
creerChoixMultipleCac(typeRechercheTrukCp, typeRechercheTrukCacGrpChp, listeValeurs, typeRechercheAutreChp);
|
- |
|
1697 |
}
|
- |
|
1698 |
//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
|
- |
|
1699 |
} else {
|
1804 |
GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
|
- |
|
1805 |
}
|
- |
|
1806 |
}
|
1700 |
GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
|
1807 |
} catch (Exception e) {
|
1701 |
}
|
1808 |
GWT.log("rafraichir()", e);
|
Line 1702... |
Line 1809... |
1702 |
}
|
1809 |
}
|
1703 |
}
|
1810 |
}
|