Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 748 Rev 751
Line 60... Line 60...
60
				}
60
				}
61
			}
61
			}
62
		});	
62
		});	
63
	}
63
	}
Line 64... Line -...
64
	
-
 
65
	public void supprimer(String structureId) {
-
 
66
		String[] parametres = {utilisateurId, structureId};
-
 
67
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, "POST");
-
 
68
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
-
 
69
			@Override
-
 
70
			public void surReponse(JSONValue responseValue) {
-
 
71
				if (responseValue.isString() != null) {
-
 
72
					Information info = new Information("suppression_personne", responseValue.isString().stringValue());
-
 
73
					vueARafraichir.rafraichir(info);
-
 
74
				} else {
-
 
75
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
-
 
76
				}
-
 
77
			}
-
 
78
		});
-
 
79
	}
-
 
80
	
64
	
81
	public void ajouter(Personne personne) {
65
	public void ajouter(Personne personne) {
82
		String postDonneesEncodees = personne.obtenirChainePOST();
66
		String postDonneesEncodees = personne.obtenirChainePOST();
Line 83... Line 67...
83
		postDonneesEncodees += "&cmhl_ce_modifier_par=" + utilisateurId;
67
		postDonneesEncodees += "&cmhl_ce_modifier_par=" + utilisateurId;
Line 111... Line 95...
111
					vueARafraichir.rafraichir(info);
95
					vueARafraichir.rafraichir(info);
112
				} else {
96
				} else {
113
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
97
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
114
				}
98
				}
115
			}
99
			}
-
 
100
		});
-
 
101
	}
-
 
102
 
-
 
103
	public void supprimer(String structureId) {
-
 
104
		String[] parametres = {utilisateurId, structureId};
-
 
105
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres, "POST");
-
 
106
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
-
 
107
			@Override
-
 
108
			public void surReponse(JSONValue responseValue) {
-
 
109
				if (responseValue.isString() != null) {
-
 
110
					Information info = new Information("suppression_personne", responseValue.isString().stringValue());
-
 
111
					vueARafraichir.rafraichir(info);
-
 
112
				} else {
-
 
113
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
-
 
114
				}
-
 
115
			}
116
		});
116
		});
117
	}
117
	}
Line 118... Line 118...
118
	
118