41 lines
1.4 KiB
PHP
Executable File
41 lines
1.4 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Seance_temp.php';
|
|
require_once 'Modele/Prestationactes.php';
|
|
require_once 'Modele/Detailtarifacte.php';
|
|
|
|
class ControleurAjaxfacturatioseancesea extends Controleur {
|
|
|
|
public function __construct() {
|
|
$this->prescription = new Seance_temp();
|
|
$this->prestation = new Prestationactes();
|
|
$this->acte = new Detailtarifacte();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$numeroBonKine = $_SESSION['p_numeroBonKine_C'];
|
|
|
|
$prescription = $this->prescription->getprescription_sea($numeroBonKine);
|
|
|
|
$garantieadherent_temp = $this->prestation->afficher_garantieadherent_temp();
|
|
|
|
$acte = $this->acte->getseancespossibles();
|
|
|
|
$limite_beneficiaire = $this->prestation->getLimitesBeneficiaireTemp();
|
|
|
|
$this->genererVueAjax(array('prescription' => $prescription, 'garantieadherent_temp' => $garantieadherent_temp,
|
|
'acte' => $acte, 'limite_beneficiaire' => $limite_beneficiaire));
|
|
}
|
|
|
|
public function facturerseance()
|
|
{
|
|
$user_id_substitut = $this->requete->getParametreFormulaire("user_id_substitut");
|
|
|
|
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
|
|
|
$this->prescription->facturerseance($user_id_substitut, $codeGestionBon);
|
|
}
|
|
} |