a
This commit is contained in:
parent
7436acf24d
commit
16d8e13b8b
|
|
@ -3215,8 +3215,6 @@ function ajouter_medicament() {
|
|||
|
||||
function ajax_maj_qte_medicament(idMedicament, quantite, controle)
|
||||
{
|
||||
V_idControle = "quantite"+idMedicament;
|
||||
|
||||
quantite=quantite.replace(",",".");
|
||||
controle.value=quantite;
|
||||
|
||||
|
|
@ -3233,8 +3231,6 @@ function ajax_maj_qte_medicament(idMedicament, quantite, controle)
|
|||
}
|
||||
|
||||
donnees = 'idMedicament='+idMedicament+"&quantite="+quantite;
|
||||
donnees += "&idControle="+V_idControle;
|
||||
donnees += "&controle=quantite";
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxdetailprescription/majquantite/",
|
||||
|
|
@ -3242,9 +3238,8 @@ function ajax_maj_qte_medicament(idMedicament, quantite, controle)
|
|||
data: donnees,
|
||||
success: function(data) {
|
||||
$("#medicaments").html(data);
|
||||
var input = document.getElementById("quantite" + idMedicament);
|
||||
var input = document.getElementById("posologie" + idMedicament);
|
||||
if (input) {
|
||||
alert("O fait le focus");
|
||||
input.focus();
|
||||
input.select();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@
|
|||
<?php endif; ?>
|
||||
<?php if ($livre!="1" && $bonCaduc!="1" && $ententePrealable!='1' && $ententePrealable!='9') : ?>
|
||||
<td align='center' colspan="2">
|
||||
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailprescription['dureeTraitement']) ?>"
|
||||
<INPUT id="dureeTraitement<?= $idMedicament ?>" name="dureeTraitement<?= $idMedicament ?>" style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailprescription['dureeTraitement']) ?>"
|
||||
onChange="ajax_maj_duree_medicament('<?=$idMedicament?>', this.value, this);this.focus();">
|
||||
</td>
|
||||
<?php else: ?>
|
||||
|
|
@ -197,14 +197,14 @@
|
|||
<td align='center' > <?=$garanti?></td>
|
||||
<?php if ($livre!="1" && $bonCaduc!="1" && $ententePrealable!='1' && $ententePrealable!='9' && $exclu!="1") : ?>
|
||||
<td align='center' >
|
||||
<SELECT class="form-select" style='font-size:8pt; text-align:center; height: 27px !important; ' onChange="ajax_maj_renouvelable_medicament('<?=$idMedicament?>', this.value, this);">
|
||||
<SELECT id="renouvelable<?= $idMedicament ?>" name="renouvelable<?= $idMedicament ?>" class="form-select" style='font-size:8pt; text-align:center; height: 27px !important; ' onChange="ajax_maj_renouvelable_medicament('<?=$idMedicament?>', this.value, this);">
|
||||
<?php liste_options($ouinonrenouvelable, $renouvelable, true); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
|
||||
<td align='center' >
|
||||
<?php if ($renouvelable=="1") : ?>
|
||||
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $frequenceRenouvellement ?>"
|
||||
<INPUT id="frequenceRenouvellement<?= $idMedicament ?>" name="frequenceRenouvellement<?= $idMedicament ?>" style='text-align:center' class="form-control" TYPE="text" value="<?= $frequenceRenouvellement ?>"
|
||||
onChange="ajax_maj_frequence_medicament('<?=$idMedicament?>', this.value, this);" required>
|
||||
<?php else: ?>
|
||||
<INPUT style='text-align:center' class="form-control" TYPE="text" value="0" disabled>
|
||||
|
|
|
|||
|
|
@ -892,7 +892,7 @@
|
|||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/toastr@2.1.4/build/toastr.min.css" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/toastr@2.1.4/build/toastr.min.js" crossorigin="anonymous"></script>
|
||||
|
||||
<script src="Js/fonctions.js?ver=2026.06.24.17"></script>
|
||||
<script src="Js/fonctions.js?ver=2026.06.24.18"></script>
|
||||
<script src="Bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user