improve report
parent
e86640ea42
commit
e5467144d1
|
@ -99,7 +99,10 @@ class ReportCycleSetting(Model):
|
||||||
continue
|
continue
|
||||||
key=(patient.id,dpt.id)
|
key=(patient.id,dpt.id)
|
||||||
if not pts.get(key):
|
if not pts.get(key):
|
||||||
|
login=patient.w_uid.login
|
||||||
pts[key]={
|
pts[key]={
|
||||||
|
'w_time': patient.w_time,
|
||||||
|
'w_uid': login,
|
||||||
'patient_name': patient.name,
|
'patient_name': patient.name,
|
||||||
'department_name': dpt.name,
|
'department_name': dpt.name,
|
||||||
'mon_cycle_id': None,
|
'mon_cycle_id': None,
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
<thead class="scroll-header">
|
<thead class="scroll-header">
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>Patient</th>
|
<th>Patient</th>
|
||||||
|
<th>Last Update</th>
|
||||||
|
<th>Update By</th>
|
||||||
{{#unless department_id}}
|
{{#unless department_id}}
|
||||||
<th>Department</th>
|
<th>Department</th>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
@ -23,6 +25,8 @@
|
||||||
<td>
|
<td>
|
||||||
{{view "link" string=patient_name action="clinic_patient" action_options="mode=form" active_id=patient_id}}
|
{{view "link" string=patient_name action="clinic_patient" action_options="mode=form" active_id=patient_id}}
|
||||||
</td>
|
</td>
|
||||||
|
<td>{{w_time}}</td>
|
||||||
|
<td>{{w_uid}}</td>
|
||||||
{{#unless ../department_id}}
|
{{#unless ../department_id}}
|
||||||
<td>{{department_name}}</td>
|
<td>{{department_name}}</td>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
Loading…
Reference in New Issue