50 lines
1.8 KiB
PHP
50 lines
1.8 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Feuillemaladie.php';
|
|
require_once 'Modele/Prestationactes.php';
|
|
require_once 'Modele/Detailtarifacte.php';
|
|
require_once 'Modele/Bonpec.php';
|
|
|
|
class ControleurChambre extends Controleur {
|
|
private $feuillemaladie;
|
|
private $prestation;
|
|
private $acte;
|
|
private $bonpec;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Chambre');
|
|
|
|
$this->feuillemaladie = new Feuillemaladie();
|
|
$this->prestation = new Prestationactes();
|
|
$this->acte = new Detailtarifacte();
|
|
$this->bonpec = new Bonpec();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
|
|
$codeTypeBon = "HOSP";
|
|
|
|
$nbBonsOrd = $this->bonpec->getNbBonPrestataireDisponible($codePrestataire, $codeTypeBon);
|
|
// $codeGestionBon = $this->bonpec->getCodeGestionBon($codeTypeBon);
|
|
$codeGestionBon = $this->bonpec->getCodeGestionBonPrestataire();
|
|
$typeGestionbon = $this->bonpec->getGestionBon($codeGestionBon);
|
|
|
|
$feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie);
|
|
|
|
$chambres = $this->prestation->getchambresfeuille($numeroFeuilleMaladie);
|
|
|
|
$totalchambres = $this->prestation->gettotalchambresfeuille($numeroFeuilleMaladie);
|
|
|
|
$acte = $this->acte->getchambespossibles();
|
|
|
|
|
|
$this->genererVue(array('feuillemaladie' => $feuillemaladie, 'chambres' => $chambres,
|
|
'totalchambres' => $totalchambres, 'acte' => $acte, 'nbBonsOrd' => $nbBonsOrd,
|
|
'codeGestionBon' => $codeGestionBon, 'typeGestionbon' => $typeGestionbon));
|
|
}
|
|
} |