From eaea80844e48e84caff5a394ccfc557d0d2bbc46 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Wed, 22 Jul 2026 06:05:42 +0000 Subject: [PATCH] a --- .../ControleurAjaxententeprealablesproformahospi.php | 2 -- ...ntroleurAjaxtraitementproformahospitalisation.php | 7 ------- Js/fonctions.js | 12 ++---------- Modele/Ententeprealable.php | 4 ---- 4 files changed, 2 insertions(+), 23 deletions(-) diff --git a/Controleur/ControleurAjaxententeprealablesproformahospi.php b/Controleur/ControleurAjaxententeprealablesproformahospi.php index e5c2748a..5d93c082 100755 --- a/Controleur/ControleurAjaxententeprealablesproformahospi.php +++ b/Controleur/ControleurAjaxententeprealablesproformahospi.php @@ -11,13 +11,11 @@ class ControleurAjaxententeprealablesproformahospi extends Controleur { public function index() { - //$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); $demandeTraite = $this->requete->getParametreFormulaire("demandeTraite"); $debut = $this->requete->getParametreDate("debut"); $fin = $this->requete->getParametreDate("fin"); - //$ententeprealables = $this->ententeprealable->getEnteteEntenteprealablesProformaHospit($codePrestataire, $demandeTraite, $debut, $fin); $enteteententeprealables = $this->ententeprealable->getEnteteEntenteprealablesProformaHospit($demandeTraite, $debut, $fin); $this->genererVueAjax(array('enteteententeprealables' => $enteteententeprealables)); diff --git a/Controleur/ControleurAjaxtraitementproformahospitalisation.php b/Controleur/ControleurAjaxtraitementproformahospitalisation.php index 01e039a4..a4e33bce 100755 --- a/Controleur/ControleurAjaxtraitementproformahospitalisation.php +++ b/Controleur/ControleurAjaxtraitementproformahospitalisation.php @@ -107,10 +107,7 @@ class ControleurAjaxtraitementproformahospitalisation extends Controleur { $idPrestationactes = $this->requete->getParametre("idPrestationactes"); $quantite = $this->requete->getParametreFormulaire("quantite", "numerique"); - //$_SESSION['idProforma'] = $idProforma; - $this->examen->majquantiteproformahospitalisation($idPrestationactes, $quantite); - } public function validerunacteproformahospit() @@ -142,10 +139,6 @@ class ControleurAjaxtraitementproformahospitalisation extends Controleur { $_SESSION['idProforma'] = $idProforma; $this->examen->validerproformahospitalisation($idProforma); - - - - //echo $numeroBonHospitalisation; } public function majobservation() diff --git a/Js/fonctions.js b/Js/fonctions.js index 1846f67a..4da9b74b 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -83578,14 +83578,11 @@ function refuserunacteproformahospit(idProforma, idPrestationactes, choix) function validerproformahospitalisation(idProforma) { - motifReel = $("#motifReel").val(); motifRefusAssure = $("#motifRefusAssure").val(); siRefus = $("#siRefus").val(); accorderTout = $("#accorderTout").val(); - //entente = $("#entente").val(); - if ((motifReel == "" || motifReel <= " ") && (accorderTout > 0)) { motifReel = "BON POUR ACCORD"; @@ -83617,12 +83614,9 @@ function validerproformahospitalisation(idProforma) donnees = "idProforma="+idProforma; - //typeSms="proformahospitalisation"; - v_msg="Validez-vous cette facture proforma?"; v_msgEng="Do you validate this proforma invoice?"; - - + confirm_ebene(v_msg, v_msgEng) .then((isConfirmed) => { if (isConfirmed) { @@ -83646,7 +83640,6 @@ function validerproformahospitalisation(idProforma) error: function (data) { }, complete: function () { - // listeententeprealablesproformahospi(); } }); } else { @@ -86630,8 +86623,7 @@ function save_nv_consommable_proformahospit() { idProforma = $("#idProforma ").val(); libelleconsommable = $("#libelleconsommable").val(); - - + if (libelleconsommable<=" ") { v_msg="Veuillez saisir le nom!"; diff --git a/Modele/Ententeprealable.php b/Modele/Ententeprealable.php index 802bd293..6d8f5de4 100755 --- a/Modele/Ententeprealable.php +++ b/Modele/Ententeprealable.php @@ -793,16 +793,12 @@ class Ententeprealable extends Modele { return $resultat['numeroBon']; } - //public function getEnteteEntenteprealablesProformaHospit($codePrestataire, $demandeTraite, $debut, $fin) public function getEnteteEntenteprealablesProformaHospit($demandeTraite, $debut, $fin) { - //$codePrestataire = contruireParamLike($codePrestataire); $demandeTraite = contruireParamLike($demandeTraite); - //$sql = 'call sp_get_entete_ententeprealables_proforma_hospit(?, ?, ?, ?)'; $sql = 'call sp_get_entete_ententeprealables_proforma_hospit(?, ?, ?)'; - //$resultat = $this->executerRequete($sql, array($codePrestataire, $demandeTraite, $debut, $fin)); $resultat = $this->executerRequete($sql, array($demandeTraite, $debut, $fin)); return $resultat->fetchAll(PDO::FETCH_ASSOC);