Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 177 Rev 188
Line 54... Line 54...
54
							// Si la requête est un succès, reception d'un objet ou d'un tableau
54
							// Si la requête est un succès, reception d'un objet ou d'un tableau
55
							if (responseValue.isObject() != null) {
55
							if (responseValue.isObject() != null) {
56
								final JSONObject reponse = responseValue.isObject();
56
								final JSONObject reponse = responseValue.isObject();
57
								// Transformation du tableau JSON réponse en ListeInstitution
57
								// Transformation du tableau JSON réponse en ListeInstitution
58
								Structure structure = new Structure(reponse);
58
								Structure structure = new Structure(reponse);
-
 
59
								StructureConservation structureConservation = new StructureConservation(reponse);
59
								Information info = new Information("selection_structure", structure);
60
								Information info = new Information("selection_structure");
-
 
61
								info.setDonnee(0, structure);
-
 
62
								info.setDonnee(1, structureConservation);
60
								r.rafraichir(info);
63
								r.rafraichir(info);
61
							} else if (responseValue.isArray() != null) {
64
							} else if (responseValue.isArray() != null) {
62
								final JSONArray reponse = responseValue.isArray();
65
								final JSONArray reponse = responseValue.isArray();
63
								// Transformation du tableau JSON réponse en ListeInstitution
66
								// Transformation du tableau JSON réponse en ListeInstitution
64
								StructureListe structures = new StructureListe(reponse);
67
								StructureListe structures = new StructureListe(reponse);
Line 231... Line 234...
231
			GWT.log("Erreur à la création du service CoelProjetsListe", e);
234
			GWT.log("Erreur à la création du service CoelProjetsListe", e);
232
			Info.display("Erreur de Requête", "Une erreur s'est produite lors de la création de la requête.");
235
			Info.display("Erreur de Requête", "Une erreur s'est produite lors de la création de la requête.");
233
		}
236
		}
234
	}
237
	}
Line 235... Line 238...
235
 
238
 
236
	public void modifier(final Rafraichissable r, String utilisateurId, Structure str) {
239
	public void modifier(final Rafraichissable r, String utilisateurId, Structure str, StructureConservation conservation) {
237
		final String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl() + 
240
		final String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl() + 
238
		"CoelStructureListe/" +
241
		"CoelStructureListe/" +
239
		str.getId()
242
		str.getId()
Line 261... Line 264...
261
			"&cs_telephone =" + URL.encodeComponent(str.getTelephone()) +
264
			"&cs_telephone =" + URL.encodeComponent(str.getTelephone()) +
262
			"&cs_fax =" + URL.encodeComponent(str.getFax()) +
265
			"&cs_fax =" + URL.encodeComponent(str.getFax()) +
263
			"&cs_courriel =" + URL.encodeComponent(str.getCourriel()) +
266
			"&cs_courriel =" + URL.encodeComponent(str.getCourriel()) +
264
			"&cs_truk_url =" + URL.encodeComponent(str.getUrl()) +
267
			"&cs_truk_url =" + URL.encodeComponent(str.getUrl()) +
265
			"&cs_nbre_personne =" + URL.encodeComponent(str.getNbrePersonne()) +
268
			"&cs_nbre_personne =" + URL.encodeComponent(str.getNbrePersonne()) +
-
 
269
			"&csc_mark_formation =" + URL.encodeComponent(conservation.getFormationMark()) +
266
			"";
270
			"";
Line 267... Line 271...
267
	
271
	
268
		try {
272
		try {