54 lines
2.1 KiB
PHP
54 lines
2.1 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Detailprescription.php';
|
|
require_once 'Modele/Prescription_temp.php';
|
|
require_once 'Modele/Prestationactes.php';
|
|
require_once 'Modele/Demandesubstitution.php';
|
|
|
|
class ControleurAjaxlivraisonphasubstitues extends Controleur {
|
|
private $prescription;
|
|
private $detailprescription;
|
|
private $prestation;
|
|
private $dmd;
|
|
|
|
public function __construct() {
|
|
$this->prescription = new Prescription_temp();
|
|
$this->detailprescription = new Detailprescription();
|
|
$this->prestation = new Prestationactes();
|
|
$this->dmd = new Demandesubstitution();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$numeroBonOrdonnance = $_SESSION['p_numeroBonOrdonnance_C'];
|
|
$numeroPrescription = $_SESSION['p_numeroPrescription_C'];
|
|
|
|
$prescription = $this->prescription->getprescription_pha($numeroBonOrdonnance);
|
|
|
|
$detailprescriptions = $this->detailprescription->getdetailprescription_pha($numeroBonOrdonnance);
|
|
|
|
$marges = $this->detailprescription->getMarges();
|
|
|
|
$detailnonlivres = $this->prescription->getdetailnonlivre();
|
|
|
|
// $detaillivres = $this->prescription->getdetaillivre();
|
|
$detaillivres = $this->prescription->getdetaillivrepha();
|
|
|
|
// $factures = $this->prescription->getfactures_ordonnance($numeroBonOrdonnance);
|
|
|
|
$garantieadherent_temp = $this->prestation->getgarantieadherent_temp($numeroFeuilleMaladie, $codePrestataire);
|
|
|
|
/*
|
|
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'detailnonlivres' => $detailnonlivres,
|
|
'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp, 'factures' => $factures));
|
|
*/
|
|
|
|
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'detailnonlivres' => $detailnonlivres,
|
|
'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp, 'marges' => $marges));
|
|
}
|
|
|
|
}
|
|
|