123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_cars_detail_data}}".
- *
- * @property int $id 编号
- * @property int|null $year 年份
- * @property int|null $month 月份
- * @property string|null $car_num 车牌号
- * @property string|null $car_brand 车辆品牌
- * @property float|null $emissions 排量
- * @property string|null $emissions_type 排量类型
- * @property string|null $oil_type 油料类型
- * @property string $enabled_date 登记日期
- * @property string|null $car_src 车辆来源
- * @property string|null $car_type 车辆类型
- * @property string|null $using_tag 车辆使用性质
- * @property string|null $env_lev 环保等级
- * @property string|null $engine_id 发动机号
- * @property string|null $fra_id 车架号
- * @property float|null $init_mileage 初始里程
- * @property string|null $own_dpt 车辆所属单位
- * @property string|null $driving_id 行驶证号
- * @property string|null $car_state 车辆状态
- * @property string|null $asset_id 资产编号
- * @property string|null $city 地市
- * @property string|null $dpt_sec 二级单位
- * @property string|null $grid 网格
- * @property float|null $oil 燃油
- * @property float|null $maintenance 维修
- * @property float|null $insurance 保险
- * @property float|null $rent 租赁
- * @property float|null $year_check 年检费
- * @property float|null $road_bridge 路桥
- * @property float|null $other 其他
- * @property float|null $mails 行驶里程
- * @property int|null $attend_days 出勤天数
- * @property string|null $alarm_area 报警区域
- * @property string|null $alarm_detail 报警规则描述
- * @property string $alarm_time 越界时间
- * @property int|null $is_working 是否执行中越界
- */
- class FCarsDetailData extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_cars_detail_data}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['year', 'month', 'attend_days', 'is_working'], 'integer'],
- [['emissions', 'init_mileage', 'oil', 'maintenance', 'insurance', 'rent', 'year_check', 'road_bridge', 'other', 'mails'], 'number'],
- [['enabled_date', 'alarm_time'], 'safe'],
- [['car_num', 'car_brand', 'emissions_type', 'oil_type', 'car_src', 'car_type', 'using_tag', 'env_lev', 'engine_id', 'fra_id', 'own_dpt', 'driving_id', 'car_state', 'asset_id', 'city', 'dpt_sec', 'grid', 'alarm_area', 'alarm_detail'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '编号',
- 'year' => '年份',
- 'month' => '月份',
- 'car_num' => '车牌号',
- 'car_brand' => '车辆品牌',
- 'emissions' => '排量',
- 'emissions_type' => '排量类型',
- 'oil_type' => '油料类型',
- 'enabled_date' => '登记日期',
- 'car_src' => '车辆来源',
- 'car_type' => '车辆类型',
- 'using_tag' => '车辆使用性质',
- 'env_lev' => '环保等级',
- 'engine_id' => '发动机号',
- 'fra_id' => '车架号',
- 'init_mileage' => '初始里程',
- 'own_dpt' => '车辆所属单位',
- 'driving_id' => '行驶证号',
- 'car_state' => '车辆状态',
- 'asset_id' => '资产编号',
- 'city' => '地市',
- 'dpt_sec' => '二级单位',
- 'grid' => '网格',
- 'oil' => '燃油',
- 'maintenance' => '维修',
- 'insurance' => '保险',
- 'rent' => '租赁',
- 'year_check' => '年检费',
- 'road_bridge' => '路桥',
- 'other' => '其他',
- 'mails' => '行驶里程',
- 'attend_days' => '出勤天数',
- 'alarm_area' => '报警区域',
- 'alarm_detail' => '报警规则描述',
- 'alarm_time' => '越界时间',
- 'is_working' => '是否执行中越界',
- ];
- }
- }
|