recruitment

14
Ex.No: 10 RECRUITMENT SYSTEM Date: A IM To analyze, design and develop code for Recruitment System using Rational Rose software P RO B L E M S TATE ME N T Recruitment System is used to process the applicant easily. It also contains search filters to filters the applicants based on age, gender, experience, skills etc. It is mainly used by HR personnel in corporates to efficiently analyze the applications O VERAL L DE S CR I P T I O N The Recruitment System is an integrated system that has four modules as part of it. The four modules are, 1) Register: In this module, the user can register his/her details to use in the system. 2) Search Jobs: In this module, the user can search jobs. 3) Apply Jobs: In this module, the user can apply jobs. S O F T W AR E RE Q U IR M ENT S Microsoft Visual Basic 6.0 Rational Rose Microsoft Access HARDWARE REQUIRMENTS 1GB RAM Pentium IV Processor 100 GB HARDDISK Use case diagram

Upload: karthick-raja

Post on 23-Jan-2017

13 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: Recruitment

Ex.No: 10 RECRUITMENT SYSTEM Date:

A IM To analyze, design and develop code for Recruitment System using Rational Rose

software

P RO B L E M S TATE ME N T Recruitment System is used to process the applicant easily. It also contains search

filters to filters the applicants based on age, gender, experience, skills etc.It is mainly used by HR personnel in corporates to efficiently analyze the applications

O VERAL L DE S CR I P T I O N The Recruitment System is an integrated system that has four modules as part of it.

The four modules are,1) Register: In this module, the user can register his/her details to use in the system.2) Search Jobs: In this module, the user can search jobs.3) Apply Jobs: In this module, the user can apply jobs.

SOF TWARE REQ UIRMENTS

Microsoft Visual Basic 6.0 Rational Rose Microsoft Access

HARDWARE REQUIRMENTS 1GB RAM Pentium IV Processor 100 GB HARDDISK

Use case diagram

Page 2: Recruitment

Class diagram

Page 3: Recruitment

Sequence Diagram (Applicant)

Sequence Diagram(HR)

Page 4: Recruitment

Collaboration Diagram(Applicant)

Collaboration Diagram (HR)

Page 5: Recruitment

State Diagram

Page 6: Recruitment

State Activity Diagram

Coding:

Page 7: Recruitment

Home form:

Private Sub Command1_Click()

Status.Show

End Sub

Private Sub Command2_Click()

Register.Show

End Sub

Private Sub Command4_Click()

If hr_username = "admin" And hr_password = "admin" Then

hr_username = ""

hr_password = ""

Hr.Show

Else

Page 8: Recruitment

MsgBox "Invalid Username / Password", vbCritical, "Recruitment System"

End If

End Sub

Private Sub Image2_Click()

Unload Me

End Sub

Register form

Dim c As Integer

Private Sub Command2_Click()

Dim cn As New ADODB.Connection

Dim rs As New ADODB.Recordset

cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\record.mdb;Persist Security Info=False"

Page 9: Recruitment

rs.Open "record", cn, adOpenKeyset, adLockPessimistic, adCmdTable

c = c + 1

rs.AddNew

rs("Name") = Text1

rs("Age") = Text2

rs("DOB") = Text3

rs("Phno") = Text4

rs("Qualification") = Text5

rs("Percentage") = Text6

rs("Id") = c

rs("Status") = "Yet to be processed. Waiting for the response from HR. Stay Tuned for updates"

MsgBox "Registration Successful...Your Application id is " & c & "", vbInformation, "Recruitment System"

rs.Update

rs.Close

cn.Close

Unload Me

End Sub

Private Sub Form_Load()

Dim cn As New ADODB.Connection

Dim rs As New ADODB.Recordset

cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\record.mdb;Persist Security Info=False"

rs.Open "select * from record", cn, adOpenKeyset, adLockOptimistic

c = rs.RecordCount

End Sub

Page 10: Recruitment

Private Sub Timer1_Timer()

Label8.Caption = Now

End Sub

Hr form:

Private Sub Command1_Click()

On Error Resume Next

Dim cn As New ADODB.Connection

Dim rs As New ADODB.Recordset

cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\record.mdb;Persist Security Info=False"

rs.Open "update record set status='" + Text2.Text + "' where Id=" + Text1.Text + "", cn, adOpenKeyset, adLockOptimistic

MsgBox "Response sent successfully..", vbInformation, "Recruitment System"

Unload Me

Page 11: Recruitment

Me.Show

End Sub

Private Sub Command2_Click()

On Error Resume Next

Dim cn As New ADODB.Connection

Dim rs As New ADODB.Recordset

cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\record.mdb;Persist Security Info=False"

rs.Open "delete from record where Id=" & Text1.Text & "", cn, adOpenKeyset, adLockOptimistic

MsgBox "Delete successfully..", vbInformation, "Recruitment System"

Unload Me

Me.Show

End Sub

Private Sub Form_Load()

On Error Resume Next

Dim oconn As New ADODB.Connection

Dim rs As New ADODB.Recordset

Dim strSQL As String

strSQL = "select * from record"

Set oconn = New ADODB.Connection

oconn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\record.mdb;Persist Security Info=False"

rs.CursorType = adOpenStatic

rs.CursorLocation = adUseClient

Page 12: Recruitment

rs.LockType = adLockOptimistic

rs.Open strSQL, oconn, adOpenKeyset, adLockOptimistic

Set DataGrid1.DataSource = rs

End Sub

Status form:

Private Sub Command1_Click()

Dim cn As New ADODB.Connection

Dim rs As New ADODB.Recordset

cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\record.mdb;Persist Security Info=False"

rs.Open "select * from record where Id=" & Text1.Text & "", cn, adOpenKeyset, adLockOptimistic

If (rs(0).Value = Text2.Text) Then

Text3.Text = rs(7).Value

Page 13: Recruitment

Else

MsgBox "Please verify the details you have given", vbCritical, "Recruitment System"

End If

End Sub