42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Ouinon.php';
|
|
require_once 'Modele/Periodicite.php';
|
|
require_once 'Modele/Garantiesbaremepriseencharge.php';
|
|
|
|
class ControleurAjaxcorpsactebareme extends Controleur {
|
|
private $garantie;
|
|
private $ouinon;
|
|
private $periodicite;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->garantie = new Garantiesbaremepriseencharge();
|
|
$this->ouinonimposerplafond = (new Ouinon())->getListe();
|
|
$this->periodicite = new periodicite();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$periodicite = $this->periodicite->getListe();
|
|
$forfaitTaux = $this->garantie->getTauxForfait();
|
|
$observation = $this->garantie->getObservationplafond();
|
|
|
|
//$_SESSION['choixForfait'] = "forfait";
|
|
|
|
$idBaremePriseEnCharge = $_SESSION['idBaremePriseEnCharge'];
|
|
$codeGarantie = $_SESSION['codeGarantie'];
|
|
|
|
//$actes = $this->garantie->getActesGarantieBareme($idBaremePriseEnCharge,$codeGarantie);
|
|
|
|
$actes = $this->garantie->getActe();
|
|
//getActe()
|
|
|
|
$this->genererVueAjax(array('forfaitTaux' => $forfaitTaux,'actes' => $actes,
|
|
'periodicite' => $periodicite,'observation' => $observation));
|
|
}
|
|
|
|
|
|
}
|
|
|
|
?>
|