45 lines
1.3 KiB
PHP
Executable File
45 lines
1.3 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Prescription.php';
|
|
|
|
|
|
class ControleurAjaxenregistrerprescription extends Controleur {
|
|
private $prescription;
|
|
private $feuille;
|
|
|
|
public function __construct() {
|
|
$this->prescription = new Prescription();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$this->genererVueAjax();
|
|
}
|
|
|
|
public function enregistrerprescription()
|
|
{
|
|
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
|
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
|
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
|
|
|
$this->prescription->enregistrerprescription($numeroBon, $codeMedecin, $codeGestionBon);
|
|
|
|
// $this->executerAction("index");
|
|
}
|
|
|
|
public function envoieprescription()
|
|
{
|
|
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
|
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
|
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
|
|
|
|
|
$this->prescription->envoieprescription($numeroBon, $codeMedecin, $codeGestionBon);
|
|
}
|
|
|
|
public function noprescription()
|
|
{
|
|
$this->prescription->noprescription();
|
|
}
|
|
|
|
} |