Bab 6 Kesimpulan Dan Saran
6.2 Saran
Dalam hal ini, penulis akan memberikan sedikit saran yang kiranya dapat bermanfaat untuk kemajuan PT. ALS Panyabungan. Adapun saran yang dapat penulis sampaikan adalah :
1. Untuk meningkatkan kinerja pegawai pada PT. ALS Panyabungan disarankan agar menggunakan jasa computer dengan memakai sistem informasi yang telah dirancang.
2. Diharapkan agar aplikasi ini dapat bermanfaat lebih dahulu oleh pemakai dalam pengolahan data.
3. Diharapkan adanya pengembangan lebih lanjut dari sistem informasi yang dirancang, sehingga menjadi sistem informasi yang terpadu untuk menanggulangi dan mengolah data yang lebih besar dimasa yang akan dating.
4. Diharapkan agar program ini dapat bermanfaat bagi para pembaca.
DAFTAR PUSTAKA
Alam, M. Agus J. 1991. Belajar Sendiri Microsoft Visual Basic 6.0. Jakarta : Elex Media Komputindo, Kelompok Gramedia. Anggota IKAPI.
Andi, Krisbianti paulus, Erwin Budi Setiawan. 2005. Sistem Informasi.Bandung : Informatika
Evangelos Petroutsos 2002. Menguasai Pemograman Database dengan Visual Basic 6.0, cetakan 1, Jakarta : PT. Elex Media Komputindo.
Hartono, Jogiyanto. 2000. Pengenalan Komputer. Yogjakarta : Andi
Kusumo, Ario Suryo.2000. Buku Latihan Microsoft Visual Basic 6.0. Jakarta : PT.
Elex Media Komputindo.
Yung, Kok. 2000. Membangun Database dengan Visual Basic 6.0 dan Perintah SQL. Jakarta : PT. Elex Media Komputindo
LISTING PROGRAM
1. MENU UTAMA
Private Sub bkeluar_Click()
CrystalReport1.ReportFileName = "trayeklap.rpt"
CrystalReport1.RetrieveDataFiles
CrystalReport1.WindowState = crptMaximized CrystalReport1.Action = 0
End Sub
Private Sub bmasuk_Click()
CrystalReport1.ReportFileName = "buslap.rpt"
'CrystalReport1.RetrieveDataFiles
CrystalReport1.WindowState = crptMaximized CrystalReport1.Action = 0
'cristalreport1.Refresh End Sub
Private Sub Keluar_Click() Form4.Show
End Sub
Private Sub Masuk_Click() Form3.Show
End Sub
Private Sub nmproduk_Click() Form2.Show
End Sub
Private Sub PO_Click()
If Text1 <> "" Then Adodc1.Recordset!Kode = Text1 If Text2 <> "" Then Adodc1.Recordset!no_plat = Text2 If Text3 <> "" Then Adodc1.Recordset!kapasitas = Text3 If Text4 <> "" Then Adodc1.Recordset!petugas = Text4 Adodc1.Recordset.Update
Command1.Enabled = True
Adodc1.RecordSource = "select * from bus"
Adodc1.Refresh
End Sub
Private Sub Text1_Change()
Adodc1.RecordSource = "select * from bus where kode like '%" & Text1 & "%'"
Adodc1.Refresh
If Len(Text1) = 5 Then
If Adodc1.Recordset.RecordCount = 0 Then Text1.Enabled = True
'If Adodc1.Recordset!bus Then Text2 = Adodc1.Recordset!no_plat 'If Adodc1.Recordset!satuan Then Combo1 = Adodc1.Recordset!satuan Text1.Enabled = True
Text1.Enabled = True
If Text1 <> "" Then Adodc1.Recordset!Kode = Text1
If Text2 <> "" Then Adodc1.Recordset!Kota_Berangkat = Text2 If Text3 <> "" Then Adodc1.Recordset!Kota_Tujuan = Text3 If Text4 <> "" Then Adodc1.Recordset!Tarif = Text4
Adodc1.Recordset.Update
Command2.Enabled = False
Adodc1.RecordSource = "select * from Trayek"
Adodc1.Refresh
Private Sub Text1_Change()
Adodc1.RecordSource = "select * from Trayek where Kode like '%" & Text1 & "%'"
Adodc1.Refresh
If Len(Text1) = 8 Then
If Adodc1.Recordset.RecordCount = 0 Then Text2.Enabled = True
If Adodc1.Recordset!Tarif <> "" Then Text4 = Adodc1.Recordset!Tarif Command1.Enabled = False
Adodc1.RecordSource = "select * from Trayek"
Adodc1.Refresh
Text4.Enabled = False
Adodc3.RecordSource = "select * from Trayek where kode = '" & Combo2 & "'"
Adodc3.Refresh
If Adodc3.Recordset.RecordCount <> 0 Then Text3 = Adodc3.Recordset(1)
Text4 = Adodc3.Recordset(2) Text7 = Adodc3.Recordset(3)
Adodc1.RecordSource = "select * from Transaksi where no_tiket='" & Text1 &
"' and Kode = '" & Combo2 & "'"
End If End If End If End Sub
Private Sub Combo2_Click()
Adodc3.RecordSource = "select * from Trayek where Kode = '" & Combo2 & "'"
Adodc3.Refresh
If Adodc1.Recordset.RecordCount = 0 Then Text4.Enabled = True
Text4.Enabled = False
If Text1 <> "" Then Adodc1.Recordset!no_tiket = Text1
If Text12 <> "" Then Adodc1.Recordset!Jam_Berangkat = Text12 If DTPicker1 <> "" Then Adodc1.Recordset!Tgl = DTPicker1 If Text2 <> "" Then Adodc1.Recordset!nama = Text2
If Text5 <> "" Then Adodc1.Recordset!alamat = Text5 If Text6 <> "" Then Adodc1.Recordset!no_telp = Text6
If Text3 <> "" Then Adodc1.Recordset!Kota_Berangkat = Text3 If Text4 <> "" Then Adodc1.Recordset!Kota_Tujuan = Text4 If Text7 <> "" Then Adodc1.Recordset!Tarif = Text7
If Text8 <> "" Then Adodc1.Recordset!jumlah = Text8 If Text9 <> "" Then Adodc1.Recordset!bagasi = Text9 If Text10 <> "" Then Adodc1.Recordset!total = Text10 If Text11 <> "" Then Adodc1.Recordset!keterangan = Text11 Adodc1.Recordset.Update
Text3.Enabled = True
Text10.Text = Format(Text7.Text * Text8.Text, "####,###,###,#0") End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) 'If KeyAscii = 13 Then
'Frame2.Enabled = True
'Text1 = DataGrid1.Columns(0) 'DTPicker1 = DataGrid1.Columns(1) 'Combo1 = DataGrid1.Columns(2)
'Combo1.Enabled = True 'End If
End Sub
Private Sub Form_Load() swsim = 0
Adodc1.RecordSource = "select * from Transaksi"
Adodc1.Refresh
'Adodc2.RecordSource = "select * from PO"
'Adodc2.Refresh
'Adodc2.Recordset.MoveFirst
'While Adodc2.Recordset.EOF = False
'Combo1.AddItem Adodc2.Recordset!Kode 'Adodc2.Recordset.MoveNext
'Wend
Adodc3.RecordSource = "select * from trayek"
Adodc3.Refresh
Adodc3.Recordset.MoveFirst
While Adodc3.Recordset.EOF = False
Combo2.AddItem Adodc3.Recordset!Kode Adodc3.Recordset.MoveNext
Adodc1.RecordSource = "select * from Transaksi where no_tiket like '%" & Text1
& "%'"
Adodc1.Refresh
If Len(Text1) = 5 Then
Adodc1.RecordSource = "select * from Transaksi"
Adodc1.Refresh
Frame2.Enabled = True DTPicker1.Enabled = False Text12.Enabled = False 'Combo1.Enabled = False End Sub
Private Sub Text8_Change() 'If Text8.Text = "" Then 'Text8.SetFocus
'Else
'If Text7.Text = "" Then 'Text7.SetFocus
'Else
'Text7.Text = Format(Text7.Text * Text8.Text, "####,###,###,#0") 'End If
End Sub