• Tidak ada hasil yang ditemukan

BAB III. ANALISIS DAN PERANCANGAN SISTEM

H. Desain User Interface

I. Desain Output

6. Proses Penentuan Kenaikan Pangkat

Pada bagian ini terdapat proses untuk menentukan apakah seorang guru berhak untuk naik pangkat atau tidak. Proses ini akan menghitung data point tiap guru yang tanggal pengajuannya sama

dengan tanggal pengajuan yang telah diinputkan oleh penilai. Kemudian dibandingkan apakah jumlah total point yang diraih lebih besar atau sama dengan jumlah point minimal yang telah ditentukan oleh Dinas Pendidikan Dan Kebudayaan. Apabila point tersebut lebih besar atau sama dengan point minimal yang harus dipenuhi maka dalam kolom keputusan akan menampilkan result bahwa guru tersebut berhak naik pangkat ke jenjang pangkat yang setingkat lebih tinggi dari pangkat sebelumnya. Berikut adalah proses penentuan kenaikan pangkatnya.

fpeg.RecordSource = " select concat(hasil_awal.NIPpen, hasil_awal.NIPP) ssn, NIP, nama, pangkat, jabatan from pegawai, hasil_awal where pegawai.NIP = hasil_awal.NIPP and hasil_awal.tgl_mengajukan = '" & tanggal.Value & "' and NIPpen = '" & diproses.Caption & "' group by ssn " funsur.Refresh fpeg.Refresh fakhir.Refresh If fpeg.Recordset.RecordCount > 0 Then jpeg = fpeg.Recordset.RecordCount fpeg.Recordset.MoveFirst For i = 1 To jpeg

If fpeg.Recordset!nip = fpeg.Recordset!nip Then fakhir.Recordset.AddNew

fakhir.Recordset!periksa = diproses.Caption fakhir.Recordset!nipp = fpeg.Recordset!nip fakhir.Recordset!tgl_mengajukan = tanggal.Value

funsur.RecordSource = "select NIP, NIPpen, NIPP, kode_pointawal, tgl_mengajukan, kuantitas,jumlah from hasil_awal, pegawai where tgl_mengajukan < '" & tanggal.Value & "'And pegawai.NIP = hasil_awal.NIPP"

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then junsur = funsur.Recordset.RecordCount total1 = 0 funsur.Recordset.MoveFirst For j = 1 To junsur

End If

If funsur.Recordset.RecordCount = 0 Then

fpeg.RecordSource = " select concat(hasil_awal.NIPpen, hasil_awal.NIPP) ssn, NIP, nama, pangkat, jabatan from pegawai, hasil_awal where pegawai.NIP = hasil_awal.NIPP and hasil_awal.tgl_mengajukan = '" & tanggal.Value & "' and NIPpen = '" & diproses.Caption & "' group by ssn "

fpeg.Refresh

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total1 = 0 End If End If funsur.Recordset.MoveNext Next End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' " funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total2 = 0 For j = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total2 = total2 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

totalnya = total1 + total2

fakhir.Recordset!nilai_total = totalnya

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '001' and kode_pointawal <= '110' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total3 = 0 For j = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total3 = total3 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '110' and kode_pointawal <= '141' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total4 = 0 For j = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total4 = total4 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

If fpeg.Recordset!pangkat = "Guru Baru" And totalnya >= 25 Then If total3 < 20 Then

hasil = "Unsur Utama Kurang Dari 80 %" End If

If total3 >= 20 And total4 <= 5 Then hasil = "Naik Pangkat ke jenjang Pengatur Muda" End If

End If

If fpeg.Recordset!pangkat = "Guru Baru" And totalnya < 25 Then hasil = "Tidak Naik Pangkat ke Pengatur Muda"

End If

If fpeg.Recordset!pangkat = "Pengatur Muda" And totalnya >= 40 Then If total3 < 12 Then

hasil = "Unsur Utama Kurang Dari 80 %" End If

If total3 >= 12 And total4 <= 3 Then

hasil = "Naik Pangkat ke jenjang Pengatur Muda Tingkat I" End If

End If

If fpeg.Recordset!pangkat = "Pengatur Muda" And totalnya < 40 Then hasil = "Tidak Naik Pangkat ke jenjang Pengatur Muda Tingkat I" End If

If fpeg.Recordset!pangkat = "Pengatur Muda Tingkat I" And totalnya >= 60 Then If total3 < 16 Then

hasil = "Unsur Utama Kurang Dari 80 %" End If

hasil = "Naik Pangkat ke jenjang Pengatur" End If

End If

If fpeg.Recordset!pangkat = "Pengatur Muda Tingkat I" And totalnya < 60 Then hasil = "Tidak Naik Pangkat ke jenjang Pengatur"

End If

