menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Kinecso'); $this->prescription = new Seance_temp(); $this->detailprescription = new Detailseance(); $this->prestation = new Prestationactes(); $this->beneficiaire = new Beneficiaire(); viderContexte(); $_SESSION['okId'] = "-1"; $this->finger = new Finger(); $_SESSION['codeTypeFacture_C'] = "SEACSO"; } public function index() { $garantieadherent_temp = null; $codePrestataire = $_SESSION['codePrestataire_C']; $numeroBonKine = $_SESSION['numeroBonKine_C']; $_SESSION['numeroBonSeance_C'] = "-1"; if($numeroBonKine=="-1") { $this->genererVue(); } else { $resultat = $this->beneficiaire->getBeneficiaireOrdonnanceSea($numeroBonKine); $idBeneficiaire = $resultat['idBeneficiaire']; $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); $this->prescription->initseancekine_sea(); $prescription = $this->prescription->getprescription_sea($numeroBonKine); $detailseances = $this->detailprescription->getdetailseancefeuille(); $user_id = $_SESSION['user_id_C']; $this->finger->vider_finger_temp($user_id); $facture = $prescription['facture']; $nbRestantOld = $prescription['nbRestantOld']; $numeroFeuilleMaladie = $prescription['numeroFeuilleMaladie']; $this->prestation->vider_garantieadherent_temp($numeroFeuilleMaladie, $codePrestataire); if($nbRestantOld>0) { $this->prestation->init_garantieadherent_temp_simple($numeroFeuilleMaladie, $codePrestataire); } $this->genererVue(array('prescription' => $prescription, 'detailseances' => $detailseances)); } } }