Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1262 Rev 1292
Line 55... Line 55...
55
				}
55
				}
56
			}
56
			}
57
		});
57
		});
58
	}
58
	}
Line 59... Line 59...
59
 
59
 
60
	public void ajouter(String structureId, StructureAPersonne personnel) {
60
	public void ajouter(String structureId, StructureAPersonne personnel) {		
61
		String postDonneesEncodees = construirePost(structureId, personnel);
61
		String postDonneesEncodees = construirePost(structureId, personnel);
62
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
62
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
63
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
63
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
64
			@Override
64
			@Override
Line 70... Line 70...
70
					vueARafraichir.rafraichir(info);
70
					vueARafraichir.rafraichir(info);
71
				} else {
71
				} else {
72
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
72
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
73
				}
73
				}
74
			}
74
			}
75
		});
75
		});		
76
	}
76
	}
Line 77... Line 77...
77
	
77
	
78
	public void modifier(StructureAPersonne personnel) {
78
	public void modifier(StructureAPersonne personnel) {
79
		String[] parametres = {personnel.getIdStructure(), personnel.getIdPersonne(), personnel.getIdRole()};
79
		String[] parametres = {personnel.getIdStructure(), personnel.getIdPersonne(), personnel.getIdRole()};