clean
parent
700cc56e18
commit
970aa12ac6
|
@ -37,10 +37,11 @@
|
||||||
<item string="Visit Board" action="clinic_visit_board"/>
|
<item string="Visit Board" action="clinic_visit_board"/>
|
||||||
<item string="Generate Visit" action="clinic_gen_visit_form"/>
|
<item string="Generate Visit" action="clinic_gen_visit_form"/>
|
||||||
</item>
|
</item>
|
||||||
<item string="HD Cases">
|
<item string="HD Cases" action="clinic_hd_case"/>
|
||||||
<item string="HD Cases" action="clinic_hd_case"/>
|
<!--<item string="HD Cases">-->
|
||||||
<item string="HD Case Dialy" action="clinic_hd_case_dialy"/>
|
<!--<item string="HD Cases" action="clinic_hd_case"/>-->
|
||||||
</item>
|
<!--<item string="HD Case Dialy" action="clinic_hd_case_dialy"/>-->
|
||||||
|
<!--</item>-->
|
||||||
<item string="Reports">
|
<item string="Reports">
|
||||||
<header string="HD CASE"/>
|
<header string="HD CASE"/>
|
||||||
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
|
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
<field name="levels" nolabel="1">
|
<field name="levels" nolabel="1">
|
||||||
<list>
|
<list>
|
||||||
<field name="level_id"/>
|
<field name="level_id"/>
|
||||||
<field name="var_a"/>
|
<field name="var_a" onchange="onchange_line"/>
|
||||||
<field name="op"/>
|
<field name="op" onchange="onchange_line"/>
|
||||||
<field name="var_b"/>
|
<field name="var_b" onchange="onchange_line"/>
|
||||||
<field name="formular"/>
|
<field name="formular"/>
|
||||||
</list>
|
</list>
|
||||||
<form>
|
<form>
|
||||||
|
|
|
@ -5,7 +5,7 @@ import xlrd
|
||||||
import xmltodict
|
import xmltodict
|
||||||
|
|
||||||
from netforce.model import Model, fields, get_model
|
from netforce.model import Model, fields, get_model
|
||||||
from netforce.utils import get_file_path
|
from netforce.utils import get_file_path, get_data_path
|
||||||
from netforce.access import get_active_company
|
from netforce.access import get_active_company
|
||||||
|
|
||||||
class ClinicSetting(Model):
|
class ClinicSetting(Model):
|
||||||
|
@ -278,5 +278,15 @@ class ClinicSetting(Model):
|
||||||
hd_case.complete()
|
hd_case.complete()
|
||||||
print("%s is completed"%hd_case.number)
|
print("%s is completed"%hd_case.number)
|
||||||
count+=1
|
count+=1
|
||||||
|
|
||||||
|
def onchange_line(self,context={}):
|
||||||
|
data=context['data']
|
||||||
|
path=context['path']
|
||||||
|
line=get_data_path(data,path,parent=True)
|
||||||
|
var_a=line['var_a'] or ''
|
||||||
|
var_b=line['var_b'] or ''
|
||||||
|
op=line['op'] or ''
|
||||||
|
line['formular']='%sX%s%s'%(var_a,op,var_b)
|
||||||
|
return data
|
||||||
|
|
||||||
ClinicSetting.register()
|
ClinicSetting.register()
|
||||||
|
|
|
@ -15,7 +15,7 @@ class StaffLevel(Model):
|
||||||
_defaults={
|
_defaults={
|
||||||
"company_id": lambda *a: get_active_company(),
|
"company_id": lambda *a: get_active_company(),
|
||||||
'sequence': 0,
|
'sequence': 0,
|
||||||
'type': 'staff',
|
'type': 'nurse',
|
||||||
}
|
}
|
||||||
|
|
||||||
_order="sequence"
|
_order="sequence"
|
||||||
|
|
Loading…
Reference in New Issue