1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_operating_cost_monitor}}".
- *
- * @property int $id 序号
- * @property int $car_id 外键关联f_car_infor(car_id)
- * @property float|null $oil_costs 油料费
- * @property float|null $insurance_costs 保险费
- * @property float|null $repair_costs 维修费用
- * @property float|null $road_bridge_costs 路桥费
- * @property float|null $sum_cost 合计
- * @property int|null $year 归属年份
- * @property int|null $month 归属月份
- */
- class FOperatingCostMonitor extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_operating_cost_monitor}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['car_id'], 'required'],
- [['car_id', 'year', 'month'], 'integer'],
- [['oil_costs', 'insurance_costs', 'repair_costs', 'road_bridge_costs', 'sum_cost'], 'number'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '序号',
- 'car_id' => '外键关联f_car_infor(car_id)',
- 'oil_costs' => '油料费',
- 'insurance_costs' => '保险费',
- 'repair_costs' => '维修费用',
- 'road_bridge_costs' => '路桥费',
- 'sum_cost' => '合计',
- 'year' => '归属年份',
- 'month' => '归属月份',
- ];
- }
- }
|