clinic/netforce_clinic/templates/report_cycle_item.hbs

128 lines
5.1 KiB
Handlebars

<center>
<h3>{{company_name}}</h3>
<h4>
ระหว่างวันที่ {{date_from}} ถึง {{date_to}}
</h4>
</center>
<table class="table table-condensed table-striped" style="margin-bottom:0px;">
<thead>
<th>วันที่</th>
<th>รอบ</th>
<th>No</th>
<th>ชื่อ-สกุล</th>
<th>แพทย์</th>
<th>สิทธ์</th>
<th style="text-align:right">จ.น.เงิน</th>
<th style="text-align:right">ยาฉีด</th>
<th>DZ</th>
<th>N/U</th>
<th>พยาบาล</th>
<!--<th>หมายเหตุ</th>-->
</thead>
<tbody>
{{#each lines }}
{{#if cancel}}
<tr class="active">
{{else}}
<tr>
{{/if}}
{{#ifeq sub "show"}}
<tr class="info" style="font-weight:bold;">
{{/ifeq}}
{{#if cseq_txt}}
<th>{{date_txt}}</th>
<th>{{cseq_txt}}</th>
<td style="text-align:center">{{no}}</td>
<td><a href="/ui#name=clinic_patient&active_id={{pid}}&mode=form">{{pname}}</a></td>
<td><a href="/ui#name=clinic_staff&active_id={{did}}&mode=form">{{dname}}</a></td>
<td><a href="/ui#name=clinic_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>
<td style="text-align:right">{{currency fee zero=""}}</td>
<td style="text-align:right">{{currency mdc zero=""}}</td>
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
<td>{{dlz_use}}</td>
<td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td>
{{else}}
{{#ifeq sub "show"}}
<td>รวม</td>
{{else}}
<td></td>
{{/ifeq}}
<td></td>
<td style="text-align:center">{{no}}</td>
<td><a href="/ui#name=clinic_patient&active_id={{pid}}&mode=form">{{pname}}</a></td>
<td><a href="/ui#name=clinic_staff&active_id={{did}}&mode=form">{{dname}}</a></td>
<td><a href="/ui#name=clinic_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>
<td style="text-align:right">{{currency fee zero=""}}</td>
<td style="text-align:right">{{currency mdc}}</td>
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
<td>{{dlz_use}}</td>
<td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td>
{{/if}}
</tr>
{{/each}}
</tbody>
<tfoot>
<th class="active">รวมทั้งหมด</th>
<th class="active"></th>
<th class="active">{{total_pt}}</th>
<th class="active"></th>
<th class="active"></th>
<th class="active"></th>
<th class="active" style="text-align:right">{{currency total_fee zero=""}}</th>
<th class="active" style="text-align:right">{{currency total_mdc}}</th>
<th class="active"></th>
<th class="active"></th>
<th class="active"></th>
</tfoot>
</table>
<table class="table table-condensed table-striped">
<tbody>
<tr>
{{#each vscl_lines}}
<th style="text-align:right;">{{description}} = </th>
<th style="text-align:left">{{qty}}</th>
{{/each}}
</tr>
</tbody>
</table>
<!--
<table class="table table-condensed table-striped">
<tr>
<td colspan="5" style="width:50%">
<table class="table ">
<thead>
<th>Vascular Access</th>
<th>Qty</th>
</thead>
<tbody>
{{#each vscl_lines}}
<tr>
<td>{{description}}</td><td>{{qty}}</td>
</tr>
{{/each}}
</tbody>
</table>
</td>
<td colspan="6" style="width:50%">
<table class="table ">
<thead>
<th>Patient Type</th>
<th>Qty</th>
</thead>
<tbody>
{{#each ptype_lines}}
<tr>
<td>{{name}}</td><td>{{qty}}</td>
</tr>
{{/each}}
</tbody>
<tfoot>
<th>รวมผู้ป่วยทั้งหมด</th>
<th>{{total_pt}}</th>
</tfoot>
</table>
</td>
</tr>
</table>
-->