Tampilan Bagian Sekretaris Tampilan dan Kode Program .1 Tampilan Menu Utama

192

4.5.3 Tampilan Bagian Sekretaris

Gambar 4.97 Tampilan Masukan Pada Bagian Sekretaris Gambar 4.98 Tampilan RKA-SKPD Gambar 4.99 Tampilan Cetak RKA-SKPD 193 Gambar 4.100 Tampilan SPM Gambar 4.101 Tampilan Cetak SPM 194 Tabel 4.19 Listing Program SPM Listing Program Keterangan Option Explicit Sub ceknom2 On Error Resume Next With rs_jurnal .MoveLast norut = 0 While Not .BOF st2 = Left.Fields2.Value, 2 If streff = st2 Then norut = Right.Fields2.Value, 2 Exit Sub End If .MovePrevious Wend .MoveFirst End With End Sub Sub ceknom With rs_jurnal .MoveLast nom = 0 While Not .BOF st2 = Left.Fields0.Value, 6 If st1 = st2 Then nom = Right.Fields0.Value, 3 Exit Sub End If .MovePrevious Wend .MoveFirst End With End Sub Sub autonom thn = YearNow bln = CStrMonthNow If MonthNow 9 Then bln = 0 + CStrMonthNow End If st1 = CStrthn + bln With rs_jurnal If .BOF Then strkode = st1 + 001 Else Call ceknom If nom 9 Then strkode = st1 + 00 + CStrnom + 1 ElseIf nom 99 Then strkode = st1 + 0 + CStrnom + 1 ElseIf nom 999 Then strkode = st1 + CStrnom + 1 End If End If Perintah untuk proses SPM. 195 Tabel 4.20 Listing Program SPM Lanjutan 1 Listing Program Keterangan End With End Sub Sub kosong Text1.Text = Text2.Text = Text3.Text = 0 Text4.Text = 0 Text5.Text = 0 Call isicomboCombo1, select from Table_SPP, rs_spp, 0 strcari = pil = End Sub Sub aktif Text1.Locked = False Text2.Locked = False Combo1.Locked = False btn_tambah.Enabled = False btn_simpan.Enabled = True btn_hapus.Enabled = False End Sub Sub nonaktif Text1.Locked = True Text2.Locked = True Combo1.Locked = True btn_tambah.Enabled = True btn_simpan.Enabled = False btn_hapus.Enabled = True End Sub Sub hitung_jml With rs_tampil .MoveFirst While Not .EOF jml = jml + 1 .MoveNext Wend End With End Sub Sub isilv jml = 0 On Error Resume Next LV.ColumnHeaders.Clear LV.ListItems.Clear Call hitung_jml With LV .View = lvwReport .FullRowSelect = True .ColumnHeaders.Add , , NO SPM, 3500 .ColumnHeaders.Add , , TANGGAL SPM, 2000 Perintah untuk proses SPM. 196 Tabel 4.21 Listing Program SPM Lanjutan 2 Listing Program Keterangan .ColumnHeaders.Add , , UNTUK KEPERLUAN, 4000 .ColumnHeaders.Add , , NO SPP, 3000 rs_tampil.MoveFirst For i = 1 To jml .ListItems.Add i, , rs_tampil.Fields0 For j = 1 To 3 .ListItemsi.ListSubItems.Add , , rs_tampil.Fields1 .ListItemsi.ListSubItems.Add , , rs_tampil.Fields2 .ListItemsi.ListSubItems.Add , , rs_tampil.Fields3 Next rs_tampil.MoveNext Next End With End Sub Sub preview With rs_spm Text1.Text = .Fields0.Value DTPicker1.Value = .Fields1.Value Text2.Text = .Fields2.Value Combo1.Text = .Fields3.Value Text3.Text = .Fields4.Value Text4.Text = .Fields5.Value Text5.Text = .Fields6.Value End With End Sub Sub simpan With rs_spm .AddNew .Fields0.Value = Text1.Text .Fields1.Value = DTPicker1.Value .Fields2.Value = Text2.Text .Fields3.Value = Combo1.Text .Fields4.Value = Text3.Text .Fields5.Value = Text4.Text .Fields6.Value = Text5.Text .Update Call tampil Call nonaktif Call kosong End With End Sub Private Sub btn_cetak_Click On Error Resume Next If Midstrcetak, 15, 2 = LS Then CR.ReportFileName = App.Path \report\Report_SPMLS.rpt Else CR.ReportFileName = App.Path \report\Report_SPM.rpt Perintah untuk proses SPM. 197 Tabel 4.22 Listing Program SPM Lanjutan 3 Listing Program Keterangan End If CR.SelectionFormula = {Table_SPM.No_SPM}= strcetak CR.RetrieveDataFiles CR.WindowState = crptMaximized CR.Action = 1 End Sub Private Sub btn_hapus_Click If Text1.Text = Then MsgBox Pilih dulu data yang akan anda hapus Exit Sub End If With rs_spm .MoveFirst .Find no_spm= Text1.Text , , adSearchForward If Not .EOF Then .Delete .MoveFirst Call kosong Call tampil End If End With End Sub Private Sub btn_keluar_Click Call kosong Unload Me End Sub Private Sub btn_potongan_Click If Text1.Text = Then MsgBox Pilih dulu SPP Exit Sub End If frmSPMPotongan.Text1.Text = Text1.Text frmSPMPotongan.Show vbModal End Sub Private Sub btn_rekening_Click If Text1.Text = Then MsgBox Pilih dulu SPP Exit Sub End If totalminta = ValText3.Text frmSPMRek.Text1.Text = Text1.Text frmSPMRek.Show vbModal End Sub Private Sub btn_simpan_Click If Text2.Text = Then MsgBox Untuk Keperluan Text2.SetFocus Perintah untuk proses SPM. 198 Tabel 4.23 Listing Program SPM Lanjutan 4 Listing Program Keterangan Exit Sub End If st = select from Table_SPM If rs_spm.State = 1 Then rs_spm.Close End If rs_spm.Open st, con, adOpenDynamic, adLockOptimistic strcetak = Text1.Text Call simpan_jurnal Call simpan End Sub Sub cari_rek With rs_rekening If Not .BOF Then .MoveFirst .Find Kode_Rekening= strek , , adSearchForward If Not .EOF Then strUraian = .Fields1.Value End If End If End With End Sub Sub simpan_jurnal st = select from Table_SPM_REK where No_SPM= Text1.Text If rs_spmrek.State = 1 Then rs_spmrek.Close End If rs_spmrek.Open st, con, adOpenDynamic, adLockOptimistic Call autonom With rs_detjurnal .AddNew .Fields0.Value = strkode .Fields1.Value = 2.1.2.03.01.1 .Fields2.Value = SP2D-LS Gaji Pokok .Fields3.Value = ValText3.Text .Fields4.Value = 0 .Update End With With rs_detjurnal .AddNew .Fields0.Value = strkode .Fields1.Value = 4.1.01.1 .Fields2.Value = Kas Kelurahan .Fields3.Value = 0 .Fields4.Value = ValText3.Text .Update End With streff = KM Call cekreff Perintah untuk proses SPM. 199 Tabel 4.24 Listing Program SPM Lanjutan 5 Listing Program Keterangan With rs_jurnal .AddNew .Fields0.Value = strkode .Fields1.Value = Date .Fields2.Value = streff .Update End With Call autonom With rs_detjurnal .AddNew .Fields0.Value = strkode .Fields1.Value = 4.1.01.1 .Fields2.Value = Kas Kelurahan .Fields3.Value = ValText4.Text .Fields4.Value = 0 .Update End With With rs_spmpotongan If Not .BOF Then .MoveFirst While Not .EOF rs_detjurnal.AddNew rs_detjurnal.Fields0.Value = strkode rs_detjurnal.Fields1.Value = .Fields1.Value strek = .Fields1.Value Call cari_rek rs_detjurnal.Fields2.Value = strUraian rs_detjurnal.Fields3.Value = 0 rs_detjurnal.Fields4.Value = .Fields2.Value rs_detjurnal.Update .MoveNext Wend End If End With streff = KK Call cekreff With rs_jurnal .AddNew .Fields0.Value = strkode .Fields1.Value = Date .Fields2.Value = streff .Update End With End Sub Sub cekreff With rs_jurnal If .BOF Then streff = streff + 01 Else .MoveLast norut = Right.Fields3.Value, 2 ceknom2 Perintah untuk proses SPM. 200 Tabel 4.25 Listing Program SPM Lanjutan 6 Listing Program Keterangan If norut 9 Then streff = streff + 0 + CStrnorut + 1 Else streff = streff + CStrnorut + 1 End If End If End With End Sub Private Sub btn_tambah_Click aktif kosong pil = tambah Text1.SetFocus End Sub Private Sub Combo1_Click st1 = LeftCombo1.Text, 5 st2 = RightCombo1.Text, 18 Text1.Text = st1 + SPM + st2 End Sub Private Sub Form_Activate Text1.SetFocus End Sub Sub tampil st = select from Table_SPM If rs_tampil.State = 1 Then rs_tampil.Close End If rs_tampil.Open st, con, adOpenDynamic, adLockOptimistic Call isilv End Sub Private Sub Form_Load Move Screen.Width - Width 2, Screen.Height - Height 2 st = select from Table_SPM If rs_spm.State = 1 Then rs_spm.Close End If rs_spm.Open st, con, adOpenDynamic, adLockOptimistic st = select from Table_Jurnal If rs_jurnal.State = 1 Then rs_jurnal.Close End If rs_jurnal.Open st, con, adOpenDynamic, adLockOptimistic st = select from Table_Det_Jurnal Perintah untuk proses SPM. 201 Tabel 4.26 Listing Program SPM Lanjutan 7 Listing Program Keterangan If rs_detjurnal.State = 1 Then rs_detjurnal.Close End If rs_detjurnal.Open st, con, adOpenDynamic, adLockOptimistic st = select from Table_Rekening If rs_rekening.State = 1 Then rs_rekening.Close End If rs_rekening.Open st, con, adOpenDynamic, adLockOptimistic Call tampil Call kosong Call nonaktif If jml = 0 Then btn_hapus.Enabled = False End If End Sub Private Sub Form_UnloadCancel As Integer strcari = pil = End Sub Private Sub btn_batal_Click Call kosong Call nonaktif End Sub Private Sub LV_ItemClickByVal Item As MSComctlLib.ListItem strcari = Item.Text Call pencarian strcetak = Text1.Text End Sub Private Sub Text2_KeyPressKeyAscii As Integer If KeyAscii = 13 Then btn_simpan.SetFocus End If End Sub Sub pencarian With rs_spm If Not .BOF Then .MoveFirst .Find no_spm= strcari , , adSearchForward If Not .EOF Then Call preview End If End If Perintah untuk proses SPM. 202 Tabel 4.27 Listing Program SPM Lanjutan 8 Listing Program Keterangan End With End Sub Private Sub Text3_Change Text5.Text = ValText3.Text - ValText4.Text End Sub Private Sub Text4_Change Text5.Text = ValText3.Text - ValText4.Text End Sub Perintah untuk proses SPM. Gambar 4.102 Tampilan SPPJ Gambar 4.103 Tampilan Cetak SPPJ 203 Tabel 4.28 Listing Program SPPJ Listing Program Keterangan Private Sub btn_cetak_Click With CR .ReportFileName = App.Path \report\Report_SPPJ.rpt If Option1.Value = True Then statusjurnal = Bulan + CStrCombo1.Text + + CStrText1.Text blan = Combo1.ListIndex + 1 .SelectionFormula = tonumberMONTH{Table_SPJ.Tanggal}= blan and tonumberYEAR{Table_SPJ.Tanggal}= ValText2.Text ElseIf Option2.Value = True Then bln1 = Combo2.ListIndex + 1 bln2 = bln1 + 2 statusjurnal = Bulan + CStrCombo2.Text + + CStrText3.Text .SelectionFormula = tonumberMONTH{Table_SPJ.Tanggal}= bln1 and tonumberMONTH{Table_SPJ.Tanggal}= bln2 and tonumberYEAR{Table_SPJ.Tanggal}= ValText2.Text Else statusjurnal = Tahun + CStrText2.Text .SelectionFormula = tonumberYEAR{Table_SPJ.Tanggal}= ValText2.Text End If .ParameterFields0 = status; statusjurnal ;TRUE .RetrieveDataFiles .Action = 1 End With End Sub Perintah untuk proses SPPJ. 204

4.5.4 Tampilan Bagian Lurah

Dokumen yang terkait

Perancangan Sistem Informasi Akuntansi Pendapatan Pada Pt Sentra Indologis Utama Cabang Bandung Dengan Menggunakan Software Microsoft Visual Basic 6.0 Dan Microsoft SQL Server 2000 Berbasis Client Server

0 7 1

Perancangan Sistem informasi Akuntansi Laporan Keuangan Arus Kas Pada PT. Sinkona Indonesia Lestari Subang Dengan Menggunakan Software Microsoft Visual Basic 6.0 Dan SQL Server 2000 Berbasis Client Server

1 23 270

Perancangan Sistem Informasi Akuntansi Laporan Keuangan Neraca Pada PT.Travalink Indonesia Tours & Travel Menggunakan Microsoft Visula BAsic 6.0 Dan Microsoft SQL Server 2000 Berbasis Server

0 5 280

Perancangan Sistem Informasi Akuntansi Harga Pokok Produksi Pada Pt Indo Extrusions Dengan Menggunakan Microsoft Visual Basic 6.0 Dan Microsoft SQL Server 2000 Berbasis Client Server

0 8 1

Perancangan Sistem Informasi Akuntansi Kas Menggunakan Software Microsoft Visual Basic 6.0 Dan SQL Server 2000 Berbasis Client Server Pada PT Cipta Sejahtera

1 14 242

Perancangan Sistem Informasi Akuntansi Kas Pada PT. Radio Karang Tumaritis Dengan Microsoft Visual Basic 6.0 Dan Microsoft SQL Server 2000 Berbasis Client Server

0 2 4

Perancangan Sistem Informasi Akuntansi Laporan Keuangan Arus Kas Pada SMA Negeri 4 Cimahi Dengan Menggunakan Microsoft Visual Basic 6.0 Dan Microsoft SQL Server 2000 Berbasis Client Server

0 11 79

Perancangan Sistem Informasi Akuntansi Laporan Keuangan Laba Rugi Pada PT.Travalink Indonesia Tours & Travel Menggunakan Microsoft Visual Basic 6.0 Dan Microsoft SQL Server 2000 Berbasis Client Server

0 4 18

Perancangan Sistem Informasi Akuntansi Aktiva Tetap Pada PT. Indomo Mulia Cabang Bandung Dengan Menggunakan Software Microsoft Visual Basic 6.0 Dan Microsoft SQL Server 2000 Berbasis Client Server

2 11 226

Perancangan Sistem Informasi Akuntansi Kredit Gadai Pada Perum Penggadaian Kantor Cabang Pungkur Bandung Dengan Menggunakan Software Microsoft Visual Basic 6.0 Dan Microsoft SQL Server 2000 Berbasis Client Server

1 21 184