| Line 87... |
Line 87... |
| 87 |
});
|
87 |
});
|
| 88 |
}
|
88 |
}
|
| Line 89... |
Line 89... |
| 89 |
|
89 |
|
| 90 |
public void modifier(String structureId, Structure str, StructureConservation conservation, StructureValorisation valorisation) {
|
90 |
public void modifier(String structureId, Structure str, StructureConservation conservation, StructureValorisation valorisation) {
|
| 91 |
String postDonneesEncodees = construirePost(structureId, str, conservation, valorisation);
|
- |
|
| 92 |
|
91 |
String postDonneesEncodees = construirePost(structureId, str, conservation, valorisation);
|
| 93 |
String[] parametres = {structureId};
|
92 |
String[] parametres = {structureId};
|
| 94 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
|
93 |
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
|
| 95 |
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
|
94 |
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
|
| 96 |
@Override
|
95 |
@Override
|
| Line 144... |
Line 143... |
| 144 |
"&cs_adresse_01=" + URL.encodeComponent(str.getAdresse()) +
|
143 |
"&cs_adresse_01=" + URL.encodeComponent(str.getAdresse()) +
|
| 145 |
"&cs_adresse_02=" + URL.encodeComponent(str.getAdresseComplement()) +
|
144 |
"&cs_adresse_02=" + URL.encodeComponent(str.getAdresseComplement()) +
|
| 146 |
"&cs_date_fondation=" + URL.encodeComponent(str.getDateFondationFormatMysql()) +
|
145 |
"&cs_date_fondation=" + URL.encodeComponent(str.getDateFondationFormatMysql()) +
|
| 147 |
"&cs_code_postal=" + URL.encodeComponent(str.getCodePostal()) +
|
146 |
"&cs_code_postal=" + URL.encodeComponent(str.getCodePostal()) +
|
| 148 |
"&cs_ville=" + URL.encodeComponent(str.getVille()) +
|
147 |
"&cs_ville=" + URL.encodeComponent(str.getVille()) +
|
| 149 |
"&cs_ce_truk_region=" + URL.encodeComponent(str.getRegion()) +
|
148 |
"&cs_ce_truk_region=" + URL.encodeComponent(str.get("ce_truk_region").toString()) +
|
| 150 |
"&cs_ce_truk_pays=" + URL.encodeComponent(str.getPays()) +
|
149 |
"&cs_ce_truk_pays=" + URL.encodeComponent(str.getPays()) +
|
| 151 |
"&cs_truk_telephone=" + URL.encodeComponent(str.getTelephone()) +
|
150 |
"&cs_truk_telephone=" + URL.encodeComponent(str.getTelephone()) +
|
| 152 |
"&cs_truk_url=" + URL.encodeComponent(str.getUrl()) +
|
151 |
"&cs_truk_url=" + URL.encodeComponent(str.getUrl()) +
|
| 153 |
"&cs_nbre_personne=" + URL.encodeComponent(Integer.toString(str.getNbrePersonne()));
|
152 |
"&cs_nbre_personne=" + URL.encodeComponent(Integer.toString(str.getNbrePersonne()));
|
| 154 |
}
|
153 |
}
|