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.
This commit is contained in:
2026-11-01 14:57:54 +07:00
parent be2091eddd
commit aaaf0a9215
92 changed files with 749 additions and 749 deletions
+15 -15
View File
@@ -14,7 +14,7 @@ var OperatorJS = {
PHP: '',
KODE: '',
index: function(){
index() {
this.data_query('detail');
$('#Cari_User').keydown((e) => {
var key = e.keyCode || e.which || 0;
@@ -29,7 +29,7 @@ var OperatorJS = {
FoniaJS.setFocus('#Cari_User');
},
filter_show: function(){
filter_show() {
new Request({
url: this.PHP + '/detail_filter',
sendParam: ['Filter_Level'],
@@ -43,13 +43,13 @@ var OperatorJS = {
}).send();
},
filter_simpan: function(){
filter_simpan() {
$('#Filter_Level').val($('#Fi_Level').val());
FoniaJS.closeWindow(this.winFilter);
this.data_query('detail');
},
detail_show: function(mode, UserID){
detail_show(mode, UserID) {
new Request({
url: this.PHP + '/detail_user',
sendParam: ['mode='+mode,'UserID='+UserID],
@@ -62,15 +62,15 @@ var OperatorJS = {
}).send();
},
detail_tambah: function(){
detail_tambah() {
this.detail_show('add', 0);
},
detail_ubah: function(acell){
detail_ubah(acell) {
this.detail_show('edit', acell[0]);
},
detail_hapus: function(acell){
detail_hapus(acell) {
FoniaJS.showConfirm("Konfirmasi", "Yakin akan hapus ["+acell[1]+"] "+acell[2]+"?", () => {
new Request({
url: this.PHP + '/save_user',
@@ -87,7 +87,7 @@ var OperatorJS = {
}, 'danger');
},
detail_check: function(){
detail_check() {
if ($('#Username').val().toUpperCase()==$('#UserLama').val().toUpperCase()) {
this.detail_save();
return;
@@ -105,7 +105,7 @@ var OperatorJS = {
}).send();
},
detail_save: function(){
detail_save() {
new Request({
url: this.PHP + '/save_user',
sendParam: ['mode','UserID','Username','Nama','Posisi','Level','Password','Grup_MenuID','Aktif'],
@@ -121,7 +121,7 @@ var OperatorJS = {
}).send();
},
menu_show: function(acell){
menu_show(acell) {
new Request({
url: this.PHP + '/detail_menu',
sendParam: ['UserID='+acell[0]],
@@ -145,15 +145,15 @@ var OperatorJS = {
}).send();
},
menu_ceksemua: function(){
menu_ceksemua() {
$('#tabMenuList input.form-check-input[type=checkbox]:not(:disabled)').prop('checked', true);
},
menu_hapussemua: function(){
menu_hapussemua() {
$('#tabMenuList input.form-check-input[type=checkbox]:not(:disabled)').prop('checked', false);
},
menu_simpan: function(){
menu_simpan() {
var alist = [];
$('#tabMenuList tbody input.form-check-input[type=checkbox]:not(:disabled):checked').map((i, b) => {
alist.push($(b).val());
@@ -172,7 +172,7 @@ var OperatorJS = {
}).send();
},
data_query: function(tipe, mode){
data_query(tipe, mode) {
if (tipe=="detail"){
new Request_JSF({
url: this.PHP + '/table_detail',
@@ -181,7 +181,7 @@ var OperatorJS = {
}
},
oc_Level: function(){
oc_Level() {
}
};