You are on page 1of 11

LAPORAN PRAKTIKUM

Tugas ini dibuat untuk memenuhi Mata Kuliah Sistem Basis Data Dosen
R.Daru Murti ST

Disusun oleh Apriska Nurfitrin Wardani (32101047)

TI3-A

POLITEKNIK SAWUNGGALIH AJI PURWOREJO

Project Sistem_gaji

Dbsisgaji

Table_Bagian

Report Bagian

Report Bagian Preview

Form_bagian

SOURCE CODE
-Procedure Method BATAL With thisform .txtkdbag.value=" " .txtkdbagakh.value=" " .txtnamabag.value=" " .txtgapok.value=" " .txtgajiperhari.value=" " Endwith

-Procedure Method SELESAI


Thisform.release

-Procedure Method SIMPAN Select bagian Set order to tag idxbagian WITH thisform IF !EMPTY(.txtkdbag.value) IF SEEK(.txtkdbag.value) replace namabag WITH .txtnamabag.value replace gapok WITH .txtgapok.value replace gajiperhari WITH .txtgajiperhari.value else APPEND BLANK replace Kdbag WITH .txtkdbag.value replace namabag WITH .txtnamabag.value replace gapok WITH VAL(.txtgapok.value) replace gajiperhari WITH VAL(.txtgajiperhari.value) endif

.batal() .aktif(.f.) .commandaktif(.f.) endif ENDWITH

-Procedure Method HAPUS SELECT bagian SET ORDER TO tag idxbagian WITH thisform IF SEEK(.txtkdbag.value) jwb=MESSAGEBOX("Benar ingin dihapus (Y/N)?",4+64,"Info Hapus") IF jwb=6 DELETE PACK ENDIF .batal() .aktif(.f.) ENDIF ENDWITH

-Procedure Method LIHAT SELECT bagian SET ORDER TO tag idxbagian SET FILTER TO mkdbag=kdbag REPORT FORM "diisi forlder tempat reportbagian.frx" to formbag preview SET FILTER TO

-Procedure Method LIHAT SELECT bagian SET ORDER TO tag idxbagian SET FILTER TO mkdbag=kdbag REPORT FORM " diisi forlder tempat reportbagian.frx" to PRINTER noconsole SET FILTER TO

-Procedure Method COMMANDAKTIF PARAMETERS keadaan WITH thisform .Cmdsimpan.enabled=keadaan .Cmdlihat.enabled=keadaan .Cmdcetak.enabled=keadaan .Cmdhapus.enabled=keadaan Endwith

-Procedure Method AKTIF PARAMETERS keadaan WITH thisform .txtkdbag.enabled=.not. keadaan .txtnamabag.enabled=keadaan .txtgapok.enabled=keadaan .txtgajiperhari.enabled=keadaan Endwith

-Procedure Method KDBAGAKH SELECT bagian SET ORDER TO tag idxbagian WITH thisform REINDEX GO BOTTOM IF kdbag=" " .txtkdbagakh.value=" " ELSE .txtkdbagakh.value=kdbag

ENDIF .txtkdbagakh.enabled=.f. ENDWITH

-Procedure Method ACTIVE EVENT WITH thisform .batal() .aktif(.f.) .commandaktif(.f.) .kdbagakh()
ENDWITH

-Procedure txtkdbag. Valid With thisform .batal() .aktif(.f.) .commandaktif(.f.) .kdbagakh()

Endwith SELECT bagian SET ORDER TO tag idxbagian WITH thisform IF !EMPTY(.txtkdbag.value) IF SEEK(.txtkdbag.value) jwb=MESSAGEBOX("Bagian sudah ada, Lihat/Ubah (Y/N)?",; 4+64,"Info Bagian") IF jwb=6 .txtnamabag.value=namabag .txtgapok.value=gapok .txtgajiperhari.value=gajiperhari .aktif(.t.) Else .batal() return 0 endif else .aktif(.t.) endif Endif Endwith

-Procedure txtgajiperhari. Lostfocus PUBLIC mkdbag mkdbag=thisform.Txtkdbag.Value thisform.commandaktif(.t.)

-Procedure cmdsimpan. Click thisform.simpan() thisform.kdbagakh() thisform.txtkdbag.SetFocus

-Procedure cmdhapus. Click thisform.hapus() thisform.kdbagakh() thisform.Txtkdbag.SetFocus

-Procedure cmdlihat. Click thisform.simpan() thisform.lihat()

-Procedure cmdcetak. Click thisform.simpan() thisform.cetak()

-Procedure cmdbatal. Click thisform.batal() thisform.kdbagakh() thisform.aktif(.f.) thisform.Txtkdbag.SetFocus

-Procedure cmdselsesai. Click thisform.selesai()

Running Program

You might also like