1、1到100,一位小数位,不允许为空
return array(
array('logistics_id', 'required'),
array('logistics_id, created_by, updated_by', 'numerical', 'integerOnly'=>true),
array('bid_percentage', 'numerical', 'allowEmpty'=>false, 'min'=>1,'max'=>100,
'numberPattern'=>'/^\s*[0-9]+(\\.?(\\d){0,1})$/',
'message'=>'费率只能是一位小数位的数字',
'on'=>'updatebidpercentage'),
array('adjustable_rate', 'numerical', 'allowEmpty'=>false, 'min'=>0,'max'=>1,
'numberPattern'=>'/^\s*[0-1]+(\\.?(\\d){0,3})$/',
'message'=>'佣金比例只能是小于1的3位小数位的数字'),
array('created_date, updated_date', 'safe'),
array('id, logistics_id, sky_shipping_cost,exchange_rate_usd_to_cny, exchange_rate_cny_to_usd, pack_volume_multiple, domestic_trip_cost, adjustable_rate, created_by, updated_by, created_date, updated_date, remark', 'safe', 'on'=>'search'),
);