f
This commit is contained in:
parent
3c06161d60
commit
06a11ff47a
|
|
@ -115,12 +115,30 @@ class ControleurAjaximporterlisteassure extends Controleurrequete
|
||||||
// 2. Boucle de validation et insertion
|
// 2. Boucle de validation et insertion
|
||||||
for ($i = 2; $i <= $derniereLigne; $i++)
|
for ($i = 2; $i <= $derniereLigne; $i++)
|
||||||
{
|
{
|
||||||
// ... (vos extractions trim() restent identiques)
|
$categorie = trim($tableauExcel[$i]['A']);
|
||||||
$nom = trim($tableauExcel[$i]['D']);
|
$numeroAdherent = trim($tableauExcel[$i]['B']);
|
||||||
$prenoms = trim($tableauExcel[$i]['E']);
|
|
||||||
|
$noFamille = trim($tableauExcel[$i]['C']);
|
||||||
|
if ($noFamille<=" ")
|
||||||
|
{
|
||||||
|
$noFamille = "0";
|
||||||
|
}
|
||||||
|
|
||||||
|
$nom = trim($tableauExcel[$i]['D']);
|
||||||
|
$prenoms = trim($tableauExcel[$i]['E']);
|
||||||
|
|
||||||
|
$codeLienParente = trim($tableauExcel[$i]['F']);
|
||||||
|
|
||||||
|
$codeNaturePiece = trim($tableauExcel[$i]['G']);
|
||||||
|
$numeroPiece = trim($tableauExcel[$i]['H']);
|
||||||
|
$sexe = trim($tableauExcel[$i]['I']);
|
||||||
|
$codeGroupeSanguin = trim($tableauExcel[$i]['J']);
|
||||||
|
$dateNaissance = trim($tableauExcel[$i]['K']);
|
||||||
|
$telephonePortable = trim($tableauExcel[$i]['L']);
|
||||||
|
$email = trim($tableauExcel[$i]['M']);
|
||||||
|
|
||||||
$nomComplet = $nom . " " . $prenoms;
|
$nomComplet = $nom . " " . $prenoms;
|
||||||
$codeLienParente = trim($tableauExcel[$i]['F']);
|
|
||||||
$sexe = trim($tableauExcel[$i]['I']);
|
|
||||||
|
|
||||||
// Validation Catégorie
|
// Validation Catégorie
|
||||||
if ( (trim($tableauExcel[$i]['A']) <= " ") && ($codeLienParente == "A")) {
|
if ( (trim($tableauExcel[$i]['A']) <= " ") && ($codeLienParente == "A")) {
|
||||||
|
|
@ -138,7 +156,9 @@ class ControleurAjaximporterlisteassure extends Controleurrequete
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insertion en base temporaire
|
// Insertion en base temporaire
|
||||||
$this->beneficiaire->insererLigneModeleAssure($idAvenant, ...$params);
|
$this->beneficiaire->insererLigneModeleAssure($idAvenant, $categorie, $numeroAdherent,
|
||||||
|
$noFamille, $nom, $prenoms, $codeLienParente, $codeNaturePiece, $numeroPiece, $sexe,
|
||||||
|
$codeGroupeSanguin, $dateNaissance, $telephonePortable, $email);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->beneficiaire->gererIncorporationSurFamExistante();
|
$this->beneficiaire->gererIncorporationSurFamExistante();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user