public function actionGetTabIsi($tab)
 {
     // if ($tab==1){
     // $searchModelMaintain = new DraftPlanDetailSearch();
     // $dataProviderMaintain = $searchModelMaintain->search(Yii::$app->request->queryParams);
     // echo json_encode($dataProviderMaintain);
     // };
     if ($tab == 0) {
         $searchModelPlan = new DraftPlanSearch();
         $dataProviderPlan = $searchModelPlan->search(Yii::$app->request->queryParams);
         return $dataProviderPlan;
     } elseif ($tab == 1) {
         $searchModelMaintain = new DraftPlanDetailSearch();
         $dataProviderMaintain = $searchModelMaintain->search(Yii::$app->request->queryParams);
         return Json::encode($dataProviderMaintain);
     } elseif ($tab == 4) {
         $searchModelGrp = new DraftPlanGroupSearch();
         $searchModelUser = new UserloginSearch();
         $dataProviderGrp = $searchModelGrp->search(Yii::$app->request->queryParams);
         $dataProviderUser = $searchModelUser->searchgroupplan(Yii::$app->request->queryParams);
         return $dataProviderGrp->getTotalCount() + $dataProviderUser->getTotalCount();
     } else {
         return 0;
     }
 }
 /**
  * Lists all DraftPlanGroup models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new DraftPlanGroupSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }