L A M P I R A N. Universitas Sumatera Utara

Size: px
Start display at page:

Download "L A M P I R A N. Universitas Sumatera Utara"

Transcription

1 L A M P I R A N

2 1 Listing Program 1. Form Menu Public Class frm_menu Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click frm_login.show() Me.Hide() End Class 2. Form Login Imports System.Data.OleDb Public Class frm_login Dim exp As OleDbCommand Dim dr As OleDbDataReader Private Sub frm_login_load(byval sender As MyBase.Load cekkoneksi() Private Sub btn_login_click(byval sender As btn_login.click exp = New OleDbCommand("SELECT * FROM tbl_user WHERE [username]='" & TextBox1.Text & "' AND [password]='" & TextBox2.Text & "'", koneksi) dr = exp.executereader If dr.hasrows Then 'jika data yang diinput benar, maka proses dibawah dikerjakan,utk memanggil dr.read() Me.Hide() Dim F_Utama As New MDIParent1 F_Utama.Show() Else MsgBox("Pastikan data anda benar", MsgBoxStyle.Information, "Pesan") TextBox1.Text = "" TextBox2.Text = "" TextBox1.Select() dr.close() 'memunculkan pesan kesalahan jika step 1 ada kesalahan tetapi program tetap berjalan

3 2 End End Class 3. Form MDI Parent Imports System.Windows.Forms Public Class MDIParent1 Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs) ' Create a new instance of the child form. Dim ChildForm As New System.Windows.Forms.Form ' Make it a child of this MDI form before showing it. ChildForm.MdiParent = Me m_childformnumber += 1 ChildForm.Text = "Window " & m_childformnumber ChildForm.Show() Private Sub OpenFile(ByVal sender As Object, ByVal e As EventArgs) Dim OpenFileDialog As New OpenFileDialog OpenFileDialog.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.MyDocuments OpenFileDialog.Filter = "Text Files (*.txt) *.txt All Files (*.*) *.*" If (OpenFileDialog.ShowDialog(Me) = System.Windows.Forms.DialogResult.OK) Then Dim FileName As String = OpenFileDialog.FileName ' TODO: Add code here to open the file. Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) Dim SaveFileDialog As New SaveFileDialog SaveFileDialog.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.MyDocuments SaveFileDialog.Filter = "Text Files (*.txt) *.txt All Files (*.*) *.*" If (SaveFileDialog.ShowDialog(Me) = System.Windows.Forms.DialogResult.OK) Then Dim FileName As String = SaveFileDialog.FileName ' TODO: Add code here to save the current contents of the form to a file. Private Sub ExitToolsStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) End

4 3 Private Sub CutToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) ' Use My.Computer.Clipboard to insert the selected text or images into the clipboard Private Sub CopyToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) ' Use My.Computer.Clipboard to insert the selected text or images into the clipboard Private Sub PasteToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) 'Use My.Computer.Clipboard.GetText() or My.Computer.Clipboard.GetData to retrieve information from the clipboard. Private Sub ToolBarToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) 'Me.ToolStrip.Visible = Me.ToolBarToolStripMenuItem.Checked Private Sub StatusBarToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) 'Me.StatusStrip.Visible = Me.StatusBarToolStripMenuItem.Checked Private Sub CascadeToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) Me.LayoutMdi(MdiLayout.Cascade) Private Sub TileVerticalToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) Me.LayoutMdi(MdiLayout.TileVertical) Private Sub TileHorizontalToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) Me.LayoutMdi(MdiLayout.TileHorizontal) Private Sub ArrangeIconsToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) Me.LayoutMdi(MdiLayout.ArrangeIcons) Private Sub CloseAllToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) ' Close all child forms of the parent. For Each ChildForm As Form In Me.MdiChildren ChildForm.Close() Next

