Professional Documents
Culture Documents
Program Studi D III - Rekam Medis & Informasi Kesehatan: Latihan SOAL Semester IV (Empat)
Program Studi D III - Rekam Medis & Informasi Kesehatan: Latihan SOAL Semester IV (Empat)
1. Buat project baru dengan nama proj_klinik dan buat database dengan nama klinik_db dan dan didalam
klinik_db buat table baru dengan nama klinik. Isikan table dengan field - field berikut ini :
optiongroup1 Click
IF thisform.optiongroup1.option1.Value=1
thisform.cbO_DOK.Clear
thisform.cbO_DOK.AddItem("dr.Santi Sabila")
thisform.cbO_DOK.AddItem("dr.Eko Bambang")
thisform.cbO_tin.Clear
thisform.cbO_tin.AddItem("KB")
thisform.cbO_tin.AddItem("CHECK UP")
ELSE
thisform.cbO_DOK.Clear
thisform.cbO_DOK.AddItem("dr.Heri Batara")
thisform.cbO_DOK.AddItem("dr.Melisa Utami")
thisform.cbO_tin.Clear
thisform.cbO_tin.AddItem("CABUT GIGI")
thisform.cbO_tin.AddItem("TAMBAL GIGI")
ENDIF
Cbo_tin Click
IF thisform.cbo_tin.Value="KB" Cmdadd
thisform.txtb_tin.Value=30000
ELSE Click thisform.aktif
IF thisform.cbo_tin.Value="CHECK UP" thisform.bersih
thisform.txtb_tin.Value=60000 thisform.txtb_reg.Value=10000
thisform.txttgl.Value=DATE()
ELSE
IF thisform.cbo_tin.Value="CABUT GIGI"
thisform.txtb_tin.Value=50000
ELSE
thisform.txtb_tin.Value=80000
ENDIF
ENDIF
ENDIF
thisform.txttotal.Value=thisform.txtb_reg.Value+thisform.txtb_tin.Value
cmdcari Click
SEEK (ALLTRIM(thisform.txtcari.Value))
IF FOUND()
thisform.tampil
ELSE
MESSAGEBOX("maaf data tidak ketemu",0,"info")
ENDIF
Cmdsave Click
APPEND BLANK
Replace no_rm WITH thisform.txtno_rm.Value
Replace nm_pasien WITH thisform.txtnm_pasien.Value
Replace nm_dokter WITH thisform.cbo_dok.Value
Replace tindakan WITH thisform.cbo_tin.Value
Replace b_registrasi WITH thisform.txtb_reg.Value
Replace b_tindakan WITH thisform.txtb_tin.Value
Replace total WITH thisform.txttotal.Value
Replace ubay WITH thisform.txtubay.Value
Replace ukem WITH thisform.txtukem.Value
Replace tgl WITH thisform.txttgl.Value
Replace alamat WITH thisform.txtalamat.Value
IF thisform.optiongroup1.option1.Value=1
Replace poli WITH "Umum"
ELSE
Replace poli WITH "Gigi"
ENDIF
MESSAGEBOX("data tersimpan",0,"warning")
Cmdclose Click
pesan=MESSAGEBOX("yakin mau keluar?",32+4,"Keluar")
IF pesan=6
thisform.Release
ENDIF
txtubay keyPress
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nkeycode=13 then
thisform.txtukem.value=thisform.txtubay.Value-thisform.txttotal.Value
ENDIF
DOKTER (cbo_dok)
Cmddelete Click
TINDAKAN(cbo_tin)
e= MESSAGEBOX("yakin mau dihapus?",48+1,"Info")
IF e=1
DELETE
dr.Santi Sabila
PACK
MESSAGEBOX("Data Telah
KB
Terhapus") thisform.bersih
dr.Eko Bambang
thisform.Refresh
ENDIF
CHECK UP
dr.Heri
Cmdbrowse
Batara CABUT GIGI
Click BROWSE NOEDIT
dr.Melisa Utami TAMBAL GIGI