63 lines
1.7 KiB
PHP
63 lines
1.7 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Facture.php';
|
|
|
|
class ControleurAjaxfactureconsgc extends Controleur {
|
|
private $facture;
|
|
|
|
public function __construct() {
|
|
$this->facture = new Facture();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
|
|
|
$_SESSION['idFacture_C'] = $idFacture;
|
|
|
|
$facture = $this->facture->consulterfacturefacture($idFacture) ;
|
|
|
|
$this->genererVueAjax(array('facture' => $facture));
|
|
}
|
|
|
|
public function feuillemaladie()
|
|
{
|
|
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
|
|
|
$feuillemaladie = $this->facture->consulterfacturefeuillemaladie($idFacture) ;
|
|
|
|
$diagnostics = $this->facture->consulterfacturediagnostics($idFacture);
|
|
|
|
$this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'diagnostics' => $diagnostics));
|
|
}
|
|
|
|
public function prestationactes()
|
|
{
|
|
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
|
|
|
$prestations = $this->facture->consulterfactureprestationactes($idFacture) ;
|
|
|
|
$this->genererVueAjax(array('prestations' => $prestations));
|
|
}
|
|
|
|
public function medicaments()
|
|
{
|
|
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
|
|
|
$medicaments = $this->facture->consulterfacturemedicaments($idFacture) ;
|
|
|
|
$this->genererVueAjax(array('medicaments' => $medicaments));
|
|
}
|
|
|
|
public function geds()
|
|
{
|
|
unset($_FILES['fichier_upload']);
|
|
|
|
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
|
|
|
$geds = $this->facture->getgedfacture($idFacture);
|
|
|
|
$this->genererVueAjax(array('geds' => $geds));
|
|
}
|
|
|
|
} |