clinic/netforce_clinic/templates/report_cycle_item.hbs

85 lines
3.5 KiB
Handlebars
Raw Normal View History

2015-03-06 05:15:19 +00:00
<center>
2015-03-13 16:31:58 +00:00
<h3>{{company_name}}</h3>
2015-03-06 05:15:19 +00:00
<h4>
ระหว่างวันที่ {{date_from}} ถึง {{date_to}}
</h4>
</center>
2015-05-04 10:35:11 +00:00
<table class="table table-condensed table-striped" style="margin-bottom:0px;">
2015-05-06 11:25:15 +00:00
<thead class="scroll-header">
2015-03-06 05:15:19 +00:00
<th>วันที่</th>
<th>รอบ</th>
2015-05-04 10:35:11 +00:00
<th>No</th>
2015-03-13 16:31:58 +00:00
<th>ชื่อ-สกุล</th>
2015-03-06 05:15:19 +00:00
<th>แพทย์</th>
2015-03-13 16:31:58 +00:00
<th>สิทธ์</th>
2015-05-06 05:04:00 +00:00
<!--
2015-03-24 04:05:50 +00:00
<th style="text-align:right">จ.น.เงิน</th>
2015-05-06 05:04:00 +00:00
-->
<th style="text-align:left">ยาฉีด</th>
2015-03-13 16:31:58 +00:00
<th>DZ</th>
<th>N/U</th>
<th>พยาบาล</th>
<!--<th>หมายเหตุ</th>-->
2015-03-06 05:15:19 +00:00
</thead>
<tbody>
{{#each lines }}
2015-03-18 10:35:49 +00:00
{{#if cancel}}
2015-05-04 10:35:11 +00:00
<tr class="active">
2015-03-18 10:35:49 +00:00
{{else}}
2015-03-06 05:15:19 +00:00
<tr>
2015-03-18 10:35:49 +00:00
{{/if}}
2015-05-04 10:35:11 +00:00
{{#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>
2015-05-29 01:06:30 +00:00
<td style="text-align:left">{{mdc_name}}</td>
2015-05-04 10:35:11 +00:00
<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>
2015-03-06 05:15:19 +00:00
<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>
2015-03-13 16:31:58 +00:00
<td><a href="/ui#name=clinic_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>
2015-05-06 05:04:00 +00:00
<!--
2015-05-04 10:35:11 +00:00
<td style="text-align:right">{{currency fee zero=""}}</td>
2015-05-06 05:04:00 +00:00
-->
<td style="text-align:left">{{mdc_name}}</td>
2015-03-13 16:31:58 +00:00
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
<td>{{dlz_use}}</td>
2015-05-04 10:35:11 +00:00
<td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td>
{{/if}}
</tr>
2015-03-06 05:15:19 +00:00
{{/each}}
</tbody>
<tfoot>
2015-05-06 11:25:15 +00:00
<th rowspan="2" class="active">รวมผู้ป่วยทั้งหมด</th>
<th rowspan="2" class="active"></th>
2015-05-04 10:35:11 +00:00
<th class="active">{{total_pt}}</th>
2015-05-06 09:53:47 +00:00
<th colspan="7" class="active">
2015-05-06 11:25:15 +00:00
<p>
{{#each ptype_lines}}
{{name}} : {{qty}} &nbsp;&nbsp;&nbsp;
{{/each}}
</p>
<p>
{{#each vscl_lines}}
{{description}} = {{qty}} &nbsp;&nbsp;&nbsp;
2015-05-06 09:53:47 +00:00
{{/each}}
2015-05-06 11:25:15 +00:00
</p>
2015-05-06 09:53:47 +00:00
</th>
2015-03-06 05:15:19 +00:00
</tfoot>
</table>