79
EMPLOYEE Management system A Project Report Submitted in Partial Fulfillment Of the Requirements for the Award of Degree of Bachelor of Computer Application Of the Bastar University Submitted by Nitesh Bhura & Kuvendra Kumar Patle UNDER THE GUIDENCE OF Ms. Garima Gupta Department of Computer Science

47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Embed Size (px)

Citation preview

Page 1: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

EMPLOYEE Management systemA Project Report Submitted in Partial Fulfillment

Of the Requirements for the Award ofDegree of

Bachelor of Computer Application

Of the

Bastar University

Submitted byNitesh Bhura

&Kuvendra Kumar Patle

UNDER THE GUIDENCE OFMs. Garima Gupta

Department of Computer ScienceCHRIST COLLEGE, JAGDALPUR

SESSION: 2009-10

Page 2: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

CERTIFICATE -1

CERTIFICATE OF APPROVAL

This is to certify that the project work entitled “Employee Management

System” submitted by Nitesh Bhura & Yogesh Verma in partial fulfillment

of the requirements for the award of the degree of Bachelor of Computer

Application, session 2009-10 at Christ College, to Bastar University,

jagdalpur is a record of the student’s own work. This work has not been

submitted to any other University or institute for the award of any degree or

diploma to the best of my knowledge.

(Signature of HOD with Date)

(Name)

(College)

Page 2

Page 3: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

CERTIFICATE –2

CERTIFICATE OF EVALUATION

This is to certify that the project report entitled “Employee Management

System” being submitted by Nitesh Bhura & Yogesh Verma in partial

fulfillment of the requirements for the award of the degree of Bachelor of

Computer Application, session 2009-10 at Christ College, to Bastar

University, jagdalpur, is a record of the student’s own work. This work has

not been submitted to any other University or institute for the award of any

degree or diploma to the best of my knowledge.

Internal Examiner External Examiner

Date: Date:

Designation: Designation:

Page 3

Page 4: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

CERTIFICATE – 3

CERTIFICATE OF ORIGINALITY

This is to certify that the project report entitled “Employee Management

System” in partial fulfillment of the requirements for the award of the degree

of Bachelor of Computer Application, session 2009-10 to Bastar University,

jagdalpur, is carried out by _______________ at _____________, under my

supervision & guidance.

The matter embodied in this project is genuine work done by the student and

has not been submitted to this or any other University or institute for the

award of any degree or diploma to the best of my knowledge.

Signature of Project Guide

Date:

Name:

Designation

Page 4

Page 5: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

CERTIFICATE – 4

SELF CERTIFICATE

This to certify that the project report entitled “Employee Management

System” is done by us is an authentic work carried out for the partial

fulfillment of the requirements for the award of the degree Bachelor of

Computer Application, under the guidance of Ms. Garima Gupta.

Name of the student Roll No. Signature of the student

1. Nitesh Bhura

2. Yogesh Verma

Page 5

Page 6: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

ACKNOWLEDGEMENT

The austerity and satisfaction that one gets on completing a project cannot be fulfilled without mentioning the people who made it possible, with gratitude, we are very much thankful to the Almighty God who helped us all the way throughout the project and who has molded us into what we are today.

We are privileged to express our sincere gratitude to honorable Rev. Fr.Abraham Kannampala, Principal, Christ College, Jagdalpur for all encouragement he gave us. We express our sincere thanks to extreme gratitude to Mr.Sushil Sahu (H.O.D.) of Computer Science for all his valuable suggestions and guidance throughout our project. We wish to express our hearty gratitude to our internal project guide, Ms. Garima Gupta for his valuable suggestions and guidance throughout the tenure of our project .We extend our sincere thanks to all the college staff members who helped us to complete this project successfully. Finally, we express our sincere thanks to our entire friends and all the other people who had imparted their knowledge and expertise upon us.

Page 6

Page 7: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

CONTENTS

CHAPTER – 1 INTRODUCTION

1.1 Background Study

1.1.1 The Organization Profile1.1.2 Study of existing System

1.2 Project Overview1.3 Objective of the project

CHAPTER – 2 PROBLEM ANALYSES

2.1 Study of the proposed System

2.1.1 Problem Definition2.1.2 Solution Strategies

2.2 System Requirements

2.2.1 Hardware Requirements2.2.2 Software Requirements

2.3 Software Justification2.4 Cost Estimating & Scheduling

Page 7

Page 8: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

CHAPTER – 3 DESIGN & DEVELOPMENT PROCESS

3.1 Design Notations3.1.1 Data Flow Diagram3.1.2 E-R diagram

3.2 Design Process3.2.1 Database design3.2.2 Input design3.2.3 Output design

CHAPTER – 4 TESTING & IMPLEMENTATION

4.1 System Testing4.2 System implementation

4.2.1 Implementation procedures4.2.2 Operational documentation

4.3 System Maintenance

CHAPTER - 5 CONCLUSIONS

Scope for further Enhancement Bibliography

Page 8

Page 9: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Chapter – 1

Page 9

Page 10: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

1.1 Background study- This Project is based on the employee management

system of any company or shop. the owner of the shop is maintain record of employees and workers on daily basis and this project will help him to maintain the record of an employee in a easily and a quickly manner, with the help of these software records were updated, edited, added, deleted very easily.

1.1.1 The organization profile-

The main work of this organization is maintaining the records of employees and the work of maintaining records is done on the register.

1.1.2 Study of the existing system- The method of maintaining the record in the organization is by writing all details in register but in this they find some difficulty to add new records, delete any existing record or for editing (or) doing any changes in records. If they want to do any of the above tasks, they are writing the whole things again and it will take time also.

1.2 Project overview- The project is highly flexible and is well efficient for managing all information about the employee. The key focus is: well management of data and easy retrieval of information. The speed and accuracy should be maintained in a proper way. Changes can be done very easily using the facility and flexibility in v.b. 6.0 and access 2007. The software can be developed in a neat and simple manner hence it reduces operator’s work.

1.3 Objective of the project-

The main goal of this project is to make the record of employee’s easier & quicker.

It is situated for all level of peoples. It provides proper details about all the employee & their posts. User friendly environment makes the data handling more easily. It easily provides an environment where the user can get information about all the employees/workers.

Page 10

Page 11: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Chapter-2

2.1- Study of the proposed system: This system consists of different table which contains the record of employees & it is commented through VB which is the front end. In VB we have seen the information about the employee. You can also

Page 11

Page 12: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

provided the different buttons like, add, delete, edit, exit etc, which helps you to edit any data & make your work easier.

2.1.1- Problem definition: In the old system the main task of editing is not done easily & it will also take time. But in the proposed system the main assumptions are, the system should already contains all the hardware’s & software’s as well as the person who use this product should familiar with win 98 or win xp or any operating system.

2.1.2- Solution strategies: The main solution of the problem is to provide suitable & user friendly environment to a user so that the user can maintain the detail of employee in a very easy manner.

2.2 SYSTEM REQUIREMENT

Hardware Requirement

The configuration given below is the Hardware handled for the system

development.

Processor : PENTIUM III or Above

Primary Memory (RAM) : 64 MB or Above

Secondary Memory (Hard disk) : 20 GB or Above

Monitor : COLOR, 15inch or above

Display card : SVGA

Mouse : Any Company

Cabinet : Mini tower ATX

Software Requirement

Page 12

Page 13: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Operating System : Windows 98 or above

Front End tool : Visual Basic 6.0

Back End tool : MS-Access

2.3 SOFTWARE JUSTIFICATION

Operating System

As the company is presently has its showroom in One place, STAND ALONE system is proposed with WINDOWS 98 operating system.

Front End tool

Visual Basic 6.0

Microsoft Visual Basic 6.0 is the powerful programming language to develop application for windows. Windows is the operating system, which runs based on messages and with rich user interface. Here are little details about how windows works and programming model using Visual Basic.

How Windows Works

WINDOWS, EVENTS AND MESSAGESWindows involves three key concepts: windows, events and messages.

Page 13

Page 14: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Think of a window as a rectangular region with its own boundaries. For example, Explorer window in Windows, a Document window within word processing program, or a dialog box that pops up to remind you of an appointment. A command button is also a window. Icons, text boxes, option buttons and menu are all windows.The Microsoft Windows operating system manages all of these many windows by assigning each one a unique id number (window handle or hWnd). The system continually monitors each of these windows for signs of activity or events. Events can occur through user actions such as a mouse click or a key press, through programmatic control, or even as a result of another window’s actions.

Each time an event occurs, it causes a message to be sent to the operating system. The system processes the message and broadcasts it to the other windows. Each window can then take the appropriate action based on its own instructions for dealing with that particular message (for example, repainting itself when it has been uncovered by another window).Dealing with all of the possible combinations of windows, events and messages could be very difficult. Many of the messages are handled automatically by Visual Basic; others are exposed as event procedures for our convenience. This allows us to quickly create powerful applications without having to deal with unnecessary details.

UNDERSTANDING THE EVENT-DRIVEN MODELIn traditional or “procedural” applications, the application itself controls which portions of code execute and in what sequence. Execution starts with the first line of code and follows a predefined path through the application, calling procedures as needed.In an event-driven application, the code doesn’t follow a predetermined path – it executes different code sections in response to events. Events can be triggered by the user’s actions, by messages from the system or other applications, or even from the application itself. The sequence of these events determines the sequence in which the code executes, thus the path through the application’s code differs each time the program runs.Because we can’t predict the sequence of events, our code must make certain assumptions about the “state of the world” when it executes. When we make assumptions (for example, that an entry field must contain a value before running a procedure to process that value), we should structure our application in such a way as to make sure that the assumption will always be valid (for example, disabling the command button that starts the procedure until the entry field contains a value).

Our code can also trigger events during execution. For example, programmatically changing the text in a text box cause the text box’s Change event to execute. If you assumed that this event would only be triggered by user information, you might see unexpected results. That’s why it is very important to understand the event-driven model and keep it in mind when we design the application.

Page 14

Page 15: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

INTERACTIVE DEVELOPMENTThe traditional application development process can be broken into three distinct steps: code writing, compiling the code, and testing code. Unlike traditional languages, Visual Basic uses an interactive approach to development, blurring the distinction between the three steps.

With most languages, if we make a mistake in writing the code, the compiler catches the error when we start to compile the application. We must then find and fix the error and begin the compile cycle again, repeating the process for each error found. Visual Basic interprets the code as we enter it, catching and highlighting most syntax or spelling errors on the fly. It’s almost like having an expert watching over our shoulder as we write the code.In addition to catching errors on the fl, Visual Basic also partially compiles the code as it is entered. When the code is ready to run and test the application, there is only a brief delay to finish compiling. If the compiler finds an error, it is highlighted in the code. We can fix the error and continue compiling without having to start over.Because of the interactive nature of Visual Basic, we can’t test the effects of the code as we work rather than waiting to compile later.

USER INTERFACE ELEMENTSVisual Basic provides us a lot of User Interface elements, which are easier to create and use. For example Forms, Menus, dialog boxes and supporting controls such as Check Box, List Box, Edit Box, Etc.

DATA BASE CONNECTIVITYVisual Basic supports a lot for data base connectivity; we can use ODBC to connect with different databases like Oracle, Sybase, Etc. And we have use DAO (Data Access Objects) mainly used for Microsoft’s jet data base engine. We can use ADO and RDO to access databases, the following explains about ADO and RDO.

ACTIVE X DATA OBJECTS (ADO)Active X Data objects (ADO) enable client applications to access and manipulate data from a database server through an OLE DB provider. Its primary benefits are ease of use, high speed, low memory overhead, and a small disk footprint. ADO supports key features for building client/server and Web-based applications.

Page 15

Page 16: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

ADO also features Remote Data Service (RDS), by which we an move data from a server to a client application or Web page, manipulate the data on the client, and return updates to the server in a single round trip.

REMOTE DATA OBJECTS (RDO)RDO is a popular way to build efficient data access to relational ODBC databases. With RDO, we can create simple cursor less result sets, or more complex batch or client-side cursors. We can limit the number or rows returned and monitor all of the messages and errors generated by the remote data source without compromising the executing query.One of the important features in RDO that is not available in DAO is the ability to handle queries and stored procedures that return multiple result sets. This feature is commonly used whenever required to load multiple controls (such as combo boxes) with data from multiple tables. This feature eliminates the redundant processing and network traffic overhead of using many separate queries.

DYNAMIC LINK LIBRARIES (DLL)Dynamic Link Libraries (DLL) is linked dynamically as the program executes. Unlike Static Link Libraries, these libraries provide us a lot of advantages. DLLs are executables, which can be linked when required. And the main advantage is more than one application can use the same DLLs. In Visual Basic we can create and use DLLs.

ACTIVE X CONTROLSAn ActiveX control is an execution to the Visual Basic Toolbox. We can use Active X controls just like any of the standard built-in controls, such as the Check Box control. When we add is Active X control to a program, it becomes part of the development and run-time environment and provides new functionality for the application.

Active X controls leverage our capabilities as a Visual Basic programmer by retaining some familiar properties, events, and methods, such as the Name property, which behave, as we would expect. Then, however, the Active X controls feature methods and properties that greatly increase our flexibility and capability as a Visual Basic Programmer. We can create Active X control more easily in Visual Basic.

Back End Tool

Page 16

Page 17: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

MS-Access

On a program of software that can help us to access data and perform operations it is called a “Data Base Management System”. The DBMS whose design is based on the Relational Theory is called “The Relational Database Management System” or RDBMS.

MS-Access is a RDBMS, offers capabilities of both Relational and Object Oriented database systems. It supports very large databases that could contain hundreds of terabytes of information. The records are represented in a flat two dimensional table with rows and columns. Each column has an unique name. All elements in each column are of same kind.

MS-Access provides access to many concurrent users to the order of thousands managing large amount of data could present administrative and performance challenges.

MS-Access is the default backend for Visual Basic. Creating tables and making data entries in MS-Access are made easier. It has the advantage of querying. It is more faster in retrieving data. The data can also be external to the database. It has enriched data types.

2.4 COST ESTIMATION AND SCHEDULING

Project estimation and scheduling were carried out together by the project leader as

Per the norms of the company. Some cost estimation was done at the early stage

