|
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.dat_subjek_pajak".
*
* The followings are the available columns in table 'pbb.dat_subjek_pajak':
* @property string $subjek_pajak_id
* @property string $nm_wp
* @property string $jalan_wp
* @property string $blok_kav_no_wp
* @property string $rw_wp
* @property string $rt_wp
* @property string $kelurahan_wp
* @property string $kota_wp
* @property string $kd_pos_wp
* @property string $telp_wp
* @property string $npwp
* @property string $status_pekerjaan_wp
* @property integer $createdby
* @property string $createdtime
* @property integer $updatedby
* @property string $updatedtime
*/
class DatSubjekPajak extends CBhumieRecord
{
public $kecamatan;
public $alm_wp;
public $Pilih;
public $listDataSort;
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return DatSubjekPajak 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.dat_subjek_pajak';
}
/**
* @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('subjek_pajak_id, jalan_wp, createdby, createdtime, updatedby, updatedtime', 'required'),
//array('createdby, updatedby', 'numerical', 'integerOnly'=>true),
array('subjek_pajak_id, kelurahan_wp, kota_wp', 'length', 'max'=>30),
array('nm_wp, jalan_wp', 'length', 'max'=>60),
array('blok_kav_no_wp, npwp', 'length', 'max'=>15),
array('rw_wp', 'length', 'max'=>2),
array('rt_wp', 'length', 'max'=>3),
array('kd_pos_wp', 'length', 'max'=>5),
array('telp_wp', 'length', 'max'=>20),
array('handphone', 'length', 'max'=>50),
array('status_pekerjaan_wp', 'length', 'max'=>1),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('subjek_pajak_id, nm_wp, jalan_wp, blok_kav_no_wp, rw_wp, rt_wp, kelurahan_wp, kota_wp, kd_pos_wp, telp_wp, npwp, status_pekerjaan_wp, handphone', 'safe', 'on'=>'search'),
//array('subjek_pajak_id, nm_wp, jalan_wp, blok_kav_no_wp, rw_wp, rt_wp, kelurahan_wp, kota_wp, kd_pos_wp, telp_wp, npwp, status_pekerjaan_wp, 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(
'subjek_pajak_id' => 'No KTP',
'nm_wp' => 'Nama',
'jalan_wp' => 'Jalan',
'blok_kav_no_wp' => 'Blok/Kav/No',
'rw_wp' => 'Rw Wp',
'rt_wp' => 'Rt Wp',
'kelurahan_wp' => 'Kelurahan',
'kota_wp' => 'Kota Wp',
'kd_pos_wp' => 'Kode Pos',
'telp_wp' => 'Telepon',
'npwp' => 'NPWP',
'status_pekerjaan_wp' => 'Pekerjaan',
'createdby' => 'Createdby',
'createdtime' => 'Createdtime',
'updatedby' => 'Updatedby',
'updatedtime' => 'Updatedtime',
'kecamatan'=>'Kecamatan',
'handphone'=>'Handphone',
);
}
/**
* 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('subjek_pajak_id',$this->subjek_pajak_id,true);
$criteria->compare('nm_wp',$this->nm_wp,true);
$criteria->compare('jalan_wp',$this->jalan_wp,true);
$criteria->compare('blok_kav_no_wp',$this->blok_kav_no_wp,true);
$criteria->compare('rw_wp',$this->rw_wp,true);
$criteria->compare('rt_wp',$this->rt_wp,true);
$criteria->compare('kelurahan_wp',$this->kelurahan_wp,true);
$criteria->compare('kota_wp',$this->kota_wp,true);
$criteria->compare('kd_pos_wp',$this->kd_pos_wp,true);
$criteria->compare('telp_wp',$this->telp_wp,true);
$criteria->compare('npwp',$this->npwp,true);
$criteria->compare('status_pekerjaan_wp',$this->status_pekerjaan_wp,true);
$criteria->compare('createdby',$this->createdby);
$criteria->compare('createdtime',$this->createdtime,true);
$criteria->compare('updatedby',$this->updatedby);
$criteria->compare('updatedtime',$this->updatedtime,true);
$criteria->compare('handphone',$this->handphone,true);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
}