Refactor AJAX requests from Request.JSONF to Request_JSF across multiple scripts for consistency and improved functionality.

This commit is contained in:
2026-11-01 13:11:40 +07:00
parent 52897c25c5
commit 7a585ab7c2
58 changed files with 200 additions and 200 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ var RepoGelHBesarJS = {
data_query: function(tipe, mode){
if (tipe=="brow-rek"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_rek',
sendParam: ['Cari_Rek'],
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')
+1 -1
View File
@@ -56,7 +56,7 @@ var RepoGelHDetailJS = {
data_query: function(tipe, mode){
if (tipe=="brow-jurnal"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_jurnal',
sendParam: ['Cari_Jurnal'],
onSuccess: () => FoniaJS.setFocus('#Cari_Jurnal')
+2 -2
View File
@@ -71,7 +71,7 @@ var RepoInvBarcodeJS = {
data_query: function(tipe){
if (tipe=="brow-produk"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -91,7 +91,7 @@ var RepoInvBarcodeJS = {
load_printer: function(){
qz.printers.find().then((data) => {
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/load_printer',
sendParam: ['Printer='+JSON.stringify(data),'DefPrint='+$('#configPrinter').html()]
}).send();
+8 -8
View File
@@ -22,7 +22,7 @@ var RepoInvLabelJS = {
},
proses_empty: function(){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=empty']
}).send();
@@ -52,7 +52,7 @@ var RepoInvLabelJS = {
},
produk_simpan: function(){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=simpan-produk'],
onSuccess: () => FoniaJS.closeWindow(this.winBProduk)
@@ -77,7 +77,7 @@ var RepoInvLabelJS = {
},
grup_select: function(acell){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=simpan-grup','Grup_InvID='+acell[0]],
onSuccess: () => FoniaJS.closeWindow(this.winBGrup)
@@ -103,7 +103,7 @@ var RepoInvLabelJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+'"</strong> ?', () => {
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=delete','ID='+acell[0]]
}).send();
@@ -111,7 +111,7 @@ var RepoInvLabelJS = {
},
detail_simpan: function(){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail=update','ID='+$('#ID').val(),'Nama_Produk='+encodeURIComponent($('#Nama_Produk').val())],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
@@ -120,18 +120,18 @@ var RepoInvLabelJS = {
data_query: function(tipe, mode, kd_tx){
if (tipe=="tabel-detail"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode_detail='+mode,'No_Label'+((typeof(kd_tx)!=='undefined')?'='+kd_tx:'')]
}).send();
} else if (tipe=="brow-produk"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
}).send();
} else if (tipe=="brow-grup"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_grup',
sendParam: ['Cari_Grup'],
onSuccess: () => FoniaJS.setFocus('#Cari_Grup')
+1 -1
View File
@@ -67,7 +67,7 @@ var RepoInvPiutangJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
+1 -1
View File
@@ -75,7 +75,7 @@ var RepoJualAnalisaJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
+1 -1
View File
@@ -69,7 +69,7 @@ var RepoJualMarginJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
+1 -1
View File
@@ -76,7 +76,7 @@ var RepoJualMutasiJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
+2 -2
View File
@@ -113,13 +113,13 @@ var RepoJualRekapJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
}).send();
} else if (tipe=="brow-produk"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
+1 -1
View File
@@ -85,7 +85,7 @@ var RepoMemberHistoriJS = {
data_query: function(tipe){
if (tipe=="brow-member"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_member',
sendParam: ['Cari_Member'],
onSuccess: () => FoniaJS.setFocus('#Cari_Member')
+1 -1
View File
@@ -76,7 +76,7 @@ var RepoStokMutasiJS = {
data_query: function(tipe){
if (tipe=="brow-produk"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')