public function actionFingerEmpSave()
 {
     if (!Yii::$app->user->isGuest) {
         $model = new Kar_finger();
         if ($model->load(Yii::$app->request->post())) {
             //$model->CREATED_BY = Yii::$app->user->identity->username;
             //$model->CREATED_AT = date('Y-m-d H:i:s');
             $model->save();
             return $this->redirect(['index']);
         } else {
             return ActiveForm::validate($model);
         }
     }
 }
 /**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = Kar_finger::find();
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     $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(['NO_URUT' => $this->NO_URUT, 'UPDT' => $this->UPDT]);
     $query->andFilterWhere(['like', 'TerminalID', $this->TerminalID])->andFilterWhere(['like', 'KAR_ID', $this->KAR_ID])->andFilterWhere(['like', 'FingerPrintID', $this->FingerPrintID])->andFilterWhere(['like', 'FingerTmpl', $this->FingerTmpl]);
     return $dataProvider;
 }