Line 489... |
Line 489... |
489 |
}
|
489 |
}
|
490 |
return valorisationARetourner;
|
490 |
return valorisationARetourner;
|
491 |
}
|
491 |
}
|
Line 492... |
Line 492... |
492 |
|
492 |
|
- |
|
493 |
private void peuplerStructureValorisation() {
|
- |
|
494 |
if (mode.equals(MODE_AJOUTER)) {
|
- |
|
495 |
// Indique que l'onglet a pu être modifié pour la méthode collecter...
|
- |
|
496 |
valorisationOnglet.setData("acces", true);
|
- |
|
497 |
// Initialisation de l'objet Structure
|
- |
|
498 |
valorisation = new StructureValorisation();
|
493 |
private void peuplerStructureValorisation() {
|
499 |
}
|
494 |
if (valorisation != null && valorisationOnglet.getData("acces").equals(false)) {
|
500 |
if (mode.equals(MODE_MODIFIER) && valorisation != null && valorisationOnglet.getData("acces").equals(false)) {
|
495 |
// ACTION :
|
501 |
// ACTION :
|
496 |
//TODO : check below:
|
502 |
//TODO : check below:
|
Line 535... |
Line 541... |
535 |
}
|
541 |
}
|
Line 536... |
Line 542... |
536 |
|
542 |
|
537 |
private StructureConservation collecterStructureConservation() {
|
543 |
private StructureConservation collecterStructureConservation() {
|
538 |
StructureConservation conservationARetourner = null;
|
544 |
StructureConservation conservationARetourner = null;
|
- |
|
545 |
if (conservationOnglet.getData("acces").equals(true)) {
|
539 |
if (conservationOnglet.getData("acces").equals(true)) {
|
546 |
GWT.log("Début récupé", null);
|
540 |
// Création de l'objet
|
547 |
// Création de l'objet
|
Line 541... |
Line 548... |
541 |
StructureConservation conservationCollectee = (StructureConservation) conservation.cloner(new StructureConservation());
|
548 |
StructureConservation conservationCollectee = (StructureConservation) conservation.cloner(new StructureConservation());
|
542 |
|
549 |
|
Line 622... |
Line 629... |
622 |
conservationCollectee.setAcquisitionTraitementInsecte(creerChaineDenormalisee(insecteTraitementTrukCacGrpChp.getValues()));
|
629 |
conservationCollectee.setAcquisitionTraitementInsecte(creerChaineDenormalisee(insecteTraitementTrukCacGrpChp.getValues()));
|
623 |
conservationCollectee.setAcquisitionTraitementInsecte("AUTRE", insecteTraitementAutreChp.getValue());
|
630 |
conservationCollectee.setAcquisitionTraitementInsecte("AUTRE", insecteTraitementAutreChp.getValue());
|
Line 624... |
Line 631... |
624 |
|
631 |
|
625 |
// Retour de l'objet
|
632 |
// Retour de l'objet
|
- |
|
633 |
if (!conservationCollectee.comparer(conservation)) {
|
626 |
if (!conservationCollectee.comparer(conservation)) {
|
634 |
GWT.log("Collecte différent de Retour", null);
|
627 |
conservationARetourner = conservation = conservationCollectee;
|
635 |
conservationARetourner = conservation = conservationCollectee;
|
628 |
}
|
636 |
}
|
629 |
}
|
637 |
}
|
630 |
return conservationARetourner;
|
638 |
return conservationARetourner;
|
Line 631... |
Line 639... |
631 |
}
|
639 |
}
|
- |
|
640 |
|
- |
|
641 |
private void peuplerStructureConservation() {
|
- |
|
642 |
if (mode.equals(MODE_AJOUTER)) {
|
- |
|
643 |
// Indique que l'onglet a pu être modifié pour la méthode collecter...
|
- |
|
644 |
conservationOnglet.setData("acces", true);
|
- |
|
645 |
// Initialisation de l'objet Structure
|
632 |
|
646 |
conservation = new StructureConservation();
|
633 |
private void peuplerStructureConservation() {
|
647 |
}
|
634 |
if (conservation != null && conservationOnglet.getData("acces").equals(false)) {
|
648 |
if (mode.equals(MODE_MODIFIER) && conservation != null && conservationOnglet.getData("acces").equals(false)) {
|
635 |
// FORMATION
|
649 |
// FORMATION
|
636 |
// Bouton oui, à toujours l'index 0 donc on teste en fonction...
|
650 |
// Bouton oui, à toujours l'index 0 donc on teste en fonction...
|
637 |
((Radio) formationMarkRGrpChp.get((conservation.getFormation().equals("1") ? 0 : 1))).setValue(true);
|
651 |
((Radio) formationMarkRGrpChp.get((conservation.getFormation().equals("1") ? 0 : 1))).setValue(true);
|