Final Printout

download Final Printout

of 37

Transcript of Final Printout

  • 8/2/2019 Final Printout

    1/37

    PROJECT REPORT

    ON

    PERSONNEL MANAGEMENT SYSTEM

    Submitted in partial fulfilment of the requirement for the award of degree of

    Bachelors of Technology

    In

    Computer Science & Engineering

    (Batch: 2009-2013)

    KIIT COLLEGE OF ENGINEERING

    GURGAON

    Under the Guidance of: Submitted by:

    ROHIT AGGARWAL

    41088

  • 8/2/2019 Final Printout

    2/37

    ACKNOWLEDGEMENT

    I owe a great many thanks to many people who helped and supported me during the

    completion of this project.

    I am thankful to the Guide of the project for guiding and correcting various documents of

    mine with attention and care. He has taken pain to go through the project and make

    necessary correction as and when needed.

    I would also thank my Institution and my faculty members without whom this project

    would have been a distant reality.

    ROHIT AGGARWAL

    41088

  • 8/2/2019 Final Printout

    3/37

    TABLES OF CONTENT

    Abstract

    Introduction

    Java

    System analysis

    Feasibility study

    Design analysis

    Performance requirement

    Acceptance criteria About the project

    System Requirement

    Flow chart

    E-R Diagram

    Data Flow Diagram

    Screenshots

    Bibliography

  • 8/2/2019 Final Printout

    4/37

    ABSTRACT

    The project titled Library Management System is Library management software

    for monitoring and controlling the transactions in a library. It mainly focuses on basic

    operations in a library like adding new member, new books, and updating new

    information, searching books and members and facility to borrow and return books.

    The problems, which existed in the earlier system, have been removed to a large

    extent. And it is expected that this project will go a long way in satisfying users

    requirements. The computerization of the Library Management will not only improve the

    efficiency but will also reduce human stress thereby indirectly improving human

    recourses.

  • 8/2/2019 Final Printout

    5/37

    INTRODUCTION

    The project titled Personnel Management System is Personnel management software

    for monitoring and controlling the transactions in a personnel system .The project

    Personnel Management System is developed in java, which mainly focuses on basic

    operations of the personnel. Traditional system of personnel is very time consuming and

    needs all the work to be done manually. Because all the work is done manually there

    are chances of mistakes done carelessly and chances always remain there that the

    records can be changed by any unauthorized individual.

    This Personnel Management System solves these problems to a large extent as the

    whole personnel records are secure under the computerized system. The

    computerization of the Personnel Management will not only improve the efficiency

    but will also reduce human stress thereby indirectly improving human recourses. All the

    basic operations like adding a new employee, update the record, delete the record and

    searching the record of the employee. Only the authorized person can access the

    system by entering the correct combination of username and password.

  • 8/2/2019 Final Printout

    6/37

    JAVA

    The entire component has been developed using Java technology. Java has been

    chosen as the platform because of its feature rich nature. The Java Platform provides

    robust end-to-end solutions for networked applications as well as a trusted standard for

    embedded applications. So Java was a natural choice for development process.

    Characteristics of Java

    Object Oriented:

    Java is object oriented to the truest sense of the word. Everything in Java is

    represented as objects. Variables and methods both are encapsulated in objects. Java

    is the purest object-oriented language.

    Robust:

  • 8/2/2019 Final Printout

    7/37

    Java is a very robust language owing to the following features.

    Excellent exception handling facilities.

    Memory management relief for the user. User does not have to worry about allocation

    and deallocation of memory.

    Strict compile-time and runtime checks for data types.

    Portable and Architecture-neutral (Platform Independent):

    Java is portable and platform independent so much that they satisfy write once; run

    anywhere, anytime, forever. This feature is implemented in the following ways:

    Compiler generates machine independent byte-code instructions which can be run

    on any machine supporting Java Virtual Machine.

    Size of primitive data type is machine independent.

    Multithreaded:

    Programs can do many things simultaneously using different threads. Provides a solution for multiprocess synchronization.

    Allows the creation of networked and interactive programs.

    Distributed:

    Open access to remote objects by the use of RMI (Remote Method Invocation).

    Brings a level of abstraction to client/server programming.

    Secure:

    Security is achieved by confining a java program to the java execution

    environment and not allowing access to other parts of the user computer.

  • 8/2/2019 Final Printout

    8/37

    Absence of pointers provides memory related security as encroachment of memory

    is avoided Proper measures for prevention of viral infection and malicious intent.

    Dynamic and Extensible:

    Facilitates linking in of new classes, objects and methods.

    Supports native methods (methods written in other languages like C, C++).

    Programs carry with them a substantial amount of runtime type information that is

    used to verify and resolve accesses to objects at run-time.

    High Performance:

    Just-In-Time (JIT) compilers are used to convert byte-code into native machine code

    resulting in very high performance. These JIT compilers can be used on a real time,

    piece by piece demand basis to perform on-the-fly compilation of byte-code into

    native-code.

    Compilation and Interpretation:

    Java programs are implemented as a two-stage system.

    Compilation: Source code to byte-code and not machine instructions.

    Interpretation: Byte-code to machine code (for any system that supports using JVM)

    Thus cross-platform programs can be written.

    JAVA SWINGS

    "Swing" refers to the new library of GUI controls (buttons, sliders, checkboxes, etc.) that

    replaces the somewhat weak and inflexible AWT controls.

    The Swing classes eliminate Java's biggest weakness: its relatively primitive user

    interface toolkit. Java Swing helps you to take full advantage of the Swing classes,

  • 8/2/2019 Final Printout

    9/37

    providing detailed descriptions of every class and interface in the key Swing packages.

    It shows you how to use all of the new components, allowing you to build state-of-the-art

    user interfaces and giving you the context you need to understand what you're doing.

    It's more than documentation; Java Swing helps you develop code quickly and

    effectively.

    1. Main New Features

    Lightweight. Not built on native window-system windows.

    Much bigger set of built-in controls: Trees, image buttons, tabbed panes, sliders,

    toolbars, color choosers, tables, text areas to display HTML or RTF, etc.

    Much more customizable. Can change border, text alignment, or add image to

    almost any control. Can customize how minor features are drawn. Can separate

    internal representation from visual appearance.

    "Pluggable" look and feel. Can change look and feel at runtime, or design own

    look and feel.

    Many miscellaneous new features. Double-buffering built in, tool tips, dock able

    tool bars, keyboard accelerators, custom cursors, etc.

    2. Components are named JXxx

    .

    E.g. JFrame, JPanel, JApplet, JDialog, JButton etc.

    J Component

    The J Component class is the root of the Visual component class hierarchy in JFC. All

    Swing components are implemented as subclass of J components class, which inherits

    from the Container class. Swing component inherit the following functionality from J

    Component

    a). Borders- Using the setBorder() method, you can specify the border that a component

    displays around its edges. You can specify that component have extra space around its

    edges using an EmptyBorder instance.

  • 8/2/2019 Final Printout

    10/37

    b). Double Buffering- It can improve the appearance of frequently changing

    components. Now you do not have to write the double buffering code because Swing

    provides it for you. By default Swing components are double buffered.

    c). Tool Tips- By specifying a string with the setToolTipNext() method, you can providehelp to users of a components. When the cursor pauses over the components, the

    specified string is displayed in small window near the component.

    d). Look and Feel- Subject to the security restriction, you can choose the look and feel

    used by all Swing components by invoking the UIManager.setLookAndFeel() method.

    3. Instead of adding components directly to frames or applets, we can use the content

    pane.

    Add to content pane via getContentPane().add

    Replace content pane via setContentPane()

    5. Model-View-Controller architecture let us change the internal data representation for

    lists, trees, tables, etc.

    6. Mixing AWT and Swing is doomed.

    AWT components are always on top, and z-ordering problems catch you in many

    unexpected ways. Stick with the AWT or move completely to Swing.

  • 8/2/2019 Final Printout

    11/37

    APPLETS

    Applet is java program that can be embedded into HTML pages. Java applets runs on

    the java enables web browsers such as mozila and internet explorer. Applet is designed

    to run remotely on the client browser, so there are some restrictions on it. Applet can't

    access system resources on the local computer. Applets are used to make the web site

    more dynamic and entertaining.

    Advantages of Applet:

    Applets are cross platform and can run on Windows, Mac OS and Linux platform

    Applets can work all the version of Java Plugin

    Applets runs in a sandbox, so the user does not need to trust the code, so it can

    work without security approval

    Applets are supported by most web browsers

    Applets are cached in most web browsers, so will be quick to load when returning

    to a web page

    User can also have full access to the machine if user allows

    Disadvantages of Java Applet:

    Java plug-in is required to run applet

    Java applet requires JVM so first time it takes significant startup time

    If applet is not already cached in the machine, it will be downloaded from internet

    and will take

  • 8/2/2019 Final Printout

    12/37

    JDBC

    The JDBC is a set of the database access classes. The very term JDBC stands for

    Java Database Connectivity. It was developed by Java Soft. JDBC technology is an

    API (Application Program Interface) that allows virtual access to any tabular data source

    from the Java programming language by means of some connecting software called

    Drivers. It provides cross-DBMS connectivity to a wide range of SQL databases. JDBC

    defines a set of interfaces to enable developers to access data independently of the

    actual database product used to store the data. JDBC allow Java applets, Servlets, and

    application to access data in famous database management systems.

    It also provides access to other tabular data sources, such as spreadsheets or flat files.

    The JDBC API allows developers to take advantage of the Java platform's "Write Once,

    Run Anywhere" capabilities for industrial strength, cross-platform applications that

    require access to enterprise data. With a JDBC technology-enabled driver, a developer

    can easily connect all corporate data even in a heterogeneous environment. The JDBC

    API is the industry standard for database-independent connectivity between the Java

    programming language and a wide range of databases. The JDBC API makes it

    possible to do three things:

    Establish a connection with a database or access any tabular data source

    Send SQL statements

    Process the results

  • 8/2/2019 Final Printout

    13/37

    CREATING DATA SOURCE NAME (DSN)

    Before starting the program using JDBC ODBC bridge drivers, create tables in

    Microsoft Access according to requirement. Let its name be emp and fields ename,

    design, hiredate, deptno.

    Now lets create a DSN by name empdb, which we will use in the program

    based on JDBC ODBC drivers. The steps to create DSN are given below

    1. Goto Control panel, click on Administrative Tool and then click on ODBC Data

    Sources as shown in figure 2 and 3.

    Figure 2. Selecting Administrative Tool

    Figure 3. Selecting ODBC

    2. Click on Add button of User DSN as shown in figure 4

  • 8/2/2019 Final Printout

    14/37

    Figure 4

    3. Select Microsoft Access Driver & then click Finish as shown in figure 5

    Figure 5. Selecting Microsoft Access Driver

    4. Write Data Source name as Personnel and click on Select button then select

    .mdb file where it is stored and click on OK as shown in figure 6 and 7.

    Figure 6

  • 8/2/2019 Final Printout

    15/37

    Figure 7

    5. Now at last click on OK as shown in figure 8.

    Figure 8

  • 8/2/2019 Final Printout

    16/37

    SYSTEM ANALYSIS

    Identification of Need

    It is the study of various operations performed by the system and their

    relationship in and outside the system. This study is used to gain an in depthunderstanding of the existing system and what is required from the new system.At the conclusion of the analysis phase there is a System description for thenew system or a set of requirements of the new system. If there is no existingsystem then analysis defines only the requirements.

    System Analysis consists of five basic parts:

    Gathering

    The Tools of Structured Analysis

    Feasibility Study

    Cost I Benefit System Planning And Initial Investigation

    Information Analysis

    System Planning And Initial Investigation

    This is the first step in project. To launch a system investigation a master plan

    detailing of the system to be taken , the people to be questioned and theexpected outcome is required. The objective is to determine whether the user

    request has potential merit.

    Information Gathering

    There are four key strategies or general approaches for. Eliciting information

    regarding the user's requirement:

    Asking Getting information from existing system

    Onsite observation.

    Prototyping

  • 8/2/2019 Final Printout

    17/37

    Each approach has its advantages and limitations these are

    described below:

    Asking

    This is the approach where the information is gathered by directly asking the

    person about his problem requirements.

    Advantages

    It gives the users a feeling of participation.

    Helps to explore the details of the solution by observing the facial

    expression, body language by listening to the verbal replies to thequestion.

    Disadvantages

    This process is time consuming.

    The success depends upon the analyst who is conducting theinterview.

    Sometimes the candidates hesitate.

  • 8/2/2019 Final Printout

    18/37

    Feasibility Study

    As not every imagination is feasible, not even in software, evanescent as it may appear

    to outsiders. On the contrary, software feasibility has five solid dimensions:

    Technical Feasibility

    Is the prepared technology practical? Technical feasibility centres on the existing

    computer system and to what extent it can support the proposed addition. But in this

    case since earlier all the work was manual and there was no existing system, so the

    system proposed is technically feasible. Also, the new system should be brought

    according to the specification of the product being designed.

    Operational Feasibility

    Is the problem worth solving? Will the solution to problem work? The answer to the

    above question is yes. As the problem is worth solving because the manual work is very

    inefficient and from the statement of the problem gives us a clue that there is a solution

    to the problem and there are pretty good chances that the solution will work.

    Economic Feasibility

    It is used to measure the cost effectiveness of a project which is commonly known as

    cost-benefit analysis. The project is also economically feasible as the only requirement

    involving expenses are related to the cost of buying a new system and a printer for the

    hard copies. And the maintenance involved in this is only the maintenance of the

    computer and that does not cost much. So according to the requirements the system is

    economically fit.

    Legal Feasibility

    Legal feasibility means that the software developed is legal; it is not violating any

    governmental constraints and it is following all the legal laws. Since the project is

  • 8/2/2019 Final Printout

    19/37

    developed for use within a particular college only, it can be no mean violate any legal

    laws.

    Therefore, it is said to be legally feasible too.

    Behavioural Feasibility

    Behavioural feasibility is an estimate of how strong reaction the user staff is likely to

    have towards the development of a computer system. Since this project lightens the

    burden of the manual work in the cell, so the end users of the software will always be

    encouraging towards the use of computer. Also, no jobs are going to be replaced in this

    case.

  • 8/2/2019 Final Printout

    20/37

    DESIGN ANALYSIS

    Designing is the most important part of the software development lifecycle. It requires

    careful planning and logical thinking on the part of the software designer. Designing the

    software means how the various parts of the software are going to meet the user

    requirement and goals. It should be done with utmost care as a simple mistake or

    miscalculation at this stage can result in errors which can be compounded manifold as

    the development process moves up the development hierarchy. This compounded error

    can result in low performance, more processing time, and more coding and extra load.

    System Design attempts to accomplish the following:

    Improve productivity of analysts and programmers.

    Improve documentation and subsequent maintenance and enhancements.

    Cut down drastically on cost over runs and delays.

    Improved communication among the users ,analysts, designers and

    programmers

    Standardize the approach to analysis and design

    Simplify design by segmentation

  • 8/2/2019 Final Printout

    21/37

    PERFORMANCE REQUIREMENT

    The following performance characteristics were taken care of while

    developing System:

    User Friendliness:

    The system is easy to learn and understand. A native user can also use the

    system effectively, without any difficulty.

    User Satisfaction:

    The system is such that it stands up to the user expectations.

    Response Time:

    The response of all the operation is good. This has been made taken tare of to

    ensure that the system operates without halting.

    Safety and Robustness: The system is able to avoid or tackle disastrous action.

    In other words, it should be full proof. The system safeguards against undesired

    events without human intervention.

  • 8/2/2019 Final Printout

    22/37

    ACCEPTANCE CRITERIA

    User Friendliness:

    The system should satisfy the user's need. It should be easy to learn & operate.

    Modularity:

    The system should have relatively Independent and single function parts that

    can be put together to make complete system.

    Maintainability:

    The developed system should be such that the time & effort for the program

    maintenance, enhancements are reduced.

    Timeliness:

    The system should operate well under peak & recovery conditions.

  • 8/2/2019 Final Printout

    23/37

    ABOUT THE PROJECT

    The project titled PERSONNEL MANAGEMEMT SYSTEM is the Personnel

    management software for monitoring and updating the employees information from time

    to time. This project Personnel management system is mainly developed in java, which

    mainly focussed on basic operation like inserting the information of new employee,

    searching the information of existing employee, deleting the data of the past employee

    with a strong and effective user interface combined with searching option. The report

    generation facility of personnel system helps to get a well known idea in which

    information of employee is being updated by time to time.

    The PERSONNEL MANAGEMENT SYSTEM process made computerized to reduce

    human errors and to increase the efficiency. The main focus of this project is to lessen

    human efforts. The maintenance of the records is made efficient, as all the records are

    stored in the ACCESS database, through which data can be retrieved easily. The

    navigation control is provided in all the forms to navigate through the large amount of

    records. If the numbers of records are very large then user has to just type in the search

    string and user gets the results immediately. The editing is also made simpler. The user

    has to just type in the required field and press the save button to update the desired

    field.

    In this first of all log in form is appeared in this user fill the log in detail for accessing the

    data which is protected by password. If user enter the wrong password it will show

    wrong password and try again later, if its right three panes are shown in the window.

    these three panes are following :

    Inquire Personnel Detail: In this user wants the information of any employee, he use

    this window. If employee exist database will show the details otherwise employee

    doesnt exist.

    Update and Delete Personnel Detail: In this user update or delete the information of

    any employee ,use this window.

    Insert Personnel Detail: In this user want to insert the information of any newemployee,he will use insert personnel detail.

  • 8/2/2019 Final Printout

    24/37

    BASIS FOR DATA DICTIONARY

    A data dictionary is a centralized collection of all data flowing among functions & to orfrom data stores. It is nothing but a repository of various data flows defined in a DFD.

    The associated data dictionary states precisely the structure of each data flow in the

    DFD.

    The list of the various data structure along with their data type & description is as

    follows:

    Table-1 Login

    FieldName Type Size Not Null

    User Text 10

    Password Password 8

    Authorization Number

  • 8/2/2019 Final Printout

    25/37

    Table 2 Persons

    Field Name Type Size Not Null

    Person_Id

    AutoNumber Long Integer

    FirstName Text 30

    LastName Text 30

    MiddleName Text 30

    Nick Name Text 15

    Gender Text 1

    Martial Status Text 10

    Age Number integer

    BirthDate Date/Time yyyy/mm/dd

    Address Text 30

    Res_Phone_Number Text 15

    Off_Phone_Number Text 15

    Cell_Number Text 15

    Company Name Text 30

    Email address Text 30

  • 8/2/2019 Final Printout

    26/37

    SYSTEM REQUIREMENT

    HARDWARE

    Pentium V Processor

    RAM:- 2 GB

    Hard Disk:- 320 GB

    Other:-CD Writer,Keyboard,mouse

    SOFTWARE

    Front-end:- JAVA

    Back-end:- SQL

    For Connectivity:- JDBC

  • 8/2/2019 Final Printout

    27/37

    PRODUCTION

    WATERFALL MODEL

    The project is based on waterfall technique, which is based on topdown

    approach. First I have discovered all the problems present in the current system

    and hence accordingly framed the requirements. After the identification of

    requirements I have froizen them i.e. no future requirements can be identified.

    The user will get finally whatever he desires without having ant intermediate

    interface. The Waterfall Model offers a means of making the developmemt

    process more visible.

  • 8/2/2019 Final Printout

    28/37

    FLOW CHARTstart

    Enter Login Detail

    If detail

    matched

    Open Main Menu Module

    Print Error Wrong

    user Name and

    Password

    End

    YES

    NO

  • 8/2/2019 Final Printout

    29/37

    E-R DIAGRAM

    For Customer Detail

  • 8/2/2019 Final Printout

    30/37

    DDAATTAAFFLLOOWWDDIIAAGGRRAAMM

    00--LLEEVVEELL DDFFDD

  • 8/2/2019 Final Printout

    31/37

    Ist level DFD

  • 8/2/2019 Final Printout

    32/37

    SCREEN SHOTS

    Login Screen

  • 8/2/2019 Final Printout

    33/37

    Personnel Management System

    Inquire Form

  • 8/2/2019 Final Printout

    34/37

    Update/Delete Form

  • 8/2/2019 Final Printout

    35/37

    Insert form

  • 8/2/2019 Final Printout

    36/37

  • 8/2/2019 Final Printout

    37/37

    BIBLIOGRAPHY

    BOOKS REFERED

    The Complete Reference Java J2SE.

    Java How to Program.Programmers Guide to Java Certification.

    Java published by Sun Java.