A minor project

1,344
-1

Published on

Employee Management System project Report

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,344
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

A minor project

  1. 1. Employee Management System A Minor Project On Employee Management and Payroll System Submitted in Partial fulfillment for the award of Bachelor of Engineering Submitted to RAJIV GANDHI PROUDYOGIKI VISHWAVIDHYALAYA BHOPAL (M.P.) Submitted By: Aayushmaan Gupta - 0133CS091001 Prateek Sharma - 0133CS091073 PradeepPawar - 0133CS091069 Naveen Singh - 0133CS091056 Under The Supervision of Prof Brijkishore Gupta / Prof Mayank DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING SAGAR INSTITUTE OF RESEARCH & TECHNOLOGY, BHOPAL Sagar Institute of Research and Technology Page 1
  2. 2. Employee Management System SAGAR INSTITUTE OF RESEARCH & TECHNOLOGY, BHOPAL DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CERTIFICATEThis is to certify that the work embodied in this report entitled Topic has beensatisfactorily completed by Student name. It is a bonafide piece of work, carriedout under our/my guidance in the Department of Computer Science & Engineering,Sagar Institute of Research & Technology, and Bhopal for the partial fulfillment ofthe Bachelor of Engineering during the academic year 2011-2012.Project Guide: HOD: Director:Prof. Brijkishore Gupta Prof. MeghaKamble Dr. S.C. Bhageria Sagar Institute of Research and Technology Page 2
  3. 3. Employee Management System SAGAR INSTITUTE OF RESEARCH & TECHNOLOGY, BHOPAL DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING SELF CERTIFICATEThis to certify that the project report entitled “Employee ManagementSystem” isdone by us is an authentic work carried out for the partialfulfillment of therequirements for the award of the degree Bachelor of Engineering, under theguidance of Prof.Brijkishore Gupta.Name of the studentRoll No. Signature ofthestudent1. Aayushmaan Gupta 0133CS0910012. Prateek Sharma 0133CS0910733. PradeepPawar 0133CS0910694. Naveen Singh 0133CS091056 Sagar Institute of Research and Technology Page 3
  4. 4. Employee Management System SAGAR INSTITUTE OF RESEARCH & TECHNOLOGY, BHOPAL ACKNOWLEDGEMENTThe austerity and satisfaction that one gets oncompleting a project cannot befulfilled withoutmentioning the people who made it possible, withgratitude, we arevery much thankful to the AlmightyGod who helped us all the way throughout theprojectand who has molded us into what we are today.We are privileged to express our sinceregratitude to honorable Dr. S.C. Bhageria,Director, SIRT, and Bhopal for allencouragement he gave us.We express our sincerethanks and gratitude to Prof. MeghaKamble(H.O.D.) ofComputer Science for all his valuablesuggestions and guidance throughout ourproject.We wish to express our hearty gratitude to our internal project guide, Pro.Brijkishore Gupta for hisvaluable suggestions and guidance throughout thetenureof our project.We extend our sincere thanks toall the college staff members who helped ustocomplete this project successfully. Sagar Institute of Research and Technology Page 4
  5. 5. Employee Management System TABLE OF CONTENTS S.No. HEADING PAGE No.1. Introduction 61.1 Purpose / objective 61.2 Study of existing System / Scope of new System 61.3 Software Requirements 71.4 Hardware Requirements 82. Analysis 92.1 Study Of Proposed System 92.2 Problem Definition 92.3 Solution Strategies 93. Designing 103.1 Data Flow Diagram 103.2 E-R Diagram 113.3 Database Design 133.4 Use Case Diagram 154 Coding 165. Front End Forms/screens 426 Testing 486.1 System testing 486.2 Test cases 507 Limitations & Future Enhancements 518 Conclusion 529 Bibliography & References 53 Sagar Institute of Research and Technology Page 5
  6. 6. Employee Management System CHAPTER - 1 INTRODUCTIONEmployee management and payroll system is the modern computer based recordmanagement system of employees of any firm. Since it would be very difficult forany firm to maintain the records of employee on the papers and keep theirattendance records also, we tried to convert this manpower to computer power. It isfound that this is very efficient way to manage records as well as attendance recordthrough this system.1.1 Purpose / Objective:The main goal of this project is to make the recordof employee’s easier & quicker. It is situated for all level of peoples. It provides proper details about the entire employee & their posts. User friendly environment makes the data handling more easily. It easily provides an environment where the user can get information aboutall the employees/worker1.2 Study of existing System: Exiting EMS is based on the standalone system. It is developed on the access 95 hence it is not compatible on modern operating system. Existing EMS is not user friendly. It is not provided with the detailed project information done or to be assigned based on the application. It needs extra manual power also.Scope of new System: It is user friendly, can be accessed by any one. It has user id and password system to maintain privacy and security. It is very fast and accurate. No need of extra manual effort. Just need little knowledge to operate the system. Doesn’t require any extra hardware device. Sagar Institute of Research and Technology Page 6
  7. 7. Employee Management System1.3 Software requirements: Operating System: Windows XP or higher. Front End tool : Visual Basic 6.0. Back End tool : Oracle 10g.Software Justification:Operating System: As now a day’s windows XP or higher are more commonin market, we have designed this software to support all these OS.Front End tool:Visual Basic 6.0: Microsoft Visual Basic 6.0 is the powerful programminglanguage to develop applicationfor windows. Windows is the operatingsystem, which runs based on messages and with rich user interface.Back End tool:Oracle 10g: Oracle 10g is very easy to understand and easilyprogrammable. It provides easy database storage also; hence we have used this tostore data in form of table of our software. Sagar Institute of Research and Technology Page 7
  8. 8. Employee Management System1.4 Hardware Requirements:The configuration given below isthe Hardwarehandled for the systemdevelopment.Processor : PENTIUM IV or AbovePrimary Memory (RAM) : 256 MB or AboveSecondary Memory (Hard disk) : 20 GB or AboveMonitor : COLOR, 15inch or aboveDisplay card : SVGAMouse& Keyboard : Any CompanyCabinet : Mini tower ATXThese above hardware requirements are now a days very common and can befound on any computer system. It is kept in mind while designing that no extrahardware support which can be needed to run the software should be there so that itcan be afforded by any firm or industry. CHAPTER - 2 Sagar Institute of Research and Technology Page 8
  9. 9. Employee Management System ANALYSIS2.1Study of the proposed system:This system consists of different tablewhich contains the record of employees & itis commented through VB which is thefront end. In VB we have seen theinformation about the employee. You can also provide the different buttons like,add, delete, edit, exit etc. which helps you to editany data & make your workeasier.2.2Problem definition:In the old system the main task of editing is not done easily& it will also taketime.But in the proposed system the main assumptions are, thesystem shouldalready contains all the hardware’s & software’s as well as theperson who use thisproduct should familiar with window XP or any operatingsystem.2.3 Solution strategies:The main solution of the problem is to provide suitable &user friendlyenvironment to a user so that the user can maintain the detail of employee in a veryeasy manner.2.4 Cost Estimation andSchedulingProject estimation and scheduling were carried out together by the project leaderasper the norms of the company. Some cost estimation was done at the earlystagebefore the schedules were drawn up. Once the project was underway,estimateswere updated. The factors involved in computing the total cost of asoftware projectwere Hardware & software cost, Maintenance cost, Travel andtraining cost and Effort cost.Scheduling as well as estimating the effort required todevelop the software systemwas done by the project leader in discussion with theCompany officials. CHAPTER – 3 Sagar Institute of Research and Technology Page 9
  10. 10. Employee Management System DESIGNING3.1 Data Flow Diagram: Report 1 Login Personal Details Attendance Details Employee Details Professional Details Salary Details Report 2 Report 3 Sagar Institute of Research and Technology Page 10
  11. 11. Employee Management System3.2 E-R Diagram:1) Login Form: User ID Password Login2) Personal Details: EMP Name EMP No. Sex Personal Details Address Date of Birth City Sagar Institute of Research and Technology Page 11
  12. 12. Employee Management System3) Professional Details: Date of Join Designation EMP ID Department Profession Details4) Salary details: GIS PF CCA Basic Sal HRA Salary Details Inc. TAX DA NET GROSS Sagar Institute of Research and Technology Page 12
  13. 13. Employee Management System5) Attendance Details: Sick Leaves Casual Leaves Year Other Leaves For Month EMP. ID Total Leaves Attendance Details3.3 Database design:1) Add Employee Database Details: Field Name Data Type SizeEmployee number Number 4Employee Name Varchar2 30Sex Varchar2 1Address Varchar2 30City Varchar2 20Date Of Birth DateDate Of Join DateDesignation Varchar2 20Department Varchar2 15 Sagar Institute of Research and Technology Page 13
  14. 14. Employee Management System2) Salary Details Database Design: Field Data Type SizeBasic Number (7,2)Provident Fund Number (6,2)Group Insurance Scheme Number (6,2)City Compensatory Allowance Number (6,2)House rent Allowance Number (6,2)Dearness Allowance Number (6,2)Gross Number (7,2)Income tax Number (7,2)Net Salary Number (7,2)3) Attendance table Database Design: Field Data Type SizeEmployee Number Number 4For Month Number 2Year Number 4Casual Leaves Number 2Sick Leaves Number 2Other Leaves Number 2Total Leaves Number 2 Sagar Institute of Research and Technology Page 14
  15. 15. Employee Management System3.4 Use Case Diagram: Add EMP Modify EMP Emp Information Manager Delete EMP Display EMP Enter Att Attendance Processing Display Att Salary Statement of EMP Reporting EMP Department wise List Sagar Institute of Research and Technology Page 15
  16. 16. Employee Management System CHAPTER– 4 CODING4.1 Login Form Code:Private Sub Command1_Click()If Text1.Text = ("admin") And Text2.Text = ("skyworld") Thenwelcome.ShowMe.HideElseMsgBox "Sorry Enter a right user name and password !!!!"End IfEnd SubPrivate Sub Command2_Click()If (MsgBox("Are You Sure You Want to Exit EMS?", vbYesNo + vbQuestion, "Quit") = vbYes)ThenEndEnd IfEnd SubPrivate Sub Command3_Click()welcome.ShowMe.HideUnload loginEnd Sub Sagar Institute of Research and Technology Page 16
  17. 17. Employee Management System4.2 Welcome For (MDI Form) Code:Private Sub MDIForm_Load()Me.WindowState = vbMaximizedEnd SubPrivate Sub mnuAPdis_Click()Load disAttdisAtt.ShowEnd SubPrivate Sub mnuAPenter_Click()Load frmAddAttfrmAddAtt.ShowEnd SubPrivate Sub mnuEPadd_Click()Load addempaddemp.ShowEnd SubPrivate Sub mnuEPdele_Click()Load delempdelemp.ShowEnd SubPrivate Sub mnuEPdis_Click() Sagar Institute of Research and Technology Page 17
  18. 18. Employee Management SystemLoad disempdisemp.ShowEnd SubPrivate Sub mnuEPmod_Click()Load modempmodemp.ShowEnd SubPrivate Sub mnuExit_Click()If (MsgBox("Are You Sure You Want to Exit EMS?", vbYesNo + vbQuestion, "Quit") = vbYes)ThenEndEnd IfEnd SubPrivate Sub mnuHelp_Click()Load helphelp.ShowEnd SubPrivate Sub mnuRep1_Click()DataReport1.ShowEnd SubPrivate Sub mnuRepPrn_Click() Sagar Institute of Research and Technology Page 18
  19. 19. Employee Management SystemDataReport1.PrintReportEnd SubPrivate Sub mnuREPsalmon_Click()Load saldissaldis.ShowEnd Sub4.3 Add Employee form Code:Private Sub save_Click()adoRSaddemp.UpdateadoRSaddemp.Fields("pf") = 0.12 * adoRSaddemp.Fields("basic")adoRSaddemp.Fields("gis") = 0.05 * adoRSaddemp.Fields("basic")adoRSaddemp.Fields("cca") = 1000If adoRSaddemp.Fields("basic") < 10000 ThenadoRSaddemp.Fields("hra") = 3500ElseIf adoRSaddemp.Fields("basic") < 20000 ThenadoRSaddemp.Fields("hra") = 3750ElseIf adoRSaddemp.Fields("basic") < 30000 ThenadoRSaddemp.Fields("hra") = 4200ElseIf adoRSaddemp.Fields("basic") < 40000 ThenadoRSaddemp.Fields("hra") = 4700ElseadoRSaddemp.Fields("hra") = 5000 Sagar Institute of Research and Technology Page 19
  20. 20. Employee Management SystemEnd IfEnd IfEnd IfEnd IfIf adoRSaddemp.Fields("basic") < 20000 ThenadoRSaddemp.Fields("da") = 1500ElseIf adoRSaddemp.Fields("basic") < 40000 ThenadoRSaddemp.Fields("da") = 3000ElseadoRSaddemp.Fields("da") = 4000End IfEnd IfadoRSaddemp.Fields("gross") = adoRSaddemp.Fields("basic") + adoRSaddemp.Fields("cca") +adoRSaddemp.Fields("hra") + adoRSaddemp.Fields("da")If adoRSaddemp.Fields("gross") > 25000 ThenadoRSaddemp.Fields("it") = 0.25 * adoRSaddemp.Fields("gross")ElseIf adoRSaddemp.Fields("gross") > 17000 ThenadoRSaddemp.Fields("it") = 0.2 * adoRSaddemp.Fields("gross")ElseIf adoRSaddemp.Fields("gross") > 10000 ThenadoRSaddemp.Fields("it") = 0.1 * adoRSaddemp.Fields("gross")Else: adoRSaddemp.Fields("it") = 0End IfEnd If Sagar Institute of Research and Technology Page 20
  21. 21. Employee Management SystemEnd IfadoRSaddemp.Fields("net") = adoRSaddemp.Fields("gross") - adoRSaddemp.Fields("pf") -adoRSaddemp.Fields("gis") - adoRSaddemp.Fields("it")adoRSaddemp.UpdateMsgBox ("Record Successfully Added In Table")End SubPrivate Sub exit_Click()Me.HideUnload addempEnd SubPrivate Sub back_Click()welcome.ShowUnload addempEnd SubPrivate Sub Form_Load()Combo1.AddItem "CS"Combo1.AddItem "Mechanical"Combo1.AddItem "EC"Combo1.AddItem "Civil"Combo1.AddItem "Electrical"Combo1.AddItem "IT"Set adoConn = New ADODB.Connection Sagar Institute of Research and Technology Page 21
  22. 22. Employee Management SystemadoConn.ConnectionString = "Provider=MSDAORA.1;Password=tiger;User ID=scott;DataSource=ORCL;Persist Security Info=True"adoConn.CursorLocation = adUseClientadoConn.OpenSet adoRSaddemp = New ADODB.RecordsetadoRSaddemp.CursorType = adOpenDynamicadoRSaddemp.LockType = adLockOptimisticadoRSaddemp.Open "addemp", adoConn, , , adCmdTableSet empno.DataSource = adoRSaddempempno.DataField = "empno"Set ename.DataSource = adoRSaddempename.DataField = "ename"Set sex.DataSource = adoRSaddempsex.DataField = "sex"Set address.DataSource = adoRSaddempaddress.DataField = "address"Set city.DataSource = adoRSaddempcity.DataField = "city"Set dob.DataSource = adoRSaddempdob.DataField = "dob"Set doj.DataSource = adoRSaddempdoj.DataField = "doj"Set desig.DataSource = adoRSaddempdesig.DataField = "designation"Set Combo1.DataSource = adoRSaddempCombo1.DataField = "deaprtment" Sagar Institute of Research and Technology Page 22
  23. 23. Employee Management SystemSet basic.DataSource = adoRSaddempbasic.DataField = "basic"Set pf.DataSource = adoRSaddemppf.DataField = "pf"Set gis.DataSource = adoRSaddempgis.DataField = "gis"Set cca.DataSource = adoRSaddempcca.DataField = "cca"Set hra.DataSource = adoRSaddemphra.DataField = "hra"Set da.DataSource = adoRSaddempda.DataField = "da"Set gross.DataSource = adoRSaddempgross.DataField = "gross"Set it.DataSource = adoRSaddempit.DataField = "it"Set net.DataSource = adoRSaddempnet.DataField = "net"End SubPrivate Sub new_Click()adoRSaddemp.AddNewEnd Sub Sagar Institute of Research and Technology Page 23
  24. 24. Employee Management System4.4 Modify Employee Form Code:Private Sub exit_Click()Me.HideUnload modempEnd SubPrivate Sub Form_Load()Combo1.AddItem "CS"Combo1.AddItem "Mechanical"Combo1.AddItem "EC"Combo1.AddItem "Civil"Combo1.AddItem "Electrical"Combo1.AddItem "IT"Set adoConn = New ADODB.ConnectionadoConn.ConnectionString = "Provider=MSDAORA.1;Password=tiger;User ID=scott;DataSource=ORCL;Persist Security Info=True"adoConn.CursorLocation = adUseClientadoConn.OpenSet adoRSaddemp = New ADODB.RecordsetadoRSaddemp.CursorType = adOpenDynamicadoRSaddemp.LockType = adLockOptimisticadoRSaddemp.Open "addemp", adoConn, , , adCmdTableSet empno.DataSource = adoRSaddempempno.DataField = "empno"Set ename.DataSource = adoRSaddempename.DataField = "ename" Sagar Institute of Research and Technology Page 24
  25. 25. Employee Management SystemSet sex.DataSource = adoRSaddempsex.DataField = "sex"Set address.DataSource = adoRSaddempaddress.DataField = "address"Set city.DataSource = adoRSaddempcity.DataField = "city"Set dob.DataSource = adoRSaddempdob.DataField = "dob"Set doj.DataSource = adoRSaddempdoj.DataField = "doj"Set desig.DataSource = adoRSaddempdesig.DataField = "designation"Set Combo1.DataSource = adoRSaddempCombo1.DataField = "deaprtment"Set basic.DataSource = adoRSaddempbasic.DataField = "basic"Set pf.DataSource = adoRSaddemppf.DataField = "pf"Set gis.DataSource = adoRSaddempgis.DataField = "gis"Set cca.DataSource = adoRSaddempcca.DataField = "cca"Set hra.DataSource = adoRSaddemphra.DataField = "hra"Set da.DataSource = adoRSaddempda.DataField = "da" Sagar Institute of Research and Technology Page 25
  26. 26. Employee Management SystemSet gross.DataSource = adoRSaddempgross.DataField = "gross"Set it.DataSource = adoRSaddempit.DataField = "it"Set net.DataSource = adoRSaddempnet.DataField = "net"Dim flag As IntegerDim eno As Integerflag = 0eno = InputBox("Enter the employee number to be Modified", "Employee Number", 0)adoRSaddemp.MoveFirstDo While adoRSaddemp.EOF = FalseIf adoRSaddemp.Fields("empno") <>eno ThenadoRSaddemp.MoveNextElseflag = 1Exit DoEnd IfLoopIf flag = 0 ThenMsgBox ("Employee number does not exists")End IfEnd SubPrivate Sub save_Click()adoRSaddemp.Update Sagar Institute of Research and Technology Page 26
  27. 27. Employee Management SystemadoRSaddemp.Fields("pf") = 0.12 * adoRSaddemp.Fields("basic")adoRSaddemp.Fields("gis") = 0.05 * adoRSaddemp.Fields("basic")adoRSaddemp.Fields("cca") = 1000If adoRSaddemp.Fields("basic") < 10000 ThenadoRSaddemp.Fields("hra") = 3500ElseIf adoRSaddemp.Fields("basic") < 20000 ThenadoRSaddemp.Fields("hra") = 3750ElseIf adoRSaddemp.Fields("basic") < 30000 ThenadoRSaddemp.Fields("hra") = 4200ElseIf adoRSaddemp.Fields("basic") < 40000 ThenadoRSaddemp.Fields("hra") = 4700ElseadoRSaddemp.Fields("hra") = 5000End IfEnd IfEnd IfEnd IfIf adoRSaddemp.Fields("basic") < 20000 ThenadoRSaddemp.Fields("da") = 1500ElseIf adoRSaddemp.Fields("basic") < 40000 ThenadoRSaddemp.Fields("da") = 3000Else Sagar Institute of Research and Technology Page 27
  28. 28. Employee Management SystemadoRSaddemp.Fields("da") = 4000End IfEnd IfadoRSaddemp.Fields("gross") = adoRSaddemp.Fields("basic") + adoRSaddemp.Fields("cca") +adoRSaddemp.Fields("hra") + adoRSaddemp.Fields("da")If adoRSaddemp.Fields("gross") > 25000 ThenadoRSaddemp.Fields("it") = 0.25 * adoRSaddemp.Fields("gross")ElseIf adoRSaddemp.Fields("gross") > 17000 ThenadoRSaddemp.Fields("it") = 0.2 * adoRSaddemp.Fields("gross")ElseIf adoRSaddemp.Fields("gross") > 10000 ThenadoRSaddemp.Fields("it") = 0.1 * adoRSaddemp.Fields("gross")Else: adoRSaddemp.Fields("it") = 0End IfEnd IfEnd IfadoRSaddemp.Fields("net") = adoRSaddemp.Fields("gross") - adoRSaddemp.Fields("pf") -adoRSaddemp.Fields("gis") - adoRSaddemp.Fields("it")adoRSaddemp.UpdateMsgBox ("Record Successfully Modified In Table")End Sub4.5 Delete Employee From Code:Dim flag As IntegerPrivate Sub delete_Click()If (MsgBox(" Are you sure you want to delete this record?", vbYesNo) = vbYes) Then Sagar Institute of Research and Technology Page 28
  29. 29. Employee Management SystemadoRSaddemp.deleteadoRSaddemp.UpdateMsgBox ("Record Successfully Deleted in table!!!")End IfEnd SubPrivate Sub exit_Click()Me.HideUnload delempEnd SubPrivate Sub Form_Load()Set adoConn = New ADODB.ConnectionadoConn.ConnectionString = "Provider=MSDAORA.1;Password=tiger;User ID=scott;DataSource=ORCL;Persist Security Info=True"adoConn.CursorLocation = adUseClientadoConn.OpenSet adoRSaddemp = New ADODB.RecordsetadoRSaddemp.CursorType = adOpenDynamicadoRSaddemp.LockType = adLockOptimisticadoRSaddemp.Open "addemp", adoConn, , , adCmdTableSet empno.DataSource = adoRSaddempempno.DataField = "empno"Set ename.DataSource = adoRSaddempename.DataField = "ename"Set sex.DataSource = adoRSaddemp Sagar Institute of Research and Technology Page 29
  30. 30. Employee Management Systemsex.DataField = "sex"Set address.DataSource = adoRSaddempaddress.DataField = "address"Set city.DataSource = adoRSaddempcity.DataField = "city"Set dob.DataSource = adoRSaddempdob.DataField = "dob"Set doj.DataSource = adoRSaddempdoj.DataField = "doj"Set desig.DataSource = adoRSaddempdesig.DataField = "designation"Set dep.DataSource = adoRSaddempdep.DataField = "deaprtment"Set basic.DataSource = adoRSaddempbasic.DataField = "basic"Set pf.DataSource = adoRSaddemppf.DataField = "pf"Set gis.DataSource = adoRSaddempgis.DataField = "gis"Set cca.DataSource = adoRSaddempcca.DataField = "cca"Set hra.DataSource = adoRSaddemphra.DataField = "hra"Set da.DataSource = adoRSaddempda.DataField = "da"Set gross.DataSource = adoRSaddemp Sagar Institute of Research and Technology Page 30
  31. 31. Employee Management Systemgross.DataField = "gross"Set it.DataSource = adoRSaddempit.DataField = "it"Set net.DataSource = adoRSaddempnet.DataField = "net"End SubPrivate Sub search_Click()Dim empno As Integerflag = 0empno = InputBox("Enter the employee number to be deleted", "Employee Number", 0)adoRSaddemp.MoveFirstDo While adoRSaddemp.EOF = FalseIf adoRSaddemp.Fields("empno") <>empno ThenadoRSaddemp.MoveNextElseflag = 1Exit DoEnd IfLoopIf flag = 0 ThenMsgBox ("Employee number does not exists")End IfEnd Sub Sagar Institute of Research and Technology Page 31
  32. 32. Employee Management System4.6 Display Employee Form Code:Private Sub exit_Click()Me.HideUnload disempEnd SubPrivate Sub Form_Load()Set adoConn = New ADODB.ConnectionadoConn.ConnectionString = "Provider=MSDAORA.1;Password=tiger;User ID=scott;DataSource=ORCL;Persist Security Info=True"adoConn.CursorLocation = adUseClientadoConn.OpenSet adoRSaddemp = New ADODB.RecordsetadoRSaddemp.CursorType = adOpenDynamicadoRSaddemp.LockType = adLockOptimisticadoRSaddemp.Open "addemp", adoConn, , , adCmdTableSet empno.DataSource = adoRSaddempempno.DataField = "empno"Set ename.DataSource = adoRSaddempename.DataField = "ename"Set sex.DataSource = adoRSaddempsex.DataField = "sex"Set address.DataSource = adoRSaddempaddress.DataField = "address"Set city.DataSource = adoRSaddempcity.DataField = "city" Sagar Institute of Research and Technology Page 32
  33. 33. Employee Management SystemSet dob.DataSource = adoRSaddempdob.DataField = "dob"Set doj.DataSource = adoRSaddempdoj.DataField = "doj"Set desig.DataSource = adoRSaddempdesig.DataField = "designation"Set dep.DataSource = adoRSaddempdep.DataField = "deaprtment"Set basic.DataSource = adoRSaddempbasic.DataField = "basic"Set pf.DataSource = adoRSaddemppf.DataField = "pf"Set gis.DataSource = adoRSaddempgis.DataField = "gis"Set cca.DataSource = adoRSaddempcca.DataField = "cca"Set hra.DataSource = adoRSaddemphra.DataField = "hra"Set da.DataSource = adoRSaddempda.DataField = "da"Set gross.DataSource = adoRSaddempgross.DataField = "gross"Set it.DataSource = adoRSaddempit.DataField = "it"Set net.DataSource = adoRSaddempnet.DataField = "net" Sagar Institute of Research and Technology Page 33
  34. 34. Employee Management SystemDim flag As IntegerDim eno As Integerflag = 0eno = InputBox("Enter the employee number to be Displayed", "Employee Number", 0)adoRSaddemp.MoveFirstDo While adoRSaddemp.EOF = FalseIf adoRSaddemp.Fields("empno") <>eno ThenadoRSaddemp.MoveNextElseflag = 1Exit DoEnd IfLoopIf flag = 0 ThenMsgBox ("Employee number does not exists")End IfEnd Sub4.7Add Attendance Form Code:Private Sub Command1_Click()Select Case adoRSattendence.Fields("for_month")Case 1, 3, 5, 7, 8, 10, 12DM = 31Case 4, 6, 9, 11DM = 30Case 2DM = 28 Sagar Institute of Research and Technology Page 34
  35. 35. Employee Management SystemCase ElseMsgBox ("Wronge month Number.Record Not Saved.")Exit SubEnd Selectnol = adoRSattendence.Fields("pls") + adoRSattendence.Fields("mls") +adoRSattendence.Fields("lwp")If nol> DM ThenMsgBox ("Number of leaves greater then number of days in a month. Record Not saved.")Exit SubEnd Iftotal.Text = CInt(pls.Text) + CInt(mls.Text) + CInt(lwp.Text)adoRSattendence.UpdateMsgBox ("Record Updated")End SubPrivate Sub Command2_Click()Me.HideUnload frmAddAttEnd SubPrivate Sub Form_Load()Set adoConn = New ADODB.ConnectionadoConn.ConnectionString = "Provider=MSDAORA.1;Password=tiger;User ID=scott;DataSource=ORCL;Persist Security Info=True"adoConn.CursorLocation = adUseClientadoConn.OpenSet adoRSattendence = New ADODB.Recordset Sagar Institute of Research and Technology Page 35
  36. 36. Employee Management SystemadoRSattendence.CursorType = adOpenDynamicadoRSattendence.LockType = adLockOptimisticadoRSattendence.Open "attendence", adoConn, , , adCmdTableSet empno.DataSource = adoRSattendenceempno.DataField = "Empno"Set formonth.DataSource = adoRSattendenceformonth.DataField = "for_month"Set year.DataSource = adoRSattendenceyear.DataField = "year"Set pls.DataSource = adoRSattendencepls.DataField = "pls"Set mls.DataSource = adoRSattendencemls.DataField = "mls"Set lwp.DataSource = adoRSattendencelwp.DataField = "lwp"Set total.DataSource = adoRSattendencetotal.DataField = "cls"End SubPrivate Sub new_Click()adoRSattendence.AddNewEnd Sub Sagar Institute of Research and Technology Page 36
  37. 37. Employee Management System4.8Display Attendance Form Code:Private Sub Command3_Click()Dim empno As IntegerDim flag As Integerflag = 0empno = InputBox("Enter the employee number to show", "Employee number", 0)adoRSattendence.MoveFirstDo While adoRSattendence.EOF = FalseIf adoRSattendence.Fields("empno") <>empno ThenadoRSattendence.MoveNextElseflag = 1Exit DoEnd IfLoopIf flag = 0 ThenMsgBox ("Employee number does not exist.")End IfEnd SubPrivate Sub exit_Click()Me.HideUnload disAttEnd Sub Sagar Institute of Research and Technology Page 37
  38. 38. Employee Management SystemPrivate Sub Form_Load()Set adoConn = New ADODB.ConnectionadoConn.ConnectionString = "Provider=MSDAORA.1;Password=tiger;User ID=scott;DataSource=ORCL;Persist Security Info=True"adoConn.CursorLocation = adUseClientadoConn.OpenSet adoRSattendence = New ADODB.RecordsetadoRSattendence.CursorType = adOpenDynamicadoRSattendence.LockType = adLockOptimisticadoRSattendence.Open "attendence", adoConn, , , adCmdTableSet empno.DataSource = adoRSattendenceempno.DataField = "Empno"Set formonth.DataSource = adoRSattendenceformonth.DataField = "for_month"Set year.DataSource = adoRSattendenceyear.DataField = "year"Set pls.DataSource = adoRSattendencepls.DataField = "pls"Set mls.DataSource = adoRSattendencemls.DataField = "mls"Set lwp.DataSource = adoRSattendencelwp.DataField = "lwp"Set total.DataSource = adoRSattendencetotal.DataField = "cls"End Sub Sagar Institute of Research and Technology Page 38
  39. 39. Employee Management SystemPrivate Sub Next_Click()If (adoRSattendence.EOF = True) ThenMsgBox ("No more Records !!")adoRSattendence.MoveFirstElseadoRSattendence.MoveNextEnd IfEnd SubPrivate Sub Previous_Click()If (adoRSattendence.BOF = True) ThenMsgBox ("Beginning Of File !!")adoRSattendence.MoveLastElseadoRSattendence.MovePreviousEnd IfEnd Sub4.9Salary Statement form Code:Dim mon As IntegerDim yrAs IntegerDim eno As IntegerDim flag As IntegerDim flag1 As IntegerPrivate Sub exit_Click() Sagar Institute of Research and Technology Page 39
  40. 40. Employee Management SystemMe.HideUnload saldisEnd SubPrivate Sub Form_Load()flag = 0flag1 = 0eno = InputBox("Enter Employee Number whose salary slip to be show", "Employee Number",0)EMPDE.rsaddemp.MoveFirstDo While EMPDE.rsaddemp.EOF = FalseIf EMPDE.rsaddemp.Fields("empno") <>eno ThenEMPDE.rsaddemp.MoveNextElseflag = 1Exit DoEnd IfLoopIf flag = 0 ThenMsgBox ("Employee number does not exists.")Elsemon = InputBox("Enter the MONTH for which salary slip has to be generated", "MONTH", 0)yr = InputBox("Enter the YEAR for which salary slip has to be generated", "YEAR", 0)EMPDE.rsattendence.MoveFirstDo While EMPDE.rsattendence.EOF = FalseIf EMPDE.rsattendence.Fields("empno") = eno And EMPDE.rsattendence.Fields("for_month")= mon And EMPDE.rsattendence.Fields("year") = yr Then Sagar Institute of Research and Technology Page 40
  41. 41. Employee Management Systemflag1 = 1Exit DoElseEMPDE.rsattendence.MoveNextEnd IfLoopIf flag1 = 0 ThenMsgBox ("Employee number does not exists in attendance table.")End IfEnd IfIf flag = 1 And flag1 = 1 Thendeduction.Text = EMPDE.rsaddemp.Fields("pf") + EMPDE.rsaddemp.Fields("gis") +EMPDE.rsaddemp.Fields("it")nol.Text = EMPDE.rsattendence.Fields("cls")netsal.Text = EMPDE.rsaddemp.Fields("net") - EMPDE.rsattendence.Fields("cls") *EMPDE.rsaddemp.Fields("basic") / 30End IfEnd SubPrivate Sub print_Click()PrintFormEnd Sub4.10 Module 1 Screen CodePublic adoConn As ADODB.ConnectionPublic adoRSattendence As ADODB.RecordsetPublic adoRSaddemp As ADODB.Recordset Sagar Institute of Research and Technology Page 41
  42. 42. Employee Management System CHAPTER – 5 FRONTEND FORM SCREENS5.1 Login Form Screen:5.2 Welcome Form Screen: Sagar Institute of Research and Technology Page 42
  43. 43. Employee Management System5.3 Add Employee Screen:5.4 Modify Employee Screen: Sagar Institute of Research and Technology Page 43
  44. 44. Employee Management System5.5 Delete Employee Screen:5.6 Display Employee Screen: Sagar Institute of Research and Technology Page 44
  45. 45. Employee Management System5.7 Add Attendance Screen:5.8 Display Attendance Screen: Sagar Institute of Research and Technology Page 45
  46. 46. Employee Management System5.9 Salary Statement Screen: Sagar Institute of Research and Technology Page 46
  47. 47. Employee Management System5.10 On Screen Department Wise Employee List Screen:5.11 Help Screen: Sagar Institute of Research and Technology Page 47
  48. 48. Employee Management System CHAPTER – 6 TESTING6.1 SYSTEM TESTINGSoftware testing is a crucial element of software quality assurance and representsthe ultimatereview of specification, design and coding. The increasing visibility of software as a systemelement and the attendant "cost" associated with a software failure aremotivating forces for well-planned, thorough testing. Testing is a set of activities that canbe planned in advance andconducted systematically. Testing begins at the module leveland work towards the integration ofentire computers based system. Nothing is completewithout testing, as it is vital success of thesystem.Unit TestingUnit testing focuses on the verification of smallest unit of software design of themodule. Tocheck whether each module in the software works properly so that it givesdesired outputs to thegiven inputs. All validations and conditions are tested in the modulelevel in unit test. Controlpaths are tested to ensure the information properly flows into andout of the program unit undertest. Boundary condition are tested to ensure that themodules operates at boundary establishes torestrict processing. All independent pathsthrough control structure are exercised to ensure that allstatements in a module have beenexecuted at least once. And finally all errors handling paths aretested.In our system, Unit testing has been successfully handled. The test data was givento eachmodule in all respects and have got desired output. Each module has been foundworkingproperly.Black Box TestingBlack Box Testing methods focus on the functional requirements of the software. This testingenables the software engineer to derive sets of input conditions that will fullyexercise allfunctional requirements for a program. This testing attempts to find errors inthe followingcategories: incorrect or missing functions, interface errors, errors in datastructure or externaldatabase access, performance errors and initialization errors andtermination errors. In oursystem, Black Box testing has been successfully handled. Thetest input data was given has gotdesired output.User Acceptance TestingThe performance of user interactive testing is actually the user show. The user gives live dataand checks whether software is giving specified outputs. Sagar Institute of Research and Technology Page 48
  49. 49. Employee Management System6.1.1SYSTEM IMPLEMENTATIONImplementation is the phase where the system goes for actual functioning. Hence inthis phaseone has to be cautious because all the efforts undertaken during the project willbe fruitful only ifthe software is properly implemented according to the plans made.The implementation phase isless creative than system design. It is primarilyconcerned with user training, site preparation andfile conversion. Depending on the natureof the system, extensive user training may be required.The initial parameters of the MISshould be modified as the result of programming efforts;programming provides a realitytest for the assumptions made by the analyst.The system testingchecks the readiness and accuracy of the system to access,update and retrieve data from newfiles. Once the programs become available, the test dataare read into the computer and process.6.1.2SYSTEM MAINTENANCEWe may define Software Maintenance by describing four activities that are undertaken after aprogram is released for use.Corrective MaintenanceThe first maintenance activity occurs since it is unreasonable to assume that software testing willuncover all errors in a large software system. The process of includingthe diagnosis andcorrection of one or more errors is called corrective maintenance.Adaptive MaintenanceThis activity that contributes to the definition of maintenance occurs since rapidchange isencountered in every aspect of computing. Therefore, adaptive maintenancemodifies software toproperly interface with the changing environment.Perfective MaintenanceThis activity involves recommendations for new capabilities, modifications to theexistingfunctions and general enhancements whenthe software is used. To satisfy theserequests,perfective maintenance is performed.Preventive MaintenanceThis activity occurs when software is changed to improve further maintainability or reliability. Ifthe only available element of a Software Configuration is the source code,maintenance activitybegins with the evaluation of the code, often complicated by poor internal documentation. Thesubtle characteristics such as program structure, global datastructure, system interfaces andperformance & design constraints are difficult to hand lead are often misinterpreted. Theamounts of changes that are made to the code aredifficult to access. Sagar Institute of Research and Technology Page 49
  50. 50. Employee Management System6.2 Test Cases:1) Test Case 1:Case : Testing for login Screen.Result : On testing username and password system was properly taking input.2) Test Case 2:Case : Testing for welcome Screen.Result : On testing Welcome screen the proper results were obtained. The module was going at proper place on clicking.3) Test Case 3:Case :Testing for adding Employee.Result : The employee was properly added and the fields in the database were properly saved.4) Test Case 4:Case :Testing for Modifying Employee.Result : The employee was properly modified and the fields in the database were properly saved after modification.5) Test Case 5:Case :Testing for Deleting Employee.Result : The employee was properly deleted and the fields in the database were properly deleted.6) Test Case 6:Case :Testing for Employee Salary Sheet.Result : On entering the emp number, month and year the system was properly giving the salary sheet of the entered employee number and also giving proper deductions.7) Test Case 7:Case :Testing for Data Report.Result : The data report was properly shown with the list of all the employees department wise with their basic, gross, net salary description. Sagar Institute of Research and Technology Page 50
  51. 51. Employee Management System CHAPTER – 7 LIMITATIONS AND FURTHER ENHANCEMENTSLimitations: Skyworld Tech Employee Management System is limited to our control. Any change or modification can be done by us only. It is not an online application or system. We have not provided any backup system for this. The system need to run oracle on background.Further Enhancements: Search details can be enhanced by detailed identification of searching problems and rectification steps by company. This system is entirely designed for STAND ALONE usage, according to the need of thecustomer if needed the same system can be designed with Network facility to handle thebranch activities also. To make this system Online and creating data backups. Integrated Password management facility can be created. Sagar Institute of Research and Technology Page 51
  52. 52. Employee Management System SAGAR INSTITUTE OF RESEARCH & TECHNOLOGY, BHOPAL DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CHAPTER - 8 CONCLUSIONThe Employee Management System didn’t automate 100% of their work, but itisreally a good start to computerize everything and entire Detail can be 100%computerized.As far as the work done so far much care was given about the user friendliness anda verygood interaction with the end users. The interface are so designed andchanneled the userscan never make any mistake while using the application, for anexample while adding new record, user can’t go out without either saving orcanceling the operation, till the timeeither they save or cancel the current operationall other operations are blocked. There is nochance of making any mistake in theapplication. Sagar Institute of Research and Technology Page 52
  53. 53. Employee Management System SAGAR INSTITUTE OF RESEARCH & TECHNOLOGY, BHOPAL DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CHAPTER – 9 Bibliography & References Informatics Practices - SumitaArora (A Book of Visual Basic) VB 6 in 21 days - Sams Publishing IP & My SQL - SumitraAroraFor Any assistance Contact:Aayushmaan GuptaMob: +91-9039221551 +91-9407221653Email: aayushmaan.gbpian@gmail.com Sagar Institute of Research and Technology Page 53

×