| Line 34... |
Line 34... |
| 34 |
private Collection collectionCollectee = null;
|
34 |
private Collection collectionCollectee = null;
|
| 35 |
private CollectionBotanique collectionBotaniqueCollectee = null;
|
35 |
private CollectionBotanique collectionBotaniqueCollectee = null;
|
| Line 36... |
Line 36... |
| 36 |
|
36 |
|
| 37 |
private ChampCaseACocher natureChp = null;
|
37 |
private ChampCaseACocher natureChp = null;
|
| 38 |
private TextArea specialiteChp = null;
|
- |
|
| 39 |
private ChampCaseACocher periodeConstitutionChp = null;
|
38 |
private TextArea specialiteChp = null;
|
| 40 |
private ChampComboBoxListeValeurs dateDebutCombo = null;
|
39 |
private ChampComboBoxListeValeurs dateDebutCombo = null;
|
| 41 |
private ChampComboBoxListeValeurs dateFinCombo = null;
|
40 |
private ChampComboBoxListeValeurs dateFinCombo = null;
|
| 42 |
private DateField dateDebutChp = null;
|
41 |
private DateField dateDebutChp = null;
|
| 43 |
private DateField dateFinChp = null;
|
42 |
private DateField dateFinChp = null;
|
| Line 90... |
Line 89... |
| 90 |
FieldSet periodeFieldSet = new FieldSet();
|
89 |
FieldSet periodeFieldSet = new FieldSet();
|
| 91 |
periodeFieldSet.setHeading(i18nC.collectionConstitutionTitre());
|
90 |
periodeFieldSet.setHeading(i18nC.collectionConstitutionTitre());
|
| 92 |
periodeFieldSet.setCollapsible(true);
|
91 |
periodeFieldSet.setCollapsible(true);
|
| 93 |
periodeFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
92 |
periodeFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
| Line 94... |
Line -... |
| 94 |
|
- |
|
| 95 |
periodeConstitutionChp = new ChampCaseACocher(i18nC.periodeConstitution(), "siecleNaturaliste", false);
|
- |
|
| 96 |
periodeFieldSet.add(periodeConstitutionChp);
|
- |
|
| 97 |
|
93 |
|
| Line 98... |
Line 94... |
| 98 |
ConteneurMultiChamps dateDebutConteneur = new ConteneurMultiChamps(i18nC.dateDebutCollection());
|
94 |
ConteneurMultiChamps dateDebutConteneur = new ConteneurMultiChamps(i18nC.dateDebutCollection());
|
| 99 |
|
95 |
|
| 100 |
dateDebutChp = new DateField();
|
96 |
dateDebutChp = new DateField();
|
| Line 277... |
Line 273... |
| 277 |
initialiserCollection();
|
273 |
initialiserCollection();
|
| 278 |
if (collectionBotanique != null) {
|
274 |
if (collectionBotanique != null) {
|
| 279 |
natureChp.peupler(collectionBotanique.getNature());
|
275 |
natureChp.peupler(collectionBotanique.getNature());
|
| 280 |
specialiteChp.setValue(collectionBotanique.getSpecialite());
|
276 |
specialiteChp.setValue(collectionBotanique.getSpecialite());
|
| Line 281... |
Line -... |
| 281 |
|
- |
|
| 282 |
periodeConstitutionChp.peupler(collection.getPeriodeConstitution());
|
277 |
|
| 283 |
dateDebutChp.setValue(UtilString.formaterEnDate(collectionBotanique.getRecolteDateDebut()));
|
278 |
dateDebutChp.setValue(UtilString.formaterEnDate(collectionBotanique.getRecolteDateDebut()));
|
| 284 |
dateDebutCombo.peupler(collectionBotanique.getRecolteDateDebutType());
|
279 |
dateDebutCombo.peupler(collectionBotanique.getRecolteDateDebutType());
|
| 285 |
dateFinChp.setValue(UtilString.formaterEnDate(collectionBotanique.getRecolteDateFin()));
|
280 |
dateFinChp.setValue(UtilString.formaterEnDate(collectionBotanique.getRecolteDateFin()));
|
| Line 302... |
Line 297... |
| 302 |
initialiserCollection();
|
297 |
initialiserCollection();
|
| 303 |
if (etreAccede()) {
|
298 |
if (etreAccede()) {
|
| 304 |
collectionBotaniqueCollectee.setNature(natureChp.getValeur());
|
299 |
collectionBotaniqueCollectee.setNature(natureChp.getValeur());
|
| 305 |
collectionBotaniqueCollectee.setSpecialite(specialiteChp.getValue());
|
300 |
collectionBotaniqueCollectee.setSpecialite(specialiteChp.getValue());
|
| Line 306... |
Line -... |
| 306 |
|
- |
|
| 307 |
collectionCollectee.setPeriodeConstitution(periodeConstitutionChp.getValeur());
|
301 |
|
| 308 |
collectionBotaniqueCollectee.setRecolteDateDebut(UtilDate.formaterEnString(dateDebutChp.getValue()));
|
302 |
collectionBotaniqueCollectee.setRecolteDateDebut(UtilDate.formaterEnString(dateDebutChp.getValue()));
|
| 309 |
collectionBotaniqueCollectee.setRecolteDateDebutType(dateDebutCombo.getValeur());
|
303 |
collectionBotaniqueCollectee.setRecolteDateDebutType(dateDebutCombo.getValeur());
|
| 310 |
collectionBotaniqueCollectee.setRecolteDateFin(UtilDate.formaterEnString(dateFinChp.getValue()));
|
304 |
collectionBotaniqueCollectee.setRecolteDateFin(UtilDate.formaterEnString(dateFinChp.getValue()));
|