Employee Management System

Published on December 2016 | Categories: Documents | Downloads: 75 | Comments: 0 | Views: 517
of 73
Download PDF   Embed   Report

Comments

Content

Employee Management System

EMPLOYEE MANAGEMENT SYSTEM

ICDEOL HPU

1

Employee Management System 1. INTRODUCTION

This project has been designed to solve the problems, which are likely to be faced by the employees of the department at the time of calculating the Salary Details of employees. The project has covered almost all the necessary data, which is required for Employee anagement System. The main purpose of the project is to save time, money and to remove heavy workload of the employees.

Database Management System

Every organi!ation maintains data pertaining to its business, students and employees and other topics. This data needs to be maintained in such a manner that it is easily available and can be presented in desired formats. This data also updated on regular basis. 1 What is Database? Database anagement System as the name suggests is used for managing information and data. D" S consists of a number of database programs, which help a user in entering and managing information or data electronically. Data management involves creating, modifying, deleting and adding data files and using this data to generate reports. Thus, a D" S is a collection of data and program that help you to retrieve this data and perform operations on it. ost database management system has the following facilities#capabilities. i$ ii$ iii$ iv$ definition. ICDEOL HPU 2 %reating of a file, addition to data, deletion of data, modification of data, creation, addition and deletion of entire files. &etrieving data collectively or selectively. The stored data can be sorted ore inde'ed at the user(s discretion or direction. )arious reports cab is produced from the system. These may either be standardi!ed reports or that may be specifically generated according to specific user

Employee Management System
v$ vi$ athematical functions cab be performed and the data stored in the database can be manipulated with these functions to perform the desired calculations. To maintain data integrity and database use. The D" S interprets and processes user requests to retrieve information from a database. They may be keyed directly from a terminal or coded as high level language programs to be submitted for interactive or batch processing. *n most cases a query request will have to penetrate several layers of software in the D" S and operating before the physical database can be accessed.

Queries DBMS Operating System COBOL/PASCA/FORTRAN Data Base

The D" S responds to a query by invoking an appropriate sub+program, each of which performs its special function to interpret the query or to located the desired data in the database and present it in the desired order. Thus, the D" S shields database users from the tedious programming they would have to do to organi!e data for storage, or to gain access to it once it was stored. ,s already mentioned, a database consists of a group of related files of different record types and the D" S allows users to access data anywhere in the database without the knowledge of how data are actually organi!ed on the storage device. The role of D" S as an intermediary between the users and the database is very much like the functions of a salesperson in a consumer(s distributor system. , consumer ICDEOL HPU 3

Employee Management System
specifies desired items by filling ort an order form, which is submitted to a sales person at the counter. The sales person presents the specified items to consumer after they have been retrieved from the storage room. %onsumers who place orders have no idea of where and how the items are stored- they simply select a desired item from an alphabetical list in a catalogue. .owever, the logical order of goods in the catalogue bears no relationship to the actual physical arrangement of the inventory in the storage room. Similarly, the database user needs to know only what data he or she requires, the D" S will take care of retrieving it. D" S that is built upon entity relationship model is known as &elational D" S. /, &elational Database is a database that allows to group its data into one or more discrete tables that can be related to one another by using common to each other related tables(.

1.1 Steps in Data Access DBMS User Data Manager File Manager Disk Manager

Data Base

ICDEOL HPU

4

Employee Management System
D MS Use!s" The users of a D" S can be classified as 0a1ve users, 2nline, users, ,pplication 3rogrammers, and Database ,dministrators . Data Manage!" The data manager is the component of the D" S that provides an interface between the user and file system. &esponsibility for recovery of the database after any failure lies with the data manger. #i$e Manage!" &esponsibility for the structure of the files and managing the file space rests with the file manager. The file manager can be implemented using interface to the e'isting file subsystem provided by the operating system of the host computer. Dis% Manage!" The disk manager is part of the operating system of the host computer and all physical input and output operations are performed by it. The disk manager transfers the block or page requested by the file manager so that the later need not be concerned with the physical characteristics of the underlying storage media. Data ase" , Database is a computer term for a collection of related information about

a certain business topic or business application, such as in employee database or a product database.

ICDEOL HPU

5

Employee Management System

COMPONENTS O# D MS Nati&e Use!s Database Appli ati!n A*minist!at'! Pr!grams System Calls Data"ase S %eme App$icati'n P!'g!amme!s ()e!y

DML Pre !mpiler

Query Pr! ess!r

DDL C!mpiler

Appli ati!n Pr!gram O"#e t C!$e

Data"ase Manager

File Manager

Data Files Disk St!rage Data Di ti!nary

ICDEOL HPU

6

Employee Management System

DML P!ec'mpi$e!" *t converts D 4 statement embedded in an application program to normal procedure calls in the host language. The 3recompiler must interact with the query processor in order to generate appropriate code. DDL C'mpi$e!" The DD4 compiler coverts the data definition statements into a set of tables and these tables contain information concerning the database and are in a form that can be used by other components of the D" S. Database Manage!" , database manager is program module that provides the interface between the low level data stored in the database and the application programs and queries submitted to the system. *t is responsible for interfacing with file system. ()e!y P!'cess'!" The database user retrieves data by formulating a query in the data manipulation language provided with the database. The query processor is used to interpret the online users query and convert it into an efficient series of operations in a form capable of being sent to a data manager for e'ecution. The query processor uses the data dictionary to find the structure of the relevant portion of the database and uses the data dictionary to find the structure for the relevant portion of the database and uses this information in modifying the query and preparing an optimal plan to access the database. Database A*minist!at'!" 2ne of the main reasons for having D" S is to have control of both data and programs accessing that data. The person having such control over the system is called the Database ,dministrator 5D" $. The D", administers the three levels of the database and in consultation with the overall user(s community, sets up the definition of the global view or conceptual levels lf the database.

ICDEOL HPU

7

Employee Management System

D MS APPLICATION RE(UIREMENTS D" S includes some poplar packages for 3%(s such as etc. we in developing our project have made use of D" S developed by S ,%%ESS, %lipper, 6o' 3ro S ,%%ESS is a powerful multi+user

icrosoft %orp. it can be used to store and manipulate large

amounts of information and automatic repetitive tasks. "y using ,%%ESS one can develop easy+to+use data input forms and create meaningful reports. INTRODUCTION TO MS+ACCESS S+,ccess is powerful multi+user D" S developed by icrosoft %orp. it can be used to store and manipulate large amounts of information and automated repetitive tasks such as maintaining an inventory and generating invoices. "y using ,%%ESS, one can develop easy+to+use input forms. 7ou can process your data and create meaningful reports. Data in ,ccess is organi!ed in the form of table. 8ithin a table, records are arranged according to a common reference value, known as the primary key or the key field. The value in the key field is different for every record and thus helps in uniquely identifying records. ost database applications comprise of a /"ack+end( and a /6ront 9end(. The /"ack+end( part of the application is the one that takes care of storing and retrieving the data. The / 6ront+end( on the other hand, provides a user+interface or a means by which the user can interact with the data in the back+end. The user of a particular application usually only interacts through the front end. The comprises usually of /forms(, which present the data in an attractive and user friendly manner. *t is these that are used to add, modify or generally manipulate data in the tables. What is ACCESS? S+,%%ESS is a &D" S 5&elational Database anagement System$ under 8indow. *t is used to store and manipulate large amounts of data. The data is stored in multiple tables. , relational database utili!es two or more tables, containing data arranged in rows and columns, to cross+reference and define relationships between the data. *n contrast, a flat+file database is limited to a single table.

ICDEOL HPU

8

Employee Management System
, relation database breaks the /big picture( into smaller, more manageable prices. e.g: if we were gathering information about a new product line, each type of information+ product, seller, and distributor would be stored in its own, related table, rather than in one large, all+inclusive table. This unique ability to store data in smaller, related groups gives the relational database much more efficiency, speed and fle'ibility in locating and reporting information. S+,ccess is object+oriented program that is every thing in most important object of tables. #eat)!es in MS+ACCESS ,in*'-s base* app$icati'n" *t provides the user with a very simple and interactive interface. 8e can cut copy and paste data from any windows application to and form ,%%ESS. Since icrosoft %orp. has developed both windows and access, the two products work well together. La!ge *ata management capacity" ,%%ESS maintains a single disc file for a database and all its associated objects. The ma'imum si!e of this file can is ; <". *t allows ma'imum of =>,?@A tables and objects in a database and it can support a ma'imum of >BB users at a time. These features make ,%%ESS capable of handling large volumes of data, spread across several database and users. Imp'!ting. e/p'!ting an* $in%ing e/te!na$ 0i$es" ,%%ESS let us import from or e'port to EC%E4, 2&,%4E, 6o'3ro and other data formats. *mporting creates an access tables- e'porting an access table creates a file in the format that we are e'porting to. 4inking means that we can use e'ternal data without creating an access table. ,i1a!*s an* b)i$*e!s" , wi!ard is a utility that helps us to perform comple' tasks by guiding us through the process. 8i!ards ask us questions about the content, style and format of the object that we want to create, such as a report or data+entry screen, and then generate the object automatically. 8e need to answer the question by selecting S+,%%ESS is an object. Each object has properties that define how it appears and what work it performs. The S+,%%ESS is the table object that holds the data and all related object such as queries, forms and reports that used to manage this data in

ICDEOL HPU

9

Employee Management System
options or making yes#no decision. ,%%ESS contains nearly ;DD such wi!ards to design database, tables, forms, reports and many other objects. )i$t+in 0)ncti'n"+ ,%%ESS includes small programs knows as functions that perform simple calculations and data formatting. *t includes mathematical, financial, date, time and string functions. 8e can use them to create e'pressions for calculation in our forms, repots and queries. Ob2ect+O!iente* P!'g!am"+ in S+,%%ESSS is object oriented program that is everything S+,%%ESS is the table object that S+,%%ESS is an object. Each object has properties that define how it appears and

what work it performs. The most important object of manage this data in tables.

holds the data and all related objects such as queries, forms and reports that are used to Mac!'s"+ Those users who don(t want to write a program ,%%ESS provides them with macros. comple'. )i$*+in Sec)!ity System"+ S+,%%ESS being a multi user database, security features are built into the D" S. ,uthori!ation is provided at various levels. 3asswords can be assigned for loading ,%%ESS so that any unauthori!ed user cannot use it. Database can be encrypted and selective hiding of objects such as reports, macros and forms and also possible. C'nte/t+Sensiti&e 3e$p an* t4e ans-e! ,i1a!*s"+ like 8indows 0T, ,ccess provides online, conte't+sensitive help. 8e can access the help facility by invoking the help menu and selecting the topic your want to help on. ,ccess also includes a unique ,nswer 8i!ard that answers question. 8ritten in simple English, e.g. if you want to learn how to crate a database we can invoke the answer wi!ards and type in question as E.ow to create a databaseF. ,ccess then displays a list of topics related to a database creation. acro lets you perform simple tasks without the user(s intervention. acros let you manipulate data, open forms and reports and automate any task that is repetitive or

ICDEOL HPU

10

Employee Management System
DATA ASE O 5ECT 1 Tab$e" + Tables are the fundamental structures in an ,%%ESS database because they store the data. They are a collection of data about a specific entity. They organi!e data into columns called fields and rows called records. , common field relates two table so that data can be viewed from more that one table at a time. %licking this tab displays a list of all tables in current database. 6rom here we open Dr modify the design of an e'isting table or create a new table. 6 ()e!y" + , query is a tool for asking questions about the data in tables and for performing actions on data. Gueries can answer questions, such as how many customers live on a particular street and what are their phone numbersH Gueries are used to e'tract information from a database. , query can be used to select a group of records that fulfill a certain condition- specific fields from multiple tables can be combined into a single database sheet. The database sheet that the query returns is called dynaset 5that is a dynamic set of data that can be changed according to the data in the source table$. 8e can use queries to combine or join data from many separate but related tables. Gueries can also help us change, delete or add large amount of data in one fell swoop. 6inally, we can use queries as the basis for forms and reports. =. #'!ms" + 6orms display and print data from a table or a query. 6orms enable us to view, edit and print data in a customi!ed format that resembles fill+in+the+blanks form. Data entry forms help the user to enter information into a database table in an easy, interactive and accurate manner. The data entry forms and display forms provide a more structured view of data as compared to a data sheet. ,%%ESS provides several different ways of creating data entry forms, these include crating the form by tool bo' providing various controls in design view as well as a number of wi!ards that take the user through form creation process. 6orms can be plain and simple or quite elaborate with graphics, lines and automatic lookup features that make data entry quick and easy. 6orms can even include other forms called sub+forms that let us enter data into several tables at once, depending upon their behavior.

ICDEOL HPU

11

Employee Management System
7 Rep'!ts"+ &eports are used to represent data in the desired format. They provide us with a control over the si!e and appearance of every object on the report. 8e can display the information in the desired format. ost of the information in the report comes form an underlying table, query or SG4 statements serving as a source of the reports data. 2ther information in the report is stored in the reports design. 8e can have data presented through number of pictures to make it presentable. <rouping records, sub totals and totals also provided. &eports let us print or preview data in a useful format. 4ike foDrms, reports can be plain or fancy. &eports also can present query results in an easy to understand format. 8 Mac!'s" + acros are small programs that perform a specified task every time they are run. , macro is a set for instruction that automates a task we do often. 8hen we run a macro, ,%%ESS carries out the actions in the macro in the order in which the actions are listed. 8ithout writing a single line of program code, we can define macro to automatically open database forms, print mailing labels, process orders, and more. acro enables us to assemble a collection of tables, queries, forms and reports into turnkey application that anyone can use, even if they know little or nothing about ,%%ESS itself. Every task we want to perform is called an action. 8e can have a ma'imum of III actions in a macro. 9 M'*)$es" + 4ike macros modules allow to automate and customi!e ,%%ESS. .owever, unlike macros, modules give us more precise control over the actions taken, and they require us to have )isual "asic 3rogramming e'pertise. of procedures store as a named unit. S+ ,%%ESS is an &D" S development by the leading software giant icrosoft %orporation. ,ccess provides a quick and easy way to enter data and start e'tracting useful information form it. *t readily allows the development of applications for the large organi!ations with relative ease. S+ ,ccess tools are very visual. They provide a point and click environment for building applications. .ence, they are e'tremely user friendly. These tools enable us to develop applications in a systematic manner. *n addition to this, the applications can interact with large amount of data. odule is a collection

ICDEOL HPU

12

Employee Management System
PRO LEM DE#INATION The project is based on the Emp$'yee management system. *n a manual working with in the organi!ation the records related to employees like employee 0ame, Date of Joining etc are kept in a old files and salary details of each employee within the organi!ation were calculated and processed manually by a clerks in the departments. *n this manual system salary details for each employee should be prepared at the end of each month, this was a quite time consuming job for clerk to process and calculate salary details for each employee with in the organi!ation. Sometime it may also happen that these salary details produced manually is error+prone. To reduce the above mentioned problem with in the current e'isting system, the project is developed to replace it with the computeri!ed automatic one, after the current system gets computeri!ed the salary details and other details related to a particular employee in stored in the database of the system so that one can get details later when needed.

ICDEOL HPU

13

Employee Management System
#EASI ILITY STUDY During 6easibility study the several activities have been completed: 5;$ 5>$ 5=$ problem. 5L$ The analyst has verified the objective, constraints, and required outputs, resulting in project directive that the user has approved. The ne't step is to determine e'actly what the candidate system is to do by defining its e'cepted performance. , user has recogni!ed a need. Kser requirement are determined and the problem has been defined. ,n initial investigation is launched to study the e'isting system and verify the

ICDEOL HPU

14

Employee Management System
SYSTEM PER#ORMANCE DE#INATION , system(s required performance is defined by describing its output in a user+acceptable format and at a higher level of detail that what was described in the initial investigation. This involves three steps. 5;$ Statement of constraints. 5>$ *dentification of specific system objective. 5=$ Description of outputs. STATEMENT O# CONSTRAINTS" + %onstraints are the factor that limits the solution of problem. Some constraints are identified during the initial investigation and are discussed with the user. There are general constraints that might have a bearing on the required performance of a candidate system. IDENTI#ICATION O# SPEC#IC SYSTEM O 5ECTI:E" + 2nce the constraints are spelled out, the analyst process to identify the system(s specific performance objectives. They are derived from the general objectives specified in the project directive at the end of the initial investigation. The steps are to state the system(s benefit and then translate them in to measurable objectives. *n our scenario, the candidate system(s anticipated benefits are as follows: 5;$. &ecords of employees are stored in the database that can be later retrieved and used. 5>$. The Salary details for each employee is also computed and stored in the database. 5=$ *mproved employee services. DESCRIPTION O# OUTPUT" + , final step in system performance definition is describing the outputs required by the user. ,n actual sketch of the format and contents of the report 5layout$ as well as a specification of the media used, their frequency, and the si!e and number of copies required are prepared at this point. Specifying e'actly what the output will look like leads to an estimates to the computer storage requirements that form the basis for the file design to be undertaken in the design phase of the life cycle. any feasibility studies are disillusioning for both users and analysts. 6irst, the study often presupposes that when the feasibility document is being

ICDEOL HPU

15

Employee Management System
prepared, the analyst is in position to evaluate solution. Second, most study tend to overlook the confusion inherent in system development. *f the feasibility study is to serve as a decision document, it must assure three key questions: ; *s there a new and better way to do the job that will benefit the userH > 8hat are the costs and savings of the alternativesH = 8hat is recommendedH

SYSTEM ANALYSIS &equirement specification is the basis for the well+managed development process, for the developer as well as for the customer. Software requirement specification contains design hints and guidelines. *t is primary concerned with the functional and performance aspects of a software product and emphasis is placed on specification product characteristics without implying how the product will provide these characteristics. *t includes e'ternally observable characteristics of the software product commands and report options, data flow diagram and data dictionary. *t should be detailed enough for 3lanning, Development, Design and *mplementing of software. The input for this phase of project is study of e'isting system and minutes of meeting with the %omputer Department. #ACTS A OUT E;ISTING SYSTEM The already e'isting system of Employee management in offices are manual i.e. all the information regarding the employee detail i.e. Salary of employee, ,ddress of employee, Status of employee, Date of joining is done manually. ,ll the information is written on the files. ,lthough data security is there but the process is time consuming. There is no check against wrong data entry and duplicity. is none. oreover integrity and consistency

ICDEOL HPU

16

Employee Management System

LIMITATION O# T3E E;ISTING SYSTEM ;. >. =. L. B. *nefficient System 0ot a user friendly System Security and integrity is very low 0o facility to provide#generate report System is slow and time consuming

PROPOSED SYSTEM EMPLOYEE MAN AGEMENT SYSTEM is user friendly, comprehensive package taking care of many functional areas. This system stores the vital and complete information of employee. 8ith the help of this project: Kser can easily enter the information of new employee Kser can delete the fault employee Kser can easily display the various information about the employee. Kser can easily modify the information of e'isting employee.

ICDEOL HPU

17

Employee Management System

PRO5ECT LI#E CYCLE The project life cycle is divided in four phases as follows ;. >. =. L. &equirement Specification 3hase ,nalysis and Design 3hase. %oding and Testing 3hase. *mplementing and aintenance 3hase. SYSTEM DESIGN Design is the central process for process for software development and maintenance. System design is a translation from user+oriented document towards a document towards a document+oriented mere towards programmer or data base personnel. Design process maps the E8hat to doHF of user requirement specification into the E.ow to doHF of user requirement specification into the E.ow to do itHF of design specification. *t goes through logical and physical design. L'gica$ *esign c'&e!s t4e 0'$$'-ing" ;. contents etc. >. =. L. B. @. 3repare input specification. 3repare output specification. 3repare a edit, control and security specification. 3repare a logical design. &eviews benefits, cost and system constraints. &eview of the current system i.e. data flows, file

P4ysica$ *esign c'&e!s t4e 0'$$'-ing" ;. >. Design the physical system. 3lan system implementation.

ICDEOL HPU

18

Employee Management System
=. Kpdate benefits, cost, hardware etc. O 5ECTI:E The following points must be kept in mind while designing a new system: a$ b$ screen format. c$ d$ e$ f$ DATA DE#INITION *n this section data definition language for the application is being e'plained. *n it the tables used in he application e'plained with the information regarding the fields includes in the table. Te field(s information includes their data type, field length and any validation applied to a particular field. Data validation. Data security. &educe the redundancy of data. aintaining and updating the database easily. The System must be user friendly in all possible ways. Data entry and online data editing through well laid our

ICDEOL HPU

19

Employee Management System

SYSTEM TESTING

,fter the programs are tested individually, the system as a whole needs to be tested. During testing, the system is used e'periment all to ensure that the software does not fail i.e. runs according to specifications and in the way the users e'pect it to. Special test data is prepared as input for processing and the results are e'amined to locate errors or une'pected results. The persons other than those who wrote the original problem perform testing. Different levels of testing are: DE UGGING AND TESTING Debugging and testing are vital stages of implementation phase. 8ithout these we cannot be sure of the quality of his software. Debugging is the process of isolate and correcting the causes of known errors. Debugging process is applied after coding ad again after coding and again after testing, because during compilation of code system is corrected and during testing logical errors is removed two types of testing is performed on the system. 1. Unit testing *n unit testing each program of each module is testifying using separately for its correctness. They are tested under all relevant condition using dummy data. Knit testing was done to find bugs and improved the efficiency and check constraints of each program module. 6 System Testing"

ICDEOL HPU

20

Employee Management System
System testing involves two kings of activities, integration and acceptance testing-. *ntegration testing involves the linking of all modules together and testing the working and performance of the whole system. The acceptance plan is initiated during the design phase and completed the product implementation. System testing is necessary because of is utility as a user+oriented vehicle before implementation. :ERI#ICATION AND :ALIDATION The goal of verification and validation is to assess ad improve the quality of the work products generated during development and modification of software. Guality attributes of interest include correctness, completeness(, consistency, reliability, usefulness, usability, efficiency, conformance to standards and overall cost effectiveness. )alidation is process of evaluating software at the end of the software at the end of the software development process to determine compliance with the requirements. )erification ad validations involve assessment of work product to determine conformance to specifications. Specification includes the requirement specification, the design documentation, various stylistic guideline, implementation language standards, project standards, organi!ation for the formats and notations used in the various product specifications. *n this project verification and validation has been done from time to time. During these tests employee management system was made to run under typical operating conditions, typical input values and typical e'pected result. 3erformance ad stress test was also conducted. To check the database consistency ad make the this system multi+ user system, it was made to run on more than one terminal simultaneously on its computed results were compared with the e'pected ones. ,fter each test if any bug was found hen appropriate step was taken to rectify that and at the end of this phase system was found to error free.

ICDEOL HPU

21

Employee Management System
SO#T,ARE AND 3ARDR,ARE RE(UIRMENT MININMUM 3ARD,ARE RE(UIRED 3rocessor:+3*** &, :+;>A " .ard disk:+;D<" onitor:+colored monitor to see the visual effect. Meyboard:+<eneral ouse:+<eneral MININMUM SO#T,ARE RE(UIRED 2perating system:+ icrosoft C3 3rofessional S+2ffice:+ S+ ,%%ESS >DDD, S+,%%ESS C3 icrosoft )isual "asic:+3rofessional [email protected]

ICDEOL HPU

22

Employee Management System
LANGUAGE" )isual "asic is one of the most popular programming languages on the market today. icrosoft has positioned it to fit multiple proposes in development. The language ranges from lightweight )isual "asic Script programming, to application+specific 3rogramming with )isual "asic for ,pplications, and finally, full+fledged enterprise development with )isual "asic @.D )isual "asic @.D is designed to deploy applications across the enterprise and to scale to nearly any si!e needed. The ability to develop object models, database integration, server components and *nternet#intranet applications provides an e'tensive range of capabilities and tools for the developer. EDITIONS O# :ISULA ;$ :is)a$ ASIC There are three editions of )isual "asic they are: asic Lea!ning E*iti'n" *t is the introductory edition that lets you easily create 8indows applications. *t comes with all the tools you need to build mainstream 8indows application>$ :is)a$ asic P!'0essi'na$ E*iti'n" *t is for computer professionals and includes advanced features such as tools to develop. ,ctiveC and *nternet controls. =$ :is)a$ asic Ente!p!ise E*iti'n" *t is the most advanced edition and is aimed at programmers who build distributed applications in a team environment. *t includes all the features of the 3rofessional edition, plus tools such as )isual SourceSafe 5a version control system$ and the ,utomation and %omponent T4e Nee* 0'! :is)a$ P!'g!amming There are several programming tools that allow us to build such visually appealing and intuitive interfaces. These tools allow us to design interfaces that employ user+friendly features such as menus, buttons, windows etc. .owever, the disadvantage of such tools is that the interface is designed using code. The programmer has to code the user interface features specifying the si!ed, position etc. this makes designing the user interface a major task in itself. Rapi* App$icati'n De&e$'pment<RAD= T''$s" anager

ICDEOL HPU

23

Employee Management System
&apid ,pplication Development 5&,D$ tools help us to create applications in a shorter time as compared to conventional languages and with fewer errors. &,D tools help us create a range of applications. These could range from a small utility for us or our workgroup to a large enterprise+wide system or even distributed applications spanning the globe via the internet. )isual "asic is icrosoft(s &,D tool for 8indows 3rogrammers. )isual "asic used a graphical, form+based approach to application development. The typical way to write a program in )isual "asic is to create a form, drag and drop controls onto the form, set properties for the form and its controls and add application+specific code to handle events. *t sounds simple, but we can write some very powerful application in this manner. *n case of large applications, &,D tools enable to developers to create a prototype of the large application. Such a prototype enables a user to understand the Elook and feelF of the application. *n some cases, &,D tools enable us to minimi!e and simplify code writing. T3E INTEGRATED DE:ELOPMENT EN:IRONMENT" )isual "asic is not a language. *t(s an integrated Development Environment in which you can develop, run, test, and debug your applications. 8ith )isual "asic, you can create the following types of application ;$ Stan*a!* E;E" , Standard ECE project is a typical application. developed with previous versions of )isual "asic >$ Acti&e;.E;E.Acti&e; DLL" These types of projects are available with the professional edition. ,ctiveC components are 24E automation servers. ,ctiveC components are basic code+building components that don(t have a visible interface and that can add special functionality to your applications. The tow types of projects are identical in functionality, but are packaged differently =$ Acti&e; C'nt!'$" This type of project is also a feature of the professional edition. Kse it to develop your own ,ctiveC controls ,ctiveC control such as a Te'tbo' or %ommand button control, is a basic element of the user interface. *f the ,ctiveC controls that come with )isual "asic don(t provide the functionality you need, you can build your own custom controls. ost of the applications are Standard ECE projects. These are the types of the applications you

ICDEOL HPU

24

Employee Management System
L$ Acti&e; D'c)ment E;E. Acti&e; D'c)ment DLL" ,ctiveC documents are in essence )isual "asic applications that can run in the environment of a container that supports hyperlinking 5such as *nternet E'plorer$. 8= : App$icati'n ,i1a!*. : ,i1a!* Manage!" The ,pplication /wi!ard takes you through teh steps of setting up the skeleton of a new application. The 8i!ard lets you build your own 8i!ard. , 8i!ard is a sequence of windows that collect information from the user. ,fter the user fills out all the windows, the 8i!ard proceeds to build an application, install software, or carry out an automated operation for the end user. @$ Data P!'2ect" This a feature of the Enterprise editions and it doesn(t correspond to a new project type. *t(s identical to the Standard ECE project type, but it automatically adds the controls that are used in accessing database to the Toolbo'. *t also adds a database ,ctiveC Designers to the 3roject E'plorer 8indow. The ,ctiveC Designer are visual tools for accessing and manipulating database and generating reports. >= D3TML App$icati'n" )"@ allows you to build Dynamic .T 4 pages that can be displayed in the browser(s window on a client computer. A$ IIS App$icati'n" )"@ allows you to build applications that run on the 8eb server and interact with clients over the *nternet with the *nternet *nformation Server. I$ A**In" 7ou can create your own add+ins for the )isual "asic *DE. ,dd+ins are special commands you can add to )isual "asic(s menu$. To do so, select this type of project. enu5they usually appear under the ,dd+*ns anager

ICDEOL HPU

25

Employee Management System

enu bar Toolbar

3roject E'plorer

6orm 4ayout 6orm Designer Toolbo' 3roperties 8indow

ICDEOL HPU

26

Employee Management System

Data

ase St!)ct)!e ? Design

Detailed Analysis of Tables and Forms Used in the project Tab$es Emp Salary tblKser tblKserlog #'!ms" frmsplash frm4og*n frmmain frm,ddEmp frmDisplay frmDelEmp frmEditEmp frmSearch frmsalary

 ;. >. =. L.  ;. >. =. L. B. @. ?. A. I.

ICDEOL HPU

27

Employee Management System

M'*)$e
1. odule;

The details of the above mentioned elements used in the project is describe below TA LES" *n ;. >. =. S+,%%ESS table can be accessed in three ways. %reate Table *n Design )iew %reate Table "y Ksing 8i!ard %reate Table "y Entering Data The tables use in this project is discussed briefly as follows:

1= Emp" This is the main table in the project. This table contains all the basic data details of the employees. <eneral description of all the fields of this table, their data types, and their importance is given below

S.N' ; > = L B

#ie$* Name eNno eNname %ity phoneNno Dob

Data Type 0umber Te't Te't 0umber Date#Time

Desc!ipti'n *t is a 3rimary Mey Stores 0ame of Employee Stores %ity of The Employee Telephone 0umber of an Employee Date of "irth of an Employee

6= Sa$a!y" This table keep track of the salary details of each employee and also contains the net pay and gross pay calculated by the project <eneral description of all the fields of this table, their data types, and their importance is given below

S.N' ICDEOL HPU

#ie$* Name

Data Type

Desc!ipti'n 28

Employee Management System
; > = L B @ ? A I ;D ;; ;> ;= eNno eNname "asic D3 D, %ompensatory %apital .&, <ross 3ay 4oans 4ic <36 0et pay 0umber Te't Te't 0umber 0umber 0umber 0umber 0umber 0umber 0umber 0umber 0umber 0umber *t is a 3rimary Mey Stores 0ame of Employee Stores %ity of The Employee Telephone 0umber of an Employee Date of "irth of an Employee %ompensatory ,llowance %apital ,llowance .ouse &ent ,llowance <ross 3ay 4oans 4ife *nsurance 6unds <ross 3rovident 6und 0et 3ay

@= tb$Use!" This table contains the user names and their password to get log into the project with supplying the e'act user name and password that are contained in this table <eneral description of all the fields of this table, their data types, and their importance is given below S.N' ; > #ie$* Name Kser0ame 3assword Data Type Te't Te't Desc!ipti'n %ontains 0ame of the Kser %ontains 3assword of Employee. *nput 29

ICDEOL HPU

Employee Management System
ask property is set as 3assword So that each one can(t see what the password is 7= tb$Use!$'g" This table is very important because it contains all the details about the user log in. This table keep track of the which user logged on, to which date and for how much time whether the user is successful in getting log in and logging off the project <eneral description of all the fields of this table, their data types, and their importance is given below S.N' ; > = L B #ie$* Name 0ame Description Date Time &emark Data Type Te't Te't Date#Time Date#Time Te't Desc!ipti'n %ontains 0ame of the Kser 8hether user gets log in or log out Meep the date of the log in or log out Meep the time of the log in or log out <etting successful log in or log out

#ORMS 6orms are used in visual basic to display the control and add functionality to these controls. The various forms and the control used in this project is shows below with their details #'!m sp$as4

ICDEOL HPU

30

Employee Management System
This form is used to load the project. ,s the project loads it is the first form that is loaded first. The controls used and the properties are given below along with the form. This form as loaded appears like as shown below

T4e Main C'nt!'$s Use* In T4is #'!m a!e 0ame ; 3rogressbar > Timer 3roperties 0ameOpd a'O;DD *ntervalO;DD

S')!ce C'*e"+ 2ption E'plicit 3rivate Sub 6ormNMey3ress5Mey,scii ,s *nteger$

ICDEOL HPU

31

Employee Management System
Knload End Sub 3rivate Sub 6rame;N%lick5$ Knload End Sub 3rivate Sub Timer;NTimer5$ pd.)alue O pd.)alue P ; *f pd.)alue O ;DD Then Knload End *f End Sub e frm4ogin.Show e e

#!'m L'gin ,s the value of progress bar is reached to ;DD the frmspalsh form gets unloaded and frmlogin is loaded. The controls used in this form and their properties are given below along with the form .This form as loaded appears like as shown below. ,s this form loaded the combo bo' control use in it access the user name from the table named tblKser. The user only given three chances to supply the correct 3assword, if user fails

ICDEOL HPU

32

Employee Management System
then a message is display, otherwise the username, date and time is inserted in the tblKserlog Table.

T4e Main C'nt!'$s Use* In T4is #'!m a!e Name ; %ombo"o' > Te't"o' = %ommand "utton; L %ommand "utton> P!'pe!ties 0ameOcombo; 0ameOt't3assword 3asswordcharOFQF %aptionOF4og*nF 0ameOcmd2k %aptionO%ancel 0ameOcmd%ancel

S')!ce C'*e"+ Dim rights ,s String Dim pass, user ,s String ICDEOL HPU 33

Employee Management System

3rivate Sub cmd%ancelN%lick5$ *f End End *f End Sub sg"o'5R,re you sure you want to e'it nowHR, vb7es0o$ O vb7es Then

3rivate Sub 6ormN4oad5$ odule;.%onn3ass Te't;.)isible O 6alse S%onnection> 4abel=.%aption O R2nly authorised users are allowed to login.R T vb%r4f T R*f you forgot your password, please contact the system administrator immediately.R %all %onnection> 8ith rs; 8hile 0ot .E26 %ombo;.,dd*tem rs;5D$ S sg"o' user

. ove0e't 8end End 8ith Te't;.Te't O = End Sub 3rivate Sub cmd2MN%lick5$ Dim test ,s String 8ith rs; login O %ombo;.Te't . ove6irst 8hile 0ot .E26

ICDEOL HPU

34

Employee Management System
*f %ombo;.4ist5%ombo;.4ist*nde'$ O .6ields5D$ Then Srights O .6ields5=$ pass O 5.6ields5;$$ test O )al5Te't;.Te't + ;$ *f t't3assword.Te't UV pass Then sg"o' R*nvalid 3assword,you have just R P test P R login trails left, input the correct password or e'itR, vb*nformation P vb2M2nly, R,uthenticationR Te't;.Te't O )al5Te't;.Te't$ + ; *f Te't;.Te't O RDR Then sg"o' RSorry, but you cant be too smartR, vb%ritical P vb2M2nly End End *f E'it Sub Else*f t't3assword.Te't O pass Then sg"o' R, c c e s s < r a n t e d R T Time, vb2M2nly, R,uthenticationR t't3assword.Te't O RR e..ide frmmain.Show 8ith rsL .,dd0ew .6ields5D$ O login .6ields5;$ O R4og *nR .6ields5>$ O Date .6ields5=$ O Time .6ields5L$ O RSuccessfulR .Kpdate End 8ith

ICDEOL HPU

35

Employee Management System
End *f End *f . ove0e't 8end End 8ith

End Sub

3rivate Sub Te't>N%hange5$ End Sub

#'!m main This is the main form of the project. *t contains a menu bar having three menu5Employee,Edit,3ayroll$ The controls used in this form and the their properties are given below along with the form. This form as loaded appears like as shown below.

ICDEOL HPU

36

Employee Management System

T4e Main C'nt!'$s Use* In T4is #'!m a!e Name ; %ommand "utton; > %ommand "utton> P!'pe!ties %aptionO4ogoff %aptionOE'it

S')!ce C'*e"+ 3rivate Sub addN%lick5$ frm,ddEmp.Show

ICDEOL HPU

37

Employee Management System
End Sub 3rivate Sub %ommandBN%lick5$ *f sg"o'5R,re you sure you want to 4og 2ff KserHR, vb7es0o$ O vb7es Then frmmain..ide frm4ogin.Show End *f End Sub 3rivate Sub %ommand@N%lick5$ *f sg"o'5R,re you sure you want to quitHR, vb*nformation P vb7es0o, RE'it ,pplicationR$ sg"o' RThank you for using this application R T login, vb2M2nly, R R T Date T R R T Time 8ith rsL .,dd0ew .6ields5D$ O login .6ields5;$ O R4og 2utR .6ields5>$ O Date .6ields5=$ O Time .6ields5L$ O RSuccessfulR .Kpdate End 8ith End Else %ancel O +; End *f O vb7es Then

ICDEOL HPU

38

Employee Management System

End Sub 3rivate Sub dispN%lick5$ frmDisplay.Show End Sub 3rivate Sub editN%lick5$ frmEditEmp.Show End Sub 3rivate Sub editempN%lick5$ frmEditEmp.Show End Sub 3rivate Sub empdelN%lick5$ frmDelEmp.Show End Sub 3rivate Sub e'itN%lick5$

%onnection> *f sg"o'5R,re you sure you want to quitHR, vb*nformation P vb7es0o, RE'it ,pplicationR$ sg"o' RThank you for using this application R T login, vb2M2nly, R R T Date T R R T Time O vb7es Then

ICDEOL HPU

39

Employee Management System
8ith rsL .,dd0ew .6ields5D$ O login .6ields5;$ O R4og 2utR .6ields5>$ O Date .6ields5=$ O Time .6ields5L$ O RKnSuccessfulR .Kpdate End 8ith End Else %ancel O +; End *f End Sub 3rivate Sub 6ormN4oad5$ 4abel>.%aption O 6ormat5Date, Rlong dateR$ 4abel;.%aption O 6ormat50ow, Rlong timeR$ Te't;.Te't O R7ou are logged on as: R %onnection> 8ith rs; Te't>.Te't O .6ields5D$ End 8ith 4abelB.%aption O R8elcome R T Te't>.Te't T R, R T RTime 4ogged in : R T 0ow End Sub

