LAMPIRAN. 1. Kode Program
|
|
- Lucy Hunter
- 6 years ago
- Views:
Transcription
1 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 _kelas As Kelas Dim _ruang As Ruang Dim _ta As TahunAjaran #Region " Method " Private Sub FillCombo() Dim _list As ListKelas = ListKelas.Data For Each l As Kelas In _list KelasCB.Items.Add(l.NAMA_KELAS) Private Sub FillDGV() Dim _mylist As ListSiswa = ListSiswa.Data() SiswaDGV.DataSource = _mylist Dim _myteacherlist As ListGuru = ListGuru.Data() GuruDGV.DataSource = _myteacherlist Dim _mapellist As ListMapel = ListMapel.Data() MapelDGV.DataSource = _mapellist Dim _kelaslist As ListKelas = ListKelas.Data() KelasDGV.DataSource = _kelaslist Dim _ruanglist As ListRuang = ListRuang.Data() RuangDGV.DataSource = _ruanglist Dim _talist As ListTA = ListTA.Data() TADGV.DataSource = _talist Private Sub reset() NISTb.Text = "" namatb.text = "" TempatLahirTb.Text = "" TglLahirTb.Value = Date.Now AlamatTb.Text = "" LakiRb.Checked = False PuanRb.Checked = False AgamaCB.SelectedIndex = 0 anaknud.value = 1 TglMasukTb.Value = Date.Now KelasCB.SelectedIndex = 0 NamaORtuTB.Text = "" PekerjaanOrtuTb.Text = "" AlamatOrtuTb.Text = "" No_telpTb.Text = "" kodegurutb.text = "" NIPTb.Text = "" NamaGuruTb.Text = "" tempatlairgurutb.text = "" tgllahirgurutb.value = Date.Now 51
2 alamatgurutb.text = "" lakigururb.checked = False peregururb.checked = False AgamaGuruCb.SelectedIndex = 0 TelpGuruTb.Text = "" kodemapeltb.text = "" namamapeltb.text = "" kodekelastb.text = "" namakelastb.text = "" koderuangtb.text = "" namaruangtb.text = "" idtatb.text = "" tatb.text = "" tanud.value = 1 Private Sub DatabyNIS(ByVal nis As String) Dim _onedata As ListSiswa = ListSiswa.Data(nis) If Not _onedata Is Nothing Then SiswaDGV.DataSource = _onedata SearchTb.Text = "Cari Berdasarkan NIS" Throw ex End Private Sub EditSiswa() Dim d As Siswa = SiswaDGV.SelectedRows(0).DataBoundItem _siswa = Siswa.OneData(d.NIS) With _siswa NISTb.Text =.NIS namatb.text =.NAMA TempatLahirTb.Text =.TEMPAT_LAHIR TglLahirTb.Value =.TANGGAL_LAHIR AlamatTb.Text =.ALAMAT CekJenis(.JENIS_KELAMIN.Trim, SplitContainer2.Panel2) AgamaCB.Text =.AGAMA.Trim anaknud.value =.ANAK_KE TglMasukTb.Value =.TANGGAL_MASUK KelasCB.Text =.START_CLASS NamaORtuTB.Text =.NAMA_ORANG_TUA PekerjaanOrtuTb.Text =.PEKERJAAN AlamatOrtuTb.Text =.ALAMAT_ORANG_TUA No_telpTb.Text =.NO_TELEPON NISTb.ReadOnly = True Private Sub editguru() Dim g As Guru = GuruDGV.SelectedRows(0).DataBoundItem _guru = Guru.OneData(g.KODE_GURU) With _guru kodegurutb.text =.KODE_GURU NIPTb.Text =.NIP NamaGuruTb.Text =.NAMA tempatlairgurutb.text =.TEMPAT_LAHIR tgllahirgurutb.value =.TANGGAL_LAHIR alamatgurutb.text =.ALAMAT CekJenis(.JENIS_KELAMIN.Trim, SplitContainer3.Panel2) 52
3 AgamaGuruCb.Text =.AGAMA.Trim TelpGuruTb.Text =.NO_TELEPON kodegurutb.readonly = True Private Sub EditMapel() Dim m As MataPelajaran = MapelDGV.SelectedRows(0).DataBoundItem _mapel = MataPelajaran.OneData(m.KODE_MAPEL) With _mapel kodemapeltb.text =.KODE_MAPEL namamapeltb.text =.NAMA_MAPEL kodemapeltb.readonly = True Private Sub EditRuang() Dim r As Ruang = RuangDGV.SelectedRows(0).DataBoundItem _ruang = Ruang.OneData(r.KODE_RUANG) With _ruang koderuangtb.text =.KODE_RUANG namaruangtb.text =.NAMA_RUANG koderuangtb.readonly = True Private Sub EditKelas() Dim k As Kelas = KelasDGV.SelectedRows(0).DataBoundItem _kelas = Kelas.OneData(k.KODE_KELAS) With k kodekelastb.text =.KODE_KELAS namakelastb.text =.NAMA_KELAS kodekelastb.readonly = True Private Sub EditTA() Dim ta As TahunAjaran = TADGV.SelectedRows(0).DataBoundItem _ta = TahunAjaran.OneData(ta.KODE_TAHUN) With ta idtatb.text =.KODE_TAHUN tatb.text =.TAHUN_AJARAN tanud.value =.WAKTU_MAKS idtatb.readonly = True Private Sub CekJenis(ByVal _jenis As String, ByVal sender As System.Object) For Each c As Control In sender.controls If TypeOf c Is RadioButton Then If c.text = _jenis Then CType(c, RadioButton).Checked = True #Region " Event Handler " Private Sub formdata_load(byval sender As Object, ByVal e As System.EventArgs) Handles Me.Load 53
4 54 FillDGV() FillCombo() reset() Private Sub TambahSiswaBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TambahSiswaBt.Click If NISTb.ReadOnly = False Then _siswa = Siswa.NewObj With _siswa.nis = NISTb.Text.NAMA = namatb.text.tempat_lahir = TempatLahirTb.Text.TANGGAL_LAHIR = TglLahirTb.Value.ALAMAT = AlamatTb.Text If LakiRb.Checked Then.JENIS_KELAMIN = LakiRb.Text Else.JENIS_KELAMIN = PuanRb.Text.AGAMA = AgamaCB.Text.ANAK_KE = anaknud.value.tanggal_masuk = TglMasukTb.Value.START_CLASS = KelasCB.Text.NAMA_ORANG_TUA = NamaORtuTB.Text.PEKERJAAN = PekerjaanOrtuTb.Text.ALAMAT_ORANG_TUA = AlamatOrtuTb.Text.NO_TELEPON = No_telpTb.Text.STATUS_AKTIF = "1".KELAS_SEKARANG = KelasCB.Text.save() MessageBox.Show("Data Telah Tersimpan", "Informasi") reset() FillDGV() MsgBox(ex.Message) End Private Sub GuruBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GuruBt.Click If kodegurutb.readonly = False Then _guru = Guru.NewObj With _guru.kode_guru = kodegurutb.text.nip = NIPTb.Text.NAMA = NamaGuruTb.Text.TEMPAT_LAHIR = tempatlairgurutb.text.tanggal_lahir = tgllahirgurutb.value.alamat = alamatgurutb.text If lakigururb.checked Then.JENIS_KELAMIN = lakigururb.text Else.JENIS_KELAMIN = peregururb.text
5 55.AGAMA = AgamaGuruCb.Text.NO_TELEPON = TelpGuruTb.Text.save() MessageBox.Show("Data Telah Tersimpan", "Informasi") reset() FillDGV() MsgBox(ex.Message) End Private Sub MapelBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MapelBt.Click If kodemapeltb.readonly = False Then _mapel = MataPelajaran.NewObj With _mapel.kode_mapel = kodemapeltb.text.nama_mapel = namamapeltb.text.save() MessageBox.Show("Data Telah Tersimpan", "Informasi") reset() FillDGV() MsgBox(ex.Message) End Private Sub KelasBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KelasBt.Click If kodekelastb.readonly = False Then _kelas = Kelas.NewObj With _kelas.kode_kelas = kodekelastb.text.nama_kelas = namakelastb.text.save() MessageBox.Show("Data Telah Tersimpan", "Informasi") reset() FillDGV() MsgBox(ex.Message) End Private Sub RuangBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RuangBt.Click If koderuangtb.readonly = False Then _ruang = Ruang.NewObj With _ruang.kode_ruang = koderuangtb.text
6 .NAMA_RUANG = namaruangtb.text.save() MessageBox.Show("Data Telah Tersimpan", "Informasi") reset() FillDGV() MsgBox(ex.Message) End Private Sub tabt_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles tabt.click If idtatb.readonly = False Then _ta = TahunAjaran.NewObj With _ta.kode_tahun = idtatb.text.tahun_ajaran = tatb.text.waktu_maks = tanud.value.save() MessageBox.Show("Data Telah Tersimpan", "Informasi") reset() FillDGV() MsgBox(ex.Message) End Private Sub SearchTb_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles SearchTb.Enter SearchTb.Text = "" Private Sub SearchBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SearchBt.Click DatabyNIS(SearchTb.Text) Private Sub SearchTb_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles SearchTb.KeyPress If Not (IsNumeric(e.KeyChar) Or Asc(e.KeyChar) = 8 Or Asc(e.KeyChar) = 13) Then e.handled = True If Asc(e.KeyChar) = 13 Then DatabyNIS(SearchTb.Text) Private Sub AllBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AllBt.Click FillDGV() Private Sub NewBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewBt.Click reset() NISTb.Focus() NISTb.ReadOnly = False 56
7 Private Sub EditBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EditBt.Click If SiswaDGV.SelectedRows.Count > 0 Then EditSiswa() Else MessageBox.Show(My.Resources.EditRows, "Informasi") Private Sub SiswaDGV_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles SiswaDGV.CellDoubleClick EditSiswa() Private Sub GuruDGV_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles GuruDGV.CellDoubleClick editguru() Private Sub KelasDGV_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles KelasDGV.CellDoubleClick EditKelas() Private Sub MapelDGV_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles MapelDGV.CellDoubleClick EditMapel() Private Sub RuangDGV_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles RuangDGV.CellDoubleClick EditRuang() Private Sub TADGV_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles TADGV.CellDoubleClick EditTA() Private Sub CancelBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CancelBtGuru.Click, CancelBtSiswa.Click, CancelBtKelas.Click, CancelBtMapel.Click, CancelBtRuang.Click, CancelBtTA.Click reset() Private Sub numeriktb_keypress(byval sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles NISTb.KeyPress, TelpGuruTb.KeyPress, No_telpTb.KeyPress, SearchTb.KeyPress, NIPTb.KeyPress If Not IsNumeric(e.KeyChar) And Not Asc(e.KeyChar) = 8 Then e.handled = True Private Sub namatb_keypress(byval sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles namatb.keypress If IsNumeric(e.KeyChar) Then e.handled = True 57
8 58 End Class Kode Program 2. Kode program untuk Form Jadwal Imports BusinessLib Public Class FormJadwal #Region " Data Members " Dim _guru As Guru Dim _mapel As MataPelajaran Dim _kelas As Kelas Dim _ruang As Ruang Dim _ta As TahunAjaran Dim _jadwal As Jadwal Dim _nilai As Nilai Private kelas As String = "" Private tahunajaran As String = "" Private hari As String = "" Private jam As String = "" Private kodeguru As String = "" Private koderuang As String = "" Private kodemapel As String = "" Dim waktumaks As Integer = 0 Private _isnew As Boolean = False #Region " Event Handler " Private Sub FormJadwal_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Call FillController() Call renew() Private Sub NewBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewBt.Click _isnew = True MakeTemplateJadwal() Private Sub TambahBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TambahBt.Click kodeguru = GuruCB.Text.Substring(0, 3) kodemapel = MapelCB.Text.Substring(0, 3) koderuang = RuangCB.Text.Substring(0, 3) For Each col As DataGridViewColumn In JadwalDGV.Columns If col.name = KelasCB.Text Then For Each row As DataGridViewRow In JadwalDGV.Rows For i As Integer = 0 To row.cells.count - 1 If row.cells.item(i).value = HariCb.Text Then Dim max As Decimal = 1 Do While max <= JamNUD.Value If Not JadwalDGV.Item(col.Index, row.index + 1).Value = Nothing Then Dim count As Integer = 1 Do While Not JadwalDGV.Item(col.Index, row.index + count).value = Nothing count += 1 Loop
9 JadwalDGV.Item(col.Index, row.index + count).value = kodeguru & " - " & kodemapel & " - " & koderuang Else JadwalDGV.Item(col.Index, row.index + 1).Value = kodeguru & " - " & kodemapel & " - " & koderuang max += 1 Loop Private Sub KosongBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KosongBt.Click For Each col As DataGridViewColumn In JadwalDGV.Columns If col.name = KelasCB.Text Then For Each row As DataGridViewRow In JadwalDGV.Rows For i As Integer = 0 To row.cells.count - 1 If row.cells.item(i).value = HariCb.Text Then Dim max As Decimal = 1 Do While max <= JamNUD.Value If Not JadwalDGV.Item(col.Index, row.index + 1).Value = Nothing Then Dim count As Integer = 1 Do While Not JadwalDGV.Item(col.Index, row.index + count).value = Nothing count += 1 Loop JadwalDGV.Item(col.Index, row.index + count).value = " *** " Else JadwalDGV.Item(col.Index, row.index + 1).Value = " *** " max += 1 Loop Private Sub HapusBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles HapusBt.Click If JadwalDGV.SelectedCells.Count > 0 Then If Not JadwalDGV.SelectedCells.Item(0).ColumnIndex = 0 Then JadwalDGV.SelectedCells.Item(0).Value = "" Private Sub ShowBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShowBt.Click 59
10 60 _isnew = False _jadwal = Jadwal.Data MakeTemplateJadwal() tahunajaran = TACB.Text.Trim.Substring(0, 9) Dim _list As ListJadwal = ListJadwal.Data(tahunAjaran) For Each Data As Jadwal In _list For Each r As DataGridViewRow In JadwalDGV.Rows For i As Integer = 0 To r.cells.count - 1 With Data For Each hr As String In HariCb.Items If r.cells(i).value = hr Then hari = r.cells(i).value Exit For If hari =.HARI And r.cells(0).value =.JAM And JadwalDGV.Columns(r.Cells(i).ColumnIndex).Name.Trim =.KODE_KELAS Then r.cells(i).value =.KODE_GURU & " - " &.KODE_MAPEL & " - " &.KODE_RUANG Private Sub SaveBt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveBt.Click saveonerow() inserttonilai() #Region " Method " Private Sub FillController() Dim _listkelas As ListKelas = ListKelas.Data For Each l As Kelas In _listkelas KelasCB.Items.Add(l.NAMA_KELAS) JadwalDGV.Columns.Add(l.NAMA_KELAS, "Kelas " & l.nama_kelas) Dim _listguru As ListGuru = ListGuru.Data For Each l As Guru In _listguru GuruCB.Items.Add(l.KODE_GURU & " - " & l.nama) Dim _listruang As ListRuang = ListRuang.Data For Each l As Ruang In _listruang RuangCB.Items.Add(l.KODE_RUANG & " - " & l.nama_ruang) Dim _listmapel As ListMapel = ListMapel.Data For Each l As MataPelajaran In _listmapel MapelCB.Items.Add(l.KODE_MAPEL & " - " & l.nama_mapel) Dim _listta As ListTA = ListTA.Data For Each l As TahunAjaran In _listta
11 61 TACB.Items.Add(l.TAHUN_AJARAN & " (" & l.waktu_maks & " jam)") Private Sub renew() For Each c As Control In Me.Controls If TypeOf c Is ComboBox Then CType(c, ComboBox).SelectedIndex = 0 For i As Integer = 0 To TACB.Items.Count - 1 If TACB.Items(i).ToString.Contains(FormTahun.Tahun) Then TACB.SelectedIndex = i Private Sub saveonerow() tahunajaran = TACB.Text.Trim.Substring(0, 9) If Not _isnew Then _jadwal.clear() For Each r As DataGridViewRow In JadwalDGV.Rows For i As Integer = 0 To r.cells.count - 1 If r.cells(i).value = "" Then ElseIf r.cells(i).value.tostring.trim.length=15 Then Kelas = JadwalDGV.Columns(r.Cells(i).ColumnIndex).Name.Trim jam = JadwalDGV.Rows(r.Cells(i).RowIndex).Cells(0).Value kodeguru = r.cells(i).value.tostring.trim.substring(0, 3) kodemapel = r.cells(i).value.tostring.trim.substring(6, 3) koderuang = r.cells(i).value.tostring.trim.substring(12, 3) _jadwal = Jadwal.NewObj With _jadwal.hari = hari.jam = jam.kode_guru = kodeguru.kode_mapel = kodemapel.kode_ruang = koderuang.kode_kelas = kelas.kode_ta = tahunajaran.save() Else For Each item As String In HariCb.Items If item = r.cells(i).value Then hari = item MsgBox(" Data Telah Tersimpan ") Private Sub MakeTemplateJadwal() JadwalDGV.Rows.Clear() GuruCB.Enabled = True HariCb.Enabled = True MapelCB.Enabled = True
12 62 KelasCB.Enabled = True RuangCB.Enabled = True JamNUD.Enabled = True HapusBt.Enabled = True KosongBt.Enabled = True TambahBt.Enabled = True SaveBt.Enabled = True waktumaks = TACB.Text.Substring(12, 2).Trim For Each day As String In HariCb.Items Dim jam As Integer = 7 Me.JadwalDGV.Rows.Add(day) For i As Integer = 1 To waktumaks JadwalDGV.Rows.Add(jam & " - " & jam + 1) jam += 1 JamNUD.Maximum = waktumaks Private Sub inserttonilai() Nilai.deleteData(tahunAjaran) For Each item As String In KelasCB.Items Dim ds As New DataSet ds = Jadwal.FetchDataMapel(item.Trim, tahunajaran) If Not IsNothing(ds) Then For Each datanis As DataRow In ds.tables(0).rows For Each datamapel As DataRow In ds.tables(1).rows _nilai = Nilai.NewObj With _nilai.nis = datanis.item(0).trim.kode_mapel = datamapel.item(0).kode_tahun = tahunajaran.nilai = 0.save() End Class Kode Program 3. Kode program untuk Form Laporan Imports CrystalDecisions.CrystalReports.Engine Imports BusinessLib Public Class FormLaporan Private laporan As Laporan Private Sub FillReportNilaiPerKelas(ByVal kelas As String) Dim rpt As New ReportDocument rpt.load("d:\l A R A S\KULIAH\Proyek_ \FormCoba\NilaiPerKelas.rpt") rpt.setdatasource(nilai.nilaiperkelas(kelas)) CrystalReportViewer1.ReportSource = rpt
13 63 Private Sub FillReportJadwal(ByVal kelas As String, ByVal tahun As String) Dim rpt As New ReportDocument rpt.load("d:\l A R A S\KULIAH\Proyek_ \FormCoba\JadwalReport.rpt") laporan = New Laporan rpt.setdatasource(laporan.filldatajadwal(kelas, tahun)) CrystalReportViewer1.ReportSource = rpt Private Sub FillReportDataPribadiAllSiswa(ByVal tahun As String) Dim rpt As New ReportDocument rpt.load("d:\l A R A S\KULIAH\Proyek_ \FormCoba\DataSiswa.rpt") laporan = New Laporan rpt.setdatasource(laporan.siswa(tahun)) CrystalReportViewer1.ReportSource = rpt Private Sub FillReportSatuDataSiswa(ByVal nis As String, ByVal tahun As String) Dim rpt As New ReportDocument rpt.load("d:\l A R A S\KULIAH\Proyek_ \FormCoba\DataSiswa.rpt") laporan = New Laporan rpt.setdatasource(laporan.siswa(nis, tahun)) CrystalReportViewer1.ReportSource = rpt Private Sub FillReportDataSiswaPerKelas(ByVal kelas As String, ByVal tahun As String) Dim rpt As New ReportDocument rpt.load("d:\l A R A S\KULIAH\Proyek_ \FormCoba\DataSiswaPerKelas.rpt") laporan = New Laporan rpt.setdatasource(laporan.siswabyclass(kelas, tahun)) CrystalReportViewer1.ReportSource = rpt Private Sub FillReportNilaiPerSiswa(ByVal nis As String, ByVal tahun As String) Dim rpt As New ReportDocument rpt.load("d:\l A R A S\KULIAH\Proyek_ \FormCoba\NilaiPerSiswa.rpt") laporan = New Laporan rpt.setdatasource(laporan.getnilaipersiswa(nis, tahun)) CrystalReportViewer1.ReportSource = rpt Private Sub FormLaporan_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load FillCOmbo() Private Sub FillCOmbo() Dim _listkelas As ListKelas = ListKelas.Data For Each l As Kelas In _listkelas CbKelas.Items.Add(l.NAMA_KELAS.Trim) CbKelas.Tag = _listkelas CbKelas.SelectedIndex = 0
14 Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RbNilai.CheckedChanged, RbSiswa.CheckedChanged, RbJadwal.CheckedChanged If RbSiswa.Checked Then RbKelas.Enabled = True RbNIS.Enabled = True RbAll.Enabled = True ElseIf RbNilai.Checked Then RbAll.Enabled = False RbKelas.Enabled = True RbNIS.Enabled = True ElseIf RbJadwal.Checked Then RbNIS.Enabled = False RbKelas.Enabled = True RbAll.Enabled = False Private Sub BtShow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtShow.Click If RbSiswa.Checked And RbNIS.Checked Then FillReportSatuDataSiswa(NISTb.Text, FormTahun.Tahun) ElseIf RbSiswa.Checked And RbKelas.Checked Then FillReportDataSiswaPerKelas(CbKelas.Text.Trim, FormTahun.Tahun) ElseIf RbSiswa.Checked And RbAll.Checked Then FillReportDataPribadiAllSiswa(FormTahun.Tahun) ElseIf RbNilai.Checked And RbNIS.Checked Then FillReportNilaiPerSiswa(NISTb.Text.Trim, FormTahun.Tahun) ElseIf RbNilai.Checked And RbKelas.Checked Then Dim s As ListKelas = CbKelas.Tag Dim kode As String = "" For Each i As Kelas In s If i.nama_kelas.trim = CbKelas.Text.Trim Then kode = i.kode_kelas FillReportNilaiPerKelas(kode) ElseIf RbJadwal.Checked And RbKelas.Checked Then FillReportJadwal(CbKelas.Text.Trim, FormTahun.Tahun) ElseIf RbNIS.Checked Then Private Sub RbBy_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RbNIS.CheckedChanged, RbKelas.CheckedChanged, RbAll.CheckedChanged If RbKelas.Checked Then NISTb.Enabled = False CbKelas.Enabled = True ElseIf RbNIS.Checked Then Me.NISTb.Enabled = Tru NISTb.Focus() CbKelas.Enabled = False 64
15 65 ElseIf RbAll.Checked Then NISTb.Enabled = False CbKelas.Enabled = False End Class Kode Program 4. Kode program untuk Class Jadwal Imports DataAccessLib Public Class Jadwal #Region " Data Member " Private _kodejadwal As New Guid Private _kodeta As String = "" Private _kodekelas As String = "" Private _hari As String = "" Private _jam As String = "" Private _koderuang As String = "" Private _kodeguru As String = "" Private _KodeMapel As String = "" Private _isnew As Boolean = False #Region " Public Properties " Public Property KODE_JADWAL As Guid Return _kodejadwal End Set(ByVal value As Guid) _kodejadwal = value Public Property KODE_TA As String Return _kodeta.trim End _kodeta = value Public Property KODE_KELAS As String Return _kodekelas.trim End _kodekelas = value Public Property HARI As String Return _hari.trim End _hari = value Public Property JAM As String Return _jam.trim End
16 66 _jam = value Public Property KODE_RUANG As String Return _koderuang.trim End _koderuang = value Public Property KODE_GURU As String Return _kodeguru.trim End _kodeguru = value Public Property KODE_MAPEL As String Return _KodeMapel.Trim End _KodeMapel = value #Region " Constructor " Private Sub New() #Region " Shared Method " Public Shared Function NewObj() As Jadwal Dim _obj As Jadwal = CType(AksesJadwal.CreateNewObjectJadwal(Type(Jadwal)), Jadwal) _obj._isnew = True Return _obj Public Shared Function Data() As Jadwal Dim _obj As Jadwal = CType(AksesJadwal.CreateNewObjectJadwal(Type(Jadwal)), Jadwal) _obj._isnew = False Return _obj Public Shared Function FetchDataMapel(ByVal kelas As String, ByVal ta As String) As DataSet Dim ds As New DataSet ds = AksesJadwal.Mapel(kelas, ta) Return ds Private Shared Sub insertdata() AksesJadwal.add_DataJadwal(Type(Jadwal)) Private Shared Sub deletedata()
17 67 AksesJadwal.delete_Data_Jadwal(Type(Jadwal)) #Region " Instance Method " Public Sub save() If _isnew Then insertdata() Public Sub Clear() deletedata() End Class Kode Program 5. Kode program untuk Class SMS Imports System.IO.Ports Imports System.Text.RegularExpressions Public Class ClassSMS #Region " Data Member " Private Shared WithEvents myport As New SerialPort Private Shared rcvdata As String = "" Public Shared Function OpenPort(ByVal portname As String) As Boolean With myport.portname = portname.baudrate = 9600.Parity = Parity.None.DataBits = 8.StopBits = StopBits.One.Handshake = Handshake.None.RtsEnable = True.ReceivedBytesThreshold = 1.NewLine = vbcr.readtimeout = 1000.Open() Throw New Exception End If myport.isopen Then Return True Return False Public Shared Sub closeport() With myport.close() Public Shared Function SendSMS(ByVal destiny As String, ByVal message As String) As Boolean With myport.write("at" & vbcrlf) Threading.Thread.Sleep(1000)
18 68.Write("AT+CMGF=1" & vbcrlf) Threading.Thread.Sleep(1000).Write("AT+CMGS=" & Chr(34) & destiny & Chr(34) & vbcrlf).write(message & Chr(26)) Threading.Thread.Sleep(1000) Return True Return False End Private Shared Sub port_datareceived(byval sender As Object, ByVal e As SerialDataReceivedEventArgs) Handles myport.datareceived Dim datain As String = "" Dim numbytes As Integer = myport.bytestoread For i As Integer = 1 To numbytes datain &= Chr(myPort.ReadChar) Receive(dataIn) Private Shared Sub Receive(ByVal data As String) rcvdata &= data Public Shared Function readdata() As DataTable Dim dt As New DataTable With myport.write("at" & vbcrlf) Threading.Thread.Sleep(1000).Write("AT+CMGF=1" & vbcrlf) Threading.Thread.Sleep(1000).Write("AT+CPMS=""SM""" & vbcrlf).write("at+cmgl=""all""" & vbcrlf) Threading.Thread.Sleep(1000) dt = ReadMessage() Return dt Private Shared Function ReadMessage() As DataTable Dim dt As DataTable = MakeTable() Dim lineoftext As String Dim arraytext() As String lineoftext = rcvdata.tostring arraytext = Split(lineOfText, "+CMGL",, CompareMethod.Text) For i As Integer = 1 To UBound(arrayText) Dim input As String = arraytext(i) Dim result() As String Dim pattern As String = "(:) (,"") ("","")" result = Regex.Split(input, pattern) Dim mystring, position As String position = result(6).length - 2 mystring = result(6).remove(position, 2) Dim concat() As String concat = New String() {result(8) & result(9) & result(10) & result(11) & result(12).substring(0, 2)}
19 Dim oneline As String Dim partofmsg() As String oneline = arraytext(i) partofmsg = Split(oneLine, "+40",, CompareMethod.Text) Dim newrow As DataRow = dt.newrow With newrow.item(0) = mystring.item(1) = concat(0).item(2) = partofmsg(1) dt.rows.add(newrow) Throw New Exception End Return dt Private Shared Function MakeTable() As DataTable Dim _dt As New DataTable With _dt.columns.add("pengirim").columns.add("tanggal").columns.add("isi") Return _dt Public Shared Function deleteonedata(byval index As String) As Boolean With myport.write("at" & vbcrlf) Threading.Thread.Sleep(1000).Write("AT+CMGF=1" & vbcrlf) Threading.Thread.Sleep(1000).Write("AT+CPMS=""SM""" & vbcrlf) Threading.Thread.Sleep(1000).Write("AT+CMGD=" & index & ",0") Threading.Thread.Sleep(1000) If rcvdata.tostring.contains("error") Then Return False Else Return True End Return False Public Shared Function deletealldata() As Boolean With myport.write("at" & vbcrlf) Threading.Thread.Sleep(1000).Write("AT+CMGF=1" & vbcrlf) Threading.Thread.Sleep(1000).Write("AT+CPMS=""SM""" & vbcrlf) Threading.Thread.Sleep(1000) 69
20 70.Write("AT+CMGD=1,4") Threading.Thread.Sleep(1000) If rcvdata.tostring.contains("error") Then Return False Else Return True End Return False End Class Kode Program 6. Kode program untuk Class Siswa Imports DataAccessLib Public Class Siswa #Region " Data Member " Private _nis As String = "" Private _nama As String = "" Private _tempatlahir As String = "" Private _tanggallahir As Date = New Date(1994, 10, 18) Private _alamat As String = "" Private _jeniskelamin As String = "" Private _agama As String = "" Private _anakke As Integer = 0 Private _tanggalmasuk As Date = New Date(1994, 10, 18) Private _startclass As String = "" Private _namaortu As String = "" Private _pekerjaan As String = "" Private _alamatortu As String = "" Private _notelp As String = "" Private _statusaktif As String = "" Private _kelassekarang As String = "" Private _isnew As Boolean = False #Region " Public Properties " Public Property NIS As String Return _nis.trim End _nis = value Public Property NAMA As String Return _nama End _nama = value Public Property TEMPAT_LAHIR As String Return _tempatlahir End
21 _tempatlahir = value Public Property TANGGAL_LAHIR As Date Return _tanggallahir End Set(ByVal value As Date) _tanggallahir = value Public Property ALAMAT As String Return _alamat End _alamat = value Public Property JENIS_KELAMIN As String Return _jeniskelamin End _jeniskelamin = value Public Property AGAMA As String Return _agama End _agama = value Public Property ANAK_KE As Integer Return _anakke End Set(ByVal value As Integer) _anakke = value Public Property TANGGAL_MASUK As String Return _tanggalmasuk End _tanggalmasuk = value Public Property START_CLASS As String Return _startclass End _startclass = value 71
22 72 Public Property NAMA_ORANG_TUA As String Return _namaortu End _namaortu = value Public Property PEKERJAAN As String Return _pekerjaan End _pekerjaan = value Public Property ALAMAT_ORANG_TUA As String Return _alamatortu End _alamatortu = value Public Property NO_TELEPON As String Return _notelp End _notelp = value Public Property STATUS_AKTIF As String Return _statusaktif End _statusaktif = value Public Property KELAS_SEKARANG As String Return _kelassekarang End _kelassekarang = value #Region " Constructor " Private Sub New() #Region " Shared Method "
23 73 Public Shared Function NewObj() As Siswa Dim _obj As Siswa = CType(AksesSiswa.CreateNewObjectSiswa(Type(Siswa)), Siswa) _obj._isnew = True Return _obj Public Shared Function OneData(ByVal nis As String) As Siswa Dim _obj As Siswa = CType(AksesSiswa.OneDataSiswa(Type(Siswa), nis), Siswa) _obj._isnew = False Return _obj Private Shared Sub InsertData() AksesSiswa.add_DataSiswa(Type(Siswa)) Private Shared Sub UpdateData() AksesSiswa.edit_DataSiswa(Type(Siswa)) #Region " Instance Method " Public Sub save() If _isnew Then InsertData() Else UpdateData() End Class Kode Program 7. Kode program untuk Class AksesDataGuru Imports System.Data.SqlClient Imports System.Reflection Public Class AksesGuru #Region " Data Member " Private Shared _guru As Object #Region " Shared Method " #Region " Guru " Public Shared Function CreateNewObjectGuru(ByVal objtype As Type) As Object Dim _obj As Object = Activator.CreateInstance(objType, True) _guru = _obj Return _obj Public Shared Function DataGuru(ByVal ListType As Type, ByVal membertype As Type) As Object Dim _mylist As Object = Fetch_DataGuru(ListType, membertype) Return _mylist Public Shared Function DataGuru(ByVal objtype As Type, ByVal kodeguru As String) As Object Dim _mylist As Object = Fetch_OneDataGuru(objType, kodeguru) _guru = _mylist
24 Return _mylist Public Shared Sub add_dataguru(byval objtype As Type) Insert_DataGuru(objType) Public Shared Sub edit_dataguru(byval objtype As Type) Update_DataGuru(objType) #Region " Data Access " #Region " Guru " Private Shared Function Fetch_DataGuru(ByVal listtype As Type, ByVal membertype As Type) As Object Dim ListGuru As Object = Activator.CreateInstance(listType, True) Dim query As String = "SELECT * FROM Guru" Dim dr As SqlDataReader = Nothing Dim cn As New SqlConnection(utility.koneksi) Dim cm As New SqlCommand(query, cn) cn.open() dr = cm.executereader While dr.read Dim _ObjGuru As Object = Activator.CreateInstance(memberType, True) membertype.field("_kodeguru", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(0)) membertype.field("_nip", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(1)) membertype.field("_nama", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(2)) membertype.field("_tempatlahir", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(3)) membertype.field("_tanggallahir", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(4)) membertype.field("_alamat", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(5)) membertype.field("_jeniskelamin", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(6)) membertype.field("_agama", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(7)) membertype.field("_notelp", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(8)) ListGuru.add(_ObjGuru) End While Throw ex Finally dr.close() cn.close() 74
25 End Return ListGuru Private Shared Function Fetch_OneDataGuru(ByVal objtype As Type, ByVal kode As String) As Object Dim _ObjGuru As Object = Activator.CreateInstance(objType, True) Dim query As String = "SELECT * FROM Guru where kode_guru=@kode" Dim dr As SqlDataReader = Nothing Dim cn As New SqlConnection(utility.koneksi) Dim cm As New SqlCommand(query, cn) cm.parameters.addwithvalue("@kode", kode) cn.open() dr = cm.executereader If dr.read Then objtype.field("_kodeguru", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(0)) objtype.field("_nip", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(1)) objtype.field("_nama", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(2)) objtype.field("_tempatlahir", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(3)) objtype.field("_tanggallahir", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(4)) objtype.field("_alamat", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(5)) objtype.field("_jeniskelamin", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(6)) objtype.field("_agama", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(7)) objtype.field("_notelp", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(_ObjGuru, dr.item(8)) Throw ex Finally dr.close() cn.close() End Return _objguru Private Shared Sub Insert_DataGuru(ByVal objecttype As Type) Dim Guru As Object = Activator.CreateInstance(objectType, True) Dim cn As New SqlConnection(utility.koneksi) cn.open() Using cm As New SqlCommand("INSERT INTO Guru (kode_guru, NIP, Nama_Lengkap, TempatLahir, TanggalLahir, Alamat, JenisKelamin, Agama, No_Telp) " & _ 75
26 @jenkel, cn) objecttype.field("_kodeguru", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_nip", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_nama", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_tempatlahir", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_tanggallahir", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_alamat", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_jeniskelamin", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_agama", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_notelp", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) cm.executenonquery() End Using Throw ex Finally cn.close() End Private Shared Sub Update_DataGuru(ByVal objecttype As Type) Dim cn As New SqlConnection(utility.koneksi) cn.open() Using cm As New SqlCommand("UPDATE Guru SET WHERE cn) objecttype.field("_kodeguru", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_nip", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_nama", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_tempatlahir", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) 76
27 77 objecttype.field("_tanggallahir", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_alamat", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_jeniskelamin", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_agama", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) objecttype.field("_notelp", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_guru)) cm.executenonquery() End Using Throw ex Finally cn.close() End End Class Kode Program 8. Kode program untuk Class AksesDataSMS Imports System.Data.SqlClient Public Class AksesForSMS #Region " Data Member " #Region " Shared Method " Public Shared Function Numb(ByVal kelas As String) As DataTable Dim _dt As New DataTable _dt = NomorOrtuSiswa(kelas) Return _dt Public Shared Function Numb() As DataTable Dim _dt As New DataTable _dt = AllNomorOrtuSiswa() Return _dt #Region " Data Akses " Private Shared Function NomorOrtuSiswa(ByVal kelas As String) As DataTable Dim dt As New DataTable Dim cn As New SqlConnection(Utility.Koneksi) Dim query As String = "SELECT NIS, Nama, Nama_ortu, No_Telp FROM siswa WHERE Kelas_Sekarang=@kelas" cn.open() Using cm As New SqlCommand(query, cn) cm.parameters.addwithvalue("@kelas", kelas) dt.load(cm.executereader)
28 78 End Using Throw New Exception Finally cn.close() End Return dt Private Shared Function AllNomorOrtuSiswa() As DataTable Dim dt As New DataTable Dim cn As New SqlConnection(Utility.Koneksi) Dim query As String = "SELECT NIS, Nama, Nama_ortu, No_Telp FROM siswa" cn.open() Using cm As New SqlCommand(query, cn) dt.load(cm.executereader) End Using Throw New Exception Finally cn.close() End Return dt Private Sub InsertToOutbox(ByVal nopengumuman As String, ByVal nis As String, ByVal status_pesan As String) Using cn As New SqlConnection(Utility.Koneksi) Dim query As String = " INSERT INTO Pesan_Keluar (no_pengumuman, tanggal, nis, status_pesan) VALUES cn.open() Using cm As New SqlCommand(query, cn) cm.parameters.addwithvalue("@nopeng", nopengumuman) cm.parameters.addwithvalue("@nis", nis) cm.parameters.addwithvalue("@status", status_pesan) cm.executenonquery() End Using Throw New Exception Finally cn.close() End End Using Private Sub InsertToInbox(ByVal nis As String, ByVal isi As String, ByVal status As String) Using cn As New SqlConnection(Utility.Koneksi) Dim query As String = "INSERT INTO Pesan_masuk (tanggal, nis, isi, status_pesan) " & _ @status)" cn.open() Using cm As New SqlCommand(query, cn)
29 79 isi) nis) status) cm.executenonquery() End Using Throw New Exception Finally cn.close() End End Using Private Function getpengumuman(byval kelas As String, ByVal namakategori As String) As DataTable Dim dt As New DataTable Using cn As New SqlConnection(Utility.Koneksi) Dim query As String = "select isi from(pengumuman_kelas) where kode_kelas in " & _ " (select kode_kelas from Kelas where nama_kelas=@kelas)" & _ " and ID_kategori in (select id_kategori from Kategori_Pengumuman where Nama_Kategori=@nmKategori)" cn.open() Using cm As New SqlCommand(query, cn) cm.parameters.addwithvalue("@kelas", kelas) cm.parameters.addwithvalue("@nmkategori", namakategori) dt.load(cm.executereader) End Using Throw New Exception Finally cn.close() End End Using Return dt Private Function DataTerbaru(ByVal kelas As String) Dim dt As New DataTable Using cn As New SqlConnection(Utility.Koneksi) Dim query As String = "select isi from(pengumuman_kelas) where kode_kelas in " & _ " (select kode_kelas from Kelas where nama_kelas=@kelas)" & _ " and tanggal > getdate()-3" cn.open() Using cm As New SqlCommand(query, cn) cm.parameters.addwithvalue("@kelas", kelas) dt.load(cm.executereader) End Using Throw New Exception Finally cn.close()
30 80 End End Using Return dt End Class Kode Program 9. Kode program untuk Class IdentityData Imports System.Data.SqlClient Imports System.Reflection Public Class IdentityData #Region " Data Member " Private Shared _User As Object #Region " Shared Method " Public Shared Function CreateNew(ByVal objettype As Type) As Object Dim _object As Object = Activator.CreateInstance(objetType, True) _User = _object Return _object Public Shared Function Name(ByVal username As String) As DataTable Dim dt As New DataTable Using cn As New SqlConnection(Utility.Koneksi) cn.open() Using cm As New SqlCommand("Select NIP, Nama_Lengkap from Guru where kode_guru=@kd", cn) cm.parameters.addwithvalue("@kd", username) dt.load(cm.executereader) End Using Throw New Exception Finally cn.close() End End Using Return dt Public Shared Function UserRoles(ByVal username As String) As Object Dim ds As New DataSet Using cn As New SqlConnection(Utility.Koneksi) Using cm As New SqlCommand cm.connection = cn cm.commandtext = "SELECT * FROM Users u WHERE username & _ "SELECT DISTINCT *, u.username, r.rolename FROM UserRoles ur " & _ "INNER JOIN users u ON u.userid = ur.userid " & _ "INNER JOIN roles r ON r.roleid = ur.roleid " & _ "WHERE u.username cm.parameters.addwithvalue("@name", username)
31 81 Dim da As New SqlDataAdapter da.selectcommand = cm da.fill(ds) 'jika ds tidak terisi If ds.tables(0).rows.count = 0 Then Return Nothing End Using End End Using Return ds Public Shared Sub InsertUser(ByVal user As Type) Call Insert_Data(user) Public Shared Sub insertroles(byval roletype As Type) Call Insert_Roles(roleType) #Region " Data Access " Private Shared Sub Insert_Data(ByVal UserObj As Type) Dim cn As New SqlConnection(Utility.Koneksi) Dim cm As New SqlCommand("insert into Users(Username, password) cn) Dim user As Object = Activator.CreateInstance(UserObj, True) cm.parameters.addwithvalue("@uname", UserObj.Field("_username", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_User)) cm.parameters.addwithvalue("@pwd", UserObj.Field("_password", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_User)) cn.open() cm.executenonquery() Throw ex Finally cn.close() End Private Shared Sub Insert_Roles(ByVal RoleobjType As Type) Dim cn As New SqlConnection(Utility.Koneksi) Dim cm As New SqlCommand("insert into UserRoles(UserID,RoleID ) values ((select userid from Users where UserName=@uname),(select roleid from Roles where rolename=@rolename))", cn) Dim user As Object = Activator.CreateInstance(RoleobjType, True) cm.parameters.addwithvalue("@uname", RoleobjType.Field("_username", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_User)) cm.parameters.addwithvalue("@rolename", RoleobjType.Field("_rolename", BindingFlags.Instance Or BindingFlags.NonPublic).Value(_User))
32 cn.open() cm.executenonquery() Throw ex Finally cn.close() End End Class 82
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 informationDAFTAR 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 informationTo 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 informationLearning 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 informationImports 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 informationLAMPIRAN 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 informationRevision 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 informationC# winforms gridview
C# winforms gridview using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More informationLISTING 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ก 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 informationLISTING 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 informationDé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 informationC4.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 informationLISTING 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 informationPrivate 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 informationDO 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 informationMainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.
APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown
More informationLAMPIRAN. 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 informationLAMPIRAN 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 informationA-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 informationSQL Injection. SQL injection is a code injection technique that might destroy your database.
SQL Injection SQL injection is a code injection technique that might destroy your database. SQL injection is one of the most common web hacking techniques. SQL injection is the placement of malicious code
More informationภาคผนวก ก. 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 informationMCAD/MCSD Developing and Implementing Web Applications with Visual Basic.NET and Visual Studio.NET Training Guide: Exam
MCAD/MCSD Developing and Implementing Web Applications with Visual Basic.NET and Visual Studio.NET Training Guide: Exam 70-305 Copyright 2003 by Que Publishing International Standard Book Number: 0789728184
More informationLAMPIRAN 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 informationObjectives. 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 informationThis PDF was generated in real-time using DynamicPDF; Generator for.net.
TableReport.aspx 1 1 Imports System 2 Imports System.Data 3 Imports System.Data.SqlClient 4 5 Imports cete.dynamicpdf 6
More informationWEEK 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 informationITcertKing. The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way!
ITcertKing The latest IT certification exam materials http://www.itcertking.com IT Certification Guaranteed, The Easy Way! Exam : 70-561-VB Title : TS: MS.NET Framework 3.5, ADO.NET Application Development
More informationHow 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 informationElse. 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 informationHerefordshire 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 informationMr.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 informationVARIABLES. 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 informationMy first game. 'function which adds objects with bug tag to bugarray array. Saturday, November 23, :06 AM
My first game Saturday, November 23, 2013 5:06 AM Public Class Form1 Dim moveright As Boolean = False Dim moveup As Boolean = False Dim moveleft As Boolean = False Dim movedown As Boolean = False Dim score
More informationIn 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 informationAnswer on Question# Programming, C#
Answer on Question#38723 - Programming, C# 1. The development team of SoftSols Inc. has revamped the software according to the requirements of FlyHigh Airlines and is in the process of testing the software.
More informationPROGRAMMING 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โปรแกรมช วยทดสอบหม อแปลงกระแส
โปรแกรมช วยทดสอบหม อแปลงกระแส 1.เมน ของโปรแกรม ภาพท 1 หน าเมน ของโปรแกรม Public Class frmmain Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
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")>
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 informationLAMPIRAN A LISTING PROGRAM. Universitas Sumatera Utara
LAMPIRAN A LISTING PROGRAM LISTING PROGRAM MENU UTAMA Dim T As String Dim i Private Sub Dafsis_Click() Form5.Show Private Sub Dafwai_Click() Form5.Show Private Sub Dasis_Click() Form2.Show Private Sub
More information...ic Programming\Mystery Escape\Mystery Escape\frmEscape.vb
...ic Programming\Mystery Escape\Mystery Escape\frmEscape.vb 1 1 Option Strict On 2 3 Public Class frmescape 4 5 ' Class variables. 6 7 Private _intonehour As Integer = 1 8 Private _inttwohour As Integer
More informationVB.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 informationLecture 10: Database. Lisa (Ling) Liu
Chair of Software Engineering C# Programming in Depth Prof. Dr. Bertrand Meyer March 2007 May 2007 Lecture 10: Database Lisa (Ling) Liu Database and Data Representation Database Management System (DBMS):
More informationUnit 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"!#... )*! "!# )+, -./ 01 $
Email engauday@hotmail.com! "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?
More informationDEVELOPING 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 informationUpdated: Saturday, November 29, 2014 Page 1
' Copyright 2013 Safe T Services - All Rights Reserved '=========================================================================================== 'Changed by Change Date Change Tag ' Description of Change
More informationEXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!
EXAMGOOD QUESTION & ANSWER Exam Good provides update free of charge in one year! Accurate study guides High passing rate! http://www.examgood.com Exam : 70-547(VB) Title : PRO:Design and Develop Web-Basd
More informationL A M P I R A N. Universitas Sumatera Utara
L A M P I R A N 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()
More informationIOS 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 informationEXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!
EXAMGOOD QUESTION & ANSWER Exam Good provides update free of charge in one year! Accurate study guides High passing rate! http://www.examgood.com Exam : 70-561C++ Title : TS: MS.NET Framework 3.5, ADO.NET
More informationIRESS 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 informationKARTU BIMBINGAN TUGAS AKHIR MAHASISWA PEMBAHASAN PADA ASISTENSI MENGENAI, PADA BAB
62 KEMENTERIAN PENDIDIKAN NASIONAL UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jl. Bioteknologi No.1 Kampus USU Padang Bulan Medan 20155 Telp. (061) 8211050, 8214290, Fax (061)
More informationThe 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 informationPrivate 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 information1. 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 informationS.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 informationA-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 informationCALIFORNIA 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 informationPLATFORM TECHNOLOGY UNIT-4
VB.NET: Handling Exceptions Delegates and Events - Accessing Data ADO.NET Object Model-.NET Data Providers Direct Access to Data Accessing Data with Datasets. ADO.NET Object Model ADO.NET object model
More informationProgramming 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 informationCT862 Section 1 Introduction
CT862 Section 1 Introduction VB.NET: VB introduced in 1991 Provided the first easily accessible means of writing Windows applications o The VB IDE was inherently graphical and mirrored the Windows OS itself
More informationC16 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 informationAccessing Databases 7/6/2017 EC512 1
Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing
More informationLISTING 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 informationLearning 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 information1. We insert elements inside (CompoBox) tool through Items property ( ) 2. ComboBox tool use to choose just one item from the list ( )
st Q: Put ( ) or ( ) for the following sentence:. We insert elements inside (CompoBox) tool through Items property ( ) 2. ComboBox tool use to choose just one item from the list ( ) 3. VB.Net allows adding
More informationForm 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 informationHow 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 informationVB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development
Microsoft 70-561-VB MS.NET Framework 3.5 ADO.NET Application Development Download Full Version : http://killexams.com/pass4sure/exam-detail/70-561-vb B. Catch ex As System.Data.SqlClient.SqlException For
More informationLab 4: Adding a Windows User-Interface
Lab 4: Adding a Windows User-Interface In this lab, you will cover the following topics: Creating a Form for use with Investment objects Writing event-handler code to interact with Investment objects Using
More informationPrivate 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 informationPrivate Sub 終了 XToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 終了 XToolStripMenuItem.
Imports MySql.Data.MySqlClient Imports System.IO Public Class FrmMst Private Sub 終了 XToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 終了 XToolStripMenuItem.Click
More informationJapanCert 専門 IT 認証試験問題集提供者
JapanCert 専門 IT 認証試験問題集提供者 http://www.japancert.com 1 年で無料進級することに提供する Exam : 070-561-Cplusplus Title : TS: MS.NET Framework 3.5, ADO.NET Application Development Vendors : Microsoft Version : DEMO Get Latest
More informationEnd 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 informationMapMatrix NetGIS Application Objects Users Guide. Version 2.3
MapMatrix NetGIS Application Objects Users Guide Version 2.3 CONTENTS 1 Overview of MapMatrix NetGIS... 3 1.1 MapMatrix NetGIS Features... 3 1.2 Operating System Requirements... 3 1.3 The MapMatrix Architecture...
More informationThe 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 informationDRAWING AND MOVING IMAGES
DRAWING AND MOVING IMAGES Moving images and shapes in a Visual Basic application simply requires the user of a Timer that changes the x- and y-positions every time the Timer ticks. In our first example,
More informationYear 12 : Visual Basic Tutorial.
Year 12 : Visual Basic Tutorial. STUDY THIS Input and Output (Text Boxes) The three stages of a computer process Input Processing Output Data is usually input using TextBoxes. [1] Create a new Windows
More informationIMS1906: 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 informationInteracting 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 informationLAMPIRAN 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 information2017/ st Sec Final revision Final revision
Q1)Put ( ) or (x): 1. We open channel of communication between the programme that is created in Visual basic Dot Net language and Excel file by using ADO.NET tools. ( ) 2. Variable of type ( OleDbConnection)
More informationShould read: Model First Reads: AutoIncementStep and AutoIncrementSeed
MCTS Self-Paced Training Kit (Exam 70-516): Accessing Data with Microsoft.NET Framework 4 ISBN: 978-0-7356-2739-0 First printing: June, 2011 To ensure the ongoing accuracy of this book and its companion
More informationSection 7 The BASIC Language II
Dates Section 7 The BASIC Language II The Date class holds a date (between January 1 st, 0001 and December 31 st, 9999) combined with a time (between 0:00:00 and 23:59:59) Constructors of the Date class
More informationMember 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 informationEncrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net
Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net Here Mudassar Ahmed Khan has explained how to encrypt and store Username or Password in SQL Server Database Table
More informationCopy Datatable Schema To Another Datatable Vb.net
Copy Datatable Schema To Another Datatable Vb.net NET Framework 4.6 and 4.5 The schema of the cloned DataTable is built from the columns of the first enumerated DataRow object in the source table The RowState
More informationVISUAL 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 informationForm 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 informationWorkflow V2.8.1 Administrator and User Guide February 2015
Workflow V2.8.1 Administrator and User Guide February 2015 www.ecmtoolbox.com 1 Table of Contents Contents Introduction...3 Server System Requirements...4 Client System Requirements...4 USER GUIDE SECTION...5
More informationSerial 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 informationISM 3253 Exam I Spring 2009
ISM 3253 Exam I Spring 2009 Directions: You have exactly 75 minutes to complete this test. Time available is part of the exam conditions and all work must cease when "Stop work" is announced. Failing to
More informationExam 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 informationBuilding Windows Front Ends to SAS Software. Katie Essam Amadeus Software Limited 20 th May 2003
Building Windows Front Ends to SAS Software Katie Essam Amadeus Software Limited 20 th May 2003 Topics Introduction What is.net? SAS Software s Interoperability Communicating with SAS from VB.NET Conclusions
More informationFRAMEWORK CODE: On Error Resume Next Dim objapp As Object Dim ObjSEEC As Object
Here is a piece of the sample Visual Basic code for the framework. Following are the steps mentions to specify about how to use the given sample code. Prerequisite: It is assumed that the action trigger
More informationLAMPIRAN 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 informationLearning 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 informationOVERLOADING METHODS AND CONSTRUCTORS: The Ball Class
OVERLOADING METHODS AND CONSTRUCTORS: The Ball Class Create a Ball Demo program that uses a Ball class. Use the following UML diagram to create the Ball class: Ball - ballcolor: Color - ballwidth, ballheight:
More informationSerial-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