49 lines
2.1 KiB
PHP
Executable File
49 lines
2.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Detailtarifacte.php';
|
|
require_once 'Modele/Prestationactes.php';
|
|
require_once 'Modele/Feuillemaladie.php';
|
|
require_once 'Modele/Prescription.php';
|
|
|
|
class ControleurAjaxprestationsprolongation extends Controleur {
|
|
private $feuillemaladie;
|
|
private $acte;
|
|
private $prescription;
|
|
private $prestation;
|
|
|
|
public function __construct() {
|
|
$this->feuillemaladie = new Feuillemaladie();
|
|
$this->acte = new Detailtarifacte();
|
|
$this->prestation = new Prestationactes();
|
|
$this->prescription = new Prescription();
|
|
}
|
|
|
|
public function index() {
|
|
|
|
$idProlongation = $this->requete->getParametreFormulaire("idProlongation");
|
|
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
|
|
$feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie);
|
|
|
|
$nbreActeEntentePrealable = $this->prestation->getNombreActeEntentePrealable($numeroFeuilleMaladie);
|
|
|
|
$listeProlongations = $this->feuillemaladie->getListeProlongations($numeroFeuilleMaladie);
|
|
|
|
$prolongations = $this->prestation->getactesmedicauxhospitalisationprolongation($idProlongation);
|
|
$prolongations_total = $this->prestation->getactesmedicauxhospitalisationprolongation_total($idProlongation);
|
|
|
|
$prixChambreProlongation= $this->prestation->getprixchambrehospitalisationprolongation($numeroFeuilleMaladie, $codePrestataire,$idProlongation);
|
|
|
|
$noChambrePro = $this->prestation->getNumeroChambrePro($idProlongation);
|
|
$nbreActesSansPrix = $this->prestation->getNbreActesSansPrix($numeroFeuilleMaladie, $idProlongation);
|
|
|
|
|
|
$this->genererVueAjax(array('prolongations' => $prolongations, 'prolongations_total' => $prolongations_total,
|
|
'feuillemaladie' => $feuillemaladie, 'nbreActeEntentePrealable' => $nbreActeEntentePrealable, 'listeProlongations' => $listeProlongations,
|
|
'prixChambreProlongation' => $prixChambreProlongation, 'idProlongation' => $idProlongation, 'nbreActesSansPrix' => $nbreActesSansPrix,
|
|
'noChambrePro' => $noChambrePro));
|
|
}
|
|
|
|
} |