Files
siaupheng aaaf0a9215 Refactor member and product scripts to use concise method definitions
- Updated all function declarations to use ES6 shorthand method syntax in member.js, member_grup.js, point_barang.js, point_skema.js, point_tipe.js, kategori.js, operator.js, produk.js, produk_grup.js, rekpos.js, satuan.js, supplier.js, and varian.js.
2026-11-01 14:57:54 +07:00

55 lines
1.5 KiB
JavaScript

/*******************************************************************
PHP Class : /Controller/Table/Ppob/OperatorController
Description : Master Operator PPOB
Created By : Siau Pheng ([email protected]).
Created Date : May 19th, 2010.
Last Modified : September 1st, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var PPOBOpeJS = {
PHP: '',
KODE: '',
index() {
this.data_query('detail');
$('#Cari_Ope').keydown((e) => {
var key = e.keyCode || e.which || 0;
if (key==13 && e.target.value!='') this.data_query('detail');
});
$('#butSearch').click((e) => this.data_query('detail'));
$('#butAll').click(() => {
$('#Cari_Ope').val('');
this.data_query('detail');
});
FoniaJS.setFocus('#Cari_Ope');
},
detail_show(mode, ID) {
new Request({
url: this.PHP + '/form_operator',
sendParam: ['mode_detail='+mode,'OpeID='+ID],
onSuccess: (ajson) => {
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Operator PPOB', ajson.html, 'lg', [{},{i:'butTutup'}]);
}
}).send();
},
detail_ubah(acell) {
this.detail_show('update', acell[0]);
},
data_query(tipe, mode) {
if (tipe=="detail"){
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Ope']
}).send();
}
}
};