refactor
parent
36b772a5dd
commit
0613851962
|
@ -1,8 +0,0 @@
|
||||||
<action> -->
|
|
||||||
<field name="string">HD Report Detail</field>
|
|
||||||
<field name="view_cls">report</field>
|
|
||||||
<field name="model">clinic.report.hd.case.detail</field>
|
|
||||||
<field name="report_template">report_hd_case_detail</field>
|
|
||||||
<field name="report_template_xls">report_hd_case_detail</field>
|
|
||||||
<field name="menu">clinic_menu</field>
|
|
||||||
</action>
|
|
|
@ -1,10 +0,0 @@
|
||||||
<form model="clinic.report.hd.case.detail">
|
|
||||||
<group>
|
|
||||||
<field name="date_from" span="3"/>
|
|
||||||
<field name="date_to" span="3"/>
|
|
||||||
<field name="cycle_id" span="3"/>
|
|
||||||
<newline/>
|
|
||||||
<field name="patient_id" span="3"/>
|
|
||||||
<field name="doctor_id" span="3"/>
|
|
||||||
</group>
|
|
||||||
</form>
|
|
|
@ -17,6 +17,8 @@ class ReportMedicalSummary(Model):
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_report_data(self,ids,context={}):
|
def get_report_data(self,ids,context={}):
|
||||||
|
obj=self.browse(ids)[0]
|
||||||
|
|
||||||
company_id=get_active_company()
|
company_id=get_active_company()
|
||||||
company=get_model('company').browse(company_id)
|
company=get_model('company').browse(company_id)
|
||||||
data={
|
data={
|
||||||
|
|
|
@ -1,71 +0,0 @@
|
||||||
<center>
|
|
||||||
<h2>รายละเอียดการทำ Hemodialysis</h2>
|
|
||||||
<h3>ศูนย์ไตเทียมราชวัตร {{company_name}}</h3>
|
|
||||||
<h4>
|
|
||||||
{{#if same_date}}
|
|
||||||
ณ วันที่ {{fmt_date date_from}}
|
|
||||||
{{else}}
|
|
||||||
ตั้งแต่ {{fmt_date date_from}} ถึง {{fmt_date date_to}}
|
|
||||||
{{/if}}
|
|
||||||
</h4>
|
|
||||||
</center>
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<thead class="scroll-header">
|
|
||||||
<tr>
|
|
||||||
<th>
|
|
||||||
รอบการรักษา
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
ผู้ป่วย
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
ประเภท
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
ค่าธรรมเนียม
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
HD.No
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Dialyzer
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
แพทย์
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{#each lines context=context}}
|
|
||||||
{{#if show_cycle}}
|
|
||||||
<tr>
|
|
||||||
<td colspan="10" style="font-weight:bold">
|
|
||||||
{{cycle}}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{{/if}}
|
|
||||||
<tr class="{{color}}">
|
|
||||||
{{#if no_patient}}
|
|
||||||
<td><b>ทั้งหมด</b></td>
|
|
||||||
<td>{{no_patient}}</td>
|
|
||||||
{{else}}
|
|
||||||
<td></td>
|
|
||||||
<td><a style="text-decoration: underline" href="ui#name=clinic_patient&mode=page&active_id={{patient_id}}">{{patient_name}}</a></td>
|
|
||||||
{{/if}}
|
|
||||||
<td>
|
|
||||||
{{patient_type}}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{total}}
|
|
||||||
</td>
|
|
||||||
<td><a style="text-decoration: underline" href="ui#name=clinic_hd_case&mode=page&active_id={{hd_case_id}}">{{rc_no}}</a></td>
|
|
||||||
<td><a style="text-decoration: underline" href="ui#name=clinic_dialyzer&mode=page&active_id={{dialyzer_id}}">{{dialyzer_number}}</a></td>
|
|
||||||
<td><a style="text-decoration: underline" href="ui#name=clinic_personal&mode=page&active_id={{doctor_id}}">{{doctor_name}}</a></td>
|
|
||||||
</tr>
|
|
||||||
{{/each}}
|
|
||||||
</tbody>
|
|
||||||
<tfoot>
|
|
||||||
<tr style="font-weight:bold">
|
|
||||||
</tr>
|
|
||||||
</tfoot>
|
|
||||||
</table>
|
|
|
@ -9,6 +9,7 @@
|
||||||
</center>
|
</center>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
|
<th>ยา</th>
|
||||||
<th>ประเภทการรักษา</th>
|
<th>ประเภทการรักษา</th>
|
||||||
<th>uc</th>
|
<th>uc</th>
|
||||||
<th>ซื้อ</th>
|
<th>ซื้อ</th>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue