public function actionJenisbarangcreate()
 {
     $model = new JenisBarang();
     $this->layout = $this->CheckSession();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['warehouse/jenisbarangindex', 'id' => $model->Jenis_Barang_ID]);
     } else {
         $id = $model->getLastIdJenisBarang();
         $model->Jenis_Barang_ID = $id + 1;
         return $this->render('jenisbarang/create', ['model' => $model]);
     }
 }