Initial commit for radiantrh project
This commit is contained in:
52
Modele/Seance.php
Executable file
52
Modele/Seance.php
Executable file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
require_once 'Framework/Modele.php';
|
||||
|
||||
class Seance extends Modele {
|
||||
|
||||
public function getexamen($numeroExamen)
|
||||
{
|
||||
$sql = 'call sp_p_get_prescription(?)';
|
||||
|
||||
$prescription = $this->executerRequete($sql, array($numeroExamen));
|
||||
|
||||
return $prescription->fetch();
|
||||
}
|
||||
|
||||
public function getprescription_sea($idFacture)
|
||||
{
|
||||
$sql = 'call sp_p_get_cons_sea(?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idFacture));
|
||||
|
||||
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
$_SESSION['numeroFeuilleMaladie_C'] = $ligne['numeroFeuilleMaladie'];
|
||||
|
||||
$_SESSION['numeroBonConsultation_C'] = $ligne['numeroBonConsultation'];
|
||||
$_SESSION['numeroBonOrdonnance_C'] = $ligne['numeroBonOrdonnance'];
|
||||
$_SESSION['numeroBonHospitalisation_C'] = $ligne['numeroBonHospitalisation'];
|
||||
$_SESSION['numeroBonOptique_C'] = $ligne['numeroBonOptique'];
|
||||
$_SESSION['numeroBonExamen_C'] = $ligne['numeroBonExamen'];
|
||||
$_SESSION['numeroBonKine_C'] = $ligne['numeroBonKine'];
|
||||
|
||||
$_SESSION['numeroPrescription_C'] = $ligne['numeroPrescription'];
|
||||
$_SESSION['numeroOptique_C'] = $ligne['numeroOptique'];
|
||||
$_SESSION['numeroExamen_C'] = $ligne['numeroExamen'];
|
||||
$_SESSION['numeroPrescriptionKine_C'] = $ligne['numeroPrescriptionKine'];
|
||||
|
||||
$_SESSION['idFacture_C'] = $ligne['idFacture'];
|
||||
$_SESSION['hospitalisation_C'] = $ligne['hospitalisation'];
|
||||
$_SESSION['chirurgie_C'] = $ligne['chirurgie'];
|
||||
|
||||
return $ligne;
|
||||
}
|
||||
|
||||
public function getdetailprescription_sea($idFacture)
|
||||
{
|
||||
$sql = 'call sp_r_get_detail_prestation_sea(?)';
|
||||
|
||||
$optique = $this->executerRequete($sql, array($idFacture));
|
||||
|
||||
return $optique->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user