Line 1465... |
Line 1465... |
1465 |
StructureAPersonne membreDuPersonnel = new StructureAPersonne("", StructureAPersonne.ROLE_EQUIPE, StructureAPersonne.ETAT_AJOUTE);
|
1465 |
StructureAPersonne membreDuPersonnel = new StructureAPersonne("", StructureAPersonne.ROLE_EQUIPE, StructureAPersonne.ETAT_AJOUTE);
|
1466 |
membreDuPersonnel.setIdPersonne(personneExistante.getId());
|
1466 |
membreDuPersonnel.setIdPersonne(personneExistante.getId());
|
1467 |
membreDuPersonnel.setNom(personneExistante.getNom());
|
1467 |
membreDuPersonnel.setNom(personneExistante.getNom());
|
1468 |
membreDuPersonnel.setPrenom(personneExistante.getPrenom());
|
1468 |
membreDuPersonnel.setPrenom(personneExistante.getPrenom());
|
1469 |
membreDuPersonnel.setTelephone(personneExistante.getTelephone());
|
1469 |
membreDuPersonnel.setTelephone(personneExistante.getTelephone());
|
- |
|
1470 |
GWT.log(personneExistante.selectionnerCourriel(1), null);
|
1470 |
membreDuPersonnel.setCourriel(personneExistante.getCourriel());
|
1471 |
membreDuPersonnel.setCourriel(personneExistante.selectionnerCourriel(1));
|
- |
|
1472 |
GWT.log(membreDuPersonnel.selectionnerCourriel(1), null);
|
1471 |
membreDuPersonnel.setSpecialite(personneExistante.getSpecialite());
|
1473 |
membreDuPersonnel.setSpecialite(personneExistante.afficherSpecialite());
|
Line 1472... |
Line 1474... |
1472 |
|
1474 |
|
1473 |
ajouterMembreAGrillePersonnel(membreDuPersonnel);
|
1475 |
ajouterMembreAGrillePersonnel(membreDuPersonnel);
|
1474 |
}
|
1476 |
}
|
1475 |
}
|
1477 |
}
|
Line 2264... |
Line 2266... |
2264 |
personnelGrilleMagazin.insert(personnel, 0);
|
2266 |
personnelGrilleMagazin.insert(personnel, 0);
|
Line 2265... |
Line 2267... |
2265 |
|
2267 |
|
2266 |
// Nous modifions l'enregistrement pour que le modèle soit pris en compte lors de la collecte.
|
2268 |
// Nous modifions l'enregistrement pour que le modèle soit pris en compte lors de la collecte.
|
2267 |
Record record = personnelGrilleMagazin.getRecord(personnelGrilleMagazin.getAt(0));
|
2269 |
Record record = personnelGrilleMagazin.getRecord(personnelGrilleMagazin.getAt(0));
|
- |
|
2270 |
record.beginEdit();
|
2268 |
record.beginEdit();
|
2271 |
|
2269 |
if (!personnel.getFonction().equals("")) {
|
2272 |
if (!personnel.getFonction().equals("")) {
|
2270 |
Object fonction = fonctionEditor.preProcessValue(personnel.getFonction());
|
2273 |
Object fonction = fonctionEditor.preProcessValue(personnel.getFonction());
|
2271 |
if (fonction != null && fonction instanceof Valeur) {
|
2274 |
if (fonction != null && fonction instanceof Valeur) {
|
2272 |
record.set("fonction", ((Valeur)fonction).getNom());
|
2275 |
record.set("fonction", ((Valeur)fonction).getNom());
|
2273 |
}
|
2276 |
}
|
- |
|
2277 |
}
|
2274 |
}
|
2278 |
|
2275 |
if (!personnel.getPrenom().equals("")) {
|
2279 |
if (!personnel.getPrenom().equals("")) {
|
2276 |
record.set("prenom", personnel.getPrenom());
|
2280 |
record.set("prenom", personnel.getPrenom());
|
- |
|
2281 |
}
|
2277 |
}
|
2282 |
|
2278 |
if (!personnel.getNom().equals("")) {
|
2283 |
if (!personnel.getNom().equals("")) {
|
2279 |
record.set("nom", personnel.getNom());
|
2284 |
record.set("nom", personnel.getNom());
|
- |
|
2285 |
}
|
2280 |
}
|
2286 |
|
2281 |
if (!personnel.getTelephoneFixe().equals("")) {
|
2287 |
if (!personnel.getTelephoneFixe().equals("")) {
|
2282 |
record.set("tel_fix", personnel.getTelephoneFixe());
|
2288 |
record.set("tel_fix", personnel.getTelephoneFixe());
|
- |
|
2289 |
}
|
2283 |
}
|
2290 |
|
2284 |
if (!personnel.getFax().equals("")) {
|
2291 |
if (!personnel.getFax().equals("")) {
|
2285 |
record.set("tel_fax", personnel.getFax());
|
2292 |
record.set("tel_fax", personnel.getFax());
|
- |
|
2293 |
}
|
2286 |
}
|
2294 |
|
2287 |
if (!personnel.getCourriel().equals("")) {
|
2295 |
if (!personnel.getCourriel().equals("")) {
|
2288 |
record.set("courriel", personnel.selectionnerCourriel(1));
|
2296 |
record.set("courriel", personnel.selectionnerCourriel(1));
|
- |
|
2297 |
}
|
2289 |
}
|
2298 |
|
2290 |
if (!personnel.getStatut().equals("")) {
|
2299 |
if (!personnel.getStatut().equals("")) {
|
2291 |
record.set("statut", personnel.getStatut());
|
2300 |
record.set("statut", personnel.getStatut());
|
- |
|
2301 |
}
|
2292 |
}
|
2302 |
|
2293 |
String tempsDeTravail = personnel.getBotaTravailHebdoTps();
|
2303 |
String tempsDeTravail = personnel.getBotaTravailHebdoTps();
|
- |
|
2304 |
record.set("travail", (tempsDeTravail.matches("^[0-9]+$") ? Integer.parseInt(tempsDeTravail) : 0));
|
2294 |
record.set("travail", (tempsDeTravail.matches("^[0-9]+$") ? Integer.parseInt(tempsDeTravail) : 0));
|
2305 |
|
2295 |
if (!personnel.getSpecialite().equals("")) {
|
2306 |
if (!personnel.getSpecialite().equals("")) {
|
2296 |
record.set("specialite", personnel.afficherSpecialite());
|
2307 |
record.set("specialite", personnel.afficherSpecialite());
|
- |
|
2308 |
}
|
2297 |
}
|
2309 |
|
- |
|
2310 |
record.set("contact", (personnel.getContact().equals("1") ? true : false));
|
2298 |
record.set("contact", (personnel.getContact().equals("1") ? true : false));
|
2311 |
|
2299 |
record.set("etat", personnel.get("etat"));
|
2312 |
record.set("etat", personnel.get("etat"));
|
Line 2300... |
Line 2313... |
2300 |
record.endEdit();
|
2313 |
record.endEdit();
|
2301 |
|
2314 |
|