5 4 Private m_childformnumber As Integer Private Sub UserToolStripMenuItem_Click(ByVal sender As UserToolStripMenuItem.Click Dim F_User As New frm_user F_User.MdiParent = Me F_User.Show() Private Sub DataBarangToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DataBarangToolStripMenuItem.Click Dim F_Barang As New frm_barang F_Barang.MdiParent = Me F_Barang.Show() Private Sub DataSupplierToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DataSupplierToolStripMenuItem.Click Dim F_Supplier As New frm_supplier F_Supplier.MdiParent = Me F_Supplier.Show() Private Sub DataCustomerToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DataCustomerToolStripMenuItem.Click Dim F_Customer As New frm_customer F_Customer.MdiParent = Me F_Customer.Show() Private Sub FakturPembelianToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FakturPembelianToolStripMenuItem.Click Dim F_Pembelian As New frm_pembelian F_Pembelian.MdiParent = Me F_Pembelian.Show() Private Sub DetailHutangPiutangPembelianToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DetailHutangPiutangPembelianToolStripMenuItem.Click Dim F_Detail_Credit As New frm_detail_credit F_Detail_Credit.MdiParent = Me F_Detail_Credit.Show() Private Sub FakturPenjualanToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FakturPenjualanToolStripMenuItem.Click Dim F_Penjualan As New frm_penjualan F_Penjualan.MdiParent = Me F_Penjualan.Show()

6 5 Private Sub DetailHutangPiutangPenjualanToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DetailHutangPiutangPenjualanToolStripMenuItem.Click Dim F_Detail_Hutang As New frm_detail_hutang F_Detail_Hutang.MdiParent = Me F_Detail_Hutang.Show() Private Sub MDIParent1_Load(ByVal sender As MyBase.Load Dim F_Cek_Gudang As New frm_cek_gudang F_Cek_Gudang.MdiParent = Me F_Cek_Gudang.Show() Timer1.Enabled = True 'LaporanToolStripMenuItem.Enabled = False Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ToolTime.Text = Format(Now, "HH:mm:ss") ToolDate.Text = Format(Now, "ddd dd-mmm-yyyy") Private Sub LaporanPembelianToolStripMenuItem_Click(ByVal sender As LaporanPembelianToolStripMenuItem.Click Dim F_Laporan_Pembelian As New Laporan F_Laporan_Pembelian.MdiParent = Me F_Laporan_Pembelian.Show() Private Sub LaporanPenjualanToolStripMenuItem_Click(ByVal sender As LaporanPenjualanToolStripMenuItem.Click Dim F_Laporan_Penjualan As New Laporan1 F_Laporan_Penjualan.MdiParent = Me F_Laporan_Penjualan.Show() Private Sub BantuanToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BantuanToolStripMenuItem.Click Dim F_help As New frm_help F_help.MdiParent = Me F_help.Show() Private Sub TentangToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TentangToolStripMenuItem.Click Dim F_about As New frm_about F_about.MdiParent = Me

7 6 F_about.Show() Private Sub LogoutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LogoutToolStripMenuItem.Click End End Class 4. Form Cek_Gudang Imports System.Data.OleDb Public Class frm_cek_gudang Dim da As OleDbDataAdapter Dim ds As DataSet Private Sub da = New OleDbDataAdapter("Select * from tbl_barang WHERE jumlah < 5", conn) ds = New DataSet ds.clear() da.fill(ds, "tbl_barang") DGV1.DataSource = (ds.tables("tbl_barang")) With DGV1.Columns(0).Width = 200.Columns(1).Width = 350.Columns(2).Width = 100.Columns(3).Width = 150.Columns(4).Width = 150.Columns(5).Width = 150.Columns(0).HeaderText = "Kode Barang".Columns(1).HeaderText = "Nama Barang".Columns(2).HeaderText = "Satuan".Columns(3).HeaderText = "Harga Beli".Columns(4).HeaderText = "Harga Jual".Columns(5).HeaderText = "Stok".ForeColor = Color.Red End With Private Sub frm_cek_gudang_activated(byval sender As Object, ByVal e As System.EventArgs) Handles Me.Activated 'gunanya pada saat dia aktip maka form akan terus terrefresh Private Sub frm_cek_gudang_load(byval sender As MyBase.Load cekkoneksi() End Class

8 7 5. Form User Imports System.Data.OleDb Public Class frm_user Dim da As OleDbDataAdapter Dim ds As DataSet Private Sub frm_user_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cekkoneksi() Private Sub bersih() da = New OleDbDataAdapter("Select username, password, kategori from tbl_user", conn) ds = New DataSet ds.clear() da.fill(ds, "tbl_user") DGV1.DataSource = (ds.tables("tbl_user")) With DGV1.Columns(0).Width = 250.Columns(1).Width = 100.Columns(2).Width = 120.Columns(0).HeaderText = "Username".Columns(1).HeaderText = "Password".Columns(2).HeaderText = "Kategori" End With Private Sub bersih() txtuname.text = "" txtpass.text = "" cbokategori.text = "" txtuname.select() Private Sub txtuname_lostfocus(byval sender As Object, ByVal e As System.EventArgs) Handles txtuname.lostfocus If txtuname.text = String.Empty Then Exit Sub Dim perintah As String = "select * from tbl_user where username = '" & txtuname.text & "'" If data.hasrows Then data.read() txtuname.text = data(1) txtpass.text = data(2) cbokategori.text = data(3)

9 8 Private Sub btn_simpan_click(byval sender As btn_simpan.click Dim perintah As String = "INSERT INTO &_ tbl_user([username], [password], kategori VALUES ('" & txtuname.text & "','" & txtpass.text & "','" & cbokategori.text & "')" MsgBox("Data Berhasil Disimpan", End Private Sub btn_hapus_click(byval sender As btn_hapus.click Dim perintah As String = "Delete from tbl_user where username = '" & txtuname.text & "'" MsgBox("Data Berhasil Dihapus", End Private Sub btn_batal_click(byval sender As btn_batal.click bersih() Private Sub btn_keluar_click(byval sender As btn_keluar.click Me.Close() End Class 6. Form Barang Imports System.Data.OleDb Public Class frm_barang

10 9 Dim da As OleDbDataAdapter Dim ds As DataSet Private Sub frm_barang_load(byval sender As Object, ByVal e As System.EventArgs) Handles Me.Load cekkoneksi() tampil_satuan() txtkode.select() Private Sub bersih() da = New OleDbDataAdapter("Select * from tbl_barang", conn) ds = New DataSet ds.clear() da.fill(ds, "tbl_barang") DGV1.DataSource = (ds.tables("tbl_barang")) With DGV1.Columns(0).Width = 100.Columns(1).Width = 250.Columns(2).Width = 100.Columns(3).Width = 120.Columns(4).Width = 120.Columns(5).Width = 100.Columns(0).HeaderText = "Kode Barang".Columns(1).HeaderText = "Nama Barang".Columns(2).HeaderText = "Satuan".Columns(3).HeaderText = "Harga Beli".Columns(4).HeaderText = "Harga Jual".Columns(5).HeaderText = "Stok yang Tersedia" End With Private Sub bersih() txtkode.text = "" txtnama.text = "" cbosatuan.text = "" txthargabeli.text = "" txthargajual.text = "" txtjumlah.text = "" txtkode.focus() Private Sub btn_satuan_click(byval sender As btn_satuan.click frm_satuan.show() Private Sub txtkode_lostfocus(byval sender As Object, ByVal e As System.EventArgs) Handles txtkode.lostfocus If txtkode.text = String.Empty Then 'jika textkode kosong maka tidak ada proses yang dijalankan. Exit Sub

11 10 'jika txtkode ada isi dan isi tersebut tertera di tabel db maka data yang ada di tabel db dimunculkan pada komponen dibwh ini Dim perintah As String = "select * from tbl_barang where kode = '" & txtkode.text & "'" If data.hasrows Then data.read() txtkode.text = data(0) txtnama.text = data(1) cbosatuan.text = data(2) txthargabeli.text = data(3) txthargajual.text = data(4) txtjumlah.text = data(5) Public Sub tampil_satuan() cbosatuan.items.clear() Dim perintah As String = "Select satuan from satuan" While data.read() cbosatuan.items.add(data("satuan")) End While End Private Sub btn_hapus_click_1(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_hapus.click Dim perintah As String = "Delete from tbl_barang where kode = '" & txtkode.text & "'" MsgBox("Data Berhasil Dihapus", End Private Sub btn_simpan_click_1(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_simpan.click Dim perintah As String = "Insert into tbl_barang (kode, nama, satuan, harga_beli, harga_jual, jumlah) values ('" & txtkode.text & "','" & txtnama.text & "','" & cbosatuan.text & "','" & txthargabeli.text & "','" & txthargajual.text & "','" &

12 11 txtjumlah.text & "')" MsgBox("Data Berhasil Disimpan", End Private Sub btn_update_click_1(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_update.click Dim perintah As String = "update tbl_barang set nama='" & txtnama.text & "', satuan ='" & cbosatuan.text & "', harga_beli='" & txthargabeli.text & "', harga_jual='" & txthargajual.text & "', jumlah='" & txtjumlah.text & "' WHERE kode='" & txtkode.text & "'" MsgBox("Data Berhasil Diupdate", End Private Sub btn_batal_click_1(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_batal.click bersih() Private Sub btn_keluar_click_1(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_keluar.click Me.Close() Private Sub cbosatuan_click(byval sender As Object, ByVal e As System.EventArgs) Handles cbosatuan.click tampil_satuan() End Class 7. Form Satuan Imports System.Data.OleDb Public Class frm_satuan Dim da As OleDbDataAdapter Dim ds As DataSet Private Sub bersih() txtsatuan.text = ""

13 12 txtsatuan.select() Private Sub frm_satuan_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cekkoneksi() bersih() Private Sub btn_simpan_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_simpan.click Dim perintah As String = "insert into satuan (satuan) values ('" & txtsatuan.text & "')" MsgBox("Data berhasil ditambah", MsgBoxStyle.Information, "Pesan") bersih() End frm_barang.tampil_satuan() Me.Close() Private Sub txtsatuan_lostfocus(byval sender As Object, ByVal e As System.EventArgs) Handles txtsatuan.lostfocus If txtsatuan.text = String.Empty Then Exit Sub Dim perintah As String = "select * from satuan where satuan like '" & txtsatuan.text & "'" data = eksekusi.executereader If data.hasrows Then data.read() txtsatuan.text = data(1) Private Sub btn_hapus_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_hapus.click Dim perintah As String = "delete from satuan where satuan='" & txtsatuan.text & "'" MsgBox("Data berhasil dihapus", MsgBoxStyle.Information, "Pesan") bersih() End

14 13 frm_barang.tampil_satuan() Me.Close() End Class 8. Form Supplier Imports System.Data.OleDb Public Class frm_supplier Dim da As OleDbDataAdapter Dim ds As DataSet Private Sub frm_supplier_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cekkoneksi() Private Sub bersih() da = New OleDbDataAdapter("Select * from tbl_supplier", conn) ds = New DataSet ds.clear() da.fill(ds, "tbl_supplier") DGV1.DataSource = (ds.tables("tbl_supplier")) With DGV1.Columns(0).Width = 100.Columns(1).Width = 250.Columns(2).Width = 100.Columns(3).Width = 120.Columns(4).Width = 120.Columns(5).Width = 100.Columns(0).HeaderText = "Kode Supplier".Columns(1).HeaderText = "Nama Supplier".Columns(2).HeaderText = "Alamat".Columns(3).HeaderText = "Nomor Telp".Columns(4).HeaderText = "Nomor Hp".Columns(5).HeaderText = " " End With Private Sub bersih() txtkode.text = "" txtnama.text = "" txtalamat.text = "" txttelp.text = "" txthp.text = "" txt .text = "" txtkode.select() Private Sub txtkode_lostfocus(byval sender As Object, ByVal e As System.EventArgs) Handles txtkode.lostfocus If txtkode.text = String.Empty Then Exit Sub

15 14 Dim perintah As String = "select * from tbl_supplier where kode = '" & txtkode.text & "'" If data.hasrows Then data.read() txtkode.text = data(0) txtnama.text = data(1) txtalamat.text = data(2) txttelp.text = data(3) txthp.text = data(4) txt .text = data(5) Private Sub btn_simpan_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_simpan.click Dim perintah As String = "Insert into tbl_supplier values ('" & txtkode.text & "','" & txtnama.text & "','" & txtalamat.text & "','" & txttelp.text & "','" & txthp.text & "','" & txt .text & "')" MsgBox("Data Berhasil Disimpan", End Private Sub btn_update_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_update.click Dim perintah As String = "update tbl_supplier set nama='" & txtnama.text & "', alamat ='" & txtalamat.text & "', telp='" & txttelp.text & "', hp='" & txthp.text & "', ='" & txt .text & "' WHERE kode='" & txtkode.text & "'" MsgBox("Data Berhasil Diupdate", End Private Sub btn_hapus_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_hapus.click

16 15 Dim perintah As String = "Delete from tbl_supplier where kode = '" & txtkode.text & "'" MsgBox("Data Berhasil Dihapus", End Private Sub btn_batal_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_batal.click bersih() Private Sub btn_keluar_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_keluar.click Me.Close() End Class 9. Form Customer Imports System.Data.OleDb Public Class frm_customer Dim da As OleDbDataAdapter Dim ds As DataSet Private Sub frm_customer_load(byval sender As Object, ByVal e As System.EventArgs) Handles Me.Load cekkoneksi() Private Sub bersih() da = New OleDbDataAdapter("Select * from tbl_customer", conn) ds = New DataSet ds.clear() da.fill(ds, "tbl_customer") DGV1.DataSource = (ds.tables("tbl_customer")) With DGV1.Columns(0).Width = 100.Columns(1).Width = 250.Columns(2).Width = 100.Columns(3).Width = 120.Columns(4).Width = 120.Columns(5).Width = 100.Columns(0).HeaderText = "Kode Customer".Columns(1).HeaderText = "Nama Customer".Columns(2).HeaderText = "Alamat".Columns(3).HeaderText = "Nomor Telp".Columns(4).HeaderText = "Nomor Hp"

17 16.Columns(5).HeaderText = " " End With Private Sub bersih() txtkode.text = "" txtnama.text = "" txtalamat.text = "" txttelp.text = "" txthp.text = "" txt .text = "" txtkode.select() Private Sub txtkode_lostfocus(byval sender As Object, ByVal e As System.EventArgs) Handles txtkode.lostfocus If txtkode.text = String.Empty Then Exit Sub Dim perintah As String = "select * from tbl_customer where kode = '" & txtkode.text & "'" If data.hasrows Then data.read() txtkode.text = data(0) txtnama.text = data(1) txtalamat.text = data(2) txttelp.text = data(3) txthp.text = data(4) txt .text = data(5) Private Sub btn_simpan_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_simpan.click Dim perintah As String = "Insert into tbl_customer values ('" & txtkode.text & "','" & txtnama.text & "','" & txtalamat.text & "','" & txttelp.text & "','" & txthp.text & "','" & txt .text & "')" MsgBox("Data Berhasil Disimpan", End

18 17 Private Sub btn_update_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_update.click Dim perintah As String = "update tbl_customer set nama='" & txtnama.text & "', alamat ='" & txtalamat.text & "', telp='" & txttelp.text & "', hp='" & txthp.text & "', ='" & txt .text & "' WHERE kode='" & txtkode.text & "'" MsgBox("Data Berhasil Diupdate", End Private Sub btn_hapus_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_hapus.click Dim perintah As String = "Delete from tbl_customer where kode = '" & txtkode.text & "'" MsgBox("Data Berhasil Dihapus", End Private Sub btn_batal_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_batal.click bersih() Private Sub btn_keluar_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_keluar.click Me.Close() End Class 10. Form Pembelian Imports System.Data.OleDb Public Class frm_pembelian Dim da As OleDbDataAdapter Dim ds As DataSet Private Sub bersih1() da = New OleDbDataAdapter("Select tgl_pembelian, kode_brg, qty, satuan, harga_beli, jumlah_bayar from tbl_pembelian WHERE no_faktur = '" & txtfaktur.text &

19 18 "'", conn) ds = New DataSet ds.clear() da.fill(ds, "tbl_pembelian") DGV1.DataSource = (ds.tables("tbl_pembelian")) With DGV1.Columns(0).Width = 100.Columns(1).Width = 250.Columns(2).Width = 100.Columns(3).Width = 120.Columns(4).Width = 120.Columns(5).Width = 100.Columns(0).HeaderText = "Tanggal Pembelian".Columns(1).HeaderText = "Kode Barang".Columns(2).HeaderText = "Banyaknya".Columns(3).HeaderText = "Satuan".Columns(4).HeaderText = "Harga Beli".Columns(5).HeaderText = "Jumlah Yang Dibayar" End With Private Sub tampil_supplier() Dim perintah As String = "Select nama from tbl_supplier" While data.read() cbosupplier.items.add(data("nama")) End While End Private Sub tampil_kode_barang() Dim perintah As String = "Select kode from tbl_barang" While data.read() cbobarang.items.add(data("kode")) End While End Private Sub bersih1() cbobarang.text = "" txtbarang.text = "" txtsatuan.text = "" txtqty.text = "" txtharga.text = "" txtjum.text = ""

20 19 cbobarang.select() Private Sub bersih2() txtfaktur.text = "" cbosupplier.text = "" cbobarang.text = "" txtbarang.text = "" txtsatuan.text = "" txtqty.text = "" txtharga.text = "" txtjum.text = "" txttotbayar.text = "" cbojenisbayar.text = "" txtsudahbayar.text = "" txtsisabayar.text = "" cbostatus.text = "" 'DGV1.Rows.Clear() txtfaktur.select() Private Sub frm_pembelian_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cekkoneksi() tampil_supplier() tampil_kode_barang() txtfaktur.select() Private Sub cbobarang_selectedindexchanged(byval sender As cbobarang.selectedindexchanged Dim perintah As String = "select nama, satuan from tbl_barang where kode = '" & cbobarang.text & "'" If data.hasrows Then data.read() txtbarang.text = data(0) txtsatuan.text = data(1) Private Sub txtharga_textchanged(byval sender As txtharga.textchanged txtjum.text = Val(txtqty.Text) * Val(txtharga.Text) Private Sub btn_tambah_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_tambah.click Dim perintah As String = "Insert into tbl_pembelian (no_faktur, tgl_pembelian, supplier, kode_brg, qty, satuan, harga_beli, jumlah_bayar) values

21 20 ('" & txtfaktur.text & "','" & tgl_beli.text & "','" & cbosupplier.text & "','" & cbobarang.text & "','" & txtqty.text & "','" & txtsatuan.text & "','" & txtharga.text & "','" & txtjum.text & "')" Dim perintah1 As String = "update tbl_barang set harga_beli='" & txtharga.text & "', jumlah=jumlah + '" & txtqty.text & "' where kode='" & cbobarang.text & "'" Dim eksekusi1 As New OleDbCommand(perintah1, koneksi) eksekusi1.executenonquery() MsgBox("Data Berhasil Disimpan", End Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim perintah As String = "Select Sum(jumlah_bayar) as total_bayar From tbl_pembelian WHERE no_faktur = '" & txtfaktur.text & "'" If data.hasrows Then data.read() txttotbayar.text = data(0) Private Sub txtsudahbayar_textchanged(byval sender As txtsudahbayar.textchanged txtsisabayar.text = Val(txttotbayar.Text) Val(txtsudahbayar.Text) Private Sub btn_simpan_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_simpan.click Dim perintah As String = "Insert into tbl_detail_pembelian values ('" & txtfaktur.text & "','" & tgl_beli.text & "','" & txttotbayar.text & "','" & cbojenisbayar.text & "','" & txtsudahbayar.text & "','" & txtsisabayar.text & "','" & cbostatus.text & "')"

22 21 MsgBox("Data Berhasil Disimpan", bersih2() End Private Sub pilih_jenis_bayar() If cbojenisbayar.text = "Cash" Then txtsudahbayar.text = txttotbayar.text txtsisabayar.enabled = False cbostatus.text = "Lunas" ElseIf cbojenisbayar.text = "Credit" Then txtsudahbayar.text = "" cbostatus.text = "Belum Lunas" Private Sub cbojenisbayar_selectedindexchanged(byval sender As cbojenisbayar.selectedindexchanged pilih_jenis_bayar() Private Sub btn_batal_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_batal.click bersih2() Private Sub btn_keluar_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_keluar.click Me.Close() Private Sub btn_hapus_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_hapus.click Dim perintah As String = "Delete from tbl_detail_pembelian where no_faktur = '" & txtfaktur.text & "'" MsgBox("Data Berhasil Dihapus", End End Class

23 Form Penjualan Imports System.Data.OleDb Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Public Class frm_penjualan Dim da As OleDbDataAdapter Dim ds As DataSet Private Sub bersih1() da = New OleDbDataAdapter("Select tgl_penjualan, kode_brg, qty, satuan, harga_jual, jumlah_bayar from tbl_penjualan WHERE no_faktur = '" & txtfaktur.text & "'", conn) ds = New DataSet ds.clear() da.fill(ds, "tbl_penjualan") DGV1.DataSource = (ds.tables("tbl_penjualan")) With DGV1.Columns(0).Width = 100.Columns(1).Width = 250.Columns(2).Width = 100.Columns(3).Width = 120.Columns(4).Width = 120.Columns(5).Width = 100.Columns(0).HeaderText = "Tanggal Penjualan".Columns(1).HeaderText = "Kode Barang".Columns(2).HeaderText = "Banyaknya".Columns(3).HeaderText = "Satuan".Columns(4).HeaderText = "Harga Jual".Columns(5).HeaderText = "Jumlah Yang Dibayar" End With Private Sub tampil_customer() cbocustomer.items.clear() Dim perintah As String = "Select nama from tbl_customer" While data.read() cbocustomer.items.add(data("nama")) End While End Private Sub tampil_kode_barang() Dim perintah As String = "Select kode from tbl_barang"

24 23 While data.read() cbobarang.items.add(data("kode")) End While End Private Sub bersih1() cbobarang.text = "" txtbarang.text = "" txtsatuan.text = "" txtqty.text = "" txtharga.text = "" txtjum.text = "" cbostatusbeli.select() Private Sub bersih2() cbostatusbeli.text = "" txtfaktur.text = "" cbocustomer.text = "" cbobarang.text = "" txtbarang.text = "" txtsatuan.text = "" txtqty.text = "" txtharga.text = "" txtjum.text = "" txttotbayar.text = "" cbojenisbayar.text = "" txtsudahbayar.text = "" txtsisabayar.text = "" cbostatus.text = "" 'DGV1.Rows.Clear() cbostatusbeli.select() Private Sub cbostatusbeli_selectedindexchanged(byval sender As cbostatusbeli.selectedindexchanged If cbostatusbeli.text = "Non-Member" Then cbocustomer.enabled = False Else tampil_customer() cbocustomer.enabled = True Private Sub frm_penjualan_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cekkoneksi() tampil_kode_barang() Private Sub cbobarang_lostfocus(byval sender As Object, ByVal e As System.EventArgs) Handles cbobarang.lostfocus If txtfaktur.text = String.Empty Then

25 24 MsgBox("Nomor Faktur mohon Diisi", MsgBoxStyle.Information, "Pesan") Else Exit Sub Private Sub cbobarang_selectedindexchanged(byval sender As cbobarang.selectedindexchanged Dim perintah As String = "select nama, satuan, harga_jual from tbl_barang where kode = '" & cbobarang.text & "'" If data.hasrows Then data.read() txtbarang.text = data(0) txtsatuan.text = data(1) txtharga.text = data(2) Private Sub txtqty_textchanged(byval sender As System.Object, ByVal e As System.EventArgs) Handles txtqty.textchanged txtjum.text = Val(txtharga.Text) * Val(txtqty.Text) Private Sub btn_tambah_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_tambah.click Dim temp As Integer Dim perintah2 As String = "Select jumlah from tbl_barang where kode = '" & cbobarang.text & "'" Dim eksekusi2 As New OleDbCommand(perintah2, koneksi) data = eksekusi2.executereader() While data.read() temp = data("jumlah") End While If temp < txtqty.text Then MsgBox("Stok Tidak Mencukupi, Mohon Periksa Kembali Data di Gudang", MsgBoxStyle.Information, "Alert") Exit Sub Else Dim perintah As String = "Insert into tbl_penjualan (no_faktur, tgl_penjualan, status_pembeli, customer, kode_brg, qty, satuan, harga_jual, jumlah_bayar) values ('" & txtfaktur.text & "','" & tgl_beli.text & "','" & cbojenisbayar.text & "','" & cbocustomer.text & "','" &

26 25 cbobarang.text & "','" & txtqty.text & "','" & txtsatuan.text & "','" & txtharga.text & "','" & txtjum.text & "')" Dim eksekusi As New OleDbCommand(perintah,koneksi) Dim perintah1 As String = "update tbl_barang set jumlah=jumlah - '" & txtqty.text & "' where kode='" & cbobarang.text &"'" Dim eksekusi1 As New OleDbCommand(perintah1,koneksi) eksekusi1.executenonquery() MsgBox("Data Berhasil Disimpan", End End Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim perintah As String = "Select Sum(jumlah_bayar) as total_bayar From tbl_penjualan WHERE no_faktur = '" & txtfaktur.text & "'" If data.hasrows Then data.read() txttotbayar.text = data(0) Private Sub txtsudahbayar_textchanged(byval sender As txtsudahbayar.textchanged txtsisabayar.text = Val(txttotbayar.Text) Val(txtsudahbayar.Text) Private Sub btn_simpan_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_simpan.click Dim perintah As String = "Insert into tbl_detail_penjualan values ('" & txtfaktur.text & "','" & tgl_beli.text & "','" & txttotbayar.text & "','" & cbojenisbayar.text & "','" & txtsudahbayar.text & "','" &

27 26 txtsisabayar.text & "','" & cbostatus.text & "')" MsgBox("Data Berhasil Disimpan", End Dim str1 As String = "Select * From view_cetak_penjualan Where no_faktur='" & txtfaktur.text & "'" Dim CRP1 As New ReportDocument Dim dset1 As New DataSet Dim DA1 As New OleDbDataAdapter(str1, koneksi) DA1.Fill(dSet1) CRP1.Load(Application.StartupPath & "\CetakPenjualan.rpt") CRP1.SetDataSource(dSet1.Tables(0)) CRP1.Refresh() Dim F_Cetak_Penjualan As New frm_cetak_penjualan With F_Cetak_Penjualan.CRV1.Refresh().CRV1.ReportSource = CRP1.Show() End With bersih2() Private Sub pilih_jenis_bayar() If cbojenisbayar.text = "Cash" Then txtsudahbayar.text = txttotbayar.text txtsisabayar.enabled = False cbostatus.text = "Lunas" ElseIf cbojenisbayar.text = "Credit" Then txtsudahbayar.text = "" cbostatus.text = "Belum Lunas" txtsisabayar.enabled = True Private Sub btn_batal_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_batal.click bersih2() Private Sub btn_keluar_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_keluar.click Me.Close()

28 27 Private Sub btn_hapus_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_hapus.click Dim perintah As String = "Delete from tbl_detail_penjualan where no_faktur = '" & txtfaktur.text & "'" MsgBox("Data Berhasil Dihapus", End Private Sub cbojenisbayar_selectedvaluechanged(byval sender As Object, ByVal e As System.EventArgs) Handles cbojenisbayar.selectedvaluechanged pilih_jenis_bayar() End Class 12. Form Detail Hutang Pembelian Imports System.Data.OleDb Public Class frm_detail_credit Private Sub bersih() cbofaktur.text = "" tglpembelian.text = "" txtsupplier.text = "" txttotbayar.text = "" txtsudahbayar.text = "" txtsisabayar.text = "" cbostatus.text = "" tampil_credit() Private Sub tampil_credit() cbofaktur.items.clear() Dim perintah As String = "Select no_faktur from tbl_detail_pembelian where status='belum Lunas'" While data.read() cbofaktur.items.add(data("no_faktur")) End While End

29 28 Private Sub frm_detail_credit_load(byval sender As MyBase.Load cekkoneksi() bersih() Private Sub cbofaktur_selectedindexchanged(byval sender As cbofaktur.selectedindexchanged Dim perintah As String = "select tbl_detail_pembelian.tgl_pembelian, tbl_pembelian.supplier, tbl_detail_pembelian.total_bayar, tbl_detail_pembelian.sudah_bayar, tbl_detail_pembelian.sisa_bayar, tbl_detail_pembelian.status from tbl_detail_pembelian, tbl_pembelian where tbl_detail_pembelian.no_faktur = '" & cbofaktur.text & "' and tbl_pembelian.no_faktur = '" & cbofaktur.text & "'" If data.hasrows Then data.read() tglpembelian.text = data(0) txtsupplier.text = data(1) txttotbayar.text = data(2) txtsudahbayar.text = data(3) txtsisabayar.text = data(4) cbostatus.text = data(5) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click txtsudahbayar.text = Val(txttotbayar.Text) txtsisabayar.text = 0 cbostatus.text = "Lunas" Private Sub btn_update_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_update.click Dim perintah As String = "update tbl_detail_pembelian set sudah_bayar='" & txtsudahbayar.text & "', sisa_bayar ='" & txtsisabayar.text & "', status='" & cbostatus.text & "' WHERE no_faktur='" & cbofaktur.text & "'" MsgBox("Data Berhasil Diupdate", bersih()

30 29 End Private Sub btn_batal_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_batal.click bersih() Private Sub btn_keluar_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_keluar.click Me.Close() End Class 13. Form Detail Hutang Penjualan Imports System.Data.OleDb Public Class frm_detail_hutang Private Sub bersih() cbofaktur.text = "" tglpembelian.text = "" txtsupplier.text = "" txttotbayar.text = "" txtsudahbayar.text = "" txtsisabayar.text = "" cbostatus.text = "" tampil_credit() Private Sub tampil_credit() cbofaktur.items.clear() Dim perintah As String = "Select no_faktur from tbl_detail_penjualan where status='belum Lunas'" While data.read() cbofaktur.items.add(data("no_faktur")) End While End Private Sub frm_detail_hutang_load(byval sender As MyBase.Load cekkoneksi() bersih()

31 30 Private Sub cbofaktur_selectedindexchanged(byval sender As cbofaktur.selectedindexchanged Dim perintah As String = "select tbl_detail_penjualan.tgl_penjualan, tbl_penjualan.customer, tbl_detail_penjualan.total_bayar, tbl_detail_penjualan.sudah_bayar, tbl_detail_penjualan.sisa_bayar, tbl_detail_penjualan.status from tbl_detail_penjualan, tbl_penjualan where tbl_detail_penjualan.no_faktur = '" & cbofaktur.text & "' and tbl_penjualan.no_faktur = '" & cbofaktur.text & "'" If data.hasrows Then data.read() tglpembelian.text = data(0) txtsupplier.text = data(1) txttotbayar.text = data(2) txtsudahbayar.text = data(3) txtsisabayar.text = data(4) cbostatus.text = data(5) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click txtsudahbayar.text = Val(txttotbayar.Text) txtsisabayar.text = 0 cbostatus.text = "Lunas" Private Sub btn_update_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_update.click Dim perintah As String = "update tbl_detail_penjualan set sudah_bayar='" & txtsudahbayar.text & "', sisa_bayar ='" & txtsisabayar.text & "', status='" & cbostatus.text & "' WHERE no_faktur='" & cbofaktur.text & "'" MsgBox("Data Berhasil Diupdate", bersih() End Private Sub btn_batal_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_batal.click

32 31 bersih() Private Sub btn_keluar_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_keluar.click Me.Close() End Class 14. Form Laporan Pembelian Imports System.Data.OleDb Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Public Class Laporan Dim teks As String Dim da As OleDbDataAdapter Dim perintah As String Dim perintah1 As String Private Sub RadioButton2_CheckedChanged(ByVal sender As RadioButton2.CheckedChanged DTtanggal.Enabled = False cbohari.enabled = True cboitem.enabled = False cbohari.items.clear() Dim i As Integer For i = 1 To 12 cbohari.items.add(i) Next Private Sub RadioButton3_CheckedChanged(ByVal sender As RadioButton3.CheckedChanged DTtanggal.Enabled = False cbohari.enabled = True cboitem.enabled = False cbohari.items.clear() Dim i As Integer For i = 2009 To 2050 cbohari.items.add(i) Next Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If RadioButton1.Checked = True Then teks = DTtanggal.Value.Date.ToString("MM/dd/yyyy") perintah = "Select * From view_pembelian where tgl_pembelian=cdate('" & teks & "')"

33 32 ElseIf RadioButton2.Checked = True Then teks = cbohari.text perintah = "Select * From view_pembelian where MONTH(tgl_pembelian)='" & teks & "'" ElseIf RadioButton3.Checked = True Then teks = cbohari.text perintah = "Select * From view_pembelian where YEAR(tgl_pembelian)='" & teks & "'" ElseIf RadioButton4.Checked = True Then teks = cboitem.text perintah1 = "Select * From tbl_pembelian where kode_brg='" & teks & "'" 'Dim CRP1 As New ReportDocument 'Dim dset1 As New DataSet 'Dim DA1 As New OleDbDataAdapter(perintah, koneksi) 'DA1.Fill(dSet1) 'CRP1.Load(Application.StartupPath & "\CRPembelian.rpt") 'CRP1.SetDataSource(dSet1.Tables(0)) 'CRP1.Refresh() 'CrystalReportViewer1.ReportSource = CRP1 'CrystalReportViewer1.Refresh() Dim CRP1 As New ReportDocument Dim CRP2 As New ReportDocument Dim dset1 As New DataSet Dim dset2 As New DataSet Dim DA1 As New OleDbDataAdapter(perintah, koneksi) Dim DA2 As New OleDbDataAdapter(perintah1, koneksi) If RadioButton4.Checked = True Then DA2.Fill(dSet2) CRP2.Load(Application.StartupPath & "\CRPembelian1.rpt") CRP2.SetDataSource(dSet2.Tables(0)) CRP2.Refresh() Else DA1.Fill(dSet1) CRP1.Load(Application.StartupPath & "\CRPembelian.rpt") CRP1.SetDataSource(dSet1.Tables(0)) CRP1.Refresh() If RadioButton4.Checked = True Then CrystalReportViewer1.ReportSource = CRP2 CrystalReportViewer1.Refresh() Else CrystalReportViewer1.ReportSource = CRP1 CrystalReportViewer1.Refresh() End

34 33 Private Sub RadioButton1_CheckedChanged(ByVal sender As RadioButton1.CheckedChanged DTtanggal.Enabled = True cbohari.enabled = False cboitem.enabled = False Private Sub RadioButton4_CheckedChanged(ByVal sender As RadioButton4.CheckedChanged DTtanggal.Enabled = False cbohari.enabled = False cboitem.enabled = True Private Sub Laporan_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cekkoneksi() tampil_kode_barang() Private Sub tampil_kode_barang() Dim perintah As String = "Select kode from tbl_barang" While data.read() cboitem.items.add(data("kode")) End While End End Class 15. Form Laporan Penjualan Imports System.Data.OleDb Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Public Class Laporan1 Dim teks As String Dim da As OleDbDataAdapter Dim perintah As String Dim perintah1 As String Private Sub Laporan1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cekkoneksi() tampil_kode_barang()

35 34 Private Sub RadioButton2_CheckedChanged(ByVal sender As RadioButton2.CheckedChanged DTtanggal.Enabled = False cbohari.enabled = True cboitem.enabled = False cbohari.items.clear() Dim i As Integer For i = 1 To 12 cbohari.items.add(i) Next Private Sub RadioButton3_CheckedChanged(ByVal sender As RadioButton3.CheckedChanged DTtanggal.Enabled = False cbohari.enabled = True cboitem.enabled = False cbohari.items.clear() Dim i As Integer For i = 2009 To 2050 cbohari.items.add(i) Next Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If RadioButton1.Checked = True Then teks = DTtanggal.Value.Date.ToString("MM/dd/yyyy") perintah = "Select * From view_penjualan where tgl_penjualan=cdate('" & teks & "')" ElseIf RadioButton2.Checked = True Then teks = cbohari.text perintah = "Select * From view_penjualan where MONTH(tgl_penjualan)='" & teks & "'" ElseIf RadioButton3.Checked = True Then teks = cbohari.text perintah = "Select * From view_penjualan where YEAR(tgl_penjualan)='" & teks & "'" ElseIf RadioButton4.Checked = True Then teks = cboitem.text perintah1 = "Select * From tbl_penjualan where kode_brg = '" & teks & "'" Dim CRP1 As New ReportDocument Dim CRP2 As New ReportDocument Dim dset1 As New DataSet Dim dset2 As New DataSet Dim DA1 As New OleDbDataAdapter(perintah, koneksi) Dim DA2 As New OleDbDataAdapter(perintah1, koneksi)

36 35 If RadioButton4.Checked = True Then DA2.Fill(dSet2) CRP2.Load(Application.StartupPath & "\CRPenjualan1.rpt") CRP2.SetDataSource(dSet2.Tables(0)) CRP2.Refresh() Else DA1.Fill(dSet1) CRP1.Load(Application.StartupPath & "\CRPenjualan.rpt") CRP1.SetDataSource(dSet1.Tables(0)) CRP1.Refresh() If RadioButton4.Checked = True Then CrystalReportViewer1.ReportSource = CRP2 CrystalReportViewer1.Refresh() Else CrystalReportViewer1.ReportSource = CRP1 CrystalReportViewer1.Refresh() End Private Sub RadioButton1_CheckedChanged(ByVal sender As RadioButton1.CheckedChanged DTtanggal.Enabled = True cbohari.enabled = False cboitem.enabled = False Private Sub RadioButton4_CheckedChanged(ByVal sender As RadioButton4.CheckedChanged DTtanggal.Enabled = False cbohari.enabled = False cboitem.enabled = True Private Sub tampil_kode_barang() Dim perintah As String = "Select kode from tbl_barang" While data.read() cboitem.items.add(data("kode")) End While End End Class

37 Form About Public Class frm_about Private Sub btn_keluar_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btn_keluar.click Me.Close() End Class 17. Form Help Public Class frm_help Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Process.Start(Application.StartupPath & "/tutorial.pdf") 'posisi dimana file exe(executable) berada End Class 18. Module Imports System.Data.OleDb Module Module1 Public conn As String = "Provider=Microsoft.JET.OLEDB.4.0;Data Source=db_inventory.mdb" 'syntax utk koneksi db ke access Public koneksi As New OleDbConnection(conn) Public Sub cekkoneksi() koneksi.close() koneksi.open() 'MsgBox("Periksa Kembali Database", MsgBoxStyle.Information, "Error") End End Module

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara LAMPIRAN 1. Modul Imports System.Data Imports System.Data.OleDb Module Module1 Public conn As OleDbConnection Public CMD As OleDbCommand Public DS As New DataSet Public DA As OleDbDataAdapter Public RD

More information

LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN

LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN LAMPIRAN A-1 : NOTA DOKUMEN KELUARAN LAMPIRAN B MASUKAN SISTEM BERJALAN LAMPIRAN B-1 : DATA BARANG DOKUMEN MASUKAN LAMPIRAN B-2 : DATA PELANGGAN DOKUMEN

More information

Kartu Bimbingan Tugas Akhir Mahasiswa

Kartu Bimbingan Tugas Akhir Mahasiswa KEMENTRIAN PENDIDIKAN DAN KEBUDAYAAN UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jln. Bioteknologi No. 1 Kampus USU Padang Bulan Medan-20155 Telp. (061) 8214290, 8211212, 8211414

More information

Private Sub MenuUtamaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.ShowDialog() End Sub

Private Sub MenuUtamaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.ShowDialog() End Sub LISTING PROGRAM Menu_Utama.vb Public Class FrmUtama Private Sub DataMovieToolStripMenuItem_Click(ByVal sender As DataMovieToolStripMenuItem.Click FrmMovie.ShowDialog() Private Sub DataPeminjamToolStripMenuItem_Click(ByVal

More information

LISTING PROGRAM. 1. Form Menu Utama. Universitas Sumatera Utara

LISTING PROGRAM. 1. Form Menu Utama. Universitas Sumatera Utara LISTING PROGRAM 1. Form Menu Utama Dim LenTemp As Integer Dim SrtTemp As String Dim n As Integer Private Sub Form_Load() Call Tengah(Me) lhsysmenu = GetSystemMenu(Me.hwnd, False) lretval = RemoveMenu(lhSysMenu,

More information

To enter the number in decimals Label 1 To show total. Text:...

To enter the number in decimals Label 1 To show total. Text:... Visual Basic tutorial - currency converter We will use visual studio to create a currency converter where we can convert a UK currency pound to other currencies. This is the interface for the application.

More information

LISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal

LISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal LISTING PROGRAM 1. Tampilan Awal Public Class Awal Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Increment(10) If ProgressBar1.Value

More information

LISTING PROGRAM. PrivateSub KeluarToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles KeluarToolStripMenuItem.Click Close() EndSub

LISTING PROGRAM. PrivateSub KeluarToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles KeluarToolStripMenuItem.Click Close() EndSub LISTING PROGRAM 1.Tampilan awal PublicClassmm PrivateSub InputDataGuruToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles InputDataGuruToolStripMenuItem.Click guru.show() Me.Hide() EndSub PrivateSub

More information

Member Management System

Member Management System Member Management System These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA)

More information

DO NOT COPY AMIT PHOTOSTUDIO

DO NOT COPY AMIT PHOTOSTUDIO AMIT PHOTOSTUDIO These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA) All rights

More information

LAMPIRAN A: Listing Program

LAMPIRAN A: Listing Program 78 LAMPIRAN A: Listing Program 1. Form Login Public Class FrmLogin Public user As String Private Sub CmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdLogin.Click Dim

More information

Tutorial, Source code, Request Program Visual Basic

Tutorial, Source code, Request Program Visual Basic Tutorial, Source code, Request Program Visual Basic Oleh : Moh. A Azis Membuat Form Data Barang Program Persediaan Barang Form Data Barang digunakan untuk menyimpan data barang dan memberikan info mengenai

More information

โปรแกรมช วยทดสอบหม อแปลงกระแส

โปรแกรมช วยทดสอบหม อแปลงกระแส โปรแกรมช วยทดสอบหม อแปลงกระแส 1.เมน ของโปรแกรม ภาพท 1 หน าเมน ของโปรแกรม Public Class frmmain Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

More information

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1. 練習問題 1-1 Label1 Label1.Text = Label1.Text + 2 練習問題 1-2 Button2 Label1 Label1.Text = Label1.Text+ 2 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

More information

"!#... )*! "!# )+, -./ 01 $

!#... )*! !# )+, -./ 01 $ Email engauday@hotmail.com! "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?

More information

Mr.Khaled Anwar ( )

Mr.Khaled Anwar ( ) The Rnd() function generates random numbers. Every time Rnd() is executed, it returns a different random fraction (greater than or equal to 0 and less than 1). If you end execution and run the program

More information

WEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled.

WEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled. WEEK 1 Timer: A Timer is used to raise an event at user-defined intervals. It is optimized for use in Windows Forms applications. Timer is used to control and manage events that are time related. For example:

More information

Else. End If End Sub End Class. PDF created with pdffactory trial version

Else. End If End Sub End Class. PDF created with pdffactory trial version Dim a, b, r, m As Single Randomize() a = Fix(Rnd() * 13) b = Fix(Rnd() * 13) Label1.Text = a Label3.Text = b TextBox1.Clear() TextBox1.Focus() Private Sub Button2_Click(ByVal sender As System.Object, ByVal

More information

LAMPIRAN LIST PROGRAM

LAMPIRAN LIST PROGRAM LAMPIRAN LIST PROGRAM 1. Modules Public conn As New ADODB.Connection Public rstb_pendekatan As ADODB.Recordset Public rstb_solusi As ADODB.Recordset Public rstb_alasan As ADODB.Recordset Public rstb_pilihan

More information

VB.NET Programs. ADO.NET (insert, update, view records)

VB.NET Programs. ADO.NET (insert, update, view records) ADO.NET (insert, update, view records) VB.NET Programs Database: Student Table : Studtab (adno, name, age, place) Controls: DataGridView, Insert button, View button, Update button, TextBox1 (for Admission

More information

Sub clear() lblidver.text = Nothing lblstatus.text = Nothing

Sub clear() lblidver.text = Nothing lblstatus.text = Nothing LAMPIRAN Berikut merupakan listing code dari Form Verifikasi: Imports System.IO Public Class FrmVerifikasi_vb Dim FPDatabase As New FingerspotETouchSDK.FinFPDatabase Dim WithEvents verifikasi As FingerspotETouchSDK.FinFPVerification

More information

Objectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism

Objectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism Polymorphism Objectives After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism Definition Polymorphism provides the ability

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara 61 LAMPIRAN 61 Listing Program Form 1 ( Barang ) Dim CnSuzuya As ADODB.Connection Dim CommBar As ADODB.Command Dim rsbar As ADODB.Recordset Dim StrSql As String Dim psn As Byte Private Sub Form_Load()

More information

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result.

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Simple Calculator In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Let s get started First create a new Visual Basic

More information

DAFTAR PUSTAKA. Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England

DAFTAR PUSTAKA. Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England DAFTAR PUSTAKA Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England Elib.unikom.ac.id, SQL Server, 27 April 2014. Jogiyanto. 2005. Analisis & Desain Sistem Informasi : Pendekatan

More information

LISTING PROGRAM. frmmenu.vb. frmlogin.vb. Universitas Sumatera Utara. Public Class frmmenu

LISTING PROGRAM. frmmenu.vb. frmlogin.vb. Universitas Sumatera Utara. Public Class frmmenu LISTING PROGRAM frmmenu.vb Public Class frmmenu Private Sub QuitToolStripMenuItem_Click(ByVal sender As QuitToolStripMenuItem.Click Close() Private Sub OtoritasToolStripMenuItem_Click(ByVal sender As OtoritasToolStripMenuItem.Click

More information

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM LAMPIRAN A : LISTING PROGRAM 1. Form Utama (Cover) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;

More information

'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid("8b a5-46bb-a6a9-87b4949d1f4c")>

'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid(8b a5-46bb-a6a9-87b4949d1f4c)> LAMPIRAN A : LISTING PROGRAM Imports System Imports System.Reflection Imports System.Runtime.InteropServices ' General Information about an assembly is controlled through the following ' set of attributes.

More information

Lampiran 1 Kode Program

Lampiran 1 Kode Program 53 Lampiran 1 Kode Program Kode Program 1 Kode Menu Peminjaman Private Sub BT_Cari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Cari.Click Call CariKaset() Private Sub RB_CheckedChanged(ByVal

More information

ภาคผนวก ก. Source Code

ภาคผนวก ก. Source Code ภาคผนวก ภาคผนวก ก. Source Code 154 155 Source Code ช อ Empbook Option Explicit On Option Strict On Imports System.data Imports System.Data.OleDb Public Class Empbook Dim Book_status As Integer = 1 'ęğŀşľłŀăăő

More information

A-1 LISTING PROGRAM. Halaman Koneksi. Universitas Sumatera Utara

A-1 LISTING PROGRAM. Halaman Koneksi. Universitas Sumatera Utara A-1 LISTING PROGRAM Halaman Koneksi Imports System.Data.OleDb Imports System.Data.OleDb.OleDbCommand Module koneksi Public con As OleDbConnection Public cmd As OleDbCommand Public dtr As OleDbDataReader

More information

Unit 4 Advanced Features of VB.Net

Unit 4 Advanced Features of VB.Net Dialog Boxes There are many built-in dialog boxes to be used in Windows forms for various tasks like opening and saving files, printing a page, providing choices for colors, fonts, page setup, etc., to

More information

Form Connection. Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel

Form Connection. Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel Form Connection Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel Public Class connection '------------------------------------------------ Dim myport As Array

More information

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources This application demonstrates how a DataGridView control can be

More information

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants These notes are available on the IMS1906 Web site http://www.sims.monash.edu.au Tutorial Sheet 4/Week 5 Please

More information

LAMPIRAN A: Listing Program

LAMPIRAN A: Listing Program 67 1. Form Menu Utama LAMPIRAN A: Listing Program Public Class MScreen Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Hide() Form1.Show()

More information

DAFTAR PUSTAKA. Munawar, Pemodelan Visual dengan UML edl. Graha Ilmu : Jakarta.

DAFTAR PUSTAKA. Munawar, Pemodelan Visual dengan UML edl. Graha Ilmu : Jakarta. DAFTAR PUSTAKA Munawar, 2005. Pemodelan Visual dengan UML edl. Graha Ilmu : Jakarta. Docherty, Mike O. Object Oriented Analysis & Desain Understanding System. 2005 ed. Development With UML 2 0 Ambler,

More information

LISTING PROGRAM. 1. Form Login. Private Sub BATAL_Click() End End Sub

LISTING PROGRAM. 1. Form Login. Private Sub BATAL_Click() End End Sub LISTING PROGRAM 1. Form Login Private Sub BATAL_Click() End Sub Bersih() USERNAME.Text = "" PASSWORD.Text = "" Private Sub Form_Load() Bersih Private Sub OK_Click() Sql = "select*from tbl_login where username='"

More information

CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS 15 Introduction to Business Programming. Programming Assignment 3 (P3)

CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS 15 Introduction to Business Programming. Programming Assignment 3 (P3) CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration MIS 15 Introduction to Business Programming Programming Assignment 3 (P3) Points: 50 Due Date: Tuesday, May 10 The purpose of

More information

Revision for Final Examination (Second Semester) Grade 9

Revision for Final Examination (Second Semester) Grade 9 Revision for Final Examination (Second Semester) Grade 9 Name: Date: Part 1: Answer the questions given below based on your knowledge about Visual Basic 2008: Question 1 What is the benefit of using Visual

More information

Learning VB.Net. Tutorial 10 Collections

Learning VB.Net. Tutorial 10 Collections Learning VB.Net Tutorial 10 Collections Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it.

More information

LISTING PROGRAM. Form Splash

LISTING PROGRAM. Form Splash LISTING PROGRAM Form Splash Private Sub Form_Load() lblversion.caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision lblproductname.caption = App.Title lblcopyright.caption = App.LegalCopyright

More information

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date :

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : Form Adapter Example DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 Form_Adapter.doc DRAFT page 1 Table of Contents Creating Form_Adapter.vb... 2 Adding the

More information

Software for Auto-Generating Electrode Block Order Sheet: Study Case in Mold Machining Workshop

Software for Auto-Generating Electrode Block Order Sheet: Study Case in Mold Machining Workshop Journal of Mechanical Engineering and Mechatronics Submitted : 2016-10-03 ISSN: 2527-6212, Vol. 1 No. 2, pp. 106-117 Accepted : 2016-10-07 2016 Pres Univ Press Publication, Indonesia Software for Auto-Generating

More information

Learning VB.Net. Tutorial 19 Classes and Inheritance

Learning VB.Net. Tutorial 19 Classes and Inheritance Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you

More information

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM LAMPIRAN A : LISTING PROGRAM 1. frmmenu.frm Dim CN As Connection Dim rshapus As Recordset Private Sub DfaHasil_Click() Call frmlap.cetak Private Sub Form_Load() Set CN = New ADODB.Connection CN.ConnectionString

More information

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara A-1 LISTING PROGRAM mainform.vb Imports System.IO Public Class mainform Private Sub mainform_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load enkripsirb.checked = True

More information

Visual Basic: Opdracht Structuur

Visual Basic: Opdracht Structuur Visual Basic: Opdracht Structuur HoofdMenu.vb SubMenu_Kwadraat.vb Form1.vb Form2.vb Submenu_Som.vb Form3.vb Form4.vb SubMenu_Gem.vb Form5.vb Form6.vb Form10.vb SubMenu_Naam.vb Form7.vb Form11.vb Form8.vb

More information

C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions

C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions Between the comments included with the code and the code itself, you shouldn t have any problems understanding what

More information

超音波モータ制御プログラムの作成 (v1.2.1)

超音波モータ制御プログラムの作成 (v1.2.1) 超音波モータ制御プログラムの作成 (v1.2.1) 2008 年 11 月 28 日 Masaaki MATSUO 構成機器 モータ本体 : フコク ロータリーエンコーダー内蔵型超音波モータ USB-60E モータ制御部 : フコク 位置決制御ドライバ DCONT-3-60 (SD13) コントローラ : Interface 2 軸絶縁パルスモーションコントローラ ( 直線補間エンコーダ入力 5V)

More information

Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Public Class Cours Private nc As Integer Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO : cette ligne de code charge les données dans la table

More information

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara LAMPIRAN FORM 1 Private Sub Text2_KeyPress(KeyAscii As Integer) If KeyAscii = vbkeyreturn Then Set tbladministrator = New ADODB.Recordset With tbladministrator.open "SELECT * FROM Administrator WHERE userid

More information

LAMPIRAN. 1. Kode Program

LAMPIRAN. 1. Kode Program 1. Kode Program LAMPIRAN Kode Program 1. Kode program untuk Form Data Imports BusinessLib Public Class formdata #Region " Member " Dim _siswa As Siswa Dim _guru As Guru Dim _mapel As MataPelajaran Dim

More information

End Sub. Sub Kunci() Dim i As Integer For i = 0 To 4 Txtfield(i).Locked = True Next i grddatagrid.enabled = False End Sub

End Sub. Sub Kunci() Dim i As Integer For i = 0 To 4 Txtfield(i).Locked = True Next i grddatagrid.enabled = False End Sub Source Aplikasi Sistem Informasi Akademik GENERAL Dim db As Connection Dim WithEvents adoprimaryrs1 As Recordset Dim WithEvents adoprimaryrs2 As Recordset Dim WithEvents rscaridata As Recordset Dim cekid

More information

Computing Science Unit 1

Computing Science Unit 1 Computing Science Unit 1 Software Design and Development Programming Practical Tasks Business Information Technology and Enterprise Contents Input Validation Find Min Find Max Linear Search Count Occurrences

More information

Learning VB.Net. Tutorial 17 Classes

Learning VB.Net. Tutorial 17 Classes Learning VB.Net Tutorial 17 Classes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If

More information

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS Intended Learning Objectives Able to build a simple Visual Basic Application. 2 The Sub Statement Private Sub ControlName_eventName(ByVal sender As System.Object,

More information

Learning VB.Net. Tutorial 15 Structures

Learning VB.Net. Tutorial 15 Structures Learning VB.Net Tutorial 15 Structures Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it.

More information

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date :

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date : Connection Example Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 page 1 Table of Contents Connection Example... 2 Adding the Code... 2 Quick Watch myconnection...

More information

LAMPIRAN A. LISTING PROGRAM

LAMPIRAN A. LISTING PROGRAM 78 LAMPIRAN A. LISTING PROGRAM Form Login.vb Imports MySql Imports MySql.Data Imports MySql.Data.MySqlClient Public Class FormLogIn Private Sub BtnLoginClick(ByVal sender As System.Object, ByVal e As System.EventArgs)

More information

LISTING PROGRAM. 1. Menu Utama

LISTING PROGRAM. 1. Menu Utama LISTING PROGRAM 1. Menu Utama Option Explicit Dim rssms As Recordset Dim stopen As String * 1 Dim IDSms As Integer Dim rspesan As Recordset Dim Kode As String * 1 Dim rspaket As Recordset Dim NmPaket As

More information

ก Microsoft Visual Studio 2008

ก Microsoft Visual Studio 2008 ก 58 ก ก ก ก ก 58 59 ก Microsoft Visual Studio 2008 1. DVD ก MSVS2008 ก MSVS2008 ก ก MSVS2008 ก ก 180 DVD DVD ก MSVS2008 ก ก Install Visual Studio 2008 2. ก ก ก ก ก Next 3. ก ก Options Page ก Custom ก

More information

Panduan Menggunakan Autoresponder FreeAutobot.com

Panduan Menggunakan Autoresponder FreeAutobot.com Panduan Menggunakan Autoresponder FreeAutobot.com Dengan memperolehi e-book ini, anda mempunyai kebenaran untuk memberi secara percuma kepada pelanggan anda atau tawarkan sebagai bonus kepada pembelian

More information

Final Exam 7:00-10:00pm, April 14, 2008

Final Exam 7:00-10:00pm, April 14, 2008 Name:, (last) (first) Student Number: Section: Instructor: _P. Cribb_ L. Lowther_(circle) York University Faculty of Science and Engineering Department of Computer Science and Engineering Final Exam 7:00-10:00pm,

More information

Code: Week 13. Write a Program to perform Money Conversion. Public Class Form1

Code: Week 13. Write a Program to perform Money Conversion. Public Class Form1 Write a Program to perform Money Conversion. Week 13 Code: Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Dim a As Double a = TextBox1.Text If ComboBox1.SelectedItem

More information

Tutorial 5 Database. Adam Sek Keb Wira 12 A123 6 Amanah Tmn Mahkota

Tutorial 5 Database. Adam Sek Keb Wira 12 A123 6 Amanah Tmn Mahkota Task 1 Creating a database using Access 2010: Tutorial 5 Database 1. Using Microsoft Access create a database for; a. Name b. School c. Age d. Birth Cert No e. Year f. Address g. Date of birth 2. Type

More information

Interacting with External Applications

Interacting with External Applications Interacting with External Applications DLLs - dynamic linked libraries: Libraries of compiled procedures/functions that applications link to at run time DLL can be updated independently of apps using them

More information

Programming with Visual Studio Higher (v. 2013)

Programming with Visual Studio Higher (v. 2013) Programming with Visual Studio Higher (v. 2013) Contents/Requirements Checklist Multiple selection: using ifs & case While Loops Using arrays Filling arrays Displaying array contents Types of variables:

More information

REGISTRATION GUIDE MCIS CUSTOMER PORTAL. Page 1

REGISTRATION GUIDE MCIS CUSTOMER PORTAL. Page 1 REGISTRATION GUIDE MCIS CUSTOMER PORTAL Page 1 Customer Portal Registration Guide Go to www.mcis.my and click the Customer Portal tab Page 2 Customer Portal Registration Guide 1. The page shown below will

More information

A-1 LISTING PROGRAM. 1. Module1

A-1 LISTING PROGRAM. 1. Module1 A-1 LISTING PROGRAM 1. Module1 Imports System.Data.Odbc Imports System.Data Imports System.Data.SqlClient Imports MySql.Data.MySqlClient Module Module1 Public userid As String Public level As String Public

More information

S.2 Computer Literacy Question-Answer Book

S.2 Computer Literacy Question-Answer Book S.2 C.L. Half-yearly Examination (2012-13) 1 12-13 S.2 C.L. Question- Answer Book Hong Kong Taoist Association Tang Hin Memorial Secondary School 2012-2013 Half-yearly Examination S.2 Computer Literacy

More information

A Complete Tutorial for Beginners LIEW VOON KIONG

A Complete Tutorial for Beginners LIEW VOON KIONG I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been

More information

Code: Write a Program for perform Money Conversion. Public Class Form1

Code: Write a Program for perform Money Conversion. Public Class Form1 Write a Program for perform Money Conversion. Code: Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim a As Double a = TextBox1.Text

More information

Senior Software Engineering Project CSSP Project CEN April 5, Adam Cox Tass Oscar

Senior Software Engineering Project CSSP Project CEN April 5, Adam Cox Tass Oscar Senior Software Engineering Project CSSP Project CEN 4935 April 5, 2006 Adam Cox Tass Oscar 1. Introduction One of the ways in which social worker professionals and students evaluate their clients is with

More information

Serial-out Color Sensor. Overview. Features

Serial-out Color Sensor. Overview. Features Visit us @ www.thearyatechnologies.com Email: aryaprotech@gmail.com / info@thearyatechnologies.com Contact us@ 0253-2512131 Serial-out Color Sensor Overview Color sensor identifies primary colors (Red,

More information

PROGRAMMING ASSIGNMENT: MOVIE QUIZ

PROGRAMMING ASSIGNMENT: MOVIE QUIZ PROGRAMMING ASSIGNMENT: MOVIE QUIZ For this assignment you will be responsible for creating a Movie Quiz application that tests the user s of movies. Your program will require two arrays: one that stores

More information

Darshan Institute of Engineering & Technology for Diploma Studies

Darshan Institute of Engineering & Technology for Diploma Studies Dialog Box: There are many built-in dialog boxes to be used in Windows forms for various tasks like opening and saving files, printing a page, providing choices for colors, fonts, page setup, etc., to

More information

System Analysis and Design

System Analysis and Design System Analysis and Design LAB RECORD-INFS -280/L Information Systems Department University of Nizwa, Sultanate of Oman Table of Contents Task. No: Title Page Nos. Date 1) VB Text box and Message Button

More information

Unit 7. Lesson 7.1. Loop. For Next Statements. Introduction. Loop

Unit 7. Lesson 7.1. Loop. For Next Statements. Introduction. Loop Loop Unit 7 Loop Introduction So far we have seen that each instruction is executed once and once only. Some time we may require that a group of instructions be executed repeatedly, until some logical

More information

PANDUAN PENGGUNA (SUPPLIER) MAINTAIN CERTIFICATES/SUPPLIER DETAILS SUPPLIER RELATIONSHIP MANAGEMENT SUPPLY CHAIN MANAGEMENT SYSTEM (SCMS)

PANDUAN PENGGUNA (SUPPLIER) MAINTAIN CERTIFICATES/SUPPLIER DETAILS SUPPLIER RELATIONSHIP MANAGEMENT SUPPLY CHAIN MANAGEMENT SYSTEM (SCMS) PANDUAN PENGGUNA (SUPPLIER) MAINTAIN CERTIFICATES/SUPPLIER DETAILS SUPPLIER RELATIONSHIP MANAGEMENT SUPPLY CHAIN MANAGEMENT SYSTEM (SCMS) DISEDIAKAN OLEH: SUPPLY CHAIN MANAGEMENT (SCM) BAHAGIAN ICT PROCESS

More information

Déclaration du module

Déclaration du module Déclaration du module Imports System.IO Module ModuleStagiaires Public Structure Stagiaire Private m_code As Long Private m_nom As String Private m_prenom As String Public Property code() As Long Get Return

More information

LAMPIRAN. Private Sub FrmSkinDetect_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load IndikatorHandle(False) End Sub

LAMPIRAN. Private Sub FrmSkinDetect_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load IndikatorHandle(False) End Sub 92 LAMPIRAN List Program FDeteksiWajah.vb Imports System.ComponentModel Public Class FDeteksiWajah Private CGen As ClGeneral Dim CWajah As ClDeteksi Dim CShape As New ClShapeA Dim tprogress As Integer

More information

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals VARIABLES WHAT IS A VARIABLE? A variable is a storage location in the computer s memory, used for holding information while the program is running. The information that is stored in a variable may change,

More information

Learning VB.Net. Tutorial 16 Modules

Learning VB.Net. Tutorial 16 Modules Learning VB.Net Tutorial 16 Modules Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If

More information

VISUAL BASIC PROGRAMMING (44) Technical Task KEY. Regional 2013 TOTAL POINTS (485)

VISUAL BASIC PROGRAMMING (44) Technical Task KEY. Regional 2013 TOTAL POINTS (485) 5 Pages VISUAL BASIC PROGRAMMING (44) Technical Task KEY Regional 2013 TOTAL POINTS (485) Graders: Please double-check and verify all scores! Property of Business Professionals of America. May be reproduced

More information

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment.

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment. IT3101 -Rapid Application Development Second Year- First Semester Practical 01 Visual Basic.NET Environment. Main Area Menu bar Tool bar Run button Solution Explorer Toolbox Properties Window Q1) Creating

More information

Universitas Sumatera Utara

Universitas Sumatera Utara LAMPIRAN Listing Program FormUtama.vb Public Class FormUtama Dim uchome As UcHome Dim ucconnection As UcConnection Dim ucbook As UcBook Dim ucanggota As UcAnggota Dim ucpeminjaman As UcPeminjaman Dim ucpengembalian

More information

Herefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3)

Herefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3) Student: Candidate Number: Assessor: Len Shand Herefordshire College of Technology Centre 24150 Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3) Course: Unit: Title:

More information

Visitor Management System

Visitor Management System WWW.VALLINME.COM Visitor Management System Ver 1.0 Mohd Noor Azam 18-03-2015 [Type the abstract of the document here. The abstract is typically a short summary of the contents of the document. Type the

More information

DEVELOPING OBJECT ORIENTED APPLICATIONS

DEVELOPING OBJECT ORIENTED APPLICATIONS DEVELOPING OBJECT ORIENTED APPLICATIONS By now, everybody should be comfortable using form controls, their properties, along with methods and events of the form class. In this unit, we discuss creating

More information

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol Designing User Interface-2 Unit 3 Designing User Interface-2 Lesson 3.1-3 TreeView Control A TreeView control is designed to present a list in a hierarchical structure. It is similar to a directory listing.

More information

LAMPIRAN LISTING PROGRAM

LAMPIRAN LISTING PROGRAM LAMPIRAN LISTING PROGRAM Imports System Imports System.IO Imports System.Math Public Class frmutama Dim dicari As DirectoryInfo Dim flpath As String, srcpath As String Dim asnode As Double, dsnode As Double,

More information

Visual Basic 2008 The programming part

Visual Basic 2008 The programming part Visual Basic 2008 The programming part Code Computer applications are built by giving instructions to the computer. In programming, the instructions are called statements, and all of the statements that

More information

Ingegneria del Software T. Interfaccia utente

Ingegneria del Software T. Interfaccia utente Interfaccia utente Creating Windows Applications Typical windows-application design & development 1+ classes derived from System.Windows.Forms.Form Design UI with VisualStudio.NET Possible to do anything

More information

MATFOR In Visual Basic

MATFOR In Visual Basic Quick Start t t MATFOR In Visual Basic ANCAD INCORPORATED TEL: +886(2) 8923-5411 FAX: +886(2) 2928-9364 support@ancad.com www.ancad.com 2 MATFOR QUICK START Information in this instruction manual is subject

More information

1. Create your First VB.Net Program Hello World

1. Create your First VB.Net Program Hello World 1. Create your First VB.Net Program Hello World 1. Open Microsoft Visual Studio and start a new project by select File New Project. 2. Select Windows Forms Application and name it as HelloWorld. Copyright

More information

LAMPIRAN Lampiran Utama. a. Struktur Organisasi

LAMPIRAN Lampiran Utama. a. Struktur Organisasi LAMPIRAN 5.1. Lampiran Utama a. Struktur Organisasi b. Flowchart Prosedur Penggajian PT Timatex c. Coding List Class Koneksi package ta_552012010_aprilia; import java.sql.*; public class koneksi { private

More information

L A M P I R A N. Universitas Sumatera Utara

L A M P I R A N. Universitas Sumatera Utara L A M P I R A N A TAMPILAN PROGRAM 1. Form Login 2. Form Menu Utama 3. Form Entry Data Mahasiswa Baru 4. Form Kasir 5. Form Transaksi 6. Laporan cetak mahasiswa 6. Laporan cetak mahasiswa 7. Laporan cetak

More information

Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1

Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1 Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1 Dim checkcont As Integer = 0, foto = 0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

More information

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types Managing Data Unit 4 Managing Data Introduction Lesson 4.1 Data types We come across many types of information and data in our daily life. For example, we need to handle data such as name, address, money,

More information