prestation/Controleur/ControleurAjaxstatutgarantie.php
2025-12-01 18:54:33 +00:00

28 lines
1014 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Detailtarifacte.php';
require_once 'Modele/Garantiesbaremepriseencharge.php';
class ControleurAjaxstatutgarantie extends Controleur {
private $garantie;
public function __construct() {
$this->acte = new Detailtarifacte();
$this->garantie = new Garantiesbaremepriseencharge();
}
public function index() {
$codeGarantie = $this->requete->getParametreFormulaire("codeGarantie");
$numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie");
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
$statutGarantie = $this->garantie->getstatutgarantiefeuillemaladie($idBeneficiaire, $codeGarantie, $numeroFeuilleMaladie);
//var_dump($_SESSION['p_numeroFeuilleMaladie_C']);
$motif = $this->garantie->getlibellemotifdepassement($statutGarantie);
$this->genererVueAjax(array('statutGarantie' => $statutGarantie, 'motif' => $motif));
}
}