Professional Documents
Culture Documents
FORM LOGIN
Imports System.Data.OleDb
Public Class Form1
Me.Hide()
Else
MsgBox("Username atau Password kosong Silakan Ulangi
Kembali", vbOKOnly + vbInformation, "message")
txtUSERNAME.Clear()
txtPASSWORD.Clear()
txtPASSWORD.Focus()
'dr.Close()
End If
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
155
cbPENDIDIKAN.Enabled = True
txtTELEPON.Enabled = True
End Sub
Sub pasif()
txtID_PEGAWAI.Enabled = False
txtNAMA_PEGAWAI.Enabled = False
dtTANGGAL_LAHIR.Enabled = False
txtALAMAT.Enabled = False
cbJK.Enabled = False
cbPENDIDIKAN.Enabled = False
txtTELEPON.Enabled = False
End Sub
Sub bersih()
txtID_PEGAWAI.Clear()
txtNAMA_PEGAWAI.Clear()
dtTANGGAL_LAHIR.Value = Now
txtALAMAT.Clear()
cbJK.Text = "---pilih---"
cbPENDIDIKAN.Text = "---pilih---"
txtTELEPON.Clear()
End Sub
Private Sub Form8_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
koneksi()
lihat_user()
bersih()
pasif()
aktif()
End Sub
cmd.Parameters.AddWithValue("@4", txtALAMAT.Text)
cmd.Parameters.AddWithValue("@5", cbJK.Text)
cmd.Parameters.AddWithValue("@6", cbPENDIDIKAN.Text)
cmd.Parameters.AddWithValue("@7", txtTELEPON.Text)
cmd.ExecuteNonQuery()
MsgBox("Data Berhasil Di Simpan")
bersih()
pasif()
lihat_user()
End Sub
End Sub
txtALAMAT.Text = DataGridView1.CurrentRow.Cells(3).Value.ToString
cbJK.Text = DataGridView1.CurrentRow.Cells(4).Value.ToString
cbPENDIDIKAN.Text =
DataGridView1.CurrentRow.Cells(5).Value.ToString
txtTELEPON.Text = DataGridView1.CurrentRow.Cells(6).Value.ToString
txtNAMA_PEGAWAI.Focus()
End Sub
End If
End Sub
Sub aktif()
txtIDDokter.Enabled = True
txtNamaDokter.Enabled = True
txtNoHP.Enabled = True
cmbJenisKel.Enabled = True
cmbSpesialis.Enabled = True
End Sub
Sub pasif()
txtIDDokter.Enabled = False
txtNamaDokter.Enabled = False
txtNoHP.Enabled = False
cmbJenisKel.Enabled = False
cmbSpesialis.Enabled = False
159
End Sub
Sub bersih()
txtIDDokter.Clear()
txtNamaDokter.Clear()
txtNoHP.Clear()
cmbJenisKel.Text = "--Pilih--"
cmbSpesialis.Text = "--Pilih--"
End Sub
cmd.Parameters.AddWithValue("@nama_dokter", txtNamaDokter.Text)
cmd.Parameters.AddWithValue("@jenis_kel", cmbJenisKel.Text)
cmd.Parameters.AddWithValue("@spesialis", cmbSpesialis.Text)
cmd.Parameters.AddWithValue("@no_hp", txtNoHP.Text)
cmd.Parameters.AddWithValue("@id_dokter", txtIDDokter.Text)
cmd.ExecuteNonQuery()
lihat_dokter()
bersih()
pasif()
End Sub
End Sub
End If
161
End Sub
End Class
Sub aktif()
dtTANGGAL_MASUK.Enabled = True
txtNO_RM.Enabled = True
txtNAMA_IBU.Enabled = True
txtNAMA_SUAMI.Enabled = True
dtTANGGAL_LAHIR.Enabled = True
txtUMUR.Enabled = True
cbGOL_DAR.Enabled = True
txtALAMAT.Enabled = True
cbPENDIDIKAN.Enabled = True
cbPEKERJAAN.Enabled = True
txtTELEPON.Enabled = True
cbJAMINAN.Enabled = True
End Sub
Sub pasif()
dtTANGGAL_MASUK.Enabled = False
txtNO_RM.Enabled = False
txtNAMA_IBU.Enabled = False
txtNAMA_SUAMI.Enabled = False
dtTANGGAL_LAHIR.Enabled = False
txtUMUR.Enabled = False
cbGOL_DAR.Enabled = False
txtALAMAT.Enabled = False
cbPENDIDIKAN.Enabled = False
cbPEKERJAAN.Enabled = False
txtTELEPON.Enabled = False
cbJAMINAN.Enabled = False
End Sub
Sub bersih()
dtTANGGAL_MASUK.Value = Now
txtNO_RM.Clear()
txtNAMA_IBU.Clear()
txtNAMA_SUAMI.Clear()
dtTANGGAL_LAHIR.Value = Now
txtUMUR.Clear()
cbGOL_DAR.Text = "---Pilih---"
txtALAMAT.Clear()
cbPENDIDIKAN.Text = "---Pilih---"
cbPEKERJAAN.Text = "---Pilih---"
txtTELEPON.Clear()
cbJAMINAN.Text = "---Pilih---"
162
End Sub
Sub Umur()
Dim TANGGAL_LAHIR, tglsekarang As Date
Dim tahun As Long
TANGGAL_LAHIR = dtTANGGAL_LAHIR.Value.ToString
tglsekarang = Now.ToString
If TANGGAL_LAHIR > tglsekarang Then
MsgBox("Tanggal Harus Kurang Dari Tanggal Hari Ini",
MsgBoxStyle.Exclamation, "Peringatan")
Else
tahun = Year(TANGGAL_LAHIR)
tahun = Year(tglsekarang) - tahun
End If
Me.txtUMUR.Text = tahun.ToString
End Sub
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
koneksi()
lihat_ibu()
bersih()
pasif()
End Sub
pasif()
End Sub
End Sub
cbGOL_DAR.Text = DataGridView1.CurrentRow.Cells(6).Value.ToString
txtALAMAT.Text = DataGridView1.CurrentRow.Cells(7).Value.ToString
cbPENDIDIKAN.Text =
DataGridView1.CurrentRow.Cells(8).Value.ToString
cbPEKERJAAN.Text = DataGridView1.CurrentRow.Cells(9).Value.ToString
txtTELEPON.Text = DataGridView1.CurrentRow.Cells(10).Value.ToString
cbJAMINAN.Text = DataGridView1.CurrentRow.Cells(11).Value.ToString
txtNAMA_IBU.Focus()
End Sub
End If
End Sub
End Sub
End Sub
End Class
FORM PEMERIKSAAN HAMIL
Imports System.Data.OleDb
Public Class Form6
Sub aktif()
cbNO_RM.Enabled = True
txtNAMA_IBU.Enabled = True
cbJaminan.Enabled = True
dtTANGGAL_LAHIR.Enabled = True
cbID_DOKTER.Enabled = True
txtNamaDokter.Enabled = True
txtKD_Hamil.Enabled = True
txtAnamnesa.Enabled = True
txtBB.Enabled = True
txtTD.Enabled = True
cbStatusGizi.Enabled = True
165
cbRefleksPatela.Enabled = True
txtTFU.Enabled = True
txtTrimester.Enabled = True
txtDJJ.Enabled = True
cbkepalaPAP.Enabled = True
txtTBJ.Enabled = True
cbPresentasi.Enabled = True
cbStatusImunisasi.Enabled = True
txtHB.Enabled = True
cbAnemia.Enabled = True
cbProteinUria.Enabled = True
cbThalasemia.Enabled = True
cbSifilis.Enabled = True
txtFaktorResiko.Enabled = True
dtTGL_Periksa.Enabled = True
cbTerdeteksi.Enabled = True
cbKomplikasi.Enabled = True
cbDirujuk.Enabled = True
cbKeadaan.Enabled = True
End Sub
Sub pasif()
cbNO_RM.Enabled = False
txtNAMA_IBU.Enabled = False
cbJaminan.Enabled = False
dtTANGGAL_LAHIR.Enabled = False
cbID_DOKTER.Enabled = False
txtNamaDokter.Enabled = False
txtKD_Hamil.Enabled = False
txtAnamnesa.Enabled = False
txtBB.Enabled = False
txtTD.Enabled = False
cbStatusGizi.Enabled = False
cbRefleksPatela.Enabled = False
txtTFU.Enabled = False
txtTrimester.Enabled = False
txtDJJ.Enabled = False
cbkepalaPAP.Enabled = False
txtTBJ.Enabled = False
cbPresentasi.Enabled = False
cbStatusImunisasi.Enabled = False
txtHB.Enabled = False
cbAnemia.Enabled = False
cbProteinUria.Enabled = False
cbThalasemia.Enabled = False
cbSifilis.Enabled = False
txtFaktorResiko.Enabled = False
dtTGL_Periksa.Enabled = False
cbTerdeteksi.Enabled = False
cbKomplikasi.Enabled = False
cbDirujuk.Enabled = False
cbKeadaan.Enabled = False
End Sub
Sub bersih()
cbNO_RM.Text = "---Pilih---"
txtNAMA_IBU.Clear()
cbJaminan.Text = "---Pilih---"
dtTANGGAL_LAHIR.Value = Now
166
cbID_DOKTER.Text = "---Pilih---"
txtNamaDokter.Clear()
txtKD_Hamil.Clear()
txtAnamnesa.Clear()
txtBB.Clear()
txtTD.Clear()
cbStatusGizi.Text = "---Pilih---"
cbRefleksPatela.Text = "---Pilih---"
txtTFU.Clear()
txtTrimester.Clear()
txtDJJ.Clear()
cbkepalaPAP.Text = "---Pilih---"
txtTBJ.Clear()
cbPresentasi.Text = "---Pilih---"
cbStatusImunisasi.Text = "---Pilih---"
txtHB.Clear()
cbAnemia.Text = "---Pilih---"
cbProteinUria.Text = "---Pilih---"
cbThalasemia.Text = "---Pilih---"
cbSifilis.Text = "---Pilih---"
txtFaktorResiko.Clear()
dtTGL_Periksa.Value = Now
cbTerdeteksi.Text = "---Pilih---"
cbKomplikasi.Text = "---Pilih---"
cbDirujuk.Text = "---Pilih---"
cbKeadaan.Text = "---Pilih---"
End Sub
Sub lihat_hamil()
cmd = New OleDbCommand("SELECT TB_HAMIL.Kode_Hamil, TB_IBU.NO_RM,
TB_IBU.NAMA_IBU, TB_IBU.Jaminan, TB_IBU.TANGGAL_LAHIR, TB_DOKTER.ID_DOKTER,
TB_DOKTER.NAMA_DOKTER, TB_HAMIL.Anamnesa, TB_HAMIL.BB, TB_HAMIL.TD,
TB_HAMIL.Status_Gizi, TB_HAMIL.Refleks_Patela, TB_HAMIL.TFU,
TB_HAMIL.Trimester, TB_HAMIL.DJJ, TB_HAMIL.Kepala_Terhadap_PAP,
TB_HAMIL.TBJ, TB_HAMIL.Presentasi, TB_HAMIL.Status_Imunisasi,
TB_HAMIL.Pemeriksaan_HB, TB_HAMIL.Anemia, TB_HAMIL.Protein_Uria,
TB_HAMIL.Thalasemia, TB_HAMIL.Sifilis, TB_HAMIL.Faktor_Resiko,
TB_HAMIL.TGL_Pemeriksaan, TB_HAMIL.Terdeteksi_Pertama, TB_HAMIL.Komplikasi,
TB_HAMIL.Dirujuk_Ke, TB_HAMIL.Keadaan FROM (TB_HAMIL INNER JOIN TB_IBU ON
TB_HAMIL.No_RM = TB_IBU.NO_RM) INNER JOIN TB_DOKTER ON TB_HAMIL.ID_DOKTER =
TB_DOKTER.ID_DOKTER", cn)
cmd.ExecuteNonQuery()
da = New OleDbDataAdapter(cmd)
tb = New DataTable
da.Fill(tb)
DataGridView1.DataSource = tb
End Sub
Sub isi_nomor_rm()
cmd = New OleDbCommand("select No_RM from TB_IBU", cn)
dr = cmd.ExecuteReader
cbNO_RM.Items.Clear()
Do While dr.Read
cbNO_RM.Items.Add(dr.Item(0))
Loop
dr.Close()
End Sub
Sub isi_id_dokter()
cmd = New OleDbCommand("select ID_DOKTER from TB_DOKTER", cn)
167
dr = cmd.ExecuteReader
cbID_DOKTER.Items.Clear()
Do While dr.Read
cbID_DOKTER.Items.Add(dr.Item(0))
Loop
dr.Close()
End Sub
Private Sub Form6_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
koneksi()
bersih()
pasif()
lihat_hamil()
isi_nomor_rm()
isi_id_dokter()
End Sub
End If
End Sub
End Sub
bersih()
aktif()
txtKD_Hamil.Text = DataGridView1.CurrentRow.Cells(0).Value.ToString
cbNO_RM.Text = DataGridView1.CurrentRow.Cells(1).Value.ToString
txtNAMA_IBU.Text = DataGridView1.CurrentRow.Cells(2).Value.ToString
cbJaminan.Text = DataGridView1.CurrentRow.Cells(3).Value.ToString
dtTANGGAL_LAHIR.Text =
DataGridView1.CurrentRow.Cells(4).Value.ToString
cbID_DOKTER.Text = DataGridView1.CurrentRow.Cells(5).Value.ToString
txtNamaDokter.Text =
DataGridView1.CurrentRow.Cells(6).Value.ToString
txtAnamnesa.Text = DataGridView1.CurrentRow.Cells(7).Value.ToString
txtBB.Text = DataGridView1.CurrentRow.Cells(8).Value.ToString
txtTD.Text = DataGridView1.CurrentRow.Cells(9).Value.ToString
cbStatusGizi.Text =
DataGridView1.CurrentRow.Cells(10).Value.ToString
cbRefleksPatela.Text =
DataGridView1.CurrentRow.Cells(11).Value.ToString
txtTFU.Text = DataGridView1.CurrentRow.Cells(12).Value.ToString
txtTrimester.Text =
DataGridView1.CurrentRow.Cells(13).Value.ToString
txtDJJ.Text = DataGridView1.CurrentRow.Cells(14).Value.ToString
cbkepalaPAP.Text =
DataGridView1.CurrentRow.Cells(15).Value.ToString
txtTBJ.Text = DataGridView1.CurrentRow.Cells(16).Value.ToString
cbPresentasi.Text =
DataGridView1.CurrentRow.Cells(17).Value.ToString
cbStatusImunisasi.Text =
DataGridView1.CurrentRow.Cells(18).Value.ToString
txtHB.Text = DataGridView1.CurrentRow.Cells(19).Value.ToString
cbAnemia.Text = DataGridView1.CurrentRow.Cells(20).Value.ToString
cbProteinUria.Text =
DataGridView1.CurrentRow.Cells(21).Value.ToString
cbThalasemia.Text =
DataGridView1.CurrentRow.Cells(22).Value.ToString
cbSifilis.Text = DataGridView1.CurrentRow.Cells(23).Value.ToString
txtFaktorResiko.Text =
DataGridView1.CurrentRow.Cells(24).Value.ToString
dtTGL_Periksa.Value =
DataGridView1.CurrentRow.Cells(25).Value.ToString
cbTerdeteksi.Text =
DataGridView1.CurrentRow.Cells(26).Value.ToString
cbKomplikasi.Text =
DataGridView1.CurrentRow.Cells(27).Value.ToString
cbDirujuk.Text = DataGridView1.CurrentRow.Cells(28).Value.ToString
cbKeadaan.Text = DataGridView1.CurrentRow.Cells(29).Value.ToString
txtKD_Hamil.Focus()
End Sub
cbJaminan.Text = dr.Item("Jaminan").ToString
dtTANGGAL_LAHIR.Text = dr.Item("TANGGAL_LAHIR").ToString
dr.Close()
End Sub
FORM PERSALINAN
Imports System.Data.OleDb
Public Class Form5
Sub aktif()
cbNO_RM.Enabled = True
txtNAMA_IBU.Enabled = True
txtKD_Persalinan.Enabled = True
dtKala_I.Enabled = True
dtKala_II.Enabled = True
dtBayi_Lahir.Enabled = True
dtPlasenta_lahir.Enabled = True
txtPendarahanKalaIV.Enabled = True
cbPresentasi_bayi.Enabled = True
cbTempat.Enabled = True
cbPenolong.Enabled = True
cbCara_Bersalin.Enabled = True
cbPenanganan.Enabled = True
cbKomplikasi.Enabled = True
cbDirujuk.Enabled = True
txtAlamat_bersalin.Enabled = True
txtUsiaHamil.Enabled = True
txtHPHT.Enabled = True
cbkeadaanIbu.Enabled = True
cbKeadaanBayi.Enabled = True
txtBeratBayi.Enabled = True
cbID_DOKTER.Enabled = True
txtNamaDokter.Enabled = True
End Sub
Sub pasif()
cbNO_RM.Enabled = False
txtNAMA_IBU.Enabled = False
txtKD_Persalinan.Enabled = False
dtKala_I.Enabled = False
dtKala_II.Enabled = False
dtBayi_Lahir.Enabled = False
dtPlasenta_lahir.Enabled = False
txtPendarahanKalaIV.Enabled = False
cbPresentasi_bayi.Enabled = False
cbTempat.Enabled = False
cbPenolong.Enabled = False
cbCara_Bersalin.Enabled = False
cbPenanganan.Enabled = False
cbKomplikasi.Enabled = False
cbDirujuk.Enabled = False
txtAlamat_bersalin.Enabled = False
txtUsiaHamil.Enabled = False
171
txtHPHT.Enabled = False
cbkeadaanIbu.Enabled = False
cbKeadaanBayi.Enabled = False
txtBeratBayi.Enabled = False
cbID_DOKTER.Enabled = False
txtNamaDokter.Enabled = False
End Sub
Sub bersih()
cbNO_RM.Text = "--Pilih--"
txtNAMA_IBU.Clear()
txtKD_Persalinan.Clear()
dtKala_I.Value = Now
dtKala_II.Value = Now
dtBayi_Lahir.Value = Now
dtPlasenta_lahir.Value = Now
txtPendarahanKalaIV.Clear()
cbPresentasi_bayi.Text = "--Pilih--"
cbTempat.Text = "--Pilih--"
cbPenolong.Text = "--Pilih--"
cbCara_Bersalin.Text = "--Pilih--"
cbPenanganan.Text = "--Pilih--"
cbKomplikasi.Text = "--Pilih--"
cbDirujuk.Text = "--Pilih--"
txtAlamat_bersalin.Clear()
txtUsiaHamil.Clear()
txtHPHT.Clear()
cbkeadaanIbu.Text = "--Pilih--"
cbKeadaanBayi.Text = "--Pilih--"
txtBeratBayi.Clear()
cbID_DOKTER.Text = "--Pilih--"
txtNamaDokter.Clear()
End Sub
Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
koneksi()
bersih()
pasif()
lihat_persalinan()
isi_nomor_rm()
isi_id_dokter()
End Sub
Sub lihat_persalinan()
cmd = New OleDbCommand("SELECT TB_PERSALINAN.Kode_Persalinan,
TB_IBU.NO_RM, TB_IBU.NAMA_IBU, TB_PERSALINAN.Kala_1_Aktif,
TB_PERSALINAN.Kala_2, TB_PERSALINAN.Bayi_Lahir,
TB_PERSALINAN.Plasenta_Lahir, TB_PERSALINAN.Pendarahan_Kala_IV,
TB_PERSALINAN.Presentasi_Bayi, TB_PERSALINAN.Tempat,
TB_PERSALINAN.Penolong, TB_PERSALINAN.Cara_Bersalin,
TB_PERSALINAN.Penanganan_Aktif_Kala_III, TB_PERSALINAN.Komplikasi,
TB_PERSALINAN.Dirujuk_Ke, TB_PERSALINAN.Alamat_Bersalin,
TB_PERSALINAN.Usia_Kehamilan, TB_PERSALINAN.Usia_HPHT,
TB_PERSALINAN.Keadaan_Ibu, TB_PERSALINAN.Keadaan_Bayi, TB_DOKTER.ID_DOKTER,
TB_DOKTER.NAMA_DOKTER FROM (TB_PERSALINAN INNER JOIN TB_IBU ON
TB_PERSALINAN.No_RM = TB_IBU.NO_RM) INNER JOIN TB_DOKTER ON
TB_PERSALINAN.ID_Dokter = TB_DOKTER.ID_DOKTER", cn)
cmd.ExecuteNonQuery()
da = New OleDbDataAdapter(cmd)
172
tb = New DataTable
da.Fill(tb)
DataGridView1.DataSource = tb
End Sub
Sub isi_nomor_rm()
cmd = New OleDbCommand("select No_RM from TB_IBU", cn)
dr = cmd.ExecuteReader
cbNO_RM.Items.Clear()
Do While dr.Read
cbNO_RM.Items.Add(dr.Item(0))
Loop
dr.Close()
End Sub
Sub isi_id_dokter()
cmd = New OleDbCommand("select ID_DOKTER from TB_DOKTER", cn)
dr = cmd.ExecuteReader
cbID_DOKTER.Items.Clear()
Do While dr.Read
cbID_DOKTER.Items.Add(dr.Item(0))
Loop
dr.Close()
End Sub
pasif()
lihat_persalinan()
End Sub
End If
End Sub
txtNamaDokter.Text = dr.Item("NAMA_DOKTER").ToString
dr.Close()
End Sub
End Sub
Sub aktif()
txtkodebayi.Enabled = True
txtnamabayi.Enabled = True
cbNO_RM.Enabled = True
txtNAMA_IBU.Enabled = True
txtALAMAT.Enabled = True
dtlahirbayi.Enabled = True
cbjk.Enabled = True
txtTB.Enabled = True
txtBB.Enabled = True
cbgoldar.Enabled = True
cblahir.Enabled = True
cbkomplikasi.Enabled = True
cbresusitasi.Enabled = True
cbIMD.Enabled = True
cbpencegahan.Enabled = True
cbtiba.Enabled = True
cbpulang.Enabled = True
cbdirujuk.Enabled = True
End Sub
Sub pasif()
txtkodebayi.Enabled = False
txtnamabayi.Enabled = False
cbNO_RM.Enabled = False
txtNAMA_IBU.Enabled = False
txtALAMAT.Enabled = False
dtlahirbayi.Enabled = False
cbjk.Enabled = False
txtTB.Enabled = False
txtBB.Enabled = False
cbgoldar.Enabled = False
176
cblahir.Enabled = False
cbkomplikasi.Enabled = False
cbresusitasi.Enabled = False
cbIMD.Enabled = False
cbpencegahan.Enabled = False
cbtiba.Enabled = False
cbpulang.Enabled = False
cbdirujuk.Enabled = False
End Sub
Sub bersih()
txtkodebayi.Clear()
txtnamabayi.Clear()
cbNO_RM.Text = "--Pilih--"
txtNAMA_IBU.Clear()
txtALAMAT.Clear()
dtlahirbayi.Value = Now
cbjk.Text = "--Pilih--"
txtTB.Clear()
txtBB.Clear()
cbgoldar.Text = "--Pilih--"
cblahir.Text = "--Pilih--"
cbkomplikasi.Text = "--Pilih--"
cbresusitasi.Text = "--Pilih--"
cbIMD.Text = "--Pilih--"
cbpencegahan.Text = "--Pilih--"
cbtiba.Text = "--Pilih--"
cbpulang.Text = "--Pilih--"
cbdirujuk.Text = "--Pilih--"
End Sub
dr.Close()
End If
txtnamabayi.Focus()
End Sub
cmd.Parameters.AddWithValue("@Kode_Bayi", txtkodebayi.Text)
cmd.ExecuteNonQuery()
lihat_Bayi()
bersih()
pasif()
End Sub
End Sub
End Sub
Sub bersih()
txtRegister.Clear()
cbkodebayi.Text = "--Pilih--"
txtnamabayi.Clear()
dtlahirbayi.Value = Now
txtumur.Clear()
dtPemeriksaan.Value = Now
cbpencegahan.Text = "--Pilih--"
cbsusu.Text = "--Pilih--"
cbprofilaksis.Text = "--Pilih--"
cbdiagnosis.Text = "--Pilih--"
180
cbMTBM.Text = "--Pilih--"
cbtiba.Text = "--Pilih--"
cbpulang.Text = "--Pilih--"
cbdirujuk.Text = "--Pilih--"
cbID_DOKTER.Text = "--Pilih--"
txtNamaDokter.Clear()
End Sub
End Sub
End Sub
End Sub
End Class
Do While (dr.Read)
cbdokterhamil.Items.Add(dr.Item(0))
Loop
End Sub
Sub carabersalin()
cmd = New OleDbCommand("select distinct Cara_Bersalin from
TB_PERSALINAN", cn)
dr = cmd.ExecuteReader
Do While (dr.Read)
cbcara.Items.Add(dr.Item(0))
Loop
End Sub
Sub penolong()
cmd = New OleDbCommand("select distinct Penolong from
TB_PERSALINAN", cn)
dr = cmd.ExecuteReader
Do While (dr.Read)
cbpenolong.Items.Add(dr.Item(0))
Loop
End Sub
Sub dokterpersalinan()
cmd = New OleDbCommand("select distinct Nama_Dokter from
TB_PERSALINAN", cn)
dr = cmd.ExecuteReader
Do While (dr.Read)
cbdokter.Items.Add(dr.Item(0))
Loop
End Sub
formdokterhamil.CrystalReportViewer1.SelectionFormula =
"({TB_Hamil.NAMA_DOKTER})= '" & cbdokterhamil.Text & "'"
'cryrpt.load("dokterhamil.rpt")
'Call module_konfigurasi_laporan()
'dokterhamil.CrystalReportViewer1.reportsource = cryrpt
formdokterhamil.CrystalReportViewer1.RefreshReport()
End If
End Sub
End Sub
cbkeadaanlahir.Items.Add(dr.Item(0))
Loop
End Sub
Sub komplikasi_lahir()
cmd = New OleDbCommand("select distinct Komplikasi from TB_BAYI",
cn)
dr = cmd.ExecuteReader
Do While (dr.Read)
cbkomplikasilahir.Items.Add(dr.Item(0))
Loop
End Sub
Sub Diagnosis()
cmd = New OleDbCommand("select distinct Diagnosa from
TB_PEMERIKSAANBAYI", cn)
dr = cmd.ExecuteReader
Do While (dr.Read)
cbdiagnosis.Items.Add(dr.Item(0))
Loop
End Sub
Sub dokter()
cmd = New OleDbCommand("select distinct NAMA_DOKTER from
TB_PEMERIKSAANBAYI", cn)
dr = cmd.ExecuteReader
Do While (dr.Read)
cbdokter.Items.Add(dr.Item(0))
Loop
End Sub
Private Sub Form19_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Call jk()
Call keadan_lahir()
Call komplikasi_lahir()
Call Diagnosis()
Call dokter()
End Sub
formkeadaanlahir.CrystalReportViewer1.SelectionFormula =
"({TB_BAYI.Keadaan_Lahir})= '" & cbkeadaanlahir.Text & "'"
'cryrpt.load("keadaanlahir.rpt")
'Call module_konfigurasi_laporan()
'keadaanlahir.CrystalReportViewer1.reportsource = cryrpt
formkeadaanlahir.CrystalReportViewer1.RefreshReport()
End If
End Sub
End Sub