Line 19... |
Line 19... |
19 |
|
19 |
|
20 |
public void ajouter(final Rafraichissable r, String utilisateurId, final Structure str) {
|
20 |
public void ajouter(final Rafraichissable r, String utilisateurId, final Structure str) {
|
21 |
String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
|
21 |
String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
|
Line 22... |
Line 22... |
22 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url+"CoelStructureListe/");
|
22 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url+"CoelStructureListe/");
|
23 |
|
23 |
|
24 |
String postDonnees = "identifiant=" + utilisateurId +
|
24 |
String postDonnees = "cmhl_ce_modifier_par=" + utilisateurId +
|
25 |
"&ce_projet =" + URL.encodeComponent(str.getIdProjet()) +
|
25 |
"&cs_ce_projet =" + URL.encodeComponent(str.getIdProjet()) +
|
26 |
"&ce_mere =" + URL.encodeComponent(str.getIdMere()) +
|
26 |
"&cs_ce_mere =" + URL.encodeComponent(str.getIdMere()) +
|
27 |
"&guid =" + URL.encodeComponent(str.getGuid()) +
|
27 |
"&cs_guid =" + URL.encodeComponent(str.getGuid()) +
|
28 |
"&truk_identifiant_alternatif =" + URL.encodeComponent(str.getIdAlternatif()) +
|
28 |
"&cs_truk_identifiant_alternatif =" + URL.encodeComponent(str.getIdAlternatif()) +
|
29 |
"&nom=" + URL.encodeComponent(str.getNom()) +
|
29 |
"&cs_nom=" + URL.encodeComponent(str.getNom()) +
|
30 |
"&truk_nom_alternatif =" + URL.encodeComponent(str.getNomAlternatif()) +
|
30 |
"&cs_truk_nom_alternatif =" + URL.encodeComponent(str.getNomAlternatif()) +
|
31 |
"&ce_type =" + URL.encodeComponent(str.getType()) +
|
31 |
"&cs_ce_type =" + URL.encodeComponent(str.getType()) +
|
32 |
"&ce_truk_type_prive =" + URL.encodeComponent(str.getTypePrive()) +
|
32 |
"&cs_ce_truk_type_prive =" + URL.encodeComponent(str.getTypePrive()) +
|
33 |
"&ce_truk_type_public =" + URL.encodeComponent(str.getTypePublic()) +
|
33 |
"&cs_ce_truk_type_public =" + URL.encodeComponent(str.getTypePublic()) +
|
34 |
"&adresse_01 =" + URL.encodeComponent(str.getAdresse()) +
|
34 |
"&cs_adresse_01 =" + URL.encodeComponent(str.getAdresse()) +
|
35 |
"&adresse_02 =" + URL.encodeComponent(str.getAdresseComplement()) +
|
35 |
"&cs_adresse_02 =" + URL.encodeComponent(str.getAdresseComplement()) +
|
36 |
"&date_fondation =" + URL.encodeComponent(str.getDateFondation()) +
|
36 |
"&cs_date_fondation =" + URL.encodeComponent(str.getDateFondation()) +
|
37 |
"&code_postal =" + URL.encodeComponent(str.getCodePostal()) +
|
37 |
"&cs_code_postal =" + URL.encodeComponent(str.getCodePostal()) +
|
38 |
"&ville =" + URL.encodeComponent(str.getVille()) +
|
38 |
"&cs_ville =" + URL.encodeComponent(str.getVille()) +
|
39 |
"®ion =" + URL.encodeComponent(str.getRegion()) +
|
39 |
"&cs_region =" + URL.encodeComponent(str.getRegion()) +
|
40 |
"&pays =" + URL.encodeComponent(str.getPays()) +
|
40 |
"&cs_pays =" + URL.encodeComponent(str.getPays()) +
|
41 |
"&telephone =" + URL.encodeComponent(str.getTelephone()) +
|
41 |
"&cs_telephone =" + URL.encodeComponent(str.getTelephone()) +
|
42 |
"&fax =" + URL.encodeComponent(str.getFax()) +
|
42 |
"&cs_fax =" + URL.encodeComponent(str.getFax()) +
|
43 |
"&truk_url =" + URL.encodeComponent(str.getUrl()) +
|
43 |
"&cs_truk_url =" + URL.encodeComponent(str.getUrl()) +
|
Line 44... |
Line 44... |
44 |
"&nbre_personne =" + URL.encodeComponent(str.getNbrePersonne()) +
|
44 |
"&cs_nbre_personne =" + URL.encodeComponent(str.getNbrePersonne()) +
|
45 |
"";
|
45 |
"";
|