before the schedules were drawn up. Once the project was underway, estimates

were updated. The factors involved in computing the total cost of a software project

were

* Hardware & software cost,

* Maintenance cost,

* Travel and training cost and

* Effort cost.

Scheduling as well as estimating the effort required to develop the software system

were done by the project leader in discussion with the Company officials.

CHAPTER - 3Page 17

Page 18: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

3.1 Design Notations

3.1.1 Data Flow Diagram

Page 18

Page 19: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

3.1.2 E-R diagram

Page 19

Employee Detail

Login

Change_PasswordPersonal_Detail

Professional_Detail Salary_Detail

Report1

Report2Report3

Employee Detail

Login

Change_PasswordPersonal_Detail

Professional_Detail Salary_Detail

Report1

Report2Report3

Page 20: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

1. Employee’s Personal Detail.

2. Employee’s Professional Detail.

Page 20

Personal_Detail

Emp_Id

Name

Age

Nationality

Address

Phone_no

Father’s_Name

Occupation

Mother’s_Name

Name_Local_ Guardian

Address_Local_ Guardian

Qualification D_O_B

Page 21: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

3. Employee’s Salary Detail.

4. Login Form.

Page 21

Professional_Detail

Emp_Id

DesignationExperience

D_o_j Department

Salary_Detail

Emp_Id

HRADA

TA Basic_Salary

Page 22: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

5. Change_Password.

3.2 Design Process

3.2.1 Database design

Page 22

Login

PasswordUser_name

Salary_Detail

Retype_New_Passwor

d

Password

User_name New_Password

Page 23: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

1. Login Form

Field Name Data type SizeUser_name Text 20Password Text 10

2. Change_Password

Field Name Data type SizeUser_Name Text 20Password Text 10New_Password Text 10Retype_New_Password Text 10

3. Professional_Detail

Field Name Data type SizeEmp_Id Text 20Designation Text 30Department Text 20d_o_j Date/Time 8Experience Text 20

4. Personal_Detail

Page 23

Page 24: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Field Name Data type SizeEmp_id Integer 2Name Text 50Age Integer 2Nationality Text 20Address Text 50Phone_no Text 15Father’s_name Text 50Occupation Text 50Mother’s_name Text 50Name_Local_Guardian Text 50Address_Local_Guardian Text 50Qualification Text 50D_O_B Date/Time 8

5. Salary_Detail

Field Name Data type Size

Emp_Id Text 20Basic_Salary Text 10TA Text 10DA Text 10HRA Text 10

3.2.2 INPUT DESIGNErrors committed by data entry operator can be controlled by the input design.

Page 24

Page 25: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

The following approaches have been incorporated into the input design of the

proposed system.

MENUA menu is a selection list that simplifies the data entry the user can choose from a

list of option, by typing the option letter associated with option in position where

the cursor is located.

This project has both Graphical Menu and also Pull down Menu

Graphical Menu is designed in such a way that, if the user moves the mouse

cursor above the main option – sub options displayed automatically.

FORMATTED SCREENData entry screens have been designed which are similar in formatting source

documents. Help screens have been designed the user to enter data without

confusion.

DATA VALIDATIONThe input data are validated to minimize errors validation is done. In certain

cases validation is made to check whether the given data is numeric or not.

USER FRIENDLINESSAppropriate messages are provided to the user to inform of what is happening.

Errors are used to indicate the error code and specific error message.

CONSISTENT FORMATA fixed format is adopted for displaying the title and the messages. Each screen

has a status line, which displays the operation that can be performed after data

entry.

Page 25

Page 26: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

INTERACTIVE DIALOGUEThe system participates in interactive dialogue and is able to cope with missing or

omitted information. It covers the dialogue by retaining adequate information

between each dialogue.

3.2.3 OUTPUT DESIGNIt is necessary that the output reports be compatible format with the manual reports.

The output has been designed in mind. Output design is the basis by which many

users evaluate the usefulness of the system. The output forms used in this software

are required for query response and reports. The emphasis is required for

producing the hard copy of the information requested or displaying the output on a

CRT screen.

CHAPTER – 4

Page 26

Page 27: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

4.1 SYSTEM TESTINGSoftware testing is a crucial element of software quality assurance and represents

the ultimate review of specification, design and coding. The increasing visibility of

software as a system element and the attendant "cost" associated with a software failure are

motivating forces for well-planned, thorough testing. Testing is a set of activities that can

be planned in advance and conducted systematically. Testing begins at the module level

Page 27

Page 28: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

and work towards the integration of entire computers based system. Nothing is complete

without testing, as it is vital success of the system.

Unit TestingUnit testing focuses on the verification of smallest unit of software design of the

module. To check whether each module in the software works properly so that it gives

desired outputs to the given inputs. All validations and conditions are tested in the module

level in unit test. Control paths are tested to ensure the information properly flows into and

