Anda di halaman 1dari 51

TUGAS BESAR

PRAKTIKUM ANALISIS DAN PERANCANGAN SISTEM INFORMASI


PELAYANAN BURJO BORNEO

Disusun oleh:
Plug D

No. NAMA NIM


1. Adi Pramudiana 122160054
2. Lathifah Nur 122160040
3. Dwitya Dinda Rahayu 122160064

LABORATORIUM
ANALISIS DAN PERANCANGAN SISTEM INFORMASI
PROGRAM STUDI TEKNIK INDUSTRI
JURUSAN TEKNIK INDUSTRI
FAKULTAS TEKNIK INDUSTRI
UNIVERSITAS PEMBANGUNAN NASIONAL “VETERAN”
YOGYAKARTA
2018
TUGAS BESAR
ANALISA DAN PERANCANGAN SISTEM INFORMASI
BURJO BORNEO

1. Tujuan
Tujuan yang ingin dicapai dalam pembuatan program ini adalah :
1. Untuk mengetahui proses pemesanan di Burjo Borneo dengan
menggunakan program komputer.
2.

2. Deskripsi Sistem
2.1 Problem Statement
2.1.1 Profil Perusahaan
2.1.2 Latar Belakang

3. Usecase Diagram
3.1 Usecase Diagram
Berikut merupakan usecase diagram dari sistem pelayanan Burjo Borneo
yang dapat dilihat pada Gambar 1.

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 2


Gambar 1 usecase diagram sistem pelayanan Burjo Borneo.

3.2 Skenario usecase


Berikut merupakan scenario usecase dari sistem pelayanan Burjo Borneo
yang dapat dilihat pada Tabel 1.
Tabel 1 Skenario usecase sistem pelayanan Burjo Borneo
Nama Penerimaan pesanan dari produsen
Aktor Konsumen, Produsen, Supplier
Extend Barang tidak tersedia
Kondisi Awal Konsumen login
Alur Peristiwa 1. Konsumen mengisi data yang
diperlukan
2. Konsumen memesan produk
3. Produsen melakukan
pengecekkan produk
4. Supplier mengecek ketersediaan
produk [a]
Alur Alternatif [a] Supplier me-restock produk
Kondisi Akhir Supplier telah me-restock produk

4. Perancangan Sistem Informasi


4.1 Data Context Diagram (DCD)
Berikut merupakan Data Context Diagram (DCD) dari sistem pelayanan
Burjo Borneo yang dapat dilihat pada Gambar 2.

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 3


Gambar 2 Data Context Diagram (DCD) sistem pelayanan Burjo Borneo.

4.2 Data Flow Diagram (DFD)


4.2.1 Data Flow Diagram (DFD) level 1
Berikut merupakan Data Flow Diagram (DFD) level 1 dari sistem
pelayanan Burjo Borneo yang dapat dilihat pada Gambar 3.

Gambar 3 Data Flow Diagram (DFD) level 1 sistem pelayanan Burjo Borneo.

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 4


4.2.2 Data Flow Diagram (DFD) level 2
Berikut merupakan Data Flow Diagram (DFD) level 2 dari sistem pelayanan
Burjo Borneo yang dapat dilihat pada Gambar 4.

Gambar 4 Data Flow Diagram (DFD) level 2 sistem pelayanan Burjo Borneo.

6. Flowchart
6.1 Flowchart proses pelayanan Burjo Borneo.
Berikut merupakan flowchart dari proses pelayanan Burjo Borneo yang
dapat dilihat pada Gambar 5.

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 5


Gambar 5 Flowchart dari proses pelayanan Burjo Borneo.

7. Database Management System


7.1 Penjelasan Tabel
Tabel yang dibuat berdasarkan database system yang akan dibangun dapat
dilihat pada tabel 7.1.
Tabel 2.1 Tabel pada Sistem Pegawai Burjo Borneo
Username Password
Adipramudiana 122160054
Dwityadinda 122160064
Latifahnur 122160040

Tabel 2.2 Tabel pada Sistem Pemesanan Burjo Borneo


Nomor_meja Nama_pembeli Kode_pemesanan Jumlah
1 Budi 120 Rp. 30.000
2 Irvan 121 Rp. 35.000
3 Billy 122 Rp. 100.000
4 Melati 123 Rp. 15.000
5 Echa 124 Rp. 150.000
6 Alfin 125 Rp. 10.000
7 Siska 126 Rp. 120.000

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 6


8 Zaskia 127 Rp. 75.000
9 Silvia 128 Rp. 10.000
10 Nana 129 Rp. 90.000

Tabel 2.3 Tabel pada Sistem Pesanan Pembeli Burjo Borneo


Nama_pembeli Kode_pemesanan Nomor_meja Jumlah
Budi 120 1 Rp. 30.000
Irvan 121 2 Rp. 35.000
Billy 122 3 Rp. 100.000
Melati 123 4 Rp. 15.000
Echa 124 5 Rp. 150.000
Alfin 125 6 Rp. 10.000
Siska 126 7 Rp. 120.000
Zaskia 127 8 Rp. 75.000
Silvia 128 9 Rp. 10.000
Nana 129 10 Rp. 90.000

Tabel 2.4 Tabel pada Sistem Transaksi Burjo Borneo


Usernamw Nomor_meja Kode_pemesanan Tanggal_pesan Jumlah
Budi 1 120 26/09/2018 Rp. 30.000
Irvan 2 121 26/09/2018 Rp. 35.000
Billy 3 122 26/09/2018 Rp. 100.000
Melati 4 123 26/09/2018 Rp. 15.000
Echa 5 124 26/09/2018 Rp. 150.000
Alfin 6 125 26/09/2018 Rp. 10.000
Siska 7 126 26/09/2018 Rp. 120.000
Zaskia 8 127 26/09/2018 Rp. 75.000
Silvia 9 128 27/09/2018 Rp. 10.000
Nana 10 129 27/09/2018 Rp. 90.000

7.2 Tampilan tipe data


Tipe data yang digunakan pada sistem pelayanan Burjo Borneo dapat dilihat
pada Tabel 3.1.
Tabel 3.1 Tampilan tipe data pada sistem Pegawai Burjo Borneo
Field Name Tipe Data
Username Short Text
Password Short Text

Tabel 3.2 Tampilan tipe data pada sistem Pemesanan Burjo Borneo
Field Name Tipe Data
Nomor_meja Number
Nama_pembeli Short Text
Kode_pemesanan Short Text
Total_harga Currency

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 7


Tabel 3.3 Tampilan tipe data pada sistem Pesanan Pembeli Burjo Borneo
Field Name Tipe Data
Nama_pembeli Short Text
Kode_pemesanan Short Text
Nomor_meja Number
Total_harga Currency

Tabel 3.4 Tampilan tipe data pada Transaksi Burjo Borneo


Field Name Tipe Data
Username Short Text
Nomor_meja Number
Kode_pemesanan Short Text
Tanggal_pesan Short Text
Total_harga Currency

7.3 Tampilan Relasi Antar Tabel


Berikut merupakan tampilan relasi antar tabel yang dapat dilihat pada
Gambar 8.1.

Gambar 8.1 Relasi Antar Tabel sistem pelayanan Burjo Borneo

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 8


8. Desain User Interface
8.1 Form
8.1.1 Form Login
Berikut merupakan tampilan dari form Login pada program Pelayanan Burjo
Borneo yang dapat dilihat pada Gambar 8.1 dan properties toolbox yang
ditampilkan pada Tabel 8.1

Gambar 8.1 Form Login


Tabel 5.2 Properties toolbox form pemesanan baru.
Object Properties Nilai
Name Form1
Form1 BackColor Control
Backgroundcolour ButtonLight
Text Login
Name Label1
Label1 Font Microsoft Sans Serif, 12 pt
Text LOGIN KARYAWAN BORNEO
Forecolor Control light light
Name Label2
Label2 Font Modern 20, 8 pt,
Text User Name
Name Label3
Label3 Font Modern 20, 8 pt,

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 9


Text Password
Name Label4
Label4 Font Microsoft Sans Serif, 12 pt
Text 2353
Name PictureBox1
PictureBox1 Image Logo Borneo
Size Mode StretchImage
Panel1 Name Panel1
Button1 Name Button1
Text Login
Button2 Name Button2
Text Keluar
Button3 Name Button3
Image System
TextBox1 Name TextBox1
TextBox2 Name TextBox2
TextBox3 Name TextBox3
Groupbox1 Name Groupbox1
Text Login
Groupbox2 Name Groupbox2
Text Captcha

8.1.2 Form Kasir Burjo Borneo


Berikut merupakan tampilan dari form Kasir Burjo Borneo pada program
Pelayanan Burjo Borneo yang dapat dilihat pada Gambar 8.2 dan properties
toolbox yang ditampilkan pada Tabel 8.2

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 10


Gambar 8.2 Form Kasir Burjo Borneo
Tabel 8.2 Properties toolbox form Kasir Burjo Borneo
Object Properties Nilai
Name Form3
Form3 Background Blue
Text Kasir Burjo Borneo
Label1 Name Label1
Font Microsoft sans sherif,12pt
Text Heloo My Name is
Label2 Name Label2
Font Cooper,Bold,12pt
Text Label2
Label3 Name Label3
Font Cooper,Bold,24pt
Text SELAMAT DATANG
Label4 Name Label4
Font Comic Sans MS,12pt
Text No. Meja
Label5 Name Label5
Font Comic Sans MS,12pt
Text Nama Pemesan
Label6 Name Label6
Font Comic Sans MS,12pt
Text No

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 11


Label7 Name Label7
Font Comic Sans MS,12pt
Text Menu
Label8 Name Label8
Font Comic Sans MS,12pt
Text Harga
Label9 Name Label9
Font Comic Sans MS,12pt
Text Jumlah
Label10 Name Label10
Font Comic Sans MS,12pt
Text Total
Label11 Name Label11
Font Comic Sans MS,12pt
Text Keterangan
Label12 Name Label12
Font Comic Sans MS,12pt
Text 1.
Label13 Name Label13
Font Comic Sans MS,12pt
Text 2.
Label14 Name Label14
Font Comic Sans MS,12pt
Text 3.
Label15 Name Label15
Font Comic Sans MS,12pt
Text 4.
Label16 Name Label16
Font Comic Sans MS,12pt
Text 5.
Label17 Name Label17
Font Comic Sans MS,12pt
Text 6.
Label18 Name Label18
Font Comic Sans MS,12pt
Text 7.
Label19 Name Label19
Font Comic Sans MS,12pt
Text 8.
Label20 Name Label20
Font Comic Sans MS,12pt
Text 9.

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 12


Label121 Name Label21
Font Comic Sans MS,12pt
Text 10.
Label22 Name Label22
Font Comic Sans MS,12pt
Text TOTAL PEMBAYARAN
Label23 Name Label23
Font Comic Sans MS,12pt
Text CARA BAYAR
Label24 Name Label24
Font Comic Sans MS,12pt
Text JUMLAH BAYAR
Label25 Name Label25
Font Comic Sans MS,12pt
Text KEMBALIAN
Label26 Name Label26
Font Comic Sans MS,12pt
Text Tanggal
Label27 Name Label27
Font Comic Sans MS,12pt
Text Kode Pesan
Textbox1 Name Textbox1
Textbox2 Name Textbox2
Textbox3 Name Textbox3
Textbox4 Name Textbox4
Textbox5 Name Textbox5
Textbox6 Name Textbox6
Textbox7 Name Textbox7
Textbox8 Name Textbox8
Textbox9 Name Textbox9
Textbox10 Name Textbox10
Textbox11 Name Textbox11
Textbox12 Name Textbox12
Textbox13 Name Textbox13
Textbox14 Name Textbox14
Textbox15 Name Textbox15
Textbox16 Name Textbox16
Textbox17 Name Textbox17
Textbox18 Name Textbox18
Textbox19 Name Textbox19
Textbox20 Name Textbox20
Textbox21 Name Textbox21

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 13


