<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "lis_result_test_list".
 *
 * @property int $ID
 * @property int $HisResultID
 * @property string $TestCode
 * @property string $TestName
 * @property string $TestRemark
 * @property string $InformCriticalByCode
 * @property string $InformCriticalBy
 * @property string $InformCriticalTo
 * @property string $InformCriticalDateTime
 * @property string $CriticalFlag
 * @property string $ReportResultByCode
 * @property string $ReportResultBy
 * @property string $ReportResultDateTime
 * @property string $ApproveResultByCode
 * @property string $ApproveResultBy
 * @property string $ApproveResultDateTime
 */

class LisResultTestList extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'lis_result_test_list';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['HisResultID', 'TestCode', 'TestName', 'TestRemark', 'InformCriticalByCode', 'InformCriticalBy', 'InformCriticalTo', 'InformCriticalDateTime', 'CriticalFlag', 'ReportResultByCode', 'ReportResultBy', 'ReportResultDateTime', 'ApproveResultByCode', 'ApproveResultBy', 'ApproveResultDateTime'], 'required'],
            [['HisResultID'], 'integer'],
            [['InformCriticalDateTime', 'ReportResultDateTime', 'ApproveResultDateTime'], 'safe'],
            [['TestCode'], 'string', 'max' => 20],
            [['TestName', 'InformCriticalByCode', 'InformCriticalBy', 'InformCriticalTo', 'ReportResultByCode', 'ReportResultBy', 'ApproveResultByCode', 'ApproveResultBy'], 'string', 'max' => 120],
            [['TestRemark'], 'string', 'max' => 500],
            [['CriticalFlag'], 'string', 'max' => 1],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'ID' => 'ID',
            'HisResultID' => 'His Result ID',
            'TestCode' => 'Test Code',
            'TestName' => 'Test Name',
            'TestRemark' => 'Test Remark',
            'InformCriticalByCode' => 'Inform Critical By Code',
            'InformCriticalBy' => 'Inform Critical By',
            'InformCriticalTo' => 'Inform Critical To',
            'InformCriticalDateTime' => 'Inform Critical Date Time',
            'CriticalFlag' => 'Critical Flag',
            'ReportResultByCode' => 'Report Result By Code',
            'ReportResultBy' => 'Report Result By',
            'ReportResultDateTime' => 'Report Result Date Time',
            'ApproveResultByCode' => 'Approve Result By Code',
            'ApproveResultBy' => 'Approve Result By',
            'ApproveResultDateTime' => 'Approve Result Date Time',
        ];
    }
}
