From d3221c744f6c5fd31e6b2a848585d934447a40c8 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Wed, 24 Jun 2026 17:33:33 +0000 Subject: [PATCH] a --- Js/fonctions.js | 9 +++++++-- Vue/Ajaxdetailprescription/index.php | 6 +++--- Vue/Prescription/index.php | 6 +++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index eb1a0ce..73518d8 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -3215,7 +3215,7 @@ function ajouter_medicament() { function ajax_maj_qte_medicament(idMedicament, quantite, controle) { - V_idControle = "posologie"+idMedicament; + V_idControle = "quantite"+idMedicament; quantite=quantite.replace(",","."); controle.value=quantite; @@ -3233,6 +3233,7 @@ function ajax_maj_qte_medicament(idMedicament, quantite, controle) } donnees = 'idMedicament='+idMedicament+"&quantite="+quantite; + donnees += "&idControle="+V_idControle; $.ajax({ url: $("#racineWeb").val()+"Ajaxdetailprescription/majquantite/", @@ -3253,8 +3254,12 @@ function ajax_maj_qte_medicament(idMedicament, quantite, controle) function ajax_maj_posologie_medicament(idMedicament, posologie, controle) { + V_idControle = "posologie"+idMedicament; + donnees = 'idMedicament='+idMedicament+"&posologie="+posologie; - + donnees += "&idControle="+V_idControle; + + alert() $.ajax({ url: $("#racineWeb").val()+"Ajaxdetailprescription/majposologie/", type: 'POST', diff --git a/Vue/Ajaxdetailprescription/index.php b/Vue/Ajaxdetailprescription/index.php index 3e7fe5d..1c99069 100755 --- a/Vue/Ajaxdetailprescription/index.php +++ b/Vue/Ajaxdetailprescription/index.php @@ -143,7 +143,7 @@ + onChange="ajax_maj_qte_medicament('', this.value, this);this.focus();"> @@ -160,7 +160,7 @@ + onChange="ajax_maj_posologie_medicament('', this.value, this);this.focus();"> @@ -171,7 +171,7 @@ + onChange="ajax_maj_duree_medicament('', this.value, this);this.focus();"> diff --git a/Vue/Prescription/index.php b/Vue/Prescription/index.php index 9e5c66a..0444fbd 100755 --- a/Vue/Prescription/index.php +++ b/Vue/Prescription/index.php @@ -495,7 +495,7 @@ + onChange="ajax_maj_qte_medicament('', this.value, this);this.focus();"> @@ -512,7 +512,7 @@ + onChange="ajax_maj_posologie_medicament('', this.value, this);this.focus();"> @@ -523,7 +523,7 @@ + onChange="ajax_maj_duree_medicament('', this.value, this);this.focus();">