radiantassure/Controleur/ControleurExclusionstandards.php
2025-12-07 09:35:13 +00:00

66 lines
2.6 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Feuillemaladie.php';
require_once 'Modele/Adherent.php';
require_once 'Modele/Beneficiaire.php';
require_once 'Modele/Garantieadherent.php';
require_once 'Modele/Garantie.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurExclusionstandards extends Controleur {
private $menuvue;
private $feuillemaladie;
private $beneficiaire;
private $garantieadherent;
private $adherent;
private $garantie;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Exclusionstandards');
$this->feuillemaladie = new Feuillemaladie();
$this->adherent = new Adherent();
$this->beneficiaire = new Beneficiaire();
$this->garantieadherent = new Garantieadherent();
$this->garantie = new Garantie();
}
public function index() {
$idAdherent = $_SESSION['idAdherent_C'];
$d1 = $_SESSION['dUneSemaineAvant_C'];
$d2 = date('Y-m-d');
$feuillemaladies = $this->feuillemaladie->getfeuillesmaladiefamille($idAdherent, $d1, $d2);
$prestation = $this->adherent->getlisteprestations();
$numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire");
$idPolice = $_SESSION['idPolice_C'];
$idAdherent = $_SESSION['idAdherent_C'];
$idBeneficiaire = isset($_SESSION['idBeneficiaire_C']) ? (int)$_SESSION['idBeneficiaire_C'] : null;
$dateJour = date('Y-m-d');
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
$beneficiaires = $this->beneficiaire->getBeneficiairesId($idAdherent, $dateJour);
$garantieadherents = $this->garantieadherent->getGarantieAdherent($idAdherent);
if ($idBeneficiaire !== null) {
$actes = $this->garantieadherent->getBaremePlafondAdherent($idAdherent, $idBeneficiaire);
} else {
$actes = null;
}
$this->adherent->controlerplafondadherentannuel($idAdherent);
$_SESSION['controlerPlafondBeneficiaire'] = "0";
$limite_adherent = $this->garantieadherent->getLimitesAdherent($idAdherent);
$garanties = $this->garantie->getListePourActe();
$this->genererVue(array(
'adherent' => $adherent,'beneficiaires' => $beneficiaires,'garantieadherents' => $garantieadherents,'limite_adherent' => $limite_adherent,'prestation' => $prestation,'garanties' => $garanties,'numeroBeneficiaire' => $numeroBeneficiaire,
'actes' => $actes));
}
}