239
4.5.3 Tampilan Staff Auditor
Berikut merupakan tampilan program menu staff auditor:
Gambar 4.103 Tampilan Menu Staff Auditor
Gambar 4.104 Tampilan Form Audit Kas
240 Tabel 4.36 Listing Program Form Audit Kas
Listing Program Keterangan
Private Sub Text3_KeyPressKeyAscii As Integer If KeyAscii = 13 Then
no_registrasi End If
End Sub Perintah untuk
tombol cari nomor kontrak
Function no_registrasi Dim s_kontrak As String
With Adodc3 s_kontrak = select from t_kontrak where
no_registrasi= F_Menu_Utama.Text1.Text and kode_klien like Text3.Text
.RecordSource = s_kontrak .Refresh
End With
If Adodc3.Recordset.EOF Then MsgBox Data yang Anda cari tidak ada dalam
database, vbInformation, Pencarian data Adodc3.RecordSource = select from t_kontrak where
no_registrasi= F_Menu_Utama.Text1.Text Adodc3.Refresh
Else Adodc3.RecordSource = select from t_kontrak where
no_registrasi= F_Menu_Utama.Text1.Text and kode_klien like Text3.Text
Adodc3.Refresh no_kontrak = Adodc3.Recordset0.Value
Text3.Text = Adodc3.Recordset2.Value Text4.Text = Adodc3.Recordset3.Value
Text5.Text = Adodc3.Recordset4.Value Text6.Text = Adodc3.Recordset5.Value
End If
End Function Fungsi
no_registrasi
Gambar 4.105 Tampilan Form Audit Persediaan
241 Tabel 4.37 Listing Program Form Audit Persediaan
Listing Program Keterangan
Private Sub Command2_Click Dim jenis_persediaan As String
If Combo2.ListIndex = 0 Then jenis_persediaan = Bahan Baku
ElseIf Combo2.ListIndex = 1 Then jenis_persediaan = Bahan Setengah Jadi
Else jenis_persediaan = Bahan Jadi
End If
With Adodc2.Recordset .AddNew
.Fields0 = no_kontrak.Caption .Fields1 = DTPicker1.Value
.Fields2 = Text5.Text .Fields3 = Text6.Text
.Fields4 = Text9.Text .Fields5 = Combo1.Text
.Update End With
If Combo1.ListIndex = 0 Then With Adodc4.Recordset
.AddNew .Fields0 = no_kontrak.Caption
.Fields1 = DTPicker1.Value .Fields2 = Text6.Text
.Fields3 = 0 .Fields4 = 0
.Fields5 = ValText8.Text .Fields6 = ValText9.Text
.Fields7 = y .Fields8 = F_Menu_Utama.Text1.Text
.Fields9 = ValText9.Text .Fields10 = jenis_persediaan
.Update End With
Perintah untuk tombol Simpan
Gambar 4.106 Tampilan Form Audit Piutang
242 Tabel 4.38 Listing Program Form Audit Piutang
Listing Program Keterangan
Private Sub Command1_Click With Adodc3.Recordset
.AddNew .Fields0 = no_kontrak.Caption
.Fields1 = Text2.Text .Fields2 = Text7.Text
.Fields3 = Text8.Text .Fields4 = Text9.Text
.Fields5 = Text10.Text .Fields6 = Text11.Text
.Fields7 = 0 .Fields8 = 0
.Fields9 = Combo2.Text .Fields10 = Text1.Text
.Fields11 = DataCombo1.Text .Fields12 =
.Fields13 = ValText20.Text .Fields14 = DTPicker1.Value
.Fields15 = F_Menu_Utama.Text1.Text .Update
End With End Sub
Perintah untuk tombol Simpan
Private Sub Command3_Click Text1.Text = :Text2.Text = :Text3.Text = :Text4.Text =
:Text5.Text = :Text6.Text = :Text7.Text = :Text8.Text = :Text9.Text = :Text10.Text = :Text20.Text =
Command1.Enabled = True Command4.Enabled = False
Adodc3.RecordSource = select from t_analisa_umurpiutang where no_kontrak= no_kontrak.Caption and
no_registrasi= F_Menu_Utama.Text1.Text Adodc3.Refresh
End Sub Perintah untuk
tombol Batal
Gambar 4.107 Tampilan Form Audit Investasi
243 Tabel 4.39 Listing Program Form Audit Investasi
Listing Program Keterangan
Private Sub cmd_tambah_Click With ado_isi.Recordset
.AddNew .Fields0 = no_kontrak.Caption
.Fields1 = txt_kode_icq.Text .Fields2 = lbl_nomor.Caption
If Opt_ya.Value = True Then .Fields3 = Valtxt_ya.Text
.Fields4 = 0 .Fields5 = 0
ElseIf Opt_tidak.Value = True Then .Fields3 = 0
.Fields4 = Valtxt_tidak.Text .Fields5 = 0
Else .Fields3 = 0
.Fields4 = 0 .Fields5 = Valtxt_tr.Text
End If .Fields7 = txt_ya.Text
.Fields8 = txt_tr.Text .Fields9 = txt_tidak.Text
.Fields10 = F_Menu_Utama.Text1.Text .Update
End With MsgBox Data tersimpan, vbInformation, Data tersimpan
End Sub Perintah untuk
tombol Simpan
Gambar 4.108 Tampilan Form Audit Aktiva Tetap
244 Tabel 4.39 Listing Program Form Audit Aktiva Tetap
Listing Program Keterangan
Private Sub Command1_Click With Adodc4.Recordset
.AddNew .Fields0 = no_kontrak.Caption
.Fields1 = DTPicker1.Value .Fields2 = Text3.Text
.Fields3 = Combo2.Text .Fields4 = Text4.Text
.Fields5 = Text9.Text .Fields6 = DataCombo1.Text
.Fields7 = Text2.Text .Fields8 = ValText1.Text
If Option1.Value = True Then .Fields9 = Text15.Text
Else End If
.Fields10 = F_Menu_Utama.Text1.Text .Fields13 = ValText14.Text
.Fields14 = DTPicker3.Value .Update
End With JURNAL
If Option1.Value = True Then With Adodc5.Recordset
.AddNew .Fields0 = no_kontrak.Caption
.Fields1 = FormatNow, mmddyyyy .Fields2 = Text15.Text
.Fields3 = Text16.Text .Fields4 = Text19.Text
.Fields5 = ValFormatText9.Text, .Fields6 = 0
.Fields7 = Text17.Text .Fields8 = Text18.Text
.Fields9 = 0 .Fields10 = ValFormatText9.Text,
.Fields11 = Aktiva Tetap .Fields12 = F_Menu_Utama.Text1.Text
.Fields13 = Text10.Text .Update
End With With Adodc19.Recordset
.AddNew .Fields0 = Text15.Text
.Fields1 = FormatNow, mmddyyyy .Fields2 = no_kontrak.Caption
.Fields3 = F_Menu_Utama.Text1.Text .Update
End With Else
End If Combo2.Text =
Text3.Text = Text4.Text =
Text9.Text = Combo2.SetFocus
Command8_Click MsgBox Simpan data sukses, vbInformation, Simpan data
adjustment End Sub
Perintah untuk tombol Simpan
245 Tabel 4.40 Listing Program Form Audit Aktiva Tetap Lanjutan 1
Listing Program Keterangan
Function adjustment Dim jum_baris1 As Integer
Dim seleksi As String tahun = FormatNow, yy
seleksi = select from t_adjustment where no_registrasi= F_Menu_Utama.Text1.Text and no_kontrak=
no_kontrak.Caption and midkode_adjustment,3,6= tahun K
Adodc19.RecordSource = seleksi Adodc19.Refresh
MsgBox seleksi With Adodc19
jum_baris1 = .Recordset.RecordCount If .Recordset.EOF Then
Text15.Text = 01 tahun K Leftno_kontrak.Caption, 10
Else If Valjum_baris1 9 Then
Text15.Text = 0 Valjum_baris1 + 1 tahun K Leftno_kontrak.Caption, 10
ElseIf Valjum_baris1 = 9 Then Text15.Text = Valjum_baris1 + 1 tahun
K Leftno_kontrak.Caption, 10 Else
Text15.Text = Valjum_baris1 + 1 tahun K Leftno_kontrak.Caption, 10
End If End If
End With MsgBox jum_baris1
End Function Fungsi
adjustment
Gambar 4.109 Tampilan Form Audit Aktiva Tak Berwujud
246 Tabel 4.41 Listing Program Form Audit Aktiva Tak Berwujud
Listing Program Keterangan
Private Sub Command2_Click If Combo1.Text = Penghapusan Then
With Adodc3.Recordset .AddNew
.Fields0 = no_kontrak.Caption .Fields1 = ValText5.Text + ValText10.Text -
ValText14.Text .Fields2 = DTPicker1.Value
.Fields3 = Text6.Text .Fields4 = 3 Combo1.Text
.Fields5 = Text7.Text .Fields6 = ValText8.Text -1
.Fields8 = DataCombo3.Text .Fields9 = ValText9.Text
If Option1.Value = True Then .Fields10 = Text15.Text
Else .Fields10 =
End If .Fields11 = F_Menu_Utama.Text1.Text
.Fields12 = DTPicker3.Value .Update
End With ElseIf Combo1.Text = Pengurangan Then
With Adodc3.Recordset .AddNew
.Fields0 = no_kontrak.Caption .Fields1 = ValText5.Text + ValText10.Text -
ValText14.Text .Fields2 = DTPicker1.Value
.Fields3 = Text6.Text .Fields4 = 2 Combo1.Text
.Fields5 = ValText9.Text x Rp. ValText8.Text
.Fields6 = ValText8.Text ValText9.Text 100 -1 .Fields8 = DataCombo3.Text
.Fields9 = ValText9.Text If Option1.Value = True Then
.Fields10 = Text15.Text Else
.Fields10 = End If
.Fields11 = F_Menu_Utama.Text1.Text .Fields12 = DTPicker3.Value
.Update End With
Else With Adodc3.Recordset
.AddNew .Fields0 = no_kontrak.Caption
.Fields1 = ValText5.Text + ValText10.Text - ValText14.Text
.Fields2 = DTPicker1.Value .Fields3 = Text6.Text
.Fields4 = 1 Combo1.Text .Fields5 = Text7.Text
.Fields6 = ValText8.Text .Fields8 = DataCombo3.Text
.Fields9 = ValText9.Text If Option1.Value = True Then
.Fields10 = Text15.Text Else
.Fields10 = End If
.Fields11 = F_Menu_Utama.Text1.Text .Fields12 = DTPicker3.Value
.Update End With
End If Perintah
untuk tombol
Simpan
247 Tabel 4.42 Listing Program Form Audit Aktiva Tak Berwujud Lanjutan 1
Listing Program Keterangan
Function adjustment Dim jum_baris1 As Integer
Dim seleksi As String tahun = FormatNow, yy
seleksi = select from t_adjustment where no_registrasi= F_Menu_Utama.Text1.Text and
no_kontrak= no_kontrak.Caption and midkode_adjustment,3,6= tahun L
Adodc19.RecordSource = seleksi Adodc19.Refresh
MsgBox seleksi With Adodc19
jum_baris1 = .Recordset.RecordCount If .Recordset.EOF Then
Text15.Text = 01 tahun L Leftno_kontrak.Caption, 10
Else If Valjum_baris1 9 Then
Text15.Text = 0 Valjum_baris1 + 1 tahun L Leftno_kontrak.Caption, 10
ElseIf Valjum_baris1 = 9 Then Text15.Text = Valjum_baris1 + 1
tahun L Leftno_kontrak.Caption, 10 Else
Text15.Text = Valjum_baris1 + 1 tahun L Leftno_kontrak.Caption, 10
End If End If
End With End Function
Fungsi adjustment
Gambar 4.110 Tampilan Form Audit Kewajiban Jangka Pendek
248 Tabel 4.43 Listing Program Form Audit Kewajiban Jangka Pendek
Listing Program Keterangan
With Adodc2.Recordset .AddNew
.Fields0 = no_kontrak.Caption .Fields1 = Text9.Text
.Fields2 = Text5.Text .Fields3 = DTPicker1.Value
.Fields4 = ValText7.Text .Fields5 = ValText7.Text
If Option1.Value = True Then .Fields6 = Text15.Text
Else .Fields6 =
End If If Text10.Text 0 Then
.Fields7 = 0 .Fields8 = ValText10.Text
Else .Fields7 = ValText10.Text
.Fields8 = 0 End If
.Fields11 = F_Menu_Utama.Text1.Text .Fields12 = ValText21.Text
.Fields14 = DTPicker2.Value .Update
End With Perintah untuk tombol
Simpan
Gambar 4.111 Tampilan Form Audit Kewajiban Jangka Panjang
249 Tabel 4.44 Listing Program Form Audit Kewajiban Jangka Panjang
Listing Program Keterangan
Private Sub Command2_Click With Adodc2.Recordset
.AddNew .Fields0 = no_kontrak.Caption
.Fields1 = Text9.Text .Fields2 = Text5.Text
.Fields3 = DTPicker1.Value .Fields4 = ValText7.Text
.Fields5 = ValText7.Text If Option1.Value = True Then
.Fields6 = Text15.Text Else
.Fields6 = End If
If Text10.Text 0 Then .Fields7 = 0
.Fields8 = ValText10.Text Else
.Fields7 = ValText10.Text .Fields8 = 0
End If .Fields11 = F_Menu_Utama.Text1.Text
.Fields12 = ValText21.Text .Fields14 = DTPicker2.Value
.Update End With
MsgBox Simpan data berhasil, vbOKOnly, Simpan data End Sub
Perintah untuk tombol Simpan
Gambar 4.112 Tampilan Form Audit Ekuitas
250 Tabel 4.45 Listing Program Form Audit Ekuitas
Listing Program Keterangan
Private Sub Command4_Click With Adodc3.Recordset
.AddNew .Fields0 = no_kontrak.Caption
.Fields1 = Text13.Text .Fields2 = Text14.Text
.Fields3 = DTPicker3.Value .Fields4 = DTPicker4.Value
.Fields5 = Text15.Text .Fields6 = Text16.Text
.Fields7 = ValText12.Text .Fields8 = ValText17.Text
.Fields9 = Combo1.Text .Fields10 = ValText18.Text
.Fields11 = Text19.Text .Fields12 = ValText20.Text
.Fields13 = ValText21.Text .Fields18 = F_Menu_Utama.Text1.Text
.Update End With
MsgBox Data tersimpan, vbOKOnly, Simpan data End Sub
Perintah untuk tombol Simpan
Private Sub Command17_Click With Adodc3.Recordset
If .EOF Then Else
For o = 1 To .RecordCount total = total + Val.Fields13
Val.Fields12 ttl_saham = ttl_saham + Val.Fields12
Next o Text25.Text = Valtotal
Text26.Text = Val.Fields13 Text28.Text = Valttl_saham
Text35.Text = Val.Fields8 Text34.Text = Val.Fields10
Text33.Text = ValText35.Text ValText34.Text End If
End With End Sub
Perintah untuk tombol Edit Data
Gambar 4.113 Tampilan Form Cetak Kertas Kerja Pemeriksaan
251 Tabel 4.46 Listing Program Form Cetak Kertas Kerja Pemeriksaan
Listing Program Keterangan
Private Sub Command1_Click kas dan setara kas
If Combo1.ListIndex = 0 Then If Option1.Value = True Then
CR.ReportFileName = App.Path \report\Kas\Cash Count Sheet Kas.rpt
CR.RetrieveDataFiles CR.SelectionFormula = {v_akas8_ccs.no_kontrak} =
no_kontrak.Caption and {v_akas8_ccs.no_registrasi} = F_Menu_Utama.Text1.Text
CR.WindowState = crptMaximized CR.Action = True
CR.ReportFileName = App.Path \report\Kas\CSS CekBilyet.rpt
CR.RetrieveDataFiles CR.SelectionFormula =
{v_akas3_cekbilyet_report.no_kontrak} = no_kontrak.Caption and
{v_akas3_cekbilyet_report.no_registrasi} = F_Menu_Utama.Text1.Text
CR.WindowState = crptMaximized CR.Action = True
CR.ReportFileName = App.Path \report\Kas\CSS Lain2.rpt
CR.RetrieveDataFiles CR.SelectionFormula =
{v_akas5_lain_report2.no_kontrak} = no_kontrak.Caption and {v_akas5_lain_report2.no_registrasi} =
F_Menu_Utama.Text1.Text CR.WindowState = crptMaximized
CR.Action = True ElseIf Option2.Value = True Then
CR.ReportFileName = App.Path \report\Kas\Perhitungan Berita Acara Kas.rpt
CR.RetrieveDataFiles CR.SelectionFormula =
{v_akas7_topschedule.no_kontrak} = no_kontrak.Caption CR.WindowState = crptMaximized
CR.Action = True Else
CR.ReportFileName = App.Path \report\Kas\Bank Rekonsiliasi.rpt
CR.RetrieveDataFiles CR.SelectionFormula =
{v_akas6_rekonsiliasi_report.no_kontrak} = no_kontrak.Caption
CR.WindowState = crptMaximized CR.Action = True
End If piutang
ElseIf Combo1.ListIndex = 1 Then CR.ReportFileName = App.Path
\report\Piutang\Supporting Schedule Piutang.rpt CR.RetrieveDataFiles
CR.SelectionFormula = {v_apiutang3.no_kontrak} = no_kontrak.Caption and {v_apiutang3.no_registrasi}
= F_Menu_Utama.Text1.Text CR.WindowState = crptMaximized
CR.Action = True persediaan
ElseIf Combo1.ListIndex = 2 Then Perintah untuk
tombol Simpan
252
4.5.4 Tampilan Pimpinan Rekan