diff --git a/Js/fonctions.js b/Js/fonctions.js index 52082d6..3a57275 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -28797,8 +28797,6 @@ function no_presciption() const numOrd = $("#numOrd").val(); const noPrescription = $("#noPrescription").val(); - alert("numOrd = "+numOrd+" ; noPrescription = "+noPrescription); - // Si aucune ordonnance ni indication "pas de prescription" if (numOrd == "0" && noPrescription == "0") { const v_msg = "Confirmez-vous qu'il n'y a pas de prescription de m\u00e9dicaments?"; @@ -28812,10 +28810,15 @@ function no_presciption() $.ajax({ url: $("#racineWeb").val() + "Ajaxenregistrerprescription/noprescription/", type: 'post', - error: function(errorData) {}, - success: function(data) {}, + error: function(errorData) { + alert(errorData); + }, + success: function(data) { + alert(data); + }, + complete: function() { - feuillemaladie(); // Rechargement de la feuille de maladie + // feuillemaladie(); // Rechargement de la feuille de maladie } }); } diff --git a/Modele/Prescription.php b/Modele/Prescription.php index 2ea6e6d..32a065a 100755 --- a/Modele/Prescription.php +++ b/Modele/Prescription.php @@ -95,7 +95,10 @@ class Prescription extends Modele { public function noprescription() { $numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C']; - + + echo "numeroFeuilleMaladie = $numeroFeuilleMaladie"; + exit; + $sql = 'call sp_p_no_prescription(?)'; $this->executerRequete($sql, array($numeroFeuilleMaladie)); diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 6b1e183..c270bed 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -909,7 +909,7 @@ - +