This commit is contained in:
KANE LAZENI 2026-03-15 06:29:06 +00:00
parent f45d3b98db
commit 619233cb92
5 changed files with 38 additions and 56 deletions

View File

@ -39,11 +39,12 @@ class ControleurAjaxprestationsprolongation extends Controleur {
$noChambrePro = $this->prestation->getNumeroChambrePro($idProlongation);
$nbreActesSansPrix = $this->prestation->getNbreActesSansPrix($numeroFeuilleMaladie, $idProlongation);
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
$this->genererVueAjax(array('prolongations' => $prolongations, 'prolongations_total' => $prolongations_total,
'feuillemaladie' => $feuillemaladie, 'nbreActeEntentePrealable' => $nbreActeEntentePrealable, 'listeProlongations' => $listeProlongations,
'prixChambreProlongation' => $prixChambreProlongation, 'idProlongation' => $idProlongation, 'nbreActesSansPrix' => $nbreActesSansPrix,
'noChambrePro' => $noChambrePro));
'noChambrePro' => $noChambrePro, 'prixActeModifiable' => $prixActeModifiable));
}
}

View File

@ -13,8 +13,7 @@ class ControleurAjaxselectactesmedicauxhospitalisation extends Controleur {
private $prestation;
private $garantie;
public function __construct() {
public function __construct() {
$this->feuillemaladie = new Feuillemaladie();
$this->acte = new Detailtarifacte();
$this->prestation = new Prestationactes();
@ -45,8 +44,6 @@ class ControleurAjaxselectactesmedicauxhospitalisation extends Controleur {
$hospit_total = $this->prestation->gethospitalisation_total($numeroFeuilleMaladie);
if($feuillemaladie['optionHospitalisation'] == "option-1"){
$codeActe = "HHM";
$plafondHospitalisation = $_SESSION['p_bareme']['gar_forfaitPlafondBeneficiaire'];
@ -195,15 +192,10 @@ class ControleurAjaxselectactesmedicauxhospitalisation extends Controleur {
$numeroChambre = $this->requete->getParametreFormulaire("numeroChambre");
$this->prestation->validerhospitalisation();
// $this->executerAction("index");
}
public function supprimeacte()
{
$this->prestation->supprimeactesansprix();
// $this->executerAction("index");
}
}

View File

@ -41,10 +41,7 @@
$bonCaduc = "0";
}
//var_dump($facture);
//var_dump($bonCaduc);
//$totalHospitalisation = $prestations_total['fraisReel'];
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
?>
<input class="sr-only" id="nbreActeEntentePrealable" name="nbreActeEntentePrealable" type="text" value= "<?= $nbreActeEntentePrealable; ?>" >
@ -54,8 +51,6 @@
<input class="sr-only" id="nbreActesSansPrixPro" name="nbreActesSansPrixPro" type="text" value= "<?= $nbreActesSansPrix; ?>" >
<input class="sr-only" id="noChambrePro" name="noChambrePro" type="text" value= "<?= $noChambrePro; ?>" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
@ -91,9 +86,9 @@
<td></td>
</tr>
<?php if($prolongations_total_reclame == "0"): ?>
<tr style='background-color:white'>
<td colspan="13" height="8"></td>
</tr>
<tr style='background-color:white'>
<td colspan="13" height="8"></td>
</tr>
<tr>
<td colspan="13" style="background-color:yellow">
<marquee behavior="scroll" direction="left" scrollamount="10" style="background-color:yellow; color:red; font-size:12pt">
@ -115,10 +110,8 @@
$ententePrealable=$this->nettoyer($prolongation['ententePrealable']);
$autorisation=$this->nettoyer($prolongation['autorisation']);
$codeTarifActe=$this->nettoyer($prolongation['codeTarifActe']);
$libelleConsommable=$this->nettoyer($prolongation['libelleConsommable']);
$valeurActeManuel = $this->nettoyer($prolongation['valeurActeManuel']);
$libelleConsommable=$this->nettoyer($prolongation['libelleConsommable']);
if($valeurActeManuel == "0" ){
$valeurActeManuel = $this->nettoyer($prolongation['prixPrestataire']);
@ -143,6 +136,7 @@
{
$libelleActe = $codeActe;
}
$valeurActe = $this->nettoyer($prolongation['valeurActe']);
$plafondActe = $this->nettoyer($prolongation['plafondActe']);
@ -157,10 +151,8 @@
$forfaitPlafond = "";
}
//
$prixTarif = $this->nettoyer($prolongation['prixTarif']);
//var_dump($codeTarifActe!="CHAMB" && $valeurActe=="0");
$codeMotifDepassement = $this->nettoyer($prolongation['codeMotifDepassement']);
$motif = $this->nettoyer($prolongation['motif']);
@ -172,8 +164,6 @@
$acteChambre = $this->nettoyer($prolongation['acteChambre']);
?>
<tr valign="top">
<?php if ($supprimable=="0" || $facture=='1' || $bonCaduc=='1' || $ententePrealable=='1'): ?>
@ -196,28 +186,26 @@
<?php if($ententePrealable<>"0"): ?>
<?php if($ententePrealable=='2'): ?>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='9'): ?>
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
<?php else: ?>
<td align='center'> <input type="checkbox" checked disabled> </td>
<td align='center'> <input type="checkbox" checked disabled> </td>
<?php endif; ?>
<?php else: ?>
<td align='center' > <input type="checkbox" disabled></td>
<?php endif; ?>
<td align='center'>
<?php if($facture=='1' || $bonCaduc=='1' || $idProlongationFeuille != $idProlongation || $prixModifiableEnHospit == "0"): ?>
<?php if($prixActeModifiable=="0" || $facture=='1' || $bonCaduc=='1' || $idProlongationFeuille != $idProlongation || $prixModifiableEnHospit == "0"): ?>
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
<?= format_N($valeurActeManuel) ?>
</button>
<?php else: ?>
<td align='center' width="13%">
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= format_N($valeurActeManuel) ?>"
onChange="ajax_maj_prix_acte_hospitalisation('<?=$idPrestationactes?>', this.value, this);" onBlur="formatMonetaire(this);" onkeyup="controle_numerique(this);" onfocus="formatNumerique(this);">
</td>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= format_N($valeurActeManuel) ?>"
onChange="ajax_maj_prix_acte_hospitalisation('<?=$idPrestationactes?>', this.value, this);" onBlur="formatMonetaire(this);" onkeyup="controle_numerique(this);" onfocus="formatNumerique(this);">
<?php endif; ?>
</td>

View File

@ -267,9 +267,9 @@
<td></td>
</tr>
<?php if($prestation_total_reclame == "0"): ?>
<tr style='background-color:white'>
<td colspan="13" height="8"></td>
</tr>
<tr style='background-color:white'>
<td colspan="13" height="8"></td>
</tr>
<tr>
<td colspan="13" style="background-color:yellow">
<marquee behavior="scroll" direction="left" scrollamount="10" style="background-color:yellow; color:red; font-size:12pt">
@ -312,6 +312,7 @@
{
$libelleActe = $codeActe;
}
$valeurActe = $this->nettoyer($prestation['valeurActe']);
$plafondActe = $this->nettoyer($prestation['plafondActe']);
@ -341,7 +342,6 @@
$prixModifiableEnHospit = $this->nettoyer($prestation['tarif']);
$acteChambre = $this->nettoyer($prestation['acteChambre']);
?>
<tr valign="top">
<?php if ($supprimable=="0" || $facture=='1' || $bonCaduc=='1' || $ententePrealable=='1'): ?>
@ -360,13 +360,13 @@
<?php if($ententePrealable<>"0"): ?>
<?php if($ententePrealable=='2'): ?>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='9'): ?>
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
<?php else: ?>
<td align='center'> <input type="checkbox" checked disabled> </td>
<td align='center'> <input type="checkbox" checked disabled> </td>
<?php endif; ?>
<?php else: ?>
<td align='center' > <input type="checkbox" disabled></td>
@ -400,15 +400,16 @@
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
<td align='center'> <?= format_N($this->nettoyer($prestation['depassement'])) ?></td>
<?php if($codeMotifDepassement!=''): ?>
<td align='center'>
<button type="button" class="btn btn-info" title="Voir le motif du dépassement..." onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motifEng ?>");'>
<?= $codeMotifDepassement ?>
</button>
</td>
<?php else: ?>
<td > </td>
<?php endif; ?>
<?php if($codeMotifDepassement!=''): ?>
<td align='center'>
<button type="button" class="btn btn-info" title="Voir le motif du dépassement..." onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motifEng ?>");'>
<?= $codeMotifDepassement ?>
</button>
</td>
<?php else: ?>
<td > </td>
<?php endif; ?>
<td > KANE INITIAL </td>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>

View File

@ -908,7 +908,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.14.06"></script>
<script src="Js/fonctions.js?ver=2026.03.14.07"></script>
<script src="Bootstrap/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>