menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Seances'); $this->prescription = new Seance_temp(); $this->detailprescription = new Detailseance(); $this->bonpec = new Bonpec(); $this->acte = new Detailtarifacte(); //$this->beneficiaire = new Beneficiaire(); } public function index() { $codePrestataire = $_SESSION['p_codePrestataire_C']; $codeTypeBon = "KINE"; $nbBonsCons = $this->bonpec->getNbBonPrestataireDisponible($codePrestataire, $codeTypeBon); $codeGestionBon = $this->bonpec->getCodeGestionBon($codeTypeBon); $typeGestionbon = $this->bonpec->getGestionBon($codeGestionBon); $numeroPrescriptionKine = $_SESSION['p_numeroPrescriptionKine_C']; $compteSeance = $this->prescription->getNombreSeance(); $compteSeancePrestataire = $this->prescription->getNombreSeancePrestataire(); $this->prescription->initseancekine_cso($codeGestionBon); $prescription = $this->prescription->getseancetemp(); //highlight_string(""); $_SESSION['p_numeroBonSeance_C'] = $prescription['numeroBonSeance']; $_SESSION['proforma_envoye'] = $prescription['proformaEnvoye']; $detailseances = $this->detailprescription->getdetailseancefeuille(); //highlight_string(""); $totalseances = $this->detailprescription->gettotalseance(); $numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C']; $codeActe = $prescription['codeActePrescription']; if($codeActe != "") { $codeGarantie = $this->acte->getGarantieActe($codeActe); }else{ $codeGarantie = "AUX"; $codeActe = ""; } $datePrestation = $this->acte->getDatePrestation($numeroFeuilleMaladie); $_SESSION['datePrestation'] = $datePrestation; $tm = $this->acte->ticketModerateurDefinitif($codeGarantie, $codeActe, $datePrestation) ; $tauxCouverture = (100-$tm)."%"; $this->genererVue(array('prescription' => $prescription, 'detailseances' => $detailseances, 'nbBonsCons' => $nbBonsCons, 'codeGestionBon' => $codeGestionBon, 'typeGestionbon' => $typeGestionbon, 'totalseances' => $totalseances, 'tauxCouverture' => $tauxCouverture, 'compteSeance' => $compteSeance, 'compteSeancePrestataire' => $compteSeancePrestataire)); } }