Import initial du projet Production
This commit is contained in:
49
Controleur/ControleurRefuserententeprealables.php
Normal file
49
Controleur/ControleurRefuserententeprealables.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user