This commit is contained in:
KANE LAZENI 2026-03-11 09:52:37 +00:00
parent b8441e8aba
commit 061e4bbc98
5 changed files with 65 additions and 60 deletions

View File

@ -119,4 +119,15 @@ class ControleurAjaxdetaildentisterie extends Controleur {
}
}
public function majprixdentisterie()
{
$idDentisterie = $this->requete->getParametreFormulaire("idDentisterie");
$prixSaisi = $this->requete->getParametreFormulaire("prixSaisi", "numerique");
$this->obs->majprixdentisterie($idDentisterie, $prixSaisi);
// $this->executerAction("index");
}
}

View File

@ -26113,34 +26113,11 @@ function ajoute_dentaire()
var idCollege = $('#idCollege').val();
var nbreProthese = $('#nbreProthese').val();
/*
if(codeTypeActe=="PRO" && idCollege=="1"){
v_msg="La prothèse dentaire n'est pas prise en charge pour ce patient! Veuillez contacter l'assureur.";
v_msgEng="The dental prosthesis is not covered for this patient! Please contact the insurer.";
alert_ebene(v_msg, v_msgEng);
return;
}else if(codeTypeActe=="PRO" && nbreProthese > "0"){
v_msg="Le patient a déjà bénéficié d'une prothèse dentaire en cette année! Veuillez contacter l'assureur.";
v_msgEng="The patient has already benefited from a dental prosthesis this year! Please contact the insurer.";
alert_ebene(v_msg, v_msgEng);
return;
}
*/
donnees = 'codeActe='+codeActe+'&numeroDent='+numeroDent+'&motifDentaire='+motifDentaire;
//alert(donnees);
//return;
var div_prestations = $('#div_prestations');
div_prestations.html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
$.ajax({
url: $("#racineWeb").val()+"Ajaxdetaildentisterie/ajouter/",
type: 'POST',
@ -26156,27 +26133,13 @@ function ajoute_dentaire()
alert_ebene(v_msg, v_msgEng);
return;
}/*else{
//if(ententePrealable == "1"){
//preparesms(typeSms);
//v_msg="Demande accord prealable envoyée!";
//v_msgEng="Request prior agreement sent!";
//alert_ebene(v_msg, v_msgEng);
//return;
//}
}*/
}
},
error : function(resultat, statut, erreur)
{
},
complete: function(data)
{
//
dentisterie();
}
});
@ -28797,24 +28760,36 @@ function modifier_prix_seance() {
prixModifiable = $('#prixModifiable').val();
prixSaisi = $('#prixSaisi').val();
/*
donnees += 'prixSaisi='+prixSaisi;
$.ajax({
url: $("#racineWeb").val()+"Ajaxprixseance/majprixseance/",
type: 'POST',
data: donnees,
success: function(data) {
$("#livraison").html(data);
},
error: function(data) {
},
complete: function() {
ajaxprixseance();
}
});
*/
ajaxprixseance();
}
function modifier_prix_dentisterie(idDentisterie, prixSaisi) {
donnees = 'idDentisterie='+idDentisterie+'&prixSaisi='+prixSaisi;
alert("modifier_prix_dentisterie => "+donnees);
return;
if (prixSaisi <= "0"){
v_msg="Rien à faire!";
v_msgEng="Nothing to do!";
alert_ebene(v_msg, v_msgEng);
return;
}
$.ajax({
url: $("#racineWeb").val()+"Ajaxdetaildentisterie/majprixdentisterie/",
type: 'POST',
data: donnees,
/*
success: function(data) {
$("#div_prestations").html(data);
},
error: function(data) {
},
*/
complete: function() {
dentisterie();
}
});
}

View File

@ -236,4 +236,12 @@ class Dentaire extends Modele {
$resultat = $this->executerRequete($sql, array($idDentiste, $codeMedecin));
}
public function majprixdentisterie($idDentisterie, $prixSaisi)
{
$sql = 'call sp_p_maj_prix_dentisterie(?, ?)';
$this->executerRequete($sql, array($idDentisterie, $prixSaisi));
}
}

View File

@ -1,5 +1,4 @@
<?php
$chirurgie = $_SESSION['p_chirurgie_C'];
$actVisible = $_SESSION['p_actVisible'];
@ -7,7 +6,8 @@
$facture = $_SESSION['p_facture'];
$idCollege = $_SESSION['p_idCollege_C'];
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
?>
<input class="sr-only" id="bool" name="bool" type="text" value= "<?= $_SESSION['bool'] ?>">
@ -47,6 +47,7 @@
$envoyeSms = '0';
foreach ($prestations as $prestation):
$idPrestationactes=$this->nettoyer($prestation['id']);
$idDentisterie=$this->nettoyer($prestation['idDentisterie']);
$supprimable = $prestation['supprimable'];
$codeTypePrestation=$this->nettoyer($prestation['codeTypePrestation']);
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
@ -133,6 +134,16 @@
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
<?= format_N($this->nettoyer($prestation['valeurActe'])); ?>
</button>
<?php if($prixActeModifiable=="0") : ?>
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
<?= format_N($this->nettoyer($prestation['valeurActe'])); ?>
</button>
<?php else: ?>
<INPUT class="form-control" style='text-align:center' TYPE="number" value="<?= $valeurActe ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){modifier_prix_dentisterie('<?=$idDentisterie?>', this.value);}">
<?php endif; ?>
</td>
<td align='center'>

View File

@ -909,7 +909,7 @@
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" integrity="sha512-3pIirOrwegjM6erE5gPSwkUzO+3cTjpnV9lexlNZqvupR64iZBnOOTiiLPb9M36zpMScbmUNIcHUqKD47M719g==" crossorigin="anonymous" referrerpolicy="no-referrer" />-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="Js/fonctions.js?ver=2026.03.11.06"></script>
<script src="Js/fonctions.js?ver=2026.03.11.08"></script>
<script src="Bootstrap/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>