diff --git a/app/Scripts/display/config.js b/app/Scripts/display/config.js
index ddd83be..2dc1961 100644
--- a/app/Scripts/display/config.js
+++ b/app/Scripts/display/config.js
@@ -54,7 +54,7 @@ var DISPConfigJS = {
}
}).send();
} else if (tipe=='brow-cabang'){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_cabang',
}).send();
}
diff --git a/app/Scripts/display/iklan.js b/app/Scripts/display/iklan.js
index ce561b8..998fcd3 100644
--- a/app/Scripts/display/iklan.js
+++ b/app/Scripts/display/iklan.js
@@ -73,7 +73,7 @@ var DISPIklanJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Iklan'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -82,7 +82,7 @@ var DISPIklanJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','PromoID','CabID','Tanggal','Info','Aktif','Cari_Iklan'],
onSuccess: () => {
@@ -94,7 +94,7 @@ var DISPIklanJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Iklan']
}).send();
diff --git a/app/Scripts/display/promo.js b/app/Scripts/display/promo.js
index 60dafbc..fa73b79 100644
--- a/app/Scripts/display/promo.js
+++ b/app/Scripts/display/promo.js
@@ -73,7 +73,7 @@ var DISPPromoJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Promo'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -82,7 +82,7 @@ var DISPPromoJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','PromoID','Tanggal','Info','Warna','Font','Aktif','Cari_Promo'],
onSuccess: () => {
@@ -94,7 +94,7 @@ var DISPPromoJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Promo']
}).send();
diff --git a/app/Scripts/gel/gaji.js b/app/Scripts/gel/gaji.js
index 8407b9c..8f0f11f 100644
--- a/app/Scripts/gel/gaji.js
+++ b/app/Scripts/gel/gaji.js
@@ -187,7 +187,7 @@ var GELGajiJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','No_Gaji','ID='+acell[0]]
}).send();
@@ -203,7 +203,7 @@ var GELGajiJS = {
FoniaJS.showError('Jumlah Potongan melebihi Jumlah Pinjaman !');
}
var _mdetail = $('#mode_detail').val();
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','No_Gaji','KaryaID','Qty_Harian','Gaji_Harian','Qty_Lembur','Lembur_Harian','Qty_BonusM','Qty_BonusB','Bonus_Minggu','Bonus_Bulan','Total_Potong','CatatKar','ID'],
onSuccess: () => {
@@ -248,24 +248,24 @@ var GELGajiJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','No_Gaji']
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-karya"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_karya',
sendParam: ['No_Gaji','Cari_Karya'],
onSuccess: () => FoniaJS.setFocus('#Cari_Karya')
}).send();
} else if (tipe=="brow-cetak"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_cetak',
sendParam: ['No_Gaji']
}).send();
diff --git a/app/Scripts/gel/hutang.js b/app/Scripts/gel/hutang.js
index 7fcf5d9..12cd1de 100644
--- a/app/Scripts/gel/hutang.js
+++ b/app/Scripts/gel/hutang.js
@@ -98,7 +98,7 @@ var GELHutangJS = {
bayar_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[1]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_bayar',
sendParam: ['mode_detail=delete','No_Beli','ID='+acell[0]]
}).send();
@@ -110,7 +110,7 @@ var GELHutangJS = {
FoniaJS.showError("Jumlah pelunasan melebihi jumlah faktur!");
return;
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_bayar',
sendParam: ['mode_detail=insert','SupID','No_Beli','Tgl_Bayar','Kode_Rek','Total_Bayar','Total_Potong','Tipe_Nota','Nama_Sup'],
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
@@ -135,17 +135,17 @@ var GELHutangJS = {
}
}).send();
} else if (tipe=="tabel-nota"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_nota',
sendParam: ['SupID','Mode_Tampil']
}).send();
} else if (tipe=="tabel-bayar"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_bayar',
sendParam: ['No_Beli','Lunas','Mode_Tampil']
}).send();
} else if (tipe=="brow-sup"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_sup',
sendParam: ['Cari_Sup'],
onSuccess: () => FoniaJS.setFocus('#Cari_Sup')
diff --git a/app/Scripts/gel/karya.js b/app/Scripts/gel/karya.js
index 473df18..e9b3076 100644
--- a/app/Scripts/gel/karya.js
+++ b/app/Scripts/gel/karya.js
@@ -51,7 +51,7 @@ var GELKaryaJS = {
FoniaJS.showError("Silahkan masukkan jumlah pinjaman !");
return;
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_karya',
sendParam: ['mode_detail=insert','Tgl_Trans','Kode_Rek','Total_Pinjam','KaryaID','Nama_Karya='+$('#KaryaID').find(':selected').text(),'Catatan','is_pinjam=1'],
onSuccess: () => FoniaJS.closeWindow(this.winPinjam)
@@ -63,7 +63,7 @@ var GELKaryaJS = {
FoniaJS.showError("Silahkan masukkan jumlah pembayaran !");
return;
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_karya',
sendParam: ['mode_detail=insert','Tgl_Trans','Kode_Rek','Total_Bayar','KaryaID','Nama_Karya='+$('#KaryaID').find(':selected').text(),'Catatan','is_pinjam=0'],
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
@@ -72,7 +72,7 @@ var GELKaryaJS = {
karya_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[0]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_karya',
sendParam: ['mode_detail=delete','KaryaID','No_Trans='+acell[0]]
}).send();
@@ -91,7 +91,7 @@ var GELKaryaJS = {
}
}).send();
} else if (tipe=="tabel-karya"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_karya',
sendParam: ['KaryaID']
}).send();
diff --git a/app/Scripts/gel/keluar.js b/app/Scripts/gel/keluar.js
index ae2f256..7a67409 100644
--- a/app/Scripts/gel/keluar.js
+++ b/app/Scripts/gel/keluar.js
@@ -169,7 +169,7 @@ var GELKeluarJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[1]+' - '+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
}).send();
@@ -182,7 +182,7 @@ var GELKeluarJS = {
return;
}
var _mdetail = $('#mode_detail').val();
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','Jumlah','ID'],
onSuccess: () => {
@@ -234,18 +234,18 @@ var GELKeluarJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','Kode_Jurnal']
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-rek"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_rek',
sendParam: ['Cari_Rek'],
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
diff --git a/app/Scripts/gel/piutang.js b/app/Scripts/gel/piutang.js
index 05e2be4..4d88f86 100644
--- a/app/Scripts/gel/piutang.js
+++ b/app/Scripts/gel/piutang.js
@@ -98,7 +98,7 @@ var GELPiutangJS = {
bayar_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[1]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_bayar',
sendParam: ['mode_detail=delete','No_Jual','ID='+acell[0]]
}).send();
@@ -110,7 +110,7 @@ var GELPiutangJS = {
FoniaJS.showError("Jumlah pelunasan melebihi jumlah faktur!");
return;
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_bayar',
sendParam: ['mode_detail=insert','MemberID','No_Jual','Tgl_Bayar','Kode_Rek','Total_Bayar','Total_Potong','Tipe_Nota','Nama_Member'],
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
@@ -135,17 +135,17 @@ var GELPiutangJS = {
}
}).send();
} else if (tipe=="tabel-nota"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_nota',
sendParam: ['MemberID','Mode_Tampil']
}).send();
} else if (tipe=="tabel-bayar"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_bayar',
sendParam: ['No_Jual','Lunas','Mode_Tampil']
}).send();
} else if (tipe=="brow-buyer"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_buyer',
sendParam: ['Cari_Buyer'],
onSuccess: () => FoniaJS.setFocus('#Cari_Buyer')
diff --git a/app/Scripts/gel/terima.js b/app/Scripts/gel/terima.js
index bee5f6e..2737bf1 100644
--- a/app/Scripts/gel/terima.js
+++ b/app/Scripts/gel/terima.js
@@ -169,7 +169,7 @@ var GELTerimaJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[1]+' - '+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
}).send();
@@ -182,7 +182,7 @@ var GELTerimaJS = {
return;
}
var _mdetail = $('#mode_detail').val();
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','Jumlah','ID'],
onSuccess: () => {
@@ -234,18 +234,18 @@ var GELTerimaJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','Kode_Jurnal']
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-rek"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_rek',
sendParam: ['Cari_Rek'],
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
diff --git a/app/Scripts/gel/umum.js b/app/Scripts/gel/umum.js
index bda2048..fb3cfe3 100644
--- a/app/Scripts/gel/umum.js
+++ b/app/Scripts/gel/umum.js
@@ -172,7 +172,7 @@ var GELUmumJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[1]+' - '+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
}).send();
@@ -185,7 +185,7 @@ var GELUmumJS = {
return;
}
var _mdetail = $('#mode_detail').val();
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','DK','Jumlah','ID'],
onSuccess: () => {
@@ -237,18 +237,18 @@ var GELUmumJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','Kode_Jurnal']
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-rek"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_rek',
sendParam: ['Cari_Rek'],
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
diff --git a/app/Scripts/inv/beli.js b/app/Scripts/inv/beli.js
index 2b451c3..7e0914a 100644
--- a/app/Scripts/inv/beli.js
+++ b/app/Scripts/inv/beli.js
@@ -250,7 +250,7 @@ var BeliJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[5]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','No_Beli','ID='+acell[0]],
onSuccess: () => {
@@ -267,7 +267,7 @@ var BeliJS = {
return;
}
var _mdetail = $('#mode_detail').val();
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','No_Beli','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Disk_Rupiah','Disk_Persen1','Disk_Persen2','Disk_Persen3','Disk_Persen4','Disk_Persen5'],
onSuccess: () => {
@@ -358,7 +358,7 @@ var BeliJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','No_Beli'],
onSuccess: () => {
@@ -367,18 +367,18 @@ var BeliJS = {
}
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-pending"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_pending',
sendParam: ['Cari_Pending']
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk','Filter_Browse','SupID'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -420,7 +420,7 @@ var BeliJS = {
},
update_Varian: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/option_varian',
sendParam: ['InvID','SatuanID','VarianID']
}).send();
diff --git a/app/Scripts/inv/beli_retur.js b/app/Scripts/inv/beli_retur.js
index c0fc880..c4220fd 100644
--- a/app/Scripts/inv/beli_retur.js
+++ b/app/Scripts/inv/beli_retur.js
@@ -182,7 +182,7 @@ var BeliReturJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[5]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','No_Beli','ID='+acell[0]]
}).send();
@@ -195,7 +195,7 @@ var BeliReturJS = {
return;
}
var _mdetail = $('#mode_detail').val();
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','No_Beli','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli'],
onSuccess: () => {
@@ -242,18 +242,18 @@ var BeliReturJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','No_Beli']
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['CabID','Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -274,7 +274,7 @@ var BeliReturJS = {
},
update_Varian: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/option_varian',
sendParam: ['InvID','SatuanID','VarianID']
}).send();
diff --git a/app/Scripts/inv/cekharga.js b/app/Scripts/inv/cekharga.js
index 1b5242a..0c9e41a 100644
--- a/app/Scripts/inv/cekharga.js
+++ b/app/Scripts/inv/cekharga.js
@@ -70,7 +70,7 @@ var CekHargaJS = {
data_query: function(tipe){
if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -91,7 +91,7 @@ var CekHargaJS = {
update_Sup: function(){
if (parseInt($('#InvID').val()) == 0) return false;
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/update_sup',
sendParam: ['InvID']
}).send();
diff --git a/app/Scripts/inv/jual.js b/app/Scripts/inv/jual.js
index 19fdbb7..2d9ca2f 100644
--- a/app/Scripts/inv/jual.js
+++ b/app/Scripts/inv/jual.js
@@ -237,7 +237,7 @@ var JualJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[5]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','No_Jual','ID='+acell[0]],
onSuccess: () => $('#Nama_Produk').focus()
@@ -250,7 +250,7 @@ var JualJS = {
FoniaJS.showInfo('Nilai Diskon diluar batas !');
return false;
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','No_Jual','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Harga_Jual','Disk_Rupiah','Disk_Persen'],
onSuccess: () => {
@@ -324,28 +324,28 @@ var JualJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','No_Jual']
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-pending"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_pending',
}).send();
} else if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk','Grup_MemberID'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -371,7 +371,7 @@ var JualJS = {
// P : Satuan : Varian : Harga_Pokok : Harga_Jual : Stok
//todo: jika stok kosong tidak simpan !!
//if (parseInt(adata[5])>0 || _qty<0){
- new Request.JSONF({
+ new Request_JSF({
url: JualJS.PHP + '/table_detail',
sendParam: ['mode','mode_detail=insert','No_Jual','InvID='+item.value,'SatuanID='+adata[1],'VarianID='+adata[2],'Qty='+_qty,'Harga_Beli='+adata[3],'Harga_Jual='+adata[4]],
onSuccess: () => $('#POS_Qty').val('1.00')
@@ -386,7 +386,7 @@ var JualJS = {
},
update_Piutang: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/update_piutang',
sendParam: ['MemberID'],
onSuccess: () => FoniaJS.setFocus('#Nama_Produk')
diff --git a/app/Scripts/inv/mutasi.js b/app/Scripts/inv/mutasi.js
index 3674bb9..4a931a5 100644
--- a/app/Scripts/inv/mutasi.js
+++ b/app/Scripts/inv/mutasi.js
@@ -180,7 +180,7 @@ var MutasiJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[5]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','No_Mutasi','ID='+acell[0]],
onSuccess: () => $('#Nama_Produk').focus()
@@ -189,7 +189,7 @@ var MutasiJS = {
},
detail_simpan: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','No_Mutasi','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Dari_CabID','Ke_CabID'],
onSuccess: () => {
@@ -249,18 +249,18 @@ var MutasiJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','No_Mutasi']
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk','Dari_CabID'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -276,7 +276,7 @@ var MutasiJS = {
var _qty = FoniaJS.StrToFloat($('#POS_Qty').val());
var adata = item.data.split(':');
// Satuan : Varian : Harga_Pokok
- new Request.JSONF({
+ new Request_JSF({
url: MutasiJS.PHP + '/table_detail',
sendParam: ['mode','mode_detail=insert','No_Mutasi','InvID='+item.value,'SatuanID='+adata[0],'VarianID='+adata[1],'Qty='+_qty,'Harga_Beli='+adata[2]],
onSuccess: () => $('#POS_Qty').val('1.00')
diff --git a/app/Scripts/inv/opname.js b/app/Scripts/inv/opname.js
index b1f3135..73c63bb 100644
--- a/app/Scripts/inv/opname.js
+++ b/app/Scripts/inv/opname.js
@@ -171,7 +171,7 @@ var OpnameJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','No_Opname','ID='+acell[0]]
}).send();
@@ -184,7 +184,7 @@ var OpnameJS = {
return;
}
var _mdetail = $('#mode_detail').val();
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','No_Opname','CabID','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli'],
onSuccess: () => {
@@ -231,18 +231,18 @@ var OpnameJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','No_Opname']
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['CabID','Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
diff --git a/app/Scripts/inv/opname_barang.js b/app/Scripts/inv/opname_barang.js
index 901591b..7fdad7a 100644
--- a/app/Scripts/inv/opname_barang.js
+++ b/app/Scripts/inv/opname_barang.js
@@ -103,7 +103,7 @@ var OpnameBarangJS = {
data_query: function(tipe){
if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
diff --git a/app/Scripts/inv/pos.js b/app/Scripts/inv/pos.js
index c3f0957..e005f70 100644
--- a/app/Scripts/inv/pos.js
+++ b/app/Scripts/inv/pos.js
@@ -207,7 +207,7 @@ var POSJS = {
},
detail_hapus: function(acell){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','No_Jual','ID='+acell[0]],
onSuccess: () => {
@@ -225,7 +225,7 @@ var POSJS = {
FoniaJS.showInfo('Nilai Diskon diluar batas !');
return false;
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','No_Jual','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Harga_Jual','Disk_Rupiah','Disk_Persen'],
onSuccess: () => {
@@ -392,28 +392,28 @@ var POSJS = {
}
}).send();
} else if (tipe=='detail'){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['No_Jual']
}).send();
} else if (tipe=='brow-nota'){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_nota',
sendParam: ['Cari_Nota'],
onSuccess: () => FoniaJS.setFocus('#Cari_Nota')
}).send();
} else if (tipe=='brow-pending'){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_pending',
}).send();
} else if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
}).send();
} else if (tipe=='brow-produk'){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk','Grup_MemberID'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -455,7 +455,7 @@ var POSJS = {
// P : Satuan : Varian : Harga_Pokok : Harga_Jual : Stok
//todo: jika stok kosong tidak simpan !!
//if (parseInt(adata[5])>0 || _qty<0){
- new Request.JSONF({
+ new Request_JSF({
url: POSJS.PHP + '/table_detail',
sendParam: ['mode_detail=insert','No_Jual','InvID='+item.value,'SatuanID='+adata[1],'VarianID='+adata[2],'Qty='+_qty,'Harga_Beli='+adata[3],'Harga_Jual='+adata[4]],
onSuccess: () => {
diff --git a/app/Scripts/member/point.js b/app/Scripts/member/point.js
index 06e0fe7..694b3e3 100644
--- a/app/Scripts/member/point.js
+++ b/app/Scripts/member/point.js
@@ -69,12 +69,12 @@ var MemberPointJS = {
data_query: function(tipe){
if (tipe=="table-point"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_point',
sendParam: ['MemberID']
}).send();
} else if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
diff --git a/app/Scripts/member/tukar.js b/app/Scripts/member/tukar.js
index 20fa5e4..377b372 100644
--- a/app/Scripts/member/tukar.js
+++ b/app/Scripts/member/tukar.js
@@ -238,18 +238,18 @@ var MemberTukarJS = {
}
}).send();
} else if (tipe=="brow-tx"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member','Point_TipeID']
}).send();
} else if (tipe=="brow-barang"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_barang',
sendParam: ['Cari_Barang','Point_TipeID'],
onSuccess: () => FoniaJS.setFocus('#Cari_Barang')
diff --git a/app/Scripts/ppob/ppobtx.js b/app/Scripts/ppob/ppobtx.js
index d28f750..b4a7e65 100644
--- a/app/Scripts/ppob/ppobtx.js
+++ b/app/Scripts/ppob/ppobtx.js
@@ -36,14 +36,14 @@ var PPOBTXJS = {
},
proses_delete: function(no_tx){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_tx',
sendParam: ['mode_detail=delete','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
}).send();
},
proses_reproc: function(no_tx){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_tx',
sendParam: ['mode_detail=reproc','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
}).send();
@@ -87,7 +87,7 @@ var PPOBTXJS = {
data_query: function(tipe){
if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_tx',
sendParam: ['Tgl_From','Tgl_To','Cari_TX']
}).send();
diff --git a/app/Scripts/ppob/prabayar.js b/app/Scripts/ppob/prabayar.js
index 1438ac8..ab3d0ae 100644
--- a/app/Scripts/ppob/prabayar.js
+++ b/app/Scripts/ppob/prabayar.js
@@ -43,14 +43,14 @@ var PrabayarJS = {
},
proses_delete: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_tx',
sendParam: ['mode_detail=delete','No_TX']
}).send();
},
proses_reproc: function(ft){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_tx',
sendParam: ['mode_detail=reproc','No_TX','FT='+ft]
}).send();
@@ -246,7 +246,7 @@ var PrabayarJS = {
}
}).send();
} else if (tipe=='tabel-tx'){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_tx',
sendParam: ['Cari_PPOB']
}).send();
@@ -274,7 +274,7 @@ var PrabayarJS = {
$('.rowToken').addClass('d-none');
$('.rowPulsa').removeClass('d-none');
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/option_operator',
sendParam: ['KateID'],
}).send();
@@ -283,7 +283,7 @@ var PrabayarJS = {
oc_Tujuan: function(){
if ($('#Tujuan').val()=='') return false;
if ($.inArray(parseInt($('#KateID').val()), this.KATE_PREFIX) === -1) return false;
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/option_operator',
sendParam: ['KateID','Tujuan'],
}).send();
@@ -291,7 +291,7 @@ var PrabayarJS = {
oc_OpeID: function(){
if ($('#OpeID').val()==0) return false;
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/option_produk',
sendParam: ['KateID','OpeID'],
}).send();
diff --git a/app/Scripts/ppob/topup.js b/app/Scripts/ppob/topup.js
index 528f111..740142b 100644
--- a/app/Scripts/ppob/topup.js
+++ b/app/Scripts/ppob/topup.js
@@ -52,7 +52,7 @@ var TopupJS = {
$('#Jumlah').focus();
return;
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=insert','Tgl_Depo','Jumlah','Bank'],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
@@ -61,7 +61,7 @@ var TopupJS = {
data_query: function(tipe){
if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Topup']
}).send();
diff --git a/app/Scripts/promo/barang.js b/app/Scripts/promo/barang.js
index 6f3b738..04d58f9 100644
--- a/app/Scripts/promo/barang.js
+++ b/app/Scripts/promo/barang.js
@@ -59,7 +59,7 @@ var PromoBarangJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_promo',
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Promo'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -68,7 +68,7 @@ var PromoBarangJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_promo',
sendParam: ['mode_detail','PromoID','InvID','SatuanID','CabID','Grup_MemberID','Pilih_Qty','Qty_Min','Qty_Kali','Tipe_Promo','Promo_Disc','Promo_InvID','Promo_SatuanID','Promo_Qty','Jumlah_Promo','Tgl_Mulai','Tgl_Akhir','Aktif','Cari_Promo'],
onSuccess: () => {
@@ -112,12 +112,12 @@ var PromoBarangJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_promo',
sendParam: ['Cari_Promo']
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
diff --git a/app/Scripts/promo/beli_disc.js b/app/Scripts/promo/beli_disc.js
index e61f45e..a6a7063 100644
--- a/app/Scripts/promo/beli_disc.js
+++ b/app/Scripts/promo/beli_disc.js
@@ -142,7 +142,7 @@ var PromoBeliDiscJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[5]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','Grup_PromoID','PromoID='+acell[0]],
}).send();
@@ -154,7 +154,7 @@ var PromoBeliDiscJS = {
FoniaJS.showError('Silakan masukkan Nama Barang Promo !');
return;
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','Grup_PromoID','PromoID','InvID','SatuanID','Kode_Varian'],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
@@ -162,7 +162,7 @@ var PromoBeliDiscJS = {
},
varian_show: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/form_varian',
sendParam: ['InvID','SatuanID','Kode_Varian']
}).send();
@@ -202,18 +202,18 @@ var PromoBeliDiscJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','Grup_PromoID']
}).send();
} else if (tipe=="brow-promo"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_promo',
sendParam: ['Cari_Promo'],
onSuccess: () => FoniaJS.setFocus('#Cari_Promo')
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk','Grup_PromoID'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -228,7 +228,7 @@ var PromoBeliDiscJS = {
},
update_items: function(InvID, SatuanID){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/option_satuan',
sendParam: ['InvID='+InvID,'SatuanID='+SatuanID],
onSuccess: () => this.varian_show()
diff --git a/app/Scripts/promo/total.js b/app/Scripts/promo/total.js
index aa701ae..0dde3bb 100644
--- a/app/Scripts/promo/total.js
+++ b/app/Scripts/promo/total.js
@@ -57,7 +57,7 @@ var PromoTotalJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_promo',
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Promo'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -66,7 +66,7 @@ var PromoTotalJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_promo',
sendParam: ['mode_detail','PromoID','Nama_Promo','Jual_Min','Jual_Grup','CabID','Grup_MemberID','Tipe_Promo','Promo_Jual','Promo_InvID','Promo_SatuanID','Promo_Qty','Jumlah_Promo','Tgl_Mulai','Tgl_Akhir','Aktif','Cari_Promo'],
onSuccess: () => {
@@ -135,12 +135,12 @@ var PromoTotalJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_promo',
sendParam: ['Cari_Promo']
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
diff --git a/app/Scripts/report/gel/harian_besar.js b/app/Scripts/report/gel/harian_besar.js
index 3c044f3..132ac4e 100644
--- a/app/Scripts/report/gel/harian_besar.js
+++ b/app/Scripts/report/gel/harian_besar.js
@@ -75,7 +75,7 @@ var RepoGelHBesarJS = {
data_query: function(tipe, mode){
if (tipe=="brow-rek"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_rek',
sendParam: ['Cari_Rek'],
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
diff --git a/app/Scripts/report/gel/harian_detail.js b/app/Scripts/report/gel/harian_detail.js
index eedfff0..3121e14 100644
--- a/app/Scripts/report/gel/harian_detail.js
+++ b/app/Scripts/report/gel/harian_detail.js
@@ -56,7 +56,7 @@ var RepoGelHDetailJS = {
data_query: function(tipe, mode){
if (tipe=="brow-jurnal"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_jurnal',
sendParam: ['Cari_Jurnal'],
onSuccess: () => FoniaJS.setFocus('#Cari_Jurnal')
diff --git a/app/Scripts/report/inv/barcode.js b/app/Scripts/report/inv/barcode.js
index 52a849f..5656020 100644
--- a/app/Scripts/report/inv/barcode.js
+++ b/app/Scripts/report/inv/barcode.js
@@ -71,7 +71,7 @@ var RepoInvBarcodeJS = {
data_query: function(tipe){
if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -91,7 +91,7 @@ var RepoInvBarcodeJS = {
load_printer: function(){
qz.printers.find().then((data) => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/load_printer',
sendParam: ['Printer='+JSON.stringify(data),'DefPrint='+$('#configPrinter').html()]
}).send();
diff --git a/app/Scripts/report/inv/label.js b/app/Scripts/report/inv/label.js
index 64e1781..a1843b0 100644
--- a/app/Scripts/report/inv/label.js
+++ b/app/Scripts/report/inv/label.js
@@ -22,7 +22,7 @@ var RepoInvLabelJS = {
},
proses_empty: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=empty']
}).send();
@@ -52,7 +52,7 @@ var RepoInvLabelJS = {
},
produk_simpan: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=simpan-produk'],
onSuccess: () => FoniaJS.closeWindow(this.winBProduk)
@@ -77,7 +77,7 @@ var RepoInvLabelJS = {
},
grup_select: function(acell){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=simpan-grup','Grup_InvID='+acell[0]],
onSuccess: () => FoniaJS.closeWindow(this.winBGrup)
@@ -103,7 +103,7 @@ var RepoInvLabelJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item "'+acell[1]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','ID='+acell[0]]
}).send();
@@ -111,7 +111,7 @@ var RepoInvLabelJS = {
},
detail_simpan: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=update','ID='+$('#ID').val(),'Nama_Produk='+encodeURIComponent($('#Nama_Produk').val())],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
@@ -120,18 +120,18 @@ var RepoInvLabelJS = {
data_query: function(tipe, mode, kd_tx){
if (tipe=="tabel-detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail='+mode,'No_Label'+((typeof(kd_tx)!=='undefined')?'='+kd_tx:'')]
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
}).send();
} else if (tipe=="brow-grup"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_grup',
sendParam: ['Cari_Grup'],
onSuccess: () => FoniaJS.setFocus('#Cari_Grup')
diff --git a/app/Scripts/report/inv/piutang.js b/app/Scripts/report/inv/piutang.js
index 40e2fb7..dc5d030 100644
--- a/app/Scripts/report/inv/piutang.js
+++ b/app/Scripts/report/inv/piutang.js
@@ -67,7 +67,7 @@ var RepoInvPiutangJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
diff --git a/app/Scripts/report/jual/analisa.js b/app/Scripts/report/jual/analisa.js
index 070334e..bc4ca49 100644
--- a/app/Scripts/report/jual/analisa.js
+++ b/app/Scripts/report/jual/analisa.js
@@ -75,7 +75,7 @@ var RepoJualAnalisaJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
diff --git a/app/Scripts/report/jual/margin.js b/app/Scripts/report/jual/margin.js
index 0c512c9..735fbd1 100644
--- a/app/Scripts/report/jual/margin.js
+++ b/app/Scripts/report/jual/margin.js
@@ -69,7 +69,7 @@ var RepoJualMarginJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
diff --git a/app/Scripts/report/jual/mutasi.js b/app/Scripts/report/jual/mutasi.js
index 127f97f..5b9bfcf 100644
--- a/app/Scripts/report/jual/mutasi.js
+++ b/app/Scripts/report/jual/mutasi.js
@@ -76,7 +76,7 @@ var RepoJualMutasiJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
diff --git a/app/Scripts/report/jual/rekap.js b/app/Scripts/report/jual/rekap.js
index d393cfa..e248f4b 100644
--- a/app/Scripts/report/jual/rekap.js
+++ b/app/Scripts/report/jual/rekap.js
@@ -113,13 +113,13 @@ var RepoJualRekapJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
diff --git a/app/Scripts/report/member/histori.js b/app/Scripts/report/member/histori.js
index dcdc8c6..db3e4a0 100644
--- a/app/Scripts/report/member/histori.js
+++ b/app/Scripts/report/member/histori.js
@@ -85,7 +85,7 @@ var RepoMemberHistoriJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
diff --git a/app/Scripts/report/stok/mutasi.js b/app/Scripts/report/stok/mutasi.js
index 1066383..ca4a833 100644
--- a/app/Scripts/report/stok/mutasi.js
+++ b/app/Scripts/report/stok/mutasi.js
@@ -76,7 +76,7 @@ var RepoStokMutasiJS = {
data_query: function(tipe){
if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
diff --git a/app/Scripts/system/menu_grup.js b/app/Scripts/system/menu_grup.js
index fc7733b..4b0a202 100644
--- a/app/Scripts/system/menu_grup.js
+++ b/app/Scripts/system/menu_grup.js
@@ -50,7 +50,7 @@ var MenuGrupJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm("Konfirmasi", "Yakin akan hapus "+acell[1]+"?", function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode=del','Grup_MenuID='+acell[0],'Cari_Grup'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -59,7 +59,7 @@ var MenuGrupJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','Grup_MenuID','Nama_Grup','Ket','Aktif','Cari_Grup'],
onSuccess: () => {
@@ -120,7 +120,7 @@ var MenuGrupJS = {
},
data_query: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Grup'],
}).send()
diff --git a/app/Scripts/system/operator.js b/app/Scripts/system/operator.js
index 580467d..d4a8b12 100644
--- a/app/Scripts/system/operator.js
+++ b/app/Scripts/system/operator.js
@@ -174,7 +174,7 @@ var OperatorJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Filter_Level','Cari_User']
}).send()
diff --git a/app/Scripts/system/printer.js b/app/Scripts/system/printer.js
index 57c8f46..2cdde88 100644
--- a/app/Scripts/system/printer.js
+++ b/app/Scripts/system/printer.js
@@ -52,7 +52,7 @@ var PrinterJS = {
}
}).send();
} else if (tipe=='brow-cabang'){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_cabang',
}).send();
}
diff --git a/app/Scripts/system/super.js b/app/Scripts/system/super.js
index cb27387..80d5c14 100644
--- a/app/Scripts/system/super.js
+++ b/app/Scripts/system/super.js
@@ -28,7 +28,7 @@ var SuperJS = {
},
data_query: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
}).send();
}
diff --git a/app/Scripts/table/gel/grup.js b/app/Scripts/table/gel/grup.js
index bf4c316..74f7651 100644
--- a/app/Scripts/table/gel/grup.js
+++ b/app/Scripts/table/gel/grup.js
@@ -50,7 +50,7 @@ var RekGrupJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[1]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','Grup_RekID='+acell[0],'Cari_Rek'],
onSuccess: () => {
@@ -61,7 +61,7 @@ var RekGrupJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','Grup_RekID','Nama_Grup','Aktif','Cari_Rek'],
onSuccess: () => {
@@ -73,7 +73,7 @@ var RekGrupJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Rek']
}).send();
diff --git a/app/Scripts/table/gel/karyawan.js b/app/Scripts/table/gel/karyawan.js
index 9a10adc..e3f9131 100644
--- a/app/Scripts/table/gel/karyawan.js
+++ b/app/Scripts/table/gel/karyawan.js
@@ -48,7 +48,7 @@ var KaryawanJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','KaryaID='+acell[0],'Cari_Karya'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -57,7 +57,7 @@ var KaryawanJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','KaryaID','Nama_Karya','Gaji_Harian','Tgl_Masuk','Tgl_Keluar','Aktif','Cari_Karya'],
onSuccess: () => {
@@ -69,7 +69,7 @@ var KaryawanJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Karya']
}).send();
diff --git a/app/Scripts/table/gel/rek.js b/app/Scripts/table/gel/rek.js
index 0d36169..fd2493d 100644
--- a/app/Scripts/table/gel/rek.js
+++ b/app/Scripts/table/gel/rek.js
@@ -71,7 +71,7 @@ var RekJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[1]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','Kode_Rek='+acell[0],'Cari_Rek'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -80,7 +80,7 @@ var RekJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','Kode_Rek','Kode_Induk','Nama_Rek','Grup_RekID','Level','Mode','Kas_Rek','Aktif','Cari_Rek'],
onSuccess: () => {
@@ -92,7 +92,7 @@ var RekJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Rek']
}).send();
diff --git a/app/Scripts/table/member/member.js b/app/Scripts/table/member/member.js
index 7a5530c..fb22bc4 100644
--- a/app/Scripts/table/member/member.js
+++ b/app/Scripts/table/member/member.js
@@ -71,7 +71,7 @@ var MemberJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','MemberID='+acell[0],'Cari_Member'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -80,7 +80,7 @@ var MemberJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','MemberID','Grup_MemberID','Kode_Member','Nama_Member','Alamat_Member','Kota_Member','Telp_Member','KTP_Member','Tgl_Lahir','Tgl_Daftar','IM','Aktif','Cari_Member'],
onSuccess: () => {
@@ -92,7 +92,7 @@ var MemberJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Member']
}).send();
diff --git a/app/Scripts/table/member/member_grup.js b/app/Scripts/table/member/member_grup.js
index 2bc8008..ec3beb4 100644
--- a/app/Scripts/table/member/member_grup.js
+++ b/app/Scripts/table/member/member_grup.js
@@ -50,7 +50,7 @@ var MemberGrupJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','Grup_MemberID='+acell[0],'Cari_Member'],
onSuccess: () => {
@@ -61,7 +61,7 @@ var MemberGrupJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','Grup_MemberID','Kode_Grup','Nama_Grup','Aktif','Cari_Member'],
onSuccess: () => {
@@ -73,7 +73,7 @@ var MemberGrupJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Member']
}).send();
diff --git a/app/Scripts/table/member/point_barang.js b/app/Scripts/table/member/point_barang.js
index 6d35f15..94622ed 100644
--- a/app/Scripts/table/member/point_barang.js
+++ b/app/Scripts/table/member/point_barang.js
@@ -50,7 +50,7 @@ var PointBarangJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','InvPID='+acell[0],'Cari_Barang'],
onSuccess: () => {
@@ -61,7 +61,7 @@ var PointBarangJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','InvPID','Point_TipeID','Nama_Barang','SatuanID','Nilai_Barang','Nilai_Point','Aktif','Cari_Barang'],
onSuccess: () => {
@@ -73,7 +73,7 @@ var PointBarangJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Barang']
}).send();
diff --git a/app/Scripts/table/member/point_skema.js b/app/Scripts/table/member/point_skema.js
index 989a11e..53e9923 100644
--- a/app/Scripts/table/member/point_skema.js
+++ b/app/Scripts/table/member/point_skema.js
@@ -53,7 +53,7 @@ var PointSkemaJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[5]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','PointID='+acell[0],'Cari_Skema'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -62,7 +62,7 @@ var PointSkemaJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','PointID','Point_TipeID','KartuID','CabID','Grup_MemberID','Nilai_Jual','Grup_Barang','Kode_Barang','Tgl_Mulai','Aktif','Cari_Skema'],
onSuccess: () => {
@@ -119,7 +119,7 @@ var PointSkemaJS = {
barang_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[1]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_barang',
sendParam: ['mode_detail=delete','InvID='+acell[0],'Kode_Barang'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -129,12 +129,12 @@ var PointSkemaJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Skema']
}).send();
} else if (tipe=="tabel-barang"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_barang',
sendParam: ['Kode_Barang'],
onSuccess: () => FoniaJS.setFocus('#Nama_Produk')
@@ -143,7 +143,7 @@ var PointSkemaJS = {
},
Produk_Comp: function(item){
- new Request.JSONF({
+ new Request_JSF({
url: PointSkemaJS.PHP + '/table_barang',
sendParam: ['mode_detail=insert','Kode_Barang','InvID='+item.value]
}).send();
diff --git a/app/Scripts/table/member/point_tipe.js b/app/Scripts/table/member/point_tipe.js
index 38b03db..3f5012a 100644
--- a/app/Scripts/table/member/point_tipe.js
+++ b/app/Scripts/table/member/point_tipe.js
@@ -50,7 +50,7 @@ var PointTipeJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[1]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','Point_TipeID='+acell[0],'Cari_Tipe'],
onSuccess: () => {
@@ -61,7 +61,7 @@ var PointTipeJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','Point_TipeID','Nama_Tipe','Txt_Struk1','Txt_Struk2','Aktif','Cari_Tipe'],
onSuccess: () => {
@@ -73,7 +73,7 @@ var PointTipeJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Tipe']
}).send();
diff --git a/app/Scripts/table/ppob/kategori.js b/app/Scripts/table/ppob/kategori.js
index 7aab9d3..7c0bc68 100644
--- a/app/Scripts/table/ppob/kategori.js
+++ b/app/Scripts/table/ppob/kategori.js
@@ -44,7 +44,7 @@ var PPOBKateJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Kate']
}).send();
diff --git a/app/Scripts/table/ppob/operator.js b/app/Scripts/table/ppob/operator.js
index 6e5f180..aa562e8 100644
--- a/app/Scripts/table/ppob/operator.js
+++ b/app/Scripts/table/ppob/operator.js
@@ -44,7 +44,7 @@ var PPOBOpeJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Ope']
}).send();
diff --git a/app/Scripts/table/ppob/produk.js b/app/Scripts/table/ppob/produk.js
index c43a6a1..50f4438 100644
--- a/app/Scripts/table/ppob/produk.js
+++ b/app/Scripts/table/ppob/produk.js
@@ -64,7 +64,7 @@ var PPOBProdukJS = {
},
update_proses: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/proses_update',
sendParam: ['K_Kate','K_Ope'],
onSuccess: (ajson) => {
@@ -91,7 +91,7 @@ var PPOBProdukJS = {
},
produk_simpan: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_produk',
sendParam: ['mode_detail','ProdukID','OpeID','KateID','Nama_Produk='+encodeURIComponent($('#Nama_Produk').val()),'Kode','Harga_Pokok','Harga_Jual','Status','Cari_Produk'],
onSuccess: (adata) => {
@@ -105,7 +105,7 @@ var PPOBProdukJS = {
data_query: function(tipe, mode){
if (tipe=="tabel-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_produk',
sendParam: ['Cari_Produk']
}).send();
diff --git a/app/Scripts/table/produk.js b/app/Scripts/table/produk.js
index acd3af4..ab9acae 100644
--- a/app/Scripts/table/produk.js
+++ b/app/Scripts/table/produk.js
@@ -258,7 +258,7 @@ var ProdukJS = {
kemasan_del: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_kemasan',
sendParam: ['mode','mode_detail=delete','InvID','InvKemasanID='+acell[0],'SatuanLamaID='+acell[1],'Satuan_Stok='+$('#StokID').find(":selected").text()],
onSuccess: () => {
@@ -275,7 +275,7 @@ var ProdukJS = {
FoniaJS.showInfo('Mohon isi jumlah Qty / Kemasan !');
return false;
}
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_kemasan',
sendParam: ['mode','mode_detail=update','InvID','InvKemasanID','SatuanID','SatuanLamaID','Qty','Satuan_Stok='+$('#StokID').find(":selected").text()],
onSuccess: () => {
@@ -340,7 +340,7 @@ var ProdukJS = {
varian_del: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[4]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_varian',
sendParam: ['mode','mode_detail=delete','InvID','InvVarianID='+acell[0]],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -349,7 +349,7 @@ var ProdukJS = {
},
varian_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_varian',
sendParam: ['mode','mode_detail=update','InvID','InvVarianID','SatuanID','VarianID','Kode_Barcode'],
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan varian produk.')
@@ -412,7 +412,7 @@ var ProdukJS = {
harga_del: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[1]+' - '+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_harga',
sendParam: ['mode','mode_detail=delete','InvID','InvHargaID='+acell[0]],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -421,7 +421,7 @@ var ProdukJS = {
},
harga_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_harga',
sendParam: ['mode','mode_detail=update','InvID','InvHargaID','SatuanID','Grup_MemberID','Harga_Jual'],
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan harga produk.')
@@ -448,12 +448,12 @@ var ProdukJS = {
data_query: function(tipe, mode){
if (tipe=="tabel-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_produk',
sendParam: ['Cari_Produk','Filter_Produk']
}).send();
} else if (tipe=="tabel-kemasan"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_kemasan',
sendParam: ['mode','InvID','Satuan_Stok='+$('#StokID').find(":selected").text()],
onSuccess: () => {
@@ -462,22 +462,22 @@ var ProdukJS = {
}
}).send();
} else if (tipe=="tabel-varian"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_varian',
sendParam: ['mode','InvID']
}).send();
} else if (tipe=="tabel-harga"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_harga',
sendParam: ['mode','InvID']
}).send();
} else if (tipe=="tabel-restore"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/tabel_restore',
sendParam: ['InvID']
}).send();
} else if (tipe=="brow-produk"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk2'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk2')
diff --git a/app/Scripts/table/produk_grup.js b/app/Scripts/table/produk_grup.js
index df3055d..b88bc0c 100644
--- a/app/Scripts/table/produk_grup.js
+++ b/app/Scripts/table/produk_grup.js
@@ -59,7 +59,7 @@ var ProdukGrupJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','Grup_InvID','Kode_Grup','Nama_Grup','Margin','Aktif','Cari_Grup'],
onSuccess: () => {
@@ -71,7 +71,7 @@ var ProdukGrupJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Grup']
}).send();
diff --git a/app/Scripts/table/rekpos.js b/app/Scripts/table/rekpos.js
index 3c4b22f..bd13bd5 100644
--- a/app/Scripts/table/rekpos.js
+++ b/app/Scripts/table/rekpos.js
@@ -50,7 +50,7 @@ var RekPOSJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','KartuID='+acell[0],'Cari_Rekpos'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -59,7 +59,7 @@ var RekPOSJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','KartuID','Kode_Kartu','Nama_Kartu','Kode_Rek','Aktif','Cari_Rekpos'],
onSuccess: () => {
@@ -71,7 +71,7 @@ var RekPOSJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Rekpos']
}).send();
diff --git a/app/Scripts/table/satuan.js b/app/Scripts/table/satuan.js
index b62b59b..5f25a08 100644
--- a/app/Scripts/table/satuan.js
+++ b/app/Scripts/table/satuan.js
@@ -50,7 +50,7 @@ var SatuanJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[2]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','SatuanID='+acell[0],'Cari_Satuan'],
onSuccess: () => {
@@ -61,7 +61,7 @@ var SatuanJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','SatuanID','Kode_Satuan','Nama_Satuan','Aktif','Cari_Satuan'],
onSuccess: () => {
@@ -73,7 +73,7 @@ var SatuanJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Satuan']
}).send();
diff --git a/app/Scripts/table/supplier.js b/app/Scripts/table/supplier.js
index cd63446..fc67b60 100644
--- a/app/Scripts/table/supplier.js
+++ b/app/Scripts/table/supplier.js
@@ -61,7 +61,7 @@ var SupplierJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','SupID','Kode_Sup','Nama_Sup','Alamat_Sup','Telp_Sup','No_NPWP','No_NITKU','Aktif','Cari_Sup'],
onSuccess: (adata) => {
@@ -75,7 +75,7 @@ var SupplierJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Sup']
}).send();
diff --git a/app/Scripts/table/varian.js b/app/Scripts/table/varian.js
index 0140aee..034c0f0 100644
--- a/app/Scripts/table/varian.js
+++ b/app/Scripts/table/varian.js
@@ -50,7 +50,7 @@ var VarianJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus "'+acell[1]+'" ?', () => {
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','VarianID='+acell[0],'Cari_Varian'],
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
@@ -59,7 +59,7 @@ var VarianJS = {
},
detail_save: function(){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail','VarianID','Nama_Varian','Aktif','Cari_Varian'],
onSuccess: () => {
@@ -71,7 +71,7 @@ var VarianJS = {
data_query: function(tipe, mode){
if (tipe=="detail"){
- new Request.JSONF({
+ new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['Cari_Varian']
}).send();