|
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/protected/models/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* This is the model class for table "pbb.dat_jpb2".
*
* The followings are the available columns in table 'pbb.dat_jpb2':
* @property string $id_cetak
* @property string $nop
* @property string $no_bng
* @property string $nama_wp
* @property string $npwp
* @property string $total_njop
* @property string $njop_bumi_m2
* @property string $njop_bumi_nilai
* @property string $njop_bng_m2
* @property string $njop_bng_nilai
* @property string $njop_bumi_beban_m2
* @property string $njop_bumi_beban_nilai
* @property string $njop_bng_beban_m2
* @property string $njop_bng_beban_nilai
* @property string $nm_jpb
* @property string $kd_kanwil
* @property string $kd_kantor
* @property string $nip_pencetak
* @property integer $createdby
* @property string $createdtime
* @property integer $updatedby
* @property string $updatedtime
*/
class CetakSknjop extends CBhumieRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return CetakSknjop 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.cetak_sknjop';
}
/**
* @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('id_cetak, nop, nama_wp, total_njop, njop_bumi_m2, njop_bng_m2, njop_bumi_beban_m2, njop_bng_beban_m2, nm_jpb, kd_kanwil, kd_kantor', 'required'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('id_cetak, nop, nama_wp, npwp, jalan_wp, blok_kav_no_wp, rw_wp, rt_wp, jalan_op, blok_kav_no_op, rw_op, rt_op, total_luas_bumi, total_luas_bng, total_njop, njop_bumi_m2, njop_bng_m2, luas_bumi_beban, luas_bng_beban, njop_bumi_beban, njop_bng_beban, njop_bumi_beban_m2, njop_bng_beban_m2, nm_jpb, jns_bumi, kd_kanwil, kd_kantor, nip_pencetak, 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(
'id_cetak' => 'ID Cetak',
'no' => 'No',
'nop' => 'NOP',
'nama_wp' => 'Nama WP',
'npwp' => 'NPWP',
'total_njop' => 'Total NJOP',
'njop_bumi_m2' => 'NJOP Bumi M2',
'njop_bng_m2' => 'NJOP Bangunan M2',
'njop_bumi_beban_m2' => 'NJOP Bumi Beban M2',
'njop_bng_beban_m2' => 'NJOP Bangunan Beban M2',
'nm_jpb' => 'Nama JPB',
'kd_kanwil' => 'Kode Kanwil',
'kd_kantor' => 'Kode Kantor',
'nip_pencetak' => 'NIP Pencetak',
'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('id_cetak',$this->tahun,true);
$criteria->compare('nop',$this->nop,true);
$criteria->compare('nama_wp',$this->nama_wp,true);
$criteria->compare('npwp',$this->npwp,true);
$criteria->compare('total_njop',$this->total_njop,true);
$criteria->compare('njop_bumi_m2',$this->njop_bumi_m2,true);
$criteria->compare('njop_bng_m2',$this->njop_bng_m2,true);
$criteria->compare('njop_bumi_beban_m2',$this->njop_bumi_beban_m2,true);
$criteria->compare('njop_bng_beban_m2',$this->njop_bng_beban_m2,true);
$criteria->compare('nm_jpb',$this->nm_jpb,true);
$criteria->compare('kd_kanwil',$this->kd_kanwil,true);
$criteria->compare('kd_kantor',$this->kd_kantor,true);
$criteria->compare('nip_pencetak',$this->nip_pencetak,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,
));
}
}