Textbox22 Name Textbox22
Textbox23 Name Textbox23
Textbox24 Name Textbox24
Textbox25 Name Textbox25
Textbox26 Name Textbox26
Textbox27 Name Textbox27
Textbox28 Name Textbox28
Textbox29 Name Textbox29
Textbox30 Name Textbox30
Textbox31 Name Textbox31
Textbox32 Name Textbox32
Textbox33 Name Textbox33
Textbox34 Name Textbox34
Textbox35 Name Textbox35
Textbox36 Name Textbox36
Textbox37 Name Textbox37
Textbox38 Name Textbox38
Textbox39 Name Textbox39
Textbox40 Name Textbox40
Textbox41 Name Textbox41
Textbox42 Name Textbox42
Textbox43 Name Textbox43
Textbox44 Name Textbox44
Textbox45 Name Textbox45
Textbox46 Name Textbox46
Textbox47 Name Textbox47
Combobox1 Name Combobox1
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
V-DRIP 'TORAJA'
V-DRIP 'COLUMBIA'
TUBRUK 'JAVA'
TUBRUK 'BALI'
TUBRUK 'COLUMBIA'
Item KOPI JOJON
Combobox2 Name Combobox2
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
Item V-DRIP 'TORAJA'

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 14


V-DRIP 'COLUMBIA'
TUBRUK 'JAVA'
TUBRUK 'BALI'
TUBRUK 'COLUMBIA'
KOPI JOJON
Combobox3 Name Combobox3
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
V-DRIP 'TORAJA'
V-DRIP 'COLUMBIA'
TUBRUK 'JAVA'
TUBRUK 'BALI'
TUBRUK 'COLUMBIA'
Item KOPI JOJON
Combobox4 Name Combobox4
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
V-DRIP 'TORAJA'
V-DRIP 'COLUMBIA'
TUBRUK 'JAVA'
TUBRUK 'BALI'
TUBRUK 'COLUMBIA'
Item KOPI JOJON
Combobox5 Name Combobox5
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
V-DRIP 'TORAJA'
V-DRIP 'COLUMBIA'
TUBRUK 'JAVA'
TUBRUK 'BALI'
TUBRUK 'COLUMBIA'
Item KOPI JOJON
Combobox6 Name Combobox6
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
V-DRIP 'TORAJA'
V-DRIP 'COLUMBIA'
Item TUBRUK 'JAVA'

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 15


TUBRUK 'BALI'
TUBRUK 'COLUMBIA'
KOPI JOJON
Combobox7 Name Combobox7
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
V-DRIP 'TORAJA'
V-DRIP 'COLUMBIA'
TUBRUK 'JAVA'
TUBRUK 'BALI'
TUBRUK 'COLUMBIA'
Item KOPI JOJON
Combobox8 Name Combobox8
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
V-DRIP 'TORAJA'
V-DRIP 'COLUMBIA'
TUBRUK 'JAVA'
TUBRUK 'BALI'
TUBRUK 'COLUMBIA'
Item KOPI JOJON
Combobox9 Name Combobox9
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
V-DRIP 'TORAJA'
V-DRIP 'COLUMBIA'
TUBRUK 'JAVA'
TUBRUK 'BALI'
TUBRUK 'COLUMBIA'
Item KOPI JOJON
Combobox10 Name Combobox10
KOPI SPESIAL BORNEO
V60 'BALI'
V60 'COLUMBIA'
V-DRIP 'BALI'
V-DRIP 'JAVA'
V-DRIP 'TORAJA'
V-DRIP 'COLUMBIA'
TUBRUK 'JAVA'
TUBRUK 'BALI'
Item TUBRUK 'COLUMBIA'

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 16


KOPI JOJON
Combobox11 Name Combobox11
Cash
Item Debit
Panel1 Name Panel1
Panel2 Name Panel2
Panel3 Name Panel3
Panel4 Name Panel4
Panel5 Name Panel5
Name Picturebox1
Picturebox1 Image Burjo Borneo
Type Stretchimage
Button1 Name Button1
Text LOGOUT
Button2 Name Button2
Text PEMESANAN
Button3 Name Button3
Text HITUNG
Button4 Name Button4
Text PESAN
Button5 Name Button5
Text BATAL
Button6 Name Button6
Text TOTAL

8.1.3 Form Status Pembayaran


Berikut merupakan tampilan dari form Status Pembayaran pada program
Pelayanan Burjo Borneo yang dapat dilihat pada Gambar 8.3 dan properties
toolbox yang ditampilkan pada Tabel 8.3

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 17


Gambar 8.3 Form Status Pembayaran
Tabel 8.3 Properties toolbox form Status Pembayaran
Object Properties Nilai
Name Form3
Form3 Background Blaack
Text Status Pembayaran
Label1 Name Label1
Font Microsoft sans sherif,12pt
Text Kode Pemesanan
Label2 Name Label2
Font Microsoft sans sherif,12pt
Text Nama Pembeli
Label3 Name Label3
Font Microsoft sans sherif,12pt
Text Nomer Meja
Label4 Name Label4
Font Microsoft sans sherif,12pt
Text Total Harga
Listview1 Name Listview1
Name Picturebox1
Picturebox1 Image Burjo Borneo
Size Mode StretchImage
Groupbox1 Name Groupbox1
Text Data Pembayaran

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 18


Groupbox2 Name Groupbox2
Text PILIHAN
Button1 Name Button1
Text Pilih
Button3 Name Button3
Text Hapus
Button4 Name Button4
Text Edit
Button5 Name Button5
Text Keluar

8.1.4 Form Petunjuk Pemesanan


Berikut merupakan tampilan dari form Struk Pemesanan pada program
Pelayanan Burjo Borneo yang dapat dilihat pada Gambar 8.4 dan properties
toolbox yang ditampilkan pada Tabel 8.4

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 19


Gambar 8.4 Form Struk Pemesanan Pemesanan
Tabel 8.5 Properties toolbox form petunjuk pemesanan
Object Properties Nilai
Name Form5
Form4 BackgroundImage Burjo Borneo
Text Struk Pemesanan
Panel1 Name Panel1
Label1 Name Label1
Font Oreos , Bold, 24 Pt
Text STRUK PEMESANAN
Label2 Name Label2
Font Impact , Bold,12pt
Text Burjo Borneo
Label3 Name Label3
Font Microsoft sans sherif,12pt
Jl. Wahid Hasyim No.2
Text Yogyakarta 23

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 20


Telp. 0812 2777 8322

Label4 Name Label4


Font Microsoft sans sherif,12pt
Kode Pesanan
Text
Label5 Name Label5
Label6 Name Label6
Font Microsoft sans sherif,12pt
Pesanan
Text
Label7 Name Label7
Label8 Name Label8
Label9 Name Label9
Label10 Name Label10
Label11 Name Label11
Label12 Name Label12
Label13 Name Label13
Label14 Name Label14
Label15 Name Label15
Label16 Name Label16
Label17 Name Label17
Label18 Name Label18
Label19 Name Label19
Font Microsoft sans sherif,12pt
Text Total
Label20 Name Label20
Label121 Name Label21
Font Microsoft sans sherif,12pt
Terima kasih
Text Atas Kunjungan Anda :)
Button1 Name Button1
Text Cetak
Button2 Name Button2
Text Batal

8.1.5 Form Petunjuk Pemesanan


Berikut merupakan tampilan dari form Petunjuk Pemesanan pada program
Pelayanan Burjo Borneo yang dapat dilihat pada Gambar 8.5 dan properties
toolbox yang ditampilkan pada Tabel 8.5

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 21


Gambar 8.5 Form Petunjuk Pemesanan
Tabel 8.5 Properties toolbox form petunjuk pemesanan
Object Properties Nilai
Name Form5
Form5 BackgroundImage Blue Line Background
Text Petunjuk Pemesanan
Name Picturebox1
Picturebox1 Image Petunjuk Pemesanan
Size Mode StretchImage

8.2 Listing program


8.2.1 Listing program Module 1
Imports System.Data.Odbc
Imports System.Data
Imports System.Data.OleDb
Module Module1
Public ds As DataSet
Public da As OleDbDataAdapter
Public OLECMD As OleDbCommand
Public OLERDR As OleDbDataReader
Public cnn As OleDbConnection
Public dreader As OleDbDataReader
Public KONEKSI As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=" & Application.StartupPath & "\Pelayanan_Burjo_Borneo.accdb;"

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 22


Public X As Integer

Public jembatan = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" &


Application.StartupPath & "\Pelayanan_Burjo_Borneo.accdb;Persist Security
Info=False;"
Public Function akses() As OleDbConnection
Dim connect As New OleDbConnection(jembatan)
connect.Open()
Return connect
End Function

Sub tampiltextbox()
Try
Dim str As String
str = "select * from Pegawai where Username = '" &
Form1.TextBox1.Text & "'"
Dim perintah As New OleDbCommand(str, akses)
Dim rd As OleDbDataReader = perintah.ExecuteReader
rd.Read()

Catch ex As Exception
End Try
End Sub
Sub bersih()

Form3.TextBox2.Clear()
Form3.TextBox3.Clear()
Form3.TextBox4.Clear()
Form3.TextBox1.Clear()

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 23


End Sub

End Module
8.2.2 Listing program form Login
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.OleDb
Imports System.IO
Public Class Form1
Public jembatan = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" &
Application.StartupPath & "\Pelayanan_Burjo_Borneo.accdb;Persist Security
Info=False;"
Sub clear()
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
End Sub
Public Function akses() As OleDbConnection
Dim conect As New OleDbConnection(jembatan)
conect.Open()
Return conect
End Function
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
TextBox2.PasswordChar = "*"
Dim refresh As New Random
Dim number As Integer = refresh.Next(9000)
Label4.Show()
Me.Label4.Text = number
End Sub

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 24


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
Me.Close()
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles


Button2.Click
Dim login As String
login = "select * from Pegawai where Username = '" & TextBox1.Text & "'
and Password = '" & TextBox2.Text & "';"
Dim perintah As New OleDbCommand(login, akses)
Dim baca As OleDbDataReader = perintah.ExecuteReader
If baca.read And TextBox3.Text = Label4.Text Then
Form2.Show()
Form2.Label2.Text = TextBox1.Text
Me.Hide()
ElseIf TextBox1.Text = "admin" And TextBox2.Text = "123" And
TextBox3.Text = Label4.Text Then
Me.Hide()
Form2.Show()
Form2.Label2.Text = TextBox1.Text
Else
MessageBox.Show("NAMA ATAU PASSWORD ATAU CAPTCHA
SALAH", "PERINGATAN")
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
End If
Dim refresh As New Random
Dim number As Integer = refresh.Next(9000)
Label4.Show()

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 25


Me.Label4.Text = number

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles


Button3.Click
Dim refresh As New Random
Dim number As Integer = refresh.Next(9000)
Label4.Show()
Me.Label4.Text = number
End Sub

Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles


PictureBox1.Click
Form5.Show()
Me.Hide()
End Sub
End Class
8.2.3 Listing Program form Kasir Burjo Borneo
Imports System.Data.OleDb
Imports System.Data
Public Class Form2
Public kode_pemesan, nama_pembeli, nomor_meja, total_harga As String

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles


Button2.Click
Form3.Show()
Me.Hide()

End Sub

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 26


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
Form1.Show()
Me.Hide()

End Sub

Private Sub Form2_Load(sender As Object, e As EventArgs) Handles


MyBase.Load

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles


Button4.Click
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox47.Text = "" Or
TextBox43.Text = "" Then
MsgBox("Isi Data Dengan Benar", MsgBoxStyle.Exclamation,
"Kesalahan")
Exit Sub
End If
cnn = New OleDbConnection(KONEKSI)
If cnn.State <> ConnectionState.Closed Then cnn.Close()
cnn.Open()
OLECMD = New OleDbCommand("insert into Pesanan_Pembeli
(Nama_pembeli, Nomor_meja, kode_pemesanan, Total_harga) values('" &
TextBox2.Text & "','" & TextBox1.Text & "','" & TextBox47.Text & "','" &
TextBox43.Text & "')", cnn)
X = OLECMD.ExecuteNonQuery
If X = 1 Then

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 27


MsgBox("DATA BERHASIL DISIMPAN", MsgBoxStyle.Information,
"INFORMASI")
Call bersih()
Else
MsgBox("GAGAL MENYIMPAN DATA", MsgBoxStyle.Exclamation,
"KESALAHAN")
End If
Form4.Show()
Me.Hide()
Form4.Label5.Text = TextBox47.Text
Form4.Label20.Text = TextBox43.Text
Form4.Label17.Text = Label2.Text
Form4.Label18.Text = TextBox45.Text
Form4.Label7.Text = ComboBox1.Text
Form4.Label8.Text = ComboBox2.Text
Form4.Label9.Text = ComboBox3.Text
Form4.Label10.Text = ComboBox4.Text
Form4.Label11.Text = ComboBox5.Text
Form4.Label12.Text = ComboBox6.Text
Form4.Label13.Text = ComboBox7.Text
Form4.Label14.Text = ComboBox8.Text
Form4.Label15.Text = ComboBox9.Text
Form4.Label16.Text = ComboBox10.Text
End Sub

Private Sub ComboBox11_SelectedIndexChanged(sender As Object, e As


EventArgs) Handles ComboBox11.SelectedIndexChanged

End Sub

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 28


Private Sub Button5_Click(sender As Object, e As EventArgs) Handles
Button5.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
TextBox14.Text = ""
TextBox15.Text = ""
TextBox16.Text = ""
TextBox17.Text = ""
TextBox18.Text = ""
TextBox19.Text = ""
TextBox20.Text = ""
TextBox21.Text = ""
TextBox22.Text = ""
TextBox23.Text = ""
TextBox24.Text = ""
TextBox25.Text = ""
TextBox26.Text = ""
TextBox27.Text = ""
TextBox28.Text = ""
TextBox29.Text = ""

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 29


TextBox30.Text = ""
TextBox31.Text = ""
TextBox32.Text = ""
TextBox33.Text = ""
TextBox34.Text = ""
TextBox35.Text = ""
TextBox36.Text = ""
TextBox37.Text = ""
TextBox38.Text = ""
TextBox39.Text = ""
TextBox40.Text = ""
TextBox41.Text = ""
TextBox42.Text = ""
TextBox43.Text = ""
TextBox44.Text = ""
TextBox46.Text = ""
TextBox47.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
ComboBox4.Text = ""
ComboBox5.Text = ""
ComboBox6.Text = ""
ComboBox7.Text = ""
ComboBox8.Text = ""
ComboBox9.Text = ""
ComboBox10.Text = ""
ComboBox11.Text = ""
End Sub

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 30


Private Sub TextBox32_TextChanged(sender As Object, e As EventArgs)
Handles TextBox32.TextChanged
End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles


Button3.Click
TextBox46.Text = TextBox44.Text - TextBox43.Text
End Sub

Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As


EventArgs) Handles ComboBox1.SelectedIndexChanged
If ComboBox1.Text = "KOPI SPESIAL BORNEO" Then
TextBox3.Text = "8000"
End If
If ComboBox1.Text = "V60 'BALI'" Then
TextBox3.Text = "10000"
End If
If ComboBox1.Text = "V60 'COLUMBIA'" Then
TextBox3.Text = "10000"
End If
If ComboBox1.Text = "V-DRIP 'BALI'" Then
TextBox3.Text = "12000"
End If
If ComboBox1.Text = "V-DRIP 'JAVA'" Then
TextBox3.Text = "12000"
End If
If ComboBox1.Text = "V-DRIP 'TORAJA'" Then
TextBox3.Text = "12000"
End If
If ComboBox1.Text = "V-DRIP 'COLUMBIA'" Then
TextBox3.Text = "12000"

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 31


End If
If ComboBox1.Text = "TUBRUK 'JAVA'" Then
TextBox3.Text = "8000"
End If
If ComboBox1.Text = "TUBRUK 'BALI'" Then
TextBox3.Text = "8000"
End If
If ComboBox1.Text = "TUBRUK 'COLUMBIA'" Then
TextBox3.Text = "8000"
End If
If ComboBox1.Text = "KOPI JOJON" Then
TextBox3.Text = "8000"
End If

End Sub

Private Sub TextBox13_TextChanged(sender As Object, e As EventArgs)


Handles TextBox13.TextChanged
TextBox32.Text = TextBox3.Text * TextBox13.Text
End Sub

Private Sub TextBox14_TextChanged(sender As Object, e As EventArgs)


Handles TextBox14.TextChanged
TextBox31.Text = TextBox4.Text * TextBox14.Text
End Sub

Private Sub TextBox15_TextChanged(sender As Object, e As EventArgs)


Handles TextBox15.TextChanged
TextBox30.Text = TextBox5.Text * TextBox15.Text
End Sub

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 32


Private Sub TextBox16_TextChanged(sender As Object, e As EventArgs)
Handles TextBox16.TextChanged
TextBox29.Text = TextBox6.Text * TextBox16.Text
End Sub

Private Sub TextBox17_TextChanged(sender As Object, e As EventArgs)


Handles TextBox17.TextChanged
TextBox28.Text = TextBox7.Text * TextBox17.Text
End Sub

Private Sub TextBox18_TextChanged(sender As Object, e As EventArgs)


Handles TextBox18.TextChanged
TextBox27.Text = TextBox8.Text * TextBox18.Text
End Sub

Private Sub TextBox19_TextChanged(sender As Object, e As EventArgs)


Handles TextBox19.TextChanged
TextBox26.Text = TextBox9.Text * TextBox19.Text
End Sub

Private Sub TextBox20_TextChanged(sender As Object, e As EventArgs)


Handles TextBox20.TextChanged
TextBox25.Text = TextBox10.Text * TextBox20.Text
End Sub

Private Sub TextBox21_TextChanged(sender As Object, e As EventArgs)


Handles TextBox21.TextChanged
TextBox24.Text = TextBox11.Text * TextBox21.Text
End Sub

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 33


Private Sub TextBox22_TextChanged(sender As Object, e As EventArgs)
Handles TextBox22.TextChanged
TextBox23.Text = TextBox12.Text * TextBox22.Text
End Sub

Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As


EventArgs) Handles ComboBox2.SelectedIndexChanged
If ComboBox2.Text = "KOPI SPESIAL BORNEO" Then
TextBox4.Text = "8000"
End If
If ComboBox2.Text = "V60 'BALI'" Then
TextBox4.Text = "10000"
End If
If ComboBox2.Text = "V60 'COLUMBIA'" Then
TextBox4.Text = "10000"
End If
If ComboBox2.Text = "V-DRIP 'BALI'" Then
TextBox4.Text = "12000"
End If
If ComboBox2.Text = "V-DRIP 'JAVA'" Then
TextBox4.Text = "12000"
End If
If ComboBox2.Text = "V-DRIP 'TORAJA'" Then
TextBox4.Text = "12000"
End If
If ComboBox2.Text = "V-DRIP 'COLUMBIA'" Then
TextBox4.Text = "12000"
End If
If ComboBox2.Text = "TUBRUK 'JAVA'" Then
TextBox4.Text = "8000"
End If

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 34


