production/Vue/Accepterententeprealables/index.php
2025-12-01 16:12:12 +00:00

198 lines
11 KiB
PHP
Executable File

<?php $this->titre = "INTER SANTE - Autoriser un acte";
$codeActe = $this->nettoyer($ententeprealable['codeActe']);
$codeGarantie = $this->nettoyer($ententeprealable['codeGarantie']);
$codeTypePrestation = $this->nettoyer($ententeprealable['codeTypePrestation']);
$libelleActe = $this->nettoyer($ententeprealable['libelleActe']);
$numeroBonExamen = $this->nettoyer($ententeprealable['numeroBonExamen']);
$fraisReelExamen = $this->nettoyer($ententeprealable['fraisReelExamen']);
$idProlongation = $this->nettoyer($ententeprealable['idProlongation']);
$numeroBon = $this->nettoyer($ententeprealable['numeroBon']);
//var_dump($codeTypePrestation);
?>
<INPUT class="sr-only" TYPE="text" id="retour" NAME="retour" value="<?= $_SESSION['vueEntentePrealable'] ?>" readonly>
<form id="frmdententeprealable" name="frmdententeprealable" method="post" >
<input class="sr-only" type="text" id="nomForm" name="nomForm" value="accepterEntentePrealable">
<INPUT class="sr-only" TYPE="text" id="idDemandeententeprealable" name="idDemandeententeprealable" value="<?= $this->nettoyer($ententeprealable['idDemandeententeprealable']) ?>">
<INPUT class="sr-only" TYPE="text" id="smsGestionPrestataire" name="smsGestionPrestataire" value="<?= $this->nettoyer($ententeprealable['smsGestionPrestataire']) ?>">
<INPUT class="sr-only" TYPE="text" id="prestataire" name="prestataire" value="<?= $this->nettoyer($ententeprealable['prestataire']) ?>">
<INPUT class="sr-only" TYPE="text" id="codePrestataire" name="codePrestataire" value="<?= $this->nettoyer($ententeprealable['codePrestataire']) ?>">
<INPUT class="sr-only" TYPE="text" id="beneficiaire" name="beneficiaire" value="<?= $this->nettoyer($ententeprealable['beneficiaire']) ?>">
<INPUT class="sr-only" TYPE="text" id="numeroBeneficiaire" name="numeroBeneficiaire" value="<?= $this->nettoyer($ententeprealable['numeroBeneficiaire']) ?>">
<INPUT class="sr-only" TYPE="text" id="libelleActe" name="libelleActe" value="<?= $libelleActe ?>">
<INPUT class="sr-only" TYPE="text" id="telephonePortableAdherent" name="telephonePortableAdherent" value="<?= $this->nettoyer($ententeprealable['telAdherent']) ?>">
<INPUT class="sr-only" TYPE="text" id="codeTypePrestation" name="codeTypePrestation" value="<?= $this->nettoyer($ententeprealable['codeTypePrestation']) ?>">
<legend> <?= _("Autoriser un acte") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%"> <?= _("No") ?> </td>
<td width="20%"> <INPUT id="numeroEntentePrealable" name="numeroEntentePrealable" class="form-control" TYPE="text" style='font-size:10pt;text-align:center;' value="<?= $this->nettoyer($ententeprealable['numeroEntentePrealable']) ?>" readonly> </td>
<td width="10%" align="center"> <?= _("Acte") ?> </td>
<td colspan="5">
<?php if($codeActe=='EXAM'): ?>
<a class="blink" style='font-size:13pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;' href="javascript:afficherExamensPrescrits('<?= $numeroBonExamen ?>');">
<span style="display: block; color:#394d55; background-color:#726a57; border:1px solid #000; border-radius:3px;">
<?= $libelleActe ?>
</span>
</a>
<?php else: ?>
<INPUT class="form-control" TYPE="text" style='font-size:10pt;' value="<?= $libelleActe ?>" readonly>
<?php endif; ?>
</td>
</tr>
<tr>
<td> Date </td>
<td> <INPUT class="form-control" TYPE="text" style='font-size:10pt;' value="<?= dateheureLang($this->nettoyer($ententeprealable['dateSysteme'])) ?>" readonly> </td>
<td align="center"> <?= _("Prestataire") ?> </td>
<td colspan="5"> <INPUT class="form-control" TYPE="text" style='font-size:10pt;' value="<?= $this->nettoyer($ententeprealable['prestataire']).' / Bon No: '.$numeroBon ?>" readonly> </td>
</tr>
<tr>
<td> <?= _("Motif Médical") ?> </td>
<td colspan="5"><INPUT class="form-control" TYPE="text" id="motifPrestataire" NAME="motifPrestataire" style='font-size:10pt;' value="<?= $this->nettoyer($ententeprealable['motifPrestataire']); ?>" readonly></td>
</tr>
<tr>
<td> <?= _("Bénéficiaire") ?> </td>
<td colspan="5"><INPUT class="form-control" TYPE="text" style='font-size:10pt;' value="<?= $this->nettoyer($ententeprealable['beneficiaire']) . " ( " . $this->nettoyer($ententeprealable['numeroBeneficiaire']) . " )" ?>" readonly> </td>
</tr>
<tr>
<td class="required"> <?= _("Instructions") ?> </td>
<td colspan="5"><INPUT class="form-control" TYPE="text" id="motifReel" NAME="motifReel" value="R.A.S" style='font-size:10pt;' required AUTOCOMPLETE="OFF" autofocus ></td>
</tr>
<?php if ($ententeprealable['quantitePrescrite'] > "1" && $ententeprealable['quantiteHospit'] == "0") : ?>
<tr>
<td> <?= _("Nbre Prescrit") ?> </td>
<td> <INPUT class="form-control" TYPE="text" id="quantitePrescrite" name="quantitePrescrite" style='font-size:10pt;' value="<?= format_N($this->nettoyer($ententeprealable['quantitePrescrite'])) ?>" readonly> </td>
<td align="center"> <?= _("Nbre Modifié") ?> </td>
<td colspan="3"> <INPUT class="form-control" id="quantiteModifiee" name="quantiteModifiee" TYPE="number" min="0" max="<?= $this->nettoyer($ententeprealable['quantitePrescrite']) ?>" style='font-size:10pt;' value="<?= format_N($this->nettoyer($ententeprealable['quantiteModifiee'])) ?>" onblur="verifierQuantiteModifier();"> </td>
</tr>
<?php elseif($ententeprealable['quantitePrescrite'] <= "1" && $ententeprealable['quantiteHospit'] == "0"): ?>
<tr>
<td> <?= _("Quantité Prescrite") ?> </td>
<td> <INPUT class="form-control" TYPE="text" id="quantitePrescrite" name="quantitePrescrite" style='font-size:10pt;' value="<?= format_N($this->nettoyer($ententeprealable['quantitePrescrite'])) ?>" readonly> </td>
<td align="center"> <?= _("Quantité Modifiée") ?> </td>
<td colspan="3"> <INPUT class="form-control" id="quantiteModifiee" name="quantiteModifiee" TYPE="number" min="0" max="<?= $this->nettoyer($ententeprealable['quantiteModifiee']) ?>" style='font-size:10pt;' value="<?= format_N($this->nettoyer($ententeprealable['quantiteModifiee'])) ?>" disabled> </td>
</tr>
<?php else: ?>
<tr></tr>
<?php endif; ?>
<?php if ($ententeprealable['quantiteHospit'] > "0") : ?>
<tr>
<td> <?= _("Quantité Prescrite") ?> </td>
<td> <INPUT class="form-control" id="quantiteHospit" name="quantiteHospit" TYPE="text" style='font-size:10pt;' value="<?= format_N($this->nettoyer($ententeprealable['quantiteHospit'])) ?>" readonly> </td>
<td align="center"> <?= _("Quantité Modifiée") ?> </td>
<td colspan="3"> <INPUT class="form-control" id="quantiteModifieeHospit" name="quantiteModifieeHospit" TYPE="number" min="0" max="<?= $this->nettoyer($ententeprealable['quantiteHospit']) ?>" style='font-size:10pt;' value="<?= format_N($this->nettoyer($ententeprealable['quantiteModifieeHospit'])) ?>"> </td>
</tr>
<?php endif; ?>
<?php if ($ententeprealable['codeActe'] == "EXAM") : ?>
<tr>
<td> <?= _("Bon Examen") ?> </td>
<td> <INPUT class="form-control" TYPE="text" style='font-size:10pt;' value="<?= $this->nettoyer($ententeprealable['numeroBonExamen']) ?>" readonly> </td>
<td align="center"> <?= _("Frais") ?> </td>
<td colspan="3"> <INPUT class="form-control" TYPE="text" style='font-size:10pt;' value="<?= format_N($this->nettoyer($ententeprealable['fraisReelExamen'])) ?>" readonly> </td>
</tr>
<?php endif; ?>
<?php if($codeTypePrestation=="SEA"): ?>
<tr>
<td> <?= _("Prix Unitaire") ?> </td>
<td> <INPUT class="form-control" TYPE="text" id="prixSeance" name="prixSeance" style='font-size:10pt;' value="<?= format_N($this->nettoyer($ententeprealable['prixSeance'])) ?>" disabled> </td>
<td align="center"> <?= _("Prix Total") ?> </td>
<td> <INPUT class="form-control" id="prixTotalSeance" name="prixTotalSeance" TYPE="text" style='font-size:10pt;' value="<?= format_N($this->nettoyer($ententeprealable['prixTotalSeance'])) ?>" disabled> </td>
<td align="center"> <?= _("Durée Traitement (J)") ?> </td>
<td> <INPUT class="form-control" id="dureeTraitementSeance" name="dureeTraitementSeance" TYPE="text" style='font-size:10pt;' value="<?= $this->nettoyer($ententeprealable['dureeTraitementSeance']) ?>" disabled> </td>
</tr>
<?php endif;?>
<tr>
<td> </td>
<td colspan="5"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value='<?= _("Valider") ?>' onClick="enregistreraccordententepreslable_2();" style='font-size:10pt;' > </td>
</tr>
</tbody>
</table>
<?php if (isset($msgErreur)): ?>
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</form>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="10%"> <?= _("Plafond Bénéf.") ?> </td>
<td><INPUT style='text-align:center; background-color:#027BE3 !important;color:white; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($college['plafond'])) ?>" readonly ></td>
<td align="center"> <?= _("Conso. Bénéf.") ?> </td>
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127) !important;color:white; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($college['consommation'])) ?>" readonly ></td>
<td align="center"> <?= _("Solde Bénéf.") ?> </td>
<td> <INPUT style='text-align:center; background-color:green !important; color:white; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($college['soldeConsommation'])) ?>" readonly ></td>
</tr>
<tr>
<td width="10%"> <?= _("Plafond Famille") ?> </td>
<td><INPUT style='text-align:center; background-color:#027BE3 !important;color:white; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($police['plafond'])) ?>" readonly ></td>
<td align="center"> <?= _("Conso. Famille") ?> </td>
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127) !important;color:white; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($police['consommation'])) ?>" readonly ></td>
<td align="center"> <?= _("Solde Famille") ?> </td>
<td> <INPUT style='text-align:center; background-color:green !important;color:white; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($police['soldeConsommation'])) ?>" readonly ></td>
</tr>
</tbody>
</table>
<div id ="div_wait">
</div>
<div id="div_examens_prescrits" class="modal fade" role="dialog">
</div>
<hr style="border:none; border-top: 3px double #333; color:#333; overflow: visible; text-align:center; height:5px;">
<p>
<a href="javascript:afficherHistoriquePrestataion('<?=$ententeprealable['numeroBeneficiaire']?>', <?= $numeroBon ?>);" style="font-size:16pt;">
<?= _("Historique des prestations du Bénéficiaire") ?>
</a>
</p>
<div id="div_historique_prestation" class="modal fade" role="dialog" data-backdrop="static" data-keyboard="false">
</div>