'control_log', # 显示给用户看的名称 'lang' => '控制器日志', 'menu' => false, 'order' => 20, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', //'search' => 'order', //'list' => true, ), /* 'id' => array ( 'type' => 'varchar-50', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_string', 'search' => 'order', 'list' => true, ), */ 'product_id' => array ( 'type' => 'int-11', 'name' => '成品设备', 'default' => '', 'desc' => '请输入设备ID', 'match' => 'is_numeric', 'update' => 'text', ), 'device_id' => array ( 'type' => 'int-11', 'name' => '基础设备', 'default' => '', 'desc' => '请输入基础设备', 'match' => 'is_numeric', 'update' => 'text', ), 'control_id' => array ( 'type' => 'int-11', 'name' => '控制器', 'default' => '', 'desc' => '控制器', 'match' => 'is_numeric', 'update' => 'text', //'list' => 'Dever::load("device/control-one#name", {control_id})', ), 'product_control_id' => array ( 'type' => 'int-11', 'name' => '控制器名称', 'default' => '', 'desc' => '控制器名称', 'match' => 'is_numeric', 'update' => 'text', 'list' => 'Dever::load("device/product_control-one#name", {product_control_id})', ), 'value' => array ( 'type' => 'varchar-500', 'name' => '当前的值', 'default' => '', 'desc' => '当前的值', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', //'list' => '{reorder} == 10000 ? Dever::mdate("{value}") : "{value}{dw}"', 'list' => true, ), 'send' => array ( 'type' => 'varchar-500', 'name' => '发送的数据', 'default' => '', 'desc' => '发送的数据', 'match' => 'is_string', 'update' => 'textarea', //'list' => true, ), 'receive' => array ( 'type' => 'varchar-500', 'name' => '接收到的数据', 'default' => '', 'desc' => '接收到的数据', 'match' => 'is_string', 'list' => true, ), 'cdate' => array ( 'type' => 'int-11', 'name' => '入库时间', 'match' => array('is_numeric', time()), 'desc' => '', # 只有insert时才生效 'insert' => true, 'search' => 'order', 'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), 'manage' => array ( 'insert' => false, 'edit' => false, ), # request 请求接口定义 'request' => array ( ), );