Universitas Sumatera Utara

Size: px
Start display at page:

Download "Universitas Sumatera Utara"

Transcription

1

2

3

4

5 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 As UcPengembalian Public smsbackgroundprocess As SMSBackgroundProcess Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. smsbackgroundprocess = New SMSBackgroundProcess() smsbackgroundprocess.runsmsbackgroundprocess() Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load ucconnection = New UcConnection() ucconnection.dock = DockStyle.Fill ucconnection.location = New Point(0, 0) ucconnection.visible = True panelcontent.controls.add(ucconnection) ucbook = New UcBook() ucbook.dock = DockStyle.Fill ucbook.location = New Point(0, 0) ucbook.visible = True panelcontent.controls.add(ucbook) ucanggota = New UcAnggota() ucanggota.dock = DockStyle.Fill ucanggota.location = New Point(0, 0) ucanggota.visible = True panelcontent.controls.add(ucanggota) ucpeminjaman = New UcPeminjaman() ucpeminjaman.dock = DockStyle.Fill ucpeminjaman.location = New Point(0, 0) ucpeminjaman.visible = True panelcontent.controls.add(ucpeminjaman) ucpengembalian = New UcPengembalian() ucpengembalian.dock = DockStyle.Fill ucpengembalian.location = New Point(0, 0)

6 ucpengembalian.visible = True panelcontent.controls.add(ucpengembalian) RemoveUC() ucconnection.visible = True Private Sub RemoveUC() For Each item As Control In panelcontent.controls If item.gettype().basetype.fullname.equals("system.windows.forms.usercontrol") Then Dim uc As UserControl uc = CType(item, UserControl) uc.visible = False Next Private Sub tsbconnection_click(sender As System.Object, e As System.EventArgs) Handles tsbconnection.click If Not ucconnection.visible Then RemoveUC() ucconnection.visible = True Private Sub tsbhome_click(sender As System.Object, e As System.EventArgs) Handles tsbhome.click If Not uchome.visible Then RemoveUC() uchome.visible = True Private Sub tsbbuku_click(sender As System.Object, e As System.EventArgs) Handles tsbbuku.click If Not ucbook.visible Then RemoveUC() ucbook.visible = True ucbook.loaddata() Private Sub tsbanggota_click(sender As System.Object, e As System.EventArgs) Handles tsbanggota.click If Not ucanggota.visible Then RemoveUC() ucanggota.visible = True ucanggota.loaddata() Private Sub tsbpeminjaman_click(sender As System.Object, e As System.EventArgs) Handles tsbpeminjaman.click If Not ucpeminjaman.visible Then RemoveUC() ucpeminjaman.visible = True ucpeminjaman.loaddata()

7 Private Sub tsbpengembalian_click(sender As System.Object, e As System.EventArgs) Handles tsbpengembalian.click If Not ucpengembalian.visible Then RemoveUC() ucpengembalian.visible = True ucpengembalian.loaddata() Private Sub FormUtama_FormClosed(sender As System.Object, e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed If Not IsNothing(smsBackgroundProcess.port) Then smsbackgroundprocess.closeport() FrmAddAnggota.vb Public Class FrmAddAnggota Dim database As DatabaseEntities Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() Private Sub btnsave_click(sender As System.Object, e As System.EventArgs) Handles btnsave.click If txtnama.text = "" Then General.ErrorMessage("Nama tidak boleh kosong!") If txtnim.text = "" Then General.ErrorMessage("Nim tidak boleh kosong!") If cmbfakultas.selectedindex < 0 Then General.ErrorMessage("Silahkan pilih Fakultas Anda!") If cmbprodi.selectedindex < 0 Then General.ErrorMessage("Silahkan pilih Program Studi Anda!") If txttmplahir.text = "" Then General.ErrorMessage("Tempat lahir tidak boleh kosong!") If txtnohp.text = "" Then General.ErrorMessage("No hp tidak boleh kosong!")

8 Try Dim prodi As prodi = cmbprodi.selecteditem Dim anggota As anggota = New anggota() anggota.nama = txtnama.text anggota.nim = txtnim.text anggota.id_prodi = prodi.id_prodi anggota.tempat_lahir = txttmplahir.text anggota.tanggal_lahir = dtptanggallahir.value anggota.no_hp = txtnohp.text database.anggota.addobject(anggota) database.savechanges() Me.DialogResult = Windows.Forms.DialogResult.OK Catch ex As Exception General.ErrorMessage(ex.Message) End Try Private Sub btnbatal_click(sender As System.Object, e As System.EventArgs) Handles btnbatal.click Me.DialogResult = Windows.Forms.DialogResult.Cancel Private Sub FrmAddAnggota_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim fakultas = (From f In database.fakultas Select f).tolist() cmbfakultas.datasource = fakultas cmbfakultas.valuemember = "nama" Private Sub cmbfakultas_selectedvaluechanged(sender As System.Object, e As System.EventArgs) Handles cmbfakultas.selectedvaluechanged Dim selectedfakultas As fakultas = cmbfakultas.selecteditem Dim prodi = (From p In database.prodi Where p.id_fakultas = selectedfakultas.id_fakultas Select p).tolist() cmbprodi.datasource = prodi cmbprodi.valuemember = "nama" Private Sub txtnama_textchanged(sender As System.Object, e As System.EventArgs) Handles txtnama.textchanged FrmAddBook.vb Public Class FrmAddBook Dim database As DatabaseEntities

9 Private Sub FrmAddBook_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load database = New DatabaseEntities() Private Sub btnbatal_click(sender As System.Object, e As System.EventArgs) Handles btnbatal.click Me.DialogResult = Windows.Forms.DialogResult.Cancel Private Sub btnsave_click(sender As System.Object, e As System.EventArgs) Handles btnsave.click If txtisbn.text = "" Then General.ErrorMessage("ISBN buku tidak boleh kosong!") If txtcode.text = "" Then General.ErrorMessage("Kode buku tidak boleh kosong!") If txtjudul.text = "" Then General.ErrorMessage("Judul buku tidak boleh kosong!") If txtpengarang.text = "" Then General.ErrorMessage("Pengarang buku tidak boleh kosong!") If txtpenerbit.text = "" Then General.ErrorMessage("Penerbit buku tidak boleh kosong!") Then Dim jumlah As Integer If txtjumlah.text = "" Or Not Integer.TryParse(txtJumlah.Text, jumlah) General.ErrorMessage("Jumlah buku tidak valid!") For i As Integer = 1 To jumlah Dim book As buku = New buku() book.isbn = txtisbn.text book.code = txtcode.text.toupper() & i book.judul_buku = txtjudul.text book.pengarang = txtpengarang.text book.penerbit = txtpenerbit.text book.unit = i book.status = True database.addtobuku(book) Next database.savechanges() Me.DialogResult = Windows.Forms.DialogResult.OK

10 Private Sub txtisbn_textchanged(sender As System.Object, e As System.EventArgs) Handles txtisbn.textchanged FrmAddPeminjaman.vb Public Class FrmAddPeminjaman Dim database As DatabaseEntities Dim book As buku Dim anggota As anggota Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() Private Sub btnbatal_click(sender As System.Object, e As System.EventArgs) Handles btnbatal.click Me.DialogResult = Windows.Forms.DialogResult.Cancel Private Sub btnsave_click(sender As System.Object, e As System.EventArgs) Handles btnsave.click If IsNothing(book) Then General.ErrorMessage("Silihkan pilih buku yang akan dipinjam!") If IsNothing(anggota) Then General.ErrorMessage("Silahkan pilih anggota yang meminjam buku!") If book.status = False Then General.ErrorMessage("Buku tidak tersedia") Dim peminjaman As peminjaman = New peminjaman() peminjaman.code = txtcode.text peminjaman.tanggal = dtptanggal.value peminjaman.id_anggota = anggota.id_anggota peminjaman.id_buku = book.id_buku peminjaman.no_hp = txtanggotahp.text peminjaman.konfirmasi = False database.peminjaman.addobject(peminjaman) book.status = False database.objectstatemanager.changeobjectstate(book, EntityState.Modified) database.savechanges() Me.DialogResult = Windows.Forms.DialogResult.OK

11 Private Sub FrmAddPeminjaman_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim code As String = "P" & DateTime.Now.ToString("MM") Dim data = (From p In database.peminjaman Where p.code.tolower.startswith(code.tolower) Order By p.code Descending Select p).firstordefault() txtcode.text = code Private Sub pctsearchbuku_click(sender As System.Object, e As System.EventArgs) Handles pctsearchbuku.click Dim frmsearchbook As FrmSearchBook = New FrmSearchBook() Dim result As DialogResult = frmsearchbook.showdialog() If result = Windows.Forms.DialogResult.OK Then book = (From b In database.buku Where b.id_buku = frmsearchbook.book.id_buku Select b).firstordefault() txtbukujudul.text = book.judul_buku txtbukupengarang.text = book.pengarang() txtbukupenerbit.text = book.penerbit txtbukuunit.text = book.unit Private Sub pctsearchanggota_click(sender As System.Object, e As System.EventArgs) Handles pctsearchanggota.click Dim frmsearchanggota As FrmSearchAnggota = New FrmSearchAnggota() Dim result As DialogResult = frmsearchanggota.showdialog() If result = Windows.Forms.DialogResult.OK Then anggota = frmsearchanggota.anggota txtanggotanim.text = anggota.nim txtanggotanama.text = anggota.nama txtanggotafakultas.text = anggota.prodi.fakultas.nama txtanggotaprodi.text = anggota.prodi.nama txtanggotahp.text = anggota.no_hp Private Sub txtcode_textchanged(sender As System.Object, e As System.EventArgs) Handles txtcode.textchanged FrmEditAnggota.vb Public Class FrmEditAnggota Dim database As DatabaseEntities Dim IsEdit As Boolean Public anggota As anggota Public Sub New() ' This call is required by the designer. InitializeComponent()

12 ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() IsEdit = False anggota = New anggota() Private Sub FrmEditAnggota_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim fakultas = (From f In database.fakultas Select f).tolist() cmbfakultas.datasource = fakultas cmbfakultas.valuemember = "nama" Dim prodi = (From p In database.prodi Where p.id_fakultas = anggota.prodi.id_fakultas Select p).tolist() cmbprodi.datasource = prodi cmbprodi.valuemember = "nama" txtnama.text = anggota.nama txtnim.text = anggota.nim cmbfakultas.selectedvalue = anggota.prodi.fakultas.nama cmbprodi.selectedvalue = anggota.prodi.nama txttmplahir.text = anggota.tempat_lahir dtptanggallahir.value = anggota.tanggal_lahir txtnohp.text = anggota.no_hp txtnama.enabled = IsEdit txtnim.enabled = IsEdit cmbfakultas.enabled = IsEdit cmbprodi.enabled = IsEdit txttmplahir.enabled = IsEdit dtptanggallahir.enabled = IsEdit txtnohp.enabled = IsEdit btnsave.text = "&Edit" Private Sub btnbatal_click(sender As System.Object, e As System.EventArgs) Handles btnbatal.click Me.DialogResult = Windows.Forms.DialogResult.Cancel Private Sub btnsave_click(sender As System.Object, e As System.EventArgs) Handles btnsave.click If IsEdit Then If txtnama.text = "" Then General.ErrorMessage("Nama tidak boleh kosong!") If txtnim.text = "" Then General.ErrorMessage("Nim tidak boleh kosong!") If cmbfakultas.selectedindex < 0 Then

13 General.ErrorMessage("Silahkan pilih Fakultas Anda!") If cmbprodi.selectedindex < 0 Then General.ErrorMessage("Silahkan pilih Program Studi Anda!") If txttmplahir.text = "" Then General.ErrorMessage("Tempat lahir tidak boleh kosong!") If txtnohp.text = "" Then General.ErrorMessage("No hp tidak boleh kosong!") Dim prodi As prodi = cmbprodi.selecteditem Dim temp As anggota = (From a In database.anggota Where a.id_anggota = anggota.id_anggota Select a).first() temp.nama = txtnama.text temp.nim = txtnim.text temp.id_prodi = prodi.id_prodi temp.tempat_lahir = txttmplahir.text temp.tanggal_lahir = dtptanggallahir.value temp.no_hp = txtnohp.text If IsNothing(temp.EntityKey) Or temp.entitykey.istemporary Then database.anggota.addobject(temp) database.objectstatemanager.changeobjectstate(temp, EntityState.Modified) database.savechanges() Me.DialogResult = Windows.Forms.DialogResult.OK IsEdit = True txtnama.enabled = IsEdit txtnim.enabled = IsEdit cmbfakultas.enabled = IsEdit cmbprodi.enabled = IsEdit txttmplahir.enabled = IsEdit dtptanggallahir.enabled = IsEdit txtnohp.enabled = IsEdit btnsave.text = "&Simpan" Private Sub cmbfakultas_selectedindexchanged(sender As System.Object, e As System.EventArgs) Handles cmbfakultas.selectedindexchanged Dim selectedfakultas As fakultas = cmbfakultas.selecteditem Dim prodi = (From p In database.prodi Where p.id_fakultas = selectedfakultas.id_fakultas Select p).tolist()

14 cmbprodi.datasource = prodi Private Sub txtnama_textchanged(sender As System.Object, e As System.EventArgs) Handles txtnama.textchanged FrmEditBook.vb Public Class FrmEditBook Public book As buku Dim database As DatabaseEntities Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. book = New buku database = New DatabaseEntities() Private Sub FrmEditBook_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load txtisbn.text = book.isbn txtcode.text = book.code txtjudul.text = book.judul_buku txtpengarang.text = book.pengarang txtpenerbit.text = book.penerbit cmbstatus.selecteditem = IIf(book.status = True, "tersedia", "tidak tersedia") Private Sub btnsave_click(sender As System.Object, e As System.EventArgs) Handles btnsave.click If txtisbn.text = "" Then General.ErrorMessage("ISBN buku tidak boleh kosong!") If txtcode.text = "" Then General.ErrorMessage("Kode buku tidak boleh kosong!") If txtjudul.text = "" Then General.ErrorMessage("Judul buku tidak boleh kosong!") If txtpengarang.text = "" Then General.ErrorMessage("Pengarang buku tidak boleh kosong!") If txtpenerbit.text = "" Then General.ErrorMessage("Penerbit buku tidak boleh kosong!")

15 Dim buku As buku = (From b In database.buku Where b.id_buku = book.id_buku Select b).firstordefault() buku.isbn = txtisbn.text buku.code = txtcode.text.toupper() buku.judul_buku = txtjudul.text buku.pengarang = txtpengarang.text buku.penerbit = txtpenerbit.text buku.status = If(cmbStatus.Text.Equals("tersedia"), True, False) database.savechanges() Me.DialogResult = Windows.Forms.DialogResult.OK Private Sub btnbatal_click(sender As System.Object, e As System.EventArgs) Handles btnbatal.click Me.DialogResult = Windows.Forms.DialogResult.Cancel Private Sub txtisbn_textchanged(sender As System.Object, e As System.EventArgs) Handles txtisbn.textchanged FrmPengembalian.vb ublic Class FrmPengembalian Dim database As DatabaseEntities Dim peminjaman As peminjaman Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() Private Sub FrmPengembalian_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim listcode = (From p In database.peminjaman Where p.pengembalian.count = 0 Select p).tolist() cmbcode.datasource = listcode cmbcode.valuemember = "code" txttanggalpeminjaman.text = "" txtdenda.text = "" txtbukujudul.text = "" txtbukupengarang.text = "" txtbukupenerbit.text = "" txtbukuunit.text = ""

16 txtanggotanim.text = "" txtanggotanama.text = "" txtanggotafakultas.text = "" txtanggotaprodi.text = "" txtanggotahp.text = "" Private Sub cmbcode_selectedindexchanged(sender As System.Object, e As System.EventArgs) Handles cmbcode.selectedindexchanged If Not IsNothing(peminjaman) Then Dim settingtime As Integer = General.GetSetting("lama_peminjaman") Dim settingdenda As Decimal = General.GetSetting("denda_per_hari") Dim denda As Integer Dim datenow As DateTime = DateTime.Now Dim pdate As DateTime = DateTime.Parse(peminjaman.tanggal.ToString()).AddDays(1) Dim range As Integer = (datenow - pdate).totaldays If (range > settingtime) Then denda = (range - settingtime) * settingdenda denda = 0 txttanggalpeminjaman.text = pdate.toshortdatestring() txtdenda.text = denda txtbukujudul.text = peminjaman.buku.judul_buku txtbukupengarang.text = peminjaman.buku.pengarang txtbukupenerbit.text = peminjaman.buku.penerbit txtbukuunit.text = peminjaman.buku.unit txtanggotanim.text = peminjaman.anggota.nim txtanggotanama.text = peminjaman.anggota.nama txtanggotafakultas.text = peminjaman.anggota.prodi.fakultas.nama txtanggotaprodi.text = peminjaman.anggota.prodi.nama txtanggotahp.text = peminjaman.anggota.no_hp Private Sub btnbatal_click(sender As System.Object, e As System.EventArgs) Handles btnbatal.click Me.DialogResult = Windows.Forms.DialogResult.Cancel Private Sub btnsave_click(sender As System.Object, e As System.EventArgs) Handles btnsave.click If IsNothing(peminjaman) Then General.ErrorMessage("Silahkan pilih code peminjaman!") Dim book = (From b In database.buku Where b.id_buku = peminjaman.id_buku Select b).firstordefault()

17 book.status = True database.savechanges() Me.DialogResult = Windows.Forms.DialogResult.OK Private Sub pctsearchpeminjaman_click(sender As System.Object, e As System.EventArgs) Handles pctsearchpeminjaman.click Dim frmsearchpeminjaman As FrmSearchPeminjaman = New FrmSearchPeminjaman() Dim result As DialogResult = frmsearchpeminjaman.showdialog() If result = Windows.Forms.DialogResult.OK Then peminjaman = (From p In database.peminjaman Where p.id_peminjaman = frmsearchpeminjaman.peminjaman.id_peminjaman Select p).firstordefault() cmbcode.selecteditem = peminjaman FrmSearchAnggota.vb Public Class FrmSearchAnggota Dim database As DatabaseEntities Public anggota As anggota Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() anggota = New anggota() Private Sub LoadData() Dim search As String = txtcari.text Dim data If search = "" Then data = (From a In database.anggota Select id_anggota = a.id_anggota, nim = a.nim, nama = a.nama, fakultas = a.prodi.fakultas.nama, prodi = a.prodi.nama, tempat_lahir = a.tempat_lahir, tanggal_lahir = a.tanggal_lahir, no_hp = a.no_hp).tolist() data = (From a In database.anggota Where a.nama.tolower().contains(search.tolower()) Select id_anggota = a.id_anggota, nim = a.nim, nama = a.nama, fakultas = a.prodi.fakultas.nama, prodi = a.prodi.nama, tempat_lahir = a.tempat_lahir,

18 tanggal_lahir = a.tanggal_lahir, no_hp = a.no_hp).tolist() datagrid.datasource = data Private Sub btncancel_click(sender As System.Object, e As System.EventArgs) Handles btncancel.click Me.DialogResult = Windows.Forms.DialogResult.Cancel Private Sub BtnCari_Click(sender As System.Object, e As System.EventArgs) Handles BtnCari.Click LoadData() Private Sub FrmSearchAnggota_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load LoadData() Private Sub txtcari_textchanged(sender As System.Object, e As System.EventArgs) Handles txtcari.textchanged FrmSearchBook.vb Public Class FrmSearchBook Dim database As DatabaseEntities Public book As buku Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() book = New buku() LoadData() Private Sub LoadData() Dim search As String = txtcari.text Dim data If search = "" Then data = (From b In database.buku Select id_buku = b.id_buku, judul_buku = b.judul_buku, pengarang = b.pengarang, penerbit = b.penerbit, unit = b.unit, status = If(b.status = True, "tersedia", "tidak tersedia")).tolist() data = (From b In database.buku Where b.judul_buku.tolower().contains(search.tolower()) Or b.pengarang.tolower().contains(search.tolower()) Select id_buku = b.id_buku,

19 judul_buku = b.judul_buku, pengarang = b.pengarang, penerbit = b.penerbit, unit = b.unit, status = If(b.status = True, "tersedia", "tidak tersedia")).tolist() Private Sub BtnCari_Click(sender As System.Object, e As System.EventArgs) Handles BtnCari.Click LoadData() Private Sub btncancel_click(sender As System.Object, e As System.EventArgs) Handles btncancel.click Me.DialogResult = Windows.Forms.DialogResult.Cancel Private Sub txtcari_textchanged(sender As System.Object, e As System.EventArgs) Handles txtcari.textchanged FrmSearchPeminjaman.vb Public Class FrmSearchPeminjaman Dim database As DatabaseEntities Public peminjaman As peminjaman Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() peminjaman = New peminjaman() Public Sub LoadData() Dim search As String = txtcari.text Dim data If search = "" Then data = (From p In database.peminjaman Where p.pengembalian.count = 0 Select id_peminjaman = p.id_peminjaman, code = p.code, tanggal = p.tanggal, judul_buku = p.buku.judul_buku, pengarang = p.buku.pengarang, penerbit = p.buku.penerbit, nama = p.anggota.nama, nim = p.anggota.nim).tolist() data = (From p In database.peminjaman Where (p.code.tolower.contains(search.tolower()) Or p.anggota.nama.tolower.contains(search.tolower)) And p.pengembalian.count = 0 Select id_peminjaman = p.id_peminjaman, code = p.code,

20 tanggal = p.tanggal, judul_buku = p.buku.judul_buku, pengarang = p.buku.pengarang, penerbit = p.buku.penerbit, nama = p.anggota.nama, nim = p.anggota.nim).tolist() Private Sub BtnCari_Click(sender As System.Object, e As System.EventArgs) Handles BtnCari.Click LoadData() Private Sub FrmSearchPeminjaman_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load LoadData() Private Sub btncancel_click(sender As System.Object, e As System.EventArgs) Handles btncancel.click Me.DialogResult = Windows.Forms.DialogResult.Cancel Private Sub txtcari_textchanged(sender As System.Object, e As System.EventArgs) Handles txtcari.textchanged FrmSearchPeminjaman.vb Public Class FrmSearchPeminjaman Dim database As DatabaseEntities Public peminjaman As peminjaman Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() peminjaman = New peminjaman() Public Sub LoadData() Dim search As String = txtcari.text Dim data If search = "" Then data = (From p In database.peminjaman Where p.pengembalian.count = 0 Select id_peminjaman = p.id_peminjaman, code = p.code, tanggal = p.tanggal, judul_buku = p.buku.judul_buku, pengarang = p.buku.pengarang, penerbit = p.buku.penerbit, nama = p.anggota.nama, nim = p.anggota.nim).tolist()

21 data = (From p In database.peminjaman Where (p.code.tolower.contains(search.tolower()) Or p.anggota.nama.tolower.contains(search.tolower)) And p.pengembalian.count = 0 Select id_peminjaman = p.id_peminjaman, code = p.code, tanggal = p.tanggal, judul_buku = p.buku.judul_buku, pengarang = p.buku.pengarang, penerbit = p.buku.penerbit, nama = p.anggota.nama, nim = p.anggota.nim).tolist() Private Sub BtnCari_Click(sender As System.Object, e As System.EventArgs) Handles BtnCari.Click LoadData() Private Sub FrmSearchPeminjaman_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load LoadData() FrmUcAnggota.vb Public Class UcAnggota Dim database As DatabaseEntities Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() Public Sub LoadData() Dim search As String = txtcari.text Dim data If search = "" Then data = (From a In database.anggota Order By a.nim Ascending Select id_anggota = a.id_anggota, nim = a.nim, nama = a.nama, fakultas = a.prodi.fakultas.nama, prodi = a.prodi.nama, tempat_lahir = a.tempat_lahir, tanggal_lahir = a.tanggal_lahir, no_hp = a.no_hp).tolist() data = (From a In database.anggota Order By a.nim Ascending Where a.nama.tolower().contains(search.tolower()) Or a.nim.tolower().contains(search.tolower()) Select id_anggota = a.id_anggota, nim = a.nim, nama = a.nama,

22 fakultas = a.prodi.fakultas.nama, prodi = a.prodi.nama, tempat_lahir = a.tempat_lahir, tanggal_lahir = a.tanggal_lahir, no_hp = a.no_hp).tolist() datagrid.datasource = data Private Sub UcAnggota_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load LoadData() Private Sub btncari_click(sender As System.Object, e As System.EventArgs) Handles btncari.click LoadData() Private Sub btnadd_click(sender As System.Object, e As System.EventArgs) Handles btnadd.click Dim frmaddanggota As FrmAddAnggota = New FrmAddAnggota() Dim result As DialogResult = frmaddanggota.showdialog() If result = DialogResult.OK Then LoadData() Private Sub datagrid_cellcontentdoubleclick(sender As System.Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles datagrid.cellcontentdoubleclick Dim id_anggota As Integer = datagrid.rows(e.rowindex).cells(0).value Dim anggota As anggota = (From a In database.anggota Where a.id_anggota = id_anggota Select a).firstordefault() Dim frmeditanggota As FrmEditAnggota = New FrmEditAnggota() Dim result As DialogResult frmeditanggota.anggota = anggota result = frmeditanggota.showdialog() If result = DialogResult.OK Then LoadData() Private Sub btndelete_click(sender As System.Object, e As System.EventArgs) Handles btndelete.click Dim id As Integer = datagrid.rows(datagrid.selectedcells(0).rowindex).cells(0).value Dim name As String = datagrid.rows(datagrid.selectedcells(0).rowindex).cells(2).value Dim result As DialogResult = MessageBox.Show(String.Format("Apakah Anda ingin menghapus data anggota {0}", name), "Konfirmasi", MessageBoxButtons.YesNo, MessageBoxIcon.Information) If result = DialogResult.Yes Then Dim anggota = (From a In database.anggota Where a.id_anggota = id).firstordefault()

23 database.anggota.deleteobject(anggota) database.savechanges() LoadData() Private Sub txtcari_textchanged(sender As System.Object, e As System.EventArgs) Handles txtcari.textchanged FrmUcBook.vb Public Class UcBook Dim database As DatabaseEntities Private Sub UcBook_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load database = New DatabaseEntities() Public Sub LoadData() Dim search As String = txtcari.text Dim data If search = "" Then data = (From b In database.buku Order By b.judul_buku Ascending Select id_buku = b.id_buku, judul_buku = b.judul_buku, pengarang = b.pengarang, penerbit = b.penerbit, unit = b.unit, isbn = b.isbn, code = b.code, status = If(b.status = True, "tersedia", "tidak tersedia")).tolist() data = (From b In database.buku Order By b.judul_buku Ascending Where b.judul_buku.tolower().contains(search.tolower()) Or b.pengarang.tolower().contains(search.tolower()) Select id_buku = b.id_buku, judul_buku = b.judul_buku, pengarang = b.pengarang, penerbit = b.penerbit, unit = b.unit, isbn = b.isbn, code = b.code, status = If(b.status = True, "tersedia", "tidak tersedia")).tolist() datagrid.datasource = data Private Sub btnadd_click(sender As System.Object, e As System.EventArgs) Handles btnadd.click Dim frmaddbook = New FrmAddBook() Dim result As DialogResult

24 result = frmaddbook.showdialog() If result = DialogResult.OK Then LoadData() Private Sub datagrid_celldoubleclick(sender As System.Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles datagrid.celldoubleclick Dim frmedit As FrmEditBook = New FrmEditBook() Dim id_buku As Integer = datagrid.rows(e.rowindex).cells(0).value frmedit.book = (From b In database.buku Where b.id_buku = id_buku Select b).firstordefault() Dim result As DialogResult result = frmedit.showdialog() If result = DialogResult.OK Then LoadData() Private Sub btncari_click(sender As System.Object, e As System.EventArgs) Handles btncari.click LoadData() Private Sub txtcari_textchanged(sender As System.Object, e As System.EventArgs) Handles txtcari.textchanged FrmUcConnection.vb Imports System.IO.Ports Imports System.Management Public Class UcConnection Dim port As SerialPort Dim SMSGateway As SMSLib Dim formutama As FormUtama Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. SMSGateway = New SMSLib() formutama = New FormUtama() Private Sub UcConnection_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Try formutama = Me.Parent.Parent Next cmbport.valuemember = "Name"

25 Catch err As ManagementException MessageBox.Show("An error occurred while querying for WMI data: " & err.message) End Try port = formutama.smsbackgroundprocess.port rdbsim.checked = True formutama.smsbackgroundprocess.sim_storage = True Catch ex As Exception General.ErrorLog(ex.Message) End Try Private Sub rdbsim_checkedchanged(sender As System.Object, e As System.EventArgs) Handles rdbsim.checkedchanged formutama.smsbackgroundprocess.sim_storage = True Private Sub rdbdevice_checkedchanged(sender As System.Object, e As System.EventArgs) Handles rdbdevice.checkedchanged formutama.smsbackgroundprocess.sim_storage = False Private Sub btnconnect_click(sender As System.Object, e As System.EventArgs) Handles btnconnect.click Try If btnconnect.text.equals("connect") Then Me.port = formutama.smsbackgroundprocess.smslib.openport(port.port, baundrate, databits, readtimeout, writetimeout) cmbport.text If Not IsNothing(Me.port) Then formutama.statusbar.text = "Status : Connected to " + formutama.statusbar.text = "Status : Invalid port settings" formutama.smsbackgroundprocess.port = Me.port btnconnect.text = "Disconnect" gboportsetting.enabled = False formutama.smsbackgroundprocess.closeport() btnconnect.text = "Connect" gboportsetting.enabled = True Catch ex As Exception formutama.statusbar.text = "Status : " & ex.message End Try Private Sub cmbport_selectedindexchanged(sender As System.Object, e As System.EventArgs) Handles cmbport.selectedindexchanged Public Class PortName Property Name As String Property Port As String

26 FrmUcHome.vb Public Class UcHome Private Sub Label1_Click(sender As System.Object, e As System.EventArgs) Handles Label1.Click FrmUcPeminjaman.vb Public Class UcPeminjaman Dim database As DatabaseEntities Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() Private Sub UcPeminjaman_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Public Sub LoadData() Dim search As String = txtcari.text Dim data If search = "" Then data = (From p In database.peminjaman Where p.pengembalian.count = 0 Select id_peminjaman = p.id_peminjaman, code = p.code, tanggal = p.tanggal, judul_buku = p.buku.judul_buku, pengarang = p.buku.pengarang, penerbit = p.buku.penerbit, nama = p.anggota.nama, nim = p.anggota.nim).tolist() data = (From p In database.peminjaman Where p.code.tolower.contains(search.tolower()) Or p.anggota.nama.tolower.contains(search.tolower) And p.pengembalian.count = 0 Select id_peminjaman = p.id_peminjaman, code = p.code, tanggal = p.tanggal, judul_buku = p.buku.judul_buku, pengarang = p.buku.pengarang, penerbit = p.buku.penerbit, nama = p.anggota.nama, nim = p.anggota.nim).tolist() Private Sub btncari_click(sender As System.Object, e As System.EventArgs) Handles btncari.click

27 LoadData() Private Sub btnadd_click(sender As System.Object, e As System.EventArgs) Handles btnadd.click Dim frmaddpeminjaman As FrmAddPeminjaman = New FrmAddPeminjaman() Dim result As DialogResult = frmaddpeminjaman.showdialog() If result = DialogResult.OK Then LoadData() Private Sub txtcari_textchanged(sender As System.Object, e As System.EventArgs) Handles txtcari.textchanged FrmUcPengembalian.vb Public Class UcPengembalian Dim database As DatabaseEntities Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. database = New DatabaseEntities() Public Sub LoadData() Dim search As String = txtcari.text Dim data If search = "" Then data = (From p In database.pengembalian Select id_pengembalian = p.id_pengembalian, code = p.peminjaman.code, tanggal_peminjaman = p.peminjaman.tanggal, tanggal_pengembalian = p.tanggal, judul_buku = p.peminjaman.buku.judul_buku, pengarang = p.peminjaman.buku.pengarang, penerbit = p.peminjaman.buku.penerbit, nama = p.peminjaman.anggota.nama, nim = p.peminjaman.anggota.nim, denda = p.denda).tolist() data = (From p In database.pengembalian Where p.peminjaman.code.tolower.contains(search.tolower()) Or p.peminjaman.anggota.nama.tolower.contains(search.tolower) Select id_pengembalian = p.id_pengembalian, code = p.peminjaman.code, tanggal_peminjaman = p.peminjaman.tanggal, tanggal_pengembalian = p.tanggal, judul_buku = p.peminjaman.buku.judul_buku, pengarang = p.peminjaman.buku.pengarang, penerbit = p.peminjaman.buku.penerbit, nama = p.peminjaman.anggota.nama,

28 nim = p.peminjaman.anggota.nim, denda = p.denda).tolist() Private Sub btnadd_click(sender As System.Object, e As System.EventArgs) Handles btnadd.click Dim frmpengembalian As FrmPengembalian = New FrmPengembalian() Dim result As DialogResult = frmpengembalian.showdialog() If result = DialogResult.OK Then LoadData() Private Sub txtcari_textchanged(sender As System.Object, e As System.EventArgs) Handles txtcari.textchanged ShortMessage.vb Public Class ShortMessage Public Property Index As Integer Public Property Status As String Public Property Sender As String Public Property Alphabet As String Public Property Sent As String Public Property Message As String SMSBackgroundProcess.vb Imports System.IO.Ports Imports System.Text.RegularExpressions Imports System.Threading Public Class SMSBackgroundProcess Public port As SerialPort Public smslib As ATLib.SMSLib Public SIM_STORAGE As Boolean Dim database As DatabaseEntities Public Sub New() smslib = New ATLib.SMSLib() SIM_STORAGE = True database = New DatabaseEntities() Public Sub ClosePort() smslib.closeport(me.port) Public Function SendMultiPageSMS(sender As String, message As String) While message.length > 160 Dim part As String = message.substring(0, 160) message = message.substring(160) If Not smslib.sendmessage(me.port, sender, part) Then

29 False End While smslib.sendmessage(me.port, sender, message) End Function Public Sub RunSMSBackgroundProcess() Dim bgprocess = New Thread(New ThreadStart(AddressOf SMSGateway)) bgprocess.isbackground = True bgprocess.start() Public Sub SMSGateway() While True ConfirmationProcess() ReadSMS() Thread.Sleep(3000) End While Private Sub ConfirmationProcess() 'While True Try If Not IsNothing(Me.port) Then 'mengirim sms konfirmasi telah melakukan peminjaman buku smslib.log_file = "ConfirmationProcess_" General.LogActivity(smsLib.log_file, "Start Confirmation Process") Dim listpeminjaman As List(Of peminjaman) = (From p In database.peminjaman Where p.konfirmasi = False Select p).tolist() General.LogActivity(smsLib.log_file, String.Format("{0} data peminjaman ditemukan", listpeminjaman.count)) For Each item In listpeminjaman General.LogActivity(smsLib.log_file, String.Format("Receiver : {0}, NIM : {1}, No : {2}, Code Pemesanan : {3}", item.anggota.nama, item.anggota.nim, item.no_hp, item.code)) Dim tanggaltenggang As DateTime = DateTime.Parse(item.tanggal.ToString).AddDays(General.GetSetting("lama_peminjam an")) Dim message As String = String.Format("Terima kasih telah melakukan peminjaman. Kode peminjaman Anda {0}. Tenggang waktu peminjaman {1}", item.code, tanggaltenggang.toshortdatestring()) If smslib.sendmessage(me.port, item.no_hp, message) Then item.konfirmasi = True database.savechanges() General.LogActivity(smsLib.log_file, "Success") General.LogActivity(smsLib.log_file, "Failed") Next General.LogActivity(smsLib.log_file, "=================================") 'mengirimkan sms peringatan tenggang waktu

30 smslib.log_file = "RemainderProcess_" General.LogActivity(smsLib.log_file, "Start Reminder Process") listpeminjaman = (From p In database.peminjaman Where p.konfirmasi = True And p.pengembalian.count = 0 And p.denda = False Select p).tolist() General.LogActivity(smsLib.log_file, String.Format("{0} data peminjaman", listpeminjaman.count)) For Each item In listpeminjaman If Not (item.sent_date = DateTime.Now.Date) Or IsNothing(item.sent_date) Then General.LogActivity(smsLib.log_file, String.Format("code {0}, tanggal {1}", item.code, item.tanggal.tostring())) Dim currentdate As DateTime = DateTime.Now Dim settingtime As Integer = General.GetSetting("lama_peminjaman") Dim pdate As DateTime = DateTime.Parse(item.tanggal.ToString()).AddDays(1) Dim range As Integer = (currentdate - pdate).totaldays 'pengecekan waktu tenggang -1 If (settingtime - range) = 1 Then General.LogActivity(smsLib.log_file, String.Format("Receiver : {0}, NIM : {1}, No : {2}, Code Pemesanan : {3}", item.anggota.nama, item.anggota.nim, item.no_hp, item.code)) Dim message As String = String.Format("Masa peminjaman Anda dengan kode {0}," & "judul {1}, akan berakhir pada tanggal {2}. " & "Silahkan lakukan pengembalian buku.", item.code, item.buku.judul_buku, pdate.adddays(settingtime - 1).ToShortDateString()) If SendMultiPageSMS(item.no_hp, message) Then item.sent_date = Date.Now database.savechanges() General.LogActivity(smsLib.log_file, "Success") General.LogActivity(smsLib.log_file, "Failed") 'pengecekan waktu tenggang pada hari ini If (range - settingtime) = 0 Then General.LogActivity(smsLib.log_file, String.Format("Receiver : {0}, NIM : {1}, No : {2}, Code Pemesanan : {3}", item.anggota.nama, item.anggota.nim, item.no_hp, item.code)) Dim message As String = String.Format("Masa peminjaman Anda dengan kode {0}," & "judul {1}, akan berakhir pada hari ini {2}. " & "Silahkan lakukan pengembalian buku.", item.code, item.buku.judul_buku, currentdate.toshortdatestring())

31 If SendMultiPageSMS(item.no_hp, message) Then item.sent_date = Date.Now database.savechanges() General.LogActivity(smsLib.log_file, "Success") General.LogActivity(smsLib.log_file, "Failed") 'pengecekan waktu tenggang telah habis dan dikenakan denda If (range - settingtime) > 0 Then Dim settingdenda As Decimal = General.GetSetting("denda_per_hari") Dim denda As Integer = (range - settingtime) * settingdenda {2}, Code Pemesanan : {3}", item.anggota.nim, item.no_hp, item.code)) General.LogActivity(smsLib.log_file, String.Format("Receiver : {0}, NIM : {1}, No : item.anggota.nama, Dim message As String = String.Format("Masa peminjaman Anda dengan kode {0}," & "judul {1}, telah berakhir pada tanggal {2}, dengan denda {3}. " & "Silahkan lakukan pengembalian buku.", item.code, item.buku.judul_buku, pdate.adddays(settingtime - 1).ToShortDateString(), denda) If SendMultiPageSMS(item.no_hp, message) Then item.sent_date = Date.Now item.denda = True database.savechanges() General.LogActivity(smsLib.log_file, "Success") General.LogActivity(smsLib.log_file, "Failed") database.refresh(objects.refreshmode.clientwins, item) Next General.LogActivity(smsLib.log_file, "=================================") Catch ex As Exception General.ErrorLog(ex.Message) End Try 'Thread.Sleep(2000) 'End While Private Sub ReadSMS() 'While True Dim messages As List(Of ATLib.ShortMessage) = Nothing Try If Not IsNothing(Me.port) Then smslib.log_file = "ReadSMS_"

32 General.LogActivity(smsLib.log_file, "Start Read SMS Process") Dim input As String = smslib.readsms(port, SIM_STORAGE) messages = ParseMessages(input) General.LogActivity(smsLib.log_file, String.Format("Diterima {0} sms.", messages.count)) If messages.count > 0 Then For Each msg In messages Dim cmd As Integer = 0 If ValidateSMS(msg, cmd) Then If cmd = CMD_DENDA Then General.LogActivity(smsLib.log_file, "REQUEST DENDA") Console.WriteLine("DENDA") Dim pesan As String() = msg.message.split(new Char() {" "c}) message : {1}", msg.message)) General.LogActivity(smsLib.log_file, String.Format("Sender : {0}, If pesan.length = 2 Then Dim code As String = pesan(1) msg.sender, database.peminjaman p.code.tolower().equals(code.tolower()) p).firstordefault() Dim peminjaman As peminjaman = (From p In Where Select If Not IsNothing(peminjaman) Then If peminjaman.pengembalian.count <= 0 Then Dim currentdate As DateTime = DateTime.Now Dim settingtime As Integer = General.GetSetting("lama_peminjaman") Dim pdate As DateTime = DateTime.Parse(peminjaman.tanggal.ToString()).AddDays(1) Dim range As Integer = (currentdate - pdate).totaldays General.LogActivity(smsLib.log_file, Tanggal : {1}", String.Format("Code : {0}, peminjaman.code, peminjaman.tanggal)) General.GetSetting("denda_per_hari") settingtime) * settingdenda If (range - settingtime) > 0 Then Dim settingdenda As Decimal = Dim denda As Integer = (range - Dim message As String = String.Format("Denda Anda untuk peminjaman {0} sebesar Rp. {1}", peminjaman.code, denda) General.LogActivity(smsLib.log_file,

33 {0}", message)) msg.sender, message) Then General.LogActivity(smsLib.log_file, "Success") String.Format("Message : If smslib.sendmessage(me.port, General.LogActivity(smsLib.log_file, "Failed") Dim message As String = String.Format("Peminjaman Anda belum melewati tenggang waktu. " & "Batas akhir pengembalian {0}", pdate.adddays(settingtime).toshortdatestring()) General.LogActivity(smsLib.log_file, {0}", message)) msg.sender, message) Then General.LogActivity(smsLib.log_file, "Success") String.Format("Message : If smslib.sendmessage(me.port, General.LogActivity(smsLib.log_file, "Failed") General.LogActivity(smsLib.log_file, String.Format("Kode {0} sudah di kembalikan", code)) smslib.sendmessage(port, msg.sender, "Pengembalian sudah dilakukan") General.LogActivity(smsLib.log_file, String.Format("Kode {0} tidak ditemukan", code)) smslib.sendmessage(port, msg.sender, "Code peminjaman tidak ditemukan") General.LogActivity(smsLib.log_file, String.Format("Format tidak benar. {0}", msg.message)) smslib.sendmessage(port, msg.sender, "Format SMS Anda salah. Format yang benar DENDA<spasi>KODE") Next General.LogActivity(smsLib.log_file, "=================================") Catch ex As Exception General.ErrorLog(ex.Message) End Try 'Thread.Sleep(2000) 'End While

34 Private Function ValidateSMS(message As ATLib.ShortMessage, ByRef cmdtype As Integer) Dim check As Boolean = False Dim pesan As String() = message.message.split(new Char() {" "c}) Dim cmd As String = pesan(0).toupper() If (cmd = "DENDA") Then check = True cmdtype = CMD_DENDA check End Function SMSLib.vb Imports System.IO.Ports Imports System.Threading Imports System.Text Public Class SMSLib Public receivenow As AutoResetEvent Public log_file As String Shared readnow As AutoResetEvent = New AutoResetEvent(False) Public Sub New() Me.log_file = "SMSLib_" Public Function OpenPort(portName As String, baudrate As Integer, databits As Integer, readtimeout As Integer, writetimeout As Integer) receivenow = New AutoResetEvent(True) Dim port As System.IO.Ports.SerialPort = New SerialPort() Try port.portname = portname port.baudrate = baudrate port.databits = databits port.readtimeout = readtimeout port.writetimeout = writetimeout port.stopbits = StopBits.One port.parity = Parity.None port.encoding = Encoding.GetEncoding("iso ") AddHandler port.datareceived, AddressOf port_datareceived port.open() port.dtrenable = True port.rtsenable = True Catch ex As Exception General.ErrorMessage(ex.Message) Throw ex End Try port End Function Public Sub port_datareceived(sender As Object, e As SerialDataReceivedEventArgs)

35 Try If e.eventtype = SerialData.Chars Then receivenow.set() Catch ex As Exception Throw ex End Try Public Function ReadResponse(port As SerialPort, timeout As Integer) Dim buffer As String = String.Empty Try Do If receivenow.waitone(timeout, False) Then Dim t As String = port.readexisting() buffer &= t If buffer.length > 0 Then Throw New ApplicationException("Response received is incomplete.") Throw New ApplicationException("No data received from phone.") Loop While (Not buffer.endswith("\r\nok\r\n") And Not buffer.endswith("\r\n> ") And Not buffer.endswith("\r\nerror\r\n")) Catch ex As Exception Throw ex End Try buffer End Function Public Function ExecCommand(port As SerialPort, command As String, responsetimeout As Integer, errormessage As String) Try port.discardoutbuffer() port.discardinbuffer() receivenow.reset() port.write(command & "\r") Dim input As String = ReadResponse(port, responsetimeout) If ((input.length = 0) Or Not (input.endswith("\r\nok\r\n") Or input.endswith("\r\n> "))) Then Throw New ApplicationException("No success message was received.") input Catch ex As Exception Throw New ApplicationException(errorMessage, ex) End Try End Function Public Function SendMessage(port As SerialPort, PhoneNo As String, Message As String) Dim issend As Boolean = False Try General.LogActivity(Me.log_file, String.Format("Sending message")) Dim recieveddata As String = ExecCommand(port, "AT", 1000, "No phone connected")

36 recieveddata = ExecCommand(port, "AT+CMGF=1", 1000, "Failed to set message format.") Dim command As String = "AT+CMGS=\"" + PhoneNo + " \ "" recieveddata = ExecCommand(port, command, 1000, "Failed to accept phoneno") command = Message & Char.ConvertFromUtf32(26) & "\r" recieveddata = ExecCommand(port, command, 20000, "Failed to send message") If recieveddata.endswith("\r\nok\r\n") Then issend = True If recieveddata.contains("error") Then issend = False General.LogActivity(Me.log_file, String.Format("{0} {1} {2}", PhoneNo, Message, issend)) issend Catch ex As Exception General.LogActivity(Me.log_file, String.Format("{0} {1} {2} {3}", PhoneNo, Message, issend, ex.message)) Throw ex End Try End Function Public Function ReadSMS(port As SerialPort, sim_storage As Boolean) Try General.LogActivity(Me.log_file, "Read SMS") 'Check connection ExecCommand(port, "AT", 1000, "No phone connected") 'Use message format "Text mode" ExecCommand(port, "AT+CMGF=1", 1000, "Failed to set message format.") If sim_storage Then ExecCommand(port, "AT+CPMS=""SM""", 1000, "Failed to select message storage") ExecCommand(port, "AT+CPMS=""ME""", 1000, "Failed to select message storage") 'Read the messages Dim input As String = ExecCommand(port, "AT+CMGL=""REC UNREAD""", 5000, "Failed to read the messages.") input Catch ex As Exception General.LogActivity(Me.log_file, ex.message) Nothing End Try End Function Public Sub ClosePort(ByRef port As SerialPort) Try port.close() RemoveHandler port.datareceived, AddressOf port_datareceived port = Nothing Catch ex As Exception Throw ex End Try

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

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

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

LAMPIRAN. 1. Source Code Data Buku. using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.

LAMPIRAN. 1. Source Code Data Buku. using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System. 81 LAMPIRAN 1. Source Code Data Buku using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc;

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

Serial Ports and COM Ports

Serial Ports and COM Ports o serial port on your PC? No problem! To add a serial port, attach a USB/serial adapter to a USB port. This article focuses on the PC side of serial port communications. I ll show how to use Visual Basic.NET

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

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. 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

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

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

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

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

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

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

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

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

PANDUAN PENGGUNA (PENTADBIR SYSTEM/SYSTEM ADMINISTRATOR) (INFOTECH, BPPF DAN POLIS

PANDUAN PENGGUNA (PENTADBIR SYSTEM/SYSTEM ADMINISTRATOR) (INFOTECH, BPPF DAN POLIS Classroom Reservation User Manual (HEA) PANDUAN PENGGUNA (PENTADBIR SYSTEM/SYSTEM ADMINISTRATOR) (INFOTECH, BPPF DAN POLIS Table of Contents CLASSROOM RESERVATION MANAGEMENT SYSTEM - APLIKASI... 2 Apa

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

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

PANDUAN PENGGUNA (PENSYARAH)

PANDUAN PENGGUNA (PENSYARAH) Classroom Reservation User Manual (HEA) PANDUAN PENGGUNA (PENSYARAH) Table of Contents CLASSROOM RESERVATION MANAGEMENT SYSTEM - APLIKASI... 2 Apa itu CRMS?... 2 CRMS Feature Summary... 3 CRMS LOGIN...

More information

Pengenalan Sistem Maklumat Dalam Pendidikan

Pengenalan Sistem Maklumat Dalam Pendidikan Pengenalan Sistem Maklumat Dalam Pendidikan 1 RELATIONSHIP & QUERY DALAM MICROSOFT ACCESS Kandungan Definisi Relationship (Hubungan) Jenis Relationship Membina Relationship Definisi Query dan Fungsi Query

More information

PANDUAN PENGGUNA (SUPPLIER) e-purchase ORDER FOR SERVICES

PANDUAN PENGGUNA (SUPPLIER) e-purchase ORDER FOR SERVICES PANDUAN PENGGUNA (SUPPLIER) e-purchase ORDER FOR SERVICES SUPPLIER RELATIONSHIP MANAGEMENT SUPPLY CHAIN MANAGEMENT SYSTEM (SCMS) DISEDIAKAN OLEH: UNIT SUPPLY CHAIN MANAGEMENT (SCM) JABATAN SOURCING CONTROLLER

More information

How to Validate DataGridView Input

How to Validate DataGridView Input How to Validate DataGridView Input This example explains how to use DR.net to set validation criteria for a DataGridView control on a Visual Studio.NET form. Why You Should Use This To add extensible and

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

LAMPIRAN 1 PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN

LAMPIRAN 1 PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN LAMPIRAN 1 ANGKET PENELITIAN PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN Saya mengharapkan kesediaan Saudara untuk mengisi angket dalam rangka penelitian tetang

More information

GARIS PANDUAN PERMOHONAN IMBUHAN PENERBITAN JURNAL / PROSIDING / SITASI BERINDEKS SCOPUS

GARIS PANDUAN PERMOHONAN IMBUHAN PENERBITAN JURNAL / PROSIDING / SITASI BERINDEKS SCOPUS UTHM/ORICC/R&D/029/2016-Pind.1 LAMPIRAN 2 GARIS PANDUAN PERMOHONAN IMBUHAN PENERBITAN JURNAL / PROSIDING / SITASI BERINDEKS SCOPUS 1) Bayaran imbuhan penerbitan ini dimurnikan dengan mengambil kira SALAH

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

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

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

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

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

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

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

CSIS 1624 CLASS TEST 6

CSIS 1624 CLASS TEST 6 CSIS 1624 CLASS TEST 6 Instructions: Use visual studio 2012/2013 Make sure your work is saved correctly Submit your work as instructed by the demmies. This is an open-book test. You may consult the printed

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

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

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

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

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

UJIAN AKHIR SEMESTER TEKNIK INFORMATIKA SEKOLAH TINGGI TEKNOLOGI DUTA BANGSA

UJIAN AKHIR SEMESTER TEKNIK INFORMATIKA SEKOLAH TINGGI TEKNOLOGI DUTA BANGSA UJIAN AKHIR SEMESTER TEKNIK INFORMATIKA SEKOLAH TINGGI TEKNOLOGI DUTA BANGSA Dosen Pembimbing : Dedi W ST,. MM Nama : Elly Sunandy NIM : 13158279 Pemrograman Terstruktur Membuat program dengan Delphi 7

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 PROGRAM FLOWSTONE

LAMPIRAN A PROGRAM FLOWSTONE LAMPIRAN A PROGRAM FLOWSTONE A-1 Tampilan GUI pada FlowStone A-2 Program Tambahan yang Dibuat Untuk Membaca Frekuensi A-3 Program Tambahan yang Dibuat Untuk Menyimpan Data A-4 LAMPIRAN B PROGRAM VISUAL

More information

C16 Visual Basic Net Programming

C16 Visual Basic Net Programming C16 Visual Basic Net Programming Student ID Student Name Date - Module Tutor - 1 P a g e Report Contents Introduction... 2 Software Development Process... 3 Self Reflection... 6 References... 6 Appendices...

More information

IOS Plus Trade - Web Services Version 4 Walkthrough

IOS Plus Trade - Web Services Version 4 Walkthrough IOS Plus Trade - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IOS Plus Trade information The purpose of this walkthrough is to build the following Windows Forms Application that

More information

IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information

IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information The purpose of this walkthrough is to build the following Windows Forms Application that will

More information

Manual Pengguna. PCN Online Service Fulfillment System

Manual Pengguna. PCN Online Service Fulfillment System System 1 Subjek Muka Surat 1) CARTA ALIR SISTEM 2 2) PERMOHONAN OLEH AGENSI 3 3) PENGESAHAN PERMOHONAN OLEH MAMPU 8 4) LAMPIRAN 13 2 Carta alir sistem 3 PERMOHONAN OLEH AGENSI 4 Membuat permohonan baru

More information

LISTING PROGRAM. Source Code Tampilan Awal. Source Code Menu Utama

LISTING PROGRAM. Source Code Tampilan Awal. Source Code Menu Utama LISTING PROGRAM Source Code Tampilan Awal Private Sub cmdkeluar_click() MsgBox "Terima Kasih Telah Membuka Program Ini.", vbinformation, "Quick IP Ver 1.0" End Private Sub cmdmasuk_click() MenuUtama.Show

More information

Registration of Supplier (ROS) TM Supplier Registration Renewal via SUS Portal (Pembaharuan Pendaftaran Pembekal TM melalui SUS Portal)

Registration of Supplier (ROS) TM Supplier Registration Renewal via SUS Portal (Pembaharuan Pendaftaran Pembekal TM melalui SUS Portal) TM SUPPLIER REGISTRATION RENEWAL VIA SUPPLIER SELF-SERVICE (SUS) PORTAL USER GUIDE PEMBAHARUAN PENDAFTARAN PEMBEKAL TM MELALUI SUPPLIER SELF-SERVICE (SUS) PORTAL PANDUAN PENGGUNA Getting Started Step by

More information

How to work with data sources and datasets

How to work with data sources and datasets Chapter 14 How to work with data sources and datasets Objectives Applied Use a data source to get the data that an application requires. Use a DataGridView control to present the data that s retrieved

More information

MICROSOFT EXCEL. Membina Hamparan Elektronik Fungsi Hamparan Elektronik

MICROSOFT EXCEL. Membina Hamparan Elektronik Fungsi Hamparan Elektronik MICROSOFT EXCEL Membina Hamparan Elektronik Fungsi Hamparan Elektronik Microsoft Excel 2010 Kandungan Penggunaan Asas Excel Memformat Sel, Lembaran dan Buku Kerja (Work Book) Penggunaan Asas Excel Fail

More information

1. Akses untuk koperasi adalah melalui https://apponline.skm.gov.my/userlogin.aspx.

1. Akses untuk koperasi adalah melalui https://apponline.skm.gov.my/userlogin.aspx. Pengguna Koperasi 1. Akses untuk koperasi adalah melalui https://apponline.skm.gov.my/userlogin.aspx. Belum berdaftar 2. Sila masuk ID Pengguna dan Kata Laluan dengan betul. Sekiranya pengguna masih belum

More information

Santiago Canyon College Computer Science

Santiago Canyon College Computer Science P a g e 1 Santiago Canyon College Computer Science The.Net Threading Model Introduction The purpose of this paper is to introduce you to multi-threading in Visual Studio. Learning how to take advantage

More information

MapWindow Plug-in Development

MapWindow Plug-in Development MapWindow Plug-in Development Sample Project: Simple Path Analyzer Plug-in A step-by-step guide to creating a custom MapWindow Plug-in using the IPlugin interface by Allen Anselmo shade@turbonet.com Introduction

More information

LISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time.

LISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time. A1 LISTING PROGRAM 1. Module SkripsiUmri.py import sys, operator, codecs, time class Timer(object): def init (self): self.t1= time.time() def getelapsedltime(self): # gets total elapsed from class initialsation

More information

LAMPIRAN : LISTING PROGRAM

LAMPIRAN : LISTING PROGRAM LAMPIRAN : LISTING PROGRAM Kode Program Form Login Private Sub cbolevel_click() If cbolevel.text = "Pengguna" Then txtlogin.enabled = False txtpass.enabled = False txtlogin.visible = False txtpass.visible

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

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output General Date Your Company Name Tel: +44 1234 567 9898 Fax: +44 1234 545 9999 email: info@@company.com Microsoft Visual Studio C# Project Source Code Output Created using VScodePrint Macro Variables Substitution

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

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

A-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara

A-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara A-1 LISTING PROGRAM 1. Form1.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using IronPython.Hosting; using Microsoft.Scripting;

More information

Send to: MM Irfan Subakti CC to Muhammad Ryanda Nugraha M with the. IF184401_DAA(F)_MID_NRP_Name.

Send to: MM Irfan Subakti CC to Muhammad Ryanda Nugraha M with the. IF184401_DAA(F)_MID_NRP_Name. IF184401 Design & Analysis of Algorithms (F) Midterm Exam Starting date: 9 March 2019 Deadline: 16 March 2019, 23:59 WIB. Exam type: Open Send to: MM Irfan Subakti CC to Muhammad Ryanda

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

PENDAFTARAN KURSUS SEMESTER 1 (DEP/DEE) SESI DIS 2017

PENDAFTARAN KURSUS SEMESTER 1 (DEP/DEE) SESI DIS 2017 PENDAFTARAN SEMESTER (DEP/DEE) SESI DIS 07 - SEMASA Compulsory DUB0 Compulsory DUE0 Compulsory **DRB000 0 4 Common Core DUW0 5 Common Core DBM0 6 Common Core DBS0 7 Discipline Core DET0 8 Discipline Core

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

ISI KANDUNGAN. Tarikh akhir kemaskini: 9 November 2016 Hakcipta Pusat Komputer, UTeM ms 2

ISI KANDUNGAN. Tarikh akhir kemaskini: 9 November 2016 Hakcipta Pusat Komputer, UTeM ms 2 ISI KANDUNGAN UTeM RESEARCH INFORMATION SYSTEM... 3 Pengenalan... 4 Sub Modul Short Term Grant Application... 8 Sub Menu Application... 9 Sub Menu Personel Particulars... 14 Sub Menu List Of Previous Project...

More information

Welcome to the Future of Entertainment!

Welcome to the Future of Entertainment! Welcome to the Future of Entertainment! Quick Start Guide Panduan Ringkas Features/Ciri-ciri Info Banner Icons / Info Paparan Informasi Channel Type / Jenis Saluran Search / Cari To record / Series Link

More information

The New Brew-CQ Synchronous Sockets and Threading

The New Brew-CQ Synchronous Sockets and Threading The New Brew-CQ Synchronous Sockets and Threading Server Topology: The Brew-CQ server is an application written in the new.net compilers from Microsoft. The language of choice is Visual Basic. The purpose

More information

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM LAMPIRAN A : LISTING PROGRAM 1. Form Login Private Sub Siap() txtnama.enabled = True txtpswd.enabled = True Private Sub BlmSiap() txtnama.enabled = False txtpswd.enabled = False Private Sub Kosong() txtnama

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

CARA-CARA UNTUK MEMBUAT POSTER MELALUI PERISIAN PHOTOSHOP. Untuk membuat poster sediakan beberapa bahan seperti berikut:

CARA-CARA UNTUK MEMBUAT POSTER MELALUI PERISIAN PHOTOSHOP. Untuk membuat poster sediakan beberapa bahan seperti berikut: CARA-CARA UNTUK MEMBUAT POSTER MELALUI PERISIAN PHOTOSHOP Untuk membuat poster sediakan beberapa bahan seperti berikut: Pastikan anda telah memindahkan gambar-gambar yang di ambil ke dalam komputer Pastikan

More information

Exam sell. Higher Quality Better Service! Certified IT practice exam authority.

Exam sell. Higher Quality Better Service! Certified IT practice exam authority. Higher Quality Better Service! Exam sell Certified IT practice exam authority Accurate study guides, High passing rate! Exam Sell provides update free of charge in one year! http://www.examsell.com Exam

More information

14 December, Mikrotik V2 9 DAILY BOOKS # Kindle # 3TB3OLQRB7. 14 December, 2017 E-BOOK MIKROTIK V2 9. Document Filetype: PDF 259.

14 December, Mikrotik V2 9 DAILY BOOKS # Kindle # 3TB3OLQRB7. 14 December, 2017 E-BOOK MIKROTIK V2 9. Document Filetype: PDF 259. 14 December, 2017 E-BOOK MIKROTIK V2 9 Document Filetype: PDF 259.11 KB 0 E-BOOK MIKROTIK V2 9 Load balancing is implemented as equal cost multipath routing. Mikrotik also uses 24v 0.8A (19.2 watt) and

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

ภาคผนวก ก. 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

VB FUNCTIONS AND OPERATORS

VB FUNCTIONS AND OPERATORS VB FUNCTIONS AND OPERATORS In der to compute inputs from users and generate results, we need to use various mathematical operats. In Visual Basic, other than the addition (+) and subtraction (-), the symbols

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

Huw Talliss Data Structures and Variables. Variables

Huw Talliss Data Structures and Variables. Variables Data Structures and Variables Variables The Regex class represents a read-only regular expression. It also contains static methods that allow use of other regular expression classes without explicitly

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

PERU BAHAN PERKHIDMATAN KREDIT DAN PERBANKAN ARAHAN KERJA UNIT KOMPUTER. Tatacara Proses AGM03. BPKP/KJAK-104 Bilangan Semakan : 0 Tarikh :

PERU BAHAN PERKHIDMATAN KREDIT DAN PERBANKAN ARAHAN KERJA UNIT KOMPUTER. Tatacara Proses AGM03. BPKP/KJAK-104 Bilangan Semakan : 0 Tarikh : ARAHAN KERJA UNIT KOMPUTER Tatacara Proses AGM03 BPKP/KJAK-104 Bilangan Semakan : 0 Tarikh : 30.09.13 Disediakan oleh :- Disahkan oleh ;- Pengurus PERU BAHAN Ubahan Muka surat Tarikh Keterangan Diluluskan

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

M2U MANUAL PENGGUNA USER MANUAL M2UNHJ. 0 P a g e BAHAGIAN SIMPANAN DAN PENGELUARAN JABATAN KHIDMAT PENDEPOSIT DAN OPERASI LEMBAGA TABUNG HAJI

M2U MANUAL PENGGUNA USER MANUAL M2UNHJ. 0 P a g e BAHAGIAN SIMPANAN DAN PENGELUARAN JABATAN KHIDMAT PENDEPOSIT DAN OPERASI LEMBAGA TABUNG HAJI M2U MANUAL PENGGUNA USER MANUAL M2UNHJ 0 P a g e BAHAGIAN SIMPANAN DAN PENGELUARAN JABATAN KHIDMAT PENDEPOSIT DAN OPERASI LEMBAGA TABUNG HAJI KANDUNGAN (TABLE OF CONTENTS) BIL PERKARA HALAMAN 1 TERMA DAN

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

Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions

Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions 5-menus.htm; updated September 12, 2011 Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions Coverage: This chapter covers several important topics: (1) use of menus and context

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

JABATAN KIMIA Kategori Arahan Kerja

JABATAN KIMIA Kategori Arahan Kerja Mukasurat: 1 daripada 10 1. TUJUAN Tujuan prosedur ini ditubuhkan adalah untuk memberikan arahan yang jelas bagi langkah atau tatacara bagaimana menjalankan analisis sampel menggunakan peralatan JEOL NMR

More information

[PDF] PHP MYSQL SCHOOL MANAGEMENT SYSTEM

[PDF] PHP MYSQL SCHOOL MANAGEMENT SYSTEM 26 December, 2017 [PDF] PHP MYSQL SCHOOL MANAGEMENT SYSTEM Document Filetype: PDF 168.42 KB 0 [PDF] PHP MYSQL SCHOOL MANAGEMENT SYSTEM A Library Management System with PHP and MySQL ###Purpose of the Project

More information

PENDAFTARAN KURSUS SEMESTER 1 (DEP/DEE/DTK) SESI DIS 2018

PENDAFTARAN KURSUS SEMESTER 1 (DEP/DEE/DTK) SESI DIS 2018 PENDAFTARAN KURSUS SEMESTER (DEP/DEE/DTK) SESI DIS 08 KURSUS-KURSUS SEMASA KOD KURSUS Compulsory DUB0 Compulsory DUE0 Compulsory **DRB000 0 4 Common Core DUW0 5 Common Core DBM0 6 Common Core DBS0 7 Discipline

More information

belajar html5 158E7F2D743EA866244C3EE391F064DC Belajar Html5 1 / 6

belajar html5 158E7F2D743EA866244C3EE391F064DC Belajar Html5 1 / 6 Belajar Html5 1 / 6 2 / 6 3 / 6 Belajar Html5 HTML specifications HTML5.2 https://www.w3.org/tr/html52/ HTML5.1 2nd Edition https://www.w3.org/tr/html51/ HTML AAM https://www.w3.org/tr/html-aam-1.0/ W3C

More information

Registration of Supplier (ROS) TM Supplier Registration Renewal via SUS Portal (Pembaharuan Pendaftaran Pembekal TM melalui SUS Portal)

Registration of Supplier (ROS) TM Supplier Registration Renewal via SUS Portal (Pembaharuan Pendaftaran Pembekal TM melalui SUS Portal) TM SUPPLIER REGISTRATION RENEWAL VIA SUPPLIER SELF-SERVICE (SUS) PORTAL USER GUIDE PEMBAHARUAN PENDAFTARAN PEMBEKAL TM MELALUI SUPPLIER SELF-SERVICE (SUS) PORTAL PANDUAN PENGGUNA Getting Started Step by

More information

PENDAFTARAN KURSUS SEMESTER 1 (DEP/DEE/DTK) SESI JUN 2018

PENDAFTARAN KURSUS SEMESTER 1 (DEP/DEE/DTK) SESI JUN 2018 SEMESTER (DEP/DEE/DTK) SESI JUN 08 Compulsory DUB0 Compulsory DUE0 Compulsory **DRB000 0 4 Common Core DUW0 5 Common Core DBM0 6 Common Core DBS0 7 Discipline Core DET0 8 Discipline Core DET0 9 Discipline

More information

Semasa buku ini ditulis XAMPP mengandungi empat versi:

Semasa buku ini ditulis XAMPP mengandungi empat versi: Lab 1 PEMASANGAN PELAYAN WEB XAMPP 1.0 Pengenalan Di dalam topik ini kita akan menggunakan pelayan web yang berasaskan sumber terbuka XAMPP Windows 1.8.0. Kenapa Pelayan Web Xampp digunakan kerana bukannya

More information

Tutorial: Pengenalan kepada Virtools

Tutorial: Pengenalan kepada Virtools 1 Tutorial: Pengenalan kepada Virtools Virtools ialah aplikasi pembangunan visualisasi dan interaktiviti 3 dimensi. Aplikasi ini mengandungi beberapa modul: Modul pengarangan (Dev) Behavioral Engine Render

More information

Team project 2017 Dony Pratidana S. Hum Bima Agus Setyawan S. IIP

Team project 2017 Dony Pratidana S. Hum Bima Agus Setyawan S. IIP Hak cipta dan penggunaan kembali: Lisensi ini mengizinkan setiap orang untuk menggubah, memperbaiki, dan membuat ciptaan turunan bukan untuk kepentingan komersial, selama anda mencantumkan nama penulis

More information

Visual Basic/C# Programming (330)

Visual Basic/C# Programming (330) Page 1 of 12 Visual Basic/C# Programming (330) REGIONAL 2017 Production Portion: Program 1: Calendar Analysis (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores

More information

MANAGE COURSE RESOURCES LABEL TEXT PAGE URL BOOK FILE FOLDER IMS CONTENT PACKAGE

MANAGE COURSE RESOURCES LABEL TEXT PAGE URL BOOK FILE FOLDER IMS CONTENT PACKAGE MANAGE COURSE RESOURCES LABEL TEXT PAGE URL BOOK FILE FOLDER IMS CONTENT PACKAGE Edit summary Edit tajuk Ke kanan Ke atas/bawah NOTA: Klik untuk sembunyikan isi kandungan. Klik untuk padam/menghapus isi

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

The following are required to duplicate the process outlined in this document.

The following are required to duplicate the process outlined in this document. Technical Note ClientAce WPF Project Example 1. Introduction Traditional Windows forms are being replaced by Windows Presentation Foundation 1 (WPF) forms. WPF forms are fundamentally different and designed

More information

Lecture 10 OOP and VB.Net

Lecture 10 OOP and VB.Net Lecture 10 OOP and VB.Net Pillars of OOP Objects and Classes Encapsulation Inheritance Polymorphism Abstraction Classes A class is a template for an object. An object will have attributes and properties.

More information

Imports System.Data.SqlClient. Public Class Phonebook

Imports System.Data.SqlClient. Public Class Phonebook Imports System.Data.SqlClient Public Class Phonebook Dim vbdatabasedataset As New vbdatabasedataset() Dim PhonebookTableAdapter As New vbdatabasedatasettableadapters.phonebooktableadapter() Dim selection

More information