prescription = new Prescription_temp(); $this->detailprescription = new Detailprescription(); $this->prestation = new Prestationactes(); } 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); $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)); } public function ajoutermedicament() { $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); $this->prescription->ajoutermedicament($idMedicament); $this->executerAction("index"); } public function ajoutermedicamenttous() { $this->prescription->ajoutermedicamenttous(); $this->executerAction("index"); } public function retirermedicament() { $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); $this->prescription->retirermedicament($idMedicament); $this->executerAction("index"); } public function retirermedicamenttous() { $this->prescription->retirermedicamenttous(); $this->executerAction("index"); } public function enregistrerpharmacie() { $this->prescription->facturerpharmacie(); } public function annulersubstitutionmedicament() { $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); $this->prescription->annulersubstitutionmedicament($idMedicament); $this->executerAction("index"); } public function enregistrersubstitutionmedicament() { $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); $prixSubstitut = $this->requete->getParametreFormulaire("prixSubstitut", "numerique"); $this->prescription->enregistrersubstitutionmedicament($idMedicament, $prixSubstitut); $this->executerAction("index"); } public function ajoutermedicamentprescription() { $codeMedicament = $this->requete->getParametreFormulaire("codeMedicament"); $this->detailprescription->ajoutermedicamentpha($codeMedicament); $this->executerAction("index"); } public function majquantitepha() { $idMedicament = $this->requete->getParametre("idMedicament"); $quantite = $this->requete->getParametreFormulaire("quantite", "numerique"); $this->detailprescription->majquantitepha($idMedicament, $quantite); $this->executerAction("index"); } public function demanderaccordpha() { $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); $this->detailprescription->demanderaccordpha($idMedicament); $this->executerAction("index"); } public function majprixpha() { $idMedicament = $this->requete->getParametre("idMedicament"); $prix = $this->requete->getParametreFormulaire("prix", "numerique"); // $this->detailprescription->majquantitepha($idMedicament, $quantite); $this->detailprescription->majprixpha($idMedicament, $prix); $this->executerAction("index"); } }