Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 609 Rev 611
Line 170... Line 170...
170
		personnel.getIdRole()
170
		personnel.getIdRole()
171
		;
171
		;
Line 172... Line 172...
172
	
172
	
Line 173... Line 173...
173
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url);
173
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url);
Line 174... Line 174...
174
		
174
		
175
		String postDonneesEncodees = construirePost(utilisateurId, null, personnel);
175
		String postDonneesEncodees = construirePost(utilisateurId, personnel.getIdStructure(), personnel);
Line 176... Line 176...
176
	
176
	
Line 305... Line 305...
305
		
305
		
Line 306... Line 306...
306
	}
306
	}
307
	
307
	
308
	private String construirePost(String utilisateurId, String structureId, StructureAPersonne personnel) {
-
 
309
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId);
-
 
310
		if (structureId != null) {
-
 
311
			postDonnees += "&csap_id_structure=" + structureId;
308
	private String construirePost(String utilisateurId, String structureId, StructureAPersonne personnel) {
312
		}
309
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId);
313
		if (!personnel.getIdPersonne().equals("")) {
310
		if (!personnel.getIdPersonne().equals("")) {
314
			postDonnees += "&csap_id_personne=" + URL.encodeComponent(personnel.getIdPersonne()) +
311
			postDonnees += "&csap_id_personne=" + URL.encodeComponent(personnel.getIdPersonne()) +
-
 
312
				"&cp_id_personne=" + URL.encodeComponent(personnel.getIdPersonne());
315
				"&cp_id_personne=" + URL.encodeComponent(personnel.getIdPersonne());
313
		}
316
		}
314
		postDonnees += "&csap_id_structure=" + URL.encodeComponent(structureId) +
317
		postDonnees += "&csap_id_role=" + URL.encodeComponent(personnel.getIdRole()) +	
315
			"&csap_id_role=" + URL.encodeComponent(personnel.getIdRole()) +	
318
			"&csap_ce_truk_fonction=" + URL.encodeComponent(personnel.getFonction()) +
316
			"&csap_ce_truk_fonction=" + URL.encodeComponent(personnel.getFonction()) +
319
			"&csap_service=" + URL.encodeComponent(personnel.getService()) +
317
			"&csap_service=" + URL.encodeComponent(personnel.getService()) +
320
			"&csap_ce_truk_statut=" + URL.encodeComponent(personnel.getStatut()) +
318
			"&csap_ce_truk_statut=" + URL.encodeComponent(personnel.getStatut()) +