You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
2.3 KiB
JavaScript
93 lines
2.3 KiB
JavaScript
window.objectForm = {
|
|
title: function () {
|
|
return 'Main Rek. COA '
|
|
},
|
|
table: "mainacc",
|
|
idform: "containerforms",
|
|
newkode: ``,
|
|
kode: 'kode',
|
|
view: ['kode', 'nama', 'dk'],
|
|
columnsExport: [1, 2, 3],
|
|
dataSelect: ["*"],
|
|
queryTemp: "SELECT {select} FROM mainacc || ORDER BY kode ASC",
|
|
validasiForm: ['kode', 'nama', 'dk'],
|
|
oncreate: function (a) {
|
|
$('select#dk').val('').trigger('change');
|
|
globalThis['username'].parent.value = username;
|
|
globalThis['userlog'].parent.value = timestamp();
|
|
if (typeof _radioAct != 'undefined') {
|
|
_radioAct.setVal('ekuitas', 0)
|
|
_radioAct.setVal('dk', 'D')
|
|
}
|
|
},
|
|
onupdate: function (dt) {
|
|
globalThis['username'].parent.value = username;
|
|
globalThis['userlog'].parent.value = timestamp();
|
|
},
|
|
data: [
|
|
{
|
|
title: 'Kode',
|
|
type: 'text',
|
|
name: 'kode',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'NAMA COA',
|
|
type: 'text',
|
|
name: 'nama',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'D/K',
|
|
type: 'radio',
|
|
name: 'dk',
|
|
row: 12,
|
|
readonly: false,
|
|
data: [{ id: 'D', text: 'Debit' }, { id: 'K', text: 'Kredit' }],
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Set Ekuitas',
|
|
type: 'radio',
|
|
name: 'ekuitas',
|
|
row: 12,
|
|
readonly: false,
|
|
data: [{ id: '0', text: 'Bukan Ekuitas' }, { id: '1', text: 'Ekuitas' }],
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'username',
|
|
type: 'text',
|
|
display: 'none',
|
|
name: 'username',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'userlog',
|
|
type: 'text',
|
|
display: 'none',
|
|
name: 'userlog',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
]
|
|
} |