out of the program unit under test. Boundary condition are tested to ensure that the

modules operates at boundary establishes to restrict processing. All independent paths

through control structure are exercised to ensure that all statements in a module have been

executed at least once. And finally all errors handling paths are tested.

In our system, Unit testing has been successfully handled. The test data was given

to each module in all respects and have got desired output. Each module has been found

working properly.

Black Box TestingBlack Box Testing methods focus on the functional requirements of the software.

This testing enables the software engineer to derive sets of input conditions that will fully

exercise all functional requirements for a program. This testing attempts to find errors in

the following categories: incorrect or missing functions, interface errors, errors in data

structure or external database access, performance errors and initialization errors and

termination errors. In our system, Black Box testing has been successfully handled. The

test input data was given has got desired output.

User Acceptance TestingThe performance of user interactive testing is actually the user show. The user

gives live data and checks whether software is giving specified outputs.

4.2 SYSTEM IMPLEMENTATION

Page 28

Page 29: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

4.2.1 Implementation Procedures &

4.2.2 Operational DocumentationImplementation is the phase where the system goes for actual functioning. Hence in

this phase one has to be cautious because all the efforts undertaken during the project will

be fruitful only if the software is properly implemented according to the plans made.

The implementation phase is less creative than system design. It is primarily

concerned with user training, site preparation and file conversion. Depending on the nature

of the system, extensive user training may be required. The initial parameters of the MIS

should be modified as the result of programming efforts; programming provides a reality

test for the assumptions made by the analyst.

The system testing checks the readiness and accuracy of the system to access,

update and retrieve data from new files. Once the programs become available, the test data

are read into the computer and process.

4.3 SYSTEM MAINTENANCE We may define Software Maintenance by describing four activities that are

undertaken after a program is released for use.

Corrective MaintenanceThe first maintenance activity occurs since it is unreasonable to assume that

software testing will uncover all errors in a large software system. The process of including

the diagnosis and correction of one or more errors is called corrective maintenance.

Adaptive MaintenanceThis activity that contributes to the definition of maintenance occurs since rapid

change is encountered in every aspect of computing. Therefore, adaptive maintenance

modifies software to properly interface with the changing environment.

Perfective Maintenance

Page 29

Page 30: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

This activity involves recommendations for new capabilities, modifications to the

existing functions and general enhancements when the software is used. To satisfy these

requests, perfective maintenance is performed.

Preventive MaintenanceThis activity occurs when software is changed to improve further maintainability or

reliability. If the only available element of a Software Configuration is the source code,

maintenance activity begins with the evaluation of the code, often complicated by poor

internal documentation. The subtle characteristics such as program structure, global data

structure, system interfaces and performance & design constraints are difficult to handle

and are often misinterpreted. The amounts of changes that are made to the code are

difficult to access.

CHAPTER – 5

Page 30

Page 31: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

CONCLUSION

The Employee Management System didn’t automate 100% of their work, but it is

really 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 and a very

good interaction with the end users. The interface are so designed and channeled the users

Page 31

Page 32: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

can never make any mistake while using the application, for an example while adding new

record, user’s can’t go out without either saving or canceling the operation, till the time

either they save or cancel the current operation all other operations are blocked. There is no

chance of making any mistake in the application.

SCOPE FOR FUTHER ENHANCEMENTSearch 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 the

customer if needed the same system can be designed with Network facility to handle the

branch activities also.

Page 32

Page 33: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

CODINGS

OF

FORMS

Splash Form

Private Sub Timer1_Timer ()

Page 33

Page 34: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

t = t + 1

If t = 1000 Then End

Unload Me

frmLogin.Show

End Sub

Login Form

Dim con As New ADODB.ConnectionDim rs As New ADODB.Recordset

Private Sub cmdcancel_Click ()

Page 34

Page 35: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

EndEnd Sub

Private Sub cmdOk_Click ()rs.Open "select * from login", con, adOpenDynamic, adLockOptimisticIf txtname.Text = rs (0) ThenIf txtpassword.Text = rs (1) ThenUnload MeMDIemployee_detail.ShowElseMsgBox "Invalid Password"txtpassword.SetFocustxtpassword.Text = ""rs.CloseEnd IfElseMsgBox "Invalid user name"txtname.SetFocustxtname.Text = ""End IfEnd Sub

Private Sub Form_Load ()con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\kkk\vb\Mydbempdetail.mdb"End Sub

Private Sub Form_Unload (Cancel as Integer)con.CloseMe.HideEnd Sub

MDI Form

Private Sub about_us_Click ()frmAbout.ShowEnd Sub

Page 35

Page 36: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Private Sub change_password_Click ()frmchange_password.ShowEnd Sub

Private Sub exit_Click ()Dim a As Integera = MsgBox ("Do you want to exit", vbCritical + vbYesNo, "Exit")If a = vbYes ThenUnload MeEnd IfEnd Sub

Private Sub personal_detail_Click ()frmpersonal_detail.ShowEnd Sub

Private Sub professional_detail_Click ()frmprofessional_detail.ShowEnd Sub

Private Sub Report1_Click ()DataReport1.ShowEnd Sub

Private Sub Report2_Click ()DataReport2.ShowEnd Sub

Private Sub Report3_Click ()DataReport3.ShowEnd Sub

Private Sub salary_detail_Click ()frm_salary_detail.ShowEnd Sub

Change Password Form

Dim con As New ADODB.ConnectionDim rs As New ADODB.Recordset

Private Sub cmdchange_password_Click()

Page 36

Page 37: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Dim a As Stringrs.Open "select * from login", con, adOpenDynamic, adLockOptimisticIf Trim(txtname.Text) = rs(0) ThenIf Trim(txtpassword.Text) = rs(1) Thena = MsgBox("Do you want to change your password", vbYesNoCancel + vbCritical, "Change Password")If a = vbYes Thenrs(1) = Trim(txtnew_pass.Text)rs.UpdateElseExit SubEnd IfElseMsgBox "Invalid Password"Exit SubEnd IfElseMsgBox "Invalid Username"End IfcmdReset_Clickrs.CloseEnd Sub

Private Sub cmdExit_Click()Dim a As Integera = MsgBox("Do you want to exit", vbCritical + vbYesNo, "Exit")If a = vbYes ThenUnload MeEnd IfEnd Sub

Private Sub cmdReset_Click()txtname.Text = ""txtpassword.Text = ""txtnew_pass.Text = ""txtretype_pass.Text = ""End Sub

Page 37

Page 38: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Public Sub store()txtname.Text = rs(0)txtpassword.Text = rs(1)txtnew_pass.Text = rs(2)txtretype_pass.Text = rs(3)End Sub

Private Sub Form_Load()con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\kkk\vb\Mydbempdetail.mdb"End Sub

Private Sub Form_Unload(Cancel As Integer)con.CloseEnd Sub

Personal Detail Form

Dim con As New ADODB.ConnectionDim rs As New ADODB.Recordset

Private Sub cmd_add_Click ()

Page 38

Page 39: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Clearrs.Open "select max (Emp_id) from Personal_Detail", con, adOpenDynamic, adLockOptimisticIf rs (0) <> Null Thentxt_emp_id.Text = 101Elsetxt_emp_id.Text = rs(0) + 1End Ifrs.ClosecmdSave.Enabled = TrueEnd Sub

Private Sub cmd_delete_record_Click ()On Error GoTo 11Dim a As Integera = MsgBox ("Do you want to delete the record", vbYesNo + vbCritical, "Delete")If a = vbYes Thenrs.Open "select* from Personal_Detail where emp_id=" & Val (txt_emp_id.Text) & "", con, adOpenDynamic, adLockOptimisticrs.Deleters.CloseClearEnd IfExit Sub11:MsgBox "Invalid Record", vbCritical, "Delete"End Sub

Private Sub cmd_exit_Click ()Dim a As Integera = MsgBox ("Do you want to exit", vbCritical + vbYesNo, "Exit")If a = vbYes ThenUnload MeEnd IfEnd Sub

Private Sub cmd_modify_record_Click ()Dim a As Integerrs.Open "select* from Personal_Detail where Emp_id=" & Val (txt_emp_id.Text) & "", con, adOpenDynamic, adLockOptimisticrs.Deleters.Closers.Open "select * from Personal_Detail", con, adOpenDynamic, adLockOptimistic

Page 39

Page 40: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

rs.AddNewstorers.UpdateMsgBox "Record Modified", vbInformation, "Record modified"ClearcmdSave.Enabled = Falsers.CloseEnd Sub

Private Sub cmd_print_Click ()DataReport1.ShowEnd Sub

Private Sub cmdSave_Click ()Dim a As Integerrs.Open "select * from Personal_Detail where emp_id = " & Val (txt_emp_id.Text) & " ", con, adOpenDynamic, adLockOptimisticWhile Not rs.EOFIf rs (0) = txt_emp_id.Text Thena = MsgBox ("Record Is Duplicate", vbYesNo + vbCritical, "Duplicate Record")Clearrs.CloseExit SubEnd Ifrs.MoveNextWendrs.AddNewstorers.UpdateMsgBox "Record Saved", vbInformation, "Record Saved"Clearrs.ClosecmdSave.Enabled = FalseEnd Sub

Private Sub cmdview_Click ()On Error GoTo 12List1.ClearOn Error GoTo 0rs.Open "select Emp_id from Personal_Detail", con, adOpenDynamic, adLockOptimisticWhile Not rs.EOFList1.AddItem rs (0)

Page 40

Page 41: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

