70 lines
2.3 KiB
PHP
70 lines
2.3 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Ouinon.php';
|
|
require_once 'Modele/Periodicite.php';
|
|
require_once 'Modele/Garantiesbaremepriseencharge.php';
|
|
|
|
class ControleurAjaxconsulteractesgarantiebareme extends Controleur {
|
|
private $garantie;
|
|
private $oui_non;
|
|
private $periodicite;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->garantie = new Garantiesbaremepriseencharge();
|
|
|
|
$this->actifGarantieOuiNon = (new Ouinon())->getListe();
|
|
$this->actifGarantieLienOuiNon = (new Ouinon())->getListe();
|
|
$this->actifActeOuiNon = (new Ouinon())->getListe();
|
|
$this->actifActeLienOuiNon = (new Ouinon())->getListe();
|
|
|
|
$this->periodicite = new periodicite();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codeGarantie = $this->requete->getParametreFormulaire("codeGarantie");
|
|
|
|
$idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge");
|
|
|
|
$_SESSION['idBaremePriseEnCharge'] = $idBaremePriseEnCharge;
|
|
$_SESSION['codeGarantie'] = $codeGarantie;
|
|
|
|
$periodicite = $this->periodicite->getListe();
|
|
|
|
$periodiciteFiltre = $this->periodicite->getListeFiltrer();
|
|
|
|
$forfaitTaux = $this->garantie->getTauxForfait();
|
|
|
|
$tmBareme = $this->garantie->getTmBareme($idBaremePriseEnCharge);
|
|
|
|
$lienParente = $this->garantie->getLienParente();
|
|
|
|
$observation = $this->garantie->getObservationplafond();
|
|
$nomgarantie = $this->garantie->getNomGarantie($codeGarantie);
|
|
|
|
if($codeGarantie=="HOS"){
|
|
$actesadd = null;
|
|
}else{
|
|
$actesadd = $this->garantie->getActesGarantieBaremeAdd($idBaremePriseEnCharge,$codeGarantie);
|
|
}
|
|
|
|
|
|
$typeremboursement = $this->garantie->getTypeRemboursement();
|
|
|
|
|
|
$this->genererVueAjax(array
|
|
(
|
|
'garantie' =>$nomgarantie, 'periodicite' => $periodicite,
|
|
'observation' =>$observation, 'actesadd' => $actesadd,
|
|
'tmBareme' => $tmBareme, 'typeremboursement' =>$typeremboursement,
|
|
'lienParente' =>$lienParente, 'periodiciteFiltre' => $periodiciteFiltre,
|
|
'actifGarantieOuiNon' => $this->actifGarantieOuiNon,
|
|
'actifGarantieLienOuiNon' => $this->actifGarantieLienOuiNon,
|
|
'actifActeOuiNon' => $this->actifActeOuiNon,
|
|
'actifActeLienOuiNon' => $this->actifActeLienOuiNon
|
|
)
|
|
);
|
|
|
|
}
|
|
} |