Commit 9618f851 by Andre Sihombing

Memperbaiki CRUD

parent 642d63ea
......@@ -3,16 +3,16 @@
namespace backend\modules\ubux\controllers;
use Yii;
use backend\modules\ubux\models\Pegawai;
use backend\modules\ubux\models\search\PegawaiSearch;
use backend\modules\ubux\models\Satpam;
use backend\modules\ubux\models\search\SatpamSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* PegawaiController implements the CRUD actions for Pegawai model.
* SatpamController implements the CRUD actions for Satpam model.
*/
class PegawaiController extends Controller
class SatpamController extends Controller
{
public function behaviors()
{
Please register or sign in to reply
......@@ -27,12 +27,12 @@ class PegawaiController extends Controller
}
/**
* Lists all Pegawai models.
* Lists all Satpam models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new PegawaiSearch();
$searchModel = new SatpamSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
......@@ -42,7 +42,7 @@ class PegawaiController extends Controller
}
/**
* Displays a single Pegawai model.
* Displays a single Satpam model.
* @param integer $id
* @return mixed
*/
......@@ -54,16 +54,16 @@ class PegawaiController extends Controller
}
/**
* Creates a new Pegawai model.
* Creates a new Satpam model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new Pegawai();
$model = new Satpam();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->pegawai_id]);
return $this->redirect(['view', 'id' => $model->satpam_id]);
} else {
return $this->render('create', [
Please register or sign in to reply
'model' => $model,
......@@ -72,7 +72,7 @@ class PegawaiController extends Controller
}
/**
* Updates an existing Pegawai model.
* Updates an existing Satpam model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
......@@ -82,7 +82,7 @@ class PegawaiController extends Controller
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->pegawai_id]);
return $this->redirect(['view', 'id' => $model->satpam_id]);
} else {
return $this->render('update', [
Please register or sign in to reply
'model' => $model,
......@@ -91,7 +91,7 @@ class PegawaiController extends Controller
}
/**
* Deletes an existing Pegawai model.
* Deletes an existing Satpam model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
......@@ -104,15 +104,15 @@ class PegawaiController extends Controller
}
/**
* Finds the Pegawai model based on its primary key value.
* Finds the Satpam model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return Pegawai the loaded model
* @return Satpam the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = Pegawai::findOne($id)) !== null) {
if (($model = Satpam::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
......
<?php
namespace backend\modules\ubux\models;
use Yii;
use common\behaviors\TimestampBehavior;
use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "mref_r_golongan_darah".
*
* @property integer $golongan_darah_id
* @property string $nama
* @property string $desc
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_by
* @property string $created_at
* @property string $updated_by
* @property string $updated_at
*
* @property DimxDim[] $dimxDims
* @property HrdxPegawai[] $hrdxPegawais
*/
class GolonganDarah extends \yii\db\ActiveRecord
{
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'mref_r_golongan_darah';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['desc'], 'string'],
[['deleted'], 'integer'],
[['deleted_at', 'created_at', 'updated_at'], 'safe'],
[['nama'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'golongan_darah_id' => 'Golongan Darah ID',
'nama' => 'Nama',
'desc' => 'Desc',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_by' => 'Created By',
'created_at' => 'Created At',
'updated_by' => 'Updated By',
'updated_at' => 'Updated At',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getDimxDims()
{
return $this->hasMany(DimxDim::className(), ['golongan_darah_id' => 'golongan_darah_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxPegawais()
{
return $this->hasMany(HrdxPegawai::className(), ['golongan_darah_id' => 'golongan_darah_id']);
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use common\behaviors\TimestampBehavior;
use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "mref_r_jabatan_akademik".
*
* @property integer $jabatan_akademik_id
* @property string $nama
* @property string $desc
* @property string $created_at
* @property string $updated_at
* @property string $created_by
* @property string $updated_by
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
*
* @property HrdxDosen[] $hrdxDosens
* @property HrdxPegawai[] $hrdxPegawais
*/
class JabatanAkademik extends \yii\db\ActiveRecord
{
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'mref_r_jabatan_akademik';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['nama'], 'required'],
[['desc'], 'string'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['deleted'], 'integer'],
[['nama'], 'string', 'max' => 45],
[['created_by', 'updated_by', 'deleted_by'], 'string', 'max' => 32]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'jabatan_akademik_id' => 'Jabatan Akademik ID',
'nama' => 'Nama',
'desc' => 'Desc',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'created_by' => 'Created By',
'updated_by' => 'Updated By',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxDosens()
{
return $this->hasMany(HrdxDosen::className(), ['jabatan_akademik_id' => 'jabatan_akademik_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxPegawais()
{
return $this->hasMany(HrdxPegawai::className(), ['jabatan_akademik_id' => 'jabatan_akademik_id']);
}
}
......@@ -13,7 +13,7 @@ use common\behaviors\DeleteBehavior;
*
* @property integer $jam_kerja_id
* @property string $total_absen
* @property integer $pegawai_id
* @property integer $satpam_id
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
......@@ -23,7 +23,7 @@ use common\behaviors\DeleteBehavior;
* @property string $updated_by
*
* @property UbuxGaji[] $ubuxGajis
* @property HrdxPegawai $pegawai
* @property UbuxSatpam $satpam
*/
class JamKerja extends \yii\db\ActiveRecord
{
......@@ -61,11 +61,11 @@ class JamKerja extends \yii\db\ActiveRecord
{
return [
[['total_absen'], 'required'],
[['pegawai_id', 'deleted'], 'integer'],
[['satpam_id', 'deleted'], 'integer'],
[['deleted_at', 'created_at', 'updated_at'], 'safe'],
[['total_absen'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32],
[['pegawai_id'], 'exist', 'skipOnError' => true, 'targetClass' => Pegawai::className(), 'targetAttribute' => ['pegawai_id' => 'pegawai_id']]
[['satpam_id'], 'exist', 'skipOnError' => true, 'targetClass' => Satpam::className(), 'targetAttribute' => ['satpam_id' => 'satpam_id']]
];
}
......@@ -77,7 +77,7 @@ class JamKerja extends \yii\db\ActiveRecord
return [
'jam_kerja_id' => 'Jam Kerja ID',
'total_absen' => 'Total Absen',
'pegawai_id' => 'Pegawai ID',
'satpam_id' => 'Satpam ID',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
......@@ -99,8 +99,8 @@ class JamKerja extends \yii\db\ActiveRecord
/**
* @return \yii\db\ActiveQuery
*/
public function getPegawai()
public function getSatpam()
{
return $this->hasOne(Pegawai::className(), ['pegawai_id' => 'pegawai_id']);
return $this->hasOne(UbuxSatpam::className(), ['satpam_id' => 'satpam_id']);
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use common\behaviors\TimestampBehavior;
use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "mref_r_jenis_kelamin".
*
* @property integer $jenis_kelamin_id
* @property string $nama
* @property string $desc
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_by
* @property string $created_at
* @property string $updated_by
* @property string $updated_at
*
* @property DimxDim[] $dimxDims
* @property HrdxPegawai[] $hrdxPegawais
*/
class JenisKelamin extends \yii\db\ActiveRecord
{
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'mref_r_jenis_kelamin';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['desc'], 'string'],
[['deleted'], 'integer'],
[['deleted_at', 'created_at', 'updated_at'], 'safe'],
[['nama'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'jenis_kelamin_id' => 'Jenis Kelamin ID',
'nama' => 'Nama',
'desc' => 'Desc',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_by' => 'Created By',
'created_at' => 'Created At',
'updated_by' => 'Updated By',
'updated_at' => 'Updated At',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getDimxDims()
{
return $this->hasMany(DimxDim::className(), ['jenis_kelamin_id' => 'jenis_kelamin_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxPegawais()
{
return $this->hasMany(HrdxPegawai::className(), ['jenis_kelamin_id' => 'jenis_kelamin_id']);
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use common\behaviors\TimestampBehavior;
use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "mref_r_kabupaten".
*
* @property integer $kabupaten_id
* @property string $nama
* @property string $desc
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_by
* @property string $created_at
* @property string $updated_by
* @property string $updated_at
*
* @property HrdxPegawai[] $hrdxPegawais
* @property MrefRAsalSekolah[] $mrefRAsalSekolahs
*/
class Kabupaten extends \yii\db\ActiveRecord
{
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'mref_r_kabupaten';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['desc'], 'string'],
[['deleted'], 'integer'],
[['deleted_at', 'created_at', 'updated_at'], 'safe'],
[['nama'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'kabupaten_id' => 'Kabupaten ID',
'nama' => 'Nama',
'desc' => 'Desc',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_by' => 'Created By',
'created_at' => 'Created At',
'updated_by' => 'Updated By',
'updated_at' => 'Updated At',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxPegawais()
{
return $this->hasMany(HrdxPegawai::className(), ['kabupaten_id' => 'kabupaten_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getMrefRAsalSekolahs()
{
return $this->hasMany(MrefRAsalSekolah::className(), ['kabupaten_id' => 'kabupaten_id']);
}
}
......@@ -31,7 +31,7 @@ class Laporan extends \yii\db\ActiveRecord
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
/*public function behaviors(){
/* public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
......
......@@ -87,7 +87,7 @@ use common\behaviors\DeleteBehavior;
* @property LppmTPublikasi[] $lppmTPublikasis
* @property PrklCourseUnit[] $prklCourseUnits
* @property PrklKrsMhs[] $prklKrsMhs
* @property UbuxJamKerja[] $ubuxJamKerjas
* @property UbuxSatpam[] $ubuxSatpams
*/
class Pegawai extends \yii\db\ActiveRecord
{
......@@ -96,7 +96,7 @@ class Pegawai extends \yii\db\ActiveRecord
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
/*public function behaviors(){
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
......@@ -108,7 +108,7 @@ class Pegawai extends \yii\db\ActiveRecord
'class' => DeleteBehavior::className(),
]
];
}*/
}
/**
* @inheritdoc
......@@ -141,16 +141,16 @@ class Pegawai extends \yii\db\ActiveRecord
[['ext_num'], 'string', 'max' => 3],
[['jabatan', 'status_akhir', 'status'], 'string', 'max' => 1],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32],
[['jenis_kelamin_id'], 'exist', 'skipOnError' => true, 'targetClass' => JenisKelamin::className(), 'targetAttribute' => ['jenis_kelamin_id' => 'jenis_kelamin_id']],
[['agama_id'], 'exist', 'skipOnError' => true, 'targetClass' => Agama::className(), 'targetAttribute' => ['agama_id' => 'agama_id']],
[['golongan_darah_id'], 'exist', 'skipOnError' => true, 'targetClass' => GolonganDarah::className(), 'targetAttribute' => ['golongan_darah_id' => 'golongan_darah_id']],
[['jabatan_akademik_id'], 'exist', 'skipOnError' => true, 'targetClass' => JabatanAkademik::className(), 'targetAttribute' => ['jabatan_akademik_id' => 'jabatan_akademik_id']],
[['kabupaten_id'], 'exist', 'skipOnError' => true, 'targetClass' => Kabupaten::className(), 'targetAttribute' => ['kabupaten_id' => 'kabupaten_id']],
[['ref_kbk_id'], 'exist', 'skipOnError' => true, 'targetClass' => Prodi::className(), 'targetAttribute' => ['ref_kbk_id' => 'ref_kbk_id']]
/*[['status_aktif_pegawai_id'], 'exist', 'skipOnError' => true, 'targetClass' => StatusAktifPegawai::className(), 'targetAttribute' => ['status_aktif_pegawai_id' => 'status_aktif_pegawai_id']],
[['status_ikatan_kerja_pegawai_id'], 'exist', 'skipOnError' => true, 'targetClass' => StatusIkatanKerjaPegawai::className(), 'targetAttribute' => ['status_ikatan_kerja_pegawai_id' => 'status_ikatan_kerja_pegawai_id']],
[['status_marital_id'], 'exist', 'skipOnError' => true, 'targetClass' => StatusMarital::className(), 'targetAttribute' => ['status_marital_id' => 'status_marital_id']],
[['user_id'], 'exist', 'skipOnError' => true, 'targetClass' => SysxUser::className(), 'targetAttribute' => ['user_id' => 'user_id']]*/
[['jenis_kelamin_id'], 'exist', 'skipOnError' => true, 'targetClass' => MrefRJenisKelamin::className(), 'targetAttribute' => ['jenis_kelamin_id' => 'jenis_kelamin_id']],
[['agama_id'], 'exist', 'skipOnError' => true, 'targetClass' => MrefRAgama::className(), 'targetAttribute' => ['agama_id' => 'agama_id']],
[['golongan_darah_id'], 'exist', 'skipOnError' => true, 'targetClass' => MrefRGolonganDarah::className(), 'targetAttribute' => ['golongan_darah_id' => 'golongan_darah_id']],
[['jabatan_akademik_id'], 'exist', 'skipOnError' => true, 'targetClass' => MrefRJabatanAkademik::className(), 'targetAttribute' => ['jabatan_akademik_id' => 'jabatan_akademik_id']],
[['kabupaten_id'], 'exist', 'skipOnError' => true, 'targetClass' => MrefRKabupaten::className(), 'targetAttribute' => ['kabupaten_id' => 'kabupaten_id']],
[['ref_kbk_id'], 'exist', 'skipOnError' => true, 'targetClass' => InstProdi::className(), 'targetAttribute' => ['ref_kbk_id' => 'ref_kbk_id']],
[['status_aktif_pegawai_id'], 'exist', 'skipOnError' => true, 'targetClass' => MrefRStatusAktifPegawai::className(), 'targetAttribute' => ['status_aktif_pegawai_id' => 'status_aktif_pegawai_id']],
[['status_ikatan_kerja_pegawai_id'], 'exist', 'skipOnError' => true, 'targetClass' => MrefRStatusIkatanKerjaPegawai::className(), 'targetAttribute' => ['status_ikatan_kerja_pegawai_id' => 'status_ikatan_kerja_pegawai_id']],
[['status_marital_id'], 'exist', 'skipOnError' => true, 'targetClass' => MrefRStatusMarital::className(), 'targetAttribute' => ['status_marital_id' => 'status_marital_id']],
[['user_id'], 'exist', 'skipOnError' => true, 'targetClass' => SysxUser::className(), 'targetAttribute' => ['user_id' => 'user_id']]
];
}
......@@ -395,8 +395,8 @@ class Pegawai extends \yii\db\ActiveRecord
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxJamKerjas()
public function getUbuxSatpams()
{
return $this->hasMany(UbuxJamKerja::className(), ['pegawai_id' => 'pegawai_id']);
return $this->hasMany(UbuxSatpam::className(), ['pegawai_id' => 'pegawai_id']);
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use common\behaviors\TimestampBehavior;
use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "inst_prodi".
*
* @property integer $ref_kbk_id
* @property string $kbk_id
* @property string $kpt_id
* @property integer $jenjang_id
* @property string $kbk_ind
* @property string $singkatan_prodi
* @property string $kbk_ing
* @property string $nama_kopertis_ind
* @property string $nama_kopertis_ing
* @property string $short_desc_ind
* @property string $short_desc_ing
* @property string $desc_ind
* @property string $desc_ing
* @property integer $status
* @property integer $is_jenjang_all
* @property integer $is_public
* @property integer $is_hidden
* @property string $updated_at
* @property string $created_by
* @property string $updated_by
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_at
*
* @property DimxDim[] $dimxDims
* @property HrdxDosen[] $hrdxDosens
* @property HrdxPegawai[] $hrdxPegawais
* @property HrdxStaf[] $hrdxStafs
* @property InstRJenjang $jenjang
* @property KrkmKuliah[] $krkmKuliahs
* @property KrkmKuliahProdi[] $krkmKuliahProdis
* @property KrkmKurikulumProdi[] $krkmKurikulumProdis
*/
class Prodi extends \yii\db\ActiveRecord
{
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'inst_prodi';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['jenjang_id', 'status', 'is_jenjang_all', 'is_public', 'is_hidden', 'deleted'], 'integer'],
[['desc_ind', 'desc_ing'], 'string'],
[['updated_at', 'deleted_at', 'created_at'], 'safe'],
[['kbk_id'], 'string', 'max' => 20],
[['kpt_id'], 'string', 'max' => 10],
[['kbk_ind', 'kbk_ing'], 'string', 'max' => 100],
[['singkatan_prodi'], 'string', 'max' => 50],
[['nama_kopertis_ind', 'nama_kopertis_ing', 'short_desc_ind', 'short_desc_ing'], 'string', 'max' => 255],
[['created_by', 'deleted_by'], 'string', 'max' => 32],
[['updated_by'], 'string', 'max' => 45],
[['kbk_id'], 'unique'],
[['jenjang_id'], 'exist', 'skipOnError' => true, 'targetClass' => InstRJenjang::className(), 'targetAttribute' => ['jenjang_id' => 'jenjang_id']]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'ref_kbk_id' => 'Ref Kbk ID',
'kbk_id' => 'Kbk ID',
'kpt_id' => 'Kpt ID',
'jenjang_id' => 'Jenjang ID',
'kbk_ind' => 'Kbk Ind',
'singkatan_prodi' => 'Singkatan Prodi',
'kbk_ing' => 'Kbk Ing',
'nama_kopertis_ind' => 'Nama Kopertis Ind',
'nama_kopertis_ing' => 'Nama Kopertis Ing',
'short_desc_ind' => 'Short Desc Ind',
'short_desc_ing' => 'Short Desc Ing',
'desc_ind' => 'Desc Ind',
'desc_ing' => 'Desc Ing',
'status' => 'Status',
'is_jenjang_all' => 'Is Jenjang All',
'is_public' => 'Is Public',
'is_hidden' => 'Is Hidden',
'updated_at' => 'Updated At',
'created_by' => 'Created By',
'updated_by' => 'Updated By',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_at' => 'Created At',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getDimxDims()
{
return $this->hasMany(DimxDim::className(), ['ref_kbk_id' => 'ref_kbk_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxDosens()
{
return $this->hasMany(HrdxDosen::className(), ['prodi_id' => 'ref_kbk_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxPegawais()
{
return $this->hasMany(HrdxPegawai::className(), ['ref_kbk_id' => 'ref_kbk_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxStafs()
{
return $this->hasMany(HrdxStaf::className(), ['prodi_id' => 'ref_kbk_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getJenjang()
{
return $this->hasOne(InstRJenjang::className(), ['jenjang_id' => 'jenjang_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getKrkmKuliahs()
{
return $this->hasMany(KrkmKuliah::className(), ['ref_kbk_id' => 'ref_kbk_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getKrkmKuliahProdis()
{
return $this->hasMany(KrkmKuliahProdi::className(), ['ref_kbk_id' => 'ref_kbk_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getKrkmKurikulumProdis()
{
return $this->hasMany(KrkmKurikulumProdi::className(), ['ref_kbk_id' => 'ref_kbk_id']);
}
}
......@@ -9,30 +9,31 @@ use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "mref_r_agama".
* This is the model class for table "ubux_satpam".
*
* @property integer $agama_id
* @property string $nama
* @property string $desc
* @property integer $satpam_id
* @property string $aktif_star
* @property string $aktif_end
* @property integer $pegawai_id
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_by
* @property string $created_at
* @property string $updated_by
* @property string $updated_at
* @property string $created_by
* @property string $update_at
* @property string $update_by
*
* @property DimxDim[] $dimxDims
* @property HrdxPegawai[] $hrdxPegawais
* @property UbuxJamKerja[] $ubuxJamKerjas
* @property HrdxPegawai $pegawai
*/
class Agama extends \yii\db\ActiveRecord
class Satpam extends \yii\db\ActiveRecord
{
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
/*public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
......@@ -44,14 +45,14 @@ class Agama extends \yii\db\ActiveRecord
'class' => DeleteBehavior::className(),
]
];
}
}*/
/**
* @inheritdoc
*/
public static function tableName()
{
return 'mref_r_agama';
return 'ubux_satpam';
}
/**
......@@ -60,12 +61,10 @@ class Agama extends \yii\db\ActiveRecord
public function rules()
{
return [
[['nama'], 'required'],
[['desc'], 'string'],
[['deleted'], 'integer'],
[['deleted_at', 'created_at', 'updated_at'], 'safe'],
[['nama'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32]
[['aktif_star', 'aktif_end', 'deleted_at', 'created_at', 'update_at'], 'safe'],
[['pegawai_id', 'deleted'], 'integer'],
[['deleted_by', 'created_by', 'update_by'], 'string', 'max' => 32],
[['pegawai_id'], 'exist', 'skipOnError' => true, 'targetClass' => Pegawai::className(), 'targetAttribute' => ['pegawai_id' => 'pegawai_id']]
];
}
......@@ -75,32 +74,33 @@ class Agama extends \yii\db\ActiveRecord
public function attributeLabels()
{
return [
'agama_id' => 'Agama ID',
'nama' => 'Nama',
'desc' => 'Desc',
'satpam_id' => 'Satpam ID',
'aktif_star' => 'Aktif Star',
'aktif_end' => 'Aktif End',
'pegawai_id' => 'Pegawai ID',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_by' => 'Created By',
'created_at' => 'Created At',
'updated_by' => 'Updated By',
'updated_at' => 'Updated At',
'created_by' => 'Created By',
'update_at' => 'Update At',
'update_by' => 'Update By',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getDimxDims()
public function getUbuxJamKerjas()
{
return $this->hasMany(DimxDim::className(), ['agama_id' => 'agama_id']);
return $this->hasMany(UbuxJamKerja::className(), ['satpam_id' => 'satpam_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxPegawais()
public function getPegawai()
{
return $this->hasMany(HrdxPegawai::className(), ['agama_id' => 'agama_id']);
return $this->hasOne(HrdxPegawai::className(), ['pegawai_id' => 'pegawai_id']);
}
}
......@@ -18,8 +18,8 @@ class JamKerjaSearch extends JamKerja
public function rules()
{
return [
[['jam_kerja_id', 'pegawai_id'], 'integer'],
[['total_absen'], 'safe'],
[['jam_kerja_id', 'satpam_id', 'deleted'], 'integer'],
[['total_absen', 'deleted_at', 'deleted_by', 'created_at', 'updated_at', 'created_by', 'updated_by'], 'safe'],
];
}
......@@ -57,10 +57,17 @@ class JamKerjaSearch extends JamKerja
$query->andFilterWhere([
'jam_kerja_id' => $this->jam_kerja_id,
'pegawai_id' => $this->pegawai_id,
'satpam_id' => $this->satpam_id,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
]);
$query->andFilterWhere(['like', 'total_absen', $this->total_absen]);
$query->andFilterWhere(['like', 'total_absen', $this->total_absen])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by]);
return $dataProvider;
}
......
......@@ -5,12 +5,12 @@ namespace backend\modules\ubux\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\Pegawai;
use backend\modules\ubux\models\Satpam;
/**
* PegawaiSearch represents the model behind the search form about `backend\modules\ubux\models\Pegawai`.
* SatpamSearch represents the model behind the search form about `backend\modules\ubux\models\Satpam`.
*/
class PegawaiSearch extends Pegawai
class SatpamSearch extends Satpam
{
/**
* @inheritdoc
......@@ -18,8 +18,8 @@ class PegawaiSearch extends Pegawai
public function rules()
{
return [
[['pegawai_id', 'ref_kbk_id', 'agama_id', 'jenis_kelamin_id', 'golongan_darah_id', 'kabupaten_id', 'jabatan_akademik_id', 'gbk_1', 'gbk_2', 'status_ikatan_kerja_pegawai_id', 'status_aktif_pegawai_id', 'status_marital_id', 'user_id', 'deleted'], 'integer'],
[['profile_old_id', 'nama', 'user_name', 'nip', 'kpt_no', 'kbk_id', 'alias', 'posisi', 'tempat_lahir', 'tgl_lahir', 'hp', 'telepon', 'alamat', 'alamat_libur', 'kecamatan', 'kota', 'kode_pos', 'no_ktp', 'email', 'ext_num', 'study_area_1', 'study_area_2', 'jabatan', 'status_akhir', 'tanggal_masuk', 'tanggal_keluar', 'nama_bapak', 'nama_ibu', 'status', 'nama_p', 'tgl_lahir_p', 'tmp_lahir_p', 'pekerjaan_ortu', 'deleted_at', 'deleted_by', 'created_by', 'created_at', 'updated_by', 'updated_at'], 'safe'],
[['satpam_id', 'pegawai_id', 'deleted'], 'integer'],
[['aktif_star', 'aktif_end', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'update_at', 'update_by'], 'safe'],
];
}
......@@ -41,7 +41,7 @@ class PegawaiSearch extends Pegawai
*/
public function search($params)
{
$query = Pegawai::find();
$query = Satpam::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
......@@ -56,61 +56,19 @@ class PegawaiSearch extends Pegawai
}
$query->andFilterWhere([
'satpam_id' => $this->satpam_id,
'aktif_star' => $this->aktif_star,
'aktif_end' => $this->aktif_end,
'pegawai_id' => $this->pegawai_id,
'ref_kbk_id' => $this->ref_kbk_id,
'tgl_lahir' => $this->tgl_lahir,
'agama_id' => $this->agama_id,
'jenis_kelamin_id' => $this->jenis_kelamin_id,
'golongan_darah_id' => $this->golongan_darah_id,
'kabupaten_id' => $this->kabupaten_id,
'jabatan_akademik_id' => $this->jabatan_akademik_id,
'gbk_1' => $this->gbk_1,
'gbk_2' => $this->gbk_2,
'status_ikatan_kerja_pegawai_id' => $this->status_ikatan_kerja_pegawai_id,
'status_aktif_pegawai_id' => $this->status_aktif_pegawai_id,
'tanggal_masuk' => $this->tanggal_masuk,
'tanggal_keluar' => $this->tanggal_keluar,
'status_marital_id' => $this->status_marital_id,
'tgl_lahir_p' => $this->tgl_lahir_p,
'user_id' => $this->user_id,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
'update_at' => $this->update_at,
]);
$query->andFilterWhere(['like', 'profile_old_id', $this->profile_old_id])
->andFilterWhere(['like', 'nama', $this->nama])
->andFilterWhere(['like', 'user_name', $this->user_name])
->andFilterWhere(['like', 'nip', $this->nip])
->andFilterWhere(['like', 'kpt_no', $this->kpt_no])
->andFilterWhere(['like', 'kbk_id', $this->kbk_id])
->andFilterWhere(['like', 'alias', $this->alias])
->andFilterWhere(['like', 'posisi', $this->posisi])
->andFilterWhere(['like', 'tempat_lahir', $this->tempat_lahir])
->andFilterWhere(['like', 'hp', $this->hp])
->andFilterWhere(['like', 'telepon', $this->telepon])
->andFilterWhere(['like', 'alamat', $this->alamat])
->andFilterWhere(['like', 'alamat_libur', $this->alamat_libur])
->andFilterWhere(['like', 'kecamatan', $this->kecamatan])
->andFilterWhere(['like', 'kota', $this->kota])
->andFilterWhere(['like', 'kode_pos', $this->kode_pos])
->andFilterWhere(['like', 'no_ktp', $this->no_ktp])
->andFilterWhere(['like', 'email', $this->email])
->andFilterWhere(['like', 'ext_num', $this->ext_num])
->andFilterWhere(['like', 'study_area_1', $this->study_area_1])
->andFilterWhere(['like', 'study_area_2', $this->study_area_2])
->andFilterWhere(['like', 'jabatan', $this->jabatan])
->andFilterWhere(['like', 'status_akhir', $this->status_akhir])
->andFilterWhere(['like', 'nama_bapak', $this->nama_bapak])
->andFilterWhere(['like', 'nama_ibu', $this->nama_ibu])
->andFilterWhere(['like', 'status', $this->status])
->andFilterWhere(['like', 'nama_p', $this->nama_p])
->andFilterWhere(['like', 'tmp_lahir_p', $this->tmp_lahir_p])
->andFilterWhere(['like', 'pekerjaan_ortu', $this->pekerjaan_ortu])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
$query->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by]);
->andFilterWhere(['like', 'update_by', $this->update_by]);
return $dataProvider;
}
......
......@@ -24,7 +24,7 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'nama')->textInput(['maxlength' => true]) ?>
<!-- <?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
......@@ -38,7 +38,7 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jam_kerja_id')->textInput() ?> -->
<?= $form->field($model, 'jam_kerja_id')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
......
......@@ -25,13 +25,13 @@ $this->params['breadcrumbs'][] = $this->title;
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'gaji_id',
//'gaji_id',
'tanggal_scan',
'tanggal',
'jam',
'pin',
// 'nip',
// 'nama',
'nip',
'nama',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
......
......@@ -35,14 +35,14 @@ $this->params['breadcrumbs'][] = $this->title;
'pin',
'nip',
'nama',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'jam_kerja_id',
/*'deleted',
'deleted_at',
'deleted_by',
'created_at',
'created_by',
'updated_at',
'updated_by',
'jam_kerja_id',*/
],
]) ?>
......
......@@ -14,7 +14,7 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'total_absen')->textInput(['maxlength' => true]) ?>
<!-- <?= $form->field($model, 'pegawai_id')->textInput() ?>
<!-- <?= $form->field($model, 'satpam_id')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
......@@ -28,8 +28,8 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?> -->
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
......
......@@ -19,7 +19,7 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'total_absen') ?>
<?= $form->field($model, 'pegawai_id') ?>
<?= $form->field($model, 'satpam_id') ?>
<?= $form->field($model, 'deleted') ?>
......
......@@ -27,7 +27,7 @@ $this->params['breadcrumbs'][] = $this->title;
'jam_kerja_id',
'total_absen',
'pegawai_id',
'satpam_id',
'deleted',
'deleted_at',
// 'deleted_by',
......
......@@ -30,15 +30,15 @@ $this->params['breadcrumbs'][] = $this->title;
'attributes' => [
//'jam_kerja_id',
'total_absen',
// 'pegawai_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'updated_at',
// 'created_by',
// 'updated_by',
],
// 'satpam_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'updated_at',
// 'created_by',
// 'updated_by',
],
]) ?>
</div>
......@@ -28,7 +28,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?= DetailView::widget([
'model' => $model,
'attributes' => [
// 'laporan_id',
//'laporan_id',
'bulan_laporan',
// 'gaji_id',
// 'deleted',
......
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Pegawai */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="pegawai-form">
<?php $form = ActiveForm::begin(); ?>
<!-- <?= $form->field($model, 'profile_old_id')->textInput(['maxlength' => true]) ?> -->
<?= $form->field($model, 'nama')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'user_name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nip')->textInput(['maxlength' => true]) ?>
<!-- <?= $form->field($model, 'kpt_no')->textInput(['maxlength' => true]) ?> -->
<!-- <?= $form->field($model, 'kbk_id')->textInput(['maxlength' => true]) ?> -->
<!-- <?= $form->field($model, 'ref_kbk_id')->textInput() ?> -->
<!-- <?= $form->field($model, 'alias')->textInput(['maxlength' => true]) ?> -->
<?= $form->field($model, 'posisi')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tempat_lahir')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tgl_lahir')->textInput() ?>
<!-- <?= $form->field($model, 'agama_id')->textInput() ?>
<?= $form->field($model, 'jenis_kelamin_id')->textInput() ?>
<?= $form->field($model, 'golongan_darah_id')->textInput() ?> -->
<?= $form->field($model, 'hp')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'telepon')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'alamat')->textInput() ?>
<!-- <?= $form->field($model, 'alamat_libur')->textInput(['maxlength' => true]) ?> -->
<?= $form->field($model, 'kecamatan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kota')->textInput(['maxlength' => true]) ?>
<!-- <?= $form->field($model, 'kabupaten_id')->textInput() ?>
<?= $form->field($model, 'kode_pos')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'no_ktp')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'email')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'ext_num')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'study_area_1')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'study_area_2')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jabatan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jabatan_akademik_id')->textInput() ?>
<?= $form->field($model, 'gbk_1')->textInput() ?>
<?= $form->field($model, 'gbk_2')->textInput() ?>
<?= $form->field($model, 'status_ikatan_kerja_pegawai_id')->textInput() ?>
<?= $form->field($model, 'status_akhir')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status_aktif_pegawai_id')->textInput() ?>
<?= $form->field($model, 'tanggal_masuk')->textInput() ?>
<?= $form->field($model, 'tanggal_keluar')->textInput() ?>
<?= $form->field($model, 'nama_bapak')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nama_ibu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status_marital_id')->textInput() ?>
<?= $form->field($model, 'nama_p')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tgl_lahir_p')->textInput() ?>
<?= $form->field($model, 'tmp_lahir_p')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pekerjaan_ortu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'user_id')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\search\PegawaiSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="pegawai-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'pegawai_id') ?>
<?= $form->field($model, 'profile_old_id') ?>
<?= $form->field($model, 'nama') ?>
<?= $form->field($model, 'user_name') ?>
<?= $form->field($model, 'nip') ?>
<?php // echo $form->field($model, 'kpt_no') ?>
<?php // echo $form->field($model, 'kbk_id') ?>
<?php // echo $form->field($model, 'ref_kbk_id') ?>
<?php // echo $form->field($model, 'alias') ?>
<?php // echo $form->field($model, 'posisi') ?>
<?php // echo $form->field($model, 'tempat_lahir') ?>
<?php // echo $form->field($model, 'tgl_lahir') ?>
<?php // echo $form->field($model, 'agama_id') ?>
<?php // echo $form->field($model, 'jenis_kelamin_id') ?>
<?php // echo $form->field($model, 'golongan_darah_id') ?>
<?php // echo $form->field($model, 'hp') ?>
<?php // echo $form->field($model, 'telepon') ?>
<?php // echo $form->field($model, 'alamat') ?>
<?php // echo $form->field($model, 'alamat_libur') ?>
<?php // echo $form->field($model, 'kecamatan') ?>
<?php // echo $form->field($model, 'kota') ?>
<?php // echo $form->field($model, 'kabupaten_id') ?>
<?php // echo $form->field($model, 'kode_pos') ?>
<?php // echo $form->field($model, 'no_ktp') ?>
<?php // echo $form->field($model, 'email') ?>
<?php // echo $form->field($model, 'ext_num') ?>
<?php // echo $form->field($model, 'study_area_1') ?>
<?php // echo $form->field($model, 'study_area_2') ?>
<?php // echo $form->field($model, 'jabatan') ?>
<?php // echo $form->field($model, 'jabatan_akademik_id') ?>
<?php // echo $form->field($model, 'gbk_1') ?>
<?php // echo $form->field($model, 'gbk_2') ?>
<?php // echo $form->field($model, 'status_ikatan_kerja_pegawai_id') ?>
<?php // echo $form->field($model, 'status_akhir') ?>
<?php // echo $form->field($model, 'status_aktif_pegawai_id') ?>
<?php // echo $form->field($model, 'tanggal_masuk') ?>
<?php // echo $form->field($model, 'tanggal_keluar') ?>
<?php // echo $form->field($model, 'nama_bapak') ?>
<?php // echo $form->field($model, 'nama_ibu') ?>
<?php // echo $form->field($model, 'status') ?>
<?php // echo $form->field($model, 'status_marital_id') ?>
<?php // echo $form->field($model, 'nama_p') ?>
<?php // echo $form->field($model, 'tgl_lahir_p') ?>
<?php // echo $form->field($model, 'tmp_lahir_p') ?>
<?php // echo $form->field($model, 'pekerjaan_ortu') ?>
<?php // echo $form->field($model, 'user_id') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\search\PegawaiSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Pegawais';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="pegawai-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Pegawai', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'pegawai_id',
'profile_old_id',
'nama',
'user_name',
'nip',
// 'kpt_no',
// 'kbk_id',
// 'ref_kbk_id',
// 'alias',
// 'posisi',
// 'tempat_lahir',
// 'tgl_lahir',
// 'agama_id',
// 'jenis_kelamin_id',
// 'golongan_darah_id',
// 'hp',
// 'telepon',
// 'alamat',
// 'alamat_libur',
// 'kecamatan',
// 'kota',
// 'kabupaten_id',
// 'kode_pos',
// 'no_ktp',
// 'email:ntext',
// 'ext_num',
// 'study_area_1',
// 'study_area_2',
// 'jabatan',
// 'jabatan_akademik_id',
// 'gbk_1',
// 'gbk_2',
// 'status_ikatan_kerja_pegawai_id',
// 'status_akhir',
// 'status_aktif_pegawai_id',
// 'tanggal_masuk',
// 'tanggal_keluar',
// 'nama_bapak',
// 'nama_ibu',
// 'status',
// 'status_marital_id',
// 'nama_p',
// 'tgl_lahir_p',
// 'tmp_lahir_p',
// 'pekerjaan_ortu',
// 'user_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_by',
// 'created_at',
// 'updated_by',
// 'updated_at',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Pegawai */
$this->title = $model->pegawai_id;
$this->params['breadcrumbs'][] = ['label' => 'Pegawais', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="pegawai-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->pegawai_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->pegawai_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
//'pegawai_id',
//'profile_old_id',
'nama',
'user_name',
'nip',
'kpt_no',
// 'kbk_id',
// 'ref_kbk_id',
// 'alias',
'posisi',
'tempat_lahir',
'tgl_lahir',
//'agama_id',
// 'jenis_kelamin_id',
// 'golongan_darah_id',
'hp',
'telepon',
'alamat',
// 'alamat_libur',
'kecamatan',
'kota',
// 'kabupaten_id',
// 'kode_pos',
// 'no_ktp',
// 'email:ntext',
// 'ext_num',
// 'study_area_1',
// 'study_area_2',
// 'jabatan',
// 'jabatan_akademik_id',
// 'gbk_1',
// 'gbk_2',
// 'status_ikatan_kerja_pegawai_id',
// 'status_akhir',
// 'status_aktif_pegawai_id',
// 'tanggal_masuk',
// 'tanggal_keluar',
// 'nama_bapak',
// 'nama_ibu',
// 'status',
// 'status_marital_id',
// 'nama_p',
// 'tgl_lahir_p',
// 'tmp_lahir_p',
// 'pekerjaan_ortu',
// 'user_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_by',
// 'created_at',
// 'updated_by',
// 'updated_at',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Satpam */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="satpam-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'aktif_star')->textInput() ?>
<?= $form->field($model, 'aktif_end')->textInput() ?>
<!-- <?= $form->field($model, 'pegawai_id')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'update_at')->textInput() ?>
<?= $form->field($model, 'update_by')->textInput(['maxlength' => true]) ?> -->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\search\SatpamSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="satpam-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'satpam_id') ?>
<?= $form->field($model, 'aktif_star') ?>
<?= $form->field($model, 'aktif_end') ?>
<?= $form->field($model, 'pegawai_id') ?>
<?= $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'update_at') ?>
<?php // echo $form->field($model, 'update_by') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
......@@ -4,13 +4,13 @@ use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Pegawai */
/* @var $model backend\modules\ubux\models\Satpam */
$this->title = 'Create Pegawai';
$this->params['breadcrumbs'][] = ['label' => 'Pegawais', 'url' => ['index']];
$this->title = 'Create Satpam';
$this->params['breadcrumbs'][] = ['label' => 'Satpams', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="pegawai-create">
<div class="satpam-create">
<h1><?= Html::encode($this->title) ?></h1>
......
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\search\SatpamSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Satpams';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="satpam-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Satpam', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'satpam_id',
'aktif_star',
'aktif_end',
'pegawai_id',
'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'update_at',
// 'update_by',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
......@@ -3,14 +3,14 @@
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Pegawai */
/* @var $model backend\modules\ubux\models\Satpam */
$this->title = 'Update Pegawai: ' . ' ' . $model->pegawai_id;
$this->params['breadcrumbs'][] = ['label' => 'Pegawais', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->pegawai_id, 'url' => ['view', 'id' => $model->pegawai_id]];
$this->title = 'Update Satpam: ' . ' ' . $model->satpam_id;
$this->params['breadcrumbs'][] = ['label' => 'Satpams', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->satpam_id, 'url' => ['view', 'id' => $model->satpam_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="pegawai-update">
<div class="satpam-update">
<h1><?= Html::encode($this->title) ?></h1>
......
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Satpam */
$this->title = $model->satpam_id;
$this->params['breadcrumbs'][] = ['label' => 'Satpams', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="satpam-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->satpam_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->satpam_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
// 'satpam_id',
'aktif_star',
'aktif_end',
// 'pegawai_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'update_at',
// 'update_by',
],
]) ?>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment