48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use common\models\LISLabCodeMapping;
|
||
|
|
use yii\helpers\Html;
|
||
|
|
use yii\helpers\Url;
|
||
|
|
use yii\grid\ActionColumn;
|
||
|
|
use yii\grid\GridView;
|
||
|
|
|
||
|
|
/** @var yii\web\View $this */
|
||
|
|
/** @var backend\models\LISLabCodeMappingSearch $searchModel */
|
||
|
|
/** @var yii\data\ActiveDataProvider $dataProvider */
|
||
|
|
|
||
|
|
$this->title = 'Lis Lab Code Mappings';
|
||
|
|
$this->params['breadcrumbs'][] = $this->title;
|
||
|
|
?>
|
||
|
|
<div class="lislab-code-mapping-index">
|
||
|
|
|
||
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
||
|
|
|
||
|
|
<p>
|
||
|
|
<?= Html::a('Create Lis Lab Code Mapping', ['create'], ['class' => 'btn btn-success']) ?>
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<?php // echo $this->render('_search', ['model' => $searchModel]);
|
||
|
|
?>
|
||
|
|
|
||
|
|
<?= GridView::widget([
|
||
|
|
'dataProvider' => $dataProvider,
|
||
|
|
'filterModel' => $searchModel,
|
||
|
|
'columns' => [
|
||
|
|
['class' => 'yii\grid\SerialColumn'],
|
||
|
|
|
||
|
|
'TestID',
|
||
|
|
'TestCode',
|
||
|
|
'TestName',
|
||
|
|
'PROLAB_LabID',
|
||
|
|
'LISName',
|
||
|
|
[
|
||
|
|
'class' => ActionColumn::className(),
|
||
|
|
'urlCreator' => function ($action, LISLabCodeMapping $model, $key, $index, $column) {
|
||
|
|
return Url::toRoute([$action, 'TestID' => $model->TestID, 'PROLAB_LabID' => $model->PROLAB_LabID]);
|
||
|
|
}
|
||
|
|
],
|
||
|
|
],
|
||
|
|
]); ?>
|
||
|
|
|
||
|
|
|
||
|
|
</div>
|