Anda di halaman 1dari 19

CLASS DIAGRAM:

USECASE DIAGRAM:

search job

login candi register hr

verify form

update status

attend apptitude

know status

attend interview

SEQUENCE DIAGRAM:
candidate search job login company admin

register datas submit candidate information

reports status view status attend apptitude test reports information acknowledge

COLLABORATION DIAGRAM:

candidate 1: search job 2: login 3: register datas 7: attend apptitude test admin

6: view status 9: acknowledge

4: submit candidate information 5: reports status 8: reports information company

COMPONENT DIAGRAM:

candidat e

company

<<Standard EXE>> admin

DEPLOYMENT DIAGRAM:

candidat e

compan y

admin

SCREEN SHOTS:

DATABASE:

CODING: Form1: Private Sub Picture1_Click() Form2.Show Form1.Hide End Sub Private Sub Picture3_Click() End End Sub Private Sub Picture4_Click() Form9.Show Form1.Hide End Sub Form2: Private Sub Command1_Click() Form1.Show Form2.Hide End Sub Private Sub Command2_Click() Form5.Show Form2.Hide End Sub Private Sub Command3_Click() Form4.Show Form2.Hide End Sub Private Sub Command4_Click() Form3.Show Form2.Hide End Sub Form3: Private Sub Command1_Click() Dim newusr As New candidate newusr.newuser End Sub Private Sub Command2_Click() Form2.Show Form3.Hide Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub

Private Sub Text2_Change() Text2.PasswordChar = "*" Text2.MaxLength = 5 End Sub Private Sub Text3_Change() Text3.PasswordChar = "*" Text3.MaxLength = 5 End Sub Form4: Private Sub Command1_Click() Dim sta As New candidate sta.status End Sub Private Sub Command2_Click() Form2.Show Form4.Hide Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub Form5: Private Sub Command1_Click() Dim log As New candidate log.login End Sub Private Sub Form_Load() Form5.Text1.Text = "" Form5.Text2.Text = "" End Sub Private Sub Text2_Change() Text2.PasswordChar = "*" Text2.MaxLength = 5 End Sub Form6: Private Sub Combo1_Change() If (Form6.Combo1.Text = "B.E" Or Form6.Combo1.Text = "B.C.A" Or Form6.Combo1.Text = "B.B.A" Or Form6.Combo1.Text = "B.Com" Or Form6.Combo1.Text = "B.Tech") Then Form6.Text10.Visible = False Form6.Text11.Visible = False End If End Sub Private Sub Combo1_KeyPress(KeyAscii As Integer)

If Not ((KeyAscii > 65) Or (KeyAscii < 90) And (KeyAscii > 97) Or (KeyAscii < 122) And (KeyAscii = 32) Or (KeyAscii = 46)) Then KeyAscii = 0 Combo1.Text = "" End If End Sub Private Sub Command1_Click() Dim reg As New candidate reg.register End Sub Private Sub Form_Load() Text1.ToolTipText = "Accepts Only Text Values" Text2.ToolTipText = "Accepts Only Numbers And Slashes" Text3.ToolTipText = "Accepts Only Rounded Off Numbers" Text4.ToolTipText = "Accepts Only Text Values" Text6.ToolTipText = "Accepts only Positive Numbers" Text7.ToolTipText = "Accepts Only Positive Numbers" Text8.ToolTipText = "Accepts Only Text Values" Text9.ToolTipText = "Accepts Only Positive Numbers" Timer1.Interval = 200 Timer1.Enabled = True Combo1.AddItem "B.E", 0 Combo1.AddItem "B.C.A", 1 Combo1.AddItem "B.B.A", 2 Combo1.AddItem "B.Tech", 3 Combo1.AddItem "B.Com", 4 End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) If Not ((KeyAscii > 65) Or (KeyAscii < 90) And (KeyAscii > 97) Or (KeyAscii < 122) And (KeyAscii = 32) Or (KeyAscii = 46)) Then KeyAscii = 0 Text1.Text = "" End If End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) If Not ((KeyAscii > 47) And (KeyAscii < 58) Or (KeyAscii = 47)) Then KeyAscii = 0 Text2.Text = "" End If End Sub Private Sub Text3_KeyPress(KeyAscii As Integer) If Not ((KeyAscii > 47) And (KeyAscii < 58)) Then KeyAscii = 0 Text3.Text = "" End If End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer) If Not ((KeyAscii > 65) Or (KeyAscii < 90) And (KeyAscii > 97) Or (KeyAscii < 122) And (KeyAscii = 32) Or (KeyAscii = 46)) Then KeyAscii = 0 Text4.Text = "" End If End Sub Private Sub Text6_KeyPress(KeyAscii As Integer) If Not ((KeyAscii > 47) And (KeyAscii < 58) Or (KeyAscii = 46)) Then KeyAscii = 0 Text6.Text = "" End If End Sub Private Sub Text7_KeyPress(KeyAscii As Integer) If Not ((KeyAscii > 47) And (KeyAscii < 58) Or (KeyAscii = 46)) Then KeyAscii = 0 Text7.Text = "" End If End Sub Private Sub Text8_KeyPress(KeyAscii As Integer) If Not ((KeyAscii > 65) Or (KeyAscii < 90) And (KeyAscii > 97) Or (KeyAscii < 122) And (KeyAscii = 32) Or (KeyAscii = 46)) Then KeyAscii = 0 Text8.Text = "" End If End Sub Private Sub Text9_KeyDown(KeyCode As Integer, Shift As Integer) If (KeyCode = 13) Then Command1.SetFocus End If End Sub Private Sub Text9_KeyPress(KeyAscii As Integer) If Not ((KeyAscii > 47) And (KeyAscii < 58) Or (KeyAscii = 46) Or (KeyAscii = 13)) Then KeyAscii = 0 Text9.Text = "" End If End Sub Private Sub Timer1_Timer() Label14.Caption = Format$(Now, "ddd,dd-mmm-yyyy") Label15.Caption = Format$(Time, "hh:mm:ss am/pm") End Sub

