FYearCarCost.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. namespace app\modules\car\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%f_year_car_cost}}".
  6. *
  7. * @property int $id 序号
  8. * @property string|null $city 地市
  9. * @property string|null $sec_unit 二级单位
  10. * @property string|null $grid 网格
  11. * @property float|null $oil_costs 燃油
  12. * @property float|null $repair_costs 维修
  13. * @property float|null $rent_costs 租赁
  14. * @property float|null $insurance_costs 保险
  15. * @property float|null $road_bridge_costs 路桥
  16. * @property float|null $year_check_costs 年检
  17. * @property float|null $other_costs 其他
  18. * @property float|null $operating_costs 月运行费用合计
  19. * @property float|null $sum_costs 月总费用合计
  20. * @property int|null $year 年
  21. * @property int|null $month 月
  22. */
  23. class FYearCarCost extends \app\common\models\EActiveRecord
  24. {
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public static function tableName()
  29. {
  30. return '{{%f_year_car_cost}}';
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['oil_costs', 'repair_costs', 'rent_costs', 'insurance_costs', 'road_bridge_costs', 'year_check_costs', 'other_costs', 'operating_costs', 'sum_costs'], 'number'],
  39. [['year', 'month'], 'integer'],
  40. [['city', 'sec_unit', 'grid'], 'string', 'max' => 255],
  41. ];
  42. }
  43. /**
  44. * {@inheritdoc}
  45. */
  46. public function attributeLabels()
  47. {
  48. return [
  49. 'id' => '序号',
  50. 'city' => '地市',
  51. 'sec_unit' => '二级单位',
  52. 'grid' => '网格',
  53. 'oil_costs' => '燃油',
  54. 'repair_costs' => '维修',
  55. 'rent_costs' => '租赁',
  56. 'insurance_costs' => '保险',
  57. 'road_bridge_costs' => '路桥',
  58. 'year_check_costs' => '年检',
  59. 'other_costs' => '其他',
  60. 'operating_costs' => '月运行费用合计',
  61. 'sum_costs' => '月总费用合计',
  62. 'year' => '年',
  63. 'month' => '月',
  64. ];
  65. }
  66. }