You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.8 KiB
92 lines
2.8 KiB
<?php
|
|
|
|
namespace common\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "picc_car_t".
|
|
*
|
|
* @property integer $id
|
|
* @property string $regist_no
|
|
* @property string $policy_no
|
|
* @property string $policy_man
|
|
* @property string $car_no
|
|
* @property string $car_no_color
|
|
* @property string $car_model
|
|
* @property string $insurer_begin_time
|
|
* @property string $insurer_end_time
|
|
* @property string $car_man
|
|
* @property string $car_type
|
|
* @property string $engine_no
|
|
* @property string $car_frame_no
|
|
* @property string $car_model_code
|
|
* @property string $register_date
|
|
* @property string $use_type
|
|
* @property string $seats
|
|
* @property string $car_price
|
|
* @property string $car_use_years
|
|
* @property string $department
|
|
* @property string $post
|
|
* @property string $policy_man_address
|
|
* @property string $policy_man_tel
|
|
* @property string $policy_man_phone
|
|
*/
|
|
class PiccCarT extends \common\models\Base
|
|
{
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'picc_car_t';
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['id', 'regist_no', 'policy_no'], 'required'],
|
|
[['id'], 'integer'],
|
|
[['regist_no', 'policy_no', 'car_model', 'department', 'policy_man_address'], 'string', 'max' => 100],
|
|
[['policy_man', 'insurer_begin_time', 'insurer_end_time', 'car_man', 'car_type', 'engine_no', 'car_frame_no', 'car_model_code', 'register_date', 'use_type', 'car_price'], 'string', 'max' => 50],
|
|
[['car_no', 'car_no_color', 'post', 'policy_man_tel', 'policy_man_phone'], 'string', 'max' => 20],
|
|
[['seats', 'car_use_years'], 'string', 'max' => 10],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'regist_no' => 'Regist No',
|
|
'policy_no' => 'Policy No',
|
|
'policy_man' => 'Policy Man',
|
|
'car_no' => 'Car No',
|
|
'car_no_color' => 'Car No Color',
|
|
'car_model' => 'Car Model',
|
|
'insurer_begin_time' => 'Insurer Begin Time',
|
|
'insurer_end_time' => 'Insurer End Time',
|
|
'car_man' => 'Car Man',
|
|
'car_type' => 'Car Type',
|
|
'engine_no' => 'Engine No',
|
|
'car_frame_no' => 'Car Frame No',
|
|
'car_model_code' => 'Car Model Code',
|
|
'register_date' => 'Register Date',
|
|
'use_type' => 'Use Type',
|
|
'seats' => 'Seats',
|
|
'car_price' => 'Car Price',
|
|
'car_use_years' => 'Car Use Years',
|
|
'department' => 'Department',
|
|
'post' => 'Post',
|
|
'policy_man_address' => 'Policy Man Address',
|
|
'policy_man_tel' => 'Policy Man Tel',
|
|
'policy_man_phone' => 'Policy Man Phone',
|
|
];
|
|
}
|
|
}
|
|
|