If fpeg.Recordset!pangkat = "Pengatur" And totalnya >= 80 Then If total3 < 16 Then

hasil = "Unsur Utama Kurang Dari 80 %" End If

If total3 >= 16 And total4 <= 4 Then

hasil = "Naik Pangkat ke jenjang Pengatur Tingkat I" End If

End If

If fpeg.Recordset!pangkat = "Pengatur" And totalnya < 80 Then hasil = "Tidak Naik Pangkat ke jenjang Pengatur Tingkat I" End If

If fpeg.Recordset!pangkat = "Pengatur Tingkat I" And totalnya >= 100 Then If total3 < 16 Then

hasil = "Unsur Utama Kurang Dari 80 %" End If

If total3 >= 16 And total4 <= 4 Then hasil = "Naik Pangkat ke jenjang Penata Muda" End If

End If

If fpeg.Recordset!pangkat = "Pengatur Tingkat I" And totalnya < 100 Then hasil = "Tidak Naik Pangkat ke jenjang Penata Muda"

End If

If fpeg.Recordset!pangkat = "Penata Muda" And totalnya >= 150 Then If total3 < 40 Then

hasil = "Unsur Utama Kurang Dari 80 %" End If

If total3 >= 40 Then

hasil = "Naik Pangkat ke jenjang Penata Muda Tingkat I" End If

End If

If fpeg.Recordset!pangkat = "Penata Muda" And totalnya < 150 Then hasil = "Tidak Naik Pangkat ke jenjang Penata Muda Tingkat I" End If

If fpeg.Recordset!pangkat = "Penata Muda Tingkat I" And totalnya >= 200 Then If total3 < 40 Then

End If

If total3 >= 40 And total4 <= 10 Then hasil = "Naik Pangkat ke jenjang Penata" End If

End If

If fpeg.Recordset!pangkat = "Penata Muda Tingkat I" And totalnya < 200 Then hasil = "Tidak Naik Pangkat ke jenjang Penata"

End If

If fpeg.Recordset!pangkat = "Penata" And totalnya >= 300 Then If total3 < 80 Then

hasil = "Unsur Utama Kurang Dari 80 %" End If

If total3 >= 80 And total4 <= 20 Then hasil = "Naik Pangkat ke jenjang Penata Tingkat I" End If

End If

If fpeg.Recordset!pangkat = "Penata" And totalnya < 300 Then hasil = "Tidak Naik Pangkat ke jenjang Penata Tingkat I" End If

If fpeg.Recordset!pangkat = "Penata Tingkat I" And totalnya >= 400 Then If total3 < 80 Then

hasil = "Unsur Utama Kurang Dari 80 %" End If

If total3 >= 80 And total4 <= 20 Then hasil = "Naik Pangkat ke jenjang Pembina" End If

End If

If fpeg.Recordset!pangkat = "Penata Tingkat I" And totalnya < 400 Then hasil = "Tidak Naik Pangkat ke jenjang Pembina"

End If

If fpeg.Recordset!pangkat = "Pembina" And totalnya >= 550 Then

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '001' and kode_pointawal <= '085' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total5 = 0 For j = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total5 = total5 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '086' and kode_pointawal <= '110' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total6 = 0 For k = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total6 = total6 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '111' and kode_pointawal <= '141' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total7 = 0 For n = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total7 = total7 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If If total5 < 108 Then

hasil = "Unsur Utama Kurang Dari 72 %" End If

If total6 < 12 Then

hasil = "Unsur Pengembangan Profesi Kurang Dari 8 %" End If

If total5 >= 108 And total6 >= 12 And total7 <= 30 Then hasil = "Naik Pangkat ke jenjang Pembina Tingkat I" End If

End If

hasil = "Tidak Naik Pangkat ke jenjang Pembina Tingkat I" End If

If fpeg.Recordset!pangkat = "Pembina Tingkat I" And totalnya >= 700 Then

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '001' and kode_pointawal <= '085' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total5 = 0 For j = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total5 = total5 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '086' and kode_pointawal <= '110' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total6 = 0 For k = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total6 = total6 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '111' and kode_pointawal <= '141' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total7 = 0 For n = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total7 = total7 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

If total5 < 108 Then

hasil = "Unsur Utama Kurang Dari 72 %" End If

If total6 < 12 Then

hasil = "Unsur Pengembangan Profesi Kurang Dari 8 %" End If

If total5 >= 108 And total6 >= 12 Then

hasil = "Naik Pangkat ke jenjang Pembina Utama Muda" End If

End If

If fpeg.Recordset!pangkat = "Pembina Tingkat I" And totalnya < 700 Then hasil = "Tidak Naik Pangkat ke jenjang Pembina Utama Muda" End If

If fpeg.Recordset!pangkat = "Pembina Utama Muda" And totalnya >= 850 Then

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '001' and kode_pointawal <= '085' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total5 = 0 For j = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total5 = total5 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '086' and kode_pointawal <= '110' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total6 = 0 For k = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total6 = total6 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '111' and kode_pointawal <= '141' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total7 = 0 For n = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total7 = total7 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

If total5 < 108 Then

hasil = "Unsur Utama Kurang Dari 72 %" End If

If total6 < 12 Then

hasil = "Unsur Pengembangan Profesi Kurang Dari 8 %" End If

If total5 >= 108 And total6 >= 12 Then

hasil = "Naik Pangkat ke jenjang Pembina Utama Madya" End If

End If

If fpeg.Recordset!pangkat = "Pembina Utama Muda" And totalnya < 850 Then hasil = "Tidak Naik Pangkat ke jenjang Pembina Utama Madya"

End If

If fpeg.Recordset!pangkat = "Pembina Utama Madya" And totalnya >= 1000 Then

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '001' and kode_pointawal <= '085' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total5 = 0 For j = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total5 = total5 + funsur.Recordset!jumlah

End If

funsur.Recordset.MoveNext Next

End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '086' and kode_pointawal <= '110' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total6 = 0 For k = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total6 = total6 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

funsur.RecordSource = "select * from hasil_awal where NIPpen = '" & diproses.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "' and kode_pointawal >= '111' and kode_pointawal <= '141' "

funsur.Refresh If funsur.Recordset.RecordCount > 0 Then funsur.Recordset.MoveFirst junsur = funsur.Recordset.RecordCount total7 = 0 For n = 1 To junsur

If funsur.Recordset!nipp = fpeg.Recordset!nip Then total7 = total7 + funsur.Recordset!jumlah End If

funsur.Recordset.MoveNext Next

End If

If total5 < 108 Then

hasil = "Unsur Utama Kurang Dari 72 %" End If

If total6 < 12 Then

hasil = "Unsur Pengembangan Profesi Kurang Dari 8 %" End If

If total5 >= 108 And total6 >= 12 And total7 <= 30 Then hasil = "Naik Pangkat ke jenjang Pembina Utama" End If

End If

If fpeg.Recordset!pangkat = "Pembina Utama Madya" And totalnya < 1000 Then hasil = "Tidak Naik Pangkat ke jenjang Pembina Utama"

End If

If hasil = "Naik Pangkat ke jenjang Pengatur Muda" Or hasil = "Naik Pangkat ke jenjang Pengatur Muda Tingkat I" Or hasil = "Naik Pangkat ke jenjang Pengatur" Or hasil = "Naik Pangkat ke jenjang Pengatur Tingkat I" Or hasil = "Naik Pangkat ke jenjang Penata Muda" Or hasil = "Naik Pangkat ke jenjang Penata Muda Tingkat I" Or hasil = "Naik Pangkat ke jenjang Penata" Or hasil = "Naik Pangkat ke jenjang Penata Tingkat I" Or hasil = "Naik Pangkat ke jenjang Pembina" Or hasil = "Naik Pangkat ke jenjang Pembina Tingkat I" Or hasil = "Naik Pangkat ke jenjang Pembina Utama Muda" Or hasil = "Naik Pangkat ke jenjang Pembina Utama Madya" Or hasil = "Naik Pangkat ke jenjang Pembina Utama" Then

If totalnya > 25 And totalnya <= 40 Then fpeg.Recordset!jabatan = "Guru Pratama" End If

If totalnya > 40 And totalnya <= 60 Then fpeg.Recordset!jabatan = "Guru Pratama Tingkat I" End If

If totalnya > 60 And totalnya <= 80 Then fpeg.Recordset!jabatan = "Guru Muda" End If

If totalnya > 80 And totalnya <= 100 Then fpeg.Recordset!jabatan = "Guru Muda Tingkat I" End If

If totalnya > 100 And totalnya <= 150 Then fpeg.Recordset!jabatan = "Guru Madya" End If

If totalnya > 150 And totalnya <= 200 Then fpeg.Recordset!jabatan = "Guru Madya Tingkat I" End If

If totalnya > 200 And totalnya <= 300 Then fpeg.Recordset!jabatan = "Guru Dewasa" End If

If totalnya > 300 And totalnya <= 400 Then fpeg.Recordset!jabatan = "Guru Dewasa Tingkat I" End If

If totalnya > 400 And totalnya <= 550 Then fpeg.Recordset!jabatan = "Guru Pembina" End If

If totalnya > 550 And totalnya <= 700 Then fpeg.Recordset!jabatan = "Guru Pembina Tingkat I" End If

fpeg.Recordset!jabatan = "Guru Utama Muda" End If

If totalnya > 850 And totalnya <= 1000 Then fpeg.Recordset!jabatan = "Guru Utama Madya" End If

If totalnya > 1000 Then

fpeg.Recordset!jabatan = "Guru Utama" End If End If fakhir.Recordset!keputusan = hasil fpeg.Recordset.update fakhir.Recordset.update End If fpeg.Recordset.MoveNext Next End If

fpeg.RecordSource = " select concat(hasil_awal.NIPpen, hasil_awal.NIPP) ssn, NIP, nama, pangkat, jabatan from pegawai, hasil_awal where pegawai.NIP = hasil_awal.NIPP and hasil_awal.tgl_mengajukan = '" & tanggal.Value & "' and NIPpen = '" & diproses.Caption & "' group by ssn "

fpeg.Refresh

jpeg = fpeg.Recordset.RecordCount fpeg.Recordset.MoveFirst For i = 1 To jpeg

If fpeg.Recordset!nip = fpeg.Recordset!nip Then nip.Caption = fpeg.Recordset!nip

fakhir.RecordSource = " Select periksa, NIPP, nama, tgl_mengajukan, nilai_total, keputusan from pegawai, hasil_akhir where pegawai.NIP = hasil_akhir.NIPP And hasil_akhir.NIPP = '" & nip.Caption & "' and tgl_mengajukan = '" & tanggal.Value & "'" fakhir.Refresh

If fakhir.Recordset.RecordCount = 2 Then

fakhir.RecordSource = " Select periksa, NIPP, nama, tgl_mengajukan, nilai_total,keputusan from pegawai, hasil_akhir where pegawai.NIP = hasil_akhir.NIPP and tgl_mengajukan = '" & tanggal.Value & "'"

fakhir.Refresh

jakhir = fakhir.Recordset.RecordCount For w = 1 To jakhir

If fpeg.Recordset!nip = fakhir.Recordset!nipp Then

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Pengatur Muda" Then fpeg.Recordset!pangkat = "Pengatur Muda"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Pengatur Muda Tingkat I" Then fpeg.Recordset!pangkat = "Pengatur Muda Tingkat I"

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Pengatur" Then fpeg.Recordset!pangkat = "Pengatur"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Pengatur Tingkat I" Then fpeg.Recordset!pangkat = "Pengatur Tingkat I"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Penata Muda" Then fpeg.Recordset!pangkat = "Penata Muda"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Penata Muda Tingkat I" Then fpeg.Recordset!pangkat = "Penata Muda Tingkat I"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Penata" Then fpeg.Recordset!pangkat = "Penata"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Penata Tingkat I" Then fpeg.Recordset!pangkat = "Penata Tingkat I"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Pembina" Then fpeg.Recordset!pangkat = "Pembina"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Pembina Tingkat I" Then fpeg.Recordset!pangkat = "Pembina Tingkat I"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Pembina Utama Muda" Then fpeg.Recordset!pangkat = "Pembina Utama Muda"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Pembina Utama Madya" Then fpeg.Recordset!pangkat = "Pembina Utama Madya"

End If

If fakhir.Recordset!keputusan = "Naik Pangkat ke jenjang Pembina Utama" Then fpeg.Recordset!pangkat = "Pembina Utama"

End If fakhir.Refresh End If fakhir.Recordset.MoveNext Next End If End If fpeg.Recordset.MoveNext Next

fakhir.RecordSource = "Select periksa, NIPP, nama, tgl_mengajukan, nilai_total, keputusan from pegawai, hasil_akhir where pegawai.NIP = hasil_akhir.NIPP"

fakhir.Refresh

Dim jfdp As Integer

fdp.RecordSource = " select * from periksadp, pegawai where pegawai.NIP = periksadp.gawai And tgl = '" & tanggal.Value & "' and pen = '" & diproses.Caption & "' "

fdp.Refresh

If fdp.Recordset.RecordCount > 0 Then jfdp = fdp.Recordset.RecordCount fdp.Recordset.MoveFirst For i = 1 To jfdp

If fdp.Recordset!gawai = fdp.Recordset!gawai Then fakhir.Recordset.AddNew

fakhir.Recordset!periksa = diproses.Caption fakhir.Recordset!nipp = fdp.Recordset!gawai fakhir.Recordset!tgl_mengajukan = tanggal.Value

ada.RecordSource = "Select periksa, NIPP, nama, tgl_mengajukan, nilai_total, keputusan from pegawai, hasil_akhir where hasil_akhir.NIPP = " & fdp.Recordset!gawai & ""

ada.Refresh Dim jada As Integer

jada = ada.Recordset.RecordCount For r = i To jada fakhir.Recordset!nilai_total = ada.Recordset!nilai_total ada.Recordset.MoveNext Next TextBox1.Value = Text1.Value - 1

Dokumen terkait