You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once SERVER_ROOT . '/data/dBase.php';
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 药方相关
|
|
|
|
* @package data
|
|
|
|
*/
|
|
|
|
|
|
|
|
class dFormula extends dBase {
|
|
|
|
protected $fieldlist = array(
|
|
|
|
'tcm_formula' => array(
|
|
|
|
'id',
|
|
|
|
'uid',
|
|
|
|
'name',
|
|
|
|
'source',
|
|
|
|
'original',
|
|
|
|
'method',
|
|
|
|
'sort',
|
|
|
|
'is_delete',
|
|
|
|
'create_time',
|
|
|
|
),
|
|
|
|
'tcm_formula_herb' => array(
|
|
|
|
'id',
|
|
|
|
'formula_id',
|
|
|
|
'herb_id',
|
|
|
|
'num',
|
|
|
|
'sort',
|
|
|
|
),
|
|
|
|
'tcm_herb' => array(
|
|
|
|
'id',
|
|
|
|
'uid',
|
|
|
|
'name',
|
|
|
|
'desc',
|
|
|
|
),
|
|
|
|
'tcm_collect_log' => array(
|
|
|
|
'id',
|
|
|
|
'collect_msg',
|
|
|
|
'collect_time',
|
|
|
|
),
|
|
|
|
'tcm_formula_use_log' => array(
|
|
|
|
'id',
|
|
|
|
'uid',
|
|
|
|
'formula_id',
|
|
|
|
'use_num',
|
|
|
|
),
|
|
|
|
'tcm_unit_conv' => array(
|
|
|
|
'id',
|
|
|
|
'uid',
|
|
|
|
'unit_type',
|
|
|
|
'num',
|
|
|
|
'from',
|
|
|
|
'is_delete',
|
|
|
|
'create_date',
|
|
|
|
),
|
|
|
|
'tcm_user_conv' => array(
|
|
|
|
'id',
|
|
|
|
'uid',
|
|
|
|
'unit_type',
|
|
|
|
'conv_id',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
protected $primary_keys = array(
|
|
|
|
'tcm_formula' => 'id',
|
|
|
|
'tcm_formula_herb' => 'id',
|
|
|
|
'tcm_herb' => 'id',
|
|
|
|
'tcm_collect_log' => 'id',
|
|
|
|
'tcm_formula_use_log' => 'id',
|
|
|
|
'tcm_unit_conv' => 'id',
|
|
|
|
'tcm_user_conv' => 'id',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|