This commit is contained in:
KONE SOREL 2026-04-30 14:39:08 +00:00
parent ca025fb67c
commit 273a3a1959
2 changed files with 86 additions and 0 deletions

View File

@ -41,6 +41,8 @@ class ControleurFichebeneficiaire extends Controleur
$this->police->getContextePoliceId($idPolice);
$this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire);
$this->beneficiaire->getContexteBeneficiaireIdPrest($idBeneficiaire);
$idAdherent = $_SESSION['idAdherent_C'];
$garantieadherents = $this->garantieadherent->getGarantieBeneficiaire($idBeneficiaire);

View File

@ -1669,4 +1669,88 @@ class Beneficiaire extends Modele {
return $ligne['nombreGed'];
}
public function getContexteBeneficiaireIdPrest($idBeneficiaire) {
$sql = 'call sp_r_get_beneficiaire_id_prest(?);';
$resultat = $this->executerRequete($sql, array($idBeneficiaire));
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['idBeneficiaire_C'] = $context['idBeneficiaire'];
$_SESSION['idBeneficiaire_sav'] = $_SESSION['idBeneficiaire_C'];
$_SESSION['user_id_C'] = $context['user_id'];
$_SESSION['finger_id_C'] = $context['finger_id'];
$_SESSION['idSubstitut_C'] = $context['idSubstitut'];
$_SESSION['substitutnonassure_C'] = $context['substitutnonassure'];
$_SESSION['substitutenVigueur_C'] = $context['substitutenVigueur'];
$_SESSION['idClient_C'] = $context['idClient'];
$_SESSION['numeroClient_C'] = $context['numeroClient'];
$_SESSION['nomClient_C'] = $context['nomClient'];
$_SESSION['adresseGeoClient_C'] = $context['adresseGeoClient'];
$_SESSION['boitepostaleClient_C'] = $context['boitepostaleClient'];
$_SESSION['telephoneBureauClient_C'] = $context['telephoneBureauClient'];
$_SESSION['telephonePortableClient_C'] = $context['telephonePortableClient'];
$_SESSION['faxClient_C'] = $context['faxClient'];
$_SESSION['emailClient_C'] = $context['emailClient'];
$_SESSION['idPolice_C'] = $context['idPolice'];
$_SESSION['numeroPolice_C'] = $context['numeroPolice'];
$_SESSION['dateEffetPolice_C'] = $context['dateEffetPolice'];
$_SESSION['dateFinPolice_C'] = $context['dateFinPolice'];
$_SESSION['dateEcheancePolice_C'] = $context['dateEcheancePolice'];
$_SESSION['codeEtatPolice_C'] = $context['codeEtatPolice'];
$_SESSION['idCollege_C'] = $context['idCollege'];
$_SESSION['codeProduit_C'] = $context['codeProduit'];
$_SESSION['idAdherent_C'] = $context['idAdherent'];
$_SESSION['numeroAdherent_C'] = $context['numeroAdherent'];
$_SESSION['numeroBeneficiaire_C'] = $context['numeroBeneficiaire'];
$_SESSION['nomBeneficiaire_C'] = $context['nomBeneficiaire'];
$_SESSION['prenomsBeneficiaire_C'] = $context['prenomsBeneficiaire'];
$_SESSION['codeLienParente_C'] = $context['codeLienParente'];
$_SESSION['numeroPiece_C'] = $context['numeroPiece'];
$_SESSION['sexe_C'] = $context['sexe'];
$_SESSION['codeGroupeSanguin_C'] = $context['codeGroupeSanguin'];
$_SESSION['dateNaissance_C'] = $context['dateNaissance'];
$_SESSION['telephonePortableBeneficiaire_C'] = $context['telephonePortableBeneficiaire'];
$_SESSION['dateEntreeBeneficiaire_C'] = $context['dateEntreeBeneficiaire'];
$_SESSION['dateSortieBeneficiaire_C'] = $context['dateSortieBeneficiaire'];
$_SESSION['codeMotifSortie_C'] = $context['codeMotifSortie'];
$_SESSION['codeEtatBeneficiaire_C'] = $context['codeEtatBeneficiaire'];
$_SESSION['lienPhoto_C'] = $context['lienPhoto'];
$_SESSION['dateEffetBeneficiaire_C'] = $context['dateEffetBeneficiaire'];
$_SESSION['enVigueur_C'] = $context['enVigueur'];
$_SESSION['nomAdherent_C'] = $context['nomAdherent'];
$_SESSION['prenomsAdherent_C'] = $context['prenomsAdherent'];
$_SESSION['adresseGeoAdherent_C'] = $context['adresseGeoAdherent'];
$_SESSION['adressePostaleAdherent_C'] = $context['adressePostaleAdherent'];
$_SESSION['paysAdherent_C'] = $context['paysAdherent'];
$_SESSION['telephonePortableAdherent_C'] = $context['telephonePortableAdherent'];
$_SESSION['telephonFixeAdherent_C'] = $context['telephonFixeAdherent'];
$_SESSION['emailAdherent_C'] = $context['emailAdherent'];
$_SESSION['produit_C'] = $context['produit'];
$_SESSION['naturepiece_C'] = $context['naturepiece'];
$_SESSION['lienparente_C'] = $context['lienparente'];
$_SESSION['motifsortie_C'] = $context['motifsortie'];
$_SESSION['etatbeneficiaire_C'] = $context['etatbeneficiaire'];
$_SESSION['libelleCollege_C'] = $context['libelleCollege'];
$_SESSION['ageBeneficiaire_C'] = $context['ageBeneficiaire'];
$_SESSION['college_couvert_C'] = $context['college_couvert'];
$_SESSION['derogation_en_cours_C'] = $context['derogation_en_cours'];
$_SESSION['derogation_finger_en_cours_C'] = $context['derogation_finger_en_cours'];
$_SESSION['tm_C'] = $context['tm'];
$_SESSION['numeroFeuilleMaladie_C'] = "0";
$_SESSION['numeroPrescription_C'] = "0";
$_SESSION['beneficiaire_C'] = $context['beneficiaire'];
$_SESSION['adherent_C'] = $context['adherent'];
$_SESSION['decede_C'] = $context['decede'];
$_SESSION['dateDeces_C'] = $context['dateDeces'];
$_SESSION['fraisFuneraireDemande_C'] = $context['fraisFuneraireDemande'];
$_SESSION['fraisFunerairePaye_C'] = $context['fraisFunerairePaye'];
}
}