Refactor AJAX requests from Request.JSONF to Request_JSF across multiple scripts for consistency and improved functionality.
This commit is contained in:
@@ -54,7 +54,7 @@ var DISPConfigJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=='brow-cabang'){
|
} else if (tipe=='brow-cabang'){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_cabang',
|
url: this.PHP + '/brow_cabang',
|
||||||
}).send();
|
}).send();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ var DISPIklanJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Iklan'],
|
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Iklan'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -82,7 +82,7 @@ var DISPIklanJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','PromoID','CabID','Tanggal','Info','Aktif','Cari_Iklan'],
|
sendParam: ['mode_detail','PromoID','CabID','Tanggal','Info','Aktif','Cari_Iklan'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -94,7 +94,7 @@ var DISPIklanJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Iklan']
|
sendParam: ['Cari_Iklan']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ var DISPPromoJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Promo'],
|
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Promo'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -82,7 +82,7 @@ var DISPPromoJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','PromoID','Tanggal','Info','Warna','Font','Aktif','Cari_Promo'],
|
sendParam: ['mode_detail','PromoID','Tanggal','Info','Warna','Font','Aktif','Cari_Promo'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -94,7 +94,7 @@ var DISPPromoJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Promo']
|
sendParam: ['Cari_Promo']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ var GELGajiJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[2]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[2]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','No_Gaji','ID='+acell[0]]
|
sendParam: ['mode','mode_detail=delete','No_Gaji','ID='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -203,7 +203,7 @@ var GELGajiJS = {
|
|||||||
FoniaJS.showError('Jumlah Potongan melebihi Jumlah Pinjaman !');
|
FoniaJS.showError('Jumlah Potongan melebihi Jumlah Pinjaman !');
|
||||||
}
|
}
|
||||||
var _mdetail = $('#mode_detail').val();
|
var _mdetail = $('#mode_detail').val();
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
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'],
|
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: () => {
|
onSuccess: () => {
|
||||||
@@ -248,24 +248,24 @@ var GELGajiJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','No_Gaji']
|
sendParam: ['mode','No_Gaji']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-karya"){
|
} else if (tipe=="brow-karya"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_karya',
|
url: this.PHP + '/brow_karya',
|
||||||
sendParam: ['No_Gaji','Cari_Karya'],
|
sendParam: ['No_Gaji','Cari_Karya'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Karya')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Karya')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-cetak"){
|
} else if (tipe=="brow-cetak"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_cetak',
|
url: this.PHP + '/brow_cetak',
|
||||||
sendParam: ['No_Gaji']
|
sendParam: ['No_Gaji']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ var GELHutangJS = {
|
|||||||
|
|
||||||
bayar_hapus: function(acell){
|
bayar_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_bayar',
|
url: this.PHP + '/table_bayar',
|
||||||
sendParam: ['mode_detail=delete','No_Beli','ID='+acell[0]]
|
sendParam: ['mode_detail=delete','No_Beli','ID='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -110,7 +110,7 @@ var GELHutangJS = {
|
|||||||
FoniaJS.showError("Jumlah pelunasan melebihi jumlah faktur!");
|
FoniaJS.showError("Jumlah pelunasan melebihi jumlah faktur!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_bayar',
|
url: this.PHP + '/table_bayar',
|
||||||
sendParam: ['mode_detail=insert','SupID','No_Beli','Tgl_Bayar','Kode_Rek','Total_Bayar','Total_Potong','Tipe_Nota','Nama_Sup'],
|
sendParam: ['mode_detail=insert','SupID','No_Beli','Tgl_Bayar','Kode_Rek','Total_Bayar','Total_Potong','Tipe_Nota','Nama_Sup'],
|
||||||
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
|
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
|
||||||
@@ -135,17 +135,17 @@ var GELHutangJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-nota"){
|
} else if (tipe=="tabel-nota"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_nota',
|
url: this.PHP + '/table_nota',
|
||||||
sendParam: ['SupID','Mode_Tampil']
|
sendParam: ['SupID','Mode_Tampil']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-bayar"){
|
} else if (tipe=="tabel-bayar"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_bayar',
|
url: this.PHP + '/table_bayar',
|
||||||
sendParam: ['No_Beli','Lunas','Mode_Tampil']
|
sendParam: ['No_Beli','Lunas','Mode_Tampil']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-sup"){
|
} else if (tipe=="brow-sup"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_sup',
|
url: this.PHP + '/brow_sup',
|
||||||
sendParam: ['Cari_Sup'],
|
sendParam: ['Cari_Sup'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Sup')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Sup')
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ var GELKaryaJS = {
|
|||||||
FoniaJS.showError("Silahkan masukkan jumlah pinjaman !");
|
FoniaJS.showError("Silahkan masukkan jumlah pinjaman !");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_karya',
|
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'],
|
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)
|
onSuccess: () => FoniaJS.closeWindow(this.winPinjam)
|
||||||
@@ -63,7 +63,7 @@ var GELKaryaJS = {
|
|||||||
FoniaJS.showError("Silahkan masukkan jumlah pembayaran !");
|
FoniaJS.showError("Silahkan masukkan jumlah pembayaran !");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_karya',
|
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'],
|
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)
|
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
|
||||||
@@ -72,7 +72,7 @@ var GELKaryaJS = {
|
|||||||
|
|
||||||
karya_hapus: function(acell){
|
karya_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[0]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[0]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_karya',
|
url: this.PHP + '/table_karya',
|
||||||
sendParam: ['mode_detail=delete','KaryaID','No_Trans='+acell[0]]
|
sendParam: ['mode_detail=delete','KaryaID','No_Trans='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -91,7 +91,7 @@ var GELKaryaJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-karya"){
|
} else if (tipe=="tabel-karya"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_karya',
|
url: this.PHP + '/table_karya',
|
||||||
sendParam: ['KaryaID']
|
sendParam: ['KaryaID']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ var GELKeluarJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+' - '+acell[2]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+' - '+acell[2]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
|
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -182,7 +182,7 @@ var GELKeluarJS = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var _mdetail = $('#mode_detail').val();
|
var _mdetail = $('#mode_detail').val();
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','Jumlah','ID'],
|
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','Jumlah','ID'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -234,18 +234,18 @@ var GELKeluarJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','Kode_Jurnal']
|
sendParam: ['mode','Kode_Jurnal']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-rek"){
|
} else if (tipe=="brow-rek"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_rek',
|
url: this.PHP + '/brow_rek',
|
||||||
sendParam: ['Cari_Rek'],
|
sendParam: ['Cari_Rek'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ var GELPiutangJS = {
|
|||||||
|
|
||||||
bayar_hapus: function(acell){
|
bayar_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_bayar',
|
url: this.PHP + '/table_bayar',
|
||||||
sendParam: ['mode_detail=delete','No_Jual','ID='+acell[0]]
|
sendParam: ['mode_detail=delete','No_Jual','ID='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -110,7 +110,7 @@ var GELPiutangJS = {
|
|||||||
FoniaJS.showError("Jumlah pelunasan melebihi jumlah faktur!");
|
FoniaJS.showError("Jumlah pelunasan melebihi jumlah faktur!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_bayar',
|
url: this.PHP + '/table_bayar',
|
||||||
sendParam: ['mode_detail=insert','MemberID','No_Jual','Tgl_Bayar','Kode_Rek','Total_Bayar','Total_Potong','Tipe_Nota','Nama_Member'],
|
sendParam: ['mode_detail=insert','MemberID','No_Jual','Tgl_Bayar','Kode_Rek','Total_Bayar','Total_Potong','Tipe_Nota','Nama_Member'],
|
||||||
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
|
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
|
||||||
@@ -135,17 +135,17 @@ var GELPiutangJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-nota"){
|
} else if (tipe=="tabel-nota"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_nota',
|
url: this.PHP + '/table_nota',
|
||||||
sendParam: ['MemberID','Mode_Tampil']
|
sendParam: ['MemberID','Mode_Tampil']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-bayar"){
|
} else if (tipe=="tabel-bayar"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_bayar',
|
url: this.PHP + '/table_bayar',
|
||||||
sendParam: ['No_Jual','Lunas','Mode_Tampil']
|
sendParam: ['No_Jual','Lunas','Mode_Tampil']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-buyer"){
|
} else if (tipe=="brow-buyer"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_buyer',
|
url: this.PHP + '/brow_buyer',
|
||||||
sendParam: ['Cari_Buyer'],
|
sendParam: ['Cari_Buyer'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Buyer')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Buyer')
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ var GELTerimaJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+' - '+acell[2]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+' - '+acell[2]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
|
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -182,7 +182,7 @@ var GELTerimaJS = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var _mdetail = $('#mode_detail').val();
|
var _mdetail = $('#mode_detail').val();
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','Jumlah','ID'],
|
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','Jumlah','ID'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -234,18 +234,18 @@ var GELTerimaJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','Kode_Jurnal']
|
sendParam: ['mode','Kode_Jurnal']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-rek"){
|
} else if (tipe=="brow-rek"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_rek',
|
url: this.PHP + '/brow_rek',
|
||||||
sendParam: ['Cari_Rek'],
|
sendParam: ['Cari_Rek'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ var GELUmumJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+' - '+acell[2]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+' - '+acell[2]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
|
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -185,7 +185,7 @@ var GELUmumJS = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var _mdetail = $('#mode_detail').val();
|
var _mdetail = $('#mode_detail').val();
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','DK','Jumlah','ID'],
|
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','DK','Jumlah','ID'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -237,18 +237,18 @@ var GELUmumJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','Kode_Jurnal']
|
sendParam: ['mode','Kode_Jurnal']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-rek"){
|
} else if (tipe=="brow-rek"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_rek',
|
url: this.PHP + '/brow_rek',
|
||||||
sendParam: ['Cari_Rek'],
|
sendParam: ['Cari_Rek'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ var BeliJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','No_Beli','ID='+acell[0]],
|
sendParam: ['mode','mode_detail=delete','No_Beli','ID='+acell[0]],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -267,7 +267,7 @@ var BeliJS = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var _mdetail = $('#mode_detail').val();
|
var _mdetail = $('#mode_detail').val();
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
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'],
|
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: () => {
|
onSuccess: () => {
|
||||||
@@ -358,7 +358,7 @@ var BeliJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','No_Beli'],
|
sendParam: ['mode','No_Beli'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -367,18 +367,18 @@ var BeliJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-pending"){
|
} else if (tipe=="brow-pending"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_pending',
|
url: this.PHP + '/brow_pending',
|
||||||
sendParam: ['Cari_Pending']
|
sendParam: ['Cari_Pending']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk','Filter_Browse','SupID'],
|
sendParam: ['Cari_Produk','Filter_Browse','SupID'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
@@ -420,7 +420,7 @@ var BeliJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
update_Varian: function(){
|
update_Varian: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/option_varian',
|
url: this.PHP + '/option_varian',
|
||||||
sendParam: ['InvID','SatuanID','VarianID']
|
sendParam: ['InvID','SatuanID','VarianID']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ var BeliReturJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','No_Beli','ID='+acell[0]]
|
sendParam: ['mode','mode_detail=delete','No_Beli','ID='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -195,7 +195,7 @@ var BeliReturJS = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var _mdetail = $('#mode_detail').val();
|
var _mdetail = $('#mode_detail').val();
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail','No_Beli','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli'],
|
sendParam: ['mode','mode_detail','No_Beli','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -242,18 +242,18 @@ var BeliReturJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','No_Beli']
|
sendParam: ['mode','No_Beli']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['CabID','Cari_Produk'],
|
sendParam: ['CabID','Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
@@ -274,7 +274,7 @@ var BeliReturJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
update_Varian: function(){
|
update_Varian: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/option_varian',
|
url: this.PHP + '/option_varian',
|
||||||
sendParam: ['InvID','SatuanID','VarianID']
|
sendParam: ['InvID','SatuanID','VarianID']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ var CekHargaJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-produk"){
|
if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk'],
|
sendParam: ['Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
@@ -91,7 +91,7 @@ var CekHargaJS = {
|
|||||||
|
|
||||||
update_Sup: function(){
|
update_Sup: function(){
|
||||||
if (parseInt($('#InvID').val()) == 0) return false;
|
if (parseInt($('#InvID').val()) == 0) return false;
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/update_sup',
|
url: this.PHP + '/update_sup',
|
||||||
sendParam: ['InvID']
|
sendParam: ['InvID']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ var JualJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','No_Jual','ID='+acell[0]],
|
sendParam: ['mode','mode_detail=delete','No_Jual','ID='+acell[0]],
|
||||||
onSuccess: () => $('#Nama_Produk').focus()
|
onSuccess: () => $('#Nama_Produk').focus()
|
||||||
@@ -250,7 +250,7 @@ var JualJS = {
|
|||||||
FoniaJS.showInfo('Nilai Diskon diluar batas !');
|
FoniaJS.showInfo('Nilai Diskon diluar batas !');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail','No_Jual','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Harga_Jual','Disk_Rupiah','Disk_Persen'],
|
sendParam: ['mode','mode_detail','No_Jual','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Harga_Jual','Disk_Rupiah','Disk_Persen'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -324,28 +324,28 @@ var JualJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','No_Jual']
|
sendParam: ['mode','No_Jual']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-pending"){
|
} else if (tipe=="brow-pending"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_pending',
|
url: this.PHP + '/brow_pending',
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-member"){
|
} else if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member'],
|
sendParam: ['Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk','Grup_MemberID'],
|
sendParam: ['Cari_Produk','Grup_MemberID'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
@@ -371,7 +371,7 @@ var JualJS = {
|
|||||||
// P : Satuan : Varian : Harga_Pokok : Harga_Jual : Stok
|
// P : Satuan : Varian : Harga_Pokok : Harga_Jual : Stok
|
||||||
//todo: jika stok kosong tidak simpan !!
|
//todo: jika stok kosong tidak simpan !!
|
||||||
//if (parseInt(adata[5])>0 || _qty<0){
|
//if (parseInt(adata[5])>0 || _qty<0){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: JualJS.PHP + '/table_detail',
|
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]],
|
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')
|
onSuccess: () => $('#POS_Qty').val('1.00')
|
||||||
@@ -386,7 +386,7 @@ var JualJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
update_Piutang: function(){
|
update_Piutang: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/update_piutang',
|
url: this.PHP + '/update_piutang',
|
||||||
sendParam: ['MemberID'],
|
sendParam: ['MemberID'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Nama_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Nama_Produk')
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ var MutasiJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','No_Mutasi','ID='+acell[0]],
|
sendParam: ['mode','mode_detail=delete','No_Mutasi','ID='+acell[0]],
|
||||||
onSuccess: () => $('#Nama_Produk').focus()
|
onSuccess: () => $('#Nama_Produk').focus()
|
||||||
@@ -189,7 +189,7 @@ var MutasiJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_simpan: function(){
|
detail_simpan: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail','No_Mutasi','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Dari_CabID','Ke_CabID'],
|
sendParam: ['mode','mode_detail','No_Mutasi','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Dari_CabID','Ke_CabID'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -249,18 +249,18 @@ var MutasiJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','No_Mutasi']
|
sendParam: ['mode','No_Mutasi']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk','Dari_CabID'],
|
sendParam: ['Cari_Produk','Dari_CabID'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
@@ -276,7 +276,7 @@ var MutasiJS = {
|
|||||||
var _qty = FoniaJS.StrToFloat($('#POS_Qty').val());
|
var _qty = FoniaJS.StrToFloat($('#POS_Qty').val());
|
||||||
var adata = item.data.split(':');
|
var adata = item.data.split(':');
|
||||||
// Satuan : Varian : Harga_Pokok
|
// Satuan : Varian : Harga_Pokok
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: MutasiJS.PHP + '/table_detail',
|
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]],
|
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')
|
onSuccess: () => $('#POS_Qty').val('1.00')
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ var OpnameJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[2]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[2]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','No_Opname','ID='+acell[0]]
|
sendParam: ['mode','mode_detail=delete','No_Opname','ID='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -184,7 +184,7 @@ var OpnameJS = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var _mdetail = $('#mode_detail').val();
|
var _mdetail = $('#mode_detail').val();
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail','No_Opname','CabID','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli'],
|
sendParam: ['mode','mode_detail','No_Opname','CabID','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -231,18 +231,18 @@ var OpnameJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','No_Opname']
|
sendParam: ['mode','No_Opname']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['CabID','Cari_Produk'],
|
sendParam: ['CabID','Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ var OpnameBarangJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-produk"){
|
if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk'],
|
sendParam: ['Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ var POSJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','No_Jual','ID='+acell[0]],
|
sendParam: ['mode_detail=delete','No_Jual','ID='+acell[0]],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -225,7 +225,7 @@ var POSJS = {
|
|||||||
FoniaJS.showInfo('Nilai Diskon diluar batas !');
|
FoniaJS.showInfo('Nilai Diskon diluar batas !');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','No_Jual','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Harga_Jual','Disk_Rupiah','Disk_Persen'],
|
sendParam: ['mode_detail','No_Jual','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Harga_Jual','Disk_Rupiah','Disk_Persen'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -392,28 +392,28 @@ var POSJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=='detail'){
|
} else if (tipe=='detail'){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['No_Jual']
|
sendParam: ['No_Jual']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=='brow-nota'){
|
} else if (tipe=='brow-nota'){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_nota',
|
url: this.PHP + '/brow_nota',
|
||||||
sendParam: ['Cari_Nota'],
|
sendParam: ['Cari_Nota'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Nota')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Nota')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=='brow-pending'){
|
} else if (tipe=='brow-pending'){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_pending',
|
url: this.PHP + '/brow_pending',
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-member"){
|
} else if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member'],
|
sendParam: ['Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=='brow-produk'){
|
} else if (tipe=='brow-produk'){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk','Grup_MemberID'],
|
sendParam: ['Cari_Produk','Grup_MemberID'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
@@ -455,7 +455,7 @@ var POSJS = {
|
|||||||
// P : Satuan : Varian : Harga_Pokok : Harga_Jual : Stok
|
// P : Satuan : Varian : Harga_Pokok : Harga_Jual : Stok
|
||||||
//todo: jika stok kosong tidak simpan !!
|
//todo: jika stok kosong tidak simpan !!
|
||||||
//if (parseInt(adata[5])>0 || _qty<0){
|
//if (parseInt(adata[5])>0 || _qty<0){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: POSJS.PHP + '/table_detail',
|
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]],
|
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: () => {
|
onSuccess: () => {
|
||||||
|
|||||||
@@ -69,12 +69,12 @@ var MemberPointJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="table-point"){
|
if (tipe=="table-point"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_point',
|
url: this.PHP + '/table_point',
|
||||||
sendParam: ['MemberID']
|
sendParam: ['MemberID']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-member"){
|
} else if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member'],
|
sendParam: ['Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
||||||
|
|||||||
@@ -238,18 +238,18 @@ var MemberTukarJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-tx"){
|
} else if (tipe=="brow-tx"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_tx',
|
url: this.PHP + '/brow_tx',
|
||||||
sendParam: ['Cari_TX'],
|
sendParam: ['Cari_TX'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-member"){
|
} else if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member','Point_TipeID']
|
sendParam: ['Cari_Member','Point_TipeID']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-barang"){
|
} else if (tipe=="brow-barang"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_barang',
|
url: this.PHP + '/brow_barang',
|
||||||
sendParam: ['Cari_Barang','Point_TipeID'],
|
sendParam: ['Cari_Barang','Point_TipeID'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Barang')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Barang')
|
||||||
|
|||||||
@@ -36,14 +36,14 @@ var PPOBTXJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
proses_delete: function(no_tx){
|
proses_delete: function(no_tx){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_tx',
|
url: this.PHP + '/table_tx',
|
||||||
sendParam: ['mode_detail=delete','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
|
sendParam: ['mode_detail=delete','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
|
||||||
}).send();
|
}).send();
|
||||||
},
|
},
|
||||||
|
|
||||||
proses_reproc: function(no_tx){
|
proses_reproc: function(no_tx){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_tx',
|
url: this.PHP + '/table_tx',
|
||||||
sendParam: ['mode_detail=reproc','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
|
sendParam: ['mode_detail=reproc','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
|
||||||
}).send();
|
}).send();
|
||||||
@@ -87,7 +87,7 @@ var PPOBTXJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="tabel-detail"){
|
if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_tx',
|
url: this.PHP + '/table_tx',
|
||||||
sendParam: ['Tgl_From','Tgl_To','Cari_TX']
|
sendParam: ['Tgl_From','Tgl_To','Cari_TX']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -43,14 +43,14 @@ var PrabayarJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
proses_delete: function(){
|
proses_delete: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_tx',
|
url: this.PHP + '/table_tx',
|
||||||
sendParam: ['mode_detail=delete','No_TX']
|
sendParam: ['mode_detail=delete','No_TX']
|
||||||
}).send();
|
}).send();
|
||||||
},
|
},
|
||||||
|
|
||||||
proses_reproc: function(ft){
|
proses_reproc: function(ft){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_tx',
|
url: this.PHP + '/table_tx',
|
||||||
sendParam: ['mode_detail=reproc','No_TX','FT='+ft]
|
sendParam: ['mode_detail=reproc','No_TX','FT='+ft]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -246,7 +246,7 @@ var PrabayarJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=='tabel-tx'){
|
} else if (tipe=='tabel-tx'){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_tx',
|
url: this.PHP + '/table_tx',
|
||||||
sendParam: ['Cari_PPOB']
|
sendParam: ['Cari_PPOB']
|
||||||
}).send();
|
}).send();
|
||||||
@@ -274,7 +274,7 @@ var PrabayarJS = {
|
|||||||
$('.rowToken').addClass('d-none');
|
$('.rowToken').addClass('d-none');
|
||||||
$('.rowPulsa').removeClass('d-none');
|
$('.rowPulsa').removeClass('d-none');
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/option_operator',
|
url: this.PHP + '/option_operator',
|
||||||
sendParam: ['KateID'],
|
sendParam: ['KateID'],
|
||||||
}).send();
|
}).send();
|
||||||
@@ -283,7 +283,7 @@ var PrabayarJS = {
|
|||||||
oc_Tujuan: function(){
|
oc_Tujuan: function(){
|
||||||
if ($('#Tujuan').val()=='') return false;
|
if ($('#Tujuan').val()=='') return false;
|
||||||
if ($.inArray(parseInt($('#KateID').val()), this.KATE_PREFIX) === -1) return false;
|
if ($.inArray(parseInt($('#KateID').val()), this.KATE_PREFIX) === -1) return false;
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/option_operator',
|
url: this.PHP + '/option_operator',
|
||||||
sendParam: ['KateID','Tujuan'],
|
sendParam: ['KateID','Tujuan'],
|
||||||
}).send();
|
}).send();
|
||||||
@@ -291,7 +291,7 @@ var PrabayarJS = {
|
|||||||
|
|
||||||
oc_OpeID: function(){
|
oc_OpeID: function(){
|
||||||
if ($('#OpeID').val()==0) return false;
|
if ($('#OpeID').val()==0) return false;
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/option_produk',
|
url: this.PHP + '/option_produk',
|
||||||
sendParam: ['KateID','OpeID'],
|
sendParam: ['KateID','OpeID'],
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ var TopupJS = {
|
|||||||
$('#Jumlah').focus();
|
$('#Jumlah').focus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=insert','Tgl_Depo','Jumlah','Bank'],
|
sendParam: ['mode_detail=insert','Tgl_Depo','Jumlah','Bank'],
|
||||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||||
@@ -61,7 +61,7 @@ var TopupJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="tabel-detail"){
|
if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Topup']
|
sendParam: ['Cari_Topup']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ var PromoBarangJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_promo',
|
url: this.PHP + '/table_promo',
|
||||||
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Promo'],
|
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Promo'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -68,7 +68,7 @@ var PromoBarangJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_promo',
|
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'],
|
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: () => {
|
onSuccess: () => {
|
||||||
@@ -112,12 +112,12 @@ var PromoBarangJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_promo',
|
url: this.PHP + '/table_promo',
|
||||||
sendParam: ['Cari_Promo']
|
sendParam: ['Cari_Promo']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk'],
|
sendParam: ['Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ var PromoBeliDiscJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail=delete','Grup_PromoID','PromoID='+acell[0]],
|
sendParam: ['mode','mode_detail=delete','Grup_PromoID','PromoID='+acell[0]],
|
||||||
}).send();
|
}).send();
|
||||||
@@ -154,7 +154,7 @@ var PromoBeliDiscJS = {
|
|||||||
FoniaJS.showError('Silakan masukkan Nama Barang Promo !');
|
FoniaJS.showError('Silakan masukkan Nama Barang Promo !');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','mode_detail','Grup_PromoID','PromoID','InvID','SatuanID','Kode_Varian'],
|
sendParam: ['mode','mode_detail','Grup_PromoID','PromoID','InvID','SatuanID','Kode_Varian'],
|
||||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||||
@@ -162,7 +162,7 @@ var PromoBeliDiscJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
varian_show: function(){
|
varian_show: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/form_varian',
|
url: this.PHP + '/form_varian',
|
||||||
sendParam: ['InvID','SatuanID','Kode_Varian']
|
sendParam: ['InvID','SatuanID','Kode_Varian']
|
||||||
}).send();
|
}).send();
|
||||||
@@ -202,18 +202,18 @@ var PromoBeliDiscJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-detail"){
|
} else if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','Grup_PromoID']
|
sendParam: ['mode','Grup_PromoID']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-promo"){
|
} else if (tipe=="brow-promo"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_promo',
|
url: this.PHP + '/brow_promo',
|
||||||
sendParam: ['Cari_Promo'],
|
sendParam: ['Cari_Promo'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Promo')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Promo')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk','Grup_PromoID'],
|
sendParam: ['Cari_Produk','Grup_PromoID'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
@@ -228,7 +228,7 @@ var PromoBeliDiscJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
update_items: function(InvID, SatuanID){
|
update_items: function(InvID, SatuanID){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/option_satuan',
|
url: this.PHP + '/option_satuan',
|
||||||
sendParam: ['InvID='+InvID,'SatuanID='+SatuanID],
|
sendParam: ['InvID='+InvID,'SatuanID='+SatuanID],
|
||||||
onSuccess: () => this.varian_show()
|
onSuccess: () => this.varian_show()
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ var PromoTotalJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_promo',
|
url: this.PHP + '/table_promo',
|
||||||
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Promo'],
|
sendParam: ['mode_detail=delete','PromoID='+acell[0],'Cari_Promo'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -66,7 +66,7 @@ var PromoTotalJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_promo',
|
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'],
|
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: () => {
|
onSuccess: () => {
|
||||||
@@ -135,12 +135,12 @@ var PromoTotalJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_promo',
|
url: this.PHP + '/table_promo',
|
||||||
sendParam: ['Cari_Promo']
|
sendParam: ['Cari_Promo']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk'],
|
sendParam: ['Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ var RepoGelHBesarJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="brow-rek"){
|
if (tipe=="brow-rek"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_rek',
|
url: this.PHP + '/brow_rek',
|
||||||
sendParam: ['Cari_Rek'],
|
sendParam: ['Cari_Rek'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ var RepoGelHDetailJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="brow-jurnal"){
|
if (tipe=="brow-jurnal"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_jurnal',
|
url: this.PHP + '/brow_jurnal',
|
||||||
sendParam: ['Cari_Jurnal'],
|
sendParam: ['Cari_Jurnal'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Jurnal')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Jurnal')
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ var RepoInvBarcodeJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-produk"){
|
if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk'],
|
sendParam: ['Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
@@ -91,7 +91,7 @@ var RepoInvBarcodeJS = {
|
|||||||
|
|
||||||
load_printer: function(){
|
load_printer: function(){
|
||||||
qz.printers.find().then((data) => {
|
qz.printers.find().then((data) => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/load_printer',
|
url: this.PHP + '/load_printer',
|
||||||
sendParam: ['Printer='+JSON.stringify(data),'DefPrint='+$('#configPrinter').html()]
|
sendParam: ['Printer='+JSON.stringify(data),'DefPrint='+$('#configPrinter').html()]
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ var RepoInvLabelJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
proses_empty: function(){
|
proses_empty: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=empty']
|
sendParam: ['mode_detail=empty']
|
||||||
}).send();
|
}).send();
|
||||||
@@ -52,7 +52,7 @@ var RepoInvLabelJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
produk_simpan: function(){
|
produk_simpan: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=simpan-produk'],
|
sendParam: ['mode_detail=simpan-produk'],
|
||||||
onSuccess: () => FoniaJS.closeWindow(this.winBProduk)
|
onSuccess: () => FoniaJS.closeWindow(this.winBProduk)
|
||||||
@@ -77,7 +77,7 @@ var RepoInvLabelJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
grup_select: function(acell){
|
grup_select: function(acell){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=simpan-grup','Grup_InvID='+acell[0]],
|
sendParam: ['mode_detail=simpan-grup','Grup_InvID='+acell[0]],
|
||||||
onSuccess: () => FoniaJS.closeWindow(this.winBGrup)
|
onSuccess: () => FoniaJS.closeWindow(this.winBGrup)
|
||||||
@@ -103,7 +103,7 @@ var RepoInvLabelJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+'"</strong> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+'"</strong> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','ID='+acell[0]]
|
sendParam: ['mode_detail=delete','ID='+acell[0]]
|
||||||
}).send();
|
}).send();
|
||||||
@@ -111,7 +111,7 @@ var RepoInvLabelJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_simpan: function(){
|
detail_simpan: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=update','ID='+$('#ID').val(),'Nama_Produk='+encodeURIComponent($('#Nama_Produk').val())],
|
sendParam: ['mode_detail=update','ID='+$('#ID').val(),'Nama_Produk='+encodeURIComponent($('#Nama_Produk').val())],
|
||||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||||
@@ -120,18 +120,18 @@ var RepoInvLabelJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode, kd_tx){
|
data_query: function(tipe, mode, kd_tx){
|
||||||
if (tipe=="tabel-detail"){
|
if (tipe=="tabel-detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail='+mode,'No_Label'+((typeof(kd_tx)!=='undefined')?'='+kd_tx:'')]
|
sendParam: ['mode_detail='+mode,'No_Label'+((typeof(kd_tx)!=='undefined')?'='+kd_tx:'')]
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk'],
|
sendParam: ['Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-grup"){
|
} else if (tipe=="brow-grup"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_grup',
|
url: this.PHP + '/brow_grup',
|
||||||
sendParam: ['Cari_Grup'],
|
sendParam: ['Cari_Grup'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Grup')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Grup')
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ var RepoInvPiutangJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-member"){
|
if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member'],
|
sendParam: ['Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ var RepoJualAnalisaJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-member"){
|
if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member'],
|
sendParam: ['Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ var RepoJualMarginJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-member"){
|
if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member'],
|
sendParam: ['Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ var RepoJualMutasiJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-member"){
|
if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member'],
|
sendParam: ['Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
||||||
|
|||||||
@@ -113,13 +113,13 @@ var RepoJualRekapJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-member"){
|
if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member'],
|
sendParam: ['Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk'],
|
sendParam: ['Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ var RepoMemberHistoriJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-member"){
|
if (tipe=="brow-member"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_member',
|
url: this.PHP + '/brow_member',
|
||||||
sendParam: ['Cari_Member'],
|
sendParam: ['Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ var RepoStokMutasiJS = {
|
|||||||
|
|
||||||
data_query: function(tipe){
|
data_query: function(tipe){
|
||||||
if (tipe=="brow-produk"){
|
if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk'],
|
sendParam: ['Cari_Produk'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ var MenuGrupJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm("Konfirmasi", "Yakin akan hapus "+acell[1]+"?", function(){
|
FoniaJS.showConfirm("Konfirmasi", "Yakin akan hapus "+acell[1]+"?", function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode=del','Grup_MenuID='+acell[0],'Cari_Grup'],
|
sendParam: ['mode=del','Grup_MenuID='+acell[0],'Cari_Grup'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -59,7 +59,7 @@ var MenuGrupJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode','Grup_MenuID','Nama_Grup','Ket','Aktif','Cari_Grup'],
|
sendParam: ['mode','Grup_MenuID','Nama_Grup','Ket','Aktif','Cari_Grup'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -120,7 +120,7 @@ var MenuGrupJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
data_query: function(){
|
data_query: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Grup'],
|
sendParam: ['Cari_Grup'],
|
||||||
}).send()
|
}).send()
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ var OperatorJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Filter_Level','Cari_User']
|
sendParam: ['Filter_Level','Cari_User']
|
||||||
}).send()
|
}).send()
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ var PrinterJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=='brow-cabang'){
|
} else if (tipe=='brow-cabang'){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_cabang',
|
url: this.PHP + '/brow_cabang',
|
||||||
}).send();
|
}).send();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ var SuperJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
data_query: function(){
|
data_query: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
}).send();
|
}).send();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ var RekGrupJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','Grup_RekID='+acell[0],'Cari_Rek'],
|
sendParam: ['mode_detail=delete','Grup_RekID='+acell[0],'Cari_Rek'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -61,7 +61,7 @@ var RekGrupJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','Grup_RekID','Nama_Grup','Aktif','Cari_Rek'],
|
sendParam: ['mode_detail','Grup_RekID','Nama_Grup','Aktif','Cari_Rek'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -73,7 +73,7 @@ var RekGrupJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Rek']
|
sendParam: ['Cari_Rek']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ var KaryawanJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','KaryaID='+acell[0],'Cari_Karya'],
|
sendParam: ['mode_detail=delete','KaryaID='+acell[0],'Cari_Karya'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -57,7 +57,7 @@ var KaryawanJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','KaryaID','Nama_Karya','Gaji_Harian','Tgl_Masuk','Tgl_Keluar','Aktif','Cari_Karya'],
|
sendParam: ['mode_detail','KaryaID','Nama_Karya','Gaji_Harian','Tgl_Masuk','Tgl_Keluar','Aktif','Cari_Karya'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -69,7 +69,7 @@ var KaryawanJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Karya']
|
sendParam: ['Cari_Karya']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ var RekJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','Kode_Rek='+acell[0],'Cari_Rek'],
|
sendParam: ['mode_detail=delete','Kode_Rek='+acell[0],'Cari_Rek'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -80,7 +80,7 @@ var RekJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','Kode_Rek','Kode_Induk','Nama_Rek','Grup_RekID','Level','Mode','Kas_Rek','Aktif','Cari_Rek'],
|
sendParam: ['mode_detail','Kode_Rek','Kode_Induk','Nama_Rek','Grup_RekID','Level','Mode','Kas_Rek','Aktif','Cari_Rek'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -92,7 +92,7 @@ var RekJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Rek']
|
sendParam: ['Cari_Rek']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ var MemberJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','MemberID='+acell[0],'Cari_Member'],
|
sendParam: ['mode_detail=delete','MemberID='+acell[0],'Cari_Member'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -80,7 +80,7 @@ var MemberJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
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'],
|
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: () => {
|
onSuccess: () => {
|
||||||
@@ -92,7 +92,7 @@ var MemberJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Member']
|
sendParam: ['Cari_Member']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ var MemberGrupJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','Grup_MemberID='+acell[0],'Cari_Member'],
|
sendParam: ['mode_detail=delete','Grup_MemberID='+acell[0],'Cari_Member'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -61,7 +61,7 @@ var MemberGrupJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','Grup_MemberID','Kode_Grup','Nama_Grup','Aktif','Cari_Member'],
|
sendParam: ['mode_detail','Grup_MemberID','Kode_Grup','Nama_Grup','Aktif','Cari_Member'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -73,7 +73,7 @@ var MemberGrupJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Member']
|
sendParam: ['Cari_Member']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ var PointBarangJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','InvPID='+acell[0],'Cari_Barang'],
|
sendParam: ['mode_detail=delete','InvPID='+acell[0],'Cari_Barang'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -61,7 +61,7 @@ var PointBarangJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','InvPID','Point_TipeID','Nama_Barang','SatuanID','Nilai_Barang','Nilai_Point','Aktif','Cari_Barang'],
|
sendParam: ['mode_detail','InvPID','Point_TipeID','Nama_Barang','SatuanID','Nilai_Barang','Nilai_Point','Aktif','Cari_Barang'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -73,7 +73,7 @@ var PointBarangJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Barang']
|
sendParam: ['Cari_Barang']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ var PointSkemaJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[5]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[5]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','PointID='+acell[0],'Cari_Skema'],
|
sendParam: ['mode_detail=delete','PointID='+acell[0],'Cari_Skema'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -62,7 +62,7 @@ var PointSkemaJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
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'],
|
sendParam: ['mode_detail','PointID','Point_TipeID','KartuID','CabID','Grup_MemberID','Nilai_Jual','Grup_Barang','Kode_Barang','Tgl_Mulai','Aktif','Cari_Skema'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -119,7 +119,7 @@ var PointSkemaJS = {
|
|||||||
|
|
||||||
barang_hapus: function(acell){
|
barang_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_barang',
|
url: this.PHP + '/table_barang',
|
||||||
sendParam: ['mode_detail=delete','InvID='+acell[0],'Kode_Barang'],
|
sendParam: ['mode_detail=delete','InvID='+acell[0],'Kode_Barang'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -129,12 +129,12 @@ var PointSkemaJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Skema']
|
sendParam: ['Cari_Skema']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-barang"){
|
} else if (tipe=="tabel-barang"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_barang',
|
url: this.PHP + '/table_barang',
|
||||||
sendParam: ['Kode_Barang'],
|
sendParam: ['Kode_Barang'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Nama_Produk')
|
onSuccess: () => FoniaJS.setFocus('#Nama_Produk')
|
||||||
@@ -143,7 +143,7 @@ var PointSkemaJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
Produk_Comp: function(item){
|
Produk_Comp: function(item){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: PointSkemaJS.PHP + '/table_barang',
|
url: PointSkemaJS.PHP + '/table_barang',
|
||||||
sendParam: ['mode_detail=insert','Kode_Barang','InvID='+item.value]
|
sendParam: ['mode_detail=insert','Kode_Barang','InvID='+item.value]
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ var PointTipeJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','Point_TipeID='+acell[0],'Cari_Tipe'],
|
sendParam: ['mode_detail=delete','Point_TipeID='+acell[0],'Cari_Tipe'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -61,7 +61,7 @@ var PointTipeJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','Point_TipeID','Nama_Tipe','Txt_Struk1','Txt_Struk2','Aktif','Cari_Tipe'],
|
sendParam: ['mode_detail','Point_TipeID','Nama_Tipe','Txt_Struk1','Txt_Struk2','Aktif','Cari_Tipe'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -73,7 +73,7 @@ var PointTipeJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Tipe']
|
sendParam: ['Cari_Tipe']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ var PPOBKateJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Kate']
|
sendParam: ['Cari_Kate']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ var PPOBOpeJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Ope']
|
sendParam: ['Cari_Ope']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ var PPOBProdukJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
update_proses: function(){
|
update_proses: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/proses_update',
|
url: this.PHP + '/proses_update',
|
||||||
sendParam: ['K_Kate','K_Ope'],
|
sendParam: ['K_Kate','K_Ope'],
|
||||||
onSuccess: (ajson) => {
|
onSuccess: (ajson) => {
|
||||||
@@ -91,7 +91,7 @@ var PPOBProdukJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
produk_simpan: function(){
|
produk_simpan: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_produk',
|
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'],
|
sendParam: ['mode_detail','ProdukID','OpeID','KateID','Nama_Produk='+encodeURIComponent($('#Nama_Produk').val()),'Kode','Harga_Pokok','Harga_Jual','Status','Cari_Produk'],
|
||||||
onSuccess: (adata) => {
|
onSuccess: (adata) => {
|
||||||
@@ -105,7 +105,7 @@ var PPOBProdukJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="tabel-produk"){
|
if (tipe=="tabel-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_produk',
|
url: this.PHP + '/table_produk',
|
||||||
sendParam: ['Cari_Produk']
|
sendParam: ['Cari_Produk']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
+12
-12
@@ -258,7 +258,7 @@ var ProdukJS = {
|
|||||||
|
|
||||||
kemasan_del: function(acell){
|
kemasan_del: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_kemasan',
|
url: this.PHP + '/tabel_kemasan',
|
||||||
sendParam: ['mode','mode_detail=delete','InvID','InvKemasanID='+acell[0],'SatuanLamaID='+acell[1],'Satuan_Stok='+$('#StokID').find(":selected").text()],
|
sendParam: ['mode','mode_detail=delete','InvID','InvKemasanID='+acell[0],'SatuanLamaID='+acell[1],'Satuan_Stok='+$('#StokID').find(":selected").text()],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -275,7 +275,7 @@ var ProdukJS = {
|
|||||||
FoniaJS.showInfo('Mohon isi jumlah Qty / Kemasan !');
|
FoniaJS.showInfo('Mohon isi jumlah Qty / Kemasan !');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_kemasan',
|
url: this.PHP + '/tabel_kemasan',
|
||||||
sendParam: ['mode','mode_detail=update','InvID','InvKemasanID','SatuanID','SatuanLamaID','Qty','Satuan_Stok='+$('#StokID').find(":selected").text()],
|
sendParam: ['mode','mode_detail=update','InvID','InvKemasanID','SatuanID','SatuanLamaID','Qty','Satuan_Stok='+$('#StokID').find(":selected").text()],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -340,7 +340,7 @@ var ProdukJS = {
|
|||||||
|
|
||||||
varian_del: function(acell){
|
varian_del: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[4]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[4]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_varian',
|
url: this.PHP + '/tabel_varian',
|
||||||
sendParam: ['mode','mode_detail=delete','InvID','InvVarianID='+acell[0]],
|
sendParam: ['mode','mode_detail=delete','InvID','InvVarianID='+acell[0]],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -349,7 +349,7 @@ var ProdukJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
varian_save: function(){
|
varian_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_varian',
|
url: this.PHP + '/tabel_varian',
|
||||||
sendParam: ['mode','mode_detail=update','InvID','InvVarianID','SatuanID','VarianID','Kode_Barcode'],
|
sendParam: ['mode','mode_detail=update','InvID','InvVarianID','SatuanID','VarianID','Kode_Barcode'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan varian produk.')
|
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan varian produk.')
|
||||||
@@ -412,7 +412,7 @@ var ProdukJS = {
|
|||||||
|
|
||||||
harga_del: function(acell){
|
harga_del: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+' - '+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+' - '+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_harga',
|
url: this.PHP + '/tabel_harga',
|
||||||
sendParam: ['mode','mode_detail=delete','InvID','InvHargaID='+acell[0]],
|
sendParam: ['mode','mode_detail=delete','InvID','InvHargaID='+acell[0]],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -421,7 +421,7 @@ var ProdukJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
harga_save: function(){
|
harga_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_harga',
|
url: this.PHP + '/tabel_harga',
|
||||||
sendParam: ['mode','mode_detail=update','InvID','InvHargaID','SatuanID','Grup_MemberID','Harga_Jual'],
|
sendParam: ['mode','mode_detail=update','InvID','InvHargaID','SatuanID','Grup_MemberID','Harga_Jual'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan harga produk.')
|
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan harga produk.')
|
||||||
@@ -448,12 +448,12 @@ var ProdukJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="tabel-produk"){
|
if (tipe=="tabel-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_produk',
|
url: this.PHP + '/tabel_produk',
|
||||||
sendParam: ['Cari_Produk','Filter_Produk']
|
sendParam: ['Cari_Produk','Filter_Produk']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-kemasan"){
|
} else if (tipe=="tabel-kemasan"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_kemasan',
|
url: this.PHP + '/tabel_kemasan',
|
||||||
sendParam: ['mode','InvID','Satuan_Stok='+$('#StokID').find(":selected").text()],
|
sendParam: ['mode','InvID','Satuan_Stok='+$('#StokID').find(":selected").text()],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -462,22 +462,22 @@ var ProdukJS = {
|
|||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-varian"){
|
} else if (tipe=="tabel-varian"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_varian',
|
url: this.PHP + '/tabel_varian',
|
||||||
sendParam: ['mode','InvID']
|
sendParam: ['mode','InvID']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-harga"){
|
} else if (tipe=="tabel-harga"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_harga',
|
url: this.PHP + '/tabel_harga',
|
||||||
sendParam: ['mode','InvID']
|
sendParam: ['mode','InvID']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="tabel-restore"){
|
} else if (tipe=="tabel-restore"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/tabel_restore',
|
url: this.PHP + '/tabel_restore',
|
||||||
sendParam: ['InvID']
|
sendParam: ['InvID']
|
||||||
}).send();
|
}).send();
|
||||||
} else if (tipe=="brow-produk"){
|
} else if (tipe=="brow-produk"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/brow_produk',
|
url: this.PHP + '/brow_produk',
|
||||||
sendParam: ['Cari_Produk2'],
|
sendParam: ['Cari_Produk2'],
|
||||||
onSuccess: () => FoniaJS.setFocus('#Cari_Produk2')
|
onSuccess: () => FoniaJS.setFocus('#Cari_Produk2')
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ var ProdukGrupJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','Grup_InvID','Kode_Grup','Nama_Grup','Margin','Aktif','Cari_Grup'],
|
sendParam: ['mode_detail','Grup_InvID','Kode_Grup','Nama_Grup','Margin','Aktif','Cari_Grup'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -71,7 +71,7 @@ var ProdukGrupJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Grup']
|
sendParam: ['Cari_Grup']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ var RekPOSJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','KartuID='+acell[0],'Cari_Rekpos'],
|
sendParam: ['mode_detail=delete','KartuID='+acell[0],'Cari_Rekpos'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -59,7 +59,7 @@ var RekPOSJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','KartuID','Kode_Kartu','Nama_Kartu','Kode_Rek','Aktif','Cari_Rekpos'],
|
sendParam: ['mode_detail','KartuID','Kode_Kartu','Nama_Kartu','Kode_Rek','Aktif','Cari_Rekpos'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -71,7 +71,7 @@ var RekPOSJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Rekpos']
|
sendParam: ['Cari_Rekpos']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ var SatuanJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[2]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','SatuanID='+acell[0],'Cari_Satuan'],
|
sendParam: ['mode_detail=delete','SatuanID='+acell[0],'Cari_Satuan'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -61,7 +61,7 @@ var SatuanJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','SatuanID','Kode_Satuan','Nama_Satuan','Aktif','Cari_Satuan'],
|
sendParam: ['mode_detail','SatuanID','Kode_Satuan','Nama_Satuan','Aktif','Cari_Satuan'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -73,7 +73,7 @@ var SatuanJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Satuan']
|
sendParam: ['Cari_Satuan']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ var SupplierJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','SupID','Kode_Sup','Nama_Sup','Alamat_Sup','Telp_Sup','No_NPWP','No_NITKU','Aktif','Cari_Sup'],
|
sendParam: ['mode_detail','SupID','Kode_Sup','Nama_Sup','Alamat_Sup','Telp_Sup','No_NPWP','No_NITKU','Aktif','Cari_Sup'],
|
||||||
onSuccess: (adata) => {
|
onSuccess: (adata) => {
|
||||||
@@ -75,7 +75,7 @@ var SupplierJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Sup']
|
sendParam: ['Cari_Sup']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ var VarianJS = {
|
|||||||
|
|
||||||
detail_hapus: function(acell){
|
detail_hapus: function(acell){
|
||||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail=delete','VarianID='+acell[0],'Cari_Varian'],
|
sendParam: ['mode_detail=delete','VarianID='+acell[0],'Cari_Varian'],
|
||||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||||
@@ -59,7 +59,7 @@ var VarianJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
detail_save: function(){
|
detail_save: function(){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['mode_detail','VarianID','Nama_Varian','Aktif','Cari_Varian'],
|
sendParam: ['mode_detail','VarianID','Nama_Varian','Aktif','Cari_Varian'],
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
@@ -71,7 +71,7 @@ var VarianJS = {
|
|||||||
|
|
||||||
data_query: function(tipe, mode){
|
data_query: function(tipe, mode){
|
||||||
if (tipe=="detail"){
|
if (tipe=="detail"){
|
||||||
new Request.JSONF({
|
new Request_JSF({
|
||||||
url: this.PHP + '/table_detail',
|
url: this.PHP + '/table_detail',
|
||||||
sendParam: ['Cari_Varian']
|
sendParam: ['Cari_Varian']
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
Reference in New Issue
Block a user