public static function all()
{
return CHtml::listData(self::model()->findAll('parent_id = 2'), 'id', 'name');
}
'ware_id' => array(
'name' => 'ware_id',
'value' => '$data->ware->extname',
'filter' => Ware::all(),
),