录医案

58 lines
1.1 KiB

10 months ago
<?php
include_once SERVER_ROOT . '/data/dBase.php';
/*
* 药方相关
* @package data
*/
class dFormula extends dBase {
10 months ago
protected $fieldlist = array(
'tcm_formula' => array(
'id',
'uid',
'name',
'source',
'original',
'method',
'sort',
'is_delete',
9 months ago
'create_time',
10 months ago
),
'tcm_formula_herb' => array(
10 months ago
'id',
'formula_id',
10 months ago
'herb_id',
'num',
'sort',
),
'tcm_herb' => array(
'id',
'uid',
10 months ago
'name',
'desc',
),
'tcm_collect_log' => array(
'id',
'collect_msg',
'collect_time',
),
'tcm_formula_use_log' => array(
'id',
'uid',
'formula_id',
'use_num',
),
10 months ago
);
protected $primary_keys = array(
'tcm_formula' => 'id',
'tcm_formula_herb' => 'id',
'tcm_herb' => 'id',
'tcm_collect_log' => 'id',
'tcm_formula_use_log' => 'id',
10 months ago
);
}