Академический Документы
Профессиональный Документы
Культура Документы
Question:
SOFTWARE REQURIEMENTS:
Microsoft Visual Basic 6.0
Rational Rose
Microsoft Access.
HARDWARE REQURIMENTS:
128MB RAM
Pentium III Processor
USECASE DIAGRAM
CLASS DIAGRAM
ACTIVITY DIAGRAM
Payroll
Employee Salary
Detail
Valid
Store In Database
Return Details
Display details
Return Details
Exit
COLLABRATION DIAGRAM
1: Login
Employee System
2: Valid
6: Display details
5: Return Details
9: Return Details
4: Store In Database
8: Ask For Basic Pay,PF
Employee
Database
COMPONENT DIAGRAM
DEPLOYMENT DIAGRAM:
Employee Access
PayRoll
Databe
System
IMPLEMENTATION:
Form1:
If (a = False) Then
MsgBox ("Enter Correct Username and Password")
End If
End Sub
Form2
Private Sub
Command3_Click()
Form5.Show
Unload
Me End
Sub
Private Sub
Command4_Click() Unload
Me
End Sub
Form3
a = False
cn.Open "dsn=payroll"
rs.ActiveConnection =
cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0))
Then Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
Text5.Text = rs(4)
Text6.Text = rs(5)
Text7.Text = rs(6)
Text8.Text = rs(7)
a = True
End If
rs.MoveNe
xt Wend
If (a = False) Then
End Sub
Private Sub
Command2_Click()
Form2.Show
Unload
Me End
Sub
Private Sub
Command3_Click() Unload
Me
End Sub
Form4
Private Sub Command1_Click()
cn.Open "dsn=payroll"
rs.ActiveConnection =
cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select *
from Details" End
With
With rs
.AddNew
.Fields(0) = Text1.Text
.Fields(1) = Text2.Text
.Fields(2) = Text3.Text
.Fields(3) = Val(Text4.Text)
.Fields(4) = Val(Text5.Text)
.Fields(5) = Val(Text6.Text)
.Fields(6) = Val(Text7.Text)
.Fields(7) = Val(Text8.Text)
.Update
End With
Text1.Text =
"" Text2.Text
= ""
Text3.Text =
"" Text4.Text
= ""
Text5.Text =
"" Text6.Text
= ""
Text7.Text =
"" Text8.Text
= "" End Sub
Private Sub
Command2_Click()
Form2.Show
Unload
Me End
Sub
Private Sub
Command3_Click() Unload
Me
End Sub
End Sub
Form5
a = False
cn.Open "dsn=payroll"
rs.ActiveConnection =
cn
With rs.CursorType = adOpenStatic.CursorLocation = adUseClient.LockType =
adLockOptimistic
.Open "select *
from Details" End
Withrs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0))
Then rs.Delete
rs.Upde
= True
End If
rs.MoveNe
xt Wend
If (a = False) Then
End Sub
Private Sub
Command2_Click()
Form2.Show
Unload
Me End
Sub
Private Sub
Command3_Click() Unload
Me
End Sub
RESULT:
This project was carried out in a sequential manner to design and implement the
“Payroll System”. Thus the outcome of the project is efficient. The Payroll System caters the
varied requirements of the user to perform various options.