165 lines
6.3 KiB
Handlebars
165 lines
6.3 KiB
Handlebars
<center>
|
|
<h2>
|
|
{{title}}
|
|
</h2>
|
|
<h3>
|
|
{{parent_company_name}} {{company_name}}<br/>
|
|
</h3>
|
|
<h4>
|
|
From {{date_from}} To {{date_to}}
|
|
</h4>
|
|
</center>
|
|
<table class="table">
|
|
<thead class="scroll-header">
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</thead>
|
|
<tbody>
|
|
{{#each lines}}
|
|
<tr>
|
|
<td>{{topic}}</td>
|
|
<td>{{month}}</td>
|
|
<td>เท่ากับ</td>
|
|
{{#ifeq qty '0'}}
|
|
<td></td>
|
|
{{else}}
|
|
<td style="text-align:right;width:5%">
|
|
<a href='/ui#name={{link}}' target="_blank">{{qty}}</a>
|
|
</td>
|
|
{{/ifeq}}
|
|
<td style="text-align:center">{{unit}}</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<th>
|
|
<center>
|
|
<a href="/ui#name=clinic_report_recent_patient&defaults.date={{date}}&defaults.date_from={{date_from}}&defaults.date_to={{date_to}}&defaults.branch_id={{branch_id}}&defaults.department_id={{department_id}}">
|
|
รายชื่อผู้ป่วยรับใหม่
|
|
</a>
|
|
</center>
|
|
</th>
|
|
<th>
|
|
<center>
|
|
<a href="/ui#name=clinic_report_discontinue_patient&defaults.date={{date}}&defaults.date_from={{date_from}}&defaults.date_to={{date_to}}&defaults.branch_id={{branch_id}}&defaults.department_id={{department_id}}">
|
|
รายชื่อผู้ป่วยจำหน่าย
|
|
</a>
|
|
</center>
|
|
</th>
|
|
</thead>
|
|
<tr>
|
|
<td>
|
|
<table class="table">
|
|
<thead>
|
|
<th>#</th>
|
|
<th>วันที่</th>
|
|
<th>ชื่อ</th>
|
|
</thead>
|
|
<tbody>
|
|
{{#if recent_patients}}
|
|
{{#each recent_patients}}
|
|
<tr>
|
|
<td>{{no}}</td>
|
|
<td>{{reg_date}}</td>
|
|
<td>
|
|
{{view "link" string=name action="clinic_patient_move" action_options="mode=form" active_id=pid}}
|
|
</td>
|
|
<!--button delete ##TODO-->
|
|
<td>
|
|
<button type="button" class="btn btn-danger btn-xs">
|
|
<span class="glyphicon glyphicon-remove"></span>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
{{else}}
|
|
<tr>
|
|
<td colspan="3">
|
|
No items to display.
|
|
</td>
|
|
</tr>
|
|
{{/if}}
|
|
</tbody>
|
|
<tfoot>
|
|
</tfoot>
|
|
</table>
|
|
</td>
|
|
<td style="width:50%">
|
|
<table class="table">
|
|
<thead>
|
|
<th>#</th>
|
|
<th>วันที่</th>
|
|
<th>ชื่อ</th>
|
|
</thead>
|
|
<tbody>
|
|
{{#if resign_patients}}
|
|
{{#each resign_patients}}
|
|
<tr>
|
|
<td>{{no}}</td>
|
|
<td>{{resign_date}}</td>
|
|
<td>
|
|
{{view "link" string=name action="clinic_patient_move" action_options="mode=form" active_id=pid}}
|
|
</td>
|
|
<!--button delete ##TODO-->
|
|
<td>
|
|
<button type="button" class="btn btn-danger btn-xs">
|
|
<span class="glyphicon glyphicon-remove"></span>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
{{else}}
|
|
<tr>
|
|
<td colspan="3">
|
|
No items to display.
|
|
</td>
|
|
</tr>
|
|
{{/if}}
|
|
</tbody>
|
|
<tfoot>
|
|
</tfoot>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<span>
|
|
<center>
|
|
<b>
|
|
<a href="/ui#name=clinic_report_medical_summary&defaults.date={{date}}&defaults.date_from={{date_from}}&defaults.date_to={{date_to}}&defaults.branch_id={{branch_id}}&defaults.department_id={{department_id}}&defaults.report_type={{report_type}}">รวมจำนวนยาที่ใช้ประจำเดือน</a>
|
|
</b>
|
|
</center>
|
|
</span>
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
{{#each titles}}
|
|
<th>{{name}}</th>
|
|
{{/each}}
|
|
</thead>
|
|
<tbody>
|
|
{{#each medicals}}
|
|
<tr>
|
|
<td style="width:20%;">
|
|
<a href="/ui#name=product&active_id={{prod_id}}&mode=form"> {{prod_name}} </a>
|
|
</td>
|
|
{{#each sub_lines}}
|
|
<td style="text-align:center">
|
|
<a href="/ui#name=clinic_report_medical_detail&defaults.date_from={{time_start}}&defaults.date_to={{time_stop}}&defaults.types={{types}}&defaults.product_id={{product_id}}&defaults.product_categ_id={{product_categ_id}}&defaults.report_type={{../../report_type}}">{{qty}} </a>
|
|
</td>
|
|
{{/each}}
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
<tfoot>
|
|
</tfoot>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|