prestation/Vue/Actesmedicaux/index.php
2025-12-05 10:42:46 +00:00

225 lines
9.9 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - "._("Ajout acte médical") ;
$chirurgie = $_SESSION['p_chirurgie_C'];
?>
<form id="frmconsultation" name="frmconsultation" method="post" >
<button class="sr-only" id="btn_pop_tarif" name="btn_pop_tarif" type="button" data-bs-toggle="modal" data-bs-target="#popTarif" style='font-size:10pt;' > </button>
<input class="sr-only" id="codeTypePrestation" name="codeTypePrestation" type="text" value="ACT">
<input class="sr-only" id="codeMedecin" name="codeMedecin" type="text" value= "<?= $_SESSION['p_codeMedecin_C'] ?>">
<INPUT class="sr-only" id="chirurgie_C" name="chirurgie_C" type="text" value="<?= $_SESSION['p_chirurgie_C'] ?>">
<legend> <?= _("Ajouter un acte médical") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("T M") ?> </td>
<td width="30%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="number" id="tauxCouverture" name="tauxCouverture" value="<?= $_SESSION['p_tm_C'] ?>" readonly ></td>
<td width="10%" align="center"> <?= _("Médecin") ?> </td>
<td>
<button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRechercheMedecin" style='font-size:10pt;' ><span id="nomMedecin" name="nomMedecin"> <?= $_SESSION['p_medecinConsultation_C'] ?> </span></button>
</td>
</tr>
<tr>
<td> <?= _("Famille Actes") ?> </td>
<td>
<SELECT class="form-control" id="codeFamilleActe" NAME="codeFamilleActe" required AUTOCOMPLETE="OFF" onChange="ajaxactespossibles_med();" style='font-size:10pt;' >
<?php liste_options($familleacte,""); ?>
</SELECT>
</td>
<td align="center"> <?= _("Acte") ?> </td>
<td>
<div id="listeacte">
<SELECT class="form-control" id="codeActe" NAME="codeActe" required AUTOCOMPLETE="OFF" onChange="ajaxprixactemed();" style='font-size:10pt;' >
<?php liste_options($acte,""); ?>
</SELECT>
</div>
</td>
</tr>
<tr>
<td> <?= _("Acte") ?> </td>
<td colspan="3">
<button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRechercheActe" style='font-size:10pt;' ><span id="libelleActe" name="libelleActe"> <?= _("Rechercher Acte...") ?> </span></button>
</td>
</tr>
</tbody>
</table>
<div id="infosacte" style='font-size:10pt;'>
<INPUT class="sr-only" type="text" id="prixTarif" name="prixTarif" value="0">
<input class="sr-only" type="text" id="ententePrealable" name="ententePrealable" value="0">
<input class="sr-only" type="text" id="acteExclu" name="acteExclu" value="0">
<input class="sr-only" type="text" id="acteChirurgie" name="acteChirurgie" value="0">
<div id="div_tarif">
<input class="sr-only" type="number" id="prixActe" name="prixActe" value="0">
<input class="sr-only" type="number" id="valeurActe" name="valeurActe" value="0">
<input class="sr-only" type="number" id="montantTm" name="montantTm" value="0">
<input class="sr-only" type="number" id="aRembourser" name="aRembourser" value="0">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("Prix Acte") ?> </td>
<td width="30%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="0" readonly> </td>
<td width="10%" align="center"> <?= _("Quantité") ?> </td>
<td width="20%" >
<input class="form-control" type="number" id="quantite" name="quantite" value="1" style="text-align: center; font-size:10pt;'" onChange="ajaxprixactemed();" >
</td>
<td width="10%" align="center"> <?= _("Valeur Acte") ?> </td>
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="0" readonly ></td>
</tr>
<tr>
<td > <?= _("T M") ?> </td>
<td align="center" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="0" readonly ></td>
<td align="center"> <?= _("A Remb") ?> </td>
<td > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="0" readonly ></td>
<td colspan="2"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistreractemedical();" style='font-size:10pt;' > </td>
</tr>
</tbody>
</table>
</div>
<div id="div_fraisExclu">
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" >
</div>
</div>
<div class="modal fade" id="popRechercheMedecin" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Rechercher un Médecin...") ?> </h4>
</div>
<div class="modal-body">
<div id="div_listemedecins" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
<thead>
<tr>
<th style="text-align:center" width="15%" > Code </th>
<th width="50%" style="text-align:center" > <?= _("Nom contenant...") ?> </th>
<th style="text-align:center" > <?= _("Spécialité") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" class="form-control" id="noOrdreMedecin" name="noOrdreMedecin" onkeypress="javascript:ctrlkeypress_medecin(event);" style='font-size:10pt;' ></td>
<td><input type="text" class="form-control" id="nomsearch" name="nomsearch" onkeypress="javascript:ctrlkeypress_medecin(event);" style='font-size:10pt;' ></td>
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medecin();" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-bs-dismiss="modal"><?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="popTarif" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_tarif" name="btn_close_pop_tarif" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Modifier Prix...") ?> </h4>
</div>
<div class="modal-body">
<div id="div_ajout_chambre">
<input class="sr-only" type="text" id="codeTypePrestation" name="codeTypePrestation" value="OPT">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="20%" > <?= _("Nouveau Prix...") ?> </td>
<td width="20%" >
<input class="form-control" type="number" id="prixNew" name="prixNew" style="text-align: center; font-size:10pt;'" value="0" >
</td>
<td><input class = "form-control btn btn-primary" type="button" value="<?= _("Appliquer") ?>" onClick="maj_prix_actemedical();" style='font-size:10pt;' ></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="popRechercheActe" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_acte" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Rechercher un Acte...") ?> </h4>
</div>
<div class="modal-body">
<div id="div_liste_actes_possibles" onkeypress="javascript:ctrlkeypress_actes_possibles(event);">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
<thead>
<tr>
<th style="text-align:center"> Code </th>
<th style="text-align:center"> <?= _("Famille") ?> </th>
<th style="text-align:center" > <?= _("Acte") ?> </th>
<th style="text-align:center" > <?= _("Prix") ?> </th>
<th style="text-align:center" > <?= _("Accord") ?> </th>
<th style="text-align:center" > <?= _("Exclu") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3"><input type="text" class="form-control" id="libelleActeSearch" name="libelleActeSearch" style='font-size:10pt;' ></td>
<td colspan="3"><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_actes_possibles();" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="close_pop_acte" name="close_pop_acte" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
</form>
<div id="div_test">
</div>