a
This commit is contained in:
parent
a296bbb44e
commit
ad57b54162
|
|
@ -125,10 +125,20 @@ class ControleurAjaxdetailpharmacien extends Controleur {
|
|||
$idMedicament = $this->requete->getParametre("idMedicament");
|
||||
$prix = $this->requete->getParametreFormulaire("prix", "numerique");
|
||||
|
||||
// $this->detailprescription->majquantitepha($idMedicament, $quantite);
|
||||
$this->detailprescription->majprixpha($idMedicament, $prix);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function majposologie()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametre("idMedicament");
|
||||
$posologie = $this->requete->getParametreFormulaire("posologie");
|
||||
|
||||
$this->detailprescription->majposologie($idMedicament, $posologie);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18858,6 +18858,7 @@ function telRwanda(valeur)
|
|||
|
||||
function envoyer_prescription_medicament()
|
||||
{
|
||||
numeroBondonnance = $('#numeroBon').val();
|
||||
smsOrdonnance = $('#smsOrdonnance').val();
|
||||
|
||||
const numero = telRwanda(smsOrdonnance);
|
||||
|
|
@ -18871,24 +18872,52 @@ function envoyer_prescription_medicament()
|
|||
return;
|
||||
}
|
||||
|
||||
donnees = 'smsOrdonnance='+numero;
|
||||
donnees = 'numeroBondonnance='+numeroBondonnance+"&smsOrdonnance="+numero;
|
||||
|
||||
alert(donnees);
|
||||
|
||||
|
||||
var div_wait = $('#div_wait');
|
||||
div_wait.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
||||
|
||||
/*
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxdetailpharmacien/majquantitepha/",
|
||||
url: $("#racineWeb").val()+"Ajaxdetailpharmacien/envoyerprescription/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
// $("#medicaments").html(data);
|
||||
$("#livraison").html(data);
|
||||
div_wait.html('');
|
||||
// $("#livraison").html(data);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
function maj_psoslogie(idMedicament, posologie)
|
||||
{
|
||||
alert("maj_psoslogie => "+posologie);
|
||||
|
||||
donnees = 'idMedicament='+idMedicament+"&posologie="+posologie;
|
||||
|
||||
alert(donnees);
|
||||
var div_wait = $('#livraison');
|
||||
div_wait.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
||||
|
||||
/*
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxdetailpharmacien/majposologie/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
// $("#livraison").html(data);
|
||||
div_wait.html(data);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
alerter_depassement_limite();
|
||||
controle.focus();
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -279,21 +279,23 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id ="div_wait" class="alert alert-info">
|
||||
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center"> <?= _("Libellé") ?> </th>
|
||||
<th width="5%" style="text-align:center"> <?= _("Unité") ?> </th>
|
||||
<th width="10%" style="text-align:center"> <?= _("Valeur") ?> </th>
|
||||
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
|
||||
<th width="10%" style="text-align:center"> <?= _("Frais") ?> </th>
|
||||
<th width="5%" style="text-align:center"> <?= _("T M") ?> </th>
|
||||
<th width="10%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
||||
<th width="5%" style="text-align:center"> <?= _("Suppr") ?> </th>
|
||||
<th width="5%" style="text-align:center"> <?= _("Bon") ?> </th>
|
||||
<th width="5%" style="text-align:center"> <?= _("Rempl") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Unité") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Valeur") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Qté") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Frais") ?> </th>
|
||||
<th style="text-align:center"> <?= _("T M") ?> </th>
|
||||
<th style="text-align:center"> <?= _("A Remb") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Suppr") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Bon") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Rempl") ?> </th>
|
||||
<th style="text-align:center" > <?= _("Accord") ?> </th>
|
||||
<th colspan="2" width="8%" style="text-align:center"> <?= _("Rempl") ?> </th>
|
||||
<th colspan="2" style="text-align:center"> <?= _("Rempl") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
|
@ -354,6 +356,15 @@
|
|||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
<td align='center'>
|
||||
<?php if ($livre!="1" && $ajPharmacie<>"1" && $bonCaduc!="1") : ?>
|
||||
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailprescription['posologie']) ?>"
|
||||
onBlur="maj_psoslogie('<?=$idMedicament?>', this.value, this);">
|
||||
<?php else: ?>
|
||||
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailprescription['posologie']) ?>" readonly >
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
<td align='center'> <?= format_N($this->nettoyer($detailprescription['fraisReel'])) ?> </td>
|
||||
<td align='center'> <?= format_N($this->nettoyer($detailprescription['montantTm'])) ?> </td>
|
||||
<td align='center'> <?= format_N($this->nettoyer($detailprescription['montantArembourser'])) ?> </td>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user