示例#1
0
 public function auth2_saved()
 {
     if ($this->validate()) {
         $NotulenModul = NotulenModul::find()->where(['NOTULEN_ID' => $this->NotuID])->one();
         $NotulenModul->SIGN_STT2 = 1;
         $NotulenModul->SIG2_ID = $this->getProfile()->EMP_ID;
         $NotulenModul->SIG2_NM = $this->getProfile()->EMP_NM . ' ' . $this->getProfile()->EMP_NM_BLK;
         $NotulenModul->save();
         return $NotulenModul;
     }
     return null;
 }
示例#2
0
 protected function findModul($id)
 {
     if (($model = NotulenModul::find(['NOTULEN_ID' => $id])) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }