prestation/Controleur/ControleurAjaxreponseavis.php
2025-12-05 10:42:46 +00:00

34 lines
1.2 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Feuillemaladie.php';
require_once 'Modele/Prestationactes.php';
class ControleurAjaxreponseavis extends Controleur {
private $feuillemaladie;
private $prestation;
public function __construct() {
$this->feuillemaladie = new Feuillemaladie();
$this->prestation = new Prestationactes();
}
public function index()
{
$numeroFeuilleMaladie = isset($_SESSION['p_numeroFeuilleMaladie_C']) ? $_SESSION['p_numeroFeuilleMaladie_C'] : "0";
if($numeroFeuilleMaladie == "0"){
$this->rediriger("Feuillemaladie");
}
$feuillemaladie = $this->feuillemaladie->getFeuillemaladiehospitalisation($numeroFeuilleMaladie);
$nbreActeEntentePrealable = $this->prestation->getNbreActeEntentePrealable($numeroFeuilleMaladie);
$autoriserBonHospitAvantDate = $this->feuillemaladie->getAutoriserBonHospitAvantDate();
$contestation = $this->feuillemaladie->getContestation($numeroFeuilleMaladie);
$this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'nbreActeEntentePrealable' => $nbreActeEntentePrealable,
'autoriserBonHospitAvantDate' => $autoriserBonHospitAvantDate, 'contestation' => $contestation));
}
}