34 lines
939 B
PHP
Executable File
34 lines
939 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Modele.php';
|
|
|
|
class Detailprescription extends Modele {
|
|
|
|
public function getdetailprescription($numeroPrescription)
|
|
{
|
|
$sql = 'call sp_r_get_detail_prescription(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($numeroPrescription));
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function getdetailprescription_pha($numeroBonOrdonnance)
|
|
{
|
|
$sql = 'call sp_p_get_detail_prescription_pha(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($numeroBonOrdonnance));
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function getmedicamentsremplaces($numeroBonOrdonnance)
|
|
{
|
|
$numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C'];
|
|
|
|
$sql = 'call sp_p_get_medicaments_remplaces(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($numeroBonOrdonnance));
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
} |