36 lines
1.1 KiB
PHP
Executable File
36 lines
1.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Prescription.php';
|
|
require_once 'Modele/Detailprescription.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurAjaxdetailprescription extends Controleur {
|
|
private $prescription;
|
|
private $detailprescription;
|
|
|
|
public function __construct() {
|
|
$this->prescription = new Prescription();
|
|
$this->detailprescription = new Detailprescription();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$numeroPrescription = $_SESSION['numeroPrescription_C'];
|
|
|
|
$prescription = $this->prescription->getprescription($numeroPrescription);
|
|
|
|
$detailprescriptions = $this->detailprescription->getdetailprescription($numeroPrescription);
|
|
|
|
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions));
|
|
}
|
|
|
|
public function consulterremplacement()
|
|
{
|
|
$numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C'];
|
|
|
|
$medicaments_remplaces = $this->detailprescription->getmedicamentsremplaces($numeroBonOrdonnance);
|
|
|
|
$this->genererVueAjax(array('medicaments_remplaces' => $medicaments_remplaces));
|
|
}
|
|
|
|
} |