public function searchh($params)
 {
     $query = TabelSbu::find();
     $dataProvider = new ActiveDataProvider(['query' => $query, 'pagination' => ['pageSize' => 5]]);
     $this->load($params);
     if (!$this->validate()) {
         // uncomment the following line if you do not want to return any records when validation fails
         // $query->where('0=1');
         return $dataProvider;
     }
     $query->andFilterWhere(['BIAYA12' => $this->BIAYA12, 'BIAYA' => $this->BIAYA, '_NullFlags' => $this->_NullFlags, 'TAHUN' => $this->TAHUN, 'id' => $this->id]);
     $query->andFilterWhere(['like', 'KDSBU12', $this->KDSBU12])->andFilterWhere(['like', 'KDSBU', $this->KDSBU])->andFilterWhere(['like', 'NMSBU', $this->NMSBU])->andFilterWhere(['like', 'SATUAN', $this->SATUAN])->andFilterWhere(['like', 'KETERANGAN', $this->KETERANGAN])->andFilterWhere(['like', 'NMITEM', $this->NMITEM])->andFilterWhere(['like', 'SATKEG', $this->SATKEG]);
     return $dataProvider;
 }
 /**
  * Finds the TabelSbu model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return TabelSbu the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = TabelSbu::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }