172,7 → 172,7 |
|
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url); |
|
String postDonneesEncodees = construirePost(utilisateurId, null, personnel); |
String postDonneesEncodees = construirePost(utilisateurId, personnel.getIdStructure(), personnel); |
|
try { |
rb.sendRequest(postDonneesEncodees, new RequestCallback() { |
307,14 → 307,12 |
|
private String construirePost(String utilisateurId, String structureId, StructureAPersonne personnel) { |
String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); |
if (structureId != null) { |
postDonnees += "&csap_id_structure=" + structureId; |
} |
if (!personnel.getIdPersonne().equals("")) { |
postDonnees += "&csap_id_personne=" + URL.encodeComponent(personnel.getIdPersonne()) + |
"&cp_id_personne=" + URL.encodeComponent(personnel.getIdPersonne()); |
} |
postDonnees += "&csap_id_role=" + URL.encodeComponent(personnel.getIdRole()) + |
postDonnees += "&csap_id_structure=" + URL.encodeComponent(structureId) + |
"&csap_id_role=" + URL.encodeComponent(personnel.getIdRole()) + |
"&csap_ce_truk_fonction=" + URL.encodeComponent(personnel.getFonction()) + |
"&csap_service=" + URL.encodeComponent(personnel.getService()) + |
"&csap_ce_truk_statut=" + URL.encodeComponent(personnel.getStatut()) + |