/**
  * Lists all DtDefsheetDevices models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new DtDefsheetDevicesSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
示例#2
0
 /**
  * Открыть документ Акт Списания.
  * @param integer $id
  * @return mixed
  */
 public function actionView($id)
 {
     $ddsDeviceSearch = new DtDefsheetDevicesSearch();
     $ddsDeviceProvider = $ddsDeviceSearch->search(Yii::$app->request->queryParams);
     return $this->render('view', ['model' => $this->findModel($id), 'ddsDeviceSearch' => $ddsDeviceSearch, 'ddsDeviceProvider' => $ddsDeviceProvider]);
 }