/******************************************************************* PHP Class : /Controller/Table/Ppob/OperatorController Description : Master Operator PPOB Created By : Siau Pheng (siaupheng@3fonia.com). Created Date : May 19th, 2010. Last Modified : September 1st, 2026. (c) 3FONIA Software; WWW.3FONIA.COM. *******************************************************************/ var PPOBOpeJS = { PHP: '', KODE: '', index: function(){ 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: function(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: function(acell){ this.detail_show('update', acell[0]); }, data_query: function(tipe, mode){ if (tipe=="detail"){ new Request_JSF({ url: this.PHP + '/table_detail', sendParam: ['Cari_Ope'] }).send(); } } };