clinic/netforce_clinic/templates/report_cycle_item.hbs

81 lines
3.6 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>
2015-06-17 15:27:15 +00:00
รายชื่อผู้ป่วยระหว่างวันที่ {{date_from}} ถึง {{date_to}}
2015-03-06 05:15:19 +00:00
</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-07-03 02:48:25 +00:00
<th>HDC#</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
<th style="text-align:left">ยาฉีด</th>
2015-03-13 16:31:58 +00:00
<th>DZ</th>
<th>N/U</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>
2015-07-03 02:48:25 +00:00
<td style="width:6%"><a href="/ui#name=clinic_hd_case&active_id={{hdcase_id}}&mode=form">{{hdcase_number}}</a></td>
2015-05-04 10:35:11 +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>
<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-07-03 02:48:25 +00:00
<td style="width:6%"><a href="/ui#name=clinic_hd_case&active_id={{hdcase_id}}&mode=form">{{hdcase_number}}</a></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
<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>