If ComboBox2.Text = "TUBRUK 'BALI'" Then
TextBox4.Text = "8000"
End If
If ComboBox2.Text = "TUBRUK 'COLUMBIA'" Then
TextBox4.Text = "8000"
End If
If ComboBox2.Text = "KOPI JOJON" Then
TextBox4.Text = "8000"
End If
End Sub

Private Sub Button6_Click(sender As Object, e As EventArgs) Handles


Button6.Click
TextBox43.Text = Val(TextBox32.Text) + Val(TextBox31.Text) +
Val(TextBox30.Text) + Val(TextBox29.Text) + Val(TextBox28.Text) +
Val(TextBox27.Text) + Val(TextBox26.Text) + Val(TextBox25.Text) +
Val(TextBox24.Text) + Val(TextBox23.Text) + Val(TextBox22.Text)
End Sub

Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As


EventArgs) Handles ComboBox3.SelectedIndexChanged
If ComboBox3.Text = "KOPI SPESIAL BORNEO" Then
TextBox5.Text = "8000"
End If
If ComboBox3.Text = "V60 'BALI'" Then
TextBox5.Text = "10000"
End If
If ComboBox3.Text = "V60 'COLUMBIA'" Then
TextBox5.Text = "10000"
End If
If ComboBox3.Text = "V-DRIP 'BALI'" Then

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 35


TextBox5.Text = "12000"
End If
If ComboBox3.Text = "V-DRIP 'JAVA'" Then
TextBox5.Text = "12000"
End If
If ComboBox3.Text = "V-DRIP 'TORAJA'" Then
TextBox5.Text = "12000"
End If
If ComboBox3.Text = "V-DRIP 'COLUMBIA'" Then
TextBox5.Text = "12000"
End If
If ComboBox3.Text = "TUBRUK 'JAVA'" Then
TextBox5.Text = "8000"
End If
If ComboBox3.Text = "TUBRUK 'BALI'" Then
TextBox5.Text = "8000"
End If
If ComboBox3.Text = "TUBRUK 'COLUMBIA'" Then
TextBox5.Text = "8000"
End If
If ComboBox3.Text = "KOPI JOJON" Then
TextBox5.Text = "8000"
End If
End Sub

Private Sub ComboBox4_SelectedIndexChanged(sender As Object, e As


EventArgs) Handles ComboBox4.SelectedIndexChanged
If ComboBox4.Text = "KOPI SPESIAL BORNEO" Then
TextBox6.Text = "8000"
End If
If ComboBox4.Text = "V60 'BALI'" Then

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 36


TextBox6.Text = "10000"
End If
If ComboBox4.Text = "V60 'COLUMBIA'" Then
TextBox6.Text = "10000"
End If
If ComboBox4.Text = "V-DRIP 'BALI'" Then
TextBox6.Text = "12000"
End If
If ComboBox4.Text = "V-DRIP 'JAVA'" Then
TextBox6.Text = "12000"
End If
If ComboBox4.Text = "V-DRIP 'TORAJA'" Then
TextBox6.Text = "12000"
End If
If ComboBox4.Text = "V-DRIP 'COLUMBIA'" Then
TextBox6.Text = "12000"
End If
If ComboBox4.Text = "TUBRUK 'JAVA'" Then
TextBox6.Text = "8000"
End If
If ComboBox4.Text = "TUBRUK 'BALI'" Then
TextBox6.Text = "8000"
End If
If ComboBox4.Text = "TUBRUK 'COLUMBIA'" Then
TextBox6.Text = "8000"
End If
If ComboBox4.Text = "KOPI JOJON" Then
TextBox6.Text = "8000"
End If
End Sub

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 37


Private Sub ComboBox5_SelectedIndexChanged(sender As Object, e As
EventArgs) Handles ComboBox5.SelectedIndexChanged
If ComboBox5.Text = "KOPI SPESIAL BORNEO" Then
TextBox7.Text = "8000"
End If
If ComboBox5.Text = "V60 'BALI'" Then
TextBox7.Text = "10000"
End If
If ComboBox5.Text = "V60 'COLUMBIA'" Then
TextBox7.Text = "10000"
End If
If ComboBox5.Text = "V-DRIP 'BALI'" Then
TextBox7.Text = "12000"
End If
If ComboBox5.Text = "V-DRIP 'JAVA'" Then
TextBox7.Text = "12000"
End If
If ComboBox5.Text = "V-DRIP 'TORAJA'" Then
TextBox7.Text = "12000"
End If
If ComboBox5.Text = "V-DRIP 'COLUMBIA'" Then
TextBox7.Text = "12000"
End If
If ComboBox5.Text = "TUBRUK 'JAVA'" Then
TextBox7.Text = "8000"
End If
If ComboBox5.Text = "TUBRUK 'BALI'" Then
TextBox7.Text = "8000"
End If
If ComboBox5.Text = "TUBRUK 'COLUMBIA'" Then
TextBox7.Text = "8000"

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 38


End If
If ComboBox5.Text = "KOPI JOJON" Then
TextBox7.Text = "8000"
End If
End Sub

Private Sub ComboBox6_SelectedIndexChanged(sender As Object, e As


EventArgs) Handles ComboBox6.SelectedIndexChanged
If ComboBox6.Text = "KOPI SPESIAL BORNEO" Then
TextBox8.Text = "8000"
End If
If ComboBox6.Text = "V60 'BALI'" Then
TextBox8.Text = "10000"
End If
If ComboBox6.Text = "V60 'COLUMBIA'" Then
TextBox8.Text = "10000"
End If
If ComboBox6.Text = "V-DRIP 'BALI'" Then
TextBox8.Text = "12000"
End If
If ComboBox6.Text = "V-DRIP 'JAVA'" Then
TextBox8.Text = "12000"
End If
If ComboBox6.Text = "V-DRIP 'TORAJA'" Then
TextBox8.Text = "12000"
End If
If ComboBox6.Text = "V-DRIP 'COLUMBIA'" Then
TextBox8.Text = "12000"
End If
If ComboBox6.Text = "TUBRUK 'JAVA'" Then
TextBox8.Text = "8000"

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 39


