Line 27... |
Line 27... |
27 |
import org.tela_botanica.client.util.UtilString;
|
27 |
import org.tela_botanica.client.util.UtilString;
|
28 |
import org.tela_botanica.client.vues.Formulaire;
|
28 |
import org.tela_botanica.client.vues.Formulaire;
|
29 |
import org.tela_botanica.client.vues.FormulaireOnglet;
|
29 |
import org.tela_botanica.client.vues.FormulaireOnglet;
|
Line 30... |
Line 30... |
30 |
|
30 |
|
- |
|
31 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
31 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
32 |
import com.extjs.gxt.ui.client.event.BaseEvent;
|
- |
|
33 |
import com.extjs.gxt.ui.client.event.ButtonEvent;
|
- |
|
34 |
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
- |
|
35 |
import com.extjs.gxt.ui.client.event.Events;
|
32 |
import com.extjs.gxt.ui.client.event.ButtonEvent;
|
36 |
import com.extjs.gxt.ui.client.event.FieldEvent;
|
33 |
import com.extjs.gxt.ui.client.event.Listener;
|
37 |
import com.extjs.gxt.ui.client.event.Listener;
|
34 |
import com.extjs.gxt.ui.client.event.MessageBoxEvent;
|
38 |
import com.extjs.gxt.ui.client.event.MessageBoxEvent;
|
35 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
39 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
36 |
import com.extjs.gxt.ui.client.store.ListStore;
|
40 |
import com.extjs.gxt.ui.client.store.ListStore;
|
Line 39... |
Line 43... |
39 |
import com.extjs.gxt.ui.client.widget.MessageBox;
|
43 |
import com.extjs.gxt.ui.client.widget.MessageBox;
|
40 |
import com.extjs.gxt.ui.client.widget.Text;
|
44 |
import com.extjs.gxt.ui.client.widget.Text;
|
41 |
import com.extjs.gxt.ui.client.widget.button.Button;
|
45 |
import com.extjs.gxt.ui.client.widget.button.Button;
|
42 |
import com.extjs.gxt.ui.client.widget.form.ComboBox;
|
46 |
import com.extjs.gxt.ui.client.widget.form.ComboBox;
|
43 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
47 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
- |
|
48 |
import com.extjs.gxt.ui.client.widget.form.LabelField;
|
44 |
import com.extjs.gxt.ui.client.widget.form.NumberField;
|
49 |
import com.extjs.gxt.ui.client.widget.form.NumberField;
|
- |
|
50 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
45 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
51 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
46 |
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
|
52 |
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
|
47 |
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
|
53 |
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
|
48 |
import com.extjs.gxt.ui.client.widget.grid.AggregationRowConfig;
|
54 |
import com.extjs.gxt.ui.client.widget.grid.AggregationRowConfig;
|
49 |
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
|
55 |
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
|
Line 87... |
Line 93... |
87 |
private ChampCaseACocher insecteTraitementChp = null;
|
93 |
private ChampCaseACocher insecteTraitementChp = null;
|
88 |
private ChampComboBoxListeValeurs etatGeneralCombo = null;
|
94 |
private ChampComboBoxListeValeurs etatGeneralCombo = null;
|
89 |
private ChampComboBoxListeValeurs determinationCombo = null;
|
95 |
private ChampComboBoxListeValeurs determinationCombo = null;
|
90 |
private ChampMultiValeursMultiTypes specimenDegradationChp = null;
|
96 |
private ChampMultiValeursMultiTypes specimenDegradationChp = null;
|
91 |
private ChampMultiValeursMultiTypes presentationDegradationChp = null;
|
97 |
private ChampMultiValeursMultiTypes presentationDegradationChp = null;
|
- |
|
98 |
private Text labelPresentationDegradationChp = null;
|
Line 92... |
Line 99... |
92 |
|
99 |
|
93 |
public CollectionFormDescription(Formulaire formulaireCourrant) {
|
100 |
public CollectionFormDescription(Formulaire formulaireCourrant) {
|
94 |
initialiserOnglet(formulaireCourrant);
|
101 |
initialiserOnglet(formulaireCourrant);
|
95 |
setId(ID);
|
102 |
setId(ID);
|
Line 772... |
Line 779... |
772 |
specimenDegradationChp = new ChampMultiValeursMultiTypes(i18nC.degradationSpecimen(), 150, true);
|
779 |
specimenDegradationChp = new ChampMultiValeursMultiTypes(i18nC.degradationSpecimen(), 150, true);
|
773 |
specimenDegradationChp.initialiserType("specimenDegradation");
|
780 |
specimenDegradationChp.initialiserType("specimenDegradation");
|
774 |
specimenDegradationChp.initialiserCombobox("niveauImportance");
|
781 |
specimenDegradationChp.initialiserCombobox("niveauImportance");
|
775 |
etatFieldSet.add(specimenDegradationChp);
|
782 |
etatFieldSet.add(specimenDegradationChp);
|
Line -... |
Line 783... |
- |
|
783 |
|
- |
|
784 |
labelPresentationDegradationChp = new Text();
|
- |
|
785 |
labelPresentationDegradationChp.setWidth("95%");
|
- |
|
786 |
labelPresentationDegradationChp.setVisible(false);
|
776 |
|
787 |
|
777 |
presentationDegradationChp = new ChampMultiValeursMultiTypes(i18nC.degradationPresentation(), 150, 200, true);
|
788 |
presentationDegradationChp = new ChampMultiValeursMultiTypes(i18nC.degradationPresentation(), 150, 200, true);
|
778 |
presentationDegradationChp.initialiserType("supportDegradation");
|
789 |
presentationDegradationChp.initialiserType("supportDegradation");
|
- |
|
790 |
presentationDegradationChp.initialiserCombobox("niveauImportance");
|
- |
|
791 |
|
- |
|
792 |
presentationDegradationChp.getTypes().addListener(Events.Select,
|
- |
|
793 |
new Listener<FieldEvent>() {
|
- |
|
794 |
public void handleEvent(FieldEvent be) {
|
- |
|
795 |
if (((Valeur)(be.getField().getValue())).get("id_valeur").equals("2310")) {
|
- |
|
796 |
labelPresentationDegradationChp.setText(i18nC.degradationPresentationLabel());
|
- |
|
797 |
labelPresentationDegradationChp.setVisible(true);
|
- |
|
798 |
}
|
- |
|
799 |
else {
|
- |
|
800 |
labelPresentationDegradationChp.setText("");
|
- |
|
801 |
labelPresentationDegradationChp.setVisible(false);
|
- |
|
802 |
}
|
- |
|
803 |
}
|
779 |
presentationDegradationChp.initialiserCombobox("niveauImportance");
|
804 |
});
|
- |
|
805 |
etatFieldSet.add(presentationDegradationChp);
|
Line 780... |
Line 806... |
780 |
etatFieldSet.add(presentationDegradationChp);
|
806 |
etatFieldSet.add(labelPresentationDegradationChp);
|
781 |
|
807 |
|
782 |
determinationCombo = new ChampComboBoxListeValeurs(i18nC.collectionDetermination(), "niveauDetermination");
|
808 |
determinationCombo = new ChampComboBoxListeValeurs(i18nC.collectionDetermination(), "niveauDetermination");
|