public function actionMaintainPlanTab() { $aryStt = [['STATUS' => 0, 'STT_NM' => 'Draft'], ['STATUS' => 1, 'STT_NM' => 'Approve']]; $valStt = ArrayHelper::map($aryStt, 'STATUS', 'STT_NM'); $searchModelMaintain = new DraftPlanDetailSearch(); $dataProviderMaintain = $searchModelMaintain->search(Yii::$app->request->queryParams); $htmlMaintainPlan = $this->renderAjax('_indexMaintainPlan', ['searchModelMaintain' => $searchModelMaintain, 'dataProviderMaintain' => $dataProviderMaintain, 'dropcus' => self::ary_customers(), 'valStt' => $valStt, 'pekan' => self::getPekan(), 'layer_nm' => self::layer_nm(), 'scdl_group' => self::get_arygeoplandetail2()]); return Json::encode($htmlMaintainPlan); //return $htmlMaintainPlan; //return "ok"; }
/** * Lists all DraftPlanDetail models. * @return mixed */ public function actionIndex() { $searchModel = new DraftPlanDetailSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }