FCarsDetailData.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. namespace app\modules\car\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%f_cars_detail_data}}".
  6. *
  7. * @property int $id 编号
  8. * @property int|null $year 年份
  9. * @property int|null $month 月份
  10. * @property string|null $car_num 车牌号
  11. * @property string|null $car_brand 车辆品牌
  12. * @property float|null $emissions 排量
  13. * @property string|null $emissions_type 排量类型
  14. * @property string|null $oil_type 油料类型
  15. * @property string $enabled_date 登记日期
  16. * @property string|null $car_src 车辆来源
  17. * @property string|null $car_type 车辆类型
  18. * @property string|null $using_tag 车辆使用性质
  19. * @property string|null $env_lev 环保等级
  20. * @property string|null $engine_id 发动机号
  21. * @property string|null $fra_id 车架号
  22. * @property float|null $init_mileage 初始里程
  23. * @property string|null $own_dpt 车辆所属单位
  24. * @property string|null $driving_id 行驶证号
  25. * @property string|null $car_state 车辆状态
  26. * @property string|null $asset_id 资产编号
  27. * @property string|null $city 地市
  28. * @property string|null $dpt_sec 二级单位
  29. * @property string|null $grid 网格
  30. * @property float|null $oil 燃油
  31. * @property float|null $maintenance 维修
  32. * @property float|null $insurance 保险
  33. * @property float|null $rent 租赁
  34. * @property float|null $year_check 年检费
  35. * @property float|null $road_bridge 路桥
  36. * @property float|null $other 其他
  37. * @property float|null $mails 行驶里程
  38. * @property int|null $attend_days 出勤天数
  39. * @property string|null $alarm_area 报警区域
  40. * @property string|null $alarm_detail 报警规则描述
  41. * @property string $alarm_time 越界时间
  42. * @property int|null $is_working 是否执行中越界
  43. */
  44. class FCarsDetailData extends \app\common\models\EActiveRecord
  45. {
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public static function tableName()
  50. {
  51. return '{{%f_cars_detail_data}}';
  52. }
  53. /**
  54. * {@inheritdoc}
  55. */
  56. public function rules()
  57. {
  58. return [
  59. [['year', 'month', 'attend_days', 'is_working'], 'integer'],
  60. [['emissions', 'init_mileage', 'oil', 'maintenance', 'insurance', 'rent', 'year_check', 'road_bridge', 'other', 'mails'], 'number'],
  61. [['enabled_date', 'alarm_time'], 'safe'],
  62. [['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],
  63. ];
  64. }
  65. /**
  66. * {@inheritdoc}
  67. */
  68. public function attributeLabels()
  69. {
  70. return [
  71. 'id' => '编号',
  72. 'year' => '年份',
  73. 'month' => '月份',
  74. 'car_num' => '车牌号',
  75. 'car_brand' => '车辆品牌',
  76. 'emissions' => '排量',
  77. 'emissions_type' => '排量类型',
  78. 'oil_type' => '油料类型',
  79. 'enabled_date' => '登记日期',
  80. 'car_src' => '车辆来源',
  81. 'car_type' => '车辆类型',
  82. 'using_tag' => '车辆使用性质',
  83. 'env_lev' => '环保等级',
  84. 'engine_id' => '发动机号',
  85. 'fra_id' => '车架号',
  86. 'init_mileage' => '初始里程',
  87. 'own_dpt' => '车辆所属单位',
  88. 'driving_id' => '行驶证号',
  89. 'car_state' => '车辆状态',
  90. 'asset_id' => '资产编号',
  91. 'city' => '地市',
  92. 'dpt_sec' => '二级单位',
  93. 'grid' => '网格',
  94. 'oil' => '燃油',
  95. 'maintenance' => '维修',
  96. 'insurance' => '保险',
  97. 'rent' => '租赁',
  98. 'year_check' => '年检费',
  99. 'road_bridge' => '路桥',
  100. 'other' => '其他',
  101. 'mails' => '行驶里程',
  102. 'attend_days' => '出勤天数',
  103. 'alarm_area' => '报警区域',
  104. 'alarm_detail' => '报警规则描述',
  105. 'alarm_time' => '越界时间',
  106. 'is_working' => '是否执行中越界',
  107. ];
  108. }
  109. }