Commit 642d63ea by Andre Sihombing

Initial commit

parent ecf944ea
<?php
namespace backend\modules\ubux\controllers;
use yii\web\Controller;
/**
* Default controller for the `ubux` module
*/
class DefaultController extends Controller
{
/**
* Renders the index view for the module
* @return string
*/
public function actionIndex()
{
return $this->render('index');
}
}
<?php
namespace backend\modules\ubux\controllers;
use Yii;
use backend\modules\ubux\models\Gaji;
use backend\modules\ubux\models\search\GajiSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* GajiController implements the CRUD actions for Gaji model.
*/
class GajiController extends Controller
{
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all Gaji models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new GajiSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single Gaji model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new Gaji model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new Gaji();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->gaji_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing Gaji model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
*/
public function actionUpdate($id)
{
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->gaji_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing Gaji model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->delete();
return $this->redirect(['index']);
}
/**
* Finds the Gaji model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return Gaji the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = Gaji::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\ubux\controllers;
use Yii;
use backend\modules\ubux\models\JamKerja;
use backend\modules\ubux\models\search\JamKerjaSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* JamKerjaController implements the CRUD actions for JamKerja model.
*/
class JamKerjaController extends Controller
{
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all JamKerja models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new JamKerjaSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single JamKerja model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new JamKerja model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new JamKerja();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->jam_kerja_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing JamKerja model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
*/
public function actionUpdate($id)
{
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->jam_kerja_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing JamKerja model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->delete();
return $this->redirect(['index']);
}
/**
* Finds the JamKerja model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return JamKerja the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = JamKerja::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\ubux\controllers;
use Yii;
use backend\modules\ubux\models\Laporan;
use backend\modules\ubux\models\search\LaporanSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* LaporanController implements the CRUD actions for Laporan model.
*/
class LaporanController extends Controller
{
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all Laporan models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new LaporanSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single Laporan model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new Laporan model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new Laporan();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->laporan_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing Laporan model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
*/
public function actionUpdate($id)
{
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->laporan_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing Laporan model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->delete();
return $this->redirect(['index']);
}
/**
* Finds the Laporan model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return Laporan the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = Laporan::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\ubux\controllers;
use Yii;
use backend\modules\ubux\models\Pegawai;
use backend\modules\ubux\models\search\PegawaiSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* PegawaiController implements the CRUD actions for Pegawai model.
*/
class PegawaiController extends Controller
{
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all Pegawai models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new PegawaiSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single Pegawai model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new Pegawai model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new Pegawai();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->pegawai_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing Pegawai model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
*/
public function actionUpdate($id)
{
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->pegawai_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing Pegawai model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->delete();
return $this->redirect(['index']);
}
/**
* Finds the Pegawai 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
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = Pegawai::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_agama".
*
* @property integer $agama_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 Agama 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_agama';
}
/**
* @inheritdoc
*/
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]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'agama_id' => 'Agama 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(), ['agama_id' => 'agama_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxPegawais()
{
return $this->hasMany(HrdxPegawai::className(), ['agama_id' => 'agama_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 "ubux_gaji".
*
* @property integer $gaji_id
* @property string $tanggal_scan
* @property string $tanggal
* @property string $jam
* @property integer $pin
* @property integer $nip
* @property string $nama
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
* @property integer $jam_kerja_id
*
* @property UbuxJamKerja $jamKerja
* @property UbuxLaporan[] $ubuxLaporans
*/
class Gaji 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 'ubux_gaji';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['tanggal_scan', 'tanggal', 'jam', 'pin', 'nip', 'nama'], 'required'],
[['tanggal_scan', 'tanggal', 'jam', 'deleted_at', 'created_at', 'updated_at'], 'safe'],
[['pin', 'nip', 'deleted', 'jam_kerja_id'], 'integer'],
[['nama'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32],
[['jam_kerja_id'], 'exist', 'skipOnError' => true, 'targetClass' => JamKerja::className(), 'targetAttribute' => ['jam_kerja_id' => 'jam_kerja_id']]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'gaji_id' => 'Gaji ID',
'tanggal_scan' => 'Tanggal Scan',
'tanggal' => 'Tanggal',
'jam' => 'Jam',
'pin' => 'Pin',
'nip' => 'Nip',
'nama' => 'Nama',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
'jam_kerja_id' => 'Jam Kerja ID',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getJamKerja()
{
return $this->hasOne(UbuxJamKerja::className(), ['jam_kerja_id' => 'jam_kerja_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxLaporans()
{
return $this->hasMany(UbuxLaporan::className(), ['gaji_id' => 'gaji_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_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']);
}
}
<?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 "ubux_jam_kerja".
*
* @property integer $jam_kerja_id
* @property string $total_absen
* @property integer $pegawai_id
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_at
* @property string $updated_at
* @property string $created_by
* @property string $updated_by
*
* @property UbuxGaji[] $ubuxGajis
* @property HrdxPegawai $pegawai
*/
class JamKerja 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 'ubux_jam_kerja';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['total_absen'], 'required'],
[['pegawai_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']]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'jam_kerja_id' => 'Jam Kerja ID',
'total_absen' => 'Total Absen',
'pegawai_id' => 'Pegawai ID',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'created_by' => 'Created By',
'updated_by' => 'Updated By',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxGajis()
{
return $this->hasMany(UbuxGaji::className(), ['jam_kerja_id' => 'jam_kerja_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getPegawai()
{
return $this->hasOne(Pegawai::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 "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']);
}
}
<?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 "ubux_laporan".
*
* @property integer $laporan_id
* @property string $bulan_laporan
* @property integer $gaji_id
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
*
* @property UbuxGaji $gaji
*/
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(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}*/
/**
* @inheritdoc
*/
public static function tableName()
{
return 'ubux_laporan';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['bulan_laporan'], 'required'],
[['gaji_id', 'deleted'], 'integer'],
[['deleted_at', 'created_at', 'updated_at'], 'safe'],
[['bulan_laporan'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32],
[['gaji_id'], 'exist', 'skipOnError' => true, 'targetClass' => Gaji::className(), 'targetAttribute' => ['gaji_id' => 'gaji_id']]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'laporan_id' => 'Laporan ID',
'bulan_laporan' => 'Bulan Laporan',
'gaji_id' => 'Gaji ID',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getGaji()
{
return $this->hasOne(UbuxGaji::className(), ['gaji_id' => 'gaji_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 "hrdx_pegawai".
*
* @property integer $pegawai_id
* @property string $profile_old_id
* @property string $nama
* @property string $user_name
* @property string $nip
* @property string $kpt_no
* @property string $kbk_id
* @property integer $ref_kbk_id
* @property string $alias
* @property string $posisi
* @property string $tempat_lahir
* @property string $tgl_lahir
* @property integer $agama_id
* @property integer $jenis_kelamin_id
* @property integer $golongan_darah_id
* @property string $hp
* @property string $telepon
* @property resource $alamat
* @property string $alamat_libur
* @property string $kecamatan
* @property string $kota
* @property integer $kabupaten_id
* @property string $kode_pos
* @property string $no_ktp
* @property string $email
* @property string $ext_num
* @property string $study_area_1
* @property string $study_area_2
* @property string $jabatan
* @property integer $jabatan_akademik_id
* @property integer $gbk_1
* @property integer $gbk_2
* @property integer $status_ikatan_kerja_pegawai_id
* @property string $status_akhir
* @property integer $status_aktif_pegawai_id
* @property string $tanggal_masuk
* @property string $tanggal_keluar
* @property string $nama_bapak
* @property string $nama_ibu
* @property string $status
* @property integer $status_marital_id
* @property string $nama_p
* @property string $tgl_lahir_p
* @property string $tmp_lahir_p
* @property string $pekerjaan_ortu
* @property integer $user_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 AdakPenugasanPengajaran[] $adakPenugasanPengajarans
* @property AdakRegistrasi[] $adakRegistrasis
* @property HrdxDosen[] $hrdxDosens
* @property MrefRJenisKelamin $jenisKelamin
* @property MrefRAgama $agama
* @property MrefRGolonganDarah $golonganDarah
* @property MrefRJabatanAkademik $jabatanAkademik
* @property MrefRKabupaten $kabupaten
* @property InstProdi $refKbk
* @property MrefRStatusAktifPegawai $statusAktifPegawai
* @property MrefRStatusIkatanKerjaPegawai $statusIkatanKerjaPegawai
* @property MrefRStatusMarital $statusMarital
* @property SysxUser $user
* @property HrdxPengajar[] $hrdxPengajars
* @property HrdxRiwayatPendidikan[] $hrdxRiwayatPendidikans
* @property HrdxStaf[] $hrdxStafs
* @property InstPejabat[] $instPejabats
* @property InvtPicBarang[] $invtPicBarangs
* @property LppmTLogreview[] $lppmTLogreviews
* @property LppmTPublikasi[] $lppmTPublikasis
* @property PrklCourseUnit[] $prklCourseUnits
* @property PrklKrsMhs[] $prklKrsMhs
* @property UbuxJamKerja[] $ubuxJamKerjas
*/
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(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}*/
/**
* @inheritdoc
*/
public static function tableName()
{
return 'hrdx_pegawai';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['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'],
[['tgl_lahir', 'tanggal_masuk', 'tanggal_keluar', 'tgl_lahir_p', 'deleted_at', 'created_at', 'updated_at'], 'safe'],
[['alamat', 'email'], 'string'],
[['profile_old_id', 'kbk_id', 'hp'], 'string', 'max' => 20],
[['nama'], 'string', 'max' => 135],
[['user_name', 'posisi', 'alamat_libur', 'pekerjaan_ortu'], 'string', 'max' => 100],
[['nip', 'telepon'], 'string', 'max' => 45],
[['kpt_no'], 'string', 'max' => 10],
[['alias'], 'string', 'max' => 9],
[['tempat_lahir'], 'string', 'max' => 60],
[['kecamatan'], 'string', 'max' => 150],
[['kota', 'study_area_1', 'study_area_2', 'nama_bapak', 'nama_ibu', 'nama_p', 'tmp_lahir_p'], 'string', 'max' => 50],
[['kode_pos'], 'string', 'max' => 15],
[['no_ktp'], 'string', 'max' => 255],
[['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']]*/
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'pegawai_id' => 'Pegawai ID',
'profile_old_id' => 'Profile Old ID',
'nama' => 'Nama',
'user_name' => 'User Name',
'nip' => 'Nip',
'kpt_no' => 'Kpt No',
'kbk_id' => 'Kbk ID',
'ref_kbk_id' => 'Ref Kbk ID',
'alias' => 'Alias',
'posisi' => 'Posisi',
'tempat_lahir' => 'Tempat Lahir',
'tgl_lahir' => 'Tgl Lahir',
'agama_id' => 'Agama ID',
'jenis_kelamin_id' => 'Jenis Kelamin ID',
'golongan_darah_id' => 'Golongan Darah ID',
'hp' => 'Hp',
'telepon' => 'Telepon',
'alamat' => 'Alamat',
'alamat_libur' => 'Alamat Libur',
'kecamatan' => 'Kecamatan',
'kota' => 'Kota',
'kabupaten_id' => 'Kabupaten ID',
'kode_pos' => 'Kode Pos',
'no_ktp' => 'No Ktp',
'email' => 'Email',
'ext_num' => 'Ext Num',
'study_area_1' => 'Study Area 1',
'study_area_2' => 'Study Area 2',
'jabatan' => 'Jabatan',
'jabatan_akademik_id' => 'Jabatan Akademik ID',
'gbk_1' => 'Gbk 1',
'gbk_2' => 'Gbk 2',
'status_ikatan_kerja_pegawai_id' => 'Status Ikatan Kerja Pegawai ID',
'status_akhir' => 'Status Akhir',
'status_aktif_pegawai_id' => 'Status Aktif Pegawai ID',
'tanggal_masuk' => 'Tanggal Masuk',
'tanggal_keluar' => 'Tanggal Keluar',
'nama_bapak' => 'Nama Bapak',
'nama_ibu' => 'Nama Ibu',
'status' => 'Status',
'status_marital_id' => 'Status Marital ID',
'nama_p' => 'Nama P',
'tgl_lahir_p' => 'Tgl Lahir P',
'tmp_lahir_p' => 'Tmp Lahir P',
'pekerjaan_ortu' => 'Pekerjaan Ortu',
'user_id' => 'User 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',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getAdakPenugasanPengajarans()
{
return $this->hasMany(AdakPenugasanPengajaran::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getAdakRegistrasis()
{
return $this->hasMany(AdakRegistrasi::className(), ['dosen_wali_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxDosens()
{
return $this->hasMany(HrdxDosen::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getJenisKelamin()
{
return $this->hasOne(MrefRJenisKelamin::className(), ['jenis_kelamin_id' => 'jenis_kelamin_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getAgama()
{
return $this->hasOne(MrefRAgama::className(), ['agama_id' => 'agama_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getGolonganDarah()
{
return $this->hasOne(MrefRGolonganDarah::className(), ['golongan_darah_id' => 'golongan_darah_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getJabatanAkademik()
{
return $this->hasOne(MrefRJabatanAkademik::className(), ['jabatan_akademik_id' => 'jabatan_akademik_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getKabupaten()
{
return $this->hasOne(MrefRKabupaten::className(), ['kabupaten_id' => 'kabupaten_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getRefKbk()
{
return $this->hasOne(InstProdi::className(), ['ref_kbk_id' => 'ref_kbk_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getStatusAktifPegawai()
{
return $this->hasOne(MrefRStatusAktifPegawai::className(), ['status_aktif_pegawai_id' => 'status_aktif_pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getStatusIkatanKerjaPegawai()
{
return $this->hasOne(MrefRStatusIkatanKerjaPegawai::className(), ['status_ikatan_kerja_pegawai_id' => 'status_ikatan_kerja_pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getStatusMarital()
{
return $this->hasOne(MrefRStatusMarital::className(), ['status_marital_id' => 'status_marital_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUser()
{
return $this->hasOne(SysxUser::className(), ['user_id' => 'user_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxPengajars()
{
return $this->hasMany(HrdxPengajar::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxRiwayatPendidikans()
{
return $this->hasMany(HrdxRiwayatPendidikan::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getHrdxStafs()
{
return $this->hasMany(HrdxStaf::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getInstPejabats()
{
return $this->hasMany(InstPejabat::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getInvtPicBarangs()
{
return $this->hasMany(InvtPicBarang::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getLppmTLogreviews()
{
return $this->hasMany(LppmTLogreview::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getLppmTPublikasis()
{
return $this->hasMany(LppmTPublikasi::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getPrklCourseUnits()
{
return $this->hasMany(PrklCourseUnit::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getPrklKrsMhs()
{
return $this->hasMany(PrklKrsMhs::className(), ['approved_by' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxJamKerjas()
{
return $this->hasMany(UbuxJamKerja::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']);
}
}
<?php
namespace backend\modules\ubux\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\Gaji;
/**
* GajiSearch represents the model behind the search form about `backend\modules\ubux\models\Gaji`.
*/
class GajiSearch extends Gaji
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['gaji_id', 'pin', 'nip', 'deleted', 'jam_kerja_id'], 'integer'],
[['tanggal_scan', 'tanggal', 'jam', 'nama', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'updated_at', 'updated_by'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = Gaji::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query->andFilterWhere([
'gaji_id' => $this->gaji_id,
'tanggal_scan' => $this->tanggal_scan,
'tanggal' => $this->tanggal,
'jam' => $this->jam,
'pin' => $this->pin,
'nip' => $this->nip,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
'jam_kerja_id' => $this->jam_kerja_id,
]);
$query->andFilterWhere(['like', 'nama', $this->nama])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by]);
return $dataProvider;
}
}
<?php
namespace backend\modules\ubux\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\JamKerja;
/**
* JamKerjaSearch represents the model behind the search form about `backend\modules\ubux\models\JamKerja`.
*/
class JamKerjaSearch extends JamKerja
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['jam_kerja_id', 'pegawai_id'], 'integer'],
[['total_absen'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = JamKerja::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query->andFilterWhere([
'jam_kerja_id' => $this->jam_kerja_id,
'pegawai_id' => $this->pegawai_id,
]);
$query->andFilterWhere(['like', 'total_absen', $this->total_absen]);
return $dataProvider;
}
}
<?php
namespace backend\modules\ubux\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\Laporan;
/**
* LaporanSearch represents the model behind the search form about `backend\modules\ubux\models\Laporan`.
*/
class LaporanSearch extends Laporan
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['laporan_id', 'gaji_id', 'deleted'], 'integer'],
[['bulan_laporan', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'updated_at', 'updated_by'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = Laporan::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query->andFilterWhere([
'laporan_id' => $this->laporan_id,
'gaji_id' => $this->gaji_id,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
]);
$query->andFilterWhere(['like', 'bulan_laporan', $this->bulan_laporan])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by]);
return $dataProvider;
}
}
<?php
namespace backend\modules\ubux\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\Pegawai;
/**
* PegawaiSearch represents the model behind the search form about `backend\modules\ubux\models\Pegawai`.
*/
class PegawaiSearch extends Pegawai
{
/**
* @inheritdoc
*/
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'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = Pegawai::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query->andFilterWhere([
'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,
]);
$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])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by]);
return $dataProvider;
}
}
<?php
namespace backend\modules\ubux;
class ubux extends \yii\base\Module
{
public $controllerNamespace = 'backend\modules\ubux\controllers';
public function init()
{
parent::init();
// custom initialization code goes here
}
}
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Gaji */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="gaji-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'tanggal_scan')->textInput() ?>
<?= $form->field($model, 'tanggal')->textInput() ?>
<?= $form->field($model, 'jam')->textInput() ?>
<?= $form->field($model, 'pin')->textInput() ?>
<?= $form->field($model, 'nip')->textInput() ?>
<?= $form->field($model, 'nama')->textInput(['maxlength' => true]) ?>
<!-- <?= $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, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $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']) ?>
</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\GajiSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="gaji-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'gaji_id') ?>
<?= $form->field($model, 'tanggal_scan') ?>
<?= $form->field($model, 'tanggal') ?>
<?= $form->field($model, 'jam') ?>
<?= $form->field($model, 'pin') ?>
<?php // echo $form->field($model, 'nip') ?>
<?php // echo $form->field($model, 'nama') ?>
<?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_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'jam_kerja_id') ?>
<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;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Gaji */
$this->title = 'Create Gaji';
$this->params['breadcrumbs'][] = ['label' => 'Gajis', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="gaji-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\search\GajiSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Gajis';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="gaji-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Gaji', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'gaji_id',
'tanggal_scan',
'tanggal',
'jam',
'pin',
// 'nip',
// 'nama',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'jam_kerja_id',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Gaji */
$this->title = 'Update Gaji: ' . ' ' . $model->gaji_id;
$this->params['breadcrumbs'][] = ['label' => 'Gajis', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->gaji_id, 'url' => ['view', 'id' => $model->gaji_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="gaji-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Gaji */
$this->title = $model->gaji_id;
$this->params['breadcrumbs'][] = ['label' => 'Gajis', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="gaji-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->gaji_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->gaji_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'gaji_id',
'tanggal_scan',
'tanggal',
'jam',
'pin',
'nip',
'nama',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'jam_kerja_id',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\JamKerja */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="jam-kerja-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'total_absen')->textInput(['maxlength' => true]) ?>
<!-- <?= $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, 'updated_at')->textInput() ?>
<?= $form->field($model, 'created_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>
<?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\JamKerjaSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="jam-kerja-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'jam_kerja_id') ?>
<?= $form->field($model, 'total_absen') ?>
<?= $form->field($model, 'pegawai_id') ?>
<?= $form->field($model, 'deleted') ?>
<?= $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<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;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\JamKerja */
$this->title = 'Create Jam Kerja';
$this->params['breadcrumbs'][] = ['label' => 'Jam Kerjas', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="jam-kerja-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\search\JamKerjaSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Jam Kerjas';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="jam-kerja-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Jam Kerja', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'jam_kerja_id',
'total_absen',
'pegawai_id',
'deleted',
'deleted_at',
// 'deleted_by',
// 'created_at',
// 'updated_at',
// 'created_by',
// 'updated_by',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\JamKerja */
$this->title = 'Update Jam Kerja: ' . ' ' . $model->jam_kerja_id;
$this->params['breadcrumbs'][] = ['label' => 'Jam Kerjas', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->jam_kerja_id, 'url' => ['view', 'id' => $model->jam_kerja_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="jam-kerja-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\JamKerja */
$this->title = $model->jam_kerja_id;
$this->params['breadcrumbs'][] = ['label' => 'Jam Kerjas', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="jam-kerja-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->jam_kerja_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->jam_kerja_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
//'jam_kerja_id',
'total_absen',
// 'pegawai_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'updated_at',
// 'created_by',
// 'updated_by',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Laporan */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="laporan-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'bulan_laporan')->textInput(['maxlength' => true]) ?>
<!-- <?= $form->field($model, 'gaji_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, 'updated_at')->textInput() ?>
<?= $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>
<?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\LaporanSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="laporan-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'laporan_id') ?>
<?= $form->field($model, 'bulan_laporan') ?>
<?= $form->field($model, 'gaji_id') ?>
<?= $form->field($model, 'deleted') ?>
<?= $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, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<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;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Laporan */
$this->title = 'Create Laporan';
$this->params['breadcrumbs'][] = ['label' => 'Laporans', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="laporan-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\search\LaporanSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Laporans';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="laporan-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Laporan', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'laporan_id',
'bulan_laporan',
'gaji_id',
'deleted',
'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Laporan */
$this->title = 'Update Laporan: ' . ' ' . $model->laporan_id;
$this->params['breadcrumbs'][] = ['label' => 'Laporans', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->laporan_id, 'url' => ['view', 'id' => $model->laporan_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="laporan-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Laporan */
$this->title = $model->laporan_id;
$this->params['breadcrumbs'][] = ['label' => 'Laporans', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="laporan-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->laporan_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->laporan_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
// 'laporan_id',
'bulan_laporan',
// 'gaji_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
],
]) ?>
</div>
<?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;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Pegawai */
$this->title = 'Create Pegawai';
$this->params['breadcrumbs'][] = ['label' => 'Pegawais', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="pegawai-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</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;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Pegawai */
$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->params['breadcrumbs'][] = 'Update';
?>
<div class="pegawai-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</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>
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