rs.MoveNextWendrs.CloseList1.Visible = True12:End Sub

Private Sub Form_Load ()List1.Visible = Falsecon.Open "provider= microsoft.jet.oledb.4.0; data source=e:\kkk\vb\MydbEmpDetail.mdb"rs.Open "select max (Emp_id) from Personal_Detail", con, adOpenDynamic, adLockOptimisticIf rs (0) <> Null Thentxt_emp_id.Text = rs (0) + 1Elsetxt_emp_id.Text = 101rs.CloseEnd IfcmdSave.Enabled = FalseEnd Sub

Private Sub Form_Unload (Cancel as Integer)List1.Clearcon.CloseEnd Sub

Private Sub List1_Click ()i = List1.ListIndexEmp_Id = List1.Textrs.Open "select * from Personal_Detail where Emp_id=" + List1.Text + "", con, adOpenDynamic, adLockOptimistictxt_emp_id = rs (0)txtname = rs(1)

Page 41

Page 42: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

txtage = rs(2)txtnationality = rs(3)txtaddress = rs(4)txtphoneno = rs(5)txtfathername = rs(6)txtoccupation = rs(7)txtmothername = rs(8)txtlocal_g = rs(9)txtlocaladdress = rs(10)txtqualification = rs(11)DTPicker1.Value = rs (12)rs.CloseList1.Visible = FalseEnd Sub

Public Sub Clear ()txt_emp_id = ""txtname = ""txtage = ""txtnationality = ""txtaddress = ""txtphoneno = ""txtfathername = ""txtoccupation = ""txtmothername = ""txtlocal_g = ""txtlocaladdress = ""txtqualification = ""DTPicker1.Value = DateEnd Sub

Public Sub store()rs(0) = txt_emp_idrs(1) = txtnamers(2) = txtagers(3) = txtnationalityrs(4) = txtaddressrs(5) = txtphoneno

Page 42

Page 43: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

rs(6) = txtfathernamers(7) = txtoccupationrs(8) = txtmothernamers(9) = txtlocal_grs(10) = txtlocaladdressrs(11) = txtqualificationrs(12) = DTPicker1.ValueEnd Sub

Professional Detail Form

Dim con As New ADODB.ConnectionDim rs As New ADODB.Recordset

Private Sub cmd_add_Click ()Clear

Page 43

Page 44: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

rs.Open "select max(Emp_Id) from Professional_Detail", con, adOpenDynamic, adLockOptimisticIf rs(0) <> Null Thentxt_emp_id.Text = rs(0) + 1Elsetxt_emp_id.Text = 101End Ifrs.Closecmd_save.Enabled = TrueEnd Sub

Private Sub cmd_delete_record_Click()On Error GoTo 11Dim a As Integera = MsgBox("Do you want to delete the record", vbYesNo + vbCritical, "Delete")If a = vbYes Thenrs.Open "select* from Professional_Detail where Emp_Id=" & Val(txt_emp_id.Text) & "", con, adOpenDynamic, adLockOptimisticrs.Deleters.CloseClearEnd IfExit Sub11:MsgBox "Invalid Record", vbCritical, "Delete"End Sub

Private Sub cmd_exit_Click()Dim a As Integera = MsgBox("Do you want to exit", vbCritical + vbYesNo, "Exit")If a = vbYes ThenUnload MeEnd IfEnd Sub

Private Sub cmd_modify_record_Click()Dim a As Integerrs.Open "select* from Professional_Detail where Emp_Id=" & Val(txt_emp_id.Text) & "", con, adOpenDynamic, adLockOptimisticrs.Deleters.Closers.Open "select * from Professional_Detail", con, adOpenDynamic, adLockOptimisticrs.AddNewstore

Page 44

Page 45: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

rs.UpdateMsgBox "Record Modified", vbInformation, "Record modified"Clearcmd_save.Enabled = Falsers.CloseEnd Sub

Private Sub cmd_save_Click()Dim a As Integerrs.Open "select * from Professional_Detail where Emp_Id=" & Val(txt_emp_id.Text) & "", con, adOpenDynamic, adLockOptimisticWhile Not rs.EOFIf rs(0) = txt_emp_id.Text Thena = MsgBox("Record is Duplicate", vbYesNo + vbCritical, "Duplicate Record")Clearrs.CloseExit SubEnd Ifrs.MoveNextWendrs.AddNewstorers.UpdateMsgBox "Record Saved", vbInformation, "Record Saved"Clearrs.Closecmd_save.Enabled = FalseEnd Sub

Private Sub cmd_view_Click()On Error GoTo 12List1.ClearOn Error GoTo 0rs.Open "select Emp_Id from Professional_Detail", con, adOpenDynamic, adLockOptimisticWhile Not rs.EOFList1.AddItem rs(0)rs.MoveNext

Page 45

Page 46: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Wendrs.CloseList1.Visible = True12:End Sub

Private Sub Form_Load()List1.Visible = Falsecon.Open "provider= microsoft.jet.oledb.4.0; data source=e:\kkk\vb\MydbEmpDetail.mdb"rs.Open "select max(Emp_Id) from Professional_Detail", con, adOpenDynamic, adLockOptimisticIf rs(0) <> Null Thentxt_emp_id.Text = rs(0) + 1Elsetxt_emp_id.Text = 101rs.CloseEnd Ifcmd_save.Enabled = FalseEnd Sub

Private Sub Form_Unload(Cancel As Integer)List1.Clearcon.CloseEnd Sub

Private Sub List1_Click()i = List1.ListIndexEmp_Id = List1.Textrs.Open "select * from Professional_Detail where Emp_Id=" + List1.Text + "", con, adOpenDynamic, adLockOptimistictxt_emp_id = rs(0)txt_designation = rs(1)txt_department = rs(2)DTPicker1.Value = rs(3)

Page 46

Page 47: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

txt_experience = rs(4)rs.CloseList1.Visible = FalseEnd Sub

Public Sub Clear()txt_emp_id = ""txt_designation = ""txt_department = ""DTPicker1.Value = Datetxt_experience = ""End Sub

Public Sub store()rs(0) = txt_emp_idrs(1) = txt_designationrs(2) = txt_departmentrs(3) = DTPicker1.Valuers(4) = txt_experienceEnd Sub

Salary Detail Form

Private Sub cmd_add_record_Click()Data1.Recordset.AddNewcmd_save.Enabled = TrueEnd Sub

Private Sub cmd_delete_record_Click()

Page 47

Page 48: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Data1.Recordset.DeleteMsgBox ("Your Record have been Deleted")End Sub

Private Sub cmd_exit_Click()Dim a As Integera = MsgBox("Do you want to exit", vbCritical + vbYesNo, "Exit")If a = vbYes ThenUnload MeEnd IfEnd Sub

Private Sub cmd_modify_record_Click()Data1.Recordset.EditMsgBox ("Your Record have been Modified")End Sub

Private Sub cmd_save_Click()Data1.Recordset.UpdateMsgBox ("Your Record have been saved")End Sub

Private Sub cmd_total_Click()a = Val(txt_bs)b = Val(txt_ta)c = Val(txt_da)d = Val(txt_hra)lbl_Total.Caption = Val(txt_bs) + Val(txt_ta) + Val(txt_da) + Val(txt_hra)End Sub

Private Sub Form_Load()con.Open "provider= microsoft.jet.oledb.4.0; data source=e:\kkk\vb\MydbEmpDetail.mdb"rs.Open "select max(Emp_id) from Salary_Detail", con, adOpenDynamic, adLockOptimisticIf rs(0) <> Null Thentxt_emp_id.Text = rs(0) + 1Elsetxt_emp_id.Text = 101

Page 48

Page 49: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

rs.CloseEnd Ifcmd_save.Enabled = FalseEnd Sub

Page 49

Page 50: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

MODE OF

OPERATION

Splash Form

This form displays Splash Screen.

Page 50

Page 51: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Login Form

In this form user may enter User name & Password. If user name & password matched with the database then user may enter in Software & while entering

Page 51

Page 52: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

into the software user may perform further operation. In this way we can provide Authentication facility to the user.

MDI Form

This form contains all the sub forms related to this Project. This form contains different menus & each menu contains a sub menu. While click on the menu,

Page 52

Page 53: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

menu will display a sub menu, while clicking on the sub menu we can perform different operation.

Change Password Form

In this form user enter user name & old Password, & if old password matched with the database, then user may change his Password.

Page 53

Page 54: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Personal Detail Form

This form contains the Personal Detail of an Employee. In this form we can Add, Save, Modify, Delete, View our data & we can take the Printout also.

Page 54

Page 55: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Professional Detail Form

This form contains the Professional Detail of an Employee. In this form we can Add, Save, Modify, Delete, View our data & we can take the Printout also.

Page 55

Page 56: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Salary Detail Form

This form contains the Salary Detail of an Employee. In this form we can Add, Save, Modify, Delete, View our data & we can take the Printout also.

Page 56

Page 57: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

About Us Form

This form displays short description about our Project.

Page 57

Page 58: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Generated Reports

With the help of Data Environment we can generate Data Report & the Reports of different Forms are as shown below:

Report of Personal Detail Form

Page 58

Page 59: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Report of Professional Detail Form

Page 59

Page 60: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Report of Salary Detail Form

Page 60

Page 61: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

BIBLIOGRAPHY

Page 61

Page 62: 47357213-SRS-on-Employee-Detail-Complete-project-on-vb

Employee Management System 2010

Informatics Practices - Sumita Arora(A Book of Visual Basic)

VB Black Book - Steven Holzner

Page 62