/**
  * Lists all OrdersTransport models.
  * @return mixed
  */
 public function actionIndex($error = null)
 {
     //$searchModel = new OrderTransportSearch();
     if ($error == "1") {
         $error = "<i class='fa fa-warning'></i> ไม่สามารถ ลบ หรือ แก้ไข รายการนี้ได้ เนื่องจากมีการขนส่งของไปแล้ว ... !";
     } else {
         $error = "";
     }
     $searchModel = new AssignSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'error' => $error]);
 }
Example #2
0
 /**
  * Lists all Assign models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new AssignSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }