Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 145

HUMAN RESOURCE MANAGEMENT SYSTEM page 1

INTRODUCTION

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 2

1. INTRODUCTION

At present, computers and their application affect almost every aspect of


modern business. Today even a small office runs application software which saves a lot of time
and manpower and helps the business to run properly with almost no errors and delay. An
information system is a set of devices. Procedures and operating system designed around user
based criteria to produce information and communicate it to the user for planning control and
performance. An information system uses different types of resources to convert data into
information, to accomplish user needs. Computer hardware such as mouse, keyboard, monitor
and software are examples.

The Human Resource Management System is a system that manage the


complete activities of the company. It includes storing the personal details of the employees
which means storing there name ,address details , qualification details, communication details
etc. The system also provide the facility of generating attendance and salary. The salary is
computed by computing their attendance and bonuses. The employers are categorized into two
basis , temporary and permanent basis. The salary are also calculated under these basis. The
system also shows the reminders for the staff , such as deadline day, submission day etc.

Objective of the System


The major objectives of the system can be outlined as follows.

* The system is able to manage all employee details in the company.

* The system can generate attendance of the employers.

* The system can generate salary of the employers.

* Notification for the submission date and deadline day is provided.

* The system also manage interview details .

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 3

1.1 PROJECT OVERVIEW

My project Human Resource Management System deals with staffs or


employees working in an institution. The main objective of HR Management System is to reduce
the workload among the employers in the institution such as searching staff details, important
documents, deadline days for the project, calculating salaries etc. There include various functions
in Human Resource management System they are:-

 Recruitment of staffs

 Entering staff details

 Salary calculation

 Bonus point calculation

 Reminder entry

This project handles various modules such as:

ADMINISTRATOR

Administrator is the one who handles overall details of staff and their
registration details. Admin maintains the record details. He can add new record such as adding a
new staff details when he is recruited. He can also update and delete the record whenever it is
necessary. Updating option arises when there is a chance when any of the personal details
regarding a staff has changed such as their phone numbers, address etc. He can also search the
record whenever it is necessary.

Administrator has the right to manage all the activities of the organization.
Creation of all the staff registration details is handled by the administrator. The administrator can
view all the details of each staff in each section. The administrator also creates the personal

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 4

contact details of each staff. A searching option is also provided by the admin, so that a single
search will provide the complete information regarding that staff. Retrieving records of staffs
who have retired couple of years ago has been a difficult task and the manual system also has
difficulty of producing different reports at the time of emergency.

MANAGER

Manager is considering being the head of the organization. Manager


handles the recruitment of staff and other faculty. He has the right to select and dismiss a faculty
member. He can give the deadline days of particular assignment or project to every member in
the institution. He is one who manages the overall operation in the organization.

STAFF

Staff aspect includes registering staffs, storing their personal details, login
details of each staff etc. An id will be provided to each staff. The id contains some codes to
access to organize. It is compulsory for each staff and is provided to everyone in the
organization. Id helps to login to the organization. The details of each staff are stored, so that all
the details of a staff can be easily find through a single search.

ATTENDANCE

The major concept of my project is the attendance. Attendance of each


staff is recorded. Attendance helps to identify the number of present days. Total working days
will also been recorded by checking attendance. One can easily find out their attendance. A staff
can take maximum of two days leave per month.

Salary of the staff members are decided on the basis of the attendance. The
attendance for each employee is entered differently, that is it is categorized according to the rank
of employees. Salary will be cut down if the attendance is below 75%.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 5

BONUSES

In this project the employers are awarded with Bonus points. The Bonus
point is calculated according to the employer’s performance basis and their attendance basis.
Bonus point is divided into five, four, three, two and one respectively. The employers with 5
bonus point will get Rs 5000, bonus point with 4 will get Rs 3600, bonus point with 3 will get Rs
2500 and bonus point with 2 and 1 will get Rs 1500 and Rs 600 respectively.

1.2 ORGANIZATION PROFILE


TEZTA TECHNOLOGY is an information technology, consulting and
outsourcing company with 10 to 20 employees serving clients. Tezta Technology provide
creative and technology solutions for all clients across different industries all over the globe.

The company has expertise in web Application development, Internet and


social media marketing and web and email hosting solutions. As a web deigning company it
design and develop aesthetically appealing websites that increase our customer’s online visibility
and brand. We create intelligent, creative and fully functional visual brands. The company’s key
highlight is a rigorous review of client requirement, narrowing down our offering to best suit the
requirement and choosing the best from amongst the suitable alternatives, thereby exercising
complete adherence to end objectives spelled out by the clients. The company also offer end to
end website design and development service at very competitive costing.

The company offers both software products and customized software


development services. The company’s key focus is on web application development. The
company’s internet marketing services include social media marketing for other companies or
clients; Email marketing, Managed Online Ads in Google, facebook etc.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 6

1.3 ORGANIZATION CHART

GENERAL
MANAGER

PROJECT
MANAGER

HR MANAGER

ADMINISTRATOR

SENIOR
PROGRAMMER

JUNIOR
PROGRAMMER

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 7

SYSTEM ANALYSIS

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 8

2. SYSTEM ANALYSIS

INTRODUCTION

System Analysis as the process of gathering and interpreting facts,


diagnosing problems and using the information to improve the system. Analysis specifies what
the system must do. The foremost job of the system analyst is to know how the current system
works .Only after collecting these facts, he can begin to determine how and where the new
system can benefit analysis activities.

System analysts do more than just solve current problem. They are
frequently called to help handle the planned expansion of a business. Analysts may recommend
alternatives for improving the situation. Usually more than one strategy is taken. The best
strategy is adopted. Once this is done a plan is to implement the recommendation.

2.1 PROBLEM ANALYSIS

2.1.1 EXISTING SYSTEM

The system study phase studies the problem, identifies alternate solution
evaluate those solution and finally recommends the best solution. The system study gives the
structure and function of the system. The system Study can be performed only on an existing
system. The system study gives an idea of then user requirements. A detailed system study is an
essential for developing an efficient system. The techniques used are:

 Observation
 Interview
 Discussion

It was found that the existing system is developed manually. The system
deals with collecting the employees or staffs details in a computerized manner. In human
resource management system, the information of the staffs are been maintained in bunch of

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 9

formal registers. In this system it maintains the records of all staffs by collecting their
qualification certificates, appointment letter, interview letter etc. The HR management keep track
with every staff members that are working in the institution by analyzing their performance and
attitude towards their work and will be rewarded if he is deserves it.

REGISTERS IN USE ARE:

 Staff Register :

It contains the details about the person who are working in the institution
that is their name, address, phone number, photo, date of birth etc.

 Emergency Register :

It stores the personal details of the staff who are working in the institution
that is storing the details of the person who have a relationship with the respective person such as
mother, father, friends, and neighbor etc. This register helps the system to contact the respective
person in case of any emergency.

 Interview Register :

It contains the details of the person who are going to attend the interview
in the institution that is their name, results of various test that had happen, interview date etc.

 OBSERVATION :-

Observation of the functioning of the existing system gives the Idea for the
design of the new system. This will figure of the pitfalls of the current system. It is helpful to
understand and study the entire current system. By observation we can point out the changes
needed to the existing system. It also validates the data gathered by other means. It also gives a
better understanding of the work load & pressures faced.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 10

 INTERVIEW :-

The main objective of the interview is to gather information regarding the


system from the concerned authorities/employees to find the system requirements and thereby
improving the existing system. Interviewing the managerial staff and user can make a thorough
understanding of the system and this will be useful to improve the efficiency of the existing
system.

 DISCUSSION :-

The main objective of the discussion is to transfer the ideas between the
department and the system developer. Thorough discussion, the problem faced by the user during
data entry, data retrieval, and report generation can be understood.

LIMITATION OF EXIXSTING SYSTEM

At the present the requirements of the system are done manually and
hence there are number of limitations.

 All the works and data are maintained in the forms and registers. To search for a staff
details or their document become a tedious job. Hence it also results in huge amount of
paperwork.
 Since all the work is done manually, many errors can be occurred in the database. Also it
results in large volume of data accumulation.

 Time and energy is also wasted. It affects the pace of the work and results in inefficient
management.

 The various activities are carried out by different section depending on their activity.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 11

 Reports are produced by manual processing, that will be an unformatted manual and
unreliable.

 Data security is less.

 Task Scheduling is difficult

 Requires great storage capacity.

 Not user friendly

 It ultimately leads to a poor performance

 Manual system can go wrong

 Pen and paper work are high

COMPARATIVE SYSTEM STUDY:

Since at present everything is done manually, it is having lot of


drawbacks. The major drawback of the present system is the bulk amount of physical volume of
the data making information search and retrieval a tedious process. There are changes of papers
containing information.

Because of all problems of the present system development of the


computerized system, which could solve all these, was inevitable. In the case of manual entry,
chances of entering incorrect data are high. With the help of messages and validation checks the
new system can contribute a lot to the accuracy of data report generation is very easy.
Computerized system can handle large inflow of data. It is fast flexible and user friendly than the
manual one.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 12

2.1.2 PROPOSED SYSTEM

The proposed system is fully computerized the total human work in the
information processing in the current system is reduced. The proposed system has the feature of
giving a unique staff-id to each staff members and saving his personal information. This avoids
the possibilities of repetition. It also provides a search feature. We can see the staff details by
entering their staff-id whenever we needed. We can also make further updating if it is necessary.
This makes the job easier and less time consuming. Thereby also reduces the chance of errors.

The main objectives of the system are:-

 Make the proposed system more accurate and faster.


 Provide user friendlier environment.
 The system should provide high security.
 Upgrading can be done with a faster rate.
 Documentation can be done in a faster way.

In order to effective solve the problems of existing system, a new system


is designed and implemented:

 System gives better feedback.


 Easy storage retrieval and updating of data.
 Timely and accurate information’s are available.

MERITS OF PROPOSED SYSTEM

The installation of this system will benefit the institution in following


ways:

 The System will provide easy data entry


 The system is very user friendly so the a person with basic computer knowledge can
operate the system
 The system has sufficient search features which enables fast look-ups for staffs

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 13

 Accuracy and performance increases


 As the proposed system is system oriented, it is faster than the manual process
 Report generation will take place automatically when demanded
 It also minimizes the errors in the data entry
 It reduces burden of staff
 It improves customer satisfaction due to the improvement in the stitches.

2.1.3 FEASIBILITY STUDY

When a new project is proposed, it normally goes through feasibility


assessment. Feasibility study is carried out to determine whether the proposed system is possible
to developed with available resources and what should be the cost consideration. Facts
considered in the feasibility analysis were:

 Economic feasibility
 Technical feasibility
 Operational feasibility

The proposed system must be evaluated from a technical view point first
and then considering behavioral and economical feasibility.

2.1.3.1 ECONOMICAL FEASIBILITY

This feasibility study present tangible and intangible benefits from the
project by comparing the development and operational cost. The technique of cost benefit
analysis is often used a basis for assessing economic feasibility. This system needs some more
initial investment than the existing system, but it can be justifiable than it will improve the
quality of service.

Thus feasible study should centre along the following points:

 Improvement resulting over the existing method in terms of accuracy, timeliness.


 Cost comparison.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 14

 Estimate on the life expectancy of the hardware.


 Overall objective

2.1.3.2 TECHNICAL FEASIBILITY

It is a study of resource availability that may affect the availability to


achieve an acceptable system. It is essential that the process of analysis and definition be
conducted in parallel with the assessment of technical feasibility. It centers’ on the existing
computer system and to what extent it can support the proposed system. This involves financial
consideration to accommodate technical enhancements. If the budget is a series constraint, the
project is judged as not feasible. The handling of the proposed system does not require the
changing of the existing configuration of the system.

2.1.3.3 BEHAVIORAL FEASIBILITY

This is also an operational feasibility. People are inherently resistant to


change and computers have been known to facilitate the change. An estimate should be of how
strong a reaction the user is likely to have towards the development of computerized system.
Therefore, it can be understood that the introduction of system requires special efforts to educate
and train the user on the way of conducting the business. The new system is very user friendly
and the operational cost is bearable. The maintenance and working of the new system needs less
human effort.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 15

2.2 REQUIREMENT SPECIFICATION