Form7: Dim ctr As Integer Private Sub Command1_Click() Timer1.Enabled = False If Form7.Option2 Then ctr = ctr + 1 ElseIf (Form7.Option1 Or Form7.Option3 Or Form7.Option4) Then ctr = ctr - 1 End If If Form7.Option8 Then ctr = ctr + 1 ElseIf (Form7.Option5 Or Form7.Option6 Or Form7.Option7) Then ctr = ctr - 1 End If If Form7.Option12 Then ctr = ctr + 1 ElseIf (Form7.Option9 Or Form7.Option10 Or Form7.Option11) Then ctr = ctr - 1 End If If Form7.Option15 Then ctr = ctr + 1 ElseIf (Form7.Option13 Or Form7.Option14 Or Form7.Option16) Then ctr = ctr - 1 End If If Form7.Option20 Then ctr = ctr + 1 ElseIf (Form7.Option17 Or Form7.Option18 Or Form7.Option19) Then ctr = ctr - 1 End If If ctr >= 3 Then Form6.Adodc1.Recordset.Fields("apptituderes") = "Cleared" Form6.Adodc1.Recordset.Update GoTo test Else Form6.Adodc1.Recordset.Fields("apptituderes") = "Not Cleared" Form6.Adodc1.Recordset.Update GoTo test End If test: Form8.Show Form7.Hide End Sub Private Sub Form_Load() Timer1.Interval = 1000

Label6.Caption = 60 MsgBox ("ANSWER ALL THE QUESTIONS WITH IN THE TIMER EXPIRES....NEGATIVE MARKS WILL BE PROVIDED FOR A WRONG CHOICE.......ALL THE BEST!!!!!"), vbInformation, "ALERT MESSAGE" End Sub Private Sub Timer1_Timer() If Label6.Caption = 0 Then Timer1.Enabled = False MsgBox ("TIME EXPIRED"), vbOKOnly, "ALERT MESSAGE" Option1.Enabled = False Option2.Enabled = False Option3.Enabled = False Option4.Enabled = False Option5.Enabled = False Option6.Enabled = False Option7.Enabled = False Option8.Enabled = False Option9.Enabled = False Option10.Enabled = False Option11.Enabled = False Option12.Enabled = False Option13.Enabled = False Option14.Enabled = False Option15.Enabled = False Option16.Enabled = False Option17.Enabled = False Option18.Enabled = False Option19.Enabled = False Option20.Enabled = False ctr = ctr - 5 Else Label6.Caption = Label6.Caption - 1 End If End Sub Form8: Private Sub Label1_Click() Form2.Show Form8.Hide End Sub Private Sub Label2_Click() Form2.Show Form8.Hide End Sub

Private Sub Picture1_Click() Form2.Show Form8.Hide End Sub Private Sub Picture2_Click() Form11.Show Form8.Hide End Sub Private Sub Timer1_Timer() Dim c As Long c = 100 Picture2.Left = Picture2.Left + c If (Picture2.Left > Width) Then Picture2.Left = -Picture2.Width End If End Sub Form9: Private Sub Command1_Click() Dim a As Boolean a = False If (Text1.Text = "admin" And Text2.Text = "admin") Then a = True Form10.Show Form9.Hide End If If (a = False) Then MsgBox ("YOU ARE NOT THE ADMINISTRATOR"), vbCritical, "HR Panel" End If Text1.Text = "" Text2.Text = "" End Sub Private Sub Text2_Change() Text2.PasswordChar = "*" Text2.MaxLength = 5 End Sub Form10: Private Sub Command1_Click() Dim rec As New admin rec.recruit End Sub Private Sub Command2_Click() Dim del As New admin

