/**
  * Index
  * @author ptrnov  <*****@*****.**>
  * @since 1.1
  */
 public function actionIndex()
 {
     $searchModelHeader = new SoHeaderSearch();
     $dataProvider = $searchModelHeader->searchHeader(Yii::$app->request->queryParams);
     $dataProviderInbox = $searchModelHeader->searchHeaderInbox(Yii::$app->request->queryParams);
     $dataProviderOutbox = $searchModelHeader->searchHeaderOutbox(Yii::$app->request->queryParams);
     $dataProviderHistory = $searchModelHeader->searchHeaderHistory(Yii::$app->request->queryParams);
     return $this->render('index', ['apSoHeaderInbox' => $dataProviderInbox, 'apSoHeaderOutbox' => $dataProviderOutbox, 'apSoHeaderHistory' => $dataProviderHistory]);
 }
 /**
  * Index
  * @author ptrnov  <*****@*****.**>
  * @since 1.1
  */
 public function actionIndex()
 {
     if (self::getPermission()->BTN_CREATE) {
         $searchModelHeader = new SoHeaderSearch();
         $dataProvider = $searchModelHeader->searchHeader(Yii::$app->request->queryParams);
         $dataProviderInbox = $searchModelHeader->searchHeaderInbox(Yii::$app->request->queryParams);
         $dataProviderOutbox = $searchModelHeader->searchHeaderOutbox(Yii::$app->request->queryParams);
         $dataProviderHistory = $searchModelHeader->searchHeaderHistory(Yii::$app->request->queryParams);
         return $this->render('index', ['apSoHeaderInbox' => $dataProviderInbox, 'apSoHeaderOutbox' => $dataProviderOutbox, 'apSoHeaderHistory' => $dataProviderHistory]);
     } else {
         $this->redirect(array('/site/validasi'));
         //
     }
 }