Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1210 Rev 1262
Line 56... Line 56...
56
			}
56
			}
57
		});
57
		});
58
	}
58
	}
Line 59... Line 59...
59
 
59
 
60
	public void ajouter(String structureId, StructureAPersonne personnel) {
-
 
61
		
-
 
62
Debug.log("<<<< BEGIN StructureAPersonneAsyncDao.ajouter()");		
-
 
63
 
-
 
64
Debug.log("<<<< StructureAPersonneAsyncDao.ajouter(), personnel="+personnel.toString());	
-
 
65
		
60
	public void ajouter(String structureId, StructureAPersonne personnel) {
66
		String postDonneesEncodees = construirePost(structureId, personnel);
61
		String postDonneesEncodees = construirePost(structureId, personnel);
67
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
62
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
68
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
63
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
69
			@Override
64
			@Override
Line 76... Line 71...
76
				} else {
71
				} else {
77
					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);
78
				}
73
				}
79
			}
74
			}
80
		});
75
		});
81
		
-
 
82
Debug.log("<<<< END StructureAPersonneAsyncDao.supprimer()");
-
 
83
		
-
 
84
	}
76
	}
Line 85... Line 77...
85
	
77
	
86
	public void modifier(StructureAPersonne personnel) {
78
	public void modifier(StructureAPersonne personnel) {
87
		String[] parametres = {personnel.getIdStructure(), personnel.getIdPersonne(), personnel.getIdRole()};
79
		String[] parametres = {personnel.getIdStructure(), personnel.getIdPersonne(), personnel.getIdRole()};