End If
If ComboBox6.Text = "TUBRUK 'BALI'" Then
TextBox8.Text = "8000"
End If
If ComboBox6.Text = "TUBRUK 'COLUMBIA'" Then
TextBox8.Text = "8000"
End If
If ComboBox6.Text = "KOPI JOJON" Then
TextBox8.Text = "8000"
End If
End Sub

Private Sub ComboBox7_SelectedIndexChanged(sender As Object, e As


EventArgs) Handles ComboBox7.SelectedIndexChanged
If ComboBox7.Text = "KOPI SPESIAL BORNEO" Then
TextBox9.Text = "8000"
End If
If ComboBox7.Text = "V60 'BALI'" Then
TextBox9.Text = "10000"
End If
If ComboBox7.Text = "V60 'COLUMBIA'" Then
TextBox9.Text = "10000"
End If
If ComboBox7.Text = "V-DRIP 'BALI'" Then
TextBox9.Text = "12000"
End If
If ComboBox7.Text = "V-DRIP 'JAVA'" Then
TextBox9.Text = "12000"
End If
If ComboBox7.Text = "V-DRIP 'TORAJA'" Then
TextBox9.Text = "12000"

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 40


End If
If ComboBox7.Text = "V-DRIP 'COLUMBIA'" Then
TextBox9.Text = "12000"
End If
If ComboBox7.Text = "TUBRUK 'JAVA'" Then
TextBox9.Text = "8000"
End If
If ComboBox7.Text = "TUBRUK 'BALI'" Then
TextBox9.Text = "8000"
End If
If ComboBox7.Text = "TUBRUK 'COLUMBIA'" Then
TextBox9.Text = "8000"
End If
If ComboBox7.Text = "KOPI JOJON" Then
TextBox9.Text = "8000"
End If
End Sub

Private Sub ComboBox8_SelectedIndexChanged(sender As Object, e As


EventArgs) Handles ComboBox8.SelectedIndexChanged
If ComboBox8.Text = "KOPI SPESIAL BORNEO" Then
TextBox10.Text = "8000"
End If
If ComboBox8.Text = "V60 'BALI'" Then
TextBox10.Text = "10000"
End If
If ComboBox8.Text = "V60 'COLUMBIA'" Then
TextBox10.Text = "10000"
End If
If ComboBox8.Text = "V-DRIP 'BALI'" Then
TextBox10.Text = "12000"

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 41


End If
If ComboBox8.Text = "V-DRIP 'JAVA'" Then
TextBox10.Text = "12000"
End If
If ComboBox8.Text = "V-DRIP 'TORAJA'" Then
TextBox10.Text = "12000"
End If
If ComboBox8.Text = "V-DRIP 'COLUMBIA'" Then
TextBox10.Text = "12000"
End If
If ComboBox8.Text = "TUBRUK 'JAVA'" Then
TextBox10.Text = "8000"
End If
If ComboBox8.Text = "TUBRUK 'BALI'" Then
TextBox10.Text = "8000"
End If
If ComboBox8.Text = "TUBRUK 'COLUMBIA'" Then
TextBox10.Text = "8000"
End If
If ComboBox8.Text = "KOPI JOJON" Then
TextBox10.Text = "8000"
End If
End Sub

Private Sub ComboBox9_SelectedIndexChanged(sender As Object, e As


EventArgs) Handles ComboBox9.SelectedIndexChanged
If ComboBox9.Text = "KOPI SPESIAL BORNEO" Then
TextBox11.Text = "8000"
End If
If ComboBox9.Text = "V60 'BALI'" Then
TextBox11.Text = "10000"

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 42


End If
If ComboBox9.Text = "V60 'COLUMBIA'" Then
TextBox11.Text = "10000"
End If
If ComboBox9.Text = "V-DRIP 'BALI'" Then
TextBox11.Text = "12000"
End If
If ComboBox9.Text = "V-DRIP 'JAVA'" Then
TextBox11.Text = "12000"
End If
If ComboBox9.Text = "V-DRIP 'TORAJA'" Then
TextBox11.Text = "12000"
End If
If ComboBox9.Text = "V-DRIP 'COLUMBIA'" Then
TextBox11.Text = "12000"
End If
If ComboBox9.Text = "TUBRUK 'JAVA'" Then
TextBox11.Text = "8000"
End If
If ComboBox9.Text = "TUBRUK 'BALI'" Then
TextBox11.Text = "8000"
End If
If ComboBox9.Text = "TUBRUK 'COLUMBIA'" Then
TextBox11.Text = "8000"
End If
If ComboBox9.Text = "KOPI JOJON" Then
TextBox11.Text = "8000"
End If
End Sub

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 43


Private Sub ComboBox10_SelectedIndexChanged(sender As Object, e As
EventArgs) Handles ComboBox10.SelectedIndexChanged
If ComboBox10.Text = "KOPI SPESIAL BORNEO" Then
TextBox12.Text = "8000"
End If
If ComboBox10.Text = "V60 'BALI'" Then
TextBox12.Text = "10000"
End If
If ComboBox10.Text = "V60 'COLUMBIA'" Then
TextBox12.Text = "10000"
End If
If ComboBox10.Text = "V-DRIP 'BALI'" Then
TextBox12.Text = "12000"
End If
If ComboBox10.Text = "V-DRIP 'JAVA'" Then
TextBox12.Text = "12000"
End If
If ComboBox10.Text = "V-DRIP 'TORAJA'" Then
TextBox12.Text = "12000"
End If
If ComboBox10.Text = "V-DRIP 'COLUMBIA'" Then
TextBox12.Text = "12000"
End If
If ComboBox10.Text = "TUBRUK 'JAVA'" Then
TextBox12.Text = "8000"
End If
If ComboBox10.Text = "TUBRUK 'BALI'" Then
TextBox12.Text = "8000"
End If
If ComboBox10.Text = "TUBRUK 'COLUMBIA'" Then
TextBox12.Text = "8000"

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 44


End If
If ComboBox10.Text = "KOPI JOJON" Then
TextBox12.Text = "8000"
End If
End Sub
End Class
8.3.4 Listing program form Status Pembayaran
Imports System.Data.OleDb
Imports System.Data
Public Class Form3
Public kode_pemesan, nama_pembeli, nomor_meja, total_harga As String
Sub delete()
cnn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=" & Application.StartupPath & "\Pelayanan_Burjo_Borneo.accdb;")
OLECMD = New OleDbCommand("delete from Pesanan_Pembeli where
Kode_pemesanan=@sno", cnn)
cnn.Open()
OLECMD.Parameters.AddWithValue("@sno", TextBox1.Text)
OLECMD.ExecuteNonQuery()
cnn.Close()
Call bersih()
End Sub
Sub choosedata()
ListView1.ShowGroups.GetTypeCode()
If kode_pemesan <> "" Then
TextBox1.Text = kode_pemesan
TextBox2.Text = nama_pembeli
TextBox3.Text = nomor_meja
TextBox4.Text = total_harga
End If
End Sub

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 45


Sub selectdata()
Try
nama_pembeli = ListView1.SelectedItems(0).SubItems(0).Text.ToString
kode_pemesan = ListView1.SelectedItems(0).SubItems(1).Text.ToString
nomor_meja = ListView1.SelectedItems(0).SubItems(2).Text.ToString
total_harga = ListView1.SelectedItems(0).SubItems(3).Text.ToString
Catch ex As Exception
MsgBox("Choose The Data", MsgBoxStyle.Information)
End Try
End Sub
Sub SetLV1()
SetLV()
cnn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=" & Application.StartupPath & "\Pelayanan_Burjo_Borneo.accdb;")
cnn.Open()
OLECMD = New OleDbCommand("select * from Pesanan_Pembeli", cnn)
OLERDR = OLECMD.ExecuteReader
If OLERDR.HasRows Then
While OLERDR.Read
Dim newitem As New ListViewItem
newitem.Text = OLERDR.GetValue(0)
newitem.SubItems.Add(OLERDR.GetValue(1))
newitem.SubItems.Add(OLERDR.GetValue(2))
newitem.SubItems.Add(OLERDR.GetValue(3))
ListView1.Items.Add(newitem)
End While
End If
End Sub

Sub SetLV()
ListView1.Columns.Add("Nama Pembeli", 90, HorizontalAlignment.Left)

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 46


ListView1.Columns.Add("Kode Produk", 90, HorizontalAlignment.Left)
ListView1.Columns.Add("Nomor Meja", 90, HorizontalAlignment.Left)
ListView1.Columns.Add("Total Harga", 90, HorizontalAlignment.Left)
ListView1.View = View.Details
ListView1.GridLines = True
ListView1.FullRowSelect = True
End Sub
Private Sub Form3_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
SetLV()
cnn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=" & Application.StartupPath & "\Pelayanan_Burjo_Borneo.accdb;")
cnn.Open()
OLECMD = New OleDbCommand("select * from Pesanan_Pembeli", cnn)
OLERDR = OLECMD.ExecuteReader
If OLERDR.HasRows Then
While OLERDR.Read
Dim newitem As New ListViewItem
newitem.Text = OLERDR.GetValue(0)
newitem.SubItems.Add(OLERDR.GetValue(1))
newitem.SubItems.Add(OLERDR.GetValue(2))
newitem.SubItems.Add(OLERDR.GetValue(3))
ListView1.Items.Add(newitem)
End While
End If
End Sub

Private Sub Button5_Click_1(sender As Object, e As EventArgs) Handles


Button5.Click

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 47


Me.Close()
Form2.Show()

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles


Button3.Click
Call delete()
ListView1.Clear()
SetLV1()
Call bersih()
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click
Call choosedata()
Call selectdata()
End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles


Button4.Click
cnn = New OleDbConnection(KONEKSI)
If cnn.State <> ConnectionState.Closed Then cnn.Close()
cnn.Open()
OLECMD = New OleDbCommand("update Pesanan_Pembeli set
Nama_pembeli='" & TextBox2.Text & "', Nomor_meja='" & TextBox3.Text & "',
Total_harga='" & TextBox4.Text & "' where Kode_pemesanan='" &
TextBox1.Text & "'", cnn)
X = OLECMD.ExecuteNonQuery
If X = 1 Then

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 48


MsgBox("UPDATED", MsgBoxStyle.Information, "INFORMASI")
Call bersih()
ListView1.Clear()
SetLV1()
End If
End Sub
End Class

8.3.5 Listing program form Struk Pemesanan


Public Class Form4

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles


Button2.Click
Form2.Show()
Me.Hide()
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click
MsgBox("TERIMA KASIH SUDAH MEMESAN, MOHON MENUNGGU
DI MEJA YANG TELAH DIPILIH", MsgBoxStyle.Information, "INFORMASI")
End Sub

Private Sub Form4_Load(sender As Object, e As EventArgs) Handles


MyBase.Load
End Sub

Private Sub Label4_Click(sender As Object, e As EventArgs) Handles


Label4.Click
End Sub
End Class

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 49


8.3.6 Listing program form Petunjuk Pemesanan
Public Class Form5

Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles


PictureBox1.Click
Form1.Show()
Me.Hide()
End Sub

Private Sub Form5_Load(sender As Object, e As EventArgs) Handles


MyBase.Load
End Sub
End Class

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 50


8.3 Running program
8.3.1 Running program form Login
Berikut merupakan tampilan dari form Login pada program Pelayanan Burjo
Boreno yang dapat dilihat pada Gambar 8.6.

Gambar 8.6 Form Login

8.3.1 Running program form Login


Berikut merupakan tampilan dari form Login pada program Pelayanan Burjo
Boreno yang dapat dilihat pada Gambar 8.6.

Gambar 8.6 Form Login

Laporan Tugas Besar Praktikum Analisis dan Perancangan Sistem Informasi 51

Anda mungkin juga menyukai