del.check End Sub Private Sub Command3_Click() Dim val As New admin val.validate End Sub Private Sub Picture1_Click() Form1.Show Form10.Hide Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub CLASS MODULES: CANDIDATE: Dim msg As String Public Sub status() 'Form4.Adodc1.Refresh Form4.Adodc1.Recordset.MoveFirst Do If (Form4.Text1.Text = Form4.Adodc1.Recordset.Fields("appid")) Then Form4.Text2.Text = Form4.Adodc1.Recordset.Fields("name") Form4.Text3.Text = Form4.Adodc1.Recordset.Fields("status") End If Form4.Adodc1.Recordset.MoveNext Loop While Form4.Adodc1.Recordset.EOF = False GoTo test MsgBox "Please Verify The Details You Have Given", vbCritical, "Registration System" test: 'Form4.Text1.Text = "" 'Form4.Text2.Text = "" 'Form4.Text3.Text = "" End Sub Public Sub register() c = Form6.Adodc1.Recordset.RecordCount c=c+1 Form6.Adodc1.Recordset.AddNew Form6.Adodc1.Recordset.Fields("name") = Form6.Text1.Text Form6.Adodc1.Recordset.Fields("dob") = Form6.Text2.Text Form6.Adodc1.Recordset.Fields("age") = val(Form6.Text3.Text) Form6.Adodc1.Recordset.Fields("father'sname") = Form6.Text4.Text Form6.Adodc1.Recordset.Fields("qualification") = Form6.Combo1.Text Form6.Adodc1.Recordset.Fields("10thagg") = val(Form6.Text6.Text)

Form6.Adodc1.Recordset.Fields("12thagg") = val(Form6.Text7.Text) Form6.Adodc1.Recordset.Fields("ugcourse") = Form6.Text8.Text Form6.Adodc1.Recordset.Fields("ugagg") = val(Form6.Text9.Text) Form6.Adodc1.Recordset.Fields("appid") = c Form6.Adodc1.Recordset.Fields("status") = "Yet to be processed.Waiting for response from H.R.Stay Tuned for updates." msg = MsgBox("Registration Successful....Your Application Id is " & c & ".....You Are Asked To Attend Apptitude Test......", vbInformation, "Registration System") Form6.Adodc1.Recordset.Update If (msg = 1) Then Form7.Show Form6.Hide End If End Sub Public Sub newuser() If (Form3.Text2.Text <> Form3.Text3.Text) Then MsgBox "PASSWORDS DO NOT MATCH", vbCritical, "Creation Message" Else Form3.Adodc1.Recordset.AddNew Form3.Adodc1.Recordset.Fields("username").Value = Form3.Text1.Text Form3.Adodc1.Recordset.Fields("password").Value = Form3.Text2.Text Form3.Adodc1.Recordset.Update MsgBox "USER CREATION SUCCESSFUL", vbOKOnly, "Creation Message" End If End Sub Public Sub login() Form5.Adodc1.Recordset.MoveFirst Do If (Form5.Adodc1.Recordset.Fields("username") = Form5.Text1.Text And Form5.Adodc1.Recordset.Fields("password") = Form5.Text2.Text) Then MsgBox ("LOGIN SUCCESSFUL"), vbOKOnly, "Login Message" Form6.Show GoTo test End If Form5.Adodc1.Recordset.MoveNext Loop While (Form5.Adodc1.Recordset.EOF = False) MsgBox ("THE ENTERED USERNAME OR PASSWORD IS WRONG!!!! PLEASE ENTER THE CORRECT VALUES"), vbOKOnly, "Login Message" test: Form5.Hide End Sub

ADMIN: Public Sub check() If (Form10.Adodc1.Recordset.Fields("status") = "Hi,You got Selected" Or Form10.Adodc1.Recordset.Fields("status") = "Sorry,You are Not Selected") Then Form10.Adodc1.Recordset.Delete Form10.Adodc1.Recordset.Update MsgBox ("Deleted Successfully"), vbInformation, "Recruitment System" End If End Sub '##ModelId=4F223DAB0167 Public Sub validate() If (Form10.Adodc1.Recordset.Fields("appid") = Form10.Text1.Text) Then Form10.Text3.Text = Form10.Adodc1.Recordset.Fields("apptituderes") End If End Sub '##ModelId=4F223DB30186 Public Sub recruit() If (Form10.Adodc1.Recordset.Fields("appid") = Form10.Text1.Text) Then Form10.Adodc1.Recordset.Fields("status") = Form10.Text2.Text Form10.Adodc1.Recordset.Update MsgBox ("Response Sent Successfully"), vbInformation, "Recruitment System" End If End Sub

Anda mungkin juga menyukai