show hdcase#

conv_bal
watcha.h@almacom.co.th 2015-07-03 09:48:25 +07:00
parent d50f527a39
commit f3e9392de0
2 changed files with 11 additions and 0 deletions

View File

@ -133,6 +133,12 @@ class ReportCycleItem(Model):
dlz_drop=True
cancel=False
row_color=''
def reformat_number(number=''):
if not number:
return ""
number=number.replace("HDC/","")
number=number.replace("HDC-","")
return number
lines.append({
'dlz_drop': dlz_drop,
'cancel': cancel,
@ -147,6 +153,8 @@ class ReportCycleItem(Model):
'date': hdcase.date,
'epo': hdcase.epo,
'mdc': hdcase.mdc,
'hdcase_number': reformat_number(hdcase.number),
'hdcase_id': hdcase.id,
'mdc_name': hdcase.mdc_name or hdcase.epo,
'fee': abs(hdcase.fee),
'dlz_name': hdcase.dlz_name,

View File

@ -9,6 +9,7 @@
<th>วันที่</th>
<th>รอบ</th>
<th>No</th>
<th>HDC#</th>
<th>ชื่อ-สกุล</th>
<th>แพทย์</th>
<th>สิทธ์</th>
@ -31,6 +32,7 @@
<th>{{date_txt}}</th>
<th>{{cseq_txt}}</th>
<td style="text-align:center">{{no}}</td>
<td style="width:6%"><a href="/ui#name=clinic_hd_case&active_id={{hdcase_id}}&mode=form">{{hdcase_number}}</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_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>
@ -46,6 +48,7 @@
{{/ifeq}}
<td></td>
<td style="text-align:center">{{no}}</td>
<td style="width:6%"><a href="/ui#name=clinic_hd_case&active_id={{hdcase_id}}&mode=form">{{hdcase_number}}</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_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>