ICDEOL HPU

40

Employee Management System
3rivate Sub 6ormNKnload5%ancel ,s *nteger$ %onnection> *f sg"o'5R,re you sure you want to quitHR, vb*nformation P vb7es0o, RE'it ,pplicationR$ O vb7es Then sg"o' RThank you for using this application R T login, vb2M2nly, R R T Date T R R T Time S End *f 8ith rsL .,dd0ew .6ields5D$ O login .6ields5;$ O R4og 2utR .6ields5>$ O Date .6ields5=$ O Time .6ields5L$ O RKnSuccessfulR .Kpdate End 8ith End Else %ancel O +; End *f

End Sub 3rivate Sub propayN%lick5$ frmsalary.Show End Sub

ICDEOL HPU

41

Employee Management System
3rivate Sub serN%lick5$ frmSearch.Show End Sub

#'!m A** Emp$'yee This is the form of the project that add general details of the Employee like Employee 0umber,Employee 0ame,Date of birth, Telephone0umber, %ity.The controls used in this form and the their properties are given below along with the form. This form as loaded appears like as shown below. ,s this form loads it shows the details of the first Employee in the database.

ICDEOL HPU

42

Employee Management System

T4e Main C'nt!'$s Use* In T4is #'!m a!e Name ; Te't"o'; > Te't"o'> = Te't"o'= L Te't"o'L B Te't"o'B @ %ommand "utton; %aptionO,DD ? %ommand "utton> %aptionOE'it A %ommand "utton= ICDEOL HPU 0ameOcmdSave 43 0ameO cme'it P!'pe!ties 0ameOt't0o 0ameOt't0ame 0ameOt't%ity 0ameOt'tDob 0ameOt't3hone 0ameO cmd,dd

Employee Management System
%aptionOSave

S')!ce C'*e"+ 3rivate Sub cmd,ddN%lick5$ rs.,dd0ew t't0o.Te't O RR t't0ame.Te't O RR t't%ity.Te't O RR t'tDob.Te't O RR t't3hone.Te't O RR S cmd,dd.)isible O 6alse cmdSave.)isible O True End Sub 3rivate Sub cmdE'itN%lick5$ Knload End Sub 3rivate Sub cmdSaveN%lick5$ Dim ' ,s String 2n Error <oTo KpdateErr rs5D$ O t't0o.Te't rs5;$ O t't0ame.Te't rs5>$ O t't%ity.Te't rs5L$ O t'tDob.Te't rs5=$ O t't3hone.Te't e frmmain.Show

ICDEOL HPU

44

Employee Management System
rs.Kpdate sg"o' RThe record has been saved successfully.R, , R,DDR cmdSave.)isible O 6alse cmd,dd.)isible O True E'it Sub KpdateErr: %onnection> Do Kntil rs.E26 *f rs5D$ O t't0o.Te't Then ' O rs5;$ sg"o' R&ecord *d ,lready E'ist of R T ', vb2M%ancel P vb%ritical, RData &edundancyR

E'it Sub End *f

rs. ove0e't 4oop

End Sub

ICDEOL HPU

45

Employee Management System
3rivate Sub %ommand;N%lick5$ End Sub 3rivate Sub %ommand=N%lick5$ Knload End Sub 3rivate Sub 6ormN4oad5$ %onnection> t't0o.Te't O rs5D$ t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$ End Sub e

ICDEOL HPU

46

Employee Management System
#'!m Disp$ay This form is used the display the details of each employees that are added by using frmaddemp form this form also navigates through the records and also display the total number of employee currently being stored in the database. The controls used in this form and the their properties are given below along with the form. This form as loaded appears like as shown below. ,s this form loads it shows the details of the first Employee in the database.

T4e Main C'nt!'$s Use* In T4is #'!m a!e Name ; Te't"o'; ICDEOL HPU P!'pe!ties 0ameOt't0o 47

Employee Management System
> Te't"o'> = Te't"o'= L Te't"o'L B Te't"o'B @ %ommand "utton; %aptionO 2)E 6*&ST ? %ommand "utton> %aptionO 2)E 0ECT A %ommand "utton= I %ommand "uttonL ;D %ommand "uttonB 0ameOcmdprev %aptionO 2)E 3&E)*2KS 0ameOcmd4ast %aptionO 0ameOcmdTotal %aptionOTotal E 3427EES 2)E 4,ST 0ameO cmd0e't 0ameOt't0ame 0ameOt't%ity 0ameOt'tDob 0ameOt't3hone 0ameO cmdfirst

S')!ce C'*e

3rivate Sub cmdfirstN%lick5$

rs. ove6irst t't0o.Te't O rs5D$ t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$

ICDEOL HPU

48

Employee Management System

End Sub 3rivate Sub cmd4astN%lick5$ rs. ove4ast t't0o.Te't O rs5D$ t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$

End Sub 3rivate Sub cmd0e'tN%lick5$ rs. ove0e't *f rs.E26 O True Then sg"o' RThis is the last record.R, vbE'clamation, R4ast &ecordR E'it Sub

End *f *f rs."26 O True Then sg"o' RThis is 6irst &ecordR, vb2M%ancel P vb*nformation, R 6irst &ecordR E'it Sub End *f

ICDEOL HPU

49

Employee Management System
S rs. ove0e't t't0o.Te't O rs5D$ t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$ End Sub 3rivate Sub cmd3revN%lick5$ rs. ove3revious *f rs."26 O True Then sg"o' RThis is the first record.R, vb*nformation, R6irst &ecordR

rs. ove6irst End *f t't0o.Te't O rs5D$ t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$ End Sub

3rivate Sub cmdTotalN%lick5$ Dim k ,s *nteger rs. ove6irst

ICDEOL HPU

50

Employee Management System

kOD Do Kntil rs.E26 kOkP; rs. ove0e't 4oop sg"o' RThere ,re R T k T R R T REmployees *n The %ompanyR, vb2M%ancel P vb*nformation, RTotal EmployeesR

End Sub 3rivate Sub %ommand;N%lick5$ Knload End Sub 3rivate Sub 6ormN4oad5$ %onnection> t't0o.Te't O rs5D$ t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$ End Sub e frmmain.Show

ICDEOL HPU

51

Employee Management System

#'!m De$ete Emp$'yee This form is used to delete the record of the employee from the database. ,s this form loads the combo bo' gets loaded with the employee number this combo bo' is used to select the employee whose details has been deleted. The controls used in this form and the properties are given below along with the form.

T4e Main C'nt!'$s Use* In T4is #'!m a!e Name ; Te't"o'; > Te't"o'> = Te't"o'= L Te't"o'L B Te't"o'B ICDEOL HPU P!'pe!ties 0ameOt't0o 0ameOt't0ame 0ameOt't%ity 0ameOt'tDob 0ameOt't3hone 52

Employee Management System
@ %ommand "utton; %aptionODE4ET ? %ommand "utton> %aptionOEC*T A %ombo "o' 0ameOcombo; 0ameO cmde'it 0ameO cmddel

S')!ce C'*e Dim a ,s *nteger Dim b ,s *nteger 3rivate Sub 4oad,ddress5$ %onnection>

%ombo;.%lear Set rs O co;.E'ecute5Rselect Q from R T RempR$ a O rs5ReNnoR$ Do Kntil rs.E26 %ombo;.,dd*tem rs5ReNnameR$ %ombo;.*temData5%ombo;.0ew*nde'$ O rs5ReNnoR$ rs. ove0e't 4oop bOD %ombo;.4ist*nde' O D

