Tabel 4.51 Listing Belanja Pegawai Lanjutan 7
If Text36 Then Text36.Text = FormatText36, ,0
Text36.SelStart = LenText36 Label31.Caption = AngkaTerbilangText36
Label31.Caption = StrConvLabel31, vbProperCase
Else Label31.Caption =
End If If KeyAscii = vbKey0 And KeyAscii =
vbKey9 Or KeyAscii = vbKeyDecPt Or KeyAscii = vbKeyBack Then
Exit Sub Else
KeyAscii = 0 End If
End Sub Perintah untuk
menghitung tunjangan
4.5.14 Tampilan Pada Belanja Pemeliharaan
Gambar 4.65 Tampilan Belanja Pemeliharaan
Tabel 4.52 Listing Belanja Pemeliharaan
Listing Program Keterangan
Private Sub UserButtonz2_Click Text1.Enabled = True
Text2.Enabled = True Text3.Enabled = True
Text5.Enabled = True Combo1.Enabled = True
Text4.Enabled = True Text6.Enabled = True
Text8.Enabled = True Text9.Enabled = True
Text10.Enabled = True Text11.Enabled = True
Text7.Text = Adodc7.Recordset.Fields7 Text22.Text = DTPicker1.Month
Text23.Text = DTPicker1.Year Text24.Text = Text22.Text + Text23.Text
Text13.Text = Adodc7.Recordset.Fields0 Text14.Text = Adodc7.Recordset.Fields1
Text15.Text = Adodc7.Recordset.Fields2 Text16.Text = Adodc7.Recordset.Fields3
Text17.Text = Adodc7.Recordset.Fields4 Text18.Text = Adodc7.Recordset.Fields5
Text19.Text = Adodc7.Recordset.Fields6 Text20.Text = Adodc7.Recordset.Fields7
Text21.Text = Adodc7.Recordset.Fields8 Adodc1.Refresh
If Adodc1.Recordset.BOF = False Then Adodc1.Recordset.MoveLast
X = Adodc1.Recordset.Fields1 akhir = RightX, 3
akhir = akhir + 1 If akhir 99 Then
akhir = Formatakhir, akhir = + akhir
Text1.Text = JP + akhir Exit Sub
End If If akhir 9 Then
akhir = Formatakhir, akhir = 0 + akhir
Text1.Text = JP + akhir Exit Sub
End If If akhir 10 Then
akhir = Formatakhir, akhir = JP00 + akhir
Text1.Text = akhir Exit Sub
End If Else
Text1.Text = JP001 End If
End Sub Membuat baru
Tabel 4.53 Listing Belanja Pemeliharaan Lanjutan 1
Private Sub UserButtonz2_Click Text1.Enabled = True
Text2.Enabled = True Text3.Enabled = True
Text5.Enabled = True Combo1.Enabled = True
Text4.Enabled = True Text6.Enabled = True
Text8.Enabled = True Text9.Enabled = True
Text10.Enabled = True Text11.Enabled = True
Text7.Text = Adodc7.Recordset.Fields7 Text22.Text = DTPicker1.Month
Text23.Text = DTPicker1.Year Text24.Text = Text22.Text + Text23.Text
Text13.Text = Adodc7.Recordset.Fields0 Text14.Text = Adodc7.Recordset.Fields1
Text15.Text = Adodc7.Recordset.Fields2 Text16.Text = Adodc7.Recordset.Fields3
Text17.Text = Adodc7.Recordset.Fields4 Text18.Text = Adodc7.Recordset.Fields5
Text19.Text = Adodc7.Recordset.Fields6 Text20.Text = Adodc7.Recordset.Fields7
Text21.Text = Adodc7.Recordset.Fields8 Adodc1.Refresh
If Adodc1.Recordset.BOF = False Then Adodc1.Recordset.MoveLast
X = Adodc1.Recordset.Fields1 akhir = RightX, 3
akhir = akhir + 1 If akhir 99 Then
akhir = Formatakhir, akhir = + akhir
Text1.Text = JP + akhir Exit Sub
End If If akhir 9 Then
akhir = Formatakhir, akhir = 0 + akhir
Text1.Text = JP + akhir Exit Sub
End If If akhir 10 Then
akhir = Formatakhir, akhir = JP00 + akhir
Text1.Text = akhir Exit Sub
End If Else
Text1.Text = JP001 End If
End Sub Perintah untuk
mengubah
Tabel 4.54 Listing Belanja Pemeliharaan Lanjutan 2
Private Sub UserButtonz1_Click Adodc1.Refresh
Adodc1.Recordset.AddNew Adodc1.Recordset.Fields0 = DTPicker1
Adodc1.Recordset.Fields1 = Text1.Text Adodc1.Recordset.Fields2 = Text2.Text
Adodc1.Recordset.Fields3 = Text3.Text Adodc1.Recordset.Fields4 = Combo1.Text
Adodc1.Recordset.Fields5 = Text5.Text Adodc1.Recordset.Fields6 = Text8.Text
Adodc1.Recordset.Fields7 = Text9.Text Adodc1.Recordset.Fields8 = Text10.Text
Adodc1.Recordset.Fields9 = Text11.Text Adodc1.Recordset.Fields10 =
Label6.Caption Adodc1.Recordset.Save
Adodc1.Refresh Adodc3.Recordset.Fields4 = Text6.Text
Adodc3.Recordset.Update Adodc3.Refresh
Adodc7.Recordset.Fields0 = DTPicker1 Adodc7.Recordset.Fields7 = Text12.Text
Adodc7.Recordset.Update Text1.Text =
Text2.Text = Text3.Text =
Text4.Text = Combo1.Text =
Text5.Text = Text8.Text =
Text9.Text = Text10.Text =
Text11.Text = Label6.Caption = nominal
Text7.Text = 0 Text12.Text = 0
Text13.Text = 0 Text14.Text = 0
Text15.Text = 0 Text16.Text = 0
Text17.Text = 0 Text18.Text = 0
Text19.Text = 0 Text20.Text = 0
Text21.Text = 0 Text22.Text = 0
Text23.Text = 0 Text24.Text = 0
Text25.Text = x Text1.Enabled = False
Text2.Enabled = False Text3.Enabled = False
Text5.Enabled = False Combo1.Enabled = False
Perintah untuk mnyimpan
Tabel 4.55 Listing Belanja Pemeliharaan Lanjutan 3
Text6.Enabled = False Text8.Enabled = False
Text9.Enabled = False Text10.Enabled = False
Text11.Enabled = False Unload Me
Form13.Show End Sub
Perintah untuk mnyimpan
Private Sub UserButtonz5_Click CrystalReport1.SelectionFormula =
{belanja_pemeliharaan.Kode_Jasa}= Text1.Text
CrystalReport1.SelectionFormula = month{belanja_pemeliharaan.Tanggal}=
DTPicker1.Month And Year{belanja_pemeliharaan.Tanggal}=
DTPicker1.Year CrystalReport1.ReportFileName = App.Path
belanja_pemeliharaan.rpt CrystalReport1.RetrieveDataFiles
CrystalReport1.Action = True Text1.Text =
End Sub Perintah mencetak
Private Sub UserButtonz6_Click Unload Me
Form19.Show End Sub
Perintah untuk keluar
4.5.15 Tampilan Pada Belanja Dinas