55 lines
1.9 KiB
PHP
Executable File
55 lines
1.9 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Adherent.php';
|
|
require_once 'Modele/Beneficiaire.php';
|
|
require_once 'Modele/Garantieadherent.php';
|
|
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurFicheadherent extends Controleur {
|
|
private $adherent;
|
|
private $beneficiaire;
|
|
private $garantieadherent;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Ficheadherent");
|
|
|
|
$this->adherent = new Adherent();
|
|
$this->beneficiaire = new Beneficiaire();
|
|
$this->garantieadherent = new Garantieadherent();
|
|
|
|
$_SESSION['modeDevis'] = "0";
|
|
}
|
|
public function index() {
|
|
|
|
$idPolice = $_SESSION['idPolice_C'];
|
|
$this->adherent->getNbassure($idPolice);
|
|
|
|
$idAdherent = $this->requete->getParametre("id");
|
|
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
|
|
$beneficiaires = $this->beneficiaire->getBeneficiairesId($idAdherent);
|
|
$totalbeneficiaires = $this->beneficiaire->getTotalBeneficiairesId($idAdherent);
|
|
|
|
$garantieadherents = null;
|
|
$prestationParLienParente = $_SESSION['prestationParLienParente'];
|
|
|
|
$garantieadherents = $this->garantieadherent->getGarantieAdherent($idAdherent);
|
|
|
|
|
|
|
|
$this->adherent->controlerplafondadherentannuel($idAdherent);
|
|
$_SESSION['controlerPlafondBeneficiaire'] = "0";
|
|
|
|
$limite_adherent = $this->garantieadherent->getLimitesAdherent($idAdherent);
|
|
|
|
$this->genererVue(array('adherent' => $adherent, 'beneficiaires' => $beneficiaires, 'totalbeneficiaires' => $totalbeneficiaires,
|
|
'garantieadherents' => $garantieadherents, 'limite_adherent' => $limite_adherent));
|
|
}
|
|
|
|
public function supprimer() {
|
|
$id = $this->requete->getParametre("id");
|
|
$this->adherent->supprimer($id);
|
|
$this->rediriger("Listeadherent");
|
|
}
|
|
} |