ICDEOL HPU

53

Employee Management System
bO; End Sub

3rivate Sub cmdDelN%lick5$ Dim int&esponse ,s *nteger %onnection> str&esponse O RDelete GueryR$ *f str&esponse O @ Then %onnection> sql O Rdelete from emp where eNno O R T a co;.E'ecute sql rs.Kpdate 4oad,ddress End *f End Sub sg"o'5R,re you &eally 8ant To Delete The &ecordHR, vb7es0o,

3rivate Sub cmdE'itN%lick5$ Knload End Sub 3rivate Sub 6ormN4oad5$ %all 4oad,ddress End Sub e frmmain.Show

ICDEOL HPU

54

Employee Management System

3rivate Sub %ombo;N%lick5$ *f b O ; Then sql O Rupdate emp set R T ReNno O SR T t't0o.Te't T RS, R T ReNname O SR T t't0ame.Te't T RS, R T Rcity O SR T t't%ity.Te't T RS, R T Rdob O SR T t'tDob.Te't T RS, R T RphoneNnoO SR T t't3hone.Te't T RS where eNno O R T a co;.E'ecute sql End *f a O %ombo;.*temData5%ombo;.4ist*nde'$ Set rs O co;.E'ecute5Rselect Q R T Rfrom emp where eNno O R T a$ t't0o.Te't O rs5D$ t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$ STe'tB.Te't O rs>5R2ptionDR$ *f )al5t't0o.Te't$ O %ombo;.4ist%ount Then sg"o' RThis *s The 4ast &ecordR, vb2M%ancel P vb*nformation, RGuestion SelectionR End *f End Sub

ICDEOL HPU

55

Employee Management System

#'!m E*it Emp$'yee This form is used to edit the records of the employees. The controls used in this form and the properties are given below along with the form.

T4e Main C'nt!'$s Use* In T4is #'!m a!e Name ; Te't"o'; > Te't"o'> = Te't"o'= L Te't"o'L B Te't"o'B ICDEOL HPU P!'pe!ties 0ameOt't0o 0ameOt't0ame 0ameOt't%ity 0ameOt'tDob 0ameOt't3hone 56

Employee Management System
@ %ommand "utton; %aptionO 2)E 0ECT ? %ommand "utton> %aptionOEdit A %ommand "utton= 0ameOcmdSave %aptionOS,)E S')!ce C'*e 3rivate Sub cmdmovene'tN%lick5$ 0ameO cmdKpdate 0ameO cmdmovene't

rs. ove0e't *f rs.E26 O True Then sg"o' RThis is the last record.R, vbE'clamation, R0ote it...R rs. ove4ast End *f t't0o.Te't O rs5D$ t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$ End Sub 3rivate Sub cmdSaveN%lick5$

rs5D$ O t't0o.Te't rs5;$ O t't0ame.Te't rs5>$ O t't%ity.Te't

ICDEOL HPU

57

Employee Management System
rs5L$ O t'tDob.Te't rs5=$ O t't3hone.Te't rs.Kpdate sg"o' RThe record has been saved successfully.R, , R,DDR

cmdKpdate.)isible O 6alse E'it Sub

End Sub 3rivate Sub cmdKpdateN%lick5$ Dim ans ,s String t't0o.Enabled O 6alse t't0ame.4ocked O 6alse t't%ity.4ocked O 6alse t'tDob.4ocked O 6alse t't3hone.4ocked O 6alse ans O sg"o'5RDo you really want to modify the current recordHR, vbE'clamation P

vb7es0o, RDE4ETER$ *f ans O vb7es Then rs.Kpdate End *f End Sub

ICDEOL HPU

58

Employee Management System
3rivate Sub %ommand;N%lick5$ Knload End Sub 3rivate Sub 6ormN4oad5$ %onnection> t't0o.Te't O rs5D$ t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$ t't0o.4ocked O True t't0ame.4ocked O True t't%ity.4ocked O True t'tDob.4ocked O True t't3hone.4ocked O True End Sub e frmmain.Show

ICDEOL HPU

59

Employee Management System

#'!m Sea!c4 This form is used to display the record of a particular employee based upon the employee 0umber supplied, if there is no matching values of employee number in the database then a appropriate message is displayed The controls used in this form and their properties are given below along with the form.

T4e Main C'nt!'$s Use* In T4is #'!m a!e Name ; Te't"o'; > Te't"o'> P!'pe!ties 0ameOt't0o )isibleOfalse 0ameOt't0ame )isibleOfalse ICDEOL HPU 60

Employee Management System
= Te't"o'= L Te't"o'L B Te't"o'B @ %ommand "utton; %aptionOSE,&%. ? %ommand "utton> 0ameO cmdE'it %aptionOEC*T S')!ce C'*e 3rivate Sub cmdE'itN%lick5$ Knload End Sub 3rivate Sub cmdSearchN%lick5$ Dim key ,s String, str ,s String key O *nput"o'5REnter the Employee 0o whose details u want to know: R$ *f key O RR Then sg"o' R%anSnt emptyR Knload End *f str O Rselect Q from emp where eNnoOR T key %onnection> Set rs O co;.E'ecute5Rselect Q R T Rfrom emp where eNno O R T key$ *f rs.E26 ,nd rs."26 Then e e frmmain.Show 0ameOt't%ity )isibleOfalse 0ameOt'tDob )isibleOfalse 0ameOt't3hone )isibleOfalse 0ameO cmdSearch

ICDEOL HPU

61

Employee Management System
sg"o' R&ecord *d Does 0ot E'itst WR, vb2M%ancel P vb*nformation, R&ecord *dR E'it Sub End *f t't0ame.)isible O True t't%ity.)isible O True t'tDob.)isible O True t't3hone.)isible O True

t't0ame.Te't O rs5;$ t't%ity.Te't O rs5>$ t'tDob.Te't O rs5L$ t't3hone.Te't O rs5=$

End Sub 3rivate Sub 6ormN4oad5$ t't0ame.)isible O 6alse t't%ity.)isible O 6alse t'tDob.)isible O 6alse t't3hone.)isible O 6alse End Sub

ICDEOL HPU

62

Employee Management System

#'!m Sa$a!y This form is use to calculate the salary details of the employee this form also display the employee number and employee name whose salary details is to be calculated. 2nce the gross and net pay of the employee calculated, it can be saved to the database. The controls used in this form and the properties are given below along with the form.

T4e Main C'nt!'$s Use* In T4is #'!m a!e Name ; %ommand "utton; > %ommand "utton> P!'pe!ties 0ameOcmd0e't %aptionO 2)E 0ECT 0ameOcmdprev %aptionO 2)E 3&E)*2KS

ICDEOL HPU

63

Employee Management System
= %ommand "utton= 0ameOcmdSave %aptionOSave Salary Details

L %ommand "uttonL B %ommand "uttonB @ %ommand "utton @

0ameOcmd<ross %aptionO%alculate <ross 3ay 0ameOcmd0et3ay %aptionO%alculate 0et 3ay 0ameOcmdE'it %aptionOE'it

S')!ce C'*e Dim bp, dp, da, cap, com, hra, gross, loan, gpf, lic, net ,s Double 3rivate Sub cmd0e'tN%lick5$ rsB. ove0e't *f rsB.E26 Then sg"o' R7ou ,re 2n 4ast &ecordR, vb2M%ancel P vb*nformation, R4ast &ecord..R Else t't0o O rsB5D$ t't0ame.Te't O rsB5;$ t't"asic.Te't O rsB5>$ *f t't"asic.Te't O D Then sg"o' RDo 7ou 8ant To Kpdate the Salary DetailsR, vb7es0o P vb*nformation, RSalary:R *f vb7es Then t't"asic.Set6ocus End *f End *f

ICDEOL HPU

64

Employee Management System
t't"asic.Te't O rsB5>$ t'tD3.Te't O rsB5=$ t'tD,.Te't O rsB5L$ t't%omp.Te't O rsB5B$ t't%apital.Te't O rsB5@$ t't.&,.Te't O rsB5?$ t't<ross.Te't O rsB5A$ t't4oan.Te't O rsB5I$ t't<36.Te't O rsB5;D$ t't4ic.Te't O rsB5;;$ t't0et3ay.Te't O rsB5;>$ End *f End Sub 3rivate Sub %ommand;N%lick5$ t't0et3ay.Te't O )al5t't<ross.Te't$ + 5)al5t't4oan.Te't$ P )al5t't4ic.Te't$ P )al5t't<36.Te't$$

End Sub

ICDEOL HPU

65

Employee Management System
3rivate Sub %ommand>N%lick5$ bp O )al5t't"asic.Te't$ dp O t'tD3.Te't da O t'tD,.Te't comp O t't%omp.Te't ca O t't%apital.Te't gross O bp P dp P da P comp P ca *f t't.&,.)isible O True Then hra O t't.&,.Te't gross O gross P hra Else gross O gross + hra End *f t't<ross.Te't O gross End Sub 3rivate Sub %ommand=N%lick5$ 2n Error <oTo KpdateErr *f t't"asic.Te't O D Then sg"o' R3lease 6ill 0ecessay 6iledsR, vb2M%ancel P vb%ritical, RSalaryR Else

rsB5>$ O t't"asic.Te't rsB5=$ O t'tD3.Te't rsB5L$ O t'tD,.Te't rsB5B$ O t't%omp.Te't rsB5@$ O t't%apital.Te't rsB5?$ O t't.&,.Te't

ICDEOL HPU

66

Employee Management System
rsB5A$ O t't<ross.Te't rsB5I$ O t't4oan.Te't rsB5;D$ O t't<36.Te't rsB5;;$ O t't4ic.Te't rsB5;>$ O t't0et3ay.Te't rsB.Kpdate sg"o' RThe record has been saved successfully.R, , R,DDR End *f E'it Sub KpdateErr: sg"o' RSalary Details 0ot KpdatedR, vb2M%ancel P vb%ritical, RSalary DetailsR End Sub

3rivate Sub %ommandLN%lick5$ Knload End Sub 3rivate Sub %ommandBN%lick5$ rsB. ove3revious *f rsB."26 Then sg"o' R7ou ,re 2n 6irst &ecordR, vb2M%ancel P vb*nformation, R6irst &ecord..R Else t't0o O rsB5D$ t't0ame.Te't O rsB5;$ t't"asic.Te't O rsB5>$ *f t't"asic.Te't O D Then e frmmain.Show

ICDEOL HPU

67

Employee Management System
sg"o' RDo 7ou 8ant To Kpdate the Salary DetailsR, vb7es0o P vb*nformation, RSalary:R *f vb7es Then t't"asic.Set6ocus End *f End *f t't"asic.Te't O rsB5>$ t'tD3.Te't O rsB5=$ t'tD,.Te't O rsB5L$ t't%omp.Te't O rsB5B$ t't%apital.Te't O rsB5@$ t't.&,.Te't O rsB5?$ t't<ross.Te't O rsB5A$ t't4oan.Te't O rsB5I$ t't<36.Te't O rsB5;D$ t't4ic.Te't O rsB5;;$ t't0et3ay.Te't O rsB5;>$ End *f

End Sub 3rivate Sub 6ormN4oad5$ %onnection> t't0o.Te't O rsB5D$ t't0ame.Te't O rsB5;$ t't"asic.Te't O rsB5>$ *f t't"asic.Te't O D Then

ICDEOL HPU

68

Employee Management System
sg"o' RDo 7ou 8ant To Kpdate the Salary DetailsR, vb7es0o P vb*nformation, RSalary:R *f vb7es Then frmsalary.Show St't"asic.Set6ocus End *f End *f t'tD3.Te't O rsB5=$ t'tD,.Te't O rsB5L$ t't%omp.Te't O rsB5B$ t't%apital.Te't O rsB5@$ t't.&,.Te't O rsB5?$ t't<ross.Te't O rsB5A$ t't4oan.Te't O rsB5I$ t't<36.Te't O rsB5;D$ t't4ic.Te't O rsB5;;$ t't0et3ay.Te't O rsB5;>$ End Sub 3rivate Sub 2ption;N%lick5$ *f 2ption;.)alue O True Then t't<ross.Te't O )al5t't"asic.Te't$ P )al5t'tD3.Te't$ P )al5t'tD,.Te't$ P )al5t't%omp.Te't$ P )al5t't%apital.Te't$ Else t't.&,.)isible O True End *f End Sub

ICDEOL HPU

69

Employee Management System
3rivate Sub 2ption>N%lick5$ *f 2ption>.)alue O True Then t't.&,.)isible O True End *f End Sub 3rivate Sub 2ption=N%lick5$ *f 2ption=.)alue O True Then t't4oan.)isible O True End *f End Sub 3rivate Sub 2ptionLN%lick5$ *f 2ptionL.)alue O True Then t't4oan.)isible O 6alse t't0et3ay.Te't O )al5t't0et3ay.Te't$ + t't4oan.Te't End *f End Sub 3rivate Sub t'tD,N<ot6ocus5$ t'tD,.Te't O 5)al5t't"asic.Te't$ P )al5t'tD3.Te't$$ Q L; # ;DD End Sub 3rivate Sub t'tD3N<ot6ocus5$ t'tD3.Te't O )al5t't"asic.Te't$ Q BD # ;DD End Sub

ICDEOL HPU

70

Employee Management System

M'*)$e1 This is very important module, because it initiali!es the database file named employee.mdb, and make a connection with this file and make a connecting string with this help of Data "ase Driver name icrosoft.Jet.24ED".L.D that helps in connecting with the database file. This module also contains a recordset variables that help to open the tables included in the database files

CONCLUSION %onclusion of this project includes problem encountered, benefits of computeri!ed Employee payroll, employee details, T scope of improvement in a project in future. 3roblem encountered: 8hen a person is trying to do something here might e'ist some problem is everywhere, with all of others T us. During the developed of this project * have also faced some problems. The main problem that * faced was that * had to learn basic of )isual "asic language and database as project is based on the visual basic language . These are the main problems which are encountered in the project. "enefits of computeri!ed Employee &ecord Meeping System. "enefits of computeri!ed Employee record keeping and payroll of employees as compared to manual record keeping are s follows: anual record keeping of each employee and salary calculations is time consuming as compared to computeri!ed system. *n manual record keeping manpower is large as compared to the computeri!ed system 4ess storage space is required in computeri!ed system as compared to the manual record keeping system. Scope of modification in a project * future: 4ater on the system can be connected to the on+line so that one can employee of the department can get access to their details S+,%%ESS side by side because this

ICDEOL HPU

71

Employee Management System
form other place. *t is easy for user to get the booking of tickets by not wasting there time by calculating manually employee salary details.

I LIOGRAP3Y Websites • • • • • • • http:##www.google.com http:##www.microsoft.com http:##www.codeproject.com http:##www.msdn.com. http:##www.vb;>=.com http:##www.vbcode.com http:##www.sqltuner.com

Boo s • • • • astering )isual "asic @ 53aperback$ )isual "asic "lack "ook 53aperback$ SG4 "ible, >nd Edition 53aperback$ Database Development in )isual "asic

ICDEOL HPU

72

Employee Management System

ICDEOL HPU

73

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close