Initial commit for radiantrh project
This commit is contained in:
95
Modele/Optique.php
Executable file
95
Modele/Optique.php
Executable file
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
require_once 'Framework/Modele.php';
|
||||
|
||||
class Optique extends Modele {
|
||||
|
||||
public function getoptique($numeroOptique)
|
||||
{
|
||||
$sql = 'call sp_p_get_optique(?)';
|
||||
|
||||
$optique = $this->executerRequete($sql, array($numeroOptique));
|
||||
|
||||
return $optique->fetch();
|
||||
}
|
||||
|
||||
public function getoptique_opt($numeroBonOptique, $codePrestataireLivraison)
|
||||
{
|
||||
$sql = 'call sp_p_get_cons_opt(?, ?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($numeroBonOptique, $codePrestataireLivraison));
|
||||
|
||||
$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 get_facture_optique($idFacture)
|
||||
{
|
||||
$sql = 'call sp_p_get_facture_opt(?)';
|
||||
|
||||
$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 getdetailoptique_opt($numeroBonOptique, $codePrestataireLivraison)
|
||||
{
|
||||
$sql = 'call sp_r_get_detail_optique_opt(?, ?)';
|
||||
|
||||
$optique = $this->executerRequete($sql, array($numeroBonOptique, $codePrestataireLivraison));
|
||||
|
||||
return $optique->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getdetail_facture_optique($idFacture)
|
||||
{
|
||||
$sql = 'call sp_p_get_detail_facture_opt(?)';
|
||||
|
||||
$optique = $this->executerRequete($sql, array($idFacture));
|
||||
|
||||
return $optique->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getContexteAjaxOptique($numeroOptique)
|
||||
{
|
||||
$_SESSION['numeroOptique_C'] = $numeroOptique;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user