Subversion Repositories eFlore/Applications.coel

Rev

Rev 128 | Rev 142 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 128 Rev 134
Line 1... Line 1...
1
package org.tela_botanica.client;
1
package org.tela_botanica.client;
Line -... Line 2...
-
 
2
 
-
 
3
import java.util.List;
2
 
4
 
3
import org.tela_botanica.client.composants.AideFenetre;
5
import org.tela_botanica.client.composants.AideFenetre;
4
import org.tela_botanica.client.composants.IdentificationFenetre;
6
import org.tela_botanica.client.composants.IdentificationFenetre;
5
import org.tela_botanica.client.composants.ParametreFenetre;
7
import org.tela_botanica.client.composants.ParametreFenetre;
6
import org.tela_botanica.client.interfaces.Rafraichissable;
8
import org.tela_botanica.client.interfaces.Rafraichissable;
Line 174... Line 176...
174
 
176
 
175
	public void ouvrirApplis(String id) {
177
	public void ouvrirApplis(String id) {
176
		if (id.equals(ComposantId.MENU_CEL)) {
178
		if (id.equals(ComposantId.MENU_CEL)) {
177
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getCelUrl(), "Carnet en ligne", "");
179
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getCelUrl(), "Carnet en ligne", "");
178
		} else if (id.equals(ComposantId.MENU_BEL)) {
180
		} else if (id.equals(ComposantId.MENU_BEL)) {
179
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getCelUrl(), "Carnet en ligne", "");
181
			Window.open(((Configuration) Registry.get(RegistreId.CONFIG)).getCelUrl(), "Biblio en ligne", "");
180
		}
182
		}
Line 181... Line 183...
181
	}
183
	}
182
 
184
 
Line 238... Line 240...
238
	 * TODO : afficher un message du type "Structure ajoutée".  
240
	 * TODO : afficher un message du type "Structure ajoutée".  
239
	 * Lance la creation d'une structure
241
	 * Lance la creation d'une structure
240
	 * @param les données de la structure saisie
242
	 * @param les données de la structure saisie
241
	 */
243
	 */
242
	public void ajouterStructure(Rafraichissable vue, Structure structure) {
244
	public void ajouterStructure(Rafraichissable vue, Structure structure) {
243
		modele.ajouterStructure(vue, structure);
245
		modele.ajouterStructure(vue, getUtilisateurId(), structure);
-
 
246
	}
-
 
247
 
-
 
248
	public void clicSupprimerStructure(Rafraichissable vue, List<Structure> structureSelection) {
-
 
249
		if(structureSelection.size() > 0) {
-
 
250
			if(Window.confirm("Êtes vous sur de vouloir supprimer les structures sélectionnées ?")) { 
-
 
251
					String idStr = "" ;
-
 
252
					for(int i = 0 ; i < structureSelection.size() ; i++) {
-
 
253
						idStr += structureSelection.get(i).getId()+"," ; 
-
 
254
					}
-
 
255
					modele.supprimerListeStructure(vue, getUtilisateurId(), idStr) ;
-
 
256
			}
-
 
257
		} else {
-
 
258
			Window.alert("Aucune structure sélectionnée");
-
 
259
		}
244
	}
260
	}
Line 245... Line 261...
245
 
261
 
246
}
262
}