acte = new Detailtarifacte(); $this->prestation = new Prestationactes(); } public function index() { $numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C']; $codePrestataire = $_SESSION['p_codePrestataire_C']; $avisHospit = $this->prestation->getAvisHospitalisation($numeroFeuilleMaladie); $prolongHospit = $this->prestation->getProlongationHospitalisation(); $this->acte->getTicketModerateurBareme($avisHospit['codeTypeHospitalisation']); // $tm = ($_SESSION['p_tm_TP']>"0") ? $_SESSION['p_tm_TP'] : $_SESSION['p_tm_C']; if (is_array($prolongHospit) && count($prolongHospit) > "0"){ //$duree = ($prolongHospit['dureeCorrigeeProlongation'] > "0") ? $prolongHospit['dureeCorrigeeProlongation'] : $prolongHospit['dureeProlongation']; if(is_array($prolongHospit) && $prolongHospit['dureeCorrigeeProlongation'] > "0") { $duree = $prolongHospit['dureeCorrigeeProlongation']; }else{ if(is_array($prolongHospit)) { $duree = $prolongHospit['dureeProlongation']; }else{ $duree ="0"; } } }else{ if(is_array($avisHospit) && $avisHospit['dureeCorrigee'] > "0") { $duree = $avisHospit['dureeCorrigee']; }else{ if(is_array($avisHospit)) { $duree = $avisHospit['duree']; }else{ $duree ="0"; } } } if($tm > "100"){ $tm = $tm * $duree; } //$actes = $this->acte->geatactesexamensselection($codeFamilleActe); $prestations = $this->prestation->getactesmedicauxfeuilleproforma($numeroFeuilleMaladie, $codePrestataire); //var_dump($prestations); $prestations_total = $this->prestation->getactesmedicauxfeuilleproforma_total($numeroFeuilleMaladie, $codePrestataire); $this->genererVueAjax(array(/*'actes' => $actes, */'prestations' => $prestations, 'prestations_total' => $prestations_total, 'tm' => $tm, 'prolongHospit' => $prolongHospit)); } public function majquantite() { $idProforma = $this->requete->getParametre("idProforma"); $quantite = $this->requete->getParametreFormulaire("quantite", "numerique"); $this->prestation->majquantiteproforma($idProforma, $quantite); $this->executerAction("index"); } //17-10-2022 public function majprixacte() { $idProforma = $this->requete->getParametre("idProforma"); $prix = $this->requete->getParametreFormulaire("prix", "numerique"); $this->prestation->majprixacteproforma($idProforma, $prix); $this->executerAction("index"); } }