DISKON

KODE PROGRAM:

Private Sub Command1_Click()

TXTRATA = Val((TXTTUGAS.Text) + Val(TXTKUIS.Text) + Val(TXTUTS.Text) + Val(TXTUAS.Text)) / 4

End Sub

 

Private Sub Command2_Click()

TXTNPM.SetFocus

TXTNPM = “”

TXTNAMA = “”

TXTTUGAS = “”

TXTKUIS = “”

TXTUTS = “”

TXTUAS = “”

TXTRATA = “”

End Sub

 

Private Sub Command3_Click()

Unload Me

End Sub

 

Private Sub TXTKUIS_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

TXTUTS.SetFocus

End If

End Sub

 

Private Sub TXTNAMA_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

TXTTUGAS.SetFocus

End If

End Sub

 

Private Sub TXTNPM_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

TXTNAMA.SetFocus

End If

End Sub

 

Private Sub TXTTUGAS_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

TXTKUIS.SetFocus

End If

End Sub

 

Private Sub TXTUTS_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

TXTUAS.SetFocus

End If

End Sub

 

 

KODE PROGRAM:PERHITUNGAN GAJI KARYAWAN

 

Private Sub CMDLAGI_Click()

kosong

End Sub

 

 

Private Sub cbogolongan_Click()

Dim gapok, pajak, tunjangan, total As Variant

Select Case cbogolongan.Text

Case “I”

gapok = 1500000

tunjangan = 150000

Case “II”

gapok = 2000000

tunjangan = 200000

Case “III”

gapok = 2500000

tunjangan = 250000

Case “IV”

gapok = 3000000

tunjangan = 300000

Case “V”

gapok = 3500000

tunjangan = 350000

Case Else

gapok = 0

tunjangan = 0

End Select

total = gapok + tunjangan

pajak = total * 0.1

txtgapok.Text = gapok

txttunjangan.Text = tunjangan

txtpajak.Text = pajak

txttotal.Text = total – pajak

 

End Sub

Public Sub kosong()

txtnidn.SetFocus

txtnidn.Text = “”

txtnama.Text = “”

cbogolongan.Text = “”

txtgapok.Text = “”

txttunjangan.Text = “”

txtpajak.Text = “”

txttotal.Text = “”

End Sub

 

Private Sub cmdBATAL_Click()

txtnidn.SetFocus

txtnidn.Text = “”

txtnama.Text = “”

cbogolongan.Text = “”

txtgapok.Text = “”

txttunjangan.Text = “”

txtpajak.Text = “”

txttotal.Text = “”

End Sub

 

Private Sub CMDKELUAR_Click()

Unload Me

End Sub

 

Private Sub Form_Load()

cbogolongan.AddItem “I”

cbogolongan.AddItem “II”

cbogolongan.AddItem “III”

cbogolongan.AddItem “IV”

cbogolongan.AddItem “V”

End Sub

 

Private Sub txtnidn_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

txtnama.SetFocus

End If

End Sub

 

 

 

About irfanstmik

KEJUJURAN ADALAH MODAL UTAMA UNTUK MEMPEROLEH KEPERCAYAAN

Posted on December 19, 2011, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: