conv_bal
watcha.h@almacom.co.th 2015-05-06 12:04:00 +07:00
parent 98f644862a
commit c63f63db76
3 changed files with 14 additions and 5 deletions

View File

@ -145,6 +145,7 @@ class ReportHDCaseSummary(Model):
dom.append(['branch_id','=',branch_id]) dom.append(['branch_id','=',branch_id])
if department_id: if department_id:
dom.append(['department_id','=',department_id]) dom.append(['department_id','=',department_id])
print("dom ==> ", dom)
npatient=len(get_model("clinic.patient").search(dom)) npatient=len(get_model("clinic.patient").search(dom))
dom=replace_quote('%s'%dom) dom=replace_quote('%s'%dom)
items['topic%s'%count]={ items['topic%s'%count]={

View File

@ -12,8 +12,10 @@
<th>ชื่อ-สกุล</th> <th>ชื่อ-สกุล</th>
<th>แพทย์</th> <th>แพทย์</th>
<th>สิทธ์</th> <th>สิทธ์</th>
<!--
<th style="text-align:right">จ.น.เงิน</th> <th style="text-align:right">จ.น.เงิน</th>
<th style="text-align:right">ยาฉีด</th> -->
<th style="text-align:left">ยาฉีด</th>
<th>DZ</th> <th>DZ</th>
<th>N/U</th> <th>N/U</th>
<th>พยาบาล</th> <th>พยาบาล</th>
@ -36,8 +38,10 @@
<td><a href="/ui#name=clinic_patient&active_id={{pid}}&mode=form">{{pname}}</a></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_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><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 fee zero=""}}</td>
<td style="text-align:right">{{currency mdc zero=""}}</td> -->
<td style="text-align:left"></td>
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td> <td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
<td>{{dlz_use}}</td> <td>{{dlz_use}}</td>
<td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td> <td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td>
@ -52,8 +56,10 @@
<td><a href="/ui#name=clinic_patient&active_id={{pid}}&mode=form">{{pname}}</a></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_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><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 fee zero=""}}</td>
<td style="text-align:right">{{currency mdc}}</td> -->
<td style="text-align:left">{{mdc_name}}</td>
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td> <td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
<td>{{dlz_use}}</td> <td>{{dlz_use}}</td>
<td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td> <td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td>
@ -62,14 +68,16 @@
{{/each}} {{/each}}
</tbody> </tbody>
<tfoot> <tfoot>
<th class="active">รวมทั้งหมด</th> <th class="active">รวมผู้ป่วยทั้งหมด</th>
<th class="active"></th> <th class="active"></th>
<th class="active">{{total_pt}}</th> <th class="active">{{total_pt}}</th>
<th class="active"></th> <th class="active"></th>
<th class="active"></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_fee zero=""}}</th>
<th class="active" style="text-align:right">{{currency total_mdc}}</th> -->
<th class="active" style="text-align:left"></th>
<th class="active"></th> <th class="active"></th>
<th class="active"></th> <th class="active"></th>
<th class="active"></th> <th class="active"></th>