prolab-api/console/models/EflResultSent.php

77 lines
1.9 KiB
PHP
Executable File

<?php
namespace console\models;
use Yii;
/**
* This is the model class for table "efl_result_sent".
*
* @property int $id
* @property string $lab_no
* @property string|null $riah_doc_id
* @property string|null $riah_doc_date
* @property string $test_code
* @property string $test_name
* @property string|null $cust_id
* @property string $hn
* @property string|null $result_value
* @property string|null $result_unit
* @property string|null $reference_range
* @property int|null $status
* @property int|null $seq
*/
class EflResultSent extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'efl_result_sent';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['riah_doc_id', 'riah_doc_date', 'cust_id', 'result_value', 'result_unit', 'reference_range', 'status', 'seq'], 'default', 'value' => null],
[['lab_no', 'test_code', 'test_name', 'hn'], 'required'],
[['riah_doc_date'], 'safe'],
[['status', 'seq'], 'integer'],
[['lab_no', 'test_code', 'hn', 'result_unit'], 'string', 'max' => 20],
[['riah_doc_id'], 'string', 'max' => 50],
[['test_name'], 'string', 'max' => 120],
[['cust_id'], 'string', 'max' => 10],
[['result_value'], 'string', 'max' => 200],
[['reference_range'], 'string', 'max' => 250],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'lab_no' => 'Lab No',
'riah_doc_id' => 'Riah Doc ID',
'riah_doc_date' => 'Riah Doc Date',
'test_code' => 'Test Code',
'test_name' => 'Test Name',
'cust_id' => 'Cust ID',
'hn' => 'Hn',
'result_value' => 'Result Value',
'result_unit' => 'Result Unit',
'reference_range' => 'Reference Range',
'status' => 'Status',
'seq' => 'Seq',
];
}
}