Library Vb1

Embed Size (px)

Citation preview

  • 7/28/2019 Library Vb1

    1/92

    A PROJECT REPORT ON

    LIBRAY MANAGEMENT SYSTEM

    SUBMITTED BY

    Ayush Jain

    DEPARTMENT OF MBA (IT) IIIrd Sem

    Sikkim Manipal University Learning Center

    DEHRADUN

    1

  • 7/28/2019 Library Vb1

    2/92

    2011-2013

    ACKNOWLEDGEMENT

    We would like to pay sincere gratitude to Learning center of SMU

    Dehradun who created a healthy and technical Environment for

    the successful completion of the project.

    We humbly extends our words of gratitude faculty member

    s for providing us with their valuable time and help whenever it

    was required.

    And finally ,thanks to all those who inspired us directly or

    indirectly.

    Ayush Jain

    2

  • 7/28/2019 Library Vb1

    3/92

    PREFACE

    Software is a mechanism for automating business,industry

    ,government,education and medium for transferring new technology, a

    method of capturing valuable expertise for use by others, a others ,a

    means of differentiating one companys products from other

    competitors into corporations collective knowledge.

    This software is meant for making the library processes easier and

    comfortable to the librarians.the software is quite user friendly and selfexplanatory.the algoriythms used For this purpose are trusted over

    years and sufficiently Secure and efficient.Some of the features of thissoftware are its handiness and quick response.

    Project is developed in VISUAL BASIC, which provides a greater

    flexibility in data management.this project provide better linkage

    between different modules and by use of menus and buttons,it is more

    easy to use.It provides an uninterrupted flow of information and

    control along with adequate security.Record handling is made easy by

    process of addition,modification,deletionand query of any record.In thisproject it is tried to make system more convenient and effective interms of file handling,costand record maintenance.This report provides

    better way for use to understand.User can understandthe project with a very little effort.

    PROJECT REPORT

    ON3

  • 7/28/2019 Library Vb1

    4/92

    LIBRARY MANAGEMENT SYSTEM

    AT

    IAIT SIKKIM MANIPAL UNIVERSITYDEHRADUN

    SUBMITTED AS THE PRACTICAL WORK

    OF SOFTWARE ENGINEERING

    IN

    IIIrd Sem of MBA

    SUBMITTED BY: SUBMITTED AT:

    Ayush Jain DEPARTMENT OF

    MBA IT

    IAITDEHRADUN

    4

  • 7/28/2019 Library Vb1

    5/92

    CONTENTS

    CONTENTS

    1. SOFTWARE DEVELOPMENT LIFE CYCLE

    5

  • 7/28/2019 Library Vb1

    6/92

    2. SYSTEM ANALYSIS AND DESIGN

    3. FEASIBILITY CONSIDERATIONS

    4. UTILITY OF THE SOFTWARE

    5. REQUIREMENT ANALYSIS AND SPECIFICATION

    6. HARDWARE REOUIREMENTS7. SOFTWARE REQUIREMENTS

    8. S.R.S.

    9. DESIGNING.

    10. DATA FLOW DIAGRAM

    11. ER DIAGRAM

    12. .

    13. QUALITY ASSURANCE

    14. TESTING

    15. LEVEL OF TESTING

    16. IMPLEMENTATION

    17. ANNEXURE

    18. INPUT FORMS19. OUTPUT FORMS

    20. MENUS

    21. FLOW CHART

    22. MAINTENANCE

    23. COST ESTIMATION

    24. CONCLUSION

    25. REFERENCES

    INTRODUCTION

    6

  • 7/28/2019 Library Vb1

    7/92

    This project on Library Management System

    aims on making the working of library

    processes easier and comfortable to the

    librarians and students.this project will help

    to issue the books, maintain the book-bankand charging the and other library related

    issues.

    This software will also help to get

    information about a particular book,availability

    of books etc.

    SOFTWARE DEVELOPMENT LIFE CYCLE

    A software life cycle is a series of identifiable stages that a software

    product undergoes during its life time.This project LIBRARY

    7

  • 7/28/2019 Library Vb1

    8/92

    MANAGEMENT usually starts with a feasibility study stage, and then

    reouirement analysis and specification,design,coding,testing and

    maintenance.In this model the life cycle model is Iterative Waterfall

    Model

    ITERATIVE WATERFALL MODEL

    The waterfall model divides the life cycle of a software development

    process into phases as shown:-

    FEASIBILITY ST

    AND SPECIFICATION

    TESTING

    The classical waterfall model is an idealistic one since it assumes

    that no development error is ever committed by the engineers during

    any of the life cycle phases .However in practical development

    environment,the engineers do commit a large numbers of errors in

    almost every phase of life cycle.Resource of the many can be

    :oversight ,wrong assumptions,use of inappropriate technologies

    8

    FEASIBILITY

    STUDY

    REQUIREMENT

    ANALYSIS

    ANDSPECIFICATION

    DESIGN

    CODING AND

    UNIT TESTING

    INTEGRATION &SYSTEM TESTING

    MAINTENANC

    E

  • 7/28/2019 Library Vb1

    9/92

    ,communication gape among the project engineers etc.These defects

    usually get detected much later in the life cycle.For example a

    designdefect might go unnoticed till we reach the coding and

    trusting phase.Once,a dfect is detected,the engineers need to go back

    to the phase where the defect had occurred and redo some of thework done during that phase and subsequent phase to correct the

    defect and its effect on the later phases.

    Therefore in any practical software development work it is notpossible to strictly follows the classical waterfall model.Feedback

    paths are needed in the figure,to allow for the correction of the

    errors committed during the phase that are detected in later phase .

    Though errors are inevitable in almost every phase of

    development it is desirable to detect these errors in the same phase

    in which they occur.However ,it may not always be possible todetect all errors in the same phase in which they

    occur.Nevertheless ,the the error should be detected in the designphase itself this problem can be taken care of easily than if the error

    is identified,say, at the end of the integration and system testing

    phase.In the later case,it would be necessary not only to rework ,but

    also to appropriately redo the coding and the system testing,thus

    incurring higher cost.The principle of detecting errors as close to

    their points of introduction as possible is known as the phase

    containment of errors.This is an important software engineeringprinciple.

    9

  • 7/28/2019 Library Vb1

    10/92

    SYSTEM ANALYSIS

    AND

    DESIGN

    TRANSFORMATION

    SRS DESIGNSPECIFICATION

    10

    DESIGN

  • 7/28/2019 Library Vb1

    11/92

    CUSTOMER SYSTEM BUILDER

    S/W DESIGNING is a highly creative process of s/w development cyclewhere the designer plan how a s/w system should be produce to make a

    functional reliable and reasonably easy to understand

    SRS tell us what a system does and became the input for the design

    It is a process which help us how a system works

    SRS justified with the designed specifications

    The process of s/w design involves the transformation of idea in todetail, implementation, description with the objective of satisfying the

    s/w requirement in to working system the designer must satisfy both

    customer as well as system builders

    A good s/w design need to fulfill

    . Correct and complete

    . Understandable

    . At the right level

    . Maintainable

    . Flexiblity

    SAD

    DEFINITION

    11

    CONCEPTUAL

    DESIGN

    TECHNICAL

    DESIGN

  • 7/28/2019 Library Vb1

    12/92

    A system is an orderly grouping of interdependent components linked

    together to a plan to achieve a specific objective.

    The design of system has three basic implications:

    1. System must be designed to achieve a predetermined objective.

    1. Interrelationship and interdependence must exist among the

    components.

    2. The objective of the organization as a whole should have a higher

    priority then the objective of its subsystems.

    Steps In System Design:

    Recognition of Need The problem

    Feasibility Study

    Analysis

    Design

    Implementation

    Post Implementation and Maintenance

    An Approach to System Development

    12

  • 7/28/2019 Library Vb1

    13/92

    The basic objective of System Analysis and Design is to develop

    methods and procedures for system development that can scale up for

    large systems and that can be used for consistently produce high

    quality systems at low cost and small cycle time.The basic approach isto be separate the development project.The former the controls the

    quality,scalability ,consistency and productivity.Hence,we need to

    focus on development process.

    The basic approach used in System Design is PHASED

    DEVELOPMENT PROCESS.The development process consists of

    many phases,each phase ending in a defined output.The phases are

    performed in the order specified by the processs model. This ensuresthat the cost of the problem is lower than it would have been by taking

    the whole problem together .

    There are many models of development process.But there are

    some phases that are must to develop the system and rest depends on

    the model chosen.

    These activities are shown in figure and dicussed further:

    13

    Sources of System Ideas

    Top Management Consumers

    Organization Govt Rules and

    Regulations

  • 7/28/2019 Library Vb1

    14/92

    Recognition of Need The Problem?

    The first step in development process is to know theproblem

    that the system is going to solve.The basic for a candidate system is the

    14

    User

    Competition

    Union

    System Analysis

    System DevelopmentProcess

    Analysis

    Recoginition of Need

    Feasibilit Stud

    Design

    Im lementation

    Post Im lementation

    Maintenance

  • 7/28/2019 Library Vb1

    15/92

    recognition of the need for improving an information to determine

    whether an alternative system can solve the

    problem.

    In large environments ,where formal procedures are the norm,the task is to prepare a statement specifying the scope and objective of

    the problem.Then the problem must be reviewed with the user for

    accuracy and efficiency.At this stage , only rough estimate of the costanalysis and benefits of developing the process may be determined.

    However an accurate analysis can be made by a feasibility study.

    15

  • 7/28/2019 Library Vb1

    16/92

    FEASIBILITYSTUDY

    FEASIBILITY STUDY

    Thefeasibility study proposes one or more conceptual solutions to

    the problem set for the project . the conceptual solutions give an

    idea of what the new system will look like.They

    define what will be done on the computer and what will remain

    manual.They also whaty inputs the systems and outputs will

    produce.These solutions must be accepted .feasibility study is done

    16

  • 7/28/2019 Library Vb1

    17/92

    so that an ill-conceived system is recognized early in definition

    phase.

    During system engineering ,however ,we concentrate our attention

    on four primary areas of interest:

    Economic Feasibility :An evaluation pf development costweighed against the ultimate income or benefit derived from

    the developed system.This new propsed system is economically

    feasible as it does not involve much financial costs and is very

    beneficial to the division as this system will save the time

    required queries ,will generate reports and also make sure that

    the data is not damaged as in the case of manual system where

    the data is written on papers.

    Technical Feasibility: A study of function, performance andconstraints that may affect the ability to achieve an acceptable

    system.In technical feasibility , configuration of the system is

    given more importance than the actual make of hardware.The

    configuration should give the complete picture about the system

    requirement.

    Operational Feasibility: It is mainly related to humanorganizational and political aspects.It is carried out by a small

    group of people who are familiar with information system

    techniques,who understand the parts of the business that are

    relevant to the project and skilled in system analysis and design

    process.This system feasible since the staff using older manual

    system is experienced in handling the computerized

    systems.The staff of the division support the new system,as itwill be designied keeping their views in consideration.The

    changes made in the system are as advised by them and some

    others according to the needs which will make the system user

    friendly and easy to use.

    17

  • 7/28/2019 Library Vb1

    18/92

    Legal Feasibility: Legal feasibility is a determination ofwhether a proposed project infringes on known acts,statues,as

    well as any pending might appear sound, on closer investigation

    it may be found to infringe on several legal areas.

    Time Feasibility: Time feasibility is adeterminatin ofwhether a proposed project can be implemented fully within a

    stipulated time frame.If a project takes too much time it is likely

    to be rejected.

    Accordingly, the proposed systemLIBRARY MANAGEMENT

    stands out on these constraints to fulfill the

    requirements.Economically the proposed system is cost-effective

    as it makes use of the minimum available resources ( H/W,S/W)

    AND IS IN TUNE WITH THE LATEST TECHNOLOGY.The

    system is designed keeping in view further expansion at the

    software level. As the proposed system is GUI based ,it is user

    friendly and saves the end-user from the complexities of theinternal working.This enables the user to understand the usability

    of the system in a very short period of tme.

    During the project development the users were consulted and the

    developed applications were shown to them and some demo had

    been given to have the comments of them and to modify our

    project.The suggestions of the users had been noted the

    18

  • 7/28/2019 Library Vb1

    19/92

    19

  • 7/28/2019 Library Vb1

    20/92

    ANALYSIS

    ANALYSIS

    Analysis is the detailed study of the various operations

    performed by the System and their relationship within and outside

    of the system.During Analysis data are collected on the availablefiles,decisions points and transaction system.

    The interview is the commonly used tool in analysis.Training

    experience and common sense are required for collection of

    information needed to do the analysis . Once analysis is completedthe analyst has a firm understanding of what is to be done.

    20

  • 7/28/2019 Library Vb1

    21/92

    SYSTEM ANALYSIS

    INITIAL INVESTIGATION:-

    The iitial investigation system has the objective of determinig the validity of

    the user request for the candidate system and whether a feasibility study

    should be conducted .

    The objective of determining the validity of the user request for the

    candidate system and whether a feasibility study should be conducted .The

    objective should be understood within the framework of the organization

    MIS(Management Information System).

    The basic steps that were followed during the initial investigation :-

    Recognition of the Need :

    To recognize what the user need from the system.The success

    of the system depends largely on how accurately a problem is

    defined,through investigation ,

    and properly carried out through the choice of the solution .User need

    identification and analysis are concerned with the user needs rather than

    what he\she wants.

    What is the problem? :

    What problem the users are facing which has motivated them to

    ask for the candidate system? What all short coming do the existing system

    is having? What all changes does the user request?

    21

  • 7/28/2019 Library Vb1

    22/92

    INFORMATION GATHERING

    22

    On-Site

    Obeservation

    Review Literature

    Procedures andForms

    Information

    GatheringTools

    Data

    Organization

  • 7/28/2019 Library Vb1

    23/92

    On-Site observation Technique

    The major objectives of on-site observation is to get as close as possibleto the real system being studied.The following questions were answered

    during the on-site observation technique:-

    What kind of system is it ? What does it do?

    Who runs the system ? Who are the important people in it ?

    What is the history of the system ? How did it get to its present stage?What kind of system is it in comparision with other systems in the

    organization?

    Information About the User Staff

    23

    Questionaire

    Interviews

  • 7/28/2019 Library Vb1

    24/92

    Another kind of information for the analysis is knowledge about the people

    who run the

    Present system.Their job functions and information requirements.The

    relationships of their jobs to the existing system,and the interpersonal

    network that holds the users group together .

    In summary, the major focus is to find out what people the analyst is going

    to be dealing with and what each person expects to get out of a candidate

    system before it goes through design and final implementation.

    The application using staff is the well-qualified employees.They are very

    good in their respective fields. But less about the use of the application,so

    the system has to be developed so that it can help them to understand the

    application better and fater.

    INTERVIEWS

    24

  • 7/28/2019 Library Vb1

    25/92

    QUESTIONAIRE

    25

  • 7/28/2019 Library Vb1

    26/92

    USER REQUIREMENTS:

    Besides all the jobs that were being done in the existing system ,theuser expected certain other features to be added to the package.Since

    the existing system is manual,reports are not generated but in the

    proposed computerised system the reports are required at different

    queries.In the manual system , all return item and returnable not returnitem were not obtained but in the proposed system, user requires to

    generates these ranges.

    PERFORMANCE REQUIREMENTS :

    The following performance characteristics were taken care of while

    developing the system:

    User Friendliness

    The system is easy to learn and understand.Anative user can also use

    the system effectively,without any difficulty.

    26

  • 7/28/2019 Library Vb1

    27/92

    User Satisfaction

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

    Respose Time

    The response time of all the operations is good .This has been made

    possible by careful programming.

    Error Handling

    Response to user errors and undesired situations have been taken care

    of 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 foul proof.The system safetyguards against undesired events

    without human intervention.

    27

  • 7/28/2019 Library Vb1

    28/92

    HARDWARE-SOFTWARE SELECTION

    There are several things to do before selection:

    1. Define sysem capabilities that make sense .

    2. Specify the magnitude of the problem.

    3. Assess the competence of the in-house staff.

    4. Consider hardware and software as a package.

    5. Develop a time frame for selection.

    6. Provide user indoctrinations.

    The criteria for software selection are:

    1. Reliability : Gives consistent results.

    2. Functionality : Functions to standards.

    28

  • 7/28/2019 Library Vb1

    29/92

    3. Capacity : Satisfies volume requirements.

    4. Flexibility : Adapts to changing needs.

    5. Usability : Is user friendly?

    6. Security : Maintains integrity and prevents unauthorized

    access.

    7. Performance : Delivers as expected.

    8. Serviceability : Has good documentation and vendor support.

    9. Ownership : Has right to modify and share use of

    package.10. Minimal Costs : Is affordable for intended

    Application

    OPERATING ENVIRONMENT

    Minimum Hardware Requirments

    Micoprocessor : Pentium-3 166MHz

    RAM : 32 MB

    Hard Disk : 2.1 GB

    Monitor : SVGA Monitor

    FDD : 1.44 MB

    Software Requirments

    Operating System : Windows 98/NT/XP/VISTA

    Front-End-Tools : Visual Basic 6.0

    Back-End : MS Access 97

    29

  • 7/28/2019 Library Vb1

    30/92

    Structured Analysis

    Structured analysis is a set techniques and graphical tools and that

    allow the analyst to develop a new kind of system specifications that

    are easily understandable to the userAnalyst works primarily with their wits, pencils and paper. Structured

    analysis considers new goals and structured analysis are:-

    Data Flow Digram

    ER Diagram

    Data Dictionary

    Structured English

    Decision Trees

    30

  • 7/28/2019 Library Vb1

    31/92

    Decision Tables

    DFDCONTEXT DIAGRAM

    Formatted report

    Issue request request

    31

    STUDENT MANAGEMENT

    0

    LIBRARY

    MANAGEMENT

    SYSTEM

  • 7/28/2019 Library Vb1

    32/92

    Items

    Context Diagram

    32

    SUPPLIERS

    USERFACULTYINFORMATIO

    N

    SYSTEM

    DATA

    BASE

  • 7/28/2019 Library Vb1

    33/92

    LEVEL ONE

    33

    Information

    of

    Storage

    process

    Datacollection

    process

    Informatio

    n processor

    Information

    entered

    Print report

    DATA BASE

  • 7/28/2019 Library Vb1

    34/92

    DESIGNING

    34

    Informatio

    n requestUser

  • 7/28/2019 Library Vb1

    35/92

    DESIGN

    The design process for software system has two levels.At the first

    Level the focus is on deciding which module is needed for theSystem ,the specifications of these modules , and how the modules

    Should be interconnected.That is what is called the system design or

    Top-level design .It is used in two ways , a verb , it represents the

    Process of design.Used as noun, it represents the result of the design

    process , which is the design of the system,the goal of the design process

    is to produce a model or representation of the

    system , which can be used later to build that system .The produced model

    is called the design of the system , in the second level , the internal design of

    the modules, or how the specifications of the module can be satisfied, isdecided .This design level is often called detailed or logic design.

    A design methodology is a systematic approach to creating a design by

    applying of a set of techniques and guidelines.Most design methodologies

    focus on the system design .Most current design methodologies essentially

    offer a setoff guidelines that can be used as a developer to design a system.

    These techniques are not formalized and not reduce the design activity to a

    Sequence of steps thet can be followed by the designer.The input to the

    design phase is the specifications for the system to be designed.The output

    of the top level design phase is the architectural design or the system designfor the software system to built.

    The design can be object-oriented or function-oriented .The purpose of the

    design phase is to specify the components for transformation function.

    Hence , the basic output of the system design phase.When the function

    oriented design approach is being followed ,is the definition of all the

    35

  • 7/28/2019 Library Vb1

    36/92

    major data structures of the system, all the modules of the system , and how

    the modules interact with each other.

    The design of the system is essentially a blueprint or a plan for the solution

    for the system.Here we consider a system to be a set of components with

    clearly defined behavior that interacts with each services for its

    environment .A component of a system can be considered a system, a

    component is a software module.

    TRADITIONAL DESIGN APPROACH

    The traditional design approach is currently being used by many software

    development houses. Traditional design consist of two different activities :

    first a structured analysis of the requirement specification is carrie out

    where the detailed structure of the program is examined.During structured

    analysis are transformed into software design.

    Structured analysis involves preparing a detailed analysis of the different

    functions to be supported by the system and identification of the dataflow

    among the different function in addition to identifying the various processesin the system, the dataflow among the processes are also identified.Dataflow

    diagrams DFDs are used to perform structured analysis and to document the

    results.

    Structured design consists of two main activities :Architectural design

    and Detailed design

    System Designing

    System design, aims to identify the modules that should be in the system ,the specifications of these modules , and how they interact with each other to

    produce the desired results.

    In the system design the focus is on identifying the modules .In other words ,

    in system design the attention is on what components are needed . After

    identifying the modules ,after that the inter action, after that the interaction

    between those modules is carried out to get the desired output .The out put

    36

  • 7/28/2019 Library Vb1

    37/92

    of this phase is data structure , file format and major modules in the system

    and specifications are decided.

    The system design controls the major structural characteristics of the system.

    The system design has the major impact on the testability and modifiability

    of a system, and it impacts its efficiency.Much of the design efforts for the

    designing software are spent creating a system design.

    DETAILED DESIGNING

    During Detailed design, the internal logic of each of the modules specified in

    system design is decided.During this phase further details of the data

    structures and logarithmic design of each of the modules is specified.

    The basic goal of detailed design is to specify the logic for the different

    modules that have been specified during system design.Specifying the logicwill require developing an algorithm that will implement the given

    specifications. The term algorithm is quite general and applicable to a wide

    variety of areas.

    There are a number of steps that one has to perform while developing an

    algorithm.The starting step is the design of algorithms is the statement of the

    problem.The problem for ahich the algorithm is being derived has to be

    precisely stated and properly understood by the person responsible for

    designing the algorithms in the next step the data structure and the program

    structure is decided to design the algorithm.Once the algoritm is designed ,its correctness should be verified.

    OBJECT-ORIENTED DESIGNING APPROACH

    Object-Oriented design is a relatively new technique.In this techniquevarious objects that occur in the problem domain and the solution domain

    are first identified and different relationships that exists among these objects

    are identified .The object structure is further refined to obtain the detailed

    design.The OOD approach has several benefits such as lower development

    time and effort and better maintainability of the product.

    37

  • 7/28/2019 Library Vb1

    38/92

    DBMSDATABASE MANAGEMENT

    SYSTEM

    38

  • 7/28/2019 Library Vb1

    39/92

    DATABASE MANAGEMENT SYSTEM

    Between the data base itself (i.e. where the data is actually stored ) and the

    user of the system , is a layer of software called DBMS . All requests from

    the users for access to the database from hardware level details. All database

    management systems allow users to create containers (i.e. relation and

    tables) for data storage and management.

    CHARACTERISTICS OF DBMS:

    It represents complex relationships between data.

    Keeps tight control over data redundancy.

    Enforces user defined rules to ensure the integrity of table

    data.

    Has a centralized data dictionary for the storage of information

    pertaining to data and manipulation

    Ensures that data can be shared across applications.

    Enforces data access authorization.

    Has automatic intelligent backup and recovery procedure for data.

    Have different interfaces via which users can manipulate data.

    39

  • 7/28/2019 Library Vb1

    40/92

    Database Management System provides user with a method of

    abstracting their data requirements and removes the problems of

    specifying the details of the storage and maintenance of data .

    Database Management System is a complex software system

    consisting of number of componenets.It provides the user data

    definition language and data manipulation language.

    ADVANTAGES OF DBMS:

    In brief advantages of DBMS are as follows:

    Centralized management and control over the data.

    Reduction of redundancies.

    Data can be shared.

    Data integrity can be maintained.

    Security Restriction can be applied.

    Data Inconsistency can be avoided

    Data Independency can be obtained.

    40

  • 7/28/2019 Library Vb1

    41/92

    DATABASE DESIGN

    Whenever you start making a project,which has some data to be stored at the

    back end .It is necessary to first choose the database you will be using for

    providing the back end.In this project Library Management we used

    MS ACCESS as back end for storing the data .The data is to be stored in the

    form of tables.Below is the description of the various tables that are used in

    the database.

    41

  • 7/28/2019 Library Vb1

    42/92

    42

  • 7/28/2019 Library Vb1

    43/92

    PROJECT TESTING

    43

  • 7/28/2019 Library Vb1

    44/92

    PROJECT TESTING

    A strategy for software testing must accommodate low-level tests that

    are necessary to verify that a small source code segment has been correctly

    implemented as well as high-level tests that validate major system functions

    against customer requirements. A strategy must provide guidance for the

    practitioner and a set of milestones for the manager. Because the steps of the

    test strategy occur at a time when deadline pressure begins to rise, progress

    must be measurable and problems must surface as earl as possible.

    Following testing techniques are well known and the same strategy is

    adopted during this project testing.

    1 Unit testing: Unit testing focuses verification effort on the

    smallest unit of software design- the software component or

    module. The unit test is white-box oriented. The module

    interface is tested to ensure that information properly flows into

    and of the program unit under test the local data structure has

    been examined to ensure that data stored temporarily maintains

    its integrity during all steps in an algorithms execution.

    Boundary conditions are tested to ensure that the module

    operated properly at boundaries established to limit or restrict

    processing. All independent paths through the control structure

    are exercised to ensure that all statements in a module haven

    executed at least once.

    44

  • 7/28/2019 Library Vb1

    45/92

    2 Integration testing: Integration testing is a systematic

    technique for constructing the program structure while at the

    same time conducting tests to uncover errors associated with

    interfacing. The objective of this test is to take unit tested

    components and build a program structure that has been

    dictated by design.

    3 Validation testing: At the culmination of integration testing,

    software is completely assembled as a package, interfacing

    errors have been uncovered and corrected, and a final series of

    software testsvalidation testing-may begins. Validation can

    be defined in many ways, but a simple definition is that

    validation succeeds when software functions in a manner that

    can be reasonably expected by the customer.

    4 System testing: System testing is actually a series of

    different tests whose primary purpose is to fully exercise the

    computer-based system. Below we have described the two

    types of testing which have been taken for this project.

    (a) Security testing: Any computer-based system that

    manages sensitive information causes actions that can

    improperly harm (or benefit) individuals is a target for

    improper or illegal penetration. Penetration spans a broad

    range of activities: hackers who attempt to penetrate

    system for sport; disgruntled employees who attempt to

    penetrate for revenge; dishonest individuals who attempt

    to penetrate for illicit personal gain.

    For security purposes, when anyone who is not

    authorized user cannot penetrate this system. When programs

    45

  • 7/28/2019 Library Vb1

    46/92

    first load it check for correct username and password. If any

    fails to act according will be simply ignored by the system.

    (b)Performance Testing: Performance testing is

    designed to test the run-time performance of software

    within the context of an integrated system. Performance

    testing occurs throughout all steps in the testing process.

    Even at the unit level, the performance of an individual

    module may be assessed as white-box tests are

    conducted.

    Criteria for Completion of Testing

    Every time the customer/user executes a compute program, the program is

    being tested. This sobering fact underlines the importance of other software

    quality assurance activities.

    Validation Checks

    Software testing is one element of broader topic that is often referred to asverification and validation. Verification refers to the set of activities that

    ensure that software correctly implements a specific function. Validation

    refers to a different set of activities that ensure that the software that has

    been built is traceable to customer requirements. Validation checks are

    useful when we specify the nature of data input. In this project while

    entering the data to many text box you will find the use of validation checks.

    When you try to input wrong data, your entry will be automatically

    abandoned.

    46

  • 7/28/2019 Library Vb1

    47/92

    IMPLEMENTATION

    47

  • 7/28/2019 Library Vb1

    48/92

    Implementation

    This phase is primarily concerned with user training,site preparation

    and file conversion.The candidate system is linked to terminals or

    remote sites,the telecommunication network and tests of the network

    and tests of the network along with the system are also included under

    implementation.

    System testing checks the readlines and accuracy of the system to

    accesss update and retieve data from the files .Once the programs

    become available,test data are read and processed against the test

    files.If the successful, the program is then run with live data .

    Otherwise, a diagnostic procedure is used to locate and correct errors

    in the program.

    48

  • 7/28/2019 Library Vb1

    49/92

    MAINTENANCE

    POST IMPLEMENTATION

    AND

    49

  • 7/28/2019 Library Vb1

    50/92

    MAINTENANCE

    After the installation phase is completed and the user stall is adjusted

    to the challenges created by the candidate system ,evaluation and the

    maintenance begin.Like any system,there is any aging process that

    requires periodic maintenance of hardware and software .If the new

    information is inconsistent with the design specifications,in tune with

    design specifications.The importance of maintenance is to continue to

    bring the new system to standards.

    It has been estimated that maintenance of any software product

    usually requires much more efforts than the efforts necessary to

    develop the product.Many study indicates that the relative effort of development of a

    typical system to its maintenanace effort to roughly in the ratio 40:60.

    Maintenance involves performing any one or more of the following

    three kinds of activities:

    1. Correcting errors that wwere not discovered during the probuct-

    developing phase.This is called Corrective Maintenance.

    2. Improving the Implementation of the system and enhancing the

    functionality of the system according to the customers requirements.

    This is calledPerfective Maintenance.

    3. Porting the software to a new environment,e.g. to a new computer or

    to a new operating system.This is calledAdaptive Maintenance.

    50

  • 7/28/2019 Library Vb1

    51/92

    COST

    ESTIMATION

    51

  • 7/28/2019 Library Vb1

    52/92

    ANNEXURE

    FLOW CHART

    SCREEN INTERFACE

    52

  • 7/28/2019 Library Vb1

    53/92

    53

    ENTER

    DETAILS& NO.

    SAVE DATA IN DATABASE

    START

    ALREADY EXIST

    DATA

    BASE

    BOOK

    ID

  • 7/28/2019 Library Vb1

    54/92

    54

    STOP

    START

    CHECKSTUDENT

    ID

    PLEASE ENTER

    STUDENT ID

    ENTER

    STUDENT ID

    DATA

    BASE

    SAVE DATA IN

    DATA BASE

    STOP

  • 7/28/2019 Library Vb1

    55/92

    55

    START

    QUIT

    ENTER THESTUDENT

    ID

    CHECK BUTTON

    CLICK RETURN

    CLICK

    DATABASE

    SHOW ALL THE

    BOOKS STOREDIN DATA BASE

  • 7/28/2019 Library Vb1

    56/92

    CODING

    Private Sub CmdAddBook_Click()

    If (Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or

    Text5.Text = "" Or Text6.Text = "") Then

    MsgBox ("Please fill the book details completely."), vbCritical

    Text1.SetFocusElse

    Data1.RecordSource = "select * from book_mast"

    Data1.Refresh

    Data1.Recordset.AddNew

    Data1.Recordset.Fields(0) = UCase(Trim(Text1.Text))

    Data1.Recordset.Fields(1) = Text2.Text

    Data1.Recordset.Fields(2) = Text3.Text

    Data1.Recordset.Fields(3) = Text4.Text

    Data1.Recordset.Fields(4) = CInt(Text5.Text)

    Data1.Recordset.Fields(5) = CInt(Text6.Text)Data1.Recordset.Update

    Data1.Recordset.Close

    Text1.Text = ""

    Text2.Text = ""

    Text3.Text = ""

    Text4.Text = ""

    Text5.Text = ""

    Text6.Text = ""

    MsgBox ("New book record has been saved sucessfully."), vbInformation

    End IfEnd Sub

    Private Sub CmdBackHome_Click()

    FrmHomePage.Data2.RecordSource = "select * from book_mast"FrmHomePage.Data2.Refresh

    FrmHomePage.Show

    Unload Me

    End Sub

    56

  • 7/28/2019 Library Vb1

    57/92

    Private Sub Form_Activate()

    Text1.SetFocus

    End Sub

    Private Sub Form_Load()Data1.DatabaseName = App.Path & "\" & "Member.mdb"

    End Sub

    Private Sub Text1_LostFocus()

    On Error GoTo errorhandle

    Data1.RecordSource = "select * from book_mast where book_code='" +

    Trim(Text1.Text) + "'"

    Data1.Refresh

    Do While Not Data1.Recordset.EOF

    c = c + 1Data1.Recordset.MoveNext

    Loop

    If c 0 ThenMsgBox ("This book Code all ready exist, please enter another code."), vbCritical,

    "Duplicate"

    Text1.Text = " "

    Text1.SetFocus

    End If

    Exit Sub

    errorhandle:MsgBox "Error occurred!Wrong Book Code", vbInformation, "Error"

    End

    End Sub

    Private Sub Command1_Click()

    If (Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" OrCombo1.Text = "" Or Combo2.Text = "") Then

    MsgBox ("Please fill the book details completely."), vbCritical

    Text1.SetFocus

    Else

    Data1.RecordSource = "select * from Mem_mast"

    Data1.RefreshData1.Recordset.AddNew

    Data1.Recordset.Fields(0) = UCase(Trim(Text1.Text))

    Data1.Recordset.Fields(1) = Text2.Text

    Data1.Recordset.Fields(2) = Text3.Text

    Data1.Recordset.Fields(3) = Combo1.Text

    Data1.Recordset.Fields(4) = Combo2.TextData1.Recordset.Fields(5) = Text4.Text

    57

  • 7/28/2019 Library Vb1

    58/92

    Data1.Recordset.Update

    Data1.Recordset.Close

    Text1.Text = ""

    Text2.Text = ""

    Text3.Text = ""

    Text4.Text = ""End If

    End Sub

    Private Sub Command2_Click()

    FrmHomePage.Data1.RecordSource = "select * from Mem_mast"

    FrmHomePage.Data1.Refresh

    FrmHomePage.Show

    Unload Me

    End Sub

    Private Sub Form_Activate()

    Text1.SetFocus

    End Sub

    Private Sub Form_Load()

    Data1.DatabaseName = App.Path & "\" & "Member.mdb"

    End Sub

    Private Sub Text1_LostFocus()

    On Error GoTo errorhandleData1.RecordSource = "select * from mem_mast where Member_ID='" +

    Trim(Text1.Text) + "'"

    Data1.Refresh

    Do While Not Data1.Recordset.EOF

    c = c + 1Data1.Recordset.MoveNext

    Loop

    If c 0 Then

    MsgBox "This member code all ready exist, please enter new code.", vbCritical,

    "Duplicate"

    Text1.Text = " "Text1.SetFocus

    End If

    Exit Sub

    errorhandle:

    MsgBox "Error occurred!Wrong Member Code", vbInformation, "Error"

    EndEnd Sub

    58

  • 7/28/2019 Library Vb1

    59/92

    Dim cs As Integer

    Dim s As Integer

    Private Sub CmdCencel_Click()

    Unload MeFrmHomePage.Enabled = True

    End Sub

    Private Sub Cmdok_Click()

    FrmHomePage.Enabled = False

    m = Trim(Text1.Text)

    b = Trim(Text2.Text)

    If (Text1.Text = "" Or Text2.Text = "") Then

    MsgBox ("Please enter the member code or book code"), vbInformation, "Enter

    Code"Text1.SetFocus

    Else

    FrmHomePage.Data3.RecordSource = "select * from issue_mast whereMember_ID='" + m + "' and Book_Code='" + b + "'"

    FrmHomePage.Data3.Refresh

    Do While Not FrmHomePage.Data3.Recordset.EOF

    c = c + 1

    FrmHomePage.Data3.Recordset.MoveNext

    Loop

    If (c = 0) ThenFrmHomePage.Data3.RecordSource = "select * from issue_mast"

    FrmHomePage.Data3.Refresh

    MsgBox ("Wrong Member code or book code, Please enter correct code."),

    vbCritical, "Wrong code"

    Text1.Text = ""Text2.Text = ""

    Text1.SetFocus

    FrmHomePage.Data3.Recordset.Close

    Else

    FrmHomePage.Data3.RecordSource = "select * from issue_mast where

    Member_ID='" + m + "' and Book_Code='" + b + "'"FrmHomePage.Data3.Refresh

    FrmHomePage.Data3.Recordset.Delete

    FrmHomePage.Data3.Recordset.Close

    FrmHomePage.Data3.RecordSource = "select * from issue_mast"

    FrmHomePage.Data3.Refresh

    FrmHomePage.Data2.RecordSource = "select * from book_mast wherebook_code='" + b + "'"

    59

  • 7/28/2019 Library Vb1

    60/92

    FrmHomePage.Data2.Refresh

    FrmHomePage.Data2.Recordset.Edit

    s = FrmHomePage.Data2.Recordset.Fields(4)

    cs = s + 1

    FrmHomePage.Data2.Recordset.Fields(4) = cs

    FrmHomePage.Data2.Recordset.UpdateFrmHomePage.Data2.Recordset.Close

    Unload Me

    FrmHomePage.Enabled = True

    End If

    End If

    End Sub

    Private Sub Form_Unload(Cancel As Integer)

    MDIForm1.Enabled = True

    End Sub

    Private Sub Text2_KeyPress(KeyAscii As Integer)

    If (KeyAscii = 13) ThenCmdok_Click

    End If

    End SubPrivate Sub CmdFirst_Click()

    Data1.Recordset.MoveFirst

    CmdFirst.Enabled = False

    CmdPrevious.Enabled = False

    CmdLast.Enabled = TrueCmdNext.Enabled = True

    End Sub

    Private Sub CmdNext_Click()

    Data1.Recordset.MoveNexts = Data1.Recordset.RecordCount

    CmdFirst.Enabled = True

    CmdPrevious.Enabled = True

    If Data1.Recordset.AbsolutePosition = s - 1 Then

    CmdNext.Enabled = False

    CmdLast.Enabled = FalseEnd If

    End Sub

    Private Sub CmdLast_Click()

    Data1.Recordset.MoveLast

    CmdFirst.Enabled = TrueCmdPrevious.Enabled = True

    60

  • 7/28/2019 Library Vb1

    61/92

    CmdNext.Enabled = False

    CmdLast.Enabled = False

    End Sub

    Private Sub CmdPrevious_Click()If Data1.Recordset.AbsolutePosition = 0 Then

    CmdFirst.Enabled = False

    CmdPrevious.Enabled = False

    Else

    Data1.Recordset.MovePrevious

    CmdNext.Enabled = True

    CmdLast.Enabled = True

    End If

    End Sub

    Private Sub CmdDelete_Click()

    BookCode = Text1.Text

    FrmHomePage.Data3.RecordSource = "select * from issue_mast wherebook_code='" + BookCode + "'"

    FrmHomePage.Data3.Refresh

    Do While Not FrmHomePage.Data3.Recordset.EOF

    c = c + 1

    FrmHomePage.Data3.Recordset.MoveNext

    Loop

    If c 0 ThenMsgBox "Don't Delete, we have issued this book", vbInformation, "Library"

    FrmHomePage.Data3.Recordset.Close

    CmdBackHome.SetFocus

    Else

    If MsgBox("Are you sure want to remove all information of this book.",vbYesNo + vbQuestion, "Delete Book") = vbYes Then

    Data1.Recordset.Delete

    MsgBox ("All information of this book has been removed."), vbInformation

    FrmHomePage.Data2.Refresh

    Data1.Recordset.MoveFirst

    ElseCmdBackHome.SetFocus

    End If

    End If

    End Sub

    Private Sub CmdBackHome_Click()FrmHomePage.Show

    61

  • 7/28/2019 Library Vb1

    62/92

    Unload Me

    FrmHomePage.Data2.RecordSource = "select * from book_mast"

    FrmHomePage.Data2.Refresh

    End Sub

    Private Sub Form_Activate()CmdDelete.SetFocus

    End Sub

    Private Sub Form_Load()

    Data1.DatabaseName = App.Path & "\" & "Member.mdb"

    End Sub

    Private Sub CmdFirst_Click()

    Data1.Recordset.MoveFirst

    CmdFirst.Enabled = False

    CmdPrevious.Enabled = FalseCmdLast.Enabled = True

    CmdNext.Enabled = True

    End Sub

    Private Sub CmdNext_Click()

    Data1.Recordset.MoveNext

    s = Data1.Recordset.RecordCount

    CmdFirst.Enabled = True

    CmdPrevious.Enabled = True

    If Data1.Recordset.AbsolutePosition = s - 1 ThenCmdNext.Enabled = False

    CmdLast.Enabled = False

    End If

    End Sub

    Private Sub CmdLast_Click()

    Data1.Recordset.MoveLast

    CmdFirst.Enabled = True

    CmdPrevious.Enabled = True

    CmdNext.Enabled = False

    CmdLast.Enabled = FalseEnd Sub

    Private Sub CmdPrevious_Click()

    s = Data1.Recordset.RecordCount

    If Data1.Recordset.AbsolutePosition = 0 Then

    CmdFirst.Enabled = FalseCmdPrevious.Enabled = False

    62

  • 7/28/2019 Library Vb1

    63/92

    Else

    Data1.Recordset.MovePrevious

    CmdNext.Enabled = True

    CmdLast.Enabled = True

    End If

    End Sub

    Private Sub CmdDelete_Click()

    MemberCode = Text1.Text

    FrmHomePage.Data3.RecordSource = "select * from issue_mast where

    Member_ID='" + MemberCode + "'"

    FrmHomePage.Data3.Refresh

    Do While Not FrmHomePage.Data3.Recordset.EOF

    c = c + 1

    FrmHomePage.Data3.Recordset.MoveNext

    LoopIf c 0 Then

    MsgBox "The member has not returned the book", vbInformation

    FrmHomePage.Data3.Recordset.CloseCmdBackHome.SetFocus

    Else

    If MsgBox("Are you sure want to remove all information of this member.",

    vbYesNo + vbQuestion, "Delete Member") = vbYes Then

    Data1.Recordset.Delete

    MsgBox ("All information of this member has been removed"), vbInformation

    Data1.Recordset.MoveFirstElse

    CmdBackHome.SetFocus

    End If

    End If

    End Sub

    Private Sub CmdBackHome_Click()

    FrmHomePage.Show

    Unload Me

    FrmHomePage.Data1.RecordSource = "select * from mem_mast"

    FrmHomePage.Data1.RefreshEnd Sub

    Private Sub Form_Activate()

    CmdDelete.SetFocus

    End Sub

    Private Sub Form_Load()

    63

  • 7/28/2019 Library Vb1

    64/92

    Data1.DatabaseName = App.Path & "\" & "Member.mdb"

    End Sub

    Private Sub CmdNewMember_Click()

    FrmHomePage.Hide

    FrmAddMember.Show

    FrmAddMember.Text1.Text = ""FrmAddMember.Text2.Text = ""

    FrmAddMember.Text3.Text = ""

    End Sub

    Private Sub CmdAddBook_Click()

    FrmHomePage.Hide

    FrmAddBook.Show

    FrmAddBook.Text1.Text = ""

    FrmAddBook.Text2.Text = ""

    FrmAddBook.Text3.Text = ""FrmAddBook.Text4.Text = ""

    FrmAddBook.Text5.Text = ""

    FrmAddBook.Text6.Text = ""End Sub

    Private Sub CmdBookIssue_Click()

    FrmHomePage.Hide

    FrmIssue.Show

    FrmIssue.Data1.RecordSource = "select * from Issue_mast"

    FrmIssue.Data1.RefreshFrmIssue.Text1.Text = ""

    FrmIssue.Text2.Text = ""

    FrmIssue.Text3.Text = ""

    FrmIssue.Text5.Text = ""

    FrmIssue.Text6.Text = ""

    FrmIssue.Text8.Text = ""

    FrmIssue.Text1.SetFocus

    End Sub

    Private Sub CmdDeleteMember_Click()FrmHomePage.Hide

    FrmDeleteMem.Show

    End Sub

    Private Sub CmdBookReturn_Click()

    FrmBookReturn.ShowMDIForm1.Enabled = False

    64

  • 7/28/2019 Library Vb1

    65/92

    End Sub

    Private Sub CmdDeleteBook_Click()

    FrmHomePage.Hide

    frmDeleteBook.Show

    End Sub

    Private Sub CmdExitProgram_Click()

    End

    End Sub

    Private Sub Form_Load()

    Data1.DatabaseName = App.Path & "\" & "Member.mdb"

    Data2.DatabaseName = App.Path & "\" & "Member.mdb"

    Data3.DatabaseName = App.Path & "\" & "Member.mdb"

    If (CurrentAccType = "Administrator") ThenAdministratorAcc

    Else

    LimitedAccEnd If

    End Sub

    Private Sub SSTab1_Click(PreviousTab As Integer)

    If SSTab1.Tab = 0 Then

    Data1.RecordSource = "select * from Mem_mast"

    Data1.RefreshCmdNewMember.Visible = True

    CmdAddBook.Visible = False

    CmdBookIssue.Visible = False

    CmdDeleteMember.Visible = True

    CmdBookReturn.Visible = FalseCmdDeleteBook.Visible = False

    ElseIf SSTab1.Tab = 1 Then

    Data2.RecordSource = "select * from Book_mast"

    Data2.Refresh

    CmdNewMember.Visible = False

    CmdAddBook.Visible = TrueCmdBookIssue.Visible = False

    CmdDeleteMember.Visible = False

    CmdBookReturn.Visible = False

    CmdDeleteBook.Visible = True

    ElseIf SSTab1.Tab = 2 Then

    Data3.RecordSource = "select * from Issue_mast"Data3.Refresh

    65

  • 7/28/2019 Library Vb1

    66/92

    CmdNewMember.Visible = False

    CmdAddBook.Visible = False

    CmdBookIssue.Visible = True

    CmdDeleteMember.Visible = False

    CmdBookReturn.Visible = True

    CmdDeleteBook.Visible = FalseEnd If

    End Sub

    Private Sub Timer1_Timer()

    Text1.Text = Time()

    Text2.Text = Date

    End Sub

    Public Sub LimitedAcc()

    MDIForm1.MemberDetails = FalseMDIForm1.BookDetails = False

    MDIForm1.IssueReturn = False

    MDIForm1.UserAccount = FalseCmdNewMember.Enabled = False

    CmdAddBook.Enabled = False

    CmdBookIssue.Enabled = False

    CmdDeleteMember.Enabled = False

    CmdBookReturn.Enabled = False

    CmdDeleteBook.Enabled = False

    DBGrid1.AllowUpdate = FalseDBGrid2.AllowUpdate = False

    End Sub

    Public Sub AdministratorAcc()

    If SSTab1.Tab = 0 ThenData1.RecordSource = "select * from mem_mast"

    Data1.Refresh

    CmdNewMember.Visible = True

    CmdAddBook.Visible = False

    CmdBookIssue.Visible = False

    CmdDeleteMember.Visible = TrueCmdBookReturn.Visible = False

    CmdDeleteBook.Visible = False

    End If

    If SSTab1.Tab = 1 Then

    Data2.RecordSource = "select * from Book_mast"

    Data2.RefreshCmdNewMember.Visible = False

    66

  • 7/28/2019 Library Vb1

    67/92

    CmdAddBook.Visible = True

    CmdBookIssue.Visible = False

    CmdDeleteMember.Visible = False

    CmdBookReturn.Visible = False

    CmdDeleteBook.Visible = True

    End IfIf SSTab1.Tab = 2 Then

    Data3.RecordSource = "select * from Issue_mast"

    Data3.Refresh

    CmdNewMember.Visible = False

    CmdAddBook.Visible = False

    CmdBookIssue.Visible = True

    CmdDeleteMember.Visible = False

    CmdBookReturn.Visible = True

    CmdDeleteBook.Visible = False

    End IfEnd SubPrivate Sub CmdBackHome_Click()

    FrmHomePage.Data3.RecordSource = "select * from issue_mast"

    FrmHomePage.Data3.RefreshFrmHomePage.Show

    Unload Me

    End Sub

    Private Sub CmdIssueBook_Click()

    If (Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or

    Text5.Text = "" Or Text6.Text = "") ThenMsgBox ("Please fill form completly."), vbCritical

    Text1.SetFocus

    Else

    Data1.RecordSource = "select * from issue_mast"

    Data1.RefreshData1.Recordset.AddNew

    Data1.Recordset.Fields(0) = UCase(Text1.Text)

    Data1.Recordset.Fields(1) = Text2.Text

    Data1.Recordset.Fields(2) = Text3.Text

    Data1.Recordset.Fields(3) = Text4.Text

    Data1.Recordset.Fields(4) = CDate(Text5.Text)Data1.Recordset.Fields(5) = CDate(Text6.Text)

    Data1.Recordset.Fields(6) = CInt("1")

    Data1.Recordset.Update

    Data1.Recordset.Close

    FrmHomePage.Data2.RecordSource = "select * from book_mast where

    Book_Code='" + Text3.Text + "'"FrmHomePage.Data2.Refresh

    67

  • 7/28/2019 Library Vb1

    68/92

    FrmHomePage.Data2.Recordset.Edit

    Text8.Text = CInt(Text8.Text) - 1

    FrmHomePage.Data2.Recordset.Fields(4) = Val(Text8.Text)

    FrmHomePage.Data2.Recordset.Update

    FrmHomePage.Data2.Recordset.Close

    Text1.Text = ""Text2.Text = ""

    Text3.Text = ""

    Text4.Text = ""

    Text5.Text = ""

    Text6.Text = ""

    End If

    End Sub

    Private Sub Form_Activate()

    Text1.SetFocusEnd Sub

    Private Sub Form_Load()Data1.DatabaseName = App.Path & "\" & "Member.mdb"

    End Sub

    Private Sub List1_Click()

    Text4.Text = List1.Text

    FrmHomePage.Data2.RecordSource = "select * from book_mast where

    book_name='" + List1.Text + "'"FrmHomePage.Data2.Refresh

    Do While Not FrmHomePage.Data2.Recordset.EOF

    Text3.Text = FrmHomePage.Data2.Recordset.Fields(0)

    Text8.Text = FrmHomePage.Data2.Recordset.Fields(4)

    FrmHomePage.Data2.Recordset.MoveNextLoop

    FrmHomePage.Data2.Recordset.Close

    If Val(Text8.Text) >= 1 Then

    CmdIssuebook.SetFocus

    Else

    MsgBox ("Please check your stock. All books are issued."), vbInformation,"Check Stock"

    Text3.Text = ""

    Text4.Text = ""

    Text8.Text = ""

    End If

    End Sub

    68

  • 7/28/2019 Library Vb1

    69/92

    Private Sub Text2_GotFocus()

    If Text1.Text = "" Then

    MsgBox ("Please enter member code first."), vbCritical, "Member Code"

    Text1.SetFocus

    Else

    FrmHomePage.Data1.RecordSource = "select * from Mem_mast whereMember_ID='" + Trim(Text1.Text) + "'"

    FrmHomePage.Data1.Refresh

    Do While Not FrmHomePage.Data1.Recordset.EOF

    m = m + 1

    FrmHomePage.Data1.Recordset.MoveNext

    Loop

    FrmHomePage.Data1.Refresh

    If m = 0 Then

    MsgBox ("Wrong member code, Please retype member code."), vbCritical,"Worng Code"

    Text1.Text = ""

    Text1.SetFocusElse

    Data1.RecordSource = "select * from issue_mast where Member_ID='" +

    Trim(Text1.Text) + "'"

    Data1.Refresh

    Do While Not Data1.Recordset.EOF

    c = c + 1

    Data1.Recordset.MoveNextLoop

    If c 0 Then

    MsgBox "Please return the book first", vbInformation, "Return Book"

    Text1.Text = " "

    Text1.SetFocusElse

    FrmHomePage.Data1.RecordSource = "select * from Mem_mast where

    Member_ID='" + Trim(Text1.Text) + "'"

    FrmHomePage.Data1.Refresh

    Text2.Text = FrmHomePage.Data1.Recordset.Fields(1)

    FrmHomePage.Data1.Recordset.CloseList1.Clear

    FrmHomePage.Data2.RecordSource = "select * from book_mast"

    FrmHomePage.Data2.Refresh

    Do While Not FrmHomePage.Data2.Recordset.EOF

    FrmIssue.List1.AddItem (FrmHomePage.Data2.Recordset.Fields(1))

    FrmHomePage.Data2.Recordset.MoveNextLoop

    69

  • 7/28/2019 Library Vb1

    70/92

    FrmHomePage.Data2.Recordset.Close

    End If

    End If

    End If

    End Sub

    Private Sub Text5_GotFocus()

    Text5.Text = Date

    End Sub

    Private Sub Text6_GotFocus()

    Text6.Text = Date + 10

    End SubPrivate Sub cmdSubmit_Click()

    Data1.Refresh

    Do While Not Data1.Recordset.EOF

    If UCase(txtId.Text) = UCase(Data1.Recordset.Fields(0)) AndUCase(txtPass.Text) = UCase(Data1.Recordset.Fields(1)) Then

    CurrentUser = UCase(txtId.Text)

    CurrentPassword = UCase(txtPass.Text)CurrentAccType = Data1.Recordset.Fields(2)

    FrmHomePage.Show

    Unload Me

    c = 0

    Exit Do

    End If

    c = c + 1Data1.Recordset.MoveNext

    Loop

    If c 0 Then

    MsgBox ("Invalid Userid and Password,please try again. "), vbCritical, "Invalid"

    txtId.Text = ""txtPass.Text = ""

    txtId.SetFocus

    End If

    End Sub

    Private Sub Form_Load()

    Data1.DatabaseName = App.Path & "\" & "Member.mdb"End Sub

    Private Sub Label10_Click()

    frmAbout.Show

    End Sub

    Private Sub Label3_Click()

    70

  • 7/28/2019 Library Vb1

    71/92

    Frame1.Visible = False

    Frame2.Visible = True

    End Sub

    Private Sub txtPass_KeyPress(KeyAscii As Integer)

    If (KeyAscii = 13) ThencmdSubmit_Click

    End If

    End Sub

    Private Sub txtPass_LostFocus()

    cmdSubmit.SetFocus

    End SubPrivate Sub CmdChangePass_Click()

    Data1.Refresh

    Do While Not Data1.Recordset.EOF

    If (UCase(CurrentUser) = Data1.Recordset.Fields(0)) Thenc = 0

    Exit Do

    Elsec = c + 1

    Data1.Recordset.MoveNext

    End If

    Loop

    If (c = 0 And UCase(Text2.Text) = CurrentPassword) Then

    If (UCase(Text3.Text = Text4.Text)) Then

    Data1.Recordset.EditData1.Recordset.Fields(1) = UCase(Text4.Text)

    Data1.Recordset.Update

    Data1.Recordset.Fields.Refresh

    MsgBox ("Your Password has been changed sucessfully."), vbInformation +

    vbOKOnlyMDIForm1.Enabled = True

    Unload Me

    Else

    MsgBox ("Your new password and confirm password do not match."),

    vbCritical

    Text2.Text = ""Text3.Text = ""

    Text4.Text = ""

    Text2.SetFocus

    End If

    Else

    MsgBox ("Your old password is invalid, please retype old password."),vbCritical

    71

  • 7/28/2019 Library Vb1

    72/92

    Text2.Text = ""

    Text3.Text = ""

    Text4.Text = ""

    Text2.SetFocus

    End If

    End Sub

    Private Sub CmdExit_Click()

    MDIForm1.Enabled = True

    Unload Me

    End Sub

    Private Sub Form_Activate()

    Text2.SetFocus

    End Sub

    Private Sub Form_Load()

    Data1.DatabaseName = App.Path & "\" & "Member.mdb"

    Data1.RecordSource = "Security"Text1.Text = CurrentUser

    End Sub

    Private Sub Form_Unload(Cancel As Integer)

    MDIForm1.Enabled = True

    End Sub

    Private Sub Text4_KeyPress(KeyAscii As Integer)

    If (KeyAscii = 13) Then

    CmdChangePass_Click

    End If

    End SubOption Explicit

    Private Sub Form_Load()

    Me.Caption = "Loding Application Please Wait Few Second"

    End Sub

    Private Sub Timer1_Timer()FrmLoginForm.Show

    Unload Me

    End Sub

    Private Sub Timer2_Timer()

    Me.Caption = Me.Caption & "..."End SubDim Atype As String

    72

  • 7/28/2019 Library Vb1

    73/92

    Private Sub cmdAddnew_Click()

    Frame1.Enabled = True

    cmdSave.Enabled = True

    cmdRemoveAccount.Enabled = False

    Option1.SetFocusEnd Sub

    Private Sub CmdCencel_Click()

    MDIForm1.Enabled = True

    Unload Me

    End Sub

    Private Sub CmdDelete_Click()

    If MsgBox("Are you sure want to delete this account.", vbYesNo + vbQuestion,

    "Delete Account") = vbYes ThenData1.Recordset.Delete

    Data1.Recordset.MoveFirst

    Text1.Text = Data1.Recordset.Fields(0)Text2.Text = Data1.Recordset.Fields(1)

    Data1.Refresh

    Else

    CmdCencel.SetFocus

    End If

    End Sub

    Private Sub CmdNext_Click()

    Data1.Recordset.MoveNext

    If Data1.Recordset.EOF = True Then

    MsgBox ("This is Last User Account"), vbInformation + vbOKOnly

    Data1.Recordset.MoveLastEnd If

    If Not Data1.Recordset.EOF = True Then

    Text1.Text = Data1.Recordset.Fields(0)

    Text2.Text = Data1.Recordset.Fields(1)

    Text4.Text = Data1.Recordset.Fields(2)

    End IfEnd Sub

    Private Sub CmdPrevious_Click()

    Data1.Recordset.MovePrevious

    If Data1.Recordset.BOF = True Then

    MsgBox ("This is First User Account"), vbInformation + vbOKOnlyData1.Recordset.MoveFirst

    73

  • 7/28/2019 Library Vb1

    74/92

    End If

    If Not Data1.Recordset.BOF = True Then

    Text1.Text = Data1.Recordset.Fields(0)

    Text2.Text = Data1.Recordset.Fields(1)

    Text4.Text = Data1.Recordset.Fields(2)

    End IfEnd Sub

    Private Sub cmdRemoveAccount_Click()

    Text4.Visible = True

    Frame4.Enabled = True

    Text1.Text = Data1.Recordset.Fields(0)

    Text2.Text = Data1.Recordset.Fields(1)

    Text4.Text = Data1.Recordset.Fields(2)

    Text3.Visible = False

    Label3.Caption = "Account Type"cmdAddnew.Enabled = False

    cmdRemoveAccount.Enabled = False

    End Sub

    Private Sub cmdSave_Click()

    If (Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "") Then

    MsgBox ("Please fill all entery."), vbOKOnly + vbInformation

    Text1.Text = ""

    Text2.Text = ""

    Text3.Text = ""Text1.SetFocus

    Else

    If (Text2.Text Text3.Text) Then

    MsgBox ("Password and confirm password do not match."), vbOKOnly +

    vbInformationText2.Text = ""

    Text3.Text = ""

    Text1.SetFocus

    Else

    Data1.Recordset.AddNew

    Data1.Recordset.Fields(0) = UCase(Text1.Text)Data1.Recordset.Fields(1) = UCase(Text2.Text)

    Data1.Recordset.Fields(2) = Atype

    Data1.Recordset.Update

    Data1.Refresh

    MsgBox ("New user account is created sucessfully."), vbOKOnly +

    vbInformationData1.Refresh

    74

  • 7/28/2019 Library Vb1

    75/92

    Text1.Text = ""

    Text2.Text = ""

    Text3.Text = ""

    Frame1.Enabled = False

    Frame2.Enabled = False

    cmdSave.Enabled = FalseEnd If

    End If

    End Sub

    Private Sub Form_Activate()

    Text4.Visible = False

    cmdAddnew.SetFocus

    End Sub

    Private Sub Form_Load()Data1.DatabaseName = App.Path & "\" & "Member.mdb"

    Data1.RecordSource = "Security"

    Frame1.Enabled = FalseFrame2.Enabled = False

    Frame4.Enabled = False

    cmdSave.Enabled = False

    End Sub

    Private Sub Form_Unload(Cancel As Integer)

    MDIForm1.Enabled = TrueEnd Sub

    Private Sub Option1_Click()

    Atype = "Limited"

    Frame2.Enabled = TrueEnd Sub

    Private Sub Option2_Click()

    Atype = "Administrator"

    Frame2.Enabled = True

    End Sub

    Private Sub Text1_LostFocus()

    Data1.RecordSource = "select * from Security where UserName='" +

    UCase(Trim(Text1.Text)) + "'"

    Data1.RefreshDo While Not Data1.Recordset.EOF

    75

  • 7/28/2019 Library Vb1

    76/92

    c = c + 1

    Data1.Recordset.MoveNext

    Loop

    If c 0 Then

    MsgBox "This user name is all ready exist, please enter another name",

    vbExclamation + vbOKOnlyText1.Text = " "

    Text1.SetFocus

    Else

    Text2.SetFocus

    End If

    End Sub

    Private Sub AboutLMS_Click()

    frmAbout.Show

    End Sub

    Private Sub AddMember_Click()

    FrmAddMember.Show

    End Sub

    Private Sub ChangePassword_Click()

    FrmPassChange.Show

    MDIForm1.Enabled = False

    End Sub

    Private Sub DeleteBook_Click()frmDeleteBook.Show

    End Sub

    Private Sub DeleteMember_Click()

    FrmDeleteMem.ShowEnd Sub

    Private Sub IssueBook_Click()

    FrmIssue.Show

    End Sub

    Private Sub NewBook_Click()

    FrmAddBook.Show

    End Sub

    Private Sub ReturnBook_Click()

    FrmBookReturn.ShowMDIForm1.Enabled = False

    76

  • 7/28/2019 Library Vb1

    77/92

    End Sub

    Private Sub UserAccount_Click()

    FrmUserAccount.Show

    MDIForm1.Enabled = False

    End Sub

    SNAP SHOTS

    77

  • 7/28/2019 Library Vb1

    78/92

    78

  • 7/28/2019 Library Vb1

    79/92

    79

  • 7/28/2019 Library Vb1

    80/92

    80

  • 7/28/2019 Library Vb1

    81/92

    81

  • 7/28/2019 Library Vb1

    82/92

    82

  • 7/28/2019 Library Vb1

    83/92

    83

  • 7/28/2019 Library Vb1

    84/92

    84

  • 7/28/2019 Library Vb1

    85/92

    85

  • 7/28/2019 Library Vb1

    86/92

    86

  • 7/28/2019 Library Vb1

    87/92

    87

  • 7/28/2019 Library Vb1

    88/92

    88

  • 7/28/2019 Library Vb1

    89/92

    89

  • 7/28/2019 Library Vb1

    90/92

    CONCLUSION

    PRODUCT PERSPECTIVE

    90

  • 7/28/2019 Library Vb1

    91/92

    The has been developed for GEIT library for well equipped

    library.The system has been developed keeping in mind that the users might

    not have any specialization in computers and thus one of the major aim was

    to build a user friendly, easy to use system.

    An attractive and easy to use graphical user interface makes tasks

    easier for the users.The system will be used for viewing,manipulating and

    extraction information.This system has been developed to manage and keep

    records.

    POST AUDIT IMPLEMENTATION

    The system Library Management Systemwill be implementedas the organization is in a desperate need of system.The system is aimed to

    provide its full fledged capabilities to the department and speed up the

    job.The system is supposed to provide all the support needed to manage the

    information related .

    INSTALLATION DETAILS

    The system can be installed as any other software is done by justrunning the setup.

    This can be done through the package and deployment tool

    provided by Visual Basic.The user can just click the setup icon and the

    system will be loaded and once it is loaded , it is ready to use.

    LIMITATIONS

    The system has following limitations :91

  • 7/28/2019 Library Vb1

    92/92

    This software is limited to the library automation.

    The coding of the software is complex and prone to errors.

    This software works out only in the systems in which the front-end

    and back-end used in the software are installed.

    If while editing or deleting the records the user confirms the

    operation and then wants to retrieve the original information then

    cannot be done.

    Since the information stored has a very high value for the organization

    hence in order to prevent accidental data loss the facility to deletemore than one record at a time ,has not been provided.Thus whenever

    he/she wants to delete the records then they have to be deleted one by

    one.

    SUGGESTIONS AND RECOMMENDATIONS

    The system has been built purely as per the requirements of the

    organization.The system can be upgraded and made more powerful by

    adding extra features and refining the exixting ones.

    Thus user is suggested to be careful while changes to the existing