<?php
/***********************************************************************
ATK Node: tpergerakan_gaji
Table: tstspergerakangaji
Date: 25/10/16
************************************************************************/
useattrib("atkattribute");
useattrib("atkTextAttribute");
userelation("atkManyToOneRelation");
class tpergerakan_gaji extends atkNode{
var $table = "tstspergerakangaji";
var $primary_field = "";
var $node = "tpergerakan_gaji";
// start constructor
function tpergerakan_gaji(){
// call constructor parent
$this->atkNode($this->node,NF_ADD_LINK | NF_TRACK_CHANGES );
$this->add(new atkAttribute("id", AF_AUTOKEY));
$this->add(new atkManyToOneRelation("nokp","perkhidmatan.tpegawai",
AF_FORCE_LOAD|AF_HIDE));
$this->add(new atkManyToOneRelation("tahunnilai","nilaian.ttahunapc",
AF_MANYTOONE_OBLIGATORY_NULL_ITEM|AF_SEARCHABLE|
AF_FORCE_LOAD|AF_READONLY_EDIT),NULL,99);
$this->add(new atkListAttribute("sts_cuti",array("PGB-Pergerakan Gaji Biasa", "PGI-Pergerakan
Gaji Secara Isyarat", "TDPG-Tidak Diberikan Pergerakan Gaji"),
array('PGB','PGI','TDPG'),AF_FORCE_LOAD));
$this->setOrder($this->order_field); // set order attribute(s)
$this->setTable($this->table); // set node table
}// end constructor
function printMessage($message, $background_color='#6787B0', $text_color='white'){
atkMessageQueue::addMessage("<div style='background-color: ".$background_color.";'><b>
<font color='".$text_color."'>".$message."</font></b></div>"); // FFAB35 }
function descriptor_def(){
return $this->descriptor_field;
}
}// end node tpergerakan_gaji
?>
Tuesday, 25 October 2016
Function Tambah Dan Papar Data Dalam ATK Framework
11:49 am
No comments
~ che wahida ~
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment