|
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_spop".
*
* The followings are the available columns in table 'pbb.skp_spop':
* @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_spop
* @property integer $siklus_skp_spop
* @property string $kd_kanwil
* @property string $kd_kantor
* @property string $kd_tp
* @property string $nm_wp_skp_spop
* @property string $jln_wp_skp_spop
* @property string $blok_kav_no_wp_skp_spop
* @property string $rw_wp_skp_spop
* @property string $rt_wp_skp_spop
* @property string $kelurahan_wp_skp_spop
* @property string $kota_wp_skp_spop
* @property string $kd_pos_wp_skp_spop
* @property string $npwp_skp_spop
* @property string $no_persil_skp_spop
* @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_spop
* @property string $luas_bumi_skp_spop
* @property string $luas_bng_skp_spop
* @property string $njop_bumi_skp_spop
* @property string $njop_bng_skp_spop
* @property string $njop_skp_spop
* @property integer $njoptkp_skp_spop
* @property double $njkp_skp_spop
* @property string $pbb_terhutang_skp_spop
* @property string $besar_denda_skp_spop
* @property string $faktor_pengurang_skp_spop
* @property string $pbb_yg_harus_dibayar_skp_spop
* @property string $status_pembayaran_skp_spop
* @property string $status_tagihan_skp_spop
* @property string $tgl_terbit_skp_spop
* @property string $tgl_cetak_skp_spop
* @property string $nip_pencetak_skp_spop
* @property integer $createdby
* @property string $createdtime
* @property integer $updatedby
* @property string $updatedtime
*/
class SkpSpop extends CBhumieRecord
{
public $total_siklus;
public $temp_pbb_terhutang;
public $temp_besar_denda;
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 SkpSpop 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_spop';
}
/**
* @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_spop, siklus_skp_spop, kd_kanwil, kd_kantor, kd_tp, nm_wp_skp_spop, jln_wp_skp_spop, tgl_jatuh_tempo_skp_spop, njop_skp_spop, njoptkp_skp_spop, njkp_skp_spop, pbb_terhutang_skp_spop, besar_denda_skp_spop, pbb_yg_harus_dibayar_skp_spop, tgl_terbit_skp_spop, nip_pencetak_skp_spop', 'required'),
array('siklus_skp_spop, njoptkp_skp_spop', 'numerical', 'integerOnly'=>true),
array('njkp_skp_spop', 'numerical'),
array('kd_propinsi, kd_dati2, kd_kanwil, kd_kantor, kd_tp, rw_wp_skp_spop', 'length', 'max'=>2),
array('kd_kecamatan, kd_kelurahan, kd_blok, rt_wp_skp_spop, kd_kls_tanah, kd_kls_bng', 'length', 'max'=>3),
array('no_urut, thn_pajak_skp_spop, thn_awal_kls_tanah, thn_awal_kls_bng', 'length', 'max'=>4),
array('kd_jns_op, status_pembayaran_skp_spop, status_tagihan_skp_spop', 'length', 'max'=>1),
array('nm_wp_skp_spop, jln_wp_skp_spop, kelurahan_wp_skp_spop, kota_wp_skp_spop', 'length', 'max'=>30),
array('blok_kav_no_wp_skp_spop, npwp_skp_spop', 'length', 'max'=>15),
array('kd_pos_wp_skp_spop, no_persil_skp_spop', 'length', 'max'=>5),
array('nip_pencetak_skp_spop', 'length', 'max'=>18),
array('luas_bumi_skp_spop, luas_bng_skp_spop, njop_bumi_skp_spop, njop_bng_skp_spop, faktor_pengurang_skp_spop, tgl_cetak_skp_spop', '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_spop, siklus_skp_spop, kd_kanwil, kd_kantor, kd_tp, nm_wp_skp_spop, jln_wp_skp_spop, blok_kav_no_wp_skp_spop, rw_wp_skp_spop, rt_wp_skp_spop, kelurahan_wp_skp_spop, kota_wp_skp_spop, kd_pos_wp_skp_spop, npwp_skp_spop, no_persil_skp_spop, kd_kls_tanah, thn_awal_kls_tanah, kd_kls_bng, thn_awal_kls_bng, tgl_jatuh_tempo_skp_spop, luas_bumi_skp_spop, luas_bng_skp_spop, njop_bumi_skp_spop, njop_bng_skp_spop, njop_skp_spop, njoptkp_skp_spop, njkp_skp_spop, pbb_terhutang_skp_spop, besar_denda_skp_spop, faktor_pengurang_skp_spop, pbb_yg_harus_dibayar_skp_spop, status_pembayaran_skp_spop, status_tagihan_skp_spop, tgl_terbit_skp_spop, tgl_cetak_skp_spop, nip_pencetak_skp_spop, 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_spop' => 'Thn Pajak Skp Spop',
'siklus_skp_spop' => 'Siklus Skp Spop',
'kd_kanwil' => 'Kd Kanwil',
'kd_kantor' => 'Kd Kantor',
'kd_tp' => 'Kd Tp',
'nm_wp_skp_spop' => 'Nm Wp Skp Spop',
'jln_wp_skp_spop' => 'Jln Wp Skp Spop',
'blok_kav_no_wp_skp_spop' => 'Blok Kav No Wp Skp Spop',
'rw_wp_skp_spop' => 'Rw Wp Skp Spop',
'rt_wp_skp_spop' => 'Rt Wp Skp Spop',
'kelurahan_wp_skp_spop' => 'Kelurahan Wp Skp Spop',
'kota_wp_skp_spop' => 'Kota Wp Skp Spop',
'kd_pos_wp_skp_spop' => 'Kd Pos Wp Skp Spop',
'npwp_skp_spop' => 'Npwp Skp Spop',
'no_persil_skp_spop' => 'No Persil Skp Spop',
'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_spop' => 'Tgl Jatuh Tempo Skp Spop',
'luas_bumi_skp_spop' => 'Luas Bumi Skp Spop',
'luas_bng_skp_spop' => 'Luas Bng Skp Spop',
'njop_bumi_skp_spop' => 'Njop Bumi Skp Spop',
'njop_bng_skp_spop' => 'Njop Bng Skp Spop',
'njop_skp_spop' => 'Njop Skp Spop',
'njoptkp_skp_spop' => 'Njoptkp Skp Spop',
'njkp_skp_spop' => 'Njkp Skp Spop',
'pbb_terhutang_skp_spop' => 'Pbb Terhutang Skp Spop',
'besar_denda_skp_spop' => 'Besar Denda Skp Spop',
'faktor_pengurang_skp_spop' => 'Faktor Pengurang Skp Spop',
'pbb_yg_harus_dibayar_skp_spop' => 'Pbb Yg Harus Dibayar Skp Spop',
'status_pembayaran_skp_spop' => 'Status Pembayaran Skp Spop',
'status_tagihan_skp_spop' => 'Status Tagihan Skp Spop',
'tgl_terbit_skp_spop' => 'Tgl Terbit Skp Spop',
'tgl_cetak_skp_spop' => 'Tgl Cetak Skp Spop',
'nip_pencetak_skp_spop' => 'Nip Pencetak Skp Spop',
);
}
/**
* 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_spop',$this->thn_pajak_skp_spop,true);
$criteria->compare('siklus_skp_spop',$this->siklus_skp_spop);
$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('nm_wp_skp_spop',$this->nm_wp_skp_spop,true);
$criteria->compare('jln_wp_skp_spop',$this->jln_wp_skp_spop,true);
$criteria->compare('blok_kav_no_wp_skp_spop',$this->blok_kav_no_wp_skp_spop,true);
$criteria->compare('rw_wp_skp_spop',$this->rw_wp_skp_spop,true);
$criteria->compare('rt_wp_skp_spop',$this->rt_wp_skp_spop,true);
$criteria->compare('kelurahan_wp_skp_spop',$this->kelurahan_wp_skp_spop,true);
$criteria->compare('kota_wp_skp_spop',$this->kota_wp_skp_spop,true);
$criteria->compare('kd_pos_wp_skp_spop',$this->kd_pos_wp_skp_spop,true);
$criteria->compare('npwp_skp_spop',$this->npwp_skp_spop,true);
$criteria->compare('no_persil_skp_spop',$this->no_persil_skp_spop,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_spop',$this->tgl_jatuh_tempo_skp_spop,true);
$criteria->compare('luas_bumi_skp_spop',$this->luas_bumi_skp_spop,true);
$criteria->compare('luas_bng_skp_spop',$this->luas_bng_skp_spop,true);
$criteria->compare('njop_bumi_skp_spop',$this->njop_bumi_skp_spop,true);
$criteria->compare('njop_bng_skp_spop',$this->njop_bng_skp_spop,true);
$criteria->compare('njop_skp_spop',$this->njop_skp_spop,true);
$criteria->compare('njoptkp_skp_spop',$this->njoptkp_skp_spop);
$criteria->compare('njkp_skp_spop',$this->njkp_skp_spop);
$criteria->compare('pbb_terhutang_skp_spop',$this->pbb_terhutang_skp_spop,true);
$criteria->compare('besar_denda_skp_spop',$this->besar_denda_skp_spop,true);
$criteria->compare('faktor_pengurang_skp_spop',$this->faktor_pengurang_skp_spop,true);
$criteria->compare('pbb_yg_harus_dibayar_skp_spop',$this->pbb_yg_harus_dibayar_skp_spop,true);
$criteria->compare('status_pembayaran_skp_spop',$this->status_pembayaran_skp_spop,true);
$criteria->compare('status_tagihan_skp_spop',$this->status_tagihan_skp_spop,true);
$criteria->compare('tgl_terbit_skp_spop',$this->tgl_terbit_skp_spop,true);
$criteria->compare('tgl_cetak_skp_spop',$this->tgl_cetak_skp_spop,true);
$criteria->compare('nip_pencetak_skp_spop',$this->nip_pencetak_skp_spop,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 infoSkpspopJoinTempDataop($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_skp_spop,
t.kd_kanwil,
t.kd_kantor,
t.kd_tp,
t.besar_denda_skp_spop,
b.temp_nm_wp,
b.temp_jalan_wp,
b.temp_blok_kav_no_wp,
b.temp_rw_wp,
b.temp_rt_wp,
t.kelurahan_wp_skp_spop,
t.kota_wp_skp_spop,
t.kd_pos_wp_skp_spop,
t.npwp_skp_spop,
t.no_persil_skp_spop,
TO_CHAR(b.temp_tgl_jatuh_tempo,'DD/MM/YYYY') as tgl_jatuh_tempo_skp_spop,
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,
t.njkp_skp_spop,
b.temp_pbb_terhutang,
b.temp_pbb_yg_harus_dibayar,
t.status_pembayaran_skp_spop,
t.faktor_pengurang_skp_spop,
t.status_tagihan_skp_spop,
TO_CHAR(t.tgl_terbit_skp_spop,'DD/MM/YYYY') as tgl_terbit_skp_spop,
TO_CHAR(t.tgl_cetak_skp_spop,'DD/MM/YYYY') as tgl_cetak_skp_spop,
t.nip_pencetak_skp_spop")
->from('pbb.skp_spop 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_skp_spop = \''.$thn_pajak_sppt.'\'
')
->queryRow();
return $user;
}
}