1 |
package org.tela_botanica.client.vues;
|
1 |
package org.tela_botanica.client.vues;
|
2 |
|
2 |
|
3 |
import java.util.ArrayList;
|
3 |
import java.util.ArrayList;
|
4 |
import java.util.Iterator;
|
4 |
import java.util.Iterator;
|
5 |
import java.util.List;
|
5 |
import java.util.List;
|
6 |
|
6 |
|
7 |
import org.tela_botanica.client.ComposantId;
|
7 |
import org.tela_botanica.client.ComposantId;
|
8 |
import org.tela_botanica.client.Mediateur;
|
8 |
import org.tela_botanica.client.Mediateur;
|
9 |
import org.tela_botanica.client.Modele;
|
9 |
import org.tela_botanica.client.Modele;
|
10 |
import org.tela_botanica.client.RegistreId;
|
10 |
import org.tela_botanica.client.RegistreId;
|
11 |
import org.tela_botanica.client.i18n.Constantes;
|
11 |
import org.tela_botanica.client.i18n.Constantes;
|
12 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
12 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
13 |
import org.tela_botanica.client.modeles.Configuration;
|
13 |
import org.tela_botanica.client.modeles.Configuration;
|
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;
|
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;
|
27 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
30 |
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;
|
32 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
36 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
33 |
import com.extjs.gxt.ui.client.event.ToolBarEvent;
|
37 |
import com.extjs.gxt.ui.client.event.ToolBarEvent;
|
34 |
import com.extjs.gxt.ui.client.store.ListStore;
|
38 |
import com.extjs.gxt.ui.client.store.ListStore;
|
35 |
import com.extjs.gxt.ui.client.store.Store;
|
39 |
import com.extjs.gxt.ui.client.store.Store;
|
36 |
import com.extjs.gxt.ui.client.widget.Component;
|
40 |
import com.extjs.gxt.ui.client.widget.Component;
|
37 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
41 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
38 |
import com.extjs.gxt.ui.client.widget.Info;
|
42 |
import com.extjs.gxt.ui.client.widget.Info;
|
39 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
43 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
40 |
import com.extjs.gxt.ui.client.widget.TabItem;
|
44 |
import com.extjs.gxt.ui.client.widget.TabItem;
|
41 |
import com.extjs.gxt.ui.client.widget.TabPanel;
|
45 |
import com.extjs.gxt.ui.client.widget.TabPanel;
|
42 |
import com.extjs.gxt.ui.client.widget.WidgetComponent;
|
46 |
import com.extjs.gxt.ui.client.widget.WidgetComponent;
|
43 |
import com.extjs.gxt.ui.client.widget.button.Button;
|
47 |
import com.extjs.gxt.ui.client.widget.button.Button;
|
44 |
import com.extjs.gxt.ui.client.widget.form.CheckBox;
|
48 |
import com.extjs.gxt.ui.client.widget.form.CheckBox;
|
45 |
import com.extjs.gxt.ui.client.widget.form.CheckBoxGroup;
|
49 |
import com.extjs.gxt.ui.client.widget.form.CheckBoxGroup;
|
46 |
import com.extjs.gxt.ui.client.widget.form.ComboBox;
|
50 |
import com.extjs.gxt.ui.client.widget.form.ComboBox;
|
47 |
import com.extjs.gxt.ui.client.widget.form.DateField;
|
51 |
import com.extjs.gxt.ui.client.widget.form.DateField;
|
48 |
import com.extjs.gxt.ui.client.widget.form.Field;
|
52 |
import com.extjs.gxt.ui.client.widget.form.Field;
|
49 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
53 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
50 |
import com.extjs.gxt.ui.client.widget.form.FormPanel;
|
54 |
import com.extjs.gxt.ui.client.widget.form.FormPanel;
|
51 |
import com.extjs.gxt.ui.client.widget.form.HiddenField;
|
55 |
import com.extjs.gxt.ui.client.widget.form.HiddenField;
|
52 |
import com.extjs.gxt.ui.client.widget.form.LabelField;
|
56 |
import com.extjs.gxt.ui.client.widget.form.LabelField;
|
53 |
import com.extjs.gxt.ui.client.widget.form.NumberField;
|
57 |
import com.extjs.gxt.ui.client.widget.form.NumberField;
|
54 |
import com.extjs.gxt.ui.client.widget.form.Radio;
|
58 |
import com.extjs.gxt.ui.client.widget.form.Radio;
|
55 |
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
|
59 |
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
|
56 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
60 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
57 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
61 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
58 |
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
|
62 |
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
|
59 |
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
|
63 |
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
|
60 |
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
|
64 |
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
|
61 |
import com.extjs.gxt.ui.client.widget.grid.CheckBoxSelectionModel;
|
65 |
import com.extjs.gxt.ui.client.widget.grid.CheckBoxSelectionModel;
|
62 |
import com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig;
|
66 |
import com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig;
|
63 |
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
|
67 |
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
|
64 |
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
|
68 |
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
|
65 |
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
|
69 |
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
|
66 |
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
|
70 |
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
|
67 |
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
|
71 |
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
|
68 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
72 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
69 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
73 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
70 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
74 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
71 |
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
|
75 |
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
|
72 |
import com.extjs.gxt.ui.client.widget.tips.ToolTipConfig;
|
76 |
import com.extjs.gxt.ui.client.widget.tips.ToolTipConfig;
|
73 |
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
|
77 |
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
|
74 |
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
|
78 |
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
|
75 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
79 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
76 |
import com.google.gwt.core.client.GWT;
|
80 |
import com.google.gwt.core.client.GWT;
|
77 |
import com.google.gwt.i18n.client.DateTimeFormat;
|
81 |
import com.google.gwt.i18n.client.DateTimeFormat;
|
78 |
import com.google.gwt.i18n.client.NumberFormat;
|
82 |
import com.google.gwt.i18n.client.NumberFormat;
|
79 |
import com.google.gwt.user.client.Event;
|
83 |
import com.google.gwt.user.client.Event;
|
80 |
import com.google.gwt.user.client.Window;
|
84 |
import com.google.gwt.user.client.Window;
|
81 |
import com.google.gwt.user.client.ui.HTML;
|
85 |
import com.google.gwt.user.client.ui.HTML;
|
82 |
import com.google.gwt.user.client.ui.Widget;
|
86 |
import com.google.gwt.user.client.ui.Widget;
|
83 |
|
87 |
|
84 |
public class FormStructureVue extends LayoutContainer implements Rafraichissable {
|
88 |
public class FormStructureVue extends LayoutContainer implements Rafraichissable {
|
85 |
|
89 |
|
86 |
private Constantes i18nC = null;
|
90 |
private Constantes i18nC = null;
|
87 |
private Mediateur mediateur = null;
|
91 |
private Mediateur mediateur = null;
|
88 |
private Modele modele = null ;
|
92 |
private Modele modele = null ;
|
89 |
|
93 |
|
90 |
private String mode = "AJOUT";
|
94 |
private String mode = "AJOUT";
|
91 |
private FormPanel structureFormPanneau = null;
|
95 |
private FormPanel structureFormPanneau = null;
|
92 |
private int tabIndex = 100;
|
96 |
private int tabIndex = 100;
|
93 |
private TabPanel onglets = null;
|
97 |
private TabPanel onglets = null;
|
94 |
|
98 |
|
95 |
private TabItem identificationOnglet = null;
|
99 |
private TabItem identificationOnglet = null;
|
96 |
private TabItem personnelOnglet = null;
|
100 |
private TabItem personnelOnglet = null;
|
97 |
private TabItem conservationOnglet = null;
|
101 |
private TabItem conservationOnglet = null;
|
98 |
private TabItem valorisationOnglet = null;
|
102 |
private TabItem valorisationOnglet = null;
|
99 |
|
103 |
|
100 |
private HiddenField<String> idStructureChp = null;
|
104 |
private HiddenField<String> idStructureChp = null;
|
101 |
|
- |
|
102 |
private StructureConservation conservation = null;
|
- |
|
103 |
private StructureValorisation valorisation = null;
|
- |
|
104 |
|
105 |
|
- |
|
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;
|
109 |
private ComboBox<Valeur> comboLstpu = null;
|
111 |
private ComboBox<Valeur> comboLstpu = null;
|
110 |
private ListStore<Valeur> magazinLiStatut = null;
|
112 |
private ListStore<Valeur> magazinLiStatut = null;
|
111 |
private ComboBox<Valeur> comboLiStatut = null;
|
113 |
private ComboBox<Valeur> comboLiStatut = null;
|
112 |
private ListStore<Valeur> magazinLiFonction = null;
|
114 |
private ListStore<Valeur> magazinLiFonction = null;
|
113 |
private ComboBox<Valeur> comboLiFonction = null;
|
115 |
private ComboBox<Valeur> comboLiFonction = null;
|
114 |
private ComboBox<InterneValeur> comboAcronyme = null;
|
116 |
private ComboBox<InterneValeur> comboAcronyme = null;
|
115 |
private TextField<String> ihChp = null;
|
117 |
private TextField<String> ihChp = null;
|
116 |
private TextField<String> mnhnChp = null;
|
118 |
private TextField<String> mnhnChp = null;
|
117 |
private ComboBox<InterneValeur> comboTypeStructure = null;
|
119 |
private ComboBox<InterneValeur> comboTypeStructure = null;
|
118 |
private TextField<String> nomStructureChp;
|
120 |
private TextField<String> nomStructureChp;
|
119 |
private DateField dateFondationChp;
|
121 |
private DateField dateFondationChp;
|
120 |
private TextArea adrChp;
|
122 |
private TextArea adrChp;
|
121 |
private TextField<String> cpChp;
|
123 |
private TextField<String> cpChp;
|
122 |
private TextField<String> villeChp;
|
124 |
private TextField<String> villeChp;
|
123 |
private TextField<String> regionChp;
|
125 |
private TextField<String> regionChp;
|
124 |
private TextField<String> telChp;
|
126 |
private TextField<String> telChp;
|
125 |
private TextField<String> faxChp;
|
127 |
private TextField<String> faxChp;
|
126 |
private TextField<String> emailChp;
|
128 |
private TextField<String> emailChp;
|
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;
|
130 |
|
132 |
|
131 |
// Onglet PERSONNEL
|
133 |
// Onglet PERSONNEL
|
132 |
private EditorGrid<Personne> grillePersonnel = null;
|
- |
|
133 |
private ListStore<Personne> personnelGrilleMagazin = null;
|
- |
|
134 |
private LabelField nbreTotalPersonnelChp = null;
|
134 |
private ArrayList<StructureAPersonne> personnel;
|
135 |
private NumberField nbreTotalPersonneStructureChp = null;
|
135 |
private NumberField nbreTotalPersonneStructureChp = null;
|
- |
|
136 |
private EditorGrid<StructureAPersonne> grillePersonnel = null;
|
- |
|
137 |
private ListStore<StructureAPersonne> personnelGrilleMagazin = null;
|
- |
|
138 |
private LabelField nbreTotalPersonnelChp = null;
|
136 |
|
139 |
|
137 |
// Onglet CONSERVATION
|
140 |
// 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;
|
142 |
private RadioGroup restaurationMarkRGrpChp;
|
146 |
private RadioGroup restaurationMarkRGrpChp;
|
143 |
private RadioGroup traitementMarkRGrpChp;
|
147 |
private RadioGroup traitementMarkRGrpChp;
|
144 |
private RadioGroup collectionAcquisitionMarkRGrpChp;
|
148 |
private RadioGroup collectionAcquisitionMarkRGrpChp;
|
145 |
private RadioGroup echantillonAcquisitionMarkRGrpChp;
|
149 |
private RadioGroup echantillonAcquisitionMarkRGrpChp;
|
146 |
private TextField<String> localStockageAutreChp;
|
150 |
private TextField<String> localStockageAutreChp;
|
147 |
private TextField<String> meubleStockageAutreChp;
|
151 |
private TextField<String> meubleStockageAutreChp;
|
148 |
private TextField<String> parametreStockageAutreChp;
|
152 |
private TextField<String> parametreStockageAutreChp;
|
149 |
private TextField<String> collectionAutreAutreChp;
|
153 |
private TextField<String> collectionAutreAutreChp;
|
150 |
private TextField<String> autreCollectionAutreChp;
|
154 |
private TextField<String> autreCollectionAutreChp;
|
151 |
private TextField<String> opRestauAutreChp;
|
155 |
private TextField<String> opRestauAutreChp;
|
152 |
private TextField<String> autreMaterielAutreChp;
|
156 |
private TextField<String> autreMaterielAutreChp;
|
153 |
private TextField<String> poisonTraitementAutreChp;
|
157 |
private TextField<String> poisonTraitementAutreChp;
|
154 |
private TextField<String> traitementAutreChp;
|
158 |
private TextField<String> traitementAutreChp;
|
155 |
private TextField<String> insecteTraitementAutreChp;
|
159 |
private TextField<String> insecteTraitementAutreChp;
|
156 |
private TextField<String> actionAutreChp;
|
160 |
private TextField<String> actionAutreChp;
|
157 |
private TextField<String> provenanceRechercheAutreChp;
|
161 |
private TextField<String> provenanceRechercheAutreChp;
|
158 |
private TextField<String> typeRechercheAutreChp;
|
162 |
private TextField<String> typeRechercheAutreChp;
|
159 |
private CheckBoxGroup localStockageTrukCacGrpChp = null;
|
163 |
private CheckBoxGroup localStockageTrukCacGrpChp = null;
|
160 |
private ContentPanel localStockageTrukCp = null;
|
164 |
private ContentPanel localStockageTrukCp = null;
|
161 |
private CheckBoxGroup meubleStockageTrukCacGrpChp = null;
|
165 |
private CheckBoxGroup meubleStockageTrukCacGrpChp = null;
|
162 |
private ContentPanel meubleStockageTrukCp = null;
|
166 |
private ContentPanel meubleStockageTrukCp = null;
|
163 |
private CheckBoxGroup parametreStockageTrukCacGrpChp = null;
|
167 |
private CheckBoxGroup parametreStockageTrukCacGrpChp = null;
|
164 |
private ContentPanel parametreStockageTrukCp = null;
|
168 |
private ContentPanel parametreStockageTrukCp = null;
|
165 |
private ContentPanel collectionAutreTrukCp = null;
|
169 |
private ContentPanel collectionAutreTrukCp = null;
|
166 |
private CheckBoxGroup collectionAutreTrukCacGrpChp = null;
|
170 |
private CheckBoxGroup collectionAutreTrukCacGrpChp = null;
|
167 |
private CheckBoxGroup opRestauTrukCacGrpChp = null;
|
171 |
private CheckBoxGroup opRestauTrukCacGrpChp = null;
|
168 |
private ContentPanel opRestauTrukCp = null;
|
172 |
private ContentPanel opRestauTrukCp = null;
|
169 |
private CheckBoxGroup autreMaterielTrukCacGrpChp = null;
|
173 |
private CheckBoxGroup autreMaterielTrukCacGrpChp = null;
|
170 |
private ContentPanel autreMaterielTrukCp = null;
|
174 |
private ContentPanel autreMaterielTrukCp = null;
|
171 |
private ContentPanel traitementTrukCp = null;
|
175 |
private ContentPanel traitementTrukCp = null;
|
172 |
private CheckBoxGroup traitementTrukCacGrpChp = null;
|
176 |
private CheckBoxGroup traitementTrukCacGrpChp = null;
|
173 |
private ContentPanel poisonTraitementTrukCp = null;
|
177 |
private ContentPanel poisonTraitementTrukCp = null;
|
174 |
private ContentPanel insecteTraitementTrukCp = null;
|
178 |
private ContentPanel insecteTraitementTrukCp = null;
|
175 |
private CheckBoxGroup insecteTraitementTrukCacGrpChp = null;
|
179 |
private CheckBoxGroup insecteTraitementTrukCacGrpChp = null;
|
176 |
private CheckBoxGroup poisonTraitementTrukCacGrpChp = null;
|
180 |
private CheckBoxGroup poisonTraitementTrukCacGrpChp = null;
|
177 |
private ContentPanel autreCollectionTrukCp = null;
|
181 |
private ContentPanel autreCollectionTrukCp = null;
|
178 |
private CheckBoxGroup autreCollectionTrukCacGrpChp = null;
|
182 |
private CheckBoxGroup autreCollectionTrukCacGrpChp = null;
|
179 |
private ContentPanel provenanceRechercheTrukCp = null;
|
183 |
private ContentPanel provenanceRechercheTrukCp = null;
|
180 |
private CheckBoxGroup provenanceRechercheTrukCacGrpChp = null;
|
184 |
private CheckBoxGroup provenanceRechercheTrukCacGrpChp = null;
|
181 |
private CheckBoxGroup typeRechercheTrukCacGrpChp = null;
|
185 |
private CheckBoxGroup typeRechercheTrukCacGrpChp = null;
|
182 |
private ContentPanel typeRechercheTrukCp = null;
|
186 |
private ContentPanel typeRechercheTrukCp = null;
|
183 |
private TextField<String> futureActionChp = null;
|
187 |
private TextField<String> futureActionChp = null;
|
184 |
private TextField<String> sansMotifAccesChp = null;
|
188 |
private TextField<String> sansMotifAccesChp = null;
|
185 |
private TextField<String> avecMotifAccesChp = null;
|
189 |
private TextField<String> avecMotifAccesChp = null;
|
186 |
private TextField<String> formationChp = null;
|
190 |
private TextField<String> formationChp = null;
|
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;
|
190 |
|
194 |
|
191 |
// Onglet VALORISATION
|
195 |
// 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;
|
200 |
private ContentPanel materielConservationCp;
|
205 |
private ContentPanel materielConservationCp;
|
- |
|
206 |
|
- |
|
207 |
|
201 |
|
208 |
|
202 |
public FormStructureVue() {
|
209 |
public FormStructureVue() {
|
203 |
//+-----------------------------------------------------------------------------------------------------------+
|
210 |
//+-----------------------------------------------------------------------------------------------------------+
|
204 |
// Initialisation de variables
|
211 |
// Initialisation de variables
|
205 |
i18nC = GWT.create(Constantes.class);
|
212 |
i18nC = GWT.create(Constantes.class);
|
206 |
setLayout(new FitLayout());
|
213 |
setLayout(new FitLayout());
|
207 |
modele = Registry.get(RegistreId.MODELE);
|
214 |
modele = Registry.get(RegistreId.MODELE);
|
208 |
mediateur = Registry.get(RegistreId.MEDIATEUR);
|
215 |
mediateur = Registry.get(RegistreId.MEDIATEUR);
|
209 |
|
216 |
|
210 |
//+-----------------------------------------------------------------------------------------------------------+
|
217 |
//+-----------------------------------------------------------------------------------------------------------+
|
211 |
// Création du panneau du FORMULAIRE GÉNÉRAL
|
218 |
// Création du panneau du FORMULAIRE GÉNÉRAL
|
212 |
structureFormPanneau = new FormPanel();
|
219 |
structureFormPanneau = new FormPanel();
|
213 |
structureFormPanneau.setFrame(true);
|
220 |
structureFormPanneau.setFrame(true);
|
214 |
structureFormPanneau.setIconStyle("icone-form-ajouter");
|
221 |
structureFormPanneau.setIconStyle("icone-form-ajouter");
|
215 |
structureFormPanneau.setCollapsible(false);
|
222 |
structureFormPanneau.setCollapsible(false);
|
216 |
structureFormPanneau.setHeading(i18nC.titreAjoutFormStructurePanneau());
|
223 |
structureFormPanneau.setHeading(i18nC.titreAjoutFormStructurePanneau());
|
217 |
structureFormPanneau.setButtonAlign(HorizontalAlignment.CENTER);
|
224 |
structureFormPanneau.setButtonAlign(HorizontalAlignment.CENTER);
|
218 |
structureFormPanneau.setLayout(new FlowLayout());
|
225 |
structureFormPanneau.setLayout(new FlowLayout());
|
219 |
|
226 |
|
220 |
//+-----------------------------------------------------------------------------------------------------------+
|
227 |
//+-----------------------------------------------------------------------------------------------------------+
|
221 |
// Création des onglets
|
228 |
// Création des onglets
|
222 |
onglets = new TabPanel();
|
229 |
onglets = new TabPanel();
|
223 |
// NOTE : pour faire apparaître les scrollBar il faut définir la hauteur du panneau d'onglets à 100% (autoHeight ne semble pas fonctionner)
|
230 |
// NOTE : pour faire apparaître les scrollBar il faut définir la hauteur du panneau d'onglets à 100% (autoHeight ne semble pas fonctionner)
|
224 |
onglets.setHeight("100%");
|
231 |
onglets.setHeight("100%");
|
225 |
|
232 |
|
226 |
//+-----------------------------------------------------------------------------------------------------------+
|
233 |
//+-----------------------------------------------------------------------------------------------------------+
|
227 |
// Onlget formulaire IDENTIFICATION
|
234 |
// Onlget formulaire IDENTIFICATION
|
228 |
onglets.add(creerOngletIdentification());
|
235 |
onglets.add(creerOngletIdentification());
|
229 |
|
236 |
|
230 |
//+-----------------------------------------------------------------------------------------------------------+
|
237 |
//+-----------------------------------------------------------------------------------------------------------+
|
231 |
// Onlget formulaire PERSONNEL
|
238 |
// Onlget formulaire PERSONNEL
|
232 |
onglets.add(creerOngletPersonnel());
|
239 |
onglets.add(creerOngletPersonnel());
|
233 |
|
240 |
|
234 |
//+-----------------------------------------------------------------------------------------------------------+
|
241 |
//+-----------------------------------------------------------------------------------------------------------+
|
235 |
// Onlget formulaire CONSERVATION
|
242 |
// Onlget formulaire CONSERVATION
|
236 |
onglets.add(creerOngletConservation());
|
243 |
onglets.add(creerOngletConservation());
|
237 |
|
244 |
|
238 |
//+-----------------------------------------------------------------------------------------------------------+
|
245 |
//+-----------------------------------------------------------------------------------------------------------+
|
239 |
// Onlget formulaire VALORISATION
|
246 |
// Onlget formulaire VALORISATION
|
240 |
onglets.add(creerOngletValorisation());
|
247 |
onglets.add(creerOngletValorisation());
|
241 |
|
248 |
|
242 |
//+-----------------------------------------------------------------------------------------------------------+
|
249 |
//+-----------------------------------------------------------------------------------------------------------+
|
243 |
// Gestion du FORMULAIRE GÉNÉRAL
|
250 |
// Gestion du FORMULAIRE GÉNÉRAL
|
244 |
|
251 |
|
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);
|
247 |
|
254 |
|
248 |
// Ajout des onglets au formulaire général
|
255 |
// Ajout des onglets au formulaire général
|
249 |
structureFormPanneau.add(onglets);
|
256 |
structureFormPanneau.add(onglets);
|
250 |
|
257 |
|
251 |
// Ajout des boutons au panneau formulaire
|
258 |
// Ajout des boutons au panneau formulaire
|
252 |
Button annulerBtn = new Button("Annuler");
|
259 |
Button annulerBtn = new Button("Annuler");
|
253 |
annulerBtn.addSelectionListener(new SelectionListener<ComponentEvent>() {
|
260 |
annulerBtn.addSelectionListener(new SelectionListener<ComponentEvent>() {
|
254 |
|
261 |
|
255 |
@Override
|
262 |
@Override
|
256 |
public void componentSelected(ComponentEvent ce) {
|
263 |
public void componentSelected(ComponentEvent ce) {
|
257 |
mediateur.clicMenu("Institutions");
|
264 |
mediateur.clicMenu("Institutions");
|
258 |
}
|
265 |
}
|
259 |
|
266 |
|
260 |
});
|
267 |
});
|
261 |
structureFormPanneau.addButton(annulerBtn);
|
268 |
structureFormPanneau.addButton(annulerBtn);
|
262 |
Button validerBtn = new Button("Valider");
|
269 |
Button validerBtn = new Button("Valider");
|
263 |
validerBtn.addSelectionListener(new SelectionListener<ComponentEvent>() {
|
270 |
validerBtn.addSelectionListener(new SelectionListener<ComponentEvent>() {
|
264 |
|
271 |
|
265 |
@Override
|
272 |
@Override
|
266 |
public void componentSelected(ComponentEvent ce) {
|
273 |
public void componentSelected(ComponentEvent ce) {
|
267 |
soumettreFormulaire();
|
274 |
soumettreFormulaire();
|
268 |
}
|
275 |
}
|
269 |
|
276 |
|
270 |
});
|
277 |
});
|
271 |
structureFormPanneau.addButton(validerBtn);
|
278 |
structureFormPanneau.addButton(validerBtn);
|
272 |
|
279 |
|
273 |
// Ajout du panneau Formulaire à la disposition générale
|
280 |
// Ajout du panneau Formulaire à la disposition générale
|
274 |
add(structureFormPanneau);
|
281 |
add(structureFormPanneau);
|
275 |
}
|
282 |
}
|
276 |
|
283 |
|
277 |
private void soumettreFormulaire() {
|
284 |
private void soumettreFormulaire() {
|
278 |
GWT.log("Soumission du formulaire", null);
|
285 |
GWT.log("Soumission du formulaire", null);
|
279 |
Structure structure = collecterStructureIdentification();
|
286 |
Structure structure = collecterStructureIdentification();
|
280 |
StructureConservation conservation = collecterStructureConservation();
|
287 |
StructureConservation conservation = collecterStructureConservation();
|
281 |
StructureValorisation valorisation = collecterStructureValorisation();
|
288 |
StructureValorisation valorisation = collecterStructureValorisation();
|
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 |
}
|
289 |
|
296 |
|
290 |
private StructureValorisation collecterStructureValorisation() {
|
297 |
private StructureValorisation collecterStructureValorisation() {
|
291 |
if (valorisationOnglet.getData("acces").equals(false)) {
|
298 |
if (valorisationOnglet.getData("acces").equals(false)) {
|
292 |
return valorisation;
|
299 |
return valorisation;
|
293 |
} else {
|
300 |
} else {
|
294 |
// Création de l'objet
|
301 |
// Création de l'objet
|
295 |
StructureValorisation valorisationModifie = new StructureValorisation();
|
302 |
StructureValorisation valorisationModifie = new StructureValorisation();
|
296 |
|
303 |
|
297 |
// ACTION
|
304 |
// ACTION
|
298 |
if (actionMarkRGrpChp.getValue() != null) {
|
305 |
if (actionMarkRGrpChp.getValue() != null) {
|
299 |
valorisationModifie.setAction(actionMarkRGrpChp.getValue().getValueAttribute());
|
306 |
valorisationModifie.setAction(actionMarkRGrpChp.getValue().getValueAttribute());
|
300 |
}
|
307 |
}
|
301 |
|
308 |
|
302 |
// ACTION INFO
|
309 |
// ACTION INFO
|
303 |
valorisationModifie.setActionInfo(creerChaineDenormalisee(actionTrukCacGrpChp.getValues()));
|
310 |
valorisationModifie.setActionInfo(creerChaineDenormalisee(actionTrukCacGrpChp.getValues()));
|
304 |
valorisationModifie.setActionInfo("AUTRE", actionAutreChp.getValue());
|
311 |
valorisationModifie.setActionInfo("AUTRE", actionAutreChp.getValue());
|
305 |
|
312 |
|
306 |
// PUBLICATION
|
313 |
// PUBLICATION
|
307 |
valorisationModifie.setPublication(publicationChp.getValue());
|
314 |
valorisationModifie.setPublication(publicationChp.getValue());
|
308 |
|
315 |
|
309 |
// COLLECTION AUTRE
|
316 |
// COLLECTION AUTRE
|
310 |
valorisationModifie.setCollectionAutre(creerChaineDenormalisee(autreCollectionTrukCacGrpChp.getValues()));
|
317 |
valorisationModifie.setCollectionAutre(creerChaineDenormalisee(autreCollectionTrukCacGrpChp.getValues()));
|
311 |
valorisationModifie.setCollectionAutre("AUTRE", autreCollectionAutreChp.getValue());
|
318 |
valorisationModifie.setCollectionAutre("AUTRE", autreCollectionAutreChp.getValue());
|
312 |
|
319 |
|
313 |
// ACTION FUTURE
|
320 |
// ACTION FUTURE
|
314 |
if (futureActionMarkRGrpChp.getValue() != null) {
|
321 |
if (futureActionMarkRGrpChp.getValue() != null) {
|
315 |
valorisationModifie.setActionFuture(futureActionMarkRGrpChp.getValue().getValueAttribute());
|
322 |
valorisationModifie.setActionFuture(futureActionMarkRGrpChp.getValue().getValueAttribute());
|
316 |
}
|
323 |
}
|
317 |
// ACTION FUTURE INFO
|
324 |
// ACTION FUTURE INFO
|
318 |
valorisationModifie.setActionFutureInfo(futureActionChp.getValue());
|
325 |
valorisationModifie.setActionFutureInfo(futureActionChp.getValue());
|
319 |
|
326 |
|
320 |
// RECHERCHE
|
327 |
// RECHERCHE
|
321 |
if (rechercheMarkRGrpChp.getValue() != null) {
|
328 |
if (rechercheMarkRGrpChp.getValue() != null) {
|
322 |
valorisationModifie.setRecherche(rechercheMarkRGrpChp.getValue().getValueAttribute());
|
329 |
valorisationModifie.setRecherche(rechercheMarkRGrpChp.getValue().getValueAttribute());
|
323 |
}
|
330 |
}
|
324 |
|
331 |
|
325 |
// RECHERCHE PROVENANCE
|
332 |
// RECHERCHE PROVENANCE
|
326 |
valorisationModifie.setRechercheProvenance(creerChaineDenormalisee(provenanceRechercheTrukCacGrpChp.getValues()));
|
333 |
valorisationModifie.setRechercheProvenance(creerChaineDenormalisee(provenanceRechercheTrukCacGrpChp.getValues()));
|
327 |
valorisationModifie.setRechercheProvenance("AUTRE", provenanceRechercheAutreChp.getValue());
|
334 |
valorisationModifie.setRechercheProvenance("AUTRE", provenanceRechercheAutreChp.getValue());
|
328 |
|
335 |
|
329 |
// RECHERCHE TYPE
|
336 |
// RECHERCHE TYPE
|
330 |
valorisationModifie.setRechercheType(creerChaineDenormalisee(typeRechercheTrukCacGrpChp.getValues()));
|
337 |
valorisationModifie.setRechercheType(creerChaineDenormalisee(typeRechercheTrukCacGrpChp.getValues()));
|
331 |
valorisationModifie.setRechercheType("AUTRE", typeRechercheAutreChp.getValue());
|
338 |
valorisationModifie.setRechercheType("AUTRE", typeRechercheAutreChp.getValue());
|
332 |
|
339 |
|
333 |
// ACCÈS SANS MOTIF
|
340 |
// ACCÈS SANS MOTIF
|
334 |
if (sansMotifAccesMarkRGrpChp.getValue() != null) {
|
341 |
if (sansMotifAccesMarkRGrpChp.getValue() != null) {
|
335 |
valorisationModifie.setAccesSansMotif(sansMotifAccesMarkRGrpChp.getValue().getValueAttribute());
|
342 |
valorisationModifie.setAccesSansMotif(sansMotifAccesMarkRGrpChp.getValue().getValueAttribute());
|
336 |
}
|
343 |
}
|
337 |
// ACCÈS SANS MOTIF INFO
|
344 |
// ACCÈS SANS MOTIF INFO
|
338 |
valorisationModifie.setAccesSansMotifInfo(sansMotifAccesChp.getValue());
|
345 |
valorisationModifie.setAccesSansMotifInfo(sansMotifAccesChp.getValue());
|
339 |
|
346 |
|
340 |
// VISITE AVEC MOTIF
|
347 |
// VISITE AVEC MOTIF
|
341 |
if (avecMotifAccesMarkRGrpChp.getValue() != null) {
|
348 |
if (avecMotifAccesMarkRGrpChp.getValue() != null) {
|
342 |
valorisationModifie.setVisiteAvecMotif(avecMotifAccesMarkRGrpChp.getValue().getValueAttribute());
|
349 |
valorisationModifie.setVisiteAvecMotif(avecMotifAccesMarkRGrpChp.getValue().getValueAttribute());
|
343 |
}
|
350 |
}
|
344 |
// VISITE AVEC MOTIF INFO
|
351 |
// VISITE AVEC MOTIF INFO
|
345 |
valorisationModifie.setVisiteAvecMotifInfo(avecMotifAccesChp.getValue());
|
352 |
valorisationModifie.setVisiteAvecMotifInfo(avecMotifAccesChp.getValue());
|
346 |
|
353 |
|
347 |
return valorisationModifie;
|
354 |
return valorisationModifie;
|
348 |
}
|
355 |
}
|
349 |
}
|
356 |
}
|
350 |
|
357 |
|
351 |
private void peuplerStructureValorisation() {
|
358 |
private void peuplerStructureValorisation() {
|
352 |
if (valorisation != null) {
|
359 |
if (valorisation != null) {
|
353 |
// ACTION
|
360 |
// ACTION
|
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 |
|
356 |
// ACTION INFO
|
363 |
// ACTION INFO
|
357 |
peuplerCasesACocher(valorisation.getActionInfo(), actionTrukCacGrpChp, actionAutreChp);
|
364 |
peuplerCasesACocher(valorisation.getActionInfo(), actionTrukCacGrpChp, actionAutreChp);
|
358 |
|
365 |
|
359 |
// PUBLICATION
|
366 |
// PUBLICATION
|
360 |
publicationChp.setValue(valorisation.getPublication());
|
367 |
publicationChp.setValue(valorisation.getPublication());
|
361 |
|
368 |
|
362 |
// COLLECTION AUTRE
|
369 |
// COLLECTION AUTRE
|
363 |
peuplerCasesACocher(valorisation.getCollectionAutre(), autreCollectionTrukCacGrpChp, autreCollectionAutreChp);
|
370 |
peuplerCasesACocher(valorisation.getCollectionAutre(), autreCollectionTrukCacGrpChp, autreCollectionAutreChp);
|
364 |
|
371 |
|
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);
|
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);
|
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);
|
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
|
381 |
sansMotifAccesChp.setValue(valorisation.getAccesSansMotifInfo());
|
388 |
sansMotifAccesChp.setValue(valorisation.getAccesSansMotifInfo());
|
382 |
|
389 |
|
383 |
// VISITE AVEC MOTIF
|
390 |
// VISITE AVEC MOTIF
|
384 |
avecMotifAccesMarkRGrpChp.get((valorisation.getVisiteAvecMotif().equals("1") ? 0 : 1)).setValue((valorisation.getVisiteAvecMotif().equals("1") ? true : false));
|
391 |
avecMotifAccesMarkRGrpChp.get((valorisation.getVisiteAvecMotif().equals("1") ? 0 : 1)).setValue(true);
|
385 |
// VISITE AVEC MOTIF INFO
|
392 |
// VISITE AVEC MOTIF INFO
|
386 |
avecMotifAccesChp.setValue(valorisation.getVisiteAvecMotifInfo());
|
393 |
avecMotifAccesChp.setValue(valorisation.getVisiteAvecMotifInfo());
|
- |
|
394 |
|
- |
|
395 |
valorisationOnglet.layout();
|
387 |
}
|
396 |
}
|
388 |
}
|
397 |
}
|
389 |
|
398 |
|
390 |
private StructureConservation collecterStructureConservation() {
|
399 |
private StructureConservation collecterStructureConservation() {
|
391 |
if (conservationOnglet.getData("acces").equals(false)) {
|
400 |
if (conservationOnglet.getData("acces").equals(false)) {
|
392 |
return conservation;
|
401 |
return conservation;
|
393 |
} else {
|
402 |
} else {
|
394 |
// Création de l'objet
|
403 |
// Création de l'objet
|
395 |
StructureConservation conservationModifie = new StructureConservation();
|
404 |
StructureConservation conservationModifie = new StructureConservation();
|
396 |
|
405 |
|
397 |
// FORMATION
|
406 |
// FORMATION
|
398 |
if (formationMarkRGrpChp.getValue() != null) {
|
407 |
if (formationMarkRGrpChp.getValue() != null) {
|
399 |
conservationModifie.setFormation(formationMarkRGrpChp.getValue().getValueAttribute());
|
408 |
conservationModifie.setFormation(formationMarkRGrpChp.getValue().getValueAttribute());
|
400 |
}
|
409 |
}
|
401 |
// FORMATION INFO
|
410 |
// FORMATION INFO
|
402 |
conservationModifie.setFormationInfo(formationChp.getValue());
|
411 |
conservationModifie.setFormationInfo(formationChp.getValue());
|
403 |
// FORMATION INTERET
|
412 |
// FORMATION INTERET
|
404 |
if (interetFormationMarkRGrpChp.getValue() != null) {
|
413 |
if (interetFormationMarkRGrpChp.getValue() != null) {
|
405 |
conservationModifie.setFormationInteret(interetFormationMarkRGrpChp.getValue().getValueAttribute());
|
414 |
conservationModifie.setFormationInteret(interetFormationMarkRGrpChp.getValue().getValueAttribute());
|
406 |
}
|
415 |
}
|
407 |
|
416 |
|
408 |
// STOCKAGE LOCAL
|
417 |
// STOCKAGE LOCAL
|
409 |
conservationModifie.setStockageLocal(creerChaineDenormalisee(localStockageTrukCacGrpChp.getValues()));
|
418 |
conservationModifie.setStockageLocal(creerChaineDenormalisee(localStockageTrukCacGrpChp.getValues()));
|
410 |
conservationModifie.setStockageLocal("AUTRE", localStockageAutreChp.getValue());
|
419 |
conservationModifie.setStockageLocal("AUTRE", localStockageAutreChp.getValue());
|
411 |
|
420 |
|
412 |
// STOCKAGE MEUBLE
|
421 |
// STOCKAGE MEUBLE
|
413 |
conservationModifie.setStockageMeuble(creerChaineDenormalisee(meubleStockageTrukCacGrpChp.getValues()));
|
422 |
conservationModifie.setStockageMeuble(creerChaineDenormalisee(meubleStockageTrukCacGrpChp.getValues()));
|
414 |
conservationModifie.setStockageMeuble("AUTRE", meubleStockageAutreChp.getValue());
|
423 |
conservationModifie.setStockageMeuble("AUTRE", meubleStockageAutreChp.getValue());
|
415 |
|
424 |
|
416 |
// STOCKAGE PAREMETRE
|
425 |
// STOCKAGE PAREMETRE
|
417 |
conservationModifie.setStockageParametre(creerChaineDenormalisee(parametreStockageTrukCacGrpChp.getValues()));
|
426 |
conservationModifie.setStockageParametre(creerChaineDenormalisee(parametreStockageTrukCacGrpChp.getValues()));
|
418 |
conservationModifie.setStockageParametre("AUTRE", parametreStockageAutreChp.getValue());
|
427 |
conservationModifie.setStockageParametre("AUTRE", parametreStockageAutreChp.getValue());
|
419 |
|
428 |
|
420 |
// COLLECTION COMMUNE
|
429 |
// COLLECTION COMMUNE
|
421 |
if (collectionCommuneMarkRGrpChp.getValue() != null) {
|
430 |
if (collectionCommuneMarkRGrpChp.getValue() != null) {
|
422 |
conservationModifie.setCollectionCommune(collectionCommuneMarkRGrpChp.getValue().getValueAttribute());
|
431 |
conservationModifie.setCollectionCommune(collectionCommuneMarkRGrpChp.getValue().getValueAttribute());
|
423 |
}
|
432 |
}
|
424 |
// COLLECTION AUTRE
|
433 |
// COLLECTION AUTRE
|
425 |
conservationModifie.setCollectionAutre(creerChaineDenormalisee(collectionAutreTrukCacGrpChp.getValues()));
|
434 |
conservationModifie.setCollectionAutre(creerChaineDenormalisee(collectionAutreTrukCacGrpChp.getValues()));
|
426 |
conservationModifie.setCollectionAutre("AUTRE", collectionAutreAutreChp.getValue());
|
435 |
conservationModifie.setCollectionAutre("AUTRE", collectionAutreAutreChp.getValue());
|
427 |
|
436 |
|
428 |
// ACCÈS CONTROLÉ
|
437 |
// ACCÈS CONTROLÉ
|
429 |
if (accesControleMarkRGrpChp.getValue() != null) {
|
438 |
if (accesControleMarkRGrpChp.getValue() != null) {
|
430 |
conservationModifie.setAccesControle(accesControleMarkRGrpChp.getValue().getValueAttribute());
|
439 |
conservationModifie.setAccesControle(accesControleMarkRGrpChp.getValue().getValueAttribute());
|
431 |
}
|
440 |
}
|
432 |
|
441 |
|
433 |
// RESTAURATION
|
442 |
// RESTAURATION
|
434 |
if (restaurationMarkRGrpChp.getValue() != null) {
|
443 |
if (restaurationMarkRGrpChp.getValue() != null) {
|
435 |
conservationModifie.setRestauration(restaurationMarkRGrpChp.getValue().getValueAttribute());
|
444 |
conservationModifie.setRestauration(restaurationMarkRGrpChp.getValue().getValueAttribute());
|
436 |
}
|
445 |
}
|
437 |
// RESTAURATION OPÉRATION
|
446 |
// RESTAURATION OPÉRATION
|
438 |
conservationModifie.setRestaurationOperation(creerChaineDenormalisee(opRestauTrukCacGrpChp.getValues()));
|
447 |
conservationModifie.setRestaurationOperation(creerChaineDenormalisee(opRestauTrukCacGrpChp.getValues()));
|
439 |
conservationModifie.setRestaurationOperation("AUTRE", opRestauAutreChp.getValue());
|
448 |
conservationModifie.setRestaurationOperation("AUTRE", opRestauAutreChp.getValue());
|
440 |
|
449 |
|
441 |
// MATERIEL CONSERVATION
|
450 |
// MATERIEL CONSERVATION
|
442 |
if (materielConservationCeRGrpChp.getValue() != null) {
|
451 |
if (materielConservationCeRGrpChp.getValue() != null) {
|
443 |
conservationModifie.setMaterielConservation(materielConservationCeRGrpChp.getValue().getValueAttribute());
|
452 |
conservationModifie.setMaterielConservation(materielConservationCeRGrpChp.getValue().getValueAttribute());
|
444 |
}
|
453 |
}
|
445 |
|
454 |
|
446 |
// MATERIEL AUTRE
|
455 |
// MATERIEL AUTRE
|
447 |
conservationModifie.setMaterielAutre(creerChaineDenormalisee(autreMaterielTrukCacGrpChp.getValues()));
|
456 |
conservationModifie.setMaterielAutre(creerChaineDenormalisee(autreMaterielTrukCacGrpChp.getValues()));
|
448 |
conservationModifie.setMaterielAutre("AUTRE", autreMaterielAutreChp.getValue());
|
457 |
conservationModifie.setMaterielAutre("AUTRE", autreMaterielAutreChp.getValue());
|
449 |
|
458 |
|
450 |
// TRAITEMENT
|
459 |
// TRAITEMENT
|
451 |
if (traitementMarkRGrpChp.getValue() != null) {
|
460 |
if (traitementMarkRGrpChp.getValue() != null) {
|
452 |
conservationModifie.setTraitement(traitementMarkRGrpChp.getValue().getValueAttribute());
|
461 |
conservationModifie.setTraitement(traitementMarkRGrpChp.getValue().getValueAttribute());
|
453 |
}
|
462 |
}
|
454 |
// TRAIEMENTS
|
463 |
// TRAIEMENTS
|
455 |
conservationModifie.setTraitements(creerChaineDenormalisee(traitementTrukCacGrpChp.getValues()));
|
464 |
conservationModifie.setTraitements(creerChaineDenormalisee(traitementTrukCacGrpChp.getValues()));
|
456 |
conservationModifie.setTraitements("AUTRE", traitementAutreChp.getValue());
|
465 |
conservationModifie.setTraitements("AUTRE", traitementAutreChp.getValue());
|
457 |
|
466 |
|
458 |
|
467 |
|
459 |
// ACQUISITION COLLECTION
|
468 |
// ACQUISITION COLLECTION
|
460 |
if (collectionAcquisitionMarkRGrpChp.getValue() != null) {
|
469 |
if (collectionAcquisitionMarkRGrpChp.getValue() != null) {
|
461 |
conservationModifie.setAcquisitionCollection(collectionAcquisitionMarkRGrpChp.getValue().getValueAttribute());
|
470 |
conservationModifie.setAcquisitionCollection(collectionAcquisitionMarkRGrpChp.getValue().getValueAttribute());
|
462 |
}
|
471 |
}
|
463 |
|
472 |
|
464 |
// ACQUISITION ECHANTILLON
|
473 |
// ACQUISITION ECHANTILLON
|
465 |
if (echantillonAcquisitionMarkRGrpChp.getValue() != null) {
|
474 |
if (echantillonAcquisitionMarkRGrpChp.getValue() != null) {
|
466 |
conservationModifie.setAcquisitionEchantillon(echantillonAcquisitionMarkRGrpChp.getValue().getValueAttribute());
|
475 |
conservationModifie.setAcquisitionEchantillon(echantillonAcquisitionMarkRGrpChp.getValue().getValueAttribute());
|
467 |
}
|
476 |
}
|
468 |
// ACQUISITION TRAITEMENT
|
477 |
// ACQUISITION TRAITEMENT
|
469 |
if (traitementAcquisitionMarkRGrpChp.getValue() != null) {
|
478 |
if (traitementAcquisitionMarkRGrpChp.getValue() != null) {
|
470 |
conservationModifie.setAcquisitionTraitement(traitementAcquisitionMarkRGrpChp.getValue().getValueAttribute());
|
479 |
conservationModifie.setAcquisitionTraitement(traitementAcquisitionMarkRGrpChp.getValue().getValueAttribute());
|
471 |
}
|
480 |
}
|
472 |
// ACQUISITION TRAITEMENT POISON
|
481 |
// ACQUISITION TRAITEMENT POISON
|
473 |
conservationModifie.setAcquisitionTraitementPoison(creerChaineDenormalisee(poisonTraitementTrukCacGrpChp.getValues()));
|
482 |
conservationModifie.setAcquisitionTraitementPoison(creerChaineDenormalisee(poisonTraitementTrukCacGrpChp.getValues()));
|
474 |
conservationModifie.setAcquisitionTraitementPoison("AUTRE", poisonTraitementAutreChp.getValue());
|
483 |
conservationModifie.setAcquisitionTraitementPoison("AUTRE", poisonTraitementAutreChp.getValue());
|
475 |
// ACQUISITION TRAITEMENT INSECTE
|
484 |
// ACQUISITION TRAITEMENT INSECTE
|
476 |
conservationModifie.setAcquisitionTraitementInsecte(creerChaineDenormalisee(insecteTraitementTrukCacGrpChp.getValues()));
|
485 |
conservationModifie.setAcquisitionTraitementInsecte(creerChaineDenormalisee(insecteTraitementTrukCacGrpChp.getValues()));
|
477 |
conservationModifie.setAcquisitionTraitementInsecte("AUTRE", insecteTraitementAutreChp.getValue());
|
486 |
conservationModifie.setAcquisitionTraitementInsecte("AUTRE", insecteTraitementAutreChp.getValue());
|
478 |
|
487 |
|
479 |
// Retour de l'objet
|
488 |
// Retour de l'objet
|
480 |
//GWT.log(conservationLocal.toString(), null);
|
489 |
//GWT.log(conservationLocal.toString(), null);
|
481 |
return conservationModifie;
|
490 |
return conservationModifie;
|
482 |
}
|
491 |
}
|
483 |
}
|
492 |
}
|
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
|
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 |
|
495 |
// STOCKAGE LOCAL
|
504 |
// STOCKAGE LOCAL
|
496 |
peuplerCasesACocher(conservation.getStockageLocal(), localStockageTrukCacGrpChp,localStockageAutreChp);
|
505 |
peuplerCasesACocher(conservation.getStockageLocal(), localStockageTrukCacGrpChp,localStockageAutreChp);
|
497 |
|
506 |
|
498 |
// STOCKAGE MEUBLE
|
507 |
// STOCKAGE MEUBLE
|
499 |
peuplerCasesACocher(conservation.getStockageMeuble(), meubleStockageTrukCacGrpChp, meubleStockageAutreChp);
|
508 |
peuplerCasesACocher(conservation.getStockageMeuble(), meubleStockageTrukCacGrpChp, meubleStockageAutreChp);
|
500 |
|
509 |
|
501 |
// STOCKAGE PAREMETRE
|
510 |
// STOCKAGE PAREMETRE
|
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);
|
506 |
// COLLECTION AUTRE
|
515 |
// COLLECTION AUTRE
|
507 |
peuplerCasesACocher(conservation.getCollectionAutre(), collectionAutreTrukCacGrpChp, collectionAutreAutreChp);
|
516 |
peuplerCasesACocher(conservation.getCollectionAutre(), collectionAutreTrukCacGrpChp, collectionAutreAutreChp);
|
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 |
|
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);
|
514 |
// RESTAURATION OPÉRATION
|
523 |
// RESTAURATION OPÉRATION
|
515 |
peuplerCasesACocher(conservation.getRestaurationOperation(), opRestauTrukCacGrpChp, opRestauAutreChp);
|
524 |
peuplerCasesACocher(conservation.getRestaurationOperation(), opRestauTrukCacGrpChp, opRestauAutreChp);
|
516 |
|
525 |
|
517 |
// MATERIEL CONSERVATION
|
526 |
// MATERIEL CONSERVATION
|
518 |
peuplerBoutonsRadio(conservation.getMaterielConservation(), materielConservationCeRGrpChp);
|
527 |
peuplerBoutonsRadio(conservation.getMaterielConservation(), materielConservationCeRGrpChp);
|
519 |
|
528 |
|
520 |
// MATERIEL AUTRE
|
529 |
// MATERIEL AUTRE
|
521 |
peuplerCasesACocher(conservation.getMaterielAutre(), autreMaterielTrukCacGrpChp, autreMaterielAutreChp);
|
530 |
peuplerCasesACocher(conservation.getMaterielAutre(), autreMaterielTrukCacGrpChp, autreMaterielAutreChp);
|
522 |
|
531 |
|
523 |
// TRAITEMENT
|
532 |
// TRAITEMENT
|
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
|
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);
|
530 |
|
539 |
|
531 |
// ACQUISITION ECHANTILLON
|
540 |
// ACQUISITION ECHANTILLON
|
532 |
echantillonAcquisitionMarkRGrpChp.get((conservation.getAcquisitionEchantillon().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionEchantillon().equals("1") ? true : false));
|
541 |
echantillonAcquisitionMarkRGrpChp.get((conservation.getAcquisitionEchantillon().equals("1") ? 0 : 1)).setValue(true);
|
533 |
|
542 |
|
534 |
// ACQUISITION TRAITEMENT
|
543 |
// ACQUISITION TRAITEMENT
|
535 |
traitementAcquisitionMarkRGrpChp.get((conservation.getAcquisitionTraitement().equals("1") ? 0 : 1)).setValue((conservation.getAcquisitionTraitement().equals("1") ? true : false));
|
544 |
traitementAcquisitionMarkRGrpChp.get((conservation.getAcquisitionTraitement().equals("1") ? 0 : 1)).setValue(true);
|
536 |
|
545 |
|
537 |
// ACQUISITION TRAITEMENT POISON
|
546 |
// ACQUISITION TRAITEMENT POISON
|
538 |
peuplerCasesACocher(conservation.getAcquisitionTraitementPoison(), poisonTraitementTrukCacGrpChp, poisonTraitementAutreChp);
|
547 |
peuplerCasesACocher(conservation.getAcquisitionTraitementPoison(), poisonTraitementTrukCacGrpChp, poisonTraitementAutreChp);
|
539 |
// ACQUISITION TRAITEMENT INSECTE
|
548 |
// ACQUISITION TRAITEMENT INSECTE
|
540 |
peuplerCasesACocher(conservation.getAcquisitionTraitementInsecte(), insecteTraitementTrukCacGrpChp, insecteTraitementAutreChp);
|
549 |
peuplerCasesACocher(conservation.getAcquisitionTraitementInsecte(), insecteTraitementTrukCacGrpChp, insecteTraitementAutreChp);
|
- |
|
550 |
|
- |
|
551 |
conservationOnglet.layout();
|
541 |
}
|
552 |
}
|
542 |
}
|
553 |
}
|
543 |
|
554 |
|
544 |
private Structure collecterStructureIdentification() {
|
555 |
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) {
|
556 |
if (identificationOnglet.getData("acces").equals(false)) {
|
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());
|
- |
|
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;
|
557 |
return identification;
|
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());
|
- |
|
614 |
comboLstpu.setValue(comboLstpu.getStore().findModel("id_valeur", str.getTypePublic()));
|
- |
|
615 |
}
|
- |
|
616 |
}
|
- |
|
617 |
dateFondationChp.setValue(str.getDateFondation());
|
- |
|
618 |
|
- |
|
619 |
adrChp.setValue(str.getAdresse());
|
- |
|
620 |
cpChp.setValue(str.getCodePostal());
|
- |
|
621 |
villeChp.setValue(str.getVille());
|
- |
|
622 |
regionChp.setValue(str.getRegion());
|
- |
|
623 |
if (str.getPays().matches("^[A-Z]{2}$")) {
|
- |
|
624 |
comboPays.setValue(comboPays.getStore().findModel("abreviation", str.getPays()));
|
- |
|
625 |
} else {
|
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());
|
- |
|
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());
|
- |
|
636 |
if (identification.getPays().matches("^[A-Z]{2}$")) {
|
- |
|
637 |
comboPays.setValue(comboPays.getStore().findModel("abreviation", identification.getPays()));
|
- |
|
638 |
} else {
|
626 |
comboPays.setRawValue(str.getPays());
|
639 |
comboPays.setRawValue(identification.getPays());
|
- |
|
640 |
}
|
- |
|
641 |
|
- |
|
642 |
telChp.setValue(identification.getTelephone());
|
- |
|
643 |
faxChp.setValue(identification.getFax());
|
- |
|
644 |
emailChp.setValue(identification.getCourriel());
|
- |
|
645 |
urlChp.setValue(identification.getUrl("WEB"));
|
- |
|
646 |
|
- |
|
647 |
identificationOnglet.layout();
|
627 |
}
|
648 |
}
|
628 |
|
- |
|
629 |
telChp.setValue(str.getTelephone());
|
- |
|
630 |
faxChp.setValue(str.getFax());
|
- |
|
631 |
emailChp.setValue(str.getCourriel());
|
- |
|
632 |
urlChp.setValue(str.getUrl("WEB"));
|
- |
|
633 |
}
|
649 |
}
|
634 |
|
650 |
|
635 |
private TabItem creerOngletValorisation() {
|
651 |
private TabItem creerOngletValorisation() {
|
636 |
valorisationOnglet = new TabItem();
|
652 |
valorisationOnglet = new TabItem();
|
637 |
valorisationOnglet.setText("Valorisation");
|
653 |
valorisationOnglet.setText("Valorisation");
|
638 |
valorisationOnglet.setScrollMode(Scroll.AUTO);
|
654 |
valorisationOnglet.setScrollMode(Scroll.AUTO);
|
639 |
valorisationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
655 |
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
|
656 |
valorisationOnglet.setData("acces", false); // Permet de savoir si l'onblet a été accédé par l'utilisateur
|
641 |
valorisationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
657 |
valorisationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
642 |
public void handleEvent(ComponentEvent be) {
|
658 |
public void handleEvent(ComponentEvent be) {
|
643 |
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
|
659 |
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
|
644 |
valorisationOnglet.setData("acces", true);
|
660 |
valorisationOnglet.setData("acces", true);
|
645 |
peuplerStructureValorisation();
|
661 |
peuplerStructureValorisation();
|
646 |
}
|
662 |
}
|
647 |
});
|
663 |
});
|
648 |
|
664 |
|
649 |
actionMarkRGrpChp = creerChoixUniqueRadioGroupe("action_mark", "ouiNon");
|
665 |
actionMarkRGrpChp = creerChoixUniqueRadioGroupe("action_mark", "ouiNon");
|
650 |
actionMarkRGrpChp.setFieldLabel("Avez-vous réalisé des actions de valorisation de vos collections botaniques ou avez-vous été sollicités pour la valorisation de ces collections ?");
|
666 |
actionMarkRGrpChp.setFieldLabel("Avez-vous réalisé des actions de valorisation de vos collections botaniques ou avez-vous été sollicités pour la valorisation de ces collections ?");
|
651 |
valorisationOnglet.add(actionMarkRGrpChp);
|
667 |
valorisationOnglet.add(actionMarkRGrpChp);
|
652 |
|
668 |
|
653 |
|
669 |
|
654 |
actionTrukCp = creerChoixMultipleCp("actionValorisation");
|
670 |
actionTrukCp = creerChoixMultipleCp("actionValorisation");
|
655 |
actionTrukCp.hide();
|
671 |
actionTrukCp.hide();
|
656 |
actionTrukCacGrpChp = new CheckBoxGroup();
|
672 |
actionTrukCacGrpChp = new CheckBoxGroup();
|
657 |
actionTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
|
673 |
actionTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
|
658 |
valorisationOnglet.add(actionTrukCp);
|
674 |
valorisationOnglet.add(actionTrukCp);
|
659 |
|
675 |
|
660 |
publicationChp = new TextArea();
|
676 |
publicationChp = new TextArea();
|
661 |
publicationChp.setFieldLabel("Quelques titres des ouvrages, articles scientifiques, ...");
|
677 |
publicationChp.setFieldLabel("Quelques titres des ouvrages, articles scientifiques, ...");
|
662 |
valorisationOnglet.add(publicationChp, new FormData(550, 0));
|
678 |
valorisationOnglet.add(publicationChp, new FormData(550, 0));
|
663 |
|
679 |
|
664 |
autreCollectionTrukCp = creerChoixMultipleCp("autreCollection");
|
680 |
autreCollectionTrukCp = creerChoixMultipleCp("autreCollection");
|
665 |
autreCollectionTrukCacGrpChp = new CheckBoxGroup();
|
681 |
autreCollectionTrukCacGrpChp = new CheckBoxGroup();
|
666 |
autreCollectionTrukCacGrpChp.setFieldLabel("L'organisme dispose-t-il d'autres collections (permettant une valorisation pluridisciplinaire) ?");
|
682 |
autreCollectionTrukCacGrpChp.setFieldLabel("L'organisme dispose-t-il d'autres collections (permettant une valorisation pluridisciplinaire) ?");
|
667 |
valorisationOnglet.add(autreCollectionTrukCp);
|
683 |
valorisationOnglet.add(autreCollectionTrukCp);
|
668 |
|
684 |
|
669 |
futureActionMarkRGrpChp = creerChoixUniqueRadioGroupe("future_action_mark", "ouiNon");
|
685 |
futureActionMarkRGrpChp = creerChoixUniqueRadioGroupe("future_action_mark", "ouiNon");
|
670 |
futureActionMarkRGrpChp.setFieldLabel("Envisagez vous des actions de valorisation dans le cadre de votre politique culturelle ?");
|
686 |
futureActionMarkRGrpChp.setFieldLabel("Envisagez vous des actions de valorisation dans le cadre de votre politique culturelle ?");
|
671 |
valorisationOnglet.add(futureActionMarkRGrpChp);
|
687 |
valorisationOnglet.add(futureActionMarkRGrpChp);
|
672 |
|
688 |
|
673 |
futureActionChp = new TextArea();
|
689 |
futureActionChp = new TextArea();
|
674 |
futureActionChp.setFieldLabel("Si oui, lesquelles ?");
|
690 |
futureActionChp.setFieldLabel("Si oui, lesquelles ?");
|
675 |
futureActionChp.hide();
|
691 |
futureActionChp.hide();
|
676 |
valorisationOnglet.add(futureActionChp, new FormData(550, 0));
|
692 |
valorisationOnglet.add(futureActionChp, new FormData(550, 0));
|
677 |
|
693 |
|
678 |
rechercheMarkRGrpChp = creerChoixUniqueRadioGroupe("recherche_mark", "ouiNon");
|
694 |
rechercheMarkRGrpChp = creerChoixUniqueRadioGroupe("recherche_mark", "ouiNon");
|
679 |
rechercheMarkRGrpChp.setFieldLabel("Vos collections botaniques sont-elles utilisées pour des recherches scientifiques ?");
|
695 |
rechercheMarkRGrpChp.setFieldLabel("Vos collections botaniques sont-elles utilisées pour des recherches scientifiques ?");
|
680 |
valorisationOnglet.add(rechercheMarkRGrpChp);
|
696 |
valorisationOnglet.add(rechercheMarkRGrpChp);
|
681 |
|
697 |
|
682 |
provenanceRechercheTrukCp = creerChoixMultipleCp("continentEtFr");
|
698 |
provenanceRechercheTrukCp = creerChoixMultipleCp("continentEtFr");
|
683 |
provenanceRechercheTrukCp.hide();
|
699 |
provenanceRechercheTrukCp.hide();
|
684 |
provenanceRechercheTrukCacGrpChp = new CheckBoxGroup();
|
700 |
provenanceRechercheTrukCacGrpChp = new CheckBoxGroup();
|
685 |
provenanceRechercheTrukCacGrpChp.setFieldLabel("Si oui, par des chercheurs (professionnels ou amateurs) de quelle provenance ?");
|
701 |
provenanceRechercheTrukCacGrpChp.setFieldLabel("Si oui, par des chercheurs (professionnels ou amateurs) de quelle provenance ?");
|
686 |
valorisationOnglet.add(provenanceRechercheTrukCp);
|
702 |
valorisationOnglet.add(provenanceRechercheTrukCp);
|
687 |
|
703 |
|
688 |
typeRechercheTrukCp = creerChoixMultipleCp("typeRecherche");
|
704 |
typeRechercheTrukCp = creerChoixMultipleCp("typeRecherche");
|
689 |
typeRechercheTrukCp.hide();
|
705 |
typeRechercheTrukCp.hide();
|
690 |
typeRechercheTrukCacGrpChp = new CheckBoxGroup();
|
706 |
typeRechercheTrukCacGrpChp = new CheckBoxGroup();
|
691 |
typeRechercheTrukCacGrpChp.setFieldLabel("Et pour quelles recherches ?");
|
707 |
typeRechercheTrukCacGrpChp.setFieldLabel("Et pour quelles recherches ?");
|
692 |
valorisationOnglet.add(typeRechercheTrukCp);
|
708 |
valorisationOnglet.add(typeRechercheTrukCp);
|
693 |
|
709 |
|
694 |
sansMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("sans_motif_acces_mark", "ouiNon");
|
710 |
sansMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("sans_motif_acces_mark", "ouiNon");
|
695 |
sansMotifAccesMarkRGrpChp.setFieldLabel("Peut-on consulter vos collections botaniques sans motif de recherches scientifiques ?");
|
711 |
sansMotifAccesMarkRGrpChp.setFieldLabel("Peut-on consulter vos collections botaniques sans motif de recherches scientifiques ?");
|
696 |
valorisationOnglet.add(sansMotifAccesMarkRGrpChp);
|
712 |
valorisationOnglet.add(sansMotifAccesMarkRGrpChp);
|
697 |
|
713 |
|
698 |
valorisationOnglet.add(sansMotifAccesChp = new TextArea(), new FormData(550, 0));
|
714 |
valorisationOnglet.add(sansMotifAccesChp = new TextArea(), new FormData(550, 0));
|
699 |
sansMotifAccesChp.hide();
|
715 |
sansMotifAccesChp.hide();
|
700 |
sansMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les consulter ?");
|
716 |
sansMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les consulter ?");
|
701 |
|
717 |
|
702 |
avecMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("avec_motif_acces_mark", "ouiNon");
|
718 |
avecMotifAccesMarkRGrpChp = creerChoixUniqueRadioGroupe("avec_motif_acces_mark", "ouiNon");
|
703 |
avecMotifAccesMarkRGrpChp.setFieldLabel("Peut-on visiter vos collections botaniques avec des objectifs de recherches scientifiques ?");
|
719 |
avecMotifAccesMarkRGrpChp.setFieldLabel("Peut-on visiter vos collections botaniques avec des objectifs de recherches scientifiques ?");
|
704 |
valorisationOnglet.add(avecMotifAccesMarkRGrpChp);
|
720 |
valorisationOnglet.add(avecMotifAccesMarkRGrpChp);
|
705 |
|
721 |
|
706 |
valorisationOnglet.add(avecMotifAccesChp = new TextArea(), new FormData(550, 0));
|
722 |
valorisationOnglet.add(avecMotifAccesChp = new TextArea(), new FormData(550, 0));
|
707 |
avecMotifAccesChp.hide();
|
723 |
avecMotifAccesChp.hide();
|
708 |
avecMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les visiter ?");
|
724 |
avecMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les visiter ?");
|
709 |
|
725 |
|
710 |
return valorisationOnglet;
|
726 |
return valorisationOnglet;
|
711 |
}
|
727 |
}
|
712 |
|
728 |
|
713 |
private TabItem creerOngletConservation() {
|
729 |
private TabItem creerOngletConservation() {
|
714 |
conservationOnglet = new TabItem();
|
730 |
conservationOnglet = new TabItem();
|
715 |
conservationOnglet.setText("Conservation");
|
731 |
conservationOnglet.setText("Conservation");
|
716 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
732 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
717 |
conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
733 |
conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
718 |
conservationOnglet.setData("acces", false);
|
734 |
conservationOnglet.setData("acces", false);
|
719 |
conservationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
735 |
conservationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
720 |
public void handleEvent(ComponentEvent be) {
|
736 |
public void handleEvent(ComponentEvent be) {
|
721 |
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
|
737 |
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
|
722 |
conservationOnglet.setData("acces", true);
|
738 |
conservationOnglet.setData("acces", true);
|
723 |
peuplerStructureConservation();
|
739 |
peuplerStructureConservation();
|
724 |
}
|
740 |
}
|
725 |
});
|
741 |
});
|
726 |
|
742 |
|
727 |
formationMarkRGrpChp = creerChoixUniqueRadioGroupe("formation_mark", "ouiNon");
|
743 |
formationMarkRGrpChp = creerChoixUniqueRadioGroupe("formation_mark", "ouiNon");
|
728 |
formationMarkRGrpChp.setFieldLabel("Le personnel s'occupant des collections a-t-il suivi des formations en conservations ?");
|
744 |
formationMarkRGrpChp.setFieldLabel("Le personnel s'occupant des collections a-t-il suivi des formations en conservations ?");
|
729 |
conservationOnglet.add(formationMarkRGrpChp);
|
745 |
conservationOnglet.add(formationMarkRGrpChp);
|
730 |
|
746 |
|
731 |
formationChp = new TextField<String>();
|
747 |
formationChp = new TextField<String>();
|
732 |
formationChp.hide();
|
748 |
formationChp.hide();
|
733 |
formationChp.setFieldLabel("Si oui, lesquelles ?");
|
749 |
formationChp.setFieldLabel("Si oui, lesquelles ?");
|
734 |
conservationOnglet.add(formationChp);
|
750 |
conservationOnglet.add(formationChp);
|
735 |
|
751 |
|
736 |
interetFormationMarkRGrpChp = creerChoixUniqueRadioGroupe("interet_formation_mark", "ouiNon");
|
752 |
interetFormationMarkRGrpChp = creerChoixUniqueRadioGroupe("interet_formation_mark", "ouiNon");
|
737 |
interetFormationMarkRGrpChp.setFieldLabel("Seriez vous intéressé par une formation à la conservation et à la restauration d'herbier ?");
|
753 |
interetFormationMarkRGrpChp.setFieldLabel("Seriez vous intéressé par une formation à la conservation et à la restauration d'herbier ?");
|
738 |
conservationOnglet.add(interetFormationMarkRGrpChp);
|
754 |
conservationOnglet.add(interetFormationMarkRGrpChp);
|
739 |
|
755 |
|
740 |
localStockageTrukCp = creerChoixMultipleCp("localStockage");
|
756 |
localStockageTrukCp = creerChoixMultipleCp("localStockage");
|
741 |
localStockageTrukCacGrpChp = new CheckBoxGroup();
|
757 |
localStockageTrukCacGrpChp = new CheckBoxGroup();
|
742 |
localStockageTrukCacGrpChp.setFieldLabel("Avez vous des locaux spécifiques de stockage des collections botaniques ?");
|
758 |
localStockageTrukCacGrpChp.setFieldLabel("Avez vous des locaux spécifiques de stockage des collections botaniques ?");
|
743 |
conservationOnglet.add(localStockageTrukCp);
|
759 |
conservationOnglet.add(localStockageTrukCp);
|
744 |
|
760 |
|
745 |
meubleStockageTrukCp = creerChoixMultipleCp("meubleStockage");
|
761 |
meubleStockageTrukCp = creerChoixMultipleCp("meubleStockage");
|
746 |
meubleStockageTrukCacGrpChp = new CheckBoxGroup();
|
762 |
meubleStockageTrukCacGrpChp = new CheckBoxGroup();
|
747 |
meubleStockageTrukCacGrpChp.setFieldLabel("Avez vous des meubles spécifiques au stockage des collections botaniques ?");
|
763 |
meubleStockageTrukCacGrpChp.setFieldLabel("Avez vous des meubles spécifiques au stockage des collections botaniques ?");
|
748 |
conservationOnglet.add(meubleStockageTrukCp);
|
764 |
conservationOnglet.add(meubleStockageTrukCp);
|
749 |
|
765 |
|
750 |
parametreStockageTrukCp = creerChoixMultipleCp("parametreStockage");
|
766 |
parametreStockageTrukCp = creerChoixMultipleCp("parametreStockage");
|
751 |
parametreStockageTrukCacGrpChp = new CheckBoxGroup();
|
767 |
parametreStockageTrukCacGrpChp = new CheckBoxGroup();
|
752 |
parametreStockageTrukCacGrpChp.setFieldLabel("Quels paramètres maîtrisez vous ?");
|
768 |
parametreStockageTrukCacGrpChp.setFieldLabel("Quels paramètres maîtrisez vous ?");
|
753 |
conservationOnglet.add(parametreStockageTrukCp);
|
769 |
conservationOnglet.add(parametreStockageTrukCp);
|
754 |
|
770 |
|
755 |
collectionCommuneMarkRGrpChp = creerChoixUniqueRadioGroupe("collection_commune_mark", "ouiNon");
|
771 |
collectionCommuneMarkRGrpChp = creerChoixUniqueRadioGroupe("collection_commune_mark", "ouiNon");
|
756 |
collectionCommuneMarkRGrpChp.setFieldLabel("Les collections botaniques sont-elles conservées avec d'autres collections dans les mêmes locaux (problème de conservation en commun) ?");
|
772 |
collectionCommuneMarkRGrpChp.setFieldLabel("Les collections botaniques sont-elles conservées avec d'autres collections dans les mêmes locaux (problème de conservation en commun) ?");
|
757 |
conservationOnglet.add(collectionCommuneMarkRGrpChp);
|
773 |
conservationOnglet.add(collectionCommuneMarkRGrpChp);
|
758 |
|
774 |
|
759 |
collectionAutreTrukCp = creerChoixMultipleCp("autreCollection");
|
775 |
collectionAutreTrukCp = creerChoixMultipleCp("autreCollection");
|
760 |
collectionAutreTrukCacGrpChp = new CheckBoxGroup();
|
776 |
collectionAutreTrukCacGrpChp = new CheckBoxGroup();
|
761 |
collectionAutreTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
|
777 |
collectionAutreTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
|
762 |
collectionAutreTrukCp.hide();
|
778 |
collectionAutreTrukCp.hide();
|
763 |
conservationOnglet.add(collectionAutreTrukCp);
|
779 |
conservationOnglet.add(collectionAutreTrukCp);
|
764 |
|
780 |
|
765 |
accesControleMarkRGrpChp = creerChoixUniqueRadioGroupe("mark_acces_controle", "ouiNon");
|
781 |
accesControleMarkRGrpChp = creerChoixUniqueRadioGroupe("mark_acces_controle", "ouiNon");
|
766 |
accesControleMarkRGrpChp.setFieldLabel("L'accès à vos collections botanique est-il contrôlé (ex. : manipulation réservées à des personnes compétentes) ?");
|
782 |
accesControleMarkRGrpChp.setFieldLabel("L'accès à vos collections botanique est-il contrôlé (ex. : manipulation réservées à des personnes compétentes) ?");
|
767 |
conservationOnglet.add(accesControleMarkRGrpChp);
|
783 |
conservationOnglet.add(accesControleMarkRGrpChp);
|
768 |
|
784 |
|
769 |
restaurationMarkRGrpChp = creerChoixUniqueRadioGroupe("restauration_mark", "ouiNon");
|
785 |
restaurationMarkRGrpChp = creerChoixUniqueRadioGroupe("restauration_mark", "ouiNon");
|
770 |
restaurationMarkRGrpChp.setFieldLabel("Effectuez vous des opérations de restauration ou de remise en état de vos collections botaniques ?");
|
786 |
restaurationMarkRGrpChp.setFieldLabel("Effectuez vous des opérations de restauration ou de remise en état de vos collections botaniques ?");
|
771 |
conservationOnglet.add(restaurationMarkRGrpChp);
|
787 |
conservationOnglet.add(restaurationMarkRGrpChp);
|
772 |
|
788 |
|
773 |
opRestauTrukCp = creerChoixMultipleCp("opRestau");
|
789 |
opRestauTrukCp = creerChoixMultipleCp("opRestau");
|
774 |
opRestauTrukCacGrpChp = new CheckBoxGroup();
|
790 |
opRestauTrukCacGrpChp = new CheckBoxGroup();
|
775 |
opRestauTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
|
791 |
opRestauTrukCacGrpChp.setFieldLabel("Si oui, lesquelles ?");
|
776 |
opRestauTrukCp.hide();
|
792 |
opRestauTrukCp.hide();
|
777 |
conservationOnglet.add(opRestauTrukCp);
|
793 |
conservationOnglet.add(opRestauTrukCp);
|
778 |
|
794 |
|
779 |
// Création d'un ContentPanel vide et du groupe de bouton radio
|
795 |
// Création d'un ContentPanel vide et du groupe de bouton radio
|
780 |
// Le groupe de bouton radio recevra les boutons au moment de la réception des données (rafraichir()) et ser à ce moment là ajouter au ContenetPanel
|
796 |
// Le groupe de bouton radio recevra les boutons au moment de la réception des données (rafraichir()) et ser à ce moment là ajouter au ContenetPanel
|
781 |
materielConservationCp = creerChoixMultipleCp("onep");
|
797 |
materielConservationCp = creerChoixMultipleCp("onep");
|
782 |
conservationOnglet.add(materielConservationCp);
|
798 |
conservationOnglet.add(materielConservationCp);
|
783 |
materielConservationCeRGrpChp = creerChoixUniqueRadioGroupe("materiel_conservation_ce", "onep");
|
799 |
materielConservationCeRGrpChp = creerChoixUniqueRadioGroupe("materiel_conservation_ce", "onep");
|
784 |
materielConservationCeRGrpChp.setFieldLabel("Utilisez vous du matériel de conservation ?");
|
800 |
materielConservationCeRGrpChp.setFieldLabel("Utilisez vous du matériel de conservation ?");
|
785 |
materielConservationCeRGrpChp.setToolTip(new ToolTipConfig("Matériel de conservation", "matériel spécialisé pour la conservation des archives ou du patrimoine fragile. Ce matériel possède des propriétés mécaniques et chimiques qui font qu'il résiste dans le temps et que sa dégradation n'entraîne pas de dommages sur le matériel qu'il aide à conserver. Exemples : papier neutre, papier gommé, etc..."));
|
801 |
materielConservationCeRGrpChp.setToolTip(new ToolTipConfig("Matériel de conservation", "matériel spécialisé pour la conservation des archives ou du patrimoine fragile. Ce matériel possède des propriétés mécaniques et chimiques qui font qu'il résiste dans le temps et que sa dégradation n'entraîne pas de dommages sur le matériel qu'il aide à conserver. Exemples : papier neutre, papier gommé, etc..."));
|
786 |
|
802 |
|
787 |
autreMaterielTrukCp = creerChoixMultipleCp("autreMateriel");
|
803 |
autreMaterielTrukCp = creerChoixMultipleCp("autreMateriel");
|
788 |
autreMaterielTrukCp.hide();
|
804 |
autreMaterielTrukCp.hide();
|
789 |
autreMaterielTrukCacGrpChp = new CheckBoxGroup();
|
805 |
autreMaterielTrukCacGrpChp = new CheckBoxGroup();
|
790 |
autreMaterielTrukCacGrpChp.setFieldLabel("Si non, qu'utilisez vous comme matériel ?");
|
806 |
autreMaterielTrukCacGrpChp.setFieldLabel("Si non, qu'utilisez vous comme matériel ?");
|
791 |
conservationOnglet.add(autreMaterielTrukCp);
|
807 |
conservationOnglet.add(autreMaterielTrukCp);
|
792 |
|
808 |
|
793 |
traitementMarkRGrpChp = creerChoixUniqueRadioGroupe("traitement_mark", "ouiNon");
|
809 |
traitementMarkRGrpChp = creerChoixUniqueRadioGroupe("traitement_mark", "ouiNon");
|
794 |
traitementMarkRGrpChp.setFieldLabel("Réalisez vous actuellement des traitements globaux contre les insectes ?");
|
810 |
traitementMarkRGrpChp.setFieldLabel("Réalisez vous actuellement des traitements globaux contre les insectes ?");
|
795 |
conservationOnglet.add(traitementMarkRGrpChp);
|
811 |
conservationOnglet.add(traitementMarkRGrpChp);
|
796 |
|
812 |
|
797 |
traitementTrukCp = creerChoixMultipleCp("insecteTraitement");
|
813 |
traitementTrukCp = creerChoixMultipleCp("insecteTraitement");
|
798 |
traitementTrukCp.hide();
|
814 |
traitementTrukCp.hide();
|
799 |
traitementTrukCacGrpChp = new CheckBoxGroup();
|
815 |
traitementTrukCacGrpChp = new CheckBoxGroup();
|
800 |
traitementTrukCacGrpChp.setFieldLabel("Si oui, lesquels ?");
|
816 |
traitementTrukCacGrpChp.setFieldLabel("Si oui, lesquels ?");
|
801 |
conservationOnglet.add(traitementTrukCp);
|
817 |
conservationOnglet.add(traitementTrukCp);
|
802 |
|
818 |
|
803 |
collectionAcquisitionMarkRGrpChp = creerChoixUniqueRadioGroupe("collection_acquisition_mark", "ouiNon");
|
819 |
collectionAcquisitionMarkRGrpChp = creerChoixUniqueRadioGroupe("collection_acquisition_mark", "ouiNon");
|
804 |
collectionAcquisitionMarkRGrpChp.setFieldLabel("Actuellement, vos collections botaniques s'accroissent-elles de nouvelles acquisitions ?");
|
820 |
collectionAcquisitionMarkRGrpChp.setFieldLabel("Actuellement, vos collections botaniques s'accroissent-elles de nouvelles acquisitions ?");
|
805 |
conservationOnglet.add(collectionAcquisitionMarkRGrpChp);
|
821 |
conservationOnglet.add(collectionAcquisitionMarkRGrpChp);
|
806 |
|
822 |
|
807 |
echantillonAcquisitionMarkRGrpChp = creerChoixUniqueRadioGroupe("echantillon_acquisition_mark", "ouiNon");
|
823 |
echantillonAcquisitionMarkRGrpChp = creerChoixUniqueRadioGroupe("echantillon_acquisition_mark", "ouiNon");
|
808 |
echantillonAcquisitionMarkRGrpChp.setFieldLabel("Actuellement, mettez vous en herbier de nouveaux échantillons ?");
|
824 |
echantillonAcquisitionMarkRGrpChp.setFieldLabel("Actuellement, mettez vous en herbier de nouveaux échantillons ?");
|
809 |
conservationOnglet.add(echantillonAcquisitionMarkRGrpChp);
|
825 |
conservationOnglet.add(echantillonAcquisitionMarkRGrpChp);
|
810 |
|
826 |
|
811 |
traitementAcquisitionMarkRGrpChp = creerChoixUniqueRadioGroupe("traitement_acquisition_mark", "ouiNon");
|
827 |
traitementAcquisitionMarkRGrpChp = creerChoixUniqueRadioGroupe("traitement_acquisition_mark", "ouiNon");
|
812 |
traitementAcquisitionMarkRGrpChp.hide();
|
828 |
traitementAcquisitionMarkRGrpChp.hide();
|
813 |
traitementAcquisitionMarkRGrpChp.setFieldLabel("Si oui, faites-vous un traitement contre les insectes avant l'intégration dans vos collections ?");
|
829 |
traitementAcquisitionMarkRGrpChp.setFieldLabel("Si oui, faites-vous un traitement contre les insectes avant l'intégration dans vos collections ?");
|
814 |
conservationOnglet.add(traitementAcquisitionMarkRGrpChp);
|
830 |
conservationOnglet.add(traitementAcquisitionMarkRGrpChp);
|
815 |
|
831 |
|
816 |
traitementAcquisitionMarkLabel = new LabelField();
|
832 |
traitementAcquisitionMarkLabel = new LabelField();
|
817 |
traitementAcquisitionMarkLabel.hide();
|
833 |
traitementAcquisitionMarkLabel.hide();
|
818 |
traitementAcquisitionMarkLabel.setFieldLabel("Si oui, lesquels ?");
|
834 |
traitementAcquisitionMarkLabel.setFieldLabel("Si oui, lesquels ?");
|
819 |
conservationOnglet.add(traitementAcquisitionMarkLabel);
|
835 |
conservationOnglet.add(traitementAcquisitionMarkLabel);
|
820 |
|
836 |
|
821 |
poisonTraitementTrukCp = creerChoixMultipleCp("poisonTraitement");
|
837 |
poisonTraitementTrukCp = creerChoixMultipleCp("poisonTraitement");
|
822 |
poisonTraitementTrukCp.hide();
|
838 |
poisonTraitementTrukCp.hide();
|
823 |
poisonTraitementTrukCacGrpChp = new CheckBoxGroup();
|
839 |
poisonTraitementTrukCacGrpChp = new CheckBoxGroup();
|
824 |
poisonTraitementTrukCacGrpChp.setFieldLabel("Empoisonnement");
|
840 |
poisonTraitementTrukCacGrpChp.setFieldLabel("Empoisonnement");
|
825 |
poisonTraitementTrukCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
|
841 |
poisonTraitementTrukCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
|
826 |
poisonTraitementTrukCacGrpChp.setLabelSeparator("");
|
842 |
poisonTraitementTrukCacGrpChp.setLabelSeparator("");
|
827 |
conservationOnglet.add(poisonTraitementTrukCp);
|
843 |
conservationOnglet.add(poisonTraitementTrukCp);
|
828 |
|
844 |
|
829 |
insecteTraitementTrukCp = creerChoixMultipleCp("insecteTraitement");
|
845 |
insecteTraitementTrukCp = creerChoixMultipleCp("insecteTraitement");
|
830 |
insecteTraitementTrukCp.hide();
|
846 |
insecteTraitementTrukCp.hide();
|
831 |
insecteTraitementTrukCacGrpChp = new CheckBoxGroup();
|
847 |
insecteTraitementTrukCacGrpChp = new CheckBoxGroup();
|
832 |
insecteTraitementTrukCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
|
848 |
insecteTraitementTrukCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
|
833 |
insecteTraitementTrukCacGrpChp.setLabelSeparator("");
|
849 |
insecteTraitementTrukCacGrpChp.setLabelSeparator("");
|
834 |
insecteTraitementTrukCacGrpChp.setFieldLabel("Désinsectisation");
|
850 |
insecteTraitementTrukCacGrpChp.setFieldLabel("Désinsectisation");
|
835 |
conservationOnglet.add(insecteTraitementTrukCp);
|
851 |
conservationOnglet.add(insecteTraitementTrukCp);
|
836 |
|
852 |
|
837 |
return conservationOnglet;
|
853 |
return conservationOnglet;
|
838 |
}
|
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 |
}
|
- |
|
876 |
}
|
839 |
|
877 |
|
840 |
private TabItem creerOngletPersonnel() {
|
878 |
private TabItem creerOngletPersonnel() {
|
- |
|
879 |
personnelOnglet = new TabItem();
|
841 |
personnelOnglet = new TabItem();
|
880 |
|
842 |
personnelOnglet.setText("Personnel");
|
881 |
personnelOnglet.setText("Personnel");
|
843 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
882 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
844 |
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT, null));
|
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 |
}
|
- |
|
891 |
|
- |
|
892 |
});
|
845 |
|
893 |
|
846 |
nbreTotalPersonneStructureChp = new NumberField();
|
894 |
nbreTotalPersonneStructureChp = new NumberField();
|
847 |
nbreTotalPersonneStructureChp.setFieldLabel("Nombre de personne travaillant dans l'institution");
|
895 |
nbreTotalPersonneStructureChp.setFieldLabel("Nombre de personne travaillant dans l'institution");
|
848 |
nbreTotalPersonneStructureChp.setFormat(NumberFormat.getFormat("#"));
|
896 |
nbreTotalPersonneStructureChp.setFormat(NumberFormat.getFormat("#"));
|
849 |
nbreTotalPersonneStructureChp.setToolTip("Ce champ doit contenir un nombre");
|
897 |
nbreTotalPersonneStructureChp.setToolTip("Ce champ doit contenir un nombre");
|
850 |
personnelOnglet.add(nbreTotalPersonneStructureChp);
|
898 |
personnelOnglet.add(nbreTotalPersonneStructureChp);
|
851 |
|
899 |
|
852 |
personnelOnglet.add(this.creerGrillePersonnel());
|
900 |
personnelOnglet.add(this.creerGrillePersonnel());
|
853 |
|
901 |
|
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 |
}
|
862 |
|
910 |
|
863 |
private ContentPanel creerGrillePersonnel() {
|
911 |
private ContentPanel creerGrillePersonnel() {
|
- |
|
912 |
ContentPanel cp = new ContentPanel();
|
864 |
|
913 |
|
865 |
List<Personne> personnes = new ArrayList<Personne>();
|
914 |
List<StructureAPersonne> personnes = new ArrayList<StructureAPersonne>();
|
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));
|
868 |
|
917 |
|
869 |
personnelGrilleMagazin = new ListStore<Personne>();
|
918 |
personnelGrilleMagazin = new ListStore<StructureAPersonne>();
|
870 |
personnelGrilleMagazin.add(personnes);
|
919 |
personnelGrilleMagazin.add(personnes);
|
871 |
|
920 |
|
872 |
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
|
921 |
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
|
873 |
|
922 |
|
874 |
CheckBoxSelectionModel<Personne> sm = new CheckBoxSelectionModel<Personne>();
|
923 |
CheckBoxSelectionModel<StructureAPersonne> sm = new CheckBoxSelectionModel<StructureAPersonne>();
|
875 |
configs.add(sm.getColumn());
|
924 |
configs.add(sm.getColumn());
|
876 |
|
925 |
|
877 |
ColumnConfig column = new ColumnConfig("ce_truk_fonction", "Fonction", 100);
|
926 |
ColumnConfig column = new ColumnConfig("ce_truk_fonction", "Fonction", 100);
|
878 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("fonction"));
|
927 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("fonction"));
|
879 |
magazinLiFonction = new ListStore<Valeur>();
|
928 |
magazinLiFonction = new ListStore<Valeur>();
|
880 |
magazinLiFonction.add(new ArrayList<Valeur>());
|
929 |
magazinLiFonction.add(new ArrayList<Valeur>());
|
881 |
|
930 |
|
882 |
comboLiFonction = new ComboBox<Valeur>();
|
931 |
comboLiFonction = new ComboBox<Valeur>();
|
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 |
});*/
|
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) {
|
893 |
return value;
|
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 {
|
- |
|
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;
|
897 |
}
|
963 |
}
|
898 |
|
964 |
|
899 |
@Override
|
965 |
@Override
|
900 |
public Object postProcessValue(Object value) {
|
966 |
public Object postProcessValue(Object valeur) {
|
901 |
if (value == null) {
|
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 {
|
- |
|
977 |
String nom = (((Valeur) valeur).getNom());
|
- |
|
978 |
GWT.log("la "+nom, null);
|
902 |
return value;
|
979 |
return nom;
|
- |
|
980 |
}
|
903 |
}
|
981 |
}
|
904 |
//GWT.log("post : "+value.toString(), null);
|
- |
|
905 |
return ((Valeur) value).get("nom");
|
- |
|
906 |
}
|
982 |
}
|
907 |
};
|
983 |
};
|
908 |
column.setEditor(fonctionEditor);
|
984 |
column.setEditor(fonctionEditor);
|
909 |
configs.add(column);
|
985 |
configs.add(column);
|
910 |
|
986 |
|
911 |
column = new ColumnConfig();
|
987 |
column = new ColumnConfig();
|
912 |
column.setId("prenom");
|
988 |
column.setId("prenom");
|
913 |
column.setHeader("Prénom");
|
989 |
column.setHeader("Prénom");
|
914 |
column.setWidth(100);
|
990 |
column.setWidth(100);
|
915 |
TextField<String> prenomChp = new TextField<String>();
|
991 |
TextField<String> prenomChp = new TextField<String>();
|
916 |
prenomChp.setAllowBlank(false);
|
992 |
prenomChp.setAllowBlank(false);
|
917 |
prenomChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
993 |
prenomChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
918 |
prenomChp.setAutoValidate(true);
|
994 |
prenomChp.setAutoValidate(true);
|
919 |
column.setEditor(new CellEditor(prenomChp));
|
995 |
column.setEditor(new CellEditor(prenomChp));
|
920 |
configs.add(column);
|
996 |
configs.add(column);
|
921 |
|
997 |
|
922 |
column = new ColumnConfig();
|
998 |
column = new ColumnConfig();
|
923 |
column.setId("nom");
|
999 |
column.setId("nom");
|
924 |
column.setHeader("Nom");
|
1000 |
column.setHeader("Nom");
|
925 |
column.setWidth(100);
|
1001 |
column.setWidth(100);
|
926 |
TextField<String> nomChp = new TextField<String>();
|
1002 |
TextField<String> nomChp = new TextField<String>();
|
927 |
nomChp.setAllowBlank(false);
|
1003 |
nomChp.setAllowBlank(false);
|
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);
|
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));
|
936 |
configs.add(column);
|
1012 |
configs.add(column);
|
937 |
|
1013 |
|
938 |
column = new ColumnConfig("fax", "Fax", 100);
|
1014 |
column = new ColumnConfig("fax", "Fax", 100);
|
939 |
TextField<String> faxChp = new TextField<String>();
|
1015 |
TextField<String> faxChp = new TextField<String>();
|
940 |
column.setEditor(new CellEditor(faxChp));
|
1016 |
column.setEditor(new CellEditor(faxChp));
|
941 |
configs.add(column);
|
1017 |
configs.add(column);
|
942 |
|
1018 |
|
943 |
column = new ColumnConfig("courriel", "Courriel", 100);
|
1019 |
column = new ColumnConfig("courriel", "Courriel", 100);
|
944 |
TextField<String> emailChp = new TextField<String>();
|
1020 |
TextField<String> emailChp = new TextField<String>();
|
945 |
column.setEditor(new CellEditor(emailChp));
|
1021 |
column.setEditor(new CellEditor(emailChp));
|
946 |
configs.add(column);
|
1022 |
configs.add(column);
|
947 |
|
1023 |
|
948 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("statut"));
|
1024 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("statut"));
|
949 |
magazinLiStatut = new ListStore<Valeur>();
|
1025 |
magazinLiStatut = new ListStore<Valeur>();
|
950 |
magazinLiStatut.add(new ArrayList<Valeur>());
|
1026 |
magazinLiStatut.add(new ArrayList<Valeur>());
|
951 |
|
1027 |
|
952 |
comboLiStatut = new ComboBox<Valeur>();
|
1028 |
comboLiStatut = new ComboBox<Valeur>();
|
953 |
comboLiStatut.setTriggerAction(TriggerAction.ALL);
|
1029 |
comboLiStatut.setTriggerAction(TriggerAction.ALL);
|
954 |
comboLiStatut.setEditable(false);
|
1030 |
comboLiStatut.setEditable(false);
|
955 |
comboLiStatut.setDisplayField("nom");
|
1031 |
comboLiStatut.setDisplayField("nom");
|
956 |
comboLiStatut.setEmptyText("Sélectionez un statut...");
|
1032 |
comboLiStatut.setEmptyText("Sélectionez un statut...");
|
957 |
comboLiStatut.setStore(magazinLiStatut);
|
1033 |
comboLiStatut.setStore(magazinLiStatut);
|
958 |
|
1034 |
|
959 |
CellEditor statutEditor = new CellEditor(comboLiStatut) {
|
1035 |
CellEditor statutEditor = new CellEditor(comboLiStatut) {
|
960 |
@Override
|
1036 |
@Override
|
961 |
public Object preProcessValue(Object value) {
|
1037 |
public Object preProcessValue(Object value) {
|
962 |
if (value == null) {
|
1038 |
if (value == null) {
|
963 |
return value;
|
1039 |
return value;
|
964 |
}
|
1040 |
}
|
965 |
//GWT.log("pre : "+value.toString(), null);
|
1041 |
//GWT.log("pre : "+value.toString(), null);
|
966 |
return comboLiStatut.getStore().findModel("nom", (String) value);
|
1042 |
return comboLiStatut.getStore().findModel("nom", (String) value);
|
967 |
}
|
1043 |
}
|
968 |
|
1044 |
|
969 |
@Override
|
1045 |
@Override
|
970 |
public Object postProcessValue(Object value) {
|
1046 |
public Object postProcessValue(Object value) {
|
971 |
if (value == null) {
|
1047 |
if (value == null) {
|
972 |
return value;
|
1048 |
return value;
|
973 |
}
|
1049 |
}
|
974 |
//GWT.log("post : "+value.toString(), null);
|
1050 |
//GWT.log("post : "+value.toString(), null);
|
975 |
return ((Valeur) value).get("nom");
|
1051 |
return ((Valeur) value).get("nom");
|
976 |
}
|
1052 |
}
|
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);
|
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));
|
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>();
|
992 |
column.setEditor(new CellEditor(speChp));
|
1068 |
column.setEditor(new CellEditor(speChp));
|
993 |
configs.add(column);
|
1069 |
configs.add(column);
|
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");
|
1000 |
cp.setIconStyle("icone-table");
|
1076 |
cp.setIconStyle("icone-table");
|
1001 |
cp.setScrollMode(Scroll.AUTO);
|
1077 |
cp.setScrollMode(Scroll.AUTO);
|
1002 |
cp.setLayout(new FitLayout());
|
1078 |
cp.setLayout(new FitLayout());
|
1003 |
cp.setSize(1100, 200);
|
1079 |
cp.setSize(1100, 200);
|
1004 |
cp.setFrame(true);
|
1080 |
cp.setFrame(true);
|
1005 |
|
1081 |
|
1006 |
ToolBar toolBar = new ToolBar();
|
1082 |
ToolBar toolBar = new ToolBar();
|
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
|
1017 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
1093 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
1018 |
// Activation du bouton supprimer si la grille contient un élément
|
1094 |
// Activation du bouton supprimer si la grille contient un élément
|
1019 |
if (grillePersonnel.getStore().getCount() > 0) {
|
1095 |
if (grillePersonnel.getStore().getCount() > 0) {
|
1020 |
ce.component.enable();
|
1096 |
ce.component.enable();
|
1021 |
}
|
1097 |
}
|
1022 |
}
|
1098 |
}
|
1023 |
});
|
1099 |
});
|
1024 |
toolBar.add(ajouterPersonnelBtn);
|
1100 |
toolBar.add(ajouterPersonnelBtn);
|
1025 |
toolBar.add(new SeparatorToolItem());
|
1101 |
toolBar.add(new SeparatorToolItem());
|
1026 |
TextToolItem supprimerPersonnelBtn = new TextToolItem("Supprimer", "icone-vcard-supprimer");
|
1102 |
TextToolItem supprimerPersonnelBtn = new TextToolItem("Supprimer", "icone-vcard-supprimer");
|
1027 |
supprimerPersonnelBtn.addSelectionListener(new SelectionListener<ToolBarEvent>() {
|
1103 |
supprimerPersonnelBtn.addSelectionListener(new SelectionListener<ToolBarEvent>() {
|
1028 |
@Override
|
1104 |
@Override
|
1029 |
public void componentSelected(ToolBarEvent ce) {
|
1105 |
public void componentSelected(ToolBarEvent ce) {
|
1030 |
grillePersonnel.getStore().remove(grillePersonnel.getStore().getAt(0));
|
1106 |
grillePersonnel.getStore().remove(grillePersonnel.getStore().getAt(0));
|
1031 |
// Mise à jour du nombre de personnel travaillant sur les collections
|
1107 |
// Mise à jour du nombre de personnel travaillant sur les collections
|
1032 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
1108 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
1033 |
// Désactivation du bouton supprimer si la grille contient plus d'élément
|
1109 |
// Désactivation du bouton supprimer si la grille contient plus d'élément
|
1034 |
if (grillePersonnel.getStore().getCount() == 0) {
|
1110 |
if (grillePersonnel.getStore().getCount() == 0) {
|
1035 |
ce.item.disable();
|
1111 |
ce.item.disable();
|
1036 |
}
|
1112 |
}
|
1037 |
}
|
1113 |
}
|
1038 |
});
|
1114 |
});
|
1039 |
toolBar.add(supprimerPersonnelBtn);
|
1115 |
toolBar.add(supprimerPersonnelBtn);
|
1040 |
cp.setTopComponent(toolBar);
|
1116 |
cp.setTopComponent(toolBar);
|
1041 |
|
1117 |
|
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);
|
1049 |
grillePersonnel.setAutoExpandColumn("specialites");
|
1125 |
grillePersonnel.setAutoExpandColumn("specialite");
|
1050 |
|
- |
|
- |
|
1126 |
grillePersonnel.setStripeRows(true);
|
- |
|
1127 |
grillePersonnel.setTrackMouseOver(true);
|
1051 |
cp.add(grillePersonnel);
|
1128 |
cp.add(grillePersonnel);
|
- |
|
1129 |
|
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();
|
1059 |
identificationOnglet.setId("identification");
|
1137 |
identificationOnglet.setId("identification");
|
1060 |
identificationOnglet.setText("Identification");
|
1138 |
identificationOnglet.setText("Identification");
|
1061 |
identificationOnglet.setLayout(new FormLayout());
|
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);
|
- |
|
1145 |
peuplerStructureIdentification();
|
- |
|
1146 |
}
|
- |
|
1147 |
});
|
1062 |
|
1148 |
|
1063 |
//+-----------------------------------------------------------------------------------------------------------+
|
1149 |
//+-----------------------------------------------------------------------------------------------------------+
|
1064 |
// Champs cachés
|
1150 |
// Champs cachés
|
1065 |
idStructureChp = new HiddenField<String>();
|
1151 |
idStructureChp = new HiddenField<String>();
|
1066 |
|
1152 |
|
1067 |
//+-----------------------------------------------------------------------------------------------------------+
|
1153 |
//+-----------------------------------------------------------------------------------------------------------+
|
1068 |
// Fieldset IDENTITÉ
|
1154 |
// Fieldset IDENTITÉ
|
1069 |
FieldSet fieldSetIdentite = new FieldSet();
|
1155 |
FieldSet fieldSetIdentite = new FieldSet();
|
1070 |
fieldSetIdentite.setHeading("Identité");
|
1156 |
fieldSetIdentite.setHeading("Identité");
|
1071 |
fieldSetIdentite.setCollapsible(true);
|
1157 |
fieldSetIdentite.setCollapsible(true);
|
1072 |
fieldSetIdentite.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
|
1158 |
fieldSetIdentite.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
|
1073 |
|
1159 |
|
1074 |
nomStructureChp = new TextField<String>();
|
1160 |
nomStructureChp = new TextField<String>();
|
1075 |
nomStructureChp.setTabIndex(100);
|
1161 |
nomStructureChp.setTabIndex(100);
|
1076 |
nomStructureChp.setFieldLabel("Nom de la structure");
|
1162 |
nomStructureChp.setFieldLabel("Nom de la structure");
|
1077 |
nomStructureChp.setAllowBlank(false);
|
1163 |
nomStructureChp.setAllowBlank(false);
|
1078 |
nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
1164 |
nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
1079 |
fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
|
1165 |
fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
|
1080 |
|
1166 |
|
1081 |
// Création du sous-formulaire : Acronyme
|
1167 |
// Création du sous-formulaire : Acronyme
|
1082 |
LayoutContainer ligne = new LayoutContainer();
|
1168 |
LayoutContainer ligne = new LayoutContainer();
|
1083 |
ligne.setLayout(new ColumnLayout());
|
1169 |
ligne.setLayout(new ColumnLayout());
|
1084 |
LayoutContainer gauche = new LayoutContainer();
|
1170 |
LayoutContainer gauche = new LayoutContainer();
|
1085 |
gauche.setLayout(creerFormLayout(200, LabelAlign.LEFT, 0));
|
1171 |
gauche.setLayout(creerFormLayout(200, LabelAlign.LEFT, 0));
|
1086 |
LayoutContainer droite = new LayoutContainer();
|
1172 |
LayoutContainer droite = new LayoutContainer();
|
1087 |
droite.setLayout(creerFormLayout(0, null, 0));
|
1173 |
droite.setLayout(creerFormLayout(0, null, 0));
|
1088 |
|
1174 |
|
1089 |
ListStore<InterneValeur> acronymes = new ListStore<InterneValeur>();
|
1175 |
ListStore<InterneValeur> acronymes = new ListStore<InterneValeur>();
|
1090 |
acronymes.add(InterneValeurListe.getTypeAcronyme());
|
1176 |
acronymes.add(InterneValeurListe.getTypeAcronyme());
|
1091 |
|
1177 |
|
1092 |
comboAcronyme = new ComboBox<InterneValeur>();
|
1178 |
comboAcronyme = new ComboBox<InterneValeur>();
|
1093 |
comboAcronyme.setTabIndex(101);
|
1179 |
comboAcronyme.setTabIndex(101);
|
1094 |
comboAcronyme.setEmptyText("Sélectioner un type d'acronyme...");
|
1180 |
comboAcronyme.setEmptyText("Sélectioner un type d'acronyme...");
|
1095 |
comboAcronyme.setFieldLabel("Acronymes");
|
1181 |
comboAcronyme.setFieldLabel("Acronymes");
|
1096 |
comboAcronyme.setDisplayField("nom");
|
1182 |
comboAcronyme.setDisplayField("nom");
|
1097 |
comboAcronyme.setStore(acronymes);
|
1183 |
comboAcronyme.setStore(acronymes);
|
1098 |
comboAcronyme.setEditable(false);
|
1184 |
comboAcronyme.setEditable(false);
|
1099 |
comboAcronyme.setTypeAhead(true);
|
1185 |
comboAcronyme.setTypeAhead(true);
|
1100 |
comboAcronyme.setTriggerAction(TriggerAction.ALL);
|
1186 |
comboAcronyme.setTriggerAction(TriggerAction.ALL);
|
1101 |
comboAcronyme.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
|
1187 |
comboAcronyme.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
|
1102 |
@Override
|
1188 |
@Override
|
1103 |
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
|
1189 |
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
|
1104 |
String acronymeAbr = se.getSelectedItem().getAbr();
|
1190 |
String acronymeAbr = se.getSelectedItem().getAbr();
|
1105 |
if (acronymeAbr.equals("IH")) {
|
1191 |
if (acronymeAbr.equals("IH")) {
|
1106 |
mnhnChp.hide();
|
1192 |
mnhnChp.hide();
|
1107 |
ihChp.show();
|
1193 |
ihChp.show();
|
1108 |
} else if (acronymeAbr.equals("MNHN")) {
|
1194 |
} else if (acronymeAbr.equals("MNHN")) {
|
1109 |
ihChp.hide();
|
1195 |
ihChp.hide();
|
1110 |
mnhnChp.show();
|
1196 |
mnhnChp.show();
|
1111 |
} else if (acronymeAbr.equals("")) {
|
1197 |
} else if (acronymeAbr.equals("")) {
|
1112 |
ihChp.hide();
|
1198 |
ihChp.hide();
|
1113 |
mnhnChp.hide();
|
1199 |
mnhnChp.hide();
|
1114 |
comboAcronyme.clearSelections();
|
1200 |
comboAcronyme.clearSelections();
|
1115 |
}
|
1201 |
}
|
1116 |
}
|
1202 |
}
|
1117 |
});
|
1203 |
});
|
1118 |
gauche.add(comboAcronyme);
|
1204 |
gauche.add(comboAcronyme);
|
1119 |
|
1205 |
|
1120 |
ihChp = new TextField<String>();
|
1206 |
ihChp = new TextField<String>();
|
1121 |
//ihChp.setEmptyText("Index Herbariorum");
|
1207 |
//ihChp.setEmptyText("Index Herbariorum");
|
1122 |
ihChp.setTabIndex(102);
|
1208 |
ihChp.setTabIndex(102);
|
1123 |
ihChp.setLabelSeparator("");
|
1209 |
ihChp.setLabelSeparator("");
|
1124 |
ihChp.setToolTip("Index Herbariorum : herbier de plus de 5000 échantillons");
|
1210 |
ihChp.setToolTip("Index Herbariorum : herbier de plus de 5000 échantillons");
|
1125 |
ihChp.hide();
|
1211 |
ihChp.hide();
|
1126 |
droite.add(ihChp);
|
1212 |
droite.add(ihChp);
|
1127 |
|
1213 |
|
1128 |
mnhnChp = new TextField<String>();
|
1214 |
mnhnChp = new TextField<String>();
|
1129 |
mnhnChp.setTabIndex(103);
|
1215 |
mnhnChp.setTabIndex(103);
|
1130 |
//mnhnChp.setEmptyText("MNHN");
|
1216 |
//mnhnChp.setEmptyText("MNHN");
|
1131 |
mnhnChp.setLabelSeparator("");
|
1217 |
mnhnChp.setLabelSeparator("");
|
1132 |
mnhnChp.setToolTip("Acronyme MNHN : herbier de moins de 5000 échantillons");
|
1218 |
mnhnChp.setToolTip("Acronyme MNHN : herbier de moins de 5000 échantillons");
|
1133 |
mnhnChp.hide();
|
1219 |
mnhnChp.hide();
|
1134 |
droite.add(mnhnChp);
|
1220 |
droite.add(mnhnChp);
|
1135 |
|
1221 |
|
1136 |
ligne.add(gauche, new ColumnData(0.5));
|
1222 |
ligne.add(gauche, new ColumnData(0.5));
|
1137 |
ligne.add(droite, new ColumnData(0.5));
|
1223 |
ligne.add(droite, new ColumnData(0.5));
|
1138 |
fieldSetIdentite.add(ligne);
|
1224 |
fieldSetIdentite.add(ligne);
|
1139 |
|
1225 |
|
1140 |
// Création du sous-formulaire : Type de Structure
|
1226 |
// Création du sous-formulaire : Type de Structure
|
1141 |
LayoutContainer ligneTs = new LayoutContainer();
|
1227 |
LayoutContainer ligneTs = new LayoutContainer();
|
1142 |
ligneTs.setLayout(new ColumnLayout());
|
1228 |
ligneTs.setLayout(new ColumnLayout());
|
1143 |
|
1229 |
|
1144 |
LayoutContainer gaucheTs = new LayoutContainer();
|
1230 |
LayoutContainer gaucheTs = new LayoutContainer();
|
1145 |
gaucheTs.setLayout(creerFormLayout(200, LabelAlign.LEFT, 0));
|
1231 |
gaucheTs.setLayout(creerFormLayout(200, LabelAlign.LEFT, 0));
|
1146 |
|
1232 |
|
1147 |
LayoutContainer droiteTs = new LayoutContainer();
|
1233 |
LayoutContainer droiteTs = new LayoutContainer();
|
1148 |
droiteTs.setLayout(creerFormLayout(0, null, 0));
|
1234 |
droiteTs.setLayout(creerFormLayout(0, null, 0));
|
1149 |
|
1235 |
|
1150 |
ListStore<InterneValeur> typesStructure = new ListStore<InterneValeur>();
|
1236 |
ListStore<InterneValeur> typesStructure = new ListStore<InterneValeur>();
|
1151 |
typesStructure.add(InterneValeurListe.getTypeStructure());
|
1237 |
typesStructure.add(InterneValeurListe.getTypeStructure());
|
1152 |
|
1238 |
|
1153 |
comboTypeStructure = new ComboBox<InterneValeur>();
|
1239 |
comboTypeStructure = new ComboBox<InterneValeur>();
|
1154 |
comboTypeStructure.setTabIndex(104);
|
1240 |
comboTypeStructure.setTabIndex(104);
|
1155 |
comboTypeStructure.setEmptyText("Sélectioner un type de structure...");
|
1241 |
comboTypeStructure.setEmptyText("Sélectioner un type de structure...");
|
1156 |
comboTypeStructure.setFieldLabel("Statut des structures");
|
1242 |
comboTypeStructure.setFieldLabel("Statut des structures");
|
1157 |
comboTypeStructure.setDisplayField("nom");
|
1243 |
comboTypeStructure.setDisplayField("nom");
|
1158 |
comboTypeStructure.setStore(typesStructure);
|
1244 |
comboTypeStructure.setStore(typesStructure);
|
1159 |
comboTypeStructure.setEditable(false);
|
1245 |
comboTypeStructure.setEditable(false);
|
1160 |
comboTypeStructure.setTypeAhead(true);
|
1246 |
comboTypeStructure.setTypeAhead(true);
|
1161 |
comboTypeStructure.setTriggerAction(TriggerAction.ALL);
|
1247 |
comboTypeStructure.setTriggerAction(TriggerAction.ALL);
|
1162 |
comboTypeStructure.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
|
1248 |
comboTypeStructure.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
|
1163 |
@Override
|
1249 |
@Override
|
1164 |
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
|
1250 |
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
|
1165 |
String typeAbr = se.getSelectedItem().getAbr();
|
1251 |
String typeAbr = se.getSelectedItem().getAbr();
|
1166 |
if (typeAbr.equals("stpu")) {
|
1252 |
if (typeAbr.equals("stpu")) {
|
1167 |
comboLstpr.hide();
|
1253 |
comboLstpr.hide();
|
1168 |
comboLstpu.show();
|
1254 |
comboLstpu.show();
|
1169 |
} else if (typeAbr.equals("stpr")) {
|
1255 |
} else if (typeAbr.equals("stpr")) {
|
1170 |
comboLstpu.hide();
|
1256 |
comboLstpu.hide();
|
1171 |
comboLstpr.show();
|
1257 |
comboLstpr.show();
|
1172 |
} else if (typeAbr.equals("")) {
|
1258 |
} else if (typeAbr.equals("")) {
|
1173 |
comboLstpr.hide();
|
1259 |
comboLstpr.hide();
|
1174 |
comboLstpu.hide();
|
1260 |
comboLstpu.hide();
|
1175 |
comboTypeStructure.clearSelections();
|
1261 |
comboTypeStructure.clearSelections();
|
1176 |
}
|
1262 |
}
|
1177 |
}
|
1263 |
}
|
1178 |
});
|
1264 |
});
|
1179 |
gaucheTs.add(comboTypeStructure);
|
1265 |
gaucheTs.add(comboTypeStructure);
|
1180 |
|
1266 |
|
1181 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpu"));
|
1267 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpu"));
|
1182 |
magazinLstpu = new ListStore<Valeur>();
|
1268 |
magazinLstpu = new ListStore<Valeur>();
|
1183 |
magazinLstpu.add(new ArrayList<Valeur>());
|
1269 |
magazinLstpu.add(new ArrayList<Valeur>());
|
1184 |
comboLstpu = new ComboBox<Valeur>();
|
1270 |
comboLstpu = new ComboBox<Valeur>();
|
1185 |
comboLstpu.setTabIndex(105);
|
1271 |
comboLstpu.setTabIndex(105);
|
1186 |
//comboLstpu.setFieldLabel("Statut des structures publiques");
|
1272 |
//comboLstpu.setFieldLabel("Statut des structures publiques");
|
1187 |
comboLstpu.setLabelSeparator("");
|
1273 |
comboLstpu.setLabelSeparator("");
|
1188 |
comboLstpu.setDisplayField("nom");
|
1274 |
comboLstpu.setDisplayField("nom");
|
1189 |
comboLstpu.setEditable(false);
|
1275 |
comboLstpu.setEditable(false);
|
1190 |
comboLstpu.setTriggerAction(TriggerAction.ALL);
|
1276 |
comboLstpu.setTriggerAction(TriggerAction.ALL);
|
1191 |
comboLstpu.setStore(magazinLstpu);
|
1277 |
comboLstpu.setStore(magazinLstpu);
|
1192 |
comboLstpu.hide();
|
1278 |
comboLstpu.hide();
|
1193 |
droiteTs.add(comboLstpu);
|
1279 |
droiteTs.add(comboLstpu);
|
1194 |
|
1280 |
|
1195 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpr"));
|
1281 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpr"));
|
1196 |
magazinLstpr = new ListStore<Valeur>();
|
1282 |
magazinLstpr = new ListStore<Valeur>();
|
1197 |
magazinLstpr.add(new ArrayList<Valeur>());
|
1283 |
magazinLstpr.add(new ArrayList<Valeur>());
|
1198 |
comboLstpr = new ComboBox<Valeur>();
|
1284 |
comboLstpr = new ComboBox<Valeur>();
|
1199 |
comboLstpr.setTabIndex(106);
|
1285 |
comboLstpr.setTabIndex(106);
|
1200 |
//comboLstpr.setFieldLabel("Statut des structures privées");
|
1286 |
//comboLstpr.setFieldLabel("Statut des structures privées");
|
1201 |
comboLstpr.setLabelSeparator("");
|
1287 |
comboLstpr.setLabelSeparator("");
|
1202 |
comboLstpr.setDisplayField("nom");
|
1288 |
comboLstpr.setDisplayField("nom");
|
1203 |
comboLstpr.setEditable(false);
|
1289 |
comboLstpr.setEditable(false);
|
1204 |
comboLstpr.setTriggerAction(TriggerAction.ALL);
|
1290 |
comboLstpr.setTriggerAction(TriggerAction.ALL);
|
1205 |
comboLstpr.setStore(magazinLstpr);
|
1291 |
comboLstpr.setStore(magazinLstpr);
|
1206 |
comboLstpr.hide();
|
1292 |
comboLstpr.hide();
|
1207 |
droiteTs.add(comboLstpr);
|
1293 |
droiteTs.add(comboLstpr);
|
1208 |
|
1294 |
|
1209 |
ligneTs.add(gaucheTs, new ColumnData(0.5));
|
1295 |
ligneTs.add(gaucheTs, new ColumnData(0.5));
|
1210 |
ligneTs.add(droiteTs, new ColumnData(0.5));
|
1296 |
ligneTs.add(droiteTs, new ColumnData(0.5));
|
1211 |
fieldSetIdentite.add(ligneTs);
|
1297 |
fieldSetIdentite.add(ligneTs);
|
1212 |
|
1298 |
|
1213 |
dateFondationChp = new DateField();
|
1299 |
dateFondationChp = new DateField();
|
1214 |
dateFondationChp.setTabIndex(107);
|
1300 |
dateFondationChp.setTabIndex(107);
|
1215 |
dateFondationChp.setFieldLabel("Date de fondation");
|
1301 |
dateFondationChp.setFieldLabel("Date de fondation");
|
1216 |
dateFondationChp.getPropertyEditor().getFormat();
|
1302 |
dateFondationChp.getPropertyEditor().getFormat();
|
1217 |
dateFondationChp.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd/MM/yyyy"));
|
1303 |
dateFondationChp.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd/MM/yyyy"));
|
1218 |
dateFondationChp.getMessages().setInvalidText("La valeur saisie n'est pas une date valide. La date doit être au format «jj/mm/aaaa».");
|
1304 |
dateFondationChp.getMessages().setInvalidText("La valeur saisie n'est pas une date valide. La date doit être au format «jj/mm/aaaa».");
|
1219 |
fieldSetIdentite.add(dateFondationChp);
|
1305 |
fieldSetIdentite.add(dateFondationChp);
|
1220 |
|
1306 |
|
1221 |
identificationOnglet.add(fieldSetIdentite);
|
1307 |
identificationOnglet.add(fieldSetIdentite);
|
1222 |
|
1308 |
|
1223 |
//+-----------------------------------------------------------------------------------------------------------+
|
1309 |
//+-----------------------------------------------------------------------------------------------------------+
|
1224 |
// Fieldset ADRESSE
|
1310 |
// Fieldset ADRESSE
|
1225 |
LayoutContainer principalFdAdresse = new LayoutContainer();
|
1311 |
LayoutContainer principalFdAdresse = new LayoutContainer();
|
1226 |
principalFdAdresse.setLayout(new ColumnLayout());
|
1312 |
principalFdAdresse.setLayout(new ColumnLayout());
|
1227 |
|
1313 |
|
1228 |
LayoutContainer gaucheFdAdresse = new LayoutContainer();
|
1314 |
LayoutContainer gaucheFdAdresse = new LayoutContainer();
|
1229 |
gaucheFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
1315 |
gaucheFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
1230 |
|
1316 |
|
1231 |
LayoutContainer droiteFdAdresse = new LayoutContainer();
|
1317 |
LayoutContainer droiteFdAdresse = new LayoutContainer();
|
1232 |
droiteFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
1318 |
droiteFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
1233 |
|
1319 |
|
1234 |
FieldSet fieldSetAdresse = new FieldSet();
|
1320 |
FieldSet fieldSetAdresse = new FieldSet();
|
1235 |
fieldSetAdresse.setHeading("Adresse");
|
1321 |
fieldSetAdresse.setHeading("Adresse");
|
1236 |
fieldSetAdresse.setCollapsible(true);
|
1322 |
fieldSetAdresse.setCollapsible(true);
|
1237 |
|
1323 |
|
1238 |
fieldSetAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 4));
|
1324 |
fieldSetAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 4));
|
1239 |
|
1325 |
|
1240 |
adrChp = new TextArea();
|
1326 |
adrChp = new TextArea();
|
1241 |
adrChp.setTabIndex(108);
|
1327 |
adrChp.setTabIndex(108);
|
1242 |
adrChp.setFieldLabel("Adresse");
|
1328 |
adrChp.setFieldLabel("Adresse");
|
1243 |
fieldSetAdresse.add(adrChp, new FormData(550, 0));
|
1329 |
fieldSetAdresse.add(adrChp, new FormData(550, 0));
|
1244 |
|
1330 |
|
1245 |
cpChp = new TextField<String>();
|
1331 |
cpChp = new TextField<String>();
|
1246 |
cpChp.setTabIndex(109);
|
1332 |
cpChp.setTabIndex(109);
|
1247 |
cpChp.setFieldLabel("Code postal");
|
1333 |
cpChp.setFieldLabel("Code postal");
|
1248 |
gaucheFdAdresse.add(cpChp);
|
1334 |
gaucheFdAdresse.add(cpChp);
|
1249 |
|
1335 |
|
1250 |
villeChp = new TextField<String>();
|
1336 |
villeChp = new TextField<String>();
|
1251 |
villeChp.setTabIndex(110);
|
1337 |
villeChp.setTabIndex(110);
|
1252 |
villeChp.setFieldLabel("Ville");
|
1338 |
villeChp.setFieldLabel("Ville");
|
1253 |
droiteFdAdresse.add(villeChp);
|
1339 |
droiteFdAdresse.add(villeChp);
|
1254 |
|
1340 |
|
1255 |
regionChp = new TextField<String>();
|
1341 |
regionChp = new TextField<String>();
|
1256 |
regionChp.setTabIndex(111);
|
1342 |
regionChp.setTabIndex(111);
|
1257 |
regionChp.setFieldLabel("Région");
|
1343 |
regionChp.setFieldLabel("Région");
|
1258 |
gaucheFdAdresse.add(regionChp);
|
1344 |
gaucheFdAdresse.add(regionChp);
|
1259 |
|
1345 |
|
1260 |
//paysChp = new TextField<String>();
|
1346 |
//paysChp = new TextField<String>();
|
1261 |
//paysChp.setTabIndex(112);
|
1347 |
//paysChp.setTabIndex(112);
|
1262 |
//paysChp.setFieldLabel("Pays");
|
1348 |
//paysChp.setFieldLabel("Pays");
|
1263 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("pays"));
|
1349 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("pays"));
|
1264 |
magazinPays = new ListStore<Valeur>();
|
1350 |
magazinPays = new ListStore<Valeur>();
|
1265 |
magazinPays.add(new ArrayList<Valeur>());
|
1351 |
magazinPays.add(new ArrayList<Valeur>());
|
1266 |
comboPays = new ComboBox<Valeur>();
|
1352 |
comboPays = new ComboBox<Valeur>();
|
1267 |
comboPays.setTabIndex(112);
|
1353 |
comboPays.setTabIndex(112);
|
1268 |
comboPays.setFieldLabel("Pays");
|
1354 |
comboPays.setFieldLabel("Pays");
|
1269 |
comboPays.setEmptyText("Sélectioner un pays...");
|
1355 |
comboPays.setEmptyText("Sélectioner un pays...");
|
1270 |
comboPays.setEditable(true);
|
1356 |
comboPays.setEditable(true);
|
1271 |
comboPays.setLabelSeparator("");
|
1357 |
comboPays.setLabelSeparator("");
|
1272 |
comboPays.setDisplayField("nom");
|
1358 |
comboPays.setDisplayField("nom");
|
1273 |
comboPays.setTemplate(getTemplatePays());
|
1359 |
comboPays.setTemplate(getTemplatePays());
|
1274 |
comboPays.setTypeAhead(true);
|
1360 |
comboPays.setTypeAhead(true);
|
1275 |
comboPays.setTriggerAction(TriggerAction.ALL);
|
1361 |
comboPays.setTriggerAction(TriggerAction.ALL);
|
1276 |
comboPays.setStore(magazinPays);
|
1362 |
comboPays.setStore(magazinPays);
|
1277 |
droiteFdAdresse.add(comboPays);
|
1363 |
droiteFdAdresse.add(comboPays);
|
1278 |
|
1364 |
|
1279 |
principalFdAdresse.add(gaucheFdAdresse, new ColumnData(.5));
|
1365 |
principalFdAdresse.add(gaucheFdAdresse, new ColumnData(.5));
|
1280 |
principalFdAdresse.add(droiteFdAdresse, new ColumnData(.5));
|
1366 |
principalFdAdresse.add(droiteFdAdresse, new ColumnData(.5));
|
1281 |
fieldSetAdresse.add(principalFdAdresse);
|
1367 |
fieldSetAdresse.add(principalFdAdresse);
|
1282 |
identificationOnglet.add(fieldSetAdresse);
|
1368 |
identificationOnglet.add(fieldSetAdresse);
|
1283 |
|
1369 |
|
1284 |
//+-----------------------------------------------------------------------------------------------------------+
|
1370 |
//+-----------------------------------------------------------------------------------------------------------+
|
1285 |
// Fieldset TÉLÉPHONE et EMAIL
|
1371 |
// Fieldset TÉLÉPHONE et EMAIL
|
1286 |
LayoutContainer principalFdTelMail = new LayoutContainer();
|
1372 |
LayoutContainer principalFdTelMail = new LayoutContainer();
|
1287 |
principalFdTelMail.setLayout(new ColumnLayout());
|
1373 |
principalFdTelMail.setLayout(new ColumnLayout());
|
1288 |
|
1374 |
|
1289 |
LayoutContainer gaucheFdTelMail = new LayoutContainer();
|
1375 |
LayoutContainer gaucheFdTelMail = new LayoutContainer();
|
1290 |
gaucheFdTelMail.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
1376 |
gaucheFdTelMail.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
1291 |
|
1377 |
|
1292 |
LayoutContainer droiteFdTelMail = new LayoutContainer();
|
1378 |
LayoutContainer droiteFdTelMail = new LayoutContainer();
|
1293 |
droiteFdTelMail.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
1379 |
droiteFdTelMail.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
1294 |
|
1380 |
|
1295 |
FieldSet fieldSetTelMail = new FieldSet();
|
1381 |
FieldSet fieldSetTelMail = new FieldSet();
|
1296 |
fieldSetTelMail.setHeading("Communication");
|
1382 |
fieldSetTelMail.setHeading("Communication");
|
1297 |
fieldSetTelMail.setCollapsible(true);
|
1383 |
fieldSetTelMail.setCollapsible(true);
|
1298 |
|
1384 |
|
1299 |
fieldSetTelMail.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
|
1385 |
fieldSetTelMail.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
|
1300 |
|
1386 |
|
1301 |
telChp = new TextField<String>();
|
1387 |
telChp = new TextField<String>();
|
1302 |
telChp.setTabIndex(113);
|
1388 |
telChp.setTabIndex(113);
|
1303 |
telChp.setFieldLabel("Téléphone");
|
1389 |
telChp.setFieldLabel("Téléphone");
|
1304 |
gaucheFdTelMail.add(telChp);
|
1390 |
gaucheFdTelMail.add(telChp);
|
1305 |
|
1391 |
|
1306 |
faxChp = new TextField<String>();
|
1392 |
faxChp = new TextField<String>();
|
1307 |
faxChp.setTabIndex(114);
|
1393 |
faxChp.setTabIndex(114);
|
1308 |
faxChp.setFieldLabel("Fax");
|
1394 |
faxChp.setFieldLabel("Fax");
|
1309 |
droiteFdTelMail.add(faxChp);
|
1395 |
droiteFdTelMail.add(faxChp);
|
1310 |
|
1396 |
|
1311 |
emailChp = new TextField<String>();
|
1397 |
emailChp = new TextField<String>();
|
1312 |
emailChp.setTabIndex(115);
|
1398 |
emailChp.setTabIndex(115);
|
1313 |
emailChp.setFieldLabel("Courriel");
|
1399 |
emailChp.setFieldLabel("Courriel");
|
1314 |
emailChp.setToolTip("Saisir le courriel de l'organisation, pas de courriel individuel. Ex. : accueil@organisation.org");
|
1400 |
emailChp.setToolTip("Saisir le courriel de l'organisation, pas de courriel individuel. Ex. : accueil@organisation.org");
|
1315 |
gaucheFdTelMail.add(emailChp);
|
1401 |
gaucheFdTelMail.add(emailChp);
|
1316 |
|
1402 |
|
1317 |
urlChp = new TextField<String>();
|
1403 |
urlChp = new TextField<String>();
|
1318 |
urlChp.setTabIndex(116);
|
1404 |
urlChp.setTabIndex(116);
|
1319 |
urlChp.setFieldLabel("Site web");
|
1405 |
urlChp.setFieldLabel("Site web");
|
1320 |
droiteFdTelMail.add(urlChp);
|
1406 |
droiteFdTelMail.add(urlChp);
|
1321 |
|
1407 |
|
1322 |
principalFdTelMail.add(gaucheFdTelMail, new ColumnData(.5));
|
1408 |
principalFdTelMail.add(gaucheFdTelMail, new ColumnData(.5));
|
1323 |
principalFdTelMail.add(droiteFdTelMail, new ColumnData(.5));
|
1409 |
principalFdTelMail.add(droiteFdTelMail, new ColumnData(.5));
|
1324 |
fieldSetTelMail.add(principalFdTelMail);
|
1410 |
fieldSetTelMail.add(principalFdTelMail);
|
1325 |
identificationOnglet.add(fieldSetTelMail);
|
1411 |
identificationOnglet.add(fieldSetTelMail);
|
1326 |
|
1412 |
|
1327 |
return identificationOnglet;
|
1413 |
return identificationOnglet;
|
1328 |
}
|
1414 |
}
|
1329 |
|
1415 |
|
1330 |
private native String getTemplatePays() /*-{
|
1416 |
private native String getTemplatePays() /*-{
|
1331 |
return [
|
1417 |
return [
|
1332 |
'<tpl for=".">',
|
1418 |
'<tpl for=".">',
|
1333 |
'<div class="x-combo-list-item">{nom} ({abreviation})</div>',
|
1419 |
'<div class="x-combo-list-item">{nom} ({abreviation})</div>',
|
1334 |
'</tpl>'
|
1420 |
'</tpl>'
|
1335 |
].join("");
|
1421 |
].join("");
|
1336 |
}-*/;
|
1422 |
}-*/;
|
1337 |
|
1423 |
|
1338 |
private void peuplerCasesACocher(String donnees, CheckBoxGroup groupeCac, TextField<String> champAutre) {
|
1424 |
private void peuplerCasesACocher(String donnees, CheckBoxGroup groupeCac, TextField<String> champAutre) {
|
1339 |
String[] valeurs = donnees.split(";;");
|
1425 |
String[] valeurs = donnees.split(";;");
|
1340 |
for (int i = 0; i < valeurs.length; i++) {
|
1426 |
for (int i = 0; i < valeurs.length; i++) {
|
1341 |
if (valeurs[i].startsWith("AUTRE##")) {
|
1427 |
if (valeurs[i].startsWith("AUTRE##")) {
|
1342 |
champAutre.setValue(valeurs[i].replaceFirst("^AUTRE##", ""));
|
1428 |
champAutre.setValue(valeurs[i].replaceFirst("^AUTRE##", ""));
|
1343 |
} else {
|
1429 |
} else {
|
1344 |
List<CheckBox> cases = groupeCac.getAll();
|
1430 |
List<CheckBox> cases = groupeCac.getAll();
|
1345 |
for (int j = 0; j < cases.size(); j++) {
|
1431 |
for (int j = 0; j < cases.size(); j++) {
|
1346 |
if (cases.get(j).getId().equals("val-"+valeurs[i])) {
|
1432 |
if (cases.get(j).getId().equals("val-"+valeurs[i])) {
|
1347 |
cases.get(j).setValue(true);
|
1433 |
cases.get(j).setValue(true);
|
1348 |
}
|
1434 |
}
|
1349 |
}
|
1435 |
}
|
1350 |
}
|
1436 |
}
|
1351 |
}
|
1437 |
}
|
1352 |
}
|
1438 |
}
|
1353 |
|
1439 |
|
1354 |
private void peuplerBoutonsRadio(String valeur, RadioGroup groupeBr) {
|
1440 |
private void peuplerBoutonsRadio(String valeur, RadioGroup groupeBr) {
|
1355 |
List<Radio> boutons = groupeBr.getAll();
|
1441 |
List<Radio> boutons = groupeBr.getAll();
|
1356 |
String id = valeur+"_"+groupeBr.getName().replace("_grp", "");
|
1442 |
String id = valeur+"_"+groupeBr.getName().replace("_grp", "");
|
1357 |
for (int i = 0; i < boutons.size(); i++) {
|
1443 |
for (int i = 0; i < boutons.size(); i++) {
|
1358 |
if (boutons.get(i).getId().equals(id)) {
|
1444 |
if (boutons.get(i).getId().equals(id)) {
|
1359 |
boutons.get(i).setValue(true);
|
1445 |
boutons.get(i).setValue(true);
|
1360 |
}
|
1446 |
}
|
1361 |
}
|
1447 |
}
|
1362 |
}
|
1448 |
}
|
1363 |
|
1449 |
|
1364 |
private String creerChaineDenormalisee(List<CheckBox> liste) {
|
1450 |
private String creerChaineDenormalisee(List<CheckBox> liste) {
|
1365 |
String identifiants = "";
|
1451 |
String identifiants = "";
|
1366 |
int taille = liste.size();
|
1452 |
int taille = liste.size();
|
1367 |
for (int i = 0; i < taille; i++) {
|
1453 |
for (int i = 0; i < taille; i++) {
|
1368 |
CheckBox cac = liste.get(i);
|
1454 |
CheckBox cac = liste.get(i);
|
1369 |
if (cac.isEnabled()) {
|
1455 |
if (cac.isEnabled()) {
|
1370 |
identifiants = identifiants.concat(";;"+cac.getData("id"));
|
1456 |
identifiants = identifiants.concat(";;"+cac.getData("id"));
|
1371 |
}
|
1457 |
}
|
1372 |
}
|
1458 |
}
|
1373 |
return identifiants.replaceFirst("^;;", "");
|
1459 |
return identifiants.replaceFirst("^;;", "");
|
1374 |
}
|
1460 |
}
|
1375 |
|
1461 |
|
1376 |
/** Méthode simplifiant la création de FormLayout.
|
1462 |
/** Méthode simplifiant la création de FormLayout.
|
1377 |
* Chacun des paramètres peut prendre la valeur null pour utiliser la valeur par défaut.
|
1463 |
* Chacun des paramètres peut prendre la valeur null pour utiliser la valeur par défaut.
|
1378 |
*
|
1464 |
*
|
1379 |
* @param labelWidth largeur des labels.
|
1465 |
* @param labelWidth largeur des labels.
|
1380 |
* @param labelAlign alignement des labels
|
1466 |
* @param labelAlign alignement des labels
|
1381 |
* @param padding padding du layout
|
1467 |
* @param padding padding du layout
|
1382 |
* @return
|
1468 |
* @return
|
1383 |
*/
|
1469 |
*/
|
1384 |
private FormLayout creerFormLayout(Integer labelWidth, LabelAlign labelAlign, Integer padding) {
|
1470 |
private FormLayout creerFormLayout(Integer labelWidth, LabelAlign labelAlign, Integer padding) {
|
1385 |
FormLayout formLayout = new FormLayout();
|
1471 |
FormLayout formLayout = new FormLayout();
|
1386 |
if (labelWidth != null) {
|
1472 |
if (labelWidth != null) {
|
1387 |
formLayout.setLabelWidth(labelWidth);
|
1473 |
formLayout.setLabelWidth(labelWidth);
|
1388 |
}
|
1474 |
}
|
1389 |
if (labelAlign != null) {
|
1475 |
if (labelAlign != null) {
|
1390 |
formLayout.setLabelAlign(labelAlign);
|
1476 |
formLayout.setLabelAlign(labelAlign);
|
1391 |
}
|
1477 |
}
|
1392 |
if (padding != null) {
|
1478 |
if (padding != null) {
|
1393 |
formLayout.setPadding(padding);
|
1479 |
formLayout.setPadding(padding);
|
1394 |
}
|
1480 |
}
|
1395 |
return formLayout;
|
1481 |
return formLayout;
|
1396 |
}
|
1482 |
}
|
1397 |
|
1483 |
|
1398 |
/** Méthode simplifiant la création de bouton radio oui/non
|
1484 |
/** Méthode simplifiant la création de bouton radio oui/non
|
1399 |
*
|
1485 |
*
|
1400 |
* @param listeNom nom de la liste de valeur
|
1486 |
* @param listeNom nom de la liste de valeur
|
1401 |
* @return
|
1487 |
* @return
|
1402 |
*/
|
1488 |
*/
|
1403 |
private RadioGroup creerChoixUniqueRadioGroupe(String groupeNom, String listeNom) {
|
1489 |
private RadioGroup creerChoixUniqueRadioGroupe(String groupeNom, String listeNom) {
|
1404 |
groupeNom += "_grp";
|
1490 |
groupeNom += "_grp";
|
1405 |
// NOTE : il semblerait qu'il faille aussi utiliser setName() pour éviter tout problème...
|
1491 |
// NOTE : il semblerait qu'il faille aussi utiliser setName() pour éviter tout problème...
|
1406 |
RadioGroup radioGroup = new RadioGroup(groupeNom);
|
1492 |
RadioGroup radioGroup = new RadioGroup(groupeNom);
|
1407 |
radioGroup.setName(groupeNom);
|
1493 |
radioGroup.setName(groupeNom);
|
1408 |
|
1494 |
|
1409 |
if (listeNom.equals("ouiNon")) {
|
1495 |
if (listeNom.equals("ouiNon")) {
|
1410 |
ValeurListe ouiNonListe = new ValeurListe();
|
1496 |
ValeurListe ouiNonListe = new ValeurListe();
|
1411 |
ouiNonListe.ajouter(new Valeur("1", "Oui", "NULL", "NULL"));
|
1497 |
ouiNonListe.ajouter(new Valeur("1", "Oui", "NULL", "NULL"));
|
1412 |
ouiNonListe.ajouter(new Valeur("0", "Non", "NULL", "NULL"));
|
1498 |
ouiNonListe.ajouter(new Valeur("0", "Non", "NULL", "NULL"));
|
1413 |
creerChoixUniqueBoutonRadio(radioGroup, ouiNonListe);
|
1499 |
creerChoixUniqueBoutonRadio(radioGroup, ouiNonListe);
|
1414 |
}
|
1500 |
}
|
1415 |
|
1501 |
|
1416 |
return radioGroup;
|
1502 |
return radioGroup;
|
1417 |
}
|
1503 |
}
|
1418 |
|
1504 |
|
1419 |
private void creerChoixUniqueBoutonRadio(RadioGroup radioGroupe, ValeurListe listeValeurs) {
|
1505 |
private void creerChoixUniqueBoutonRadio(RadioGroup radioGroupe, ValeurListe listeValeurs) {
|
1420 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
1506 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
1421 |
Valeur val = listeValeurs.get(it.next());
|
1507 |
Valeur val = listeValeurs.get(it.next());
|
1422 |
|
1508 |
|
1423 |
Radio radioBtn = new Radio();
|
1509 |
Radio radioBtn = new Radio();
|
1424 |
radioBtn.setName(radioGroupe.getName().replace("_grp", ""));
|
1510 |
radioBtn.setName(radioGroupe.getName().replace("_grp", ""));
|
1425 |
radioBtn.setId(val.getId()+"_"+radioBtn.getName());
|
1511 |
radioBtn.setId(val.getId()+"_"+radioBtn.getName());
|
1426 |
radioBtn.setBoxLabel(val.getNom());
|
1512 |
radioBtn.setBoxLabel(val.getNom());
|
1427 |
radioBtn.setValueAttribute(val.getId());
|
1513 |
radioBtn.setValueAttribute(val.getId());
|
1428 |
radioBtn.addListener(Events.Change, new Listener<ComponentEvent>() {
|
1514 |
radioBtn.addListener(Events.Change, new Listener<ComponentEvent>() {
|
1429 |
|
1515 |
|
1430 |
public void handleEvent(ComponentEvent be) {
|
1516 |
public void handleEvent(ComponentEvent be) {
|
1431 |
//Window.alert(((Radio) be.component).getName());
|
1517 |
//Window.alert(((Radio) be.component).getName());
|
1432 |
afficherChampSupplementaire(((Radio) be.component));
|
1518 |
afficherChampSupplementaire(((Radio) be.component));
|
1433 |
}
|
1519 |
}
|
1434 |
|
1520 |
|
1435 |
});
|
1521 |
});
|
1436 |
|
1522 |
|
1437 |
if (! val.getDescription().equals("NULL")) {
|
1523 |
if (! val.getDescription().equals("NULL")) {
|
1438 |
radioBtn.setToolTip(new ToolTipConfig(val.getNom(), val.getDescription()));
|
1524 |
radioBtn.setToolTip(new ToolTipConfig(val.getNom(), val.getDescription()));
|
1439 |
}
|
1525 |
}
|
1440 |
radioGroupe.add(radioBtn);
|
1526 |
radioGroupe.add(radioBtn);
|
1441 |
}
|
1527 |
}
|
1442 |
}
|
1528 |
}
|
1443 |
|
1529 |
|
1444 |
private void afficherChampSupplementaire(Radio radioBtn) {
|
1530 |
private void afficherChampSupplementaire(Radio radioBtn) {
|
1445 |
//GWT.log("Nom btn : "+radioBtn.getName()+" - Nom group : "+radioBtn.getGroup().getName(), null);
|
1531 |
//GWT.log("Nom btn : "+radioBtn.getName()+" - Nom group : "+radioBtn.getGroup().getName(), null);
|
1446 |
// Valeur du bouton radio déclenchant l'affichage des composants cachés
|
1532 |
// Valeur du bouton radio déclenchant l'affichage des composants cachés
|
1447 |
String valeurPourAfficher = "oui";
|
1533 |
String valeurPourAfficher = "oui";
|
1448 |
|
1534 |
|
1449 |
// Construction de la liste des composants à afficher/cacher
|
1535 |
// Construction de la liste des composants à afficher/cacher
|
1450 |
String radioGroupeNom = radioBtn.getGroup().getName();
|
1536 |
String radioGroupeNom = radioBtn.getGroup().getName();
|
1451 |
ArrayList<Object> composants = new ArrayList<Object>();
|
1537 |
ArrayList<Object> composants = new ArrayList<Object>();
|
1452 |
if (radioGroupeNom.equals("action_mark_grp")) {
|
1538 |
if (radioGroupeNom.equals("action_mark_grp")) {
|
1453 |
composants.add(actionTrukCp);
|
1539 |
composants.add(actionTrukCp);
|
1454 |
} else if (radioGroupeNom.equals("future_action_mark_grp")) {
|
1540 |
} else if (radioGroupeNom.equals("future_action_mark_grp")) {
|
1455 |
composants.add(futureActionChp);
|
1541 |
composants.add(futureActionChp);
|
1456 |
} else if (radioGroupeNom.equals("sans_motif_acces_mark_grp")) {
|
1542 |
} else if (radioGroupeNom.equals("sans_motif_acces_mark_grp")) {
|
1457 |
composants.add(sansMotifAccesChp);
|
1543 |
composants.add(sansMotifAccesChp);
|
1458 |
} else if (radioGroupeNom.equals("avec_motif_acces_mark_grp")) {
|
1544 |
} else if (radioGroupeNom.equals("avec_motif_acces_mark_grp")) {
|
1459 |
composants.add(avecMotifAccesChp);
|
1545 |
composants.add(avecMotifAccesChp);
|
1460 |
} else if (radioGroupeNom.equals("recherche_mark_grp")) {
|
1546 |
} else if (radioGroupeNom.equals("recherche_mark_grp")) {
|
1461 |
composants.add(provenanceRechercheTrukCp);
|
1547 |
composants.add(provenanceRechercheTrukCp);
|
1462 |
composants.add(typeRechercheTrukCp);
|
1548 |
composants.add(typeRechercheTrukCp);
|
1463 |
} else if (radioGroupeNom.equals("formation_mark_grp")) {
|
1549 |
} else if (radioGroupeNom.equals("formation_mark_grp")) {
|
1464 |
composants.add(formationChp);
|
1550 |
composants.add(formationChp);
|
1465 |
} else if (radioGroupeNom.equals("collection_commune_mark_grp")) {
|
1551 |
} else if (radioGroupeNom.equals("collection_commune_mark_grp")) {
|
1466 |
composants.add(collectionAutreTrukCp);
|
1552 |
composants.add(collectionAutreTrukCp);
|
1467 |
} else if (radioGroupeNom.equals("restauration_mark_grp")) {
|
1553 |
} else if (radioGroupeNom.equals("restauration_mark_grp")) {
|
1468 |
composants.add(opRestauTrukCp);
|
1554 |
composants.add(opRestauTrukCp);
|
1469 |
} else if (radioGroupeNom.equals("traitement_mark_grp")) {
|
1555 |
} else if (radioGroupeNom.equals("traitement_mark_grp")) {
|
1470 |
composants.add(traitementTrukCp);
|
1556 |
composants.add(traitementTrukCp);
|
1471 |
} else if (radioGroupeNom.equals("echantillon_acquisition_mark_grp")) {
|
1557 |
} else if (radioGroupeNom.equals("echantillon_acquisition_mark_grp")) {
|
1472 |
composants.add(traitementAcquisitionMarkRGrpChp);
|
1558 |
composants.add(traitementAcquisitionMarkRGrpChp);
|
1473 |
} else if (radioGroupeNom.equals("traitement_acquisition_mark_grp")) {
|
1559 |
} else if (radioGroupeNom.equals("traitement_acquisition_mark_grp")) {
|
1474 |
composants.add(traitementAcquisitionMarkLabel);
|
1560 |
composants.add(traitementAcquisitionMarkLabel);
|
1475 |
composants.add(poisonTraitementTrukCp);
|
1561 |
composants.add(poisonTraitementTrukCp);
|
1476 |
composants.add(insecteTraitementTrukCp);
|
1562 |
composants.add(insecteTraitementTrukCp);
|
1477 |
} else if (radioGroupeNom.equals("materiel_conservation_ce_grp")) {
|
1563 |
} else if (radioGroupeNom.equals("materiel_conservation_ce_grp")) {
|
1478 |
composants.add(autreMaterielTrukCp);
|
1564 |
composants.add(autreMaterielTrukCp);
|
1479 |
valeurPourAfficher = "non";
|
1565 |
valeurPourAfficher = "non";
|
1480 |
}
|
1566 |
}
|
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) {
|
1491 |
if (type.equals(valeurPourAfficher)) {
|
1577 |
if (type.equals(valeurPourAfficher)) {
|
1492 |
((Component) composants.get(i)).show();
|
1578 |
((Component) composants.get(i)).show();
|
1493 |
} else {
|
1579 |
} else {
|
1494 |
((Component) composants.get(i)).hide();
|
1580 |
((Component) composants.get(i)).hide();
|
1495 |
}
|
1581 |
}
|
1496 |
}
|
1582 |
}
|
1497 |
// Si on a à faire à un ContentPanel, on l'actualise pour déclencher l'affichage
|
1583 |
// Si on a à faire à un ContentPanel, on l'actualise pour déclencher l'affichage
|
1498 |
if (composants.get(i) instanceof ContentPanel) {
|
1584 |
if (composants.get(i) instanceof ContentPanel) {
|
1499 |
((ContentPanel) composants.get(i)).layout();
|
1585 |
((ContentPanel) composants.get(i)).layout();
|
1500 |
}
|
1586 |
}
|
1501 |
}
|
1587 |
}
|
1502 |
|
1588 |
|
1503 |
}
|
1589 |
}
|
1504 |
|
1590 |
|
1505 |
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
|
1591 |
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
|
1506 |
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
|
1592 |
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
|
1507 |
* Ajoute ou pas un champ "Autre".
|
1593 |
* Ajoute ou pas un champ "Autre".
|
1508 |
*
|
1594 |
*
|
1509 |
* @param listeNom nom de la liste de valeur
|
1595 |
* @param listeNom nom de la liste de valeur
|
1510 |
* @return
|
1596 |
* @return
|
1511 |
*/
|
1597 |
*/
|
1512 |
private ContentPanel creerChoixMultipleCp(String listeNom) {
|
1598 |
private ContentPanel creerChoixMultipleCp(String listeNom) {
|
1513 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId(listeNom));
|
1599 |
modele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId(listeNom));
|
1514 |
ContentPanel cp = new ContentPanel();
|
1600 |
ContentPanel cp = new ContentPanel();
|
1515 |
cp.setLayout(creerFormLayout(650, LabelAlign.TOP, 0));
|
1601 |
cp.setLayout(creerFormLayout(650, LabelAlign.TOP, 0));
|
1516 |
cp.setHeaderVisible(false);
|
1602 |
cp.setHeaderVisible(false);
|
1517 |
return cp;
|
1603 |
return cp;
|
1518 |
}
|
1604 |
}
|
1519 |
|
1605 |
|
1520 |
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
|
1606 |
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
|
1521 |
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
|
1607 |
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
|
1522 |
* Ajoute ou pas un champ "Autre".
|
1608 |
* Ajoute ou pas un champ "Autre".
|
1523 |
*
|
1609 |
*
|
1524 |
* @param cp panneau conteant le groupe de case à cocher
|
1610 |
* @param cp panneau conteant le groupe de case à cocher
|
1525 |
* @param cacGroup le groupe de case à cocher
|
1611 |
* @param cacGroup le groupe de case à cocher
|
1526 |
* @param listeValeurs la liste de valeurs à transformer en case à cocher
|
1612 |
* @param listeValeurs la liste de valeurs à transformer en case à cocher
|
1527 |
* @param boolAutreChp booléen indiquant si oui ou non le champ autre doit apparaître
|
1613 |
* @param boolAutreChp booléen indiquant si oui ou non le champ autre doit apparaître
|
1528 |
* @return
|
1614 |
* @return
|
1529 |
*/
|
1615 |
*/
|
1530 |
private void creerChoixMultipleCac(ContentPanel cp, CheckBoxGroup cacGroupe, ValeurListe listeValeurs, Field<String> autreChp) {
|
1616 |
private void creerChoixMultipleCac(ContentPanel cp, CheckBoxGroup cacGroupe, ValeurListe listeValeurs, Field<String> autreChp) {
|
1531 |
cacGroupe.setAutoWidth(true);
|
1617 |
cacGroupe.setAutoWidth(true);
|
1532 |
cacGroupe.setData("liste_id", listeValeurs.getId());
|
1618 |
cacGroupe.setData("liste_id", listeValeurs.getId());
|
1533 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
1619 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
1534 |
Valeur val = listeValeurs.get(it.next());
|
1620 |
Valeur val = listeValeurs.get(it.next());
|
1535 |
String nom = val.get("nom");
|
1621 |
String nom = val.get("nom");
|
1536 |
CheckBox cac = new CheckBox();
|
1622 |
CheckBox cac = new CheckBox();
|
1537 |
cac.setId("val-"+val.getId());
|
1623 |
cac.setId("val-"+val.getId());
|
1538 |
cac.setData("id", val.getId());
|
1624 |
cac.setData("id", val.getId());
|
1539 |
cac.setBoxLabel(nom);
|
1625 |
cac.setBoxLabel(nom);
|
1540 |
if (! val.getDescription().equals("NULL")) {
|
1626 |
if (! val.getDescription().equals("NULL")) {
|
1541 |
cac.setToolTip(new ToolTipConfig(val.getNom(), val.getDescription()));
|
1627 |
cac.setToolTip(new ToolTipConfig(val.getNom(), val.getDescription()));
|
1542 |
}
|
1628 |
}
|
1543 |
cacGroupe.add(cac);
|
1629 |
cacGroupe.add(cac);
|
1544 |
}
|
1630 |
}
|
1545 |
cp.add(cacGroupe);
|
1631 |
cp.add(cacGroupe);
|
1546 |
|
1632 |
|
1547 |
if (autreChp != null) {
|
1633 |
if (autreChp != null) {
|
1548 |
ContentPanel autreCp = new ContentPanel();
|
1634 |
ContentPanel autreCp = new ContentPanel();
|
1549 |
autreCp.setLayout(creerFormLayout(75, LabelAlign.TOP, 0));
|
1635 |
autreCp.setLayout(creerFormLayout(75, LabelAlign.TOP, 0));
|
1550 |
autreCp.setHeaderVisible(false);
|
1636 |
autreCp.setHeaderVisible(false);
|
1551 |
autreChp.setId("autre-"+listeValeurs.getId());
|
1637 |
autreChp.setId("autre-"+listeValeurs.getId());
|
1552 |
autreChp.setFieldLabel("Autre");
|
1638 |
autreChp.setFieldLabel("Autre");
|
1553 |
autreChp.setLabelStyle("font-weight:normal;");
|
1639 |
autreChp.setLabelStyle("font-weight:normal;");
|
1554 |
autreCp.add(autreChp);
|
1640 |
autreCp.add(autreChp);
|
1555 |
cp.add(autreCp);
|
1641 |
cp.add(autreCp);
|
1556 |
}
|
1642 |
}
|
1557 |
|
1643 |
|
1558 |
cp.layout();
|
1644 |
cp.layout();
|
1559 |
}
|
1645 |
}
|
1560 |
|
1646 |
|
1561 |
public void rafraichir(Object nouvelleDonnees) {
|
1647 |
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) {
|
1668 |
// Composition du titre
|
1582 |
conservation = (StructureConservation) info.getDonnee(1);
|
1669 |
titre += " - ID : "+identification.getId();
|
1583 |
if (onglets.getSelectedItem().equals(conservationOnglet)) {
|
- |
|
1584 |
peuplerStructureConservation();
|
- |
|
1585 |
}
|
1670 |
}
|
1586 |
}
|
- |
|
1587 |
if (info.getDonnee(2) != null) {
|
1671 |
if (info.getDonnee(1) != null) {
|
1588 |
valorisation = (StructureValorisation) info.getDonnee(2);
|
1672 |
conservation = (StructureConservation) info.getDonnee(1);
|
1589 |
if (valorisation != null) {
|
- |
|
1590 |
GWT.log(valorisation.toString(), null);
|
- |
|
1591 |
if (onglets.getSelectedItem().equals(valorisationOnglet)) {
|
1673 |
if (onglets.getSelectedItem().equals(conservationOnglet)) {
|
1592 |
peuplerStructureValorisation();
|
1674 |
peuplerStructureConservation();
|
1593 |
}
|
1675 |
}
|
1594 |
}
|
1676 |
}
|
1595 |
}
|
- |
|
1596 |
structureFormPanneau.setHeading(titre);
|
- |
|
1597 |
}
|
- |
|
1598 |
} else if (nouvelleDonnees instanceof ValeurListe) {
|
1677 |
if (info.getDonnee(2) != null) {
|
1599 |
ValeurListe listeValeurs = (ValeurListe) nouvelleDonnees;
|
1678 |
valorisation = (StructureValorisation) info.getDonnee(2);
|
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 |
}
|
- |
|
1605 |
// Test pour savoir si la liste contient des éléments
|
- |
|
1606 |
if (liste.size() > 0) {
|
1679 |
if (valorisation != null) {
|
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);
|
- |
|
1612 |
}
|
- |
|
1613 |
if (listeValeurs.getId().equals(config.getListeId("stpu"))) {
|
1680 |
if (onglets.getSelectedItem().equals(valorisationOnglet)) {
|
1614 |
magazinLstpu.removeAll();
|
- |
|
1615 |
magazinLstpu.add(liste);
|
- |
|
1616 |
comboLstpu.setStore(magazinLstpu);
|
- |
|
1617 |
}
|
- |
|
1618 |
if (listeValeurs.getId().equals(config.getListeId("statut"))) {
|
- |
|
1619 |
magazinLiStatut.removeAll();
|
1681 |
peuplerStructureValorisation();
|
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>();
|
- |
|
1643 |
creerChoixMultipleCac(parametreStockageTrukCp, parametreStockageTrukCacGrpChp, listeValeurs, parametreStockageAutreChp);
|
- |
|
1644 |
}
|
1682 |
}
|
1645 |
if (listeValeurs.getId().equals(config.getListeId("autreCollection"))) {
|
- |
|
1646 |
if (collectionAutreTrukCp.getItemByItemId("collectionAutreTrukCacGrpChp") == null) {
|
- |
|
1647 |
collectionAutreTrukCacGrpChp.setId("collectionAutreTrukCacGrpChp");
|
- |
|
1648 |
collectionAutreAutreChp = new TextField<String>();
|
- |
|
1649 |
creerChoixMultipleCac(collectionAutreTrukCp, collectionAutreTrukCacGrpChp, listeValeurs, collectionAutreAutreChp);
|
- |
|
1650 |
}
|
1683 |
}
|
1651 |
if (autreCollectionTrukCp.getItemByItemId("autreCollectionTrukCacGrpChp") == null) {
|
- |
|
1652 |
autreCollectionTrukCacGrpChp.setId("autreCollectionTrukCacGrpChp");
|
- |
|
1653 |
autreCollectionAutreChp = new TextField<String>();
|
- |
|
1654 |
creerChoixMultipleCac(autreCollectionTrukCp, autreCollectionTrukCacGrpChp, listeValeurs, autreCollectionAutreChp);
|
- |
|
1655 |
}
|
1684 |
}
|
1656 |
}
|
- |
|
1657 |
if (listeValeurs.getId().equals(config.getListeId("opRestau"))) {
|
- |
|
1658 |
opRestauAutreChp = new TextField<String>();
|
1685 |
structureFormPanneau.setHeading(titre);
|
1659 |
creerChoixMultipleCac(opRestauTrukCp, opRestauTrukCacGrpChp, listeValeurs, opRestauAutreChp);
|
- |
|
1660 |
}
|
- |
|
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);
|
1688 |
StructureAPersonneListe personnes = (StructureAPersonneListe) info.getDonnee(0);
|
1664 |
materielConservationCp.layout();
|
1689 |
personnel = new ArrayList<StructureAPersonne>();
|
1665 |
}
|
- |
|
1666 |
if (listeValeurs.getId().equals(config.getListeId("autreMateriel"))) {
|
1690 |
for (Iterator<String> it = personnes.keySet().iterator(); it.hasNext();) {
|
1667 |
autreMaterielAutreChp = new TextField<String>();
|
1691 |
String index = it.next();
|
1668 |
creerChoixMultipleCac(autreMaterielTrukCp, autreMaterielTrukCacGrpChp, listeValeurs, autreMaterielAutreChp);
|
1692 |
personnes.get(index).set("fonction", magazinLiFonction.findModel("id_valeur", personnes.get(index).getFonction()).getNom());
|
1669 |
}
|
- |
|
1670 |
if (listeValeurs.getId().equals(config.getListeId("poisonTraitement"))) {
|
- |
|
1671 |
poisonTraitementAutreChp = new TextField<String>();
|
1693 |
personnel.add(personnes.get(index));
|
1672 |
creerChoixMultipleCac(poisonTraitementTrukCp, poisonTraitementTrukCacGrpChp, listeValeurs, poisonTraitementAutreChp);
|
- |
|
1673 |
}
|
1694 |
}
|
- |
|
1695 |
|
1674 |
if (listeValeurs.getId().equals(config.getListeId("insecteTraitement"))) {
|
1696 |
//GWT.log(personnel.toString(), null);
|
1675 |
if (traitementTrukCp.getItemByItemId("traitementTrukCacGrpChp") == null) {
|
1697 |
if (onglets.getSelectedItem().equals(personnelOnglet)) {
|
1676 |
traitementTrukCacGrpChp.setId("traitementTrukCacGrpChp");
|
- |
|
1677 |
traitementAutreChp = new TextField<String>();
|
1698 |
peuplerStructurePersonnel();
|
1678 |
creerChoixMultipleCac(traitementTrukCp, traitementTrukCacGrpChp, listeValeurs, traitementAutreChp);
|
- |
|
1679 |
}
|
1699 |
}
|
1680 |
if (insecteTraitementTrukCp.getItemByItemId("insecteTraitementTrukCacGrpChp") == null) {
|
- |
|
1681 |
insecteTraitementTrukCacGrpChp.setId("insecteTraitementTrukCacGrpChp");
|
- |
|
1682 |
insecteTraitementAutreChp = new TextField<String>();
|
- |
|
1683 |
creerChoixMultipleCac(insecteTraitementTrukCp, insecteTraitementTrukCacGrpChp, listeValeurs, insecteTraitementAutreChp);
|
- |
|
1684 |
}
|
1700 |
}
|
1685 |
}
|
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);
|
- |
|
1788 |
}
|
- |
|
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"))) {
|
1695 |
typeRechercheAutreChp = new TextField<String>();
|
1799 |
typeRechercheAutreChp = new TextField<String>();
|
1696 |
creerChoixMultipleCac(typeRechercheTrukCp, typeRechercheTrukCacGrpChp, listeValeurs, typeRechercheAutreChp);
|
1800 |
creerChoixMultipleCac(typeRechercheTrukCp, typeRechercheTrukCacGrpChp, listeValeurs, typeRechercheAutreChp);
|
- |
|
1801 |
}
|
- |
|
1802 |
//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
|
- |
|
1803 |
} else {
|
- |
|
1804 |
GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
|
1697 |
}
|
1805 |
}
|
1698 |
//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
|
- |
|
1699 |
} else {
|
- |
|
1700 |
GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
|
- |
|
1701 |
}
|
1806 |
}
|
- |
|
1807 |
} catch (Exception e) {
|
- |
|
1808 |
GWT.log("rafraichir()", e);
|
1702 |
}
|
1809 |
}
|
1703 |
}
|
1810 |
}
|
1704 |
|
1811 |
|
1705 |
}
|
1812 |
}
|