AnonSec Team
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  ]

Current File : C:/xampp5/htdocs/bhumie/upload/../protected/models/HisBatalBayarSppt.php
<?php

/**
 * This is the model class for table "pbb.his_batal_bayar_sppt".
 *
 * The followings are the available columns in table 'pbb.his_batal_bayar_sppt':
 * @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_sppt
 * @property integer $his_pembayaran_sppt_ke
 * @property string $his_kd_kanwil
 * @property string $his_kd_kantor
 * @property string $his_kd_tp
 * @property string $his_denda_sppt
 * @property string $his_jml_sppt_yg_dibayar
 * @property string $his_tgl_pembayaran_sppt
 * @property string $his_tgl_rekam_byr_sppt
 * @property string $his_nip_rekam_byr_sppt
 * @property integer $createdby
 * @property string $createdtime
 * @property integer $updatedby
 * @property string $updatedtime
 *
 * The followings are the available model relations:
 * @property Users $updatedby
 * @property Users $createdby
 */
class HisBatalBayarSppt extends CBhumieRecord
{
    public $max_indeks_bayarsppt;
	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'pbb.his_batal_bayar_sppt';
	}

	/**
	 * @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('createdby, createdtime, updatedby, updatedtime', 'required'),
			array('his_pembayaran_sppt_ke', 'numerical', 'integerOnly'=>true),
			array('kd_propinsi, kd_dati2, his_kd_kanwil, his_kd_kantor, his_kd_tp', 'length', 'max'=>2),
			array('kd_kecamatan, kd_kelurahan, kd_blok', 'length', 'max'=>3),
			array('no_urut, thn_pajak_sppt', 'length', 'max'=>4),
			array('kd_jns_op', 'length', 'max'=>1),
			array('his_nip_rekam_byr_sppt', 'length', 'max'=>18),
			array('his_denda_sppt, his_jml_sppt_yg_dibayar, his_tgl_pembayaran_sppt, his_tgl_rekam_byr_sppt', 'safe'),
			// The following rule is used by search().
			// @todo 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_sppt, his_pembayaran_sppt_ke, his_kd_kanwil, his_kd_kantor, his_kd_tp, his_denda_sppt, his_jml_sppt_yg_dibayar, his_tgl_pembayaran_sppt, his_tgl_rekam_byr_sppt, his_nip_rekam_byr_sppt, 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(
			'updatedby' => array(self::BELONGS_TO, 'Users', 'updatedby'),
			'createdby' => array(self::BELONGS_TO, 'Users', 'createdby'),
		);
	}

	/**
	 * @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_sppt' => 'Thn Pajak Sppt',
			'his_pembayaran_sppt_ke' => 'His Pembayaran Sppt Ke',
			'his_kd_kanwil' => 'His Kd Kanwil',
			'his_kd_kantor' => 'His Kd Kantor',
			'his_kd_tp' => 'His Kd Tp',
			'his_denda_sppt' => 'His Denda Sppt',
			'his_jml_sppt_yg_dibayar' => 'His Jml Sppt Yg Dibayar',
			'his_tgl_pembayaran_sppt' => 'His Tgl Pembayaran Sppt',
			'his_tgl_rekam_byr_sppt' => 'His Tgl Rekam Byr Sppt',
			'his_nip_rekam_byr_sppt' => 'His Nip Rekam Byr Sppt',
			'createdby' => 'Createdby',
			'createdtime' => 'Createdtime',
			'updatedby' => 'Updatedby',
			'updatedtime' => 'Updatedtime',
		);
	}

	/**
	 * Retrieves a list of models based on the current search/filter conditions.
	 *
	 * Typical usecase:
	 * - Initialize the model fields with values from filter form.
	 * - Execute this method to get CActiveDataProvider instance which will filter
	 * models according to data in model fields.
	 * - Pass data provider to CGridView, CListView or any similar widget.
	 *
	 * @return CActiveDataProvider the data provider that can return the models
	 * based on the search/filter conditions.
	 */
	public function search()
	{
		// @todo 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_sppt',$this->thn_pajak_sppt,true);
		$criteria->compare('his_pembayaran_sppt_ke',$this->his_pembayaran_sppt_ke);
		$criteria->compare('his_kd_kanwil',$this->his_kd_kanwil,true);
		$criteria->compare('his_kd_kantor',$this->his_kd_kantor,true);
		$criteria->compare('his_kd_tp',$this->his_kd_tp,true);
		$criteria->compare('his_denda_sppt',$this->his_denda_sppt,true);
		$criteria->compare('his_jml_sppt_yg_dibayar',$this->his_jml_sppt_yg_dibayar,true);
		$criteria->compare('his_tgl_pembayaran_sppt',$this->his_tgl_pembayaran_sppt,true);
		$criteria->compare('his_tgl_rekam_byr_sppt',$this->his_tgl_rekam_byr_sppt,true);
		$criteria->compare('his_nip_rekam_byr_sppt',$this->his_nip_rekam_byr_sppt,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,
		));
	}

	/**
	 * Returns the static model of the specified AR class.
	 * Please note that you should have this exact method in all your CActiveRecord descendants!
	 * @param string $className active record class name.
	 * @return HisBatalBayarSppt the static model class
	 */
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}
}

AnonSec - 2021