44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Seance_temp.php';
|
|
|
|
class ControleurAjaxenregistrerprescriptionseance extends Controleur {
|
|
private $seance;
|
|
|
|
public function __construct() {
|
|
$this->seance = new Seance_temp();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$this->genererVueAjax();
|
|
}
|
|
|
|
public function enregistrerprescriptionseance()
|
|
{
|
|
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
|
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
|
|
|
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
|
|
|
$this->seance->enregistrerprescriptionseance($numeroBon, $codeMedecin, $codeGestionBon);
|
|
}
|
|
|
|
|
|
public function modifierprescriptionseance()
|
|
{
|
|
$codeActePrescription = $this->requete->getParametreFormulaire("codeActePrescription");
|
|
$quantite = $this->requete->getParametreFormulaire("quantite");
|
|
|
|
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
|
$montantTm = $this->requete->getParametreFormulaire("montantTm", "numerique");
|
|
$montantArembourser = $this->requete->getParametreFormulaire("montantArembourser", "numerique");
|
|
$fraisReel = $this->requete->getParametreFormulaire("fraisReel", "numerique");
|
|
|
|
$ententePrealable = $this->requete->getParametreFormulaire("ententePrealable");
|
|
$autorisation = $this->requete->getParametreFormulaire("autorisation");
|
|
|
|
$this->seance->modifierprescriptionseance($codeActePrescription, $quantite, $prixActe, $montantTm, $montantArembourser,
|
|
$fraisReel, $ententePrealable);
|
|
}
|
|
} |