prestation/Controleur/ControleurAjaxlivraisonphasubstitues.php
2025-12-05 10:42:46 +00:00

54 lines
2.1 KiB
PHP
Executable File

<?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));
}
}