acte = new Detailtarifacte(); $this->prestation = new Prestationactes(); $this->prescription = new Prescription(); $this->garantie = new Garantiesbaremepriseencharge(); } public function index() { $codePrestataire = $_SESSION['p_codePrestataire_C']; $numeroFeuilleMaladie = isset($_SESSION['p_numeroFeuilleMaladie_C']) ? $_SESSION['p_numeroFeuilleMaladie_C'] : "0"; $idBeneficiaire = $this->requete->getParametreFormulaire("idBeneficiaire"); $optionHospitalisation = $this->requete->getParametreFormulaire("optionHospitalisation"); $dateDebut = $this->requete->getParametreDate("dateDebut"); $codeGarantie = "HOS"; $idProforma = isset($_SESSION['p_idProforma_C']) ? $_SESSION['p_idProforma_C'] : "0"; $enteteProforma = $this->prestation->getenteteproformahospitalisation($idProforma); $this->prestation->recapproformahospitalisation($idProforma); $numeroEntentePrealable = $this->prestation->getententeprealableproformahospitalisation($idProforma); $prestations = $this->prestation->getactesproformahospitalisation($idProforma); $prestations_total = $this->prestation->getactesproformahospitalisation_total($idProforma); $ligneZero = $this->prestation->proformaLigneZero($idProforma); $this->genererVueAjax(array('prestations' => $prestations, 'enteteProforma' => $enteteProforma, 'prestations_total' => $prestations_total, 'numeroEntentePrealable' => $numeroEntentePrealable, 'ligneZero' => $ligneZero)); } public function majvaleuracte() { $idPrestationactes = $this->requete->getParametre("idPrestationactes"); $valeurActe = $this->requete->getParametreFormulaire("valeurActe", "numerique"); $this->prestation->majvaleuracteproformahospitalisation($idPrestationactes, $valeurActe); //$this->executerAction("index"); } public function majquantite() { $idPrestationactes = $this->requete->getParametre("idPrestationactes"); $quantite = $this->requete->getParametreFormulaire("quantite", "numerique"); $this->prestation->majquantiteproformahospitalisation($idPrestationactes, $quantite); //$this->executerAction("index"); } public function supprimeracte() { $idPrestationactes = $this->requete->getParametre("idPrestationactes"); $this->prestation->supprimeracteproformahospitalisation($idPrestationactes); $this->executerAction("index"); } public function enregistrerentete() { $optionHospitalisation = $this->requete->getParametreFormulaire("optionHospitalisation"); $dateDebut = $this->requete->getParametreDate("dateDebut"); $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); $duree = $this->requete->getParametreFormulaire("duree"); $motif = $this->requete->getParametreFormulaire("motif"); $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); $codeAffection = $this->requete->getParametreFormulaire("codeAffection"); $codeActeChambre = $this->requete->getParametreFormulaire("codeActeChambre"); $idProforma = $this->prestation->enregistrerenteteproformahospitsanfeuille($optionHospitalisation, $dateDebut, $codeMedecin,$duree,$motif, $numeroBeneficiaire, $codeAffection, $codeActeChambre); $this->genererVueAjax(array('idProforma' => $idProforma)); } }