49 lines
1.8 KiB
PHP
Executable File
49 lines
1.8 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Ententeprealable.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Beneficiaire.php';
|
|
require_once 'Modele/Garantieadherent.php';
|
|
|
|
|
|
class ControleurRefuserententeprealables extends Controleur {
|
|
private $menuvue;
|
|
private $ententeprealable;
|
|
private $garantieadherent;
|
|
private $beneficiaire;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Refuserententeprealables');
|
|
|
|
$this->ententeprealable = new Ententeprealable();
|
|
|
|
$this->beneficiaire = new Beneficiaire();
|
|
$this->garantieadherent = new Garantieadherent();
|
|
|
|
}
|
|
public function index() {
|
|
$idDemandeententeprealable = $this->requete->getParametre("id");
|
|
|
|
$ententeprealable = $this->ententeprealable->getEntenteprealableId($idDemandeententeprealable);
|
|
|
|
|
|
|
|
$garantieadherents = $this->garantieadherent->getGarantieBeneficiaire($ententeprealable['idBeneficiaire']);
|
|
|
|
|
|
$actes = $this->garantieadherent->getBaremePlafondAdherent($ententeprealable['idAdherent'], $ententeprealable['idBeneficiaire']);
|
|
|
|
|
|
$police = $this->beneficiaire->getSituationPolice($ententeprealable['idBeneficiaire']);
|
|
|
|
$college = $this->beneficiaire->getSituationCollege($ententeprealable['idBeneficiaire']);
|
|
|
|
$baseTarification = $this->beneficiaire->getBaseTarificationBeneficiaire($ententeprealable['idBeneficiaire']);
|
|
|
|
$chemin = $this->menuvue->getChemin('Refuserententeprealables');
|
|
|
|
$this->genererVue(array('ententeprealable' => $ententeprealable, 'actes' => $actes, 'garantieadherents' => $garantieadherents,
|
|
'police' => $police, 'college' => $college, 'baseTarification' => $baseTarification, 'chemin' => $chemin));
|
|
}
|
|
} |