|
@@ -61,7 +61,9 @@ class product_path(Load):
|
|
,search = (('label-1','cdate-time-start','cdate-time-end','name-input-mlike'), (u'日期范围',u'开始时间',u'截止时间',u'产品名称'))
|
|
,search = (('label-1','cdate-time-start','cdate-time-end','name-input-mlike'), (u'日期范围',u'开始时间',u'截止时间',u'产品名称'))
|
|
,thead = (u'产品名称',u'产品标识', u'更新时间')
|
|
,thead = (u'产品名称',u'产品标识', u'更新时间')
|
|
,tbody = ('name', 'key','cdate')
|
|
,tbody = ('name', 'key','cdate')
|
|
- ,state = True
|
|
|
|
|
|
+ ,state = False
|
|
|
|
+ ,add = False
|
|
|
|
+ ,edit = False
|
|
)
|
|
)
|
|
self.list('setting_product')
|
|
self.list('setting_product')
|
|
self.show('list')
|
|
self.show('list')
|
|
@@ -98,7 +100,9 @@ class device_type_path(Load):
|
|
,search = (('label-1','cdate-time-start','cdate-time-end','name-input-mlike'), (u'日期范围',u'开始时间',u'截止时间',u'类型名称'))
|
|
,search = (('label-1','cdate-time-start','cdate-time-end','name-input-mlike'), (u'日期范围',u'开始时间',u'截止时间',u'类型名称'))
|
|
,thead = (u'类型ID', u'类型名称', u'类型标识', u'类型单位', u'更新时间')
|
|
,thead = (u'类型ID', u'类型名称', u'类型标识', u'类型单位', u'更新时间')
|
|
,tbody = ('id', 'name', 'key', 'unit', 'cdate')
|
|
,tbody = ('id', 'name', 'key', 'unit', 'cdate')
|
|
- ,state = True
|
|
|
|
|
|
+ ,state = False
|
|
|
|
+ ,add = False
|
|
|
|
+ ,edit = False
|
|
)
|
|
)
|
|
self.list('setting_device_type')
|
|
self.list('setting_device_type')
|
|
self.show('list')
|
|
self.show('list')
|
|
@@ -138,7 +142,9 @@ class modbus_code_path(Load):
|
|
,search = (('label-1','cdate-time-start','cdate-time-end','name-input-mlike','product_id-select-'), (u'日期范围',u'开始时间',u'截止时间',u'设备名称',u'选择产品'))
|
|
,search = (('label-1','cdate-time-start','cdate-time-end','name-input-mlike','product_id-select-'), (u'日期范围',u'开始时间',u'截止时间',u'设备名称',u'选择产品'))
|
|
,thead = (u'命令码名称', u'所属产品',u'关联设备类型', u'表达式', u'更新时间')
|
|
,thead = (u'命令码名称', u'所属产品',u'关联设备类型', u'表达式', u'更新时间')
|
|
,tbody = ('name', 'product','device_type_key', 'exp', 'cdate')
|
|
,tbody = ('name', 'product','device_type_key', 'exp', 'cdate')
|
|
- ,state = True
|
|
|
|
|
|
+ ,state = False
|
|
|
|
+ ,add = False
|
|
|
|
+ ,edit = False
|
|
)
|
|
)
|
|
self.data['common']['search_product_id-select-'] = self.service('common').list('setting_product')
|
|
self.data['common']['search_product_id-select-'] = self.service('common').list('setting_product')
|
|
self.list('setting_modbus_code')
|
|
self.list('setting_modbus_code')
|