| Line 86... |
Line 86... |
| 86 |
|
86 |
|
| 87 |
//+----------------------------------------------------------------------------------------------------------------+
|
87 |
//+----------------------------------------------------------------------------------------------------------------+
|
| 88 |
// GESTION DES STRUCTURES
|
88 |
// GESTION DES STRUCTURES
|
| Line 89... |
Line 89... |
| 89 |
//+----------------------------------------------------------------------------------------------------------------+
|
89 |
//+----------------------------------------------------------------------------------------------------------------+
|
| 90 |
|
90 |
|
| 91 |
public void obtenirListeStructures(Rafraichissable r, String utilisateurId) {
|
91 |
public void obtenirListeStructures(Rafraichissable r, String utilisateurId, String projetId) {
|
| 92 |
StructureAsyncDao sDao = new StructureAsyncDao();
|
92 |
StructureAsyncDao sDao = new StructureAsyncDao();
|
| Line 93... |
Line 93... |
| 93 |
sDao.selectionner(r, utilisateurId, "");
|
93 |
sDao.selectionner(r, utilisateurId, projetId,"");
|
| 94 |
}
|
94 |
}
|
| 95 |
|
95 |
|
| 96 |
public void selectionnerStructure(Rafraichissable r, String idUtilisateur, String idStr, String idRole) {
|
96 |
public void selectionnerStructure(Rafraichissable r, String idUtilisateur, String projetId, String idStr, String idRole) {
|
| 97 |
// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation
|
97 |
// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation
|
| - |
|
98 |
StructureAsyncDao sDao = new StructureAsyncDao();
|
| 98 |
StructureAsyncDao sDao = new StructureAsyncDao();
|
99 |
sDao.selectionner(r, idUtilisateur, projetId, idStr);
|
| 99 |
sDao.selectionner(r, idUtilisateur, idStr);
|
100 |
// Gestion des données de la table coel_structure_a_personne
|
| 100 |
// Gestion des données de la table coel_structure_a_personne
|
101 |
// TODO : créer une méthode séparée pour les données structure_a_personne
|
| 101 |
if (idStr != null && idRole != null) {
|
102 |
if (idStr != null && idRole != null) {
|
| 102 |
StructureAPersonneAsyncDao sapDao = new StructureAPersonneAsyncDao();
|
103 |
StructureAPersonneAsyncDao sapDao = new StructureAPersonneAsyncDao();
|
| Line 103... |
Line 104... |
| 103 |
sapDao.selectionner(r, idUtilisateur, idStr, idRole);
|
104 |
sapDao.selectionner(r, idUtilisateur, idStr, idRole);
|
| 104 |
}
|
105 |
}
|
| 105 |
}
|
106 |
}
|
| 106 |
|
107 |
|
| 107 |
public void selectionnerStructures(String idUtilisateur) {
|
108 |
public void selectionnerStructures(String idUtilisateur, String projetId) {
|
| 108 |
Rafraichissable r = this;
|
109 |
Rafraichissable r = this;
|
| Line 109... |
Line 110... |
| 109 |
String idStr = null;
|
110 |
String idStr = null;
|
| 110 |
String idRole = null;
|
111 |
String idRole = null;
|
| 111 |
selectionnerStructure(r, idUtilisateur, idStr, idRole);
|
112 |
selectionnerStructure(r, idUtilisateur, projetId, idStr, idRole);
|