234 lines
9.4 KiB
PHP
234 lines
9.4 KiB
PHP
<?php
|
|
$this->titre = "INTER-SANTE - Ajout acte médical";
|
|
|
|
$chirurgie = $_SESSION['p_chirurgie_C'];
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
?>
|
|
|
|
<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-toggle="modal" data-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 colspan="3">
|
|
<SELECT class="form-control" id="codeFamilleActe" NAME="codeFamilleActe" required onChange="ajaxactespossibles_selection();" style='font-size:10pt;' >
|
|
<?php liste_options($familleacte,""); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<!--
|
|
<tr>
|
|
<td> <?= _("Acte") ?> </td>
|
|
<td colspan="3">
|
|
<button type="button" class="form-control btn btn-primary" data-toggle="modal" data-target="#popRechercheActe" style='font-size:10pt;' ><span id="libelleActe" name="libelleActe"> <?= _("Rechercher Acte...") ?> </span></button>
|
|
</td>
|
|
</tr>
|
|
-->
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<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-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-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" id="totam_donnees">
|
|
|
|
<div id="div_actes" class="col-xs-4" style="padding-right:1px;">
|
|
<div id="listeacte">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="90%" style='text-align:center'> <?= _("Actes") ?> </th>
|
|
<th style='text-align:center'> => </th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="div_prestations" class="col-xs-8" >
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <= </th>
|
|
<th style="text-align:center"> <?= _("Acte") ?> </th>
|
|
<th style="text-align:center"> <?= _("Valeur") ?> </th>
|
|
<th width="10%" 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>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="4" style='text-align:center'> Total </td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['fraisReel'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantArembourser'])) ?></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($prestations as $prestation):
|
|
$idPrestationactes=$this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation=$this->nettoyer($prestation['codeTypePrestation']);
|
|
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation=$this->nettoyer($prestation['autorisation']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
?>
|
|
<?php if($ententePrealable=='2' || $autorisation=='2'): ?>
|
|
<tr valign="top" style="background-color: yellow;">
|
|
<?php elseif($ententePrealable=='1' || $autorisation=='1'): ?>
|
|
<tr valign="top" style="background-color: #00ff00;">
|
|
<?php elseif($ententePrealable=='9' || $autorisation=='9'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
|
|
<?php if ($supprimable=="0"): ?>
|
|
<td> </td>
|
|
<?php else: ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="<=" onClick="javascript:supprimer_acte_medical_selection('<?= $idPrestationactes ?>', '<?= $codeTypePrestation ?>');"> </td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= $libelleActe ?> </td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?></td>
|
|
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['quantite']) ?>"
|
|
onBlur="ajax_maj_qte_acte('<?=$idPrestationactes?>', this.value, this);">
|
|
</td>
|
|
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="7" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="div_fraisExclu">
|
|
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" >
|
|
</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-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_select(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_select();" /></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-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|