In the required system all the operations and activities related to the
company should be carried out efficiently. It should maintain a well organized database for
storing the details that are provided by the institution. This helps us to eliminate the entering of
invalid data. Most problems of manual system can be solved by this required system. The system
should cover almost all the functional areas of the company. This system should be a database
system that can store the information regarding the employee details, salary details, attendance
details, etc. The Human resource management system will store information such as employer’s
details, qualification details that can be handled regularly. The HUMAN RESOURCE
MANAGEMENT is the advanced software to deal with issues like providing security to the
details of the employers and other operations by computerising. This software also minimise the
duplication of the entries made by the administrator. This also reduces the work load of the
staffs. This software provide a user friendly interface which can be operated by anyone with
minimum knowledge of computer system.

2.2.1 SOFTWARE REQUIREMENT SPECIFICATION

An SRS is basically an organization's understanding (in writing) of a


customer or potential client's system requirements and dependencies at a particular point in time
(usually) prior to any actual design or development work. It's a two-way insurance policy that
assures that both the client and the organization understand the other's requirements from that
perspective at a given point in time.

The SRS document itself states in precise and explicit language those
functions and capabilities a software system must provide, as well as states any required
constraints by which the system must abide. The SRS also functions as a blueprint for
completing a project with as little cost growth as possible. The SRS is often referred to as the
"parent" document because all subsequent project management documents, such as design
specifications, statements of work, software architecture specifications, testing and validation
plans, and documentation plans, are related to it.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 16

It's important to note that an SRS contains functional and nonfunctional


requirements only; it doesn't offer design suggestions, possible solutions to technology or
business issues, or any other information other than what the development team understands the
customer's system requirements to be.

A well-designed, well-written SRS accomplishes four major goals:

 It provides feedback to the customer. An SRS is the customer's assurance that the development
organization understands the issues or problems to be solved and the software behaviour
necessary to address those problems. Therefore, the SRS should be written in natural language, in
an unambiguous manner that may also include charts, tables, data flow diagrams, decision tables,
and so on.
 It decomposes the problem into component parts. The simple act of writing down software
requirements in a well-designed format organizes information, places borders around the
problem, solidifies ideas, and helps break down the problem into its component parts in an
orderly fashion.
 It serves as an input to the design specification. As mentioned previously, the SRS serves as the
parent document to subsequent documents, such as the software design specification and
statement of work. Therefore, the SRS must contain sufficient detail in the functional system
requirements so that a design solution can be devised.
 It serves as a product validation check. The SRS also serves as the parent document for
testing and validation strategies that will be applied to the requirements for verification.

2.3 HARDAWARE AND SOFTWARE SPECIFICATION


HARDWARE SPECIFICATION

The selection of hardware is very important in the existence and


proper working of any software. When selecting hardware, the size and capacity requirements
are also important. Below is some of the hardware that is required by the system

Processor : Single core processor of 2.0 GHz or more


RAM : 512 MB of RAM

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 17

Hard Disk Space : 300 MB free hard disk space


Input Devices : Mouse, Keyboard
Output Devices : Monitor, Printer

SOFTWARE SPECIFICATION

We require much different software to make the application which is in


making to work efficiently. It is very important to select the appropriate software so that the
software works properly.

Below is the software that is required to make the new system.

1. Windows XP or higher versions

2. SQL Server Management Server 2008

3. Visual Basic 6.0

WINDOWS XP

Windows XP is an operating system produced by Microsoft for use on


personal computers, including home and business desktops, laptops and media centers. First
released to computer manufacturers on August 24, 2001, it is the second most popular version of
Windows, based on installed user base. The name "XP" is short for "eXPerience", highlighting
the enhanced user experience.

Windows XP, the successor to Windows 2000 and Windows Me, was the
first consumer-oriented operating system produced by Microsoft to be built on the Windows NT
kernel. Windows XP was released worldwide for retail sale on October 25, 2001, and over 400
million copies were in use in January 2006. It was succeeded by Windows Vista in January 2007.
Direct OEM and retail tests of Windows XP ceased on June 30, 2008. Microsoft continued to sell
Windows XP through their System Builders (smaller OEMs who sell assembled computers)
program until January 31, 2009. On April 10, 2012, Microsoft reaffirmed that extended support

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 18

for Windows XP and Office 2003 would end on April 8, 2014 and suggested that administrators
begin preparing to migrate to a newer OS.

We make use of the latest OS because , now a days, all the users are
friendly with the latest technologies, so as latest the OS , that well the user will be able to handle
the new software. Moreover, SQL and VB 6.0 which are platform independent software are
easily available and can be used in these OS’s.

SQL SERVER MANAGEMENT STUDIO 2008

SQL Server 2008 (formerly codenamed "Katmai") was released on


August 6, 2008 and aims to make data management self-tuning, self-organizing, and self-
maintaining with the development of SQL Server Always On technologies, to provide near-zero
downtime. SQL Server 2008 also includes support for structured and semi-structured data,
including digital media formats for pictures, audio, video and other multimedia data. In current
versions, such multimedia data can be stored as BLOBs (binary large objects), but they are
generic bit streams.

Intrinsic awareness of multimedia data will allow specialized functions to


be performed on them. According to Paul Flessner, senior Vice President, Server Applications,
Microsoft Corp., SQL Server 2008 can be a data storage backend for different varieties of data:
XML, email, time/calendar, file, document, spatial, etc. as well as perform search, query,
analysis, sharing, and synchronization across all data types.

VISUAL BASIC 6.0

Visual Basic is a third-generation event-driven programming language


and integrated development environment (IDE) from Microsoft for its COM programming model
first released in 1991. Visual Basic is designed to be relatively easy to learn and use. Visual
Basic was derived from BASIC and enables the rapid application development (RAD) of
graphical user interface (GUI) applications, access to databases using Data Access Objects,
Remote Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and objects.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 19

Scripting languages such as VBA and VBScript are syntactically similar to Visual Basic, but
perform differently.

A programmer can put together an application using the components


provided with Visual Basic itself. Programs written in Visual Basic can also use the Windows
API, but doing so requires external function declarations. Though the program has received
criticism for its perceived faults, from version 3 Visual Basic was a runaway commercial
success, and many companies offered third party controls greatly extending its functionality.
Like the BASIC programming language, Visual Basic was designed to be easily learned and
used by beginner programmers. The language not only allows programmers to create simple GUI
applications, but to also develop complex applications. Programming in VB is a combination of
visually arranging components or controls on a form, specifying attributes and actions of those
components, and writing additional lines of code for more functionality. Since default attributes
and actions are defined for the components, a simple program can be created without the
programmer having to write many lines of code. Performance problems were experienced by
earlier versions, but with faster computers and native code compilation this has become less of
an issue.

Visual Basic has the following traits which differ from C-derived languages:

 Statements tend to be terminated with keywords such as "End If", instead of using "{}"s
to group statements.
 Multiple variable assignments are not possible. A = B = C does not imply that the values
of A, B and C are equal. The Boolean result of "Is B = C?" is stored in A. The result
stored in A would therefore be either false or true.
 Logical and bitwise operators are unified. This is unlike some C-derived languages (such
as Perl), which have separate logical and bitwise operators. This again is a traditional
feature of BASIC.
 Relatively strong integration with the Windows operating system and the Component
Object Model. The native types for strings and arrays are the dedicated COM types,
BSTR and SAFEARRAY.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 20

2.4 USE CASE DIAGRAM

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 21

2.5 DATA FLOW DIAGRAM


A DFD is a graphical representation that depicts information flow and the
transforms that are applied as data move from input to output. The basic form of a DFD is also
known as a Data flow graph or a bubble chart.

DFD may be used to represent a system or software at any level of


abstraction. DFDs can be partitioned into levels that represent increasing information flow and
functional detail. A level 0 DFD, also called a fundamental system model or a context model,
represents the entire software element or a single bubble with input and output data indicated by
incoming and outgoing arrows, respectively. A level 1 DFD may contain five or six bubbles with
interconnection arrows. Each of the processes represented at level 1 is a sub function of the
overall system depicted in the context model.

DFD Notations

It represents a process or transform that is applied to data.

It represents data store-stored information that is used by software

It represents a source or destination

It represents a flow of data, that is, a data stream.

As illustrated in the above figure, the circle and or the bubble represent the
transformation process, and the label inside the bubble describes the process, using an active

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 22

verb to do so. Data flows or directed lines that identify the input data flows and output data flows
at each process bubble. Data storage represented by an open-ended rectangle with a label that
identifies the data store or file. The square is labeled to identify an external entity that is source
or destination of a data flow.

LEVEL 0 DFD

LEVEL 1 DFD

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 23

2.6 ER DIAGRAM
The Entity-Relationship (ER) model was originally proposed by Peter in
1976 [Chen76] as a way to unify the network and relational database views. Simply stated the
ER model is a conceptual data model that views the real world as entities and relationships. A
basic component of the model is the Entity-Relationship diagram which is used to visually
represents data objects. Since Chen wrote his paper the model has been extended and today it is
commonly used for database design for the database designer, the utility of the ER model is:

 It maps well to the relational model. The constructs used in the ER model can easily be
transformed into relational tables
 It is simple and easy to understand with a minimum of training. Therefore, the model can
be used by the database designer to communicate the design to the end user.
 In addition, the model can be used as a design plan by the database developer to
implement a data model in specific database management software.

An Entity – Relationship model (ER model for short) is an abstract way to


describe a database. It usually starts with a relational database, which stores data in tables. Some
of the data in these tables point to data in other tables- for instance, your entity in the database
could point to several entries for each of the phone numbers that are yours. The ER model would
say that you are an entity and each phone number is an entity, and the relationship between you
and the phone numbers is ‘has a phone number’. Diagrams created to design these entities and
relationships are called Entity – Relationship diagram or ER diagram.

An entity may be defined as a thing which is recognized as being capable of an independent


existence and which can be uniquely identified.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 24

ER DIAGRAM

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 25

SYSTEM DESIGN

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 26

3. SYSTEM DESIGN

3.1 STRUCTURED DESIGN METHODOLOGIES

System designing is the process of defining the architecture, components,


modules, interfaces and data for a system to satisfy specified requirements. The Human resource
Management System to be developed is designed in such a way that it is feasible for the system
buyer and meets the entire requirement specified. It is a solution to a “how to” approach
compared to system analysis which is a “what is” orientation. It translates the system
requirements into ways of making them operational. The design phase focuses on the detailed
implementation of the Human Resource Management System recommended in the feasibility
study.

The system which is in making is developed by working on two different


modules and combining them to work as a single unit. That single unit is the one which is known
as the new software. We go through the different design strategies to design the system we are
talking about. In the input design we decide which type of input screens are going to be used for
the system in making. In the output design we decide the output screens and the reports that will
be used to give the output and in the database design we decide what all tables will be required
and what all fields will be there in those tables. Each of them is discussed briefly below.

3.2 USER INTERFACE DESIGN

The Human resource Management System aims at creating software that


helps in managing a company. It helps to store the details of all the employees, salary reports and
attendance details in the database. This software facilitates to add, update, view and delete the
details about the employees in the company. This project helps to reduce the human effort and to
make calculation more accurate and fast. The major forms or the input design is described below
in detail.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 27

I Input design is the process of converting user originated inputs to a


computer based format. Input data are collected and organized into groups of similar data. Data
are entered through the keyboard and also the user can use the mouse for selecting options.
Errors entered by data entry operators can be controlled by input design. The goal of designing
input data is to make data entry easy. Logical and free from errors are possible.

All the input data are validated in the order and if any data violates any
condition the use is warned by a message and asks to re-enter data. If the data satisfies all the
conditions then it is transferred to the appropriate tables in the database.

Inaccurate input data are the most common cause of errors in data
processing. Errors entered by data entry can be controlled by input design. Input design is the
process of converting user-oriented inputs to a computer based format. There are three major
approaches for entering data into the computer. They are menus, formatted forms and prompts. A
menu is a selection list that simplifies computer data access or entry. Instead of remembering
what to enter, the user chooses from a list of options and selects the option associated with it. A
formatted form is a pre-printed form or a template that request the user to enter data in
appropriate location. It is a fill-in-the-blank type form. The form is flashed on the screen as a
unit. In prompt the system displays one inquiry at a time, asking the user for a response.

3.3 OUTPUT DESIGN

It is the part of overall system design. The goal of the output design is to
capture the output and get the data into format suitable for the computer. Data flow diagram
identifies the data tone captured and the output to the system. One of the important features of an
information system for users is the output it produces. Output is the information delivers to the
users delivered to the users through the information system. Without quality output the entire
system appears to be unnecessary that users will avoid using it. So while designing output the
following things are to be considered.

 Determine what information to present.


 Arrange the presentation of information in an acceptable format.
 Decide how to distribute the output to intended receipts.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 28

Depending on the nature and future use of output required, they can be
displayed on the monitor for immediate need and for obtaining the hardcopy.

3.4 DATABASE DESIGN

Database design is required to manage the large bodies of information.


The management of data involves both the definition of structure of the storage information and
provisions of mechanism for the manipulation of the information. In addition the database
system must provide for the safety of information handled, despite the system crashes due to
attempts art unauthorized access. For developing an efficient database, we will have to fulfil
certain condition such as:

 Control redundancy
 Ease of use
 Data independence
 Accuracy and integrity
 Avoiding inordinate delays
 Recovery from failure
 Privacy and security
 Performance

These are six major steps in the design process. The first five steps are
usually done on paper and finally the design is implemented.

3.4.1 Data and integrity constraints

The primary objectives of a database design are fast response time to


inquiries. The theme behind a database is to handle information as an integrated whole thus the
main objective is to make information as access easy, quick, inexpensive and flexible for the
users. In this project we mainly concentrate into relational databases.

Relational database stores data in tables, which is turn, are composed of


rows also known as records, columns also known as fields. The fields in the relational model are:

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 29

 Primary key

The key which is uniquely identify records. They also notify the not null constraints.

 Foreign key

The key which reference the primary key, is the data inserted in the primary key column of the
table.

 Normalization

After the conceptual level, the next level of process of database design to
organize the database structure into a good shape called Normalization. The normalization
simplifies the entries, removing redundancies from the system data and finally builds a data
structure, which is both flexible and adaptable to the system. The different normal forma
obtained during the database design given below.

In the database design, we create a database with different tables that is


used to store the data. We normalize the data in the table. Database normalization is the process
of organizing the fields and tables in a relational database to minimize redundancy and
dependency. Normalization usually involves dividing larger tables into smaller and less
redundant tables and defining relationships between them. In the project I have made used of
third normal form. Third normal form (3NF) is the property of database tables. A relation is in
third normal form if it is second normal form and there are no functional transitive dependencies
between two or more non-primary key attributes.

The overall objective in the development of database technology has been to treat
data as an organizational resource and as an integrated whole. Database management system
allows data to be protected and organized separately from other resources. Database is an
integrated collection of data. This is the difference between logical and physical data.

In my project, I have made use of tables which are stored in the database
named azeem. The tables are used to store the values that are generated by the application. Table
design refers top how the logical data structures are to be physically stored in the database and it

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 30

also deals with the design of physical database. Various factors are considered during the table
design .some are listed below:

 Purpose of the table


 Availability of the hardware
 Method of access
 File activity
 File size
 Input and output requirements

The designing of the tables in the database is done according to the rules
specified for the databases as described above. The main field names and the key constraints of
all the tables are shown below in detail.

TABLES
 EMPDETAILS

Primary Key –empno

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


empno int Primary key Employee number
fname varchar(50) Not null First name
lname varchar(50) Not null Last name
address varchar(50) Not null address
dob date Not null Date of birth
cellph bigint Not null Cell phone number
email varchar(50) Not null Email address
gender varchar(10) Not null gender
status varchar(50) Not null status
location varchar(50) Not null location
position varchar(50) Not null position
hiredate date Not null hiredate
w2status varchar(50) Not null Marriage status
img nvarchar(MAX) Not null image

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 31

 DOCUMENT

Primary Key –doid

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


dloc nvarchar(MAX) Not null Documents locattion
docid int Primary key Document id
empno varchar(50) Not null Employee number

 BONUS CALCULATION

Primary Key –bid

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


bid int Primary key Bonus id
empno varchar(50) Not null Employee number
ename varchar(50) Not null Emplyee name
bpoint int Not null Bonus point
bamount int Not null Bonus amount
title varchar(50) Not null title
descr varchar(50) Not null description
date date Not null date

 ATTENDANCE

Primary Key –id

Forign key-empno

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


presence float Not null Number of
attendance
Atype varchar(50) Not null Attendance type
date date Not null date
ename varchar(50) Not null Employee name
empno int Forign key Not null Employee number
id int Primary key id

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 32

 BONUS ENTRY

Primary Key –boid

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


boid int Primary key Bonus id
bpoint int Not null Bonus point
bamount int Not null Bonus amount

 INTERVIEW

Primary Key –empid

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


EMPID int Primary key Employee id
ENAME nvarchar(50) Not null Employee name
QUAL nvarchar(50) Not null qualification
address nvarchar(50) Not null address
phno bigint Not null Phone number
COMMUNICATION int Not null Communication score
TECHNICAL int Not null Technical score
APPTITUDE int Not null Apptitude score
date date Not null date

 LOGIN

Primary Key –username

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


username varchar(50) Primary key username
password varchar(50) Not null password
usertype varchar(50) Not null usertype

 PERMENANT SALARY

Forign Key –empid

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


empid int Forign key Employee id
empname varchar(50) Not null Employee name
totsalary int Not null Total salary

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 33

salperday int Not null Salary per day


presentday int Not null Number of Present
days
tax int Not null Tax
pf int Not null Pf
bonus int Not null Bonus
earned int Not null Total earned

 REMINDER

Primary Key –id

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


id int Primary key id
date date Not null date
title varchar(50) Not null title
description varchar(50) Not null description

 TEMPORARY SALARY

Forign Key –empid

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


EMPID int Forign key Employee id
EMPNAME varchar(50) Not null Employee name
TOTSAL int Not null Total salary
BONUS int Not null Bonus
PF int Not null PF
TOTHOURS int Not null Total Hours
EARNED int Not null Earned
DATE date Not null Date

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 34

 WAGE TYPE
Primary Key –id

FIELD NAME DATA TYPE CONSTRAINTS DISCRIPTION


id int Primary key id
empno int Not null Employee noumber
name varchar(50) Not null Name
wdate date Not null Wage date
wtype varchar(50) Not null Wage type
rate int Not null Rate
note varchar(50) Not null Note
pf int Not null Pf
tax int Not null Tax

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 35

CODING

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 36

4. CODING

PROGRAM CODE PREPARATION

W he n c on si d e r e d as a st ep i n s o f t w a r e en gi n e e ri n g, c od i n g
i s v i e w ed as a n at ur a l consequence of design. However, programming language
characteristics and coding style can profoundly affect software quality and maintainability.
The coding step translates a detail design re presentation into a programming
language realization. The translation process continues when a compiler accepts source code as
input and produces machine-independent object code as output. The initial translation step in
detail design to programming language is a primary concern in the software
engineering context. Improper interpretation of a detail design specification can lead to
erroneous source code. Style is an important attribute of source code and can determine
the intelligibility of a program. The elements of a style include internal documentation,
methods for data declaration, procedures for statement construction, and I/O coding and
declaration. In all cases, simplicity and clarity are key characteristics. An offshoot of
coding style is the execution time and/or memory efficiency that is achieved. Coding is the
phase in which we actually write programs using a programming language. In t h e c odi n g
ph as e, de si gn m u st be t r an sl at ed i nt o a m a chi ne r e ad ab l e fo rm . If d es i gn
i s performed in a detailed manner, coding can be accomplished mechanistically. It
was the only recognized development phase in early or unsystematic development processes,
but it is just one of several phases in a waterfall process. The output of this phase is an
implemented and tested collection of modules.

In my project I have made use of the Visual basic 6 to code the whole project and have
made use of the SQL Server 2008 to act as a database to store the results of the processed

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 37

IMPLEMENTATION OF SECURITY

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 38

5. IMPLEMENTATION OF SECURITY
The software quality assurance is comprised of a verity of tasks associated
with seven major activities.
 Application of technical methods

 Conduct of formal technical reviews.

 Software testing.

 Enforcement of standards.

 Record keeping and reporting.

The quality begins with a set of technical methods and tools that help the
analyst to achieve high quality specification and the designer to develop high quality design. The
next activity involves assessment for quality for the design that is created which is the formal
technical review. Software testing combines a multi-step strategy with a series of test case design
methods that help ensure effective error detection.

5.1 DATA SECURITY

The software maintains a well organized database for storing the details
that are provided in the store. This helps us to eliminate the entering of invalid data. Data is not
accessible to unauthorized users. The admin will provide the test data, specially designed to
show that the system will operate successfully in all its aspects and produce expected results
under expected conditions. Preparation of test data and the checking of results should be carried
out in conjunction with the appropriate users and operational departments. Also the extent to
which the system should be tested must be planned. This software provides security to the details
of the students, staff and marks by computerizing the store.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 39

5.2 USER AND ACCESS RIGHTS

Admin: have the permission to login for the reference of the tasks, and in order to add new staff
members, their complete details referencing, and to view and update mark details.

Staff: This module includes the details regarding the students, new admissions, updation, and
viewing the mark details, generating ranklists etc.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 40

SYSTEM TESTING

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 41

6. SYSTEM TESTING
The System was tested and found to be working as expected. There was no
abnormal behavior reported during the testing of the program. Testing is a method by which we
try reducing the testing efforts and bringing out the maximum output. Testing helps us in
knowing whether the logical assumptions that we have taken for the system are correct, and if
they are correct we have obtained our goal. We test the system to know the errors, to check the
validity of the information, to also group the modules with the aim that we meet the system
requirements according to the system needs.

Testing is vital to the success of the system. System testing makes logical
assumption that if all the parts of the system are correct, we have achieved the mission
successfully. System testing is the stage of implementation that is aimed at assuring that the
system works accurately and efficiently before the live operation commences.

The candidate system is subject to a variety of tests. A series of test are


performed for the proposed system before it is ready for user acceptance and testing.

The various tests are:

1. Unit testing
2. Integration testing.
3. User Acceptance testing.

6.1 UNIT TESTING

Each unit was found to be working satisfactorily. This testing is carried


out during the programming stage itself. In this testing step each module is found to be working
satisfactorily as regards to the expected output from the module. Using a method called white
box testing in which the software tester has knowledge of the inner workings, structure and
language of the software, or at least its purpose and where each module or component of the
software is tested individually. In the unit test case we will be testing the separate modules of the
Software. We will test the components by passing data through it and we will be monitoring data
to find the errors. We will be looking for entry and exit conditions of the data. We will make sure
that all the components work without any troubles.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 42

6.2 INTEGRATION TESTING

After splitting the program into units, the units were tested together to see
the defects between each module and function. It is testing two or more modules or functions
together with the intent of finding interface defects between the modules or functions. Testing
completed at as part of unit or functional testing, and sometimes, becomes its own standalone
test phase. On a larger level, integration testing can involve putting together of groups of
modules and functions with the goal of completing and verifying that the system meets the
system requirements.

6.3 USER ACCEPTANCE TESTING

The System was tested by a small client community to see if the program
met the requirements defined the analysis stage. It was found to be satisfactory. In this phase, the
system is fully tested by the client community against the requirements defined in the analysis
and design stages, corrections are made as required, and the production system is built. User
acceptance of the system is key factor for success of the system. The system under consideration
is tested for user acceptance by constantly keeping in touch with the users at the time of
developing and making changes whenever required.

This was done regard to the following point:

 Input screen design


 Output screen design
 Menu driven system

6.4 TEST CASES

User Authentication:

It checks whether the username and password of the user has a correct
match.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 43

Integer Field Check:

Checking whether a particular text field which is supposed to receive only


integers, is receiving any other characters.

Function Tested Expected Result Result


456 Display As expected
Zxcsf Doesn’t display As expected
&*% Doesn’t display As expected

Field Checking:

Checks whether the correct data is entered for the field.

Function Tested Expected Result Result


Name Can contain only characters and As expected
blank space
Phone number Can contain only 10 digits As expected

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 44

SYSTEM IMPLEMENTATION & MAINTENANCE

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 45

7. SYSTEM IMPLEMENTATION
Implementation is an activity that is contained throughout the
development phase. It is the process of bringing a developed system into
operational use and turning it over to the user. T h e n e w s ys t e m a n d i t s
components are to be tested in a structured and planned manner. A
successful system should be delivered and users should have the confidence that the
system would work efficiently and effectively. The more complex the system being
implemented the more involved will be the system analysis and design effort required for
implementation. I m p l e m e n t a t i o n is the stage of the system when the
t h e o r e t i c a l d e s i g n i s t u r n e d i n t o working system. The implementation involves
careful planning investigation of the current s ys t e m a n d i t s c o n s t r a i n t s o n
i m p l e m e n t i n g , d e s i g n o f m e t h o d s t o a c h i e v e t h e c h a n g e o v e r , training of user
over procedure and evaluation change over method. There are three types of implementation:

1. Implementation of a computer system to replace a manual system. The problems involved are
converting files, training users, creating accurate files, and verifying printouts for integrity.

2. Implementation of a new computer system to replace an existing one. This is usually a


difficult conversion. If not properly planned, there can be many problems. Some larger systems
have taken as long as a year to convert.

3. Implementation of a modified application to replace an existing one using the same computer.
This type of conversion is relatively easy to handle, provided there are no major changes in files.

SYSTEM MAINTENANCE

Maintenance corresponds to restoring something to original conditions,


covering a wide r a n g e o f a c t i v i t i e s i n c l u d i n g c o r r e c t i n g c o d e s a n d d e s i g n
e r r o r s a n d u p d a t i n g u s e r s u p p o r t . Maintenance is performed most often to improve the
existing software rather than to a crisis or risk failure. The system would fail if not properly
maintained. The software maintenance is an important one in the software
development because we have to spend more efforts for maintenance. Software

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 46

maintenance is to improve the software quality according to the requirements. After a


system is successfully implemented, it should be maintained in a proper manner. The need for
system maintenance is to make the system adaptable to the changes in the system
environment. There may be social, economical or technical changes, which affect system being
implemented.

Software product enhancements may involve


p r o v i d i n g n e w f u n c t i o n a l c a p a b i l i t i e s , i m p r o v i n g u s e r d i s p l a ys a n d
m o d e o f i n t e r a c t i o n , u p g r a d i n g t h e p e r f o r m a n c e characteristics of the system. So
only through proper system maintenance procedures, the system can be adapted to cope with
these changes. We may define maintenance by describing four activities that are
undertaken to after a program is released for use. The first maintenance activity occurs
because it is unreasonable to assume that software testing will uncover all latent errors in a
large software system.

During the use of any large p r o g r a m , e r r o r s w i l l o c c u r a n d


b e r e p o r t e d t o t h e d e v e l o p e r . T h e p r o c e s s t h a t i n c l u d e s t h e diagnosis and
correction of one or more errors is called corrective maintenance. The second activity that
contributes to a definition of maintenance occurs because of the rapid change that is encountered
in every aspects of computing. Therefore, adaptive maintenance – an activity that modifies
software to properly interface with a changing environment is both necessary and
common place.

The third activity that may b e applied to a definition of


m a i n t e n a n c e o c c u r s w h e n a software package is successful. As the software is used,
recommendations for new capabilities, m o d i f i c a t i o n s t o e x i s t i n g f u n c t i o n s , a n d
g e n e r a l e n h a n c e m e n t s a r e r e c e i v e d f r o m u s e r s . T o satisfy requests in this
category, perfective maintenance is performed. This activity accounts for the majority of all
efforts expended on software maintenance.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 47

The fourth maintenance activity occurs when software is


changed to improve future maintainability or reliability, or to provide a better basis for future
enhancements. Often called preventive maintenance, this activity is characterized by reverse
engineering and re-engineering techniques.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 48

SCOPE OF PROJECT

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 49

8. SCOPE OF THE PROJECT


The Human Resource Management System gives us abstract information
about working of a company as we are concentrating on the staffs who are working on the
company. We can add employees and maintain their record and can also generate their salary and
attendance details. In this project we can store all the document details such as their hired letters,
qualification certificate etc details. This is a time-saving and efficient project. The Human
Resource Management System can use it to efficiently store all the data in a secure database. It is
less prone to errors as the program checks the data entered before saving it to database. If it finds
any data to be unsatisfactory it shows a warning This project can be used in any company. It is
extremely simple to use and quite powerful at the same time. It takes the load off the office staffs
and admin in the company. It gives quick response to the queries entered by the user. This
project performs most of the functions in the company. The system is very flexible and changes
can be made without much difficulty. The future extension in the system can be made in such a
way that addition of new modules can be done without much difficulty. The reconstruction of the
system will increase the flexibility of the system. The things mentioned above will be carried out
in future to the user to correct the error.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 50

FUTURE ENHANCEMENT

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 51

9. FUTURE ENHANCEMENT
Any system which has been in use for a number of years gradually decays
and become less effective because of change in environment to which it has to be adapted. For
the time being it is possible to overcome problems by amendments and minor modifications to
acknowledge the need of fundamental changes.

The Human Resource Management System satisfies the requirements of


the store. The system is developed in a user friendly manner. It has one module for manipulating
the database. The application can be enhanced in the future with the needs of the management.
The database and the information can be updated to the latest coming versions. There are also
possibilities for enhancing and further developing the project with the latest information and
needs of the management, since the coding are in procedural block formats, altering the code is
also made easy.

The efficiency of the developed system can be improved by modification.


Today most of the services are based on web services. This system can also be connected online.

All the functions have been done carefully and successfully in the
software, and if any development is necessary, in future it can be done without affecting the
design by adding additional modules to the system. Some of the enhancements that can increase
the value of this application are the following:

 We can include account maintenance of the Store .


 The entire process of the firm can be computerized.
 Sounds and videos can be provided.
 More number of item details can be inserted into the database.
 It can be integrated with the web for universal access.

 Upgrading the performance

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 52

This system is now implemented at the client machine only but as a


future enhancement we can modify the system in such a way to make it work on a client-
server network. The system can be even more enhanced by making it an internet based
system.

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 53

CONCLUSION

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 54

10. CONCLUSION
The project “The Human Resource Management System” has been
created with the intention of providing a user with application which will suffice all needs for the
details of the company and other updates. All the requirements specifications was followed as for
as possible and few additional features were added that can make the application more user
friendly and less complicated. The project was successfully completed within the time span
allotted. All the modules are tested separately and put together to form the main system. Finally
the system is tested with real data and it worked successfully. Thus the system has fulfilled the
entire objective defined.

The project “The Human Resource Management System“ has been


developed with the proper guidance from the client. A fully fledged user manual for this
system is provided to the user for future working and functional references. We hope the
“The Human Resource Management System“ fulfils all the needs in possible manner. The
system has been developed in an interactive manner; the reports generated by the system are
clear and legible. The system is flexible, user friendly and has its own full data security and
all data recovery facility.

The Major Advantages Are:

 Easy retrieval of data available in database.


 Quick implementation of results.
 Very user friendly.
 Does not require large amount of memory.
 Very less manual work is needed.
 Very cost effective

Limitations:
 Employee has to go through many records to find any particular transaction, which
can take up a lot of time and effort.
 End user should have the basic knowledge of the computers

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 55

BIBLIOGRAPHY

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 56

11. BIBLIOGRAPHY
Elias. M. Awad, “System Analysis and Design”, Galgoeia publications Second Edition2005.
Peter Norton, “Guide to Visual Basic 6”, Sams publications – First Edition, 2005
Henry Korth,” Data Base Design Concept”,Mc grew hill – Fifth Edition 2001.
Roger.S.Pressman,” Software Engineering “,Mc grew hill Fifth Edition 2006.
www.stackoverflow.com
www.vbforums.com
www.xtemevbtalk.com

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 57

APPENDIX- A

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 58

FrmLogin

Private Sub CMDCANCEL_Click()

Unload Me

End Sub

Private Sub cmdlogin_Click()

If TXTUNAME.Text = "" Then

MsgBox "ENTER USERNAME "

TXTUNAME.SetFocus

ElseIf txtpassword.Text = "" Then

MsgBox "ENTER PASSWORD"

txtpassword.SetFocus

Else

If RS.State = 1 Then RS.Close

RS.Open "SELECT * FROM LOGIN WHERE USERNAME='" & TXTUNAME.Text & "'
AND PASSWORD ='" & txtpassword.Text & "'"

If RS.EOF = False Then

FrmMenu.Show

Else

MsgBox " INVALID USERNAME OR PASSWORD "

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 59

TXTUNAME.Text = ""

txtpassword.Text = ""

TXTUNAME.SetFocus

End If

TXTUNAME.Text = ""

txtpassword.Text = ""

End If

End Sub

Private Sub Form_Activate()

TXTUNAME.SetFocus

End Sub

Private Sub txtpassword_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

cmdlogin.SetFocus

End If

End Sub

Private Sub TXTUNAME_KeyPress(KeyAscii As Integer)

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 60

If KeyAscii = 13 Then

txtpassword.SetFocus

End If

End Sub

FrmMenu

Private Sub Form_Load()

FrmLogin.Visible = False

End Sub

Private Sub mnuattend_Click()

FrmAttendace.Show

End Sub

Private Sub MNUBOCALC_Click()

FrmBonus.Show

End Sub

Private Sub MNUBONUS_Click()

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 61

FrmBpointEntry.Show

End Sub

Private Sub MNUDOC_Click()

FrmDocument.Show

End Sub

Private Sub MNUDOCUP_Click()

FrmDocUpload.Show

End Sub

Private Sub mnuedetails_Click()

FrmEmployeeDetails.Show

End Sub

Private Sub mnuinterview_Click()

FrmInterviewdetails.Show

End Sub

Private Sub mnulog_Click()

Unload Me

FrmLogin.Show

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 62

End Sub

Private Sub mnurementry_Click()

FrmReminder.Show

End Sub

Private Sub mnuremview_Click()

FrmReminderView.Show

End Sub

Private Sub MNUREPORT_Click()

FrmReport.Show

End Sub

Private Sub mnusalary_Click()

FrmSalary.Show

End Sub

Private Sub mnuwagerec_Click()

FrmWageRecod.Show

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 63

Private Sub MNUWRECORD_Click()

FrmWageRecod.Show

End Sub

FrmAttendance

Dim CMD As New ADODB.Command

Private Sub Cmbsallist_Click()

LSTWAGE.Clear

If RS.State = 1 Then RS.Close

RS.Open "select name from wagetype where wtype='" & Cmbsallist.Text & "'", CON,
adOpenDynamic, adLockOptimistic

While RS.EOF = False

LSTWAGE.AddItem (RS!Name)

RS.MoveNext

Wend

If Cmbsallist.Text = "TEMPORORY" Then

Frame2.Visible = False

Label7.Visible = True

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 64

TXTATT.Visible = True

txtname.Text = ""

TXTEID.Text = ""

ElseIf Cmbsallist.Text = "PERMENENT" Then

Frame2.Visible = True

Label7.Visible = False

TXTATT.Visible = False

txtname.Text = ""

TXTEID.Text = ""

End If

End Sub

Private Sub Cmbsallist_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub CMDCANCEL_Click()

Unload Me

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 65

Private Sub cmdsubmit_Click()

If TXTEID.Text = "" Then

MsgBox " select the employer ", vbInformation

Cmbsallist.SetFocus

ElseIf txtname.Text = "" Then

MsgBox " select the employer ", vbInformation

Cmbsallist.SetFocus

ElseIf TXTATT.Text = "" Then

MsgBox " enter the attendance ", vbInformation

Else

If RS.State = 1 Then RS.Close

RS.Open "select * from attendance where empno='" & TXTEID.Text & "' and date ='" &
DTPicker1.Value & "'", CON, adOpenDynamic, adLockOptimistic

If RS.EOF = False Then

MsgBox " attendance already registered in the date " & DTPicker1.Value & " for " &
txtname.Text

Exit Sub

End If

If Cmbsallist.Text = "TEMPORORY" Then

CMD.ActiveConnection = CON

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 66

CMD.CommandText = "insert into attendance values('" & TXTEID.Text & "','" &
txtname.Text & "','" & DTPicker1.Value & "','" & Cmbsallist.Text & "','" & TXTATT.Text &
"'); "

CMD.Execute

MsgBox " SUCCESSFULLY SAVED "

ElseIf Cmbsallist.Text = "PERMENENT" Then

CMD.ActiveConnection = CON

CMD.CommandText = "insert into attendance values('" & TXTEID.Text & "','" &
txtname.Text & "','" & DTPicker1.Value & "','" & Cmbsallist.Text & "','" & TXTATT.Text &
"');"

CMD.Execute

MsgBox " SUCCESSFULLY SAVED "

End If

TXTEID.Text = ""

Cmbsallist.Text = ""

txtname.Text = ""

TXTATT.Text = ""

LSTWAGE.Clear

End If

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 67

Private Sub cmdupdate_Click()

If Cmbsallist.Text = "TEMPORORY" Then

CMD.ActiveConnection = CON

CMD.CommandText = "UPDATE ATTENDANCE SET PRESENCE ='" & TXTATT.Text & "'
where ENAME='" & txtname.Text & "'"

CMD.Execute

MsgBox " SUCCESSFULLY UPDATED "

ElseIf Cmbsallist.Text = "PERMENENT" Then

CMD.ActiveConnection = CON

CMD.CommandText = "UPDATE ATTENDANCE SET PRESENCE ='" & TXTATT.Text & "'
where DATE='" & DTPicker1.Value & "'"

CMD.Execute

MsgBox " SUCCESSFULLY UPDATED "

End If

TXTEID.Text = ""

Cmbsallist.Text = ""

txtname.Text = ""

TXTATT.Text = ""

LSTWAGE.Clear

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 68

Private Sub Form_Load()

Cmbsallist.AddItem "PERMENENT"

Cmbsallist.AddItem "TEMPORORY"

End Sub

Private Sub LSTWAGE_DblClick()

If RS.State = 1 Then RS.Close

RS.Open "select empno,name from wagetype where name='" & LSTWAGE.Text & "'", CON,
adOpenDynamic, adLockOptimistic

txtname.Text = RS!Name

TXTEID.Text = RS!EMPNO

End Sub

Private Sub optabsent_Click()

TXTATT.Text = 0

End Sub

Private Sub opthalf_Click()

TXTATT.Text = 0.5

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 69

Private Sub optpresent_Click()

TXTATT.Text = 1

End Sub

FrmEmployeeDetails

Private Sub Cmdadd_Click()

id1

txtname.Text = ""

txtlname.Text = ""

txtadd.Text = ""

txtloc.Text = ""

txtemail.Text = ""

txtcell.Text = ""

cmppos.Text = "SELECT"

cmpwstat.Text = "SELECT"

cmpstat.Text = "SELECT"

cmpgend.Text = "SELECT"

Text1.Text = ""

img.Picture = LoadPicture("")

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 70

Private Sub CMDCANCEL_Click()

Unload Me

End Sub

Private Sub cmdcapture_Click()

FrmWebcam.Show

End Sub

Private Sub CMDDEL_Click()

If MsgBox("do you want to delete any record ", vbYesNo + vbQuestion) = vbYes Then

CON.Execute "DELETE FROM TBLEMPLOYEE WHERE EMPNO='" & txtempno.Text &


"'"

MsgBox " DELETED SUCCESSFULLY "

End If

txtname.Text = ""

txtlname.Text = ""

txtadd.Text = ""

txtloc.Text = ""

txtemail.Text = ""

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 71

txtcell.Text = ""

TXTAGE.Text = ""

cmppos.Text = "SELECT"

cmpwstat.Text = "SELECT"

cmpstat.Text = "SELECT"

cmpgend.Text = "SELECT"

img.Picture = LoadPicture("")

End Sub

Private Sub cmdsave_Click()

If txtname.Text = "" Then

MsgBox "ENTER FIRST NAME", vbInformation

txtname.SetFocus

ElseIf txtlname.Text = "" Then

MsgBox "ENTER LAST NAME ", vbInformation

txtlname.SetFocus

ElseIf txtadd.Text = "" Then

MsgBox "ENTER ADRESS", vbInformation

txtadd.SetFocus

ElseIf txtcell.Text = "" Then

MsgBox "enter phone numbers", vbInformation

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 72

txtcell.SetFocus

ElseIf txtemail.Text = "" Then

MsgBox "enter email ", vbInformation

txtemail.SetFocus

ElseIf cmpgend.Text = "SELECT" Then

MsgBox "select gender", vbInformation

cmpgend.SetFocus

ElseIf cmpstat.Text = "SELECT" Then

MsgBox "select status ", vbInformation

cmpstat.SetFocus

ElseIf txtloc.Text = "" Then

MsgBox "enter location", vbInformation

txtloc.SetFocus

ElseIf cmppos.Text = "SELECT" Then

MsgBox "select position", vbInformation

cmppos.SetFocus

ElseIf cmpwstat.Text = "SELECT" Then

MsgBox "select relation status", vbInformation

cmpwstat.SetFocus

ElseIf TXTIMG.Text = "" Then

MsgBox " SELECT OR TAKE THE PICTURE OF THE EMPLOYEE "

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 73

Command1.SetFocus

Else

CON.Execute "insert into TBLemployee values('" & txtempno.Text & "','" & txtname.Text &
"','" & txtlname.Text & "','" & txtadd.Text & "','" & DTPicker1.Value & "','" & txtcell.Text &
"','" & txtemail.Text & "','" & cmpgend.Text & "','" & cmpstat.Text & "','" & txtloc.Text & "','"
& cmppos.Text & "','" & DTPicker2.Value & "','" & cmpwstat.Text & "','" & TXTIMG.Text &
"')"

MsgBox " SAVED SUCCESFULLY ", vbInformation

End If

End Sub

Private Sub cmdsearch_Click()

If RS.State = 1 Then RS.Close

RS.Open "SELECT* FROM TBLEMPLOYEE WHERE EMPNO='" & txtsearch.Text & "'"

If RS.EOF = False Then

txtempno.Text = RS(0)

txtname.Text = RS(1)

txtlname.Text = RS(2)

txtadd.Text = RS(3)

DTPicker1.Value = RS(4)

txtcell.Text = RS(5)

txtemail.Text = RS(6)

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 74

cmpgend.Text = RS(7)

cmpstat.Text = RS(8)

txtloc.Text = RS(9)

cmppos.Text = RS(10)

cmpwstat.Text = RS(12)

TXTAGE.Text = DateDiff("YYYY", DTPicker1.Value, Date)

On Error Resume Next

img.Picture = LoadPicture(App.Path & "/USERPIC/" & RS(13))

Else

MsgBox "EMPLOYEE IS INVALID "

End If

End Sub

Private Sub cmdupdate_Click()

CON.Execute " UPDATE TBLEMPLOYEE SET EMPNO='" & txtempno.Text & "',FNAME='"
& txtname.Text & "',LNAME='" & txtlname.Text & "',ADDRESS='" & txtadd.Text &
"',DOB='" & DTPicker1.Value & "',CELLPH='" & txtcell.Text & "',EMAIL='" & txtemail.Text
& "',GENDER='" & cmpgend.Text & "',STATUS='" & cmpstat.Text & "',LOCATION='" &
txtloc.Text & "',POSITION='" & cmppos.Text & "',HIREDATE='" & DTPicker2.Value &
"',W2STATUS='" & cmpwstat.Text & "',img='" & TXTIMG.Text & "' WHERE EMPNO ='" &
txtempno.Text & "'"

MsgBox " UPDATED SUCCESFULLY "

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 75

Private Sub cmpgend_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub cmppos_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub cmpwstat_Click()

cmpwstat.AddItem "MARRIED"

cmpwstat.AddItem "SINGLE"

End Sub

Private Sub cmpwstat_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub Command1_Click()

With cd

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 76

.DialogTitle = "search employee pictures"

.Filter = "bitmap(*.bmp)|*.bmp|jpeg(*.jpg)|*.jpg|gif(*.gif)|*.gif|all files(*.*)|*.*"

.Flags = cdlOFNHideReadOnly + cdlOFNOverwritePrompt + cdlOFNPathMustExist

.ShowOpen

.FilterIndex = 1

.CancelError = False

img.Picture = LoadPicture(.FileName)

End With

Text1.Text = cd.FileName

TXTIMG.Text = cd.FileTitle

If RS.State = 1 Then RS.Close

RS.Open "select top 1 * from [tblemployee] order by empno desc"

If RS.EOF = False Then

a = Val(RS(0)) + 1

Else

a = 1000

End If

On Error Resume Next

SavePicture img, App.Path & "/USERPIC/" & FrmEmployeeDetails.txtempno & ".JPG"

TXTIMG.Text = Trim(FrmEmployeeDetails.txtempno & ".JPG")

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 77

Private Sub id1()

If RS.State = 1 Then RS.Close

RS.Open "select top 1 * from [tblemployee] order by empno desc"

If RS.EOF = False Then

txtempno.Text = Val(RS(0)) + 1

Else

txtempno.Text = 1000

End If

End Sub

Private Sub DTPicker1_CloseUp()

TXTAGE.Text = DateDiff("YYYY", DTPicker1.Value, Date)

End Sub

Private Sub Form_Activate()

TXTAGE.Locked = True

id1

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 78

Private Sub txtadd_KeyPress(KeyAscii As Integer)

Select Case (KeyAscii)

Case 97 To 122

KeyAscii = KeyAscii - 32

End Select

End Sub

Private Sub txtcell_KeyPress(KeyAscii As Integer)

Call valint(KeyAscii)

End Sub

Private Sub txtlname_KeyPress(KeyAscii As Integer)

Call valchar(KeyAscii)

End Sub

Private Sub txtloc_KeyPress(KeyAscii As Integer)

Call valchar(KeyAscii)

End Sub

Private Sub txtname_KeyPress(KeyAscii As Integer)

Call valchar(KeyAscii)

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 79

End Sub

Private Sub txtsearch_KeyPress(KeyAscii As Integer)

Call valint(KeyAscii)

End Sub

FrmBonus

Dim rs1 As New ADODB.Recordset

Dim RS2 As New ADODB.Recordset

Dim CMD As New ADODB.Command

Private Sub cmbeid_Click()

If RS.State = 1 Then RS.Close

RS.Open "SELECT* FROM [TBLEMPLOYEE] WHERE EMPNO='" & cmbeid.Text & "'",
CON, adOpenDynamic, adLockBatchOptimistic

If RS.EOF = False Then

Txtename.Text = RS(1)

End If

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 80

Private Sub cmbeid_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub cmbpoint_Click()

If rs1.State = 1 Then rs1.Close

rs1.Open "SELECT* FROM BONUSENTRY WHERE BPOINT='" & cmbpoint.Text & "'",
CON, adOpenDynamic, adLockBatchOptimistic

If rs1.EOF = False Then

txtamt.Text = rs1!bamount

End If

End Sub

Private Sub cmbpoint_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub Cmdadd_Click()

cmbeid.Text = ""

cmbpoint.Text = ""

txtamt.Text = ""

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 81

Txtename.Text = ""

txtdiscr.Text = ""

TXTTITLE.Text = ""

End Sub

Private Sub CMDCANCEL_Click()

Unload Me

End Sub

Private Sub CMDDEL_Click()

If MsgBox("do you want to delete any record ", vbYesNo + vbQuestion) = vbYes Then

CMD.ActiveConnection = CON

CMD.CommandText = "DELETE FROM BONUSCALC WHERE BID='" & TXTBID.Text


& "'"

CMD.Execute

MsgBox " DELETED SUCCESSFULLY "

End If

cmbeid.Text = ""

cmbpoint.Text = ""

txtamt.Text = ""

Txtename.Text = ""

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 82

txtdiscr.Text = ""

TXTTITLE.Text = ""

Set MSHFlexGrid1.Recordset = RS2

End Sub

Private Sub cmdsave_Click()

If cmbeid.Text = "" Then

MsgBox " SELECT THE EMPLOYEE ID ", vbInformation

cmbeid.SetFocus

ElseIf cmbpoint.Text = "" Then

MsgBox " SELECT THE BONUS POINT ", vbInformation

cmbpoint.SetFocus

ElseIf TXTTITLE.Text = "" Then

MsgBox " ENTER THE TITLE ", vbInformation

TXTTITLE.SetFocus

ElseIf txtdiscr.Text = "" Then

MsgBox " ENTER THE DISCRIPTION ", vbInformation

TXTTITLE.SetFocus

Else

CMD.ActiveConnection = CON

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 83

CMD.CommandText = "insert into bonuscalc(empno,ename,bpoint,bamount,title,descr,date)


values('" & cmbeid.Text & "','" & Txtename.Text & "','" & cmbpoint.Text & "','" & txtamt.Text
& "','" & TXTTITLE.Text & "','" & txtdiscr.Text & "','" & DTPicker1.Value & "');"

CMD.Execute

MsgBox " SUCCESSFULLY INSERTED "

Set MSHFlexGrid1.Recordset = RS2

cmbeid.Text = ""

cmbpoint.Text = ""

txtamt.Text = ""

Txtename.Text = ""

txtdiscr.Text = ""

TXTTITLE.Text = ""

End If

End Sub

Private Sub cmdupd_Click()

CMD.ActiveConnection = CON

CMD.CommandText = "UPDATE BONUSCALC SET EMPNO='" & cmbeid.Text &


"',Ename='" & Txtename.Text & "',BPOINT='" & cmbpoint.Text & "',BAMOUNT='" &
txtamt.Text & "',TITLE='" & TXTTITLE.Text & "',DESCR='" & txtdiscr.Text & "',DATE='" &
DTPicker1.Value & "'WHERE BID='" & TXTBID.Text & "'"

CMD.Execute

MsgBox "SECCESSFULLY UPDATED "

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 84

Set MSHFlexGrid1.Recordset = RS2

End Sub

Private Sub Form_Load()

If RS2.State = 1 Then RS2.Close

RS2.Open "select * from BONUSCALC", CON, adOpenDynamic, adLockOptimistic

Set MSHFlexGrid1.Recordset = RS2

If RS.State = 1 Then RS.Close

RS.Open "select * from tblemployee", CON, adOpenDynamic, adLockOptimistic

While RS.EOF = False

cmbeid.AddItem RS!EMPNO

RS.MoveNext

Wend

If rs1.State = 1 Then rs1.Close

rs1.Open "select * from bonusentry", CON, adOpenDynamic, adLockOptimistic

While rs1.EOF = False

cmbpoint.AddItem rs1!bpoint

rs1.MoveNext

Wend

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 85

Private Sub MSHFlexGrid1_Click()

TXTBID.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 0)

cmbeid.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 1)

Txtename.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 2)

cmbpoint.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 3)

txtamt.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 4)

TXTTITLE.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 5)

txtdiscr.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 6)

DTPicker1.Value = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 7)

End Sub

FrmBpointEntry

Private Sub cmbpoint_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub CMDCANCEL_Click()

Unload Me

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 86

Private Sub cmdsave_Click()

If RS.State = 1 Then RS.Close

RS.Open "select * from bonusentry where bpoint='" & cmbpoint.Text & "'", CON,
adOpenDynamic, adLockOptimistic

If RS.EOF = False Then

MsgBox " bonus point and amount already registered", vbInformation

Exit Sub

End If

CMD.ActiveConnection = CON

CMD.CommandText = "INSERT INTO bonusentry(bpoint,bamount)VALUES('" &


cmbpoint.Text & "','" & txtamt.Text & "');"

CMD.Execute

MsgBox "successfully saved", vbInformation

End Sub

Private Sub cmdupd_Click()

CMD.ActiveConnection = CON

CMD.CommandText = "UPDATE bonusentry SET bamount ='" & txtamt.Text & "' where
bpoint='" & cmbpoint.Text & "'"

CMD.Execute

MsgBox " SUCCESSFULLY UPDATED ", vbInformation

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 87

Private Sub Form_Load()

cmbpoint.AddItem (1)

cmbpoint.AddItem (2)

cmbpoint.AddItem (3)

cmbpoint.AddItem (4)

cmbpoint.AddItem (5)

End Sub

Private Sub txtamt_KeyPress(KeyAscii As Integer)

Call valint(KeyAscii)

End Sub

FrmDocument

Private Sub CMDCANCEL_Click()

Unload Me

End Sub

Private Sub cmdnext_Click()

If (Val(txtc.Text) < Val(txtl.Text)) Then

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 88

txtc.Text = Val(txtc.Text) + 1

AcroPDF1.LoadFile (App.Path & "/PDF/" & List1.List(Val(txtc.Text)))

Else

MsgBox "NO MORE RECORD", vbCritical

End If

End Sub

Private Sub cmdprev_Click()

If Val(txtc.Text) > 0 Then

txtc.Text = Val(txtc.Text) - 1

AcroPDF1.LoadFile (App.Path & "/PDF/" & List1.List(Val(txtc.Text)))

Else

MsgBox "NO MORE PREVIOUS RECORD", vbCritical

End If

End Sub

Private Sub cmdsearch_Click()

txtc = 0

If RS.State = 1 Then RS.Close

RS.Open "SELECT * FROM DOCUMENT WHERE EMPNO='" & TXTEMPNO.Text & "'"

If RS.EOF = False Then

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 89

AcroPDF1.LoadFile (App.Path & "/PDF/" & RS(2))

While RS.EOF = False

List1.AddItem RS(2)

RS.MoveNext

Wend

'AcroPDF1.LoadFile (App.Path & "/PDF/" & RS(2))

End If

txtl.Text = List1.ListCount

End Sub

Private Sub TXTEMPNO_KeyPress(KeyAscii As Integer)

Call valint(KeyAscii)

End Sub

FrmDocUpload

Dim i As Integer

Private Sub cmdclear_Click()

TXTEID.Text = ""

TXTEMPNO.Text = ""

TXTFNAME.Text = ""

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 90

txtcell.Text = ""

For i = 0 To TXTDOC1.UBound

TXTDOC1(i).Text = ""

Next

img.Picture = LoadPicture("")

End Sub

Private Sub cmdsave_Click()

If TXTEMPNO.Text = "" Then

MsgBox " select any record "

TXTEID.SetFocus

ElseIf txtcell.Text = "" Then

MsgBox " select any record "

TXTEID.SetFocus

ElseIf TXTFNAME.Text = "" Then

MsgBox " select any record "

TXTEID.SetFocus

Else

For i = 0 To TXTDOC1.UBound

If TXTDOC1(i) = "" Then

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 91

Else

CON.Execute "insert into document(empno,dloc)values('" & TXTEMPNO.Text & "','" &


TXTDOC1(i) & "');"

MsgBox " successfully saved "

End If

Next i

End If

End Sub

Private Sub cmdsearch_Click()

If RS.State = 1 Then RS.Close

RS.Open "SELECT* FROM [TBLEMPLOYEE] WHERE EMPNO='" & TXTEID.Text & "'"

If RS.EOF = False Then

TXTEMPNO.Text = RS(0)

TXTFNAME.Text = RS(1)

txtcell.Text = RS(5)

On Error Resume Next

img.Picture = LoadPicture(App.Path & "/USERPIC/" & RS(13))

Else

MsgBox "EMPLOYEE IS INVALID "

End If

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 92

End Sub

Private Sub cmdupload1_Click()

With cd1

.DialogTitle = "search pdf files"

.Filter = "pdf(*.PDF)|*.pdf|all files(*.*)|*.*"

.Flags = cdlOFNHideReadOnly + cdlOFNOverwritePrompt + cdlOFNPathMustExist

.ShowOpen

.FilterIndex = 1

.CancelError = False

End With

TXTDOC1(0).Text = cd1.FileTitle

On Error Resume Next

FileCopy TXTDOC1(0).Text, App.Path & "\pdf\" & cd1.FileTitle

End Sub

Private Sub cmdupload2_Click()

With cd2

.DialogTitle = "search pdf files"

.Filter = "pdf(*.PDF)|*.pdf|all files(*.*)|*.*"

.Flags = cdlOFNHideReadOnly + cdlOFNOverwritePrompt + cdlOFNPathMustExist

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 93

.ShowOpen

.FilterIndex = 1

.CancelError = False

End With

TXTDOC1(1).Text = cd2.FileTitle

On Error Resume Next

FileCopy TXTDOC1(1).Text, App.Path & "\pdf\" & cd2.FileTitle

End Sub

Private Sub cmdupload3_Click()

With cd3

.DialogTitle = "search pdf files"

.Filter = "pdf(*.PDF)|*.pdf|all files(*.*)|*.*"

.Flags = cdlOFNHideReadOnly + cdlOFNOverwritePrompt + cdlOFNPathMustExist

.ShowOpen

.FilterIndex = 1

.CancelError = False

End With

TXTDOC1(2).Text = cd3.FileTitle

On Error Resume Next

FileCopy TXTDOC1(2).Text, App.Path & "\pdf\" & cd3.FileTitle

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 94

End Sub

Private Sub cmdupload4_Click()

With cd4

.DialogTitle = "search pdf files"

.Filter = "pdf(*.PDF)|*.pdf|all files(*.*)|*.*"

.Flags = cdlOFNHideReadOnly + cdlOFNOverwritePrompt + cdlOFNPathMustExist

.ShowOpen

.FilterIndex = 1

.CancelError = False

End With

TXTDOC1(3).Text = cd4.FileTitle

On Error Resume Next

FileCopy TXTDOC1(3).Text, App.Path & "\pdf\" & cd4.FileTitle

End Sub

Private Sub Form_Load()

For i = 0 To TXTDOC1.UBound

TXTDOC1(i).Locked = True

Next

TXTEMPNO.Locked = True

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 95

TXTFNAME.Locked = True

txtcell.Locked = True

End Sub

Private Sub TXTEID_KeyPress(KeyAscii As Integer)

Call valint(KeyAscii)

End Sub

FrmInterviewDetails

Dim CMD As New ADODB.Command

Private Sub cmdcan_Click()

Unload Me

End Sub

Private Sub cmdclear_Click()

txtid.Text = ""

txtname.Text = ""

txtqual.Text = ""

txtaddr.Text = ""

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 96

txtphno.Text = ""

cmbcomm.Text = ""

cmbtech.Text = ""

cmbapp.Text = ""

Form_Load

End Sub

Private Sub cmdsave_Click()

If txtid.Text = "" Or txtname.Text = "" Or txtqual.Text = "" Or txtaddr.Text = "" Or txtphno.Text


= "" Or cmbcomm.Text = "" Or cmbtech.Text = "" Or cmbapp.Text = "" Then

MsgBox "fill all the blank fields"

Else

d = Format(DTPicker1.Value, "yyyy-mm-dd")

CMD.ActiveConnection = CON

CMD.CommandText = "insert into interview values('" & txtid.Text & "','" & txtname.Text & "','"
& txtqual.Text & "','" & txtaddr.Text & "','" & txtphno.Text & "','" & cmbcomm.Text & "','" &
cmbtech.Text & "','" & cmbapp.Text & "','" & d & "')"

CMD.Execute

MsgBox "Interview Result have been saved successfully"

cmdclear_Click

End If

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 97

Private Sub cmdsearch_Click()

If RS.State = 1 Then RS.Close

RS.Open "SELECT * FROM interview WHERE EMPid='" & txtsearch.Text & "'"

If RS.EOF = False Then

txtid.Text = RS(0)

txtname.Text = RS(1)

txtqual.Text = RS(2)

txtaddr.Text = RS(3)

txtphno.Text = RS(4)

cmbcomm.Text = RS(5)

cmbtech.Text = RS(6)

DTPicker1.Value = RS(8)

cmbapp.Text = RS(7)

Else

MsgBox "EMPLOYEE IS INVALID "

End If

End Sub

Private Sub cmdupdate_Click()

CMD.ActiveConnection = CON

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 98

CMD.CommandText = " UPDATE interview SET EMPid='" & txtid.Text & "',ENAME='" &
txtname.Text & "',qual='" & txtqual.Text & "',ADDRESS='" & txtaddr.Text & "',PHNO='" &
txtphno.Text & "',COMMUNICATION='" & cmbcomm.Text & "',TECHNICAL='" &
cmbtech.Text & "',APPTITUDE='" & cmbapp.Text & "',DATE='" & DTPicker1.Value & "'
WHERE EMPID ='" & txtid.Text & "'"

CMD.Execute

MsgBox " UPDATED SUCCESFULLY "

End Sub

Private Sub Form_Load()

cmbcomm.Clear

cmbapp.Clear

cmbtech.Clear

If RS.State = 1 Then RS.Close

RS.Open "select top 1 * from interview order by empId desc"

If RS.EOF Then

txtid.Text = 1

Else

txtid.Text = RS(0) + 1

End If

cmbcomm.Text = Clear

cmbtech.Text = Clear

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 99

cmbapp.Text = Clear

cmbcomm.AddItem "1"

cmbcomm.AddItem "2"

cmbcomm.AddItem "3"

cmbcomm.AddItem "4"

cmbtech.AddItem "1"

cmbtech.AddItem "2"

cmbtech.AddItem "3"

cmbtech.AddItem "4"

cmbapp.AddItem "1"

cmbapp.AddItem "2"

cmbapp.AddItem "3"

cmbapp.AddItem "4"

End Sub

FrmReminder

Private Sub cmdclear_Click()

txtid.Text = ""

TXTTITLE.Text = ""

txtdisc.Text = ""

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 100

Private Sub CMDDEL_Click()

CON.Execute "DELETE FROM REMINDER WHERE ID = " & txtid.Text

MsgBox "SUCCESSFULLY DELETED "

grid

End Sub

Private Sub cmdsave_Click()

CON.Execute "INSERT INTO REMINDER(DATE,TITLE,DESCRIPTION) VALUES('" &


DTPicker1.Value & "','" & TXTTITLE.Text & "','" & txtdisc.Text & "');"

MsgBox "SUCCESSFULLY INSERTED "

grid

End Sub

Public Sub grid()

If RS.State = 1 Then RS.Close

RS.Open "REMINDER", CON, adOpenDynamic, adLockOptimistic

Set MSHFlexGrid1.Recordset = RS

End Sub

Private Sub cmdupd_Click()

CON.Execute " UPDATE REMINDER SET DATE='" & DTPicker1.Value & "',TITLE='" &
TXTTITLE.Text & "',DESCRIPTION='" & txtdisc.Text & "' WHERE ID = '" & txtid.Text & "'"

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 101

MsgBox " UPDATED SUCCESSFULLY "

grid

End Sub

Private Sub Form_Load()

txtid.Locked = True

grid

End Sub

Private Sub MSHFlexGrid1_Click()

txtid.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 0)

DTPicker1.Value = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 1)

TXTTITLE.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 2)

txtdisc.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 3)

End Sub

FrmReminderView

Private Sub Cmdselect_Click()

If RS.State = 1 Then RS.Close

RS.Open "select * from reminder where date ='" & DTPicker2.Value & "'"

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 102

Set MSHFlexGrid1.Recordset = RS

End Sub

Private Sub Form_Load()

MSHFlexGrid1.ColWidth(3) = 5850

End Sub

FrmSalary

Dim rs1 As New ADODB.Recordset

Dim RS2 As New ADODB.Recordset

Dim rs3 As New ADODB.Recordset

Dim CMD As New ADODB.Command

Private Sub CMDGEN1_Click()

listtemp.Clear

flag = 0

Y = Year(DTPicker1.Value)

M = Month(DTPicker1.Value)

If RS.State = 1 Then RS.Close

RS.Open "select distinct (empno) from wagetype where wtype='temporory'", CON,


adOpenDynamic, adLockOptimistic

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 103

While RS.EOF = False

listtemp.AddItem (RS(0))

RS.MoveNext

Wend

For i = 0 To listtemp.ListCount - 1

z=i+1

If RS.State = 1 Then RS.Close

RS.Open "select sum(presence)from Attendance where Empno='" & listtemp.List(i) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic

If RS.EOF = False Then

If IsNull(RS(0)) Then

a=0

Else

a = RS(0)

End If

End If

If rs1.State = 1 Then rs1.Close

rs1.Open "select sum(bpoint)from bonuscalc where Empno='" & listtemp.List(i) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 104

If rs1.EOF = False Then

If IsNull(rs1(0)) Then

b=0

Else

b = rs1(0)

End If

End If

If RS2.State = 1 Then RS2.Close

RS2.Open "select Rate,Pf,tax,name from wagetype where empno='" & listtemp.List(i) & "'",
CON, adOpenDynamic, adLockOptimistic

If RS2.EOF = False Then

Rate1 = RS2(0)

PF1 = RS2(1)

PF2 = RS2(1)

tax = RS2(2)

sname = RS2(3)

End If

If rs3.State = 1 Then rs3.Close

rs3.Open "select bamount from bonusEntry where bpoint='" & b & "'", CON, adOpenDynamic,
adLockOptimistic

If rs3.EOF = False Then

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 105

amt = rs3(0)

Else

amt = 0

End If

'MsgBox rate1 & "Rate1"

'MsgBox tax & "t"

'MsgBox pf1 & "p"

MSHFlexGrid1.TextMatrix(z, 3) = Rate1

tax = Rate1 * tax / 100

MSHFlexGrid1.TextMatrix(z, 6) = a

PF3 = Rate1 * PF1 / 100

MSHFlexGrid1.TextMatrix(z, 5) = PF3

MSHFlexGrid1.TextMatrix(z, 4) = amt

MSHFlexGrid1.TextMatrix(z, 2) = sname

MSHFlexGrid1.TextMatrix(z, 8) = DTPicker1.Value

'MsgBox amt & "amt"

MSHFlexGrid1.TextMatrix(z, 0) = z

'MsgBox PF3

PFRate = Rate1 - PF3

On Error Resume Next

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 106

MSHFlexGrid1.TextMatrix(z, 1) = listtemp.List(i)

MSHFlexGrid1.TextMatrix(z, 7) = (Rate1 * a) - tax - PF3 + amt

If Val(MSHFlexGrid1.TextMatrix(z, 7)) < 0 Then

MSHFlexGrid1.CellBackColor = vbRed

MSHFlexGrid1.Col = 7

MSHFlexGrid1.TextMatrix(z, 7) = 0

End If

Next i

For i = 1 To MSHFlexGrid1.Rows - 1

If MSHFlexGrid1.TextMatrix(i, 1) <> "" Then

If RS.State = 1 Then RS.Close

RS.Open " select * from tempsalary where empid='" & MSHFlexGrid1.TextMatrix(i, 1) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic

If RS.EOF = True Then

'CMD.ActiveConnection = CON

CON.Execute "INSERT INTO


TEMPSALARY(EMPID,EMPNAME,TOTSAL,BONUS,PF,TOTHOURS,EARNED,DATE)
VALUES('" & MSHFlexGrid1.TextMatrix(i, 1) & "','" & MSHFlexGrid1.TextMatrix(i, 2) & "','"
& MSHFlexGrid1.TextMatrix(i, 3) & "','" & MSHFlexGrid1.TextMatrix(i, 4) & "','" &
MSHFlexGrid1.TextMatrix(i, 5) & "','" & MSHFlexGrid1.TextMatrix(i, 6) & "','" &
MSHFlexGrid1.TextMatrix(i, 7) & "','" & MSHFlexGrid1.TextMatrix(i, 8) & "')"

'CMD.Execute

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 107

MsgBox "INSERTED"

If rs1.State = 1 Then rs1.Close

rs1.Open "select name from wagetype where empno= '" & MSHFlexGrid1.TextMatrix(i, 1) & "'"

If rs1.EOF = False Then

MSHFlexGrid1.TextMatrix(i, 2) = RS2(0)

End If

Else

flag = 1

If RS2.State = 1 Then RS2.Close

RS2.Open "select name from wagetype where empno= '" & MSHFlexGrid1.TextMatrix(i, 1) &
"'"

If RS2.EOF = False Then

MSHFlexGrid1.TextMatrix(i, 2) = RS2(0)

End If

End If

End If

Next i

If flag = 1 Then

MsgBox " SALARY ALREADY GENERATED ", vbInformation

End If

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 108

Private Sub cmdgen2_Click()

listper.Clear

flag1 = 0

a = DateSerial(Year(DTPicker2.Value), Month(DTPicker2.Value) + 1, 0)

a = Day(a)

b = InputBox(a & " days in this month and enter number of holidays")

If b = "" Then

Exit Sub

End If

wd = a - b

z=1

Y = Year(DTPicker2.Value)

M = Month(DTPicker2.Value)

If RS.State = 1 Then RS.Close

RS.Open "select distinct (empno) from wagetype where wtype='permenent'", CON,


adOpenDynamic, adLockOptimistic

While RS.EOF = False

listper.AddItem (RS(0))

RS.MoveNext

Wend

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 109

For i = 0 To listper.ListCount - 1

z=i+1

If RS.State = 1 Then RS.Close

RS.Open "select sum(presence)from Attendance where Empno='" & listper.List(i) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic

If RS.EOF = False Then

If IsNull(RS(0)) Then

at = 0

Else

at = RS(0)

End If

End If

If rs1.State = 1 Then rs1.Close

rs1.Open "select sum(bpoint)from bonuscalc where Empno='" & listper.List(i) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic

If rs1.EOF = False Then

If IsNull(rs1(0)) Then

bt = 0

Else

bt = rs1(0)

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 110

End If

End If

If RS2.State = 1 Then RS2.Close

RS2.Open "select Rate,Pf,tax,name from wagetype where empno='" & listper.List(i) & "'",
CON, adOpenDynamic, adLockOptimistic

If RS2.EOF = False Then

r = RS2(0)

Rate1 = r / wd

Rate2 = r / wd

MSHFlexGrid2.TextMatrix(z, 4) = Round(Rate1, 2)

PF1 = RS2(1)

PF2 = RS2(1)

tax1 = RS2(2)

'rate1 = rate1 * at

Rate2 = RS2(0)

'pf1 = RS2(1)

'pf2 = RS2(1)

'tax1 = RS2(2)

sname1 = RS2(3)

End If

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 111

If rs3.State = 1 Then rs3.Close

rs3.Open "select bamount from bonusEntry where bpoint='" & bt & "'", CON, adOpenDynamic,
adLockOptimistic

If rs3.EOF = False Then

amt1 = rs3(0)

Else

amt1 = 0

End If

'MsgBox rate1 & "Rate1"

'MsgBox tax & "t"

'MsgBox pf1 & "p"

MSHFlexGrid2.TextMatrix(z, 3) = Rate2

tax1 = tax1 / 12

MSHFlexGrid2.TextMatrix(z, 6) = tax1

PF3 = Rate2 * PF1 / 100

MSHFlexGrid2.TextMatrix(z, 7) = PF3

MSHFlexGrid2.TextMatrix(z, 5) = at

MSHFlexGrid2.TextMatrix(z, 2) = sname1

MSHFlexGrid2.TextMatrix(z, 8) = amt1

MSHFlexGrid2.TextMatrix(z, 10) = DTPicker2.Value

'MsgBox amt & "amt"

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 112

MSHFlexGrid2.TextMatrix(z, 0) = z

'MsgBox PF3

PFRate = Rate2 - PF3

On Error Resume Next

MSHFlexGrid2.TextMatrix(z, 1) = listper.List(i)

'MSHFlexGrid2.TextMatrix(z, 9) = (Round(Rate1, 2) * at) - tax1 - PF3 + amt1

MSHFlexGrid2.TextMatrix(z, 9) = Round(Rate1 * at - tax1 - PF3 + amt1, 2)

If Val(MSHFlexGrid2.TextMatrix(z, 9)) < 0 Then

MSHFlexGrid2.CellBackColor = vbRed

MSHFlexGrid2.Col = 9

MSHFlexGrid2.TextMatrix(z, 9) = 0

End If

Next i

For i = 1 To MSHFlexGrid2.Rows - 1

If MSHFlexGrid2.TextMatrix(i, 1) <> "" Then

If RS.State = 1 Then RS.Close

RS.Open " select * from permsalary where empid='" & MSHFlexGrid2.TextMatrix(i, 1) & "'
and year(saldate)='" & Y & "' and month(saldate)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic

If RS.EOF = True Then

CMD.ActiveConnection = CON

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 113

CMD.CommandText = "INSERT INTO permSALARY VALUES('" &


MSHFlexGrid2.TextMatrix(i, 1) & "','" & MSHFlexGrid2.TextMatrix(i, 2) & "','" &
MSHFlexGrid2.TextMatrix(i, 3) & "','" & MSHFlexGrid2.TextMatrix(i, 4) & "','" &
MSHFlexGrid2.TextMatrix(i, 5) & "','" & MSHFlexGrid2.TextMatrix(i, 6) & "','" &
MSHFlexGrid2.TextMatrix(i, 7) & "','" & MSHFlexGrid2.TextMatrix(i, 8) & "','" &
MSHFlexGrid2.TextMatrix(i, 9) & "','" & MSHFlexGrid2.TextMatrix(i, 10) & "')"

CMD.Execute

MsgBox "INSERTED"

If rs1.State = 1 Then rs1.Close

rs1.Open "select name from wagetype where empno= '" & MSHFlexGrid2.TextMatrix(i, 1)
& "'", CON, adOpenDynamic, adLockOptimistic

If rs1.EOF = False Then

MSHFlexGrid2.TextMatrix(i, 2) = rs1(0)

End If

Else

flag1 = 1

If RS2.State = 1 Then RS2.Close

RS2.Open "select name from wagetype where empno= '" & MSHFlexGrid2.TextMatrix(i,
1) & "'", CON, adOpenDynamic, adLockOptimistic

If RS2.EOF = False Then

MSHFlexGrid2.TextMatrix(i, 2) = RS2(0)

End If

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 114

End If

End If

Next i

If flag1 = 1 Then

MsgBox " SALARY ALREADY GENERATED ", vbInformation

End If

End Sub

Private Sub Form_Load()

MSHFlexGrid1.TextMatrix(0, 0) = "SL NO"

MSHFlexGrid1.TextMatrix(0, 1) = "EMP ID"

MSHFlexGrid1.TextMatrix(0, 2) = "EMP NAME"

MSHFlexGrid1.TextMatrix(0, 3) = "TOTAL SALARY"

MSHFlexGrid1.TextMatrix(0, 4) = "BONUS"

MSHFlexGrid1.TextMatrix(0, 5) = "PF"

MSHFlexGrid1.TextMatrix(0, 6) = "NO OF HOURS"

MSHFlexGrid1.TextMatrix(0, 7) = "EARNED"

MSHFlexGrid1.TextMatrix(0, 8) = "SALARY DATE"

MSHFlexGrid1.ColWidth(0) = 800

MSHFlexGrid1.ColWidth(1) = 900

MSHFlexGrid1.ColWidth(2) = 1200

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 115

MSHFlexGrid1.ColWidth(3) = 1500

MSHFlexGrid1.ColWidth(4) = 800

MSHFlexGrid1.ColWidth(6) = 1400

MSHFlexGrid1.ColWidth(5) = 800

MSHFlexGrid1.ColWidth(7) = 1500

MSHFlexGrid1.ColWidth(8) = 1500

MSHFlexGrid1.Width = 11000

MSHFlexGrid2.TextMatrix(0, 0) = "SL NO"

MSHFlexGrid2.TextMatrix(0, 1) = "EMP ID"

MSHFlexGrid2.TextMatrix(0, 2) = "EMP NAME"

MSHFlexGrid2.TextMatrix(0, 3) = "TOTAL SALARY"

MSHFlexGrid2.TextMatrix(0, 4) = "SALARY PER DAY"

MSHFlexGrid2.TextMatrix(0, 5) = "PRESENT DAY"

MSHFlexGrid2.TextMatrix(0, 6) = "TAX"

MSHFlexGrid2.TextMatrix(0, 7) = "PF"

MSHFlexGrid2.TextMatrix(0, 8) = "BONUS"

MSHFlexGrid2.TextMatrix(0, 9) = "EARNED"

MSHFlexGrid2.TextMatrix(0, 10) = "SALARY DATE"

MSHFlexGrid2.ColWidth(0) = 800

MSHFlexGrid2.ColWidth(1) = 900

MSHFlexGrid2.ColWidth(2) = 1200

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 116

MSHFlexGrid2.ColWidth(3) = 1500

MSHFlexGrid2.ColWidth(4) = 1700

MSHFlexGrid2.ColWidth(5) = 1500

MSHFlexGrid2.ColWidth(6) = 800

MSHFlexGrid2.ColWidth(7) = 800

MSHFlexGrid2.ColWidth(8) = 800

MSHFlexGrid2.ColWidth(9) = 1000

MSHFlexGrid2.ColWidth(10) = 1500

MSHFlexGrid2.Width = 15000

End Sub

FrmWageRecord

Dim CMD As New ADODB.Command

Dim RSID As New ADODB.Recordset

Dim RS2 As New ADODB.Recordset

Private Sub cmbeid_Click()

If RSID.State = 1 Then RSID.Close

RSID.Open " select fname from tblemployee where empno ='" & cmbeid.Text & "'", CON,
adOpenDynamic, adLockOptimistic

txtname.Text = RSID!fname

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 117

End Sub

Private Sub cmbeid_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub cmbwtype_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub CMDCANCEL_Click()

Unload Me

End Sub

Private Sub CMDCLR_Click()

cmbeid.Text = "SELECT"

cmbwtype.Text = "SELECT"

txtrate.Text = ""

txtnote.Text = ""

txttax.Text = ""

txtpf.Text = ""

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 118

Private Sub CMDDEL_Click()

CMD.ActiveConnection = CON

CMD.CommandText = "DELETE FROM WAGETYPE WHERE EMPNO='" & cmbeid.Text &


"'"

CMD.Execute

MsgBox " SUCCESSFULLY DELETED "

Set MSHFlexGrid1.Recordset = RS

End Sub

Private Sub cmdsave_Click()

CMD.ActiveConnection = CON

CMD.CommandText = "INSERT INTO


WAGETYPE(empno,name,wdate,wtype,rate,note,pf,tax)VALUES('" & cmbeid.Text & "','" &
txtname.Text & "','" & DTPicker1.Value & "','" & cmbwtype.Text & "','" & txtrate.Text & "','" &
txtnote.Text & "','" & txtpf.Text & "','" & txttax.Text & "');"

CMD.Execute

MsgBox "succeesfully saved"

Set MSHFlexGrid1.Recordset = RS

cmbeid.Text = "SELECT"

cmbwtype.Text = "SELECT"

txtrate.Text = ""

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 119

txtnote.Text = ""

txttax.Text = ""

txtpf.Text = ""

End Sub

Private Sub cmdupdate_Click()

CMD.ActiveConnection = CON

CMD.CommandText = "UPDATE WAGETYPE SET EMPNO='" & cmbeid.Text & "',name='"


& txtname.Text & "',WDATE='" & DTPicker1.Value & "',WTYPE='" & cmbwtype.Text &
"',RATE='" & txtrate.Text & "',NOTE='" & txtnote.Text & "',PF='" & txtpf.Text & "',TAX='" &
txttax.Text & "' WHERE EMPNO='" & cmbeid.Text & "'"

CMD.Execute

MsgBox "SECCESSFULLY UPDATED "

Set MSHFlexGrid1.Recordset = RS

End Sub

Private Sub Form_Load()

If RSID.State = 1 Then RSID.Close

RSID.Open "select * from tblemployee", CON, adOpenDynamic, adLockOptimistic

While RSID.EOF = False

cmbeid.AddItem RSID!EMPNO

RSID.MoveNext

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 120

Wend

cmbwtype.AddItem "PERMENENT"

cmbwtype.AddItem "TEMPORORY"

If RS.State = 1 Then RS.Close

RS.Open "wagetype", CON, adOpenDynamic, adLockOptimistic

Set MSHFlexGrid1.Recordset = RS

End Sub

Private Sub MSHFlexGrid1_Click()

cmbeid.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 1)

txtname.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 2)

DTPicker1.Value = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 3)

cmbwtype.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 4)

txtrate.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 5)

txtnote.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 6)

txtpf.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 7)

txttax.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 8)

End Sub

Private Sub txtpf_KeyPress(KeyAscii As Integer)

Call valint(KeyAscii)

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 121

End Sub

Private Sub txtrate_KeyPress(KeyAscii As Integer)

Call valint(KeyAscii)

End Sub

Private Sub txtrate_LostFocus()

If cmbwtype.Text = "PERMENENT" Then

txttax.Text = Val(txtrate.Text) * 5

ElseIf cmbwtype.Text = "TEMPORORY" Then

txttax.Text = 0

End If

End Sub

FrmWebcam

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As
Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Private Declare Function capcreatecapturewindow Lib "avicap32.dll" Alias


"capCreateCaptureWindowA" (ByVal lpszWindowName As String, ByVal dwStyle As Long,
ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal
hwndParent As Long, ByVal nID As Long) As Long

Private mCapHwnd As Long

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 122

Private Const CONNECT As Long = 1034

Private Const DISCONNECT As Long = 1035

Private Const GET_FRAME As Long = 1084

Private Const COPY As Long = 1054

Private Sub CMDCANCEL_Click()

Unload Me

End Sub

Private Sub cmdsave_Click()

If RS.State = 1 Then RS.Close

RS.Open "select top 1 * from tblemployee order by empno desc "

On Error Resume Next

a = FrmEmployeeDetails.TXTEMPNO.Text

On Error Resume Next

SavePicture Image4, App.Path & "\" & a & ".jpg"

MsgBox "Picture has been saved"

FrmEmployeeDetails.img.Picture = Image4.Picture

FrmEmployeeDetails.TXTIMG.Text = a & ".jpg"

Unload Me

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 123

Private Sub cmdview_Click()

MsgBox "Image Captured"

Image4.Picture = PicWebCam.Picture

End Sub

Private Sub Form_Load()

mCapHwnd = capcreatecapturewindow("Picture Capture", 0, 0, 0, 50, 50, Me.hWnd, 0)

DoEvents

If capDriverConnect(mCapHwnd, 0) = True Then

Timer1.Enabled = True

Else

MsgBox "Capture device not installed", vbOKOnly, "Capture device Error"

CMDCANCEL.Enabled = False

End If

End Sub

Private Sub Form_Unload(Cancel As Integer)

On Error Resume Next

End Sub

Private Sub Timer1_Timer()

DoEvents

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 124

SendMessage mCapHwnd, GET_FRAME, 0, 0

SendMessage mCapHwnd, COPY, 0, 0

PicWebCam.Picture = Clipboard.GetData

Clipboard.Clear

End Sub

FrmReport

Private Sub cmdRattendance_Click()

Unload DataEnvironment1

a = Format(DTPicker1.Value, "yyyy-mm-dd")

DataEnvironment1.Command3 a

DataReport3.Show

End Sub

Private Sub CmdRinterview_Click()

Unload DataEnvironment1

a = Format(DTPicker1.Value, "yyyy-mm-dd")

DataEnvironment1.Command4 a

DataReport4.Show

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 125

Private Sub cmdRpermsal_Click()

Unload DataEnvironment1

DataReport2.Show

End Sub

Private Sub cmdRtempsalr_Click()

Unload DataEnvironment1

DataReport1.Show

End Sub

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 126

APPENDIX - B

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 127

FORM LOGIN

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 128

FORM MENU

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 129

FORM EMPLOYEE DETAILS

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 130

FORM ATTENDANCE DETAILS

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 131

FORM BONUS POINT ENTRY

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 132

FORM EMPLOYEE BONUS POINT RECORD

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 133

FORM DOCUMENT UPLOAD

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 134

FORM EMPLOYEE WAGE RECORD

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 135

FORM INTERVIEW DETAILS

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 136

FORM REMINDER ENTRY

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 137

FORM SALARY CALCULATION

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 138

FORM DOCUMENT VIEW

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 139

FORM REMINDER VIEW

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 140

FORM REPORTS

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 141

APPENDIX- C

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 142

ATTENDANCE REPORT

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 143

PERMENENT SALARY REPORT

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 144

TEMPORARY SALARY REPORT

CHINMAYA VIDYAPEET BCA DEPARTMENT


HUMAN RESOURCE MANAGEMENT SYSTEM page 145

INTERVIEW REPORT

CHINMAYA VIDYAPEET BCA DEPARTMENT

You might also like