| Line 83... |
Line 83... |
| 83 |
// GESTION DES STRUCTURES
|
83 |
// GESTION DES STRUCTURES
|
| 84 |
//+----------------------------------------------------------------------------------------------------------------+
|
84 |
//+----------------------------------------------------------------------------------------------------------------+
|
| Line 85... |
Line 85... |
| 85 |
|
85 |
|
| 86 |
public void selectionnerStructure(Rafraichissable vueARafraichir, String projetId, String structureId) {
|
86 |
public void selectionnerStructure(Rafraichissable vueARafraichir, String projetId, String structureId) {
|
| 87 |
// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation
|
87 |
// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation
|
| 88 |
StructureAsyncDao sDao = new StructureAsyncDao();
|
88 |
StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
|
| 89 |
sDao.selectionner(vueARafraichir, projetId, structureId);
|
89 |
sDao.selectionner(projetId, structureId);
|
| Line 90... |
Line 90... |
| 90 |
}
|
90 |
}
|
| 91 |
|
91 |
|
| 92 |
/** Lance la creation d'une Structure
|
92 |
/** Lance la creation d'une Structure
|
| 93 |
* @param vueARafraichir la vue demandant a être rafraichie
|
93 |
* @param vueARafraichir la vue demandant a être rafraichie
|
| 94 |
* @param structure les données de la structure
|
94 |
* @param structure les données de la structure
|
| 95 |
*/
|
95 |
*/
|
| 96 |
public void ajouterStructure(Rafraichissable vueARafraichir, String idUtilisateur, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
|
96 |
public void ajouterStructure(Rafraichissable vueARafraichir, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
|
| 97 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
97 |
StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
|
| Line 98... |
Line 98... |
| 98 |
structureDao.ajouter(vueARafraichir, idUtilisateur, structure, conservation, valorisation);
|
98 |
structureDao.ajouter(structure, conservation, valorisation);
|
| 99 |
}
|
99 |
}
|
| 100 |
|
100 |
|
| 101 |
public void supprimerStructure(Rafraichissable vueARafraichir, String idUtilisateur, String idStr) {
|
101 |
public void supprimerStructure(Rafraichissable vueARafraichir, String idStr) {
|
| Line 102... |
Line 102... |
| 102 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
102 |
StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
|
| 103 |
structureDao.supprimer(vueARafraichir, idUtilisateur, idStr);
|
103 |
structureDao.supprimer(idStr);
|
| 104 |
}
|
104 |
}
|
| 105 |
|
105 |
|
| Line 106... |
Line 106... |
| 106 |
public void modifierStructure(Rafraichissable vueARafraichir, String utilisateurId, String structureId, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
|
106 |
public void modifierStructure(Rafraichissable vueARafraichir, String structureId, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
|
| 107 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
107 |
StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
|