示例#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
 public function getNotulenTbl2()
 {
     return $this->hasOne(NotulenModul::className(), ['NOTULEN_ID' => 'id']);
 }
 /**
  * Finds the NotulenModul model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param string $id
  * @return NotulenModul the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = NotulenModul::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }