LIBRARY SYSTEM
OF A LEVEL
(SUBMITTED BY)
(DIRECTOR)
INDEX
Page 1
6. DESIGN
a) FORM b) DATA BASE TABLE c) PROGRAM CODE
CERTIFICATE
Page 2
This is to certify that RAVINDER SINGH TOMAR (Doeacc reg. no.656696) has satisfactorily completed the project work entitled:
Mrs. Kalpana
Page 3
Acknowledgments
It is easy to highlight those persons who are actively involve in development of any project but it is hard to bring to highlight those persons who have given their best in the making of project indirectly, thats why they have acquired a special corner in our hearts and it is a Herculean task to foot the bill of their precious support and encouragement and they will win laurels for their generous help because we were unable to come with flying color without their support. Very first, I would like to thank Mrs. Kalpna Garg trend me for this level of project. She taught how the system should be designed? She gave me some personal skills to understand any system, and to make the project adoptable. She taught me the standards, which provide a professional look-n-feel to any package. Her Skill of analyzing any problem is quite different but effective enough. She gave pretty best approaches for making this attractive project. Mrs. Kalpna Garg, who opt me for her trust and direction which made a royal for me to prove me. e encouraged me to make this level of project so that I can make my identity. She was the only one who envisaged for such a system that can make feel better relief in examination to benefit both by the faculties and students. All this attributed him for a key personality.
Contribution of Miss. Parul Bansal and Miss. Divya Agrawal is really remarkable who have given their all kind of help to make this project at its best output. What ever result are being gain from this project were helpless without their
Page 4
guideline and support. The success of this project cant be imagine in the absence of their precious suggestions.
And, finally heartfelt indebtedness to Mr. Ashutosh Garg and all the CEDTI faculties, who made me to develop and deeper in this project up to an extent.
Page 5
INTRODUCTION OF PROJECT
Page 6
INTRODUCTION
Now a day every field wants a computerized system for the better performances of their work. The computerized system, all the information will be carried out in the same way as the manual system but so many aspects. The manual system is time consuming because of less work efficiency in comparison to machine and also it need much paper work that is a big problem and there may be possibilities of errors. The computer system proposed is beneficial more powerful, hang accuracy and speed and it remove the problem related with manual system. The main of LIBRARY INFORMATION SYSTEM is as follows: 1. Information of members.
2. Information of books. 3. Information of issuing detail.
Page 7
Page 8
PROJECT REQUIREMENT
Category : -
Tools/ Platform :Language Software: Front End Back End ::RDBMS and Visual Basic Microsoft Visual Basic 6.0 Microsoft Access
Hardware
:-
32MB or above RAM, 2GB or above Hard Disk, VGA/SVGA Monitor. Operating System : Windows XP Service Pack 2
Page 9
RATIONALS
Page 10
RATIONALS
CURRENT SYSTEM:Now a days, in IT era after computerizing the system, the accuracy, efficiency and record increase tremendously and access of data information will become easier and quicker. By computerizing the manual system, we have thought of reducing and solving the problem of manual system which are as following:
1. Managing through manual process is time taking, a lengthy /
4. In this way, we can save the time & man power. PRESENT SYSTEM:In present system we are trying to reduce drawback of current system. The drawback of time consolation could rectify in our present system, which will make our system more time efficient. Secondary being computerizing our system will have much speed accuracy as compared to system. Our all data and information will be stored on secondary storage device, which are not perishable as compared to paper stationary resulting less out expenditure on stationary items. In our present the process are carried out automatically. It avoid or reduce human action ant thus save labors.
Page 11
CANDIDATE SYSTEM:With the help of GUI we will reduce the handling problems of current system and made it easy in use, using database system we will make a project, which will be feasible in all respect. It increase efficiency and speed in operation in our project it make a easy separation & accounting the dues and gives the reports of all object like members, books etc.
Page 12
OBJECTI VE
Page 13
OBJECTIVE
1. To convert existing manual system in to computerized. 2. To add the facilities of automatic fine calculation. 3. To make possible reports on various object based. 4. To develop such system through which access of information become easy for voting.
Page 14
ANALYSIS
Page 15
REQUIREMENT ANALYSIS
AN OVERVIEW TO SYSTEM ANALYSIS The system analysis phase is considered to be one of the most important phases in the system development life cycle. It is immensely important that the software developer make through study of the existing system, through study of the system is made and need i.e. features that are critical to system success and users wants are brought out. The study will enable the developer to know the intricacies of the existing system. Requirement analysis is done in order to understand the problem which the S/W system is to solve e.g., the problem could be automating the existing manual system or developing a completely new automated system or a combination of the two. For large systems having a large number of features and the need to perform many different task. The emphasis in requirement analysis is on identifying what is needed from the system, and not how the system achieves its goal. The system analysis can be divided into three major steps They are as follows: 1.Identification of Needs (Customers requirement) 2.Preliminary investigation 3.Feasibility Study (i) Technical Feasibility (ii)Economical Feasibility (iii)Operational Feasibility
1. PROBLEM DEFINITION):-
In the present scenario we use the manual voting system at most of the places which has the following problem:1. Show working procedure. 2. More and more papers need more space.
Page 16
3. Files management is typical. 4. Chances of errors in calculation Therefore we want to create such powerful software which not only computerized the present library management system But also should be so handy and easy that can be handled and operated easily without any problem.
2. Preliminary investigation:- As there is a likely to be a stream of user requests, standard procedure must be established to deal with them. The preliminary investigation is one way to handle this. The objective is to determine whether the request is valid and feasible before a recommendation is reached to do nothing, improve or modify the existing system or build a new one. For eliciting information regarding users requirements various approaches can be followed like asking, getting information from the existing system and prototyping. Here existing system is examined in the light of current problems faced by the staff and candidates and found unsatisfactory, and new system has to be put as soon as possible to cope up with current situation. So, all the requests of the user is gathered and put in a file. 3. Feasible study:- Feasibility study is a test of system proposal according to its work ability, impact on the organization, ability to meet
Page 17
user needs, and effective use of resources. This study is carried out to select the best system that meets performance requirements. This entails identification, description, and evaluation of candidate systems and selection of the best system for the job. As discussed above, it is must to install new system which is capable to cope up with current situation. So, it after studying all the feasibility and current demand of the organization the system proposed is found feasible to built. Economic feasibility:- Feasibility analysis is the most frequently used method for evaluating the effectiveness of a candidate system. More commonly known as cost / benefit analysis, the procedure is to determine the benefits and savings that are expected of a candidate system and compare them with costs. If benefits outweigh costs, then the decision is made to design and implement the system. Otherwise further justification or alterations in the proposed system will have to be made if it is to have a chance of being approved. Technical Feasibility:- Technical feasibility centers around the existing computer system (hardware, software etc) and to what extent it can support the proposed addition. For eg. if the current computer is operating at 80% capacity an arbitrary ceiling then running another application could overload the system or require additional hardware. This involves financial considerations to accommodate technical
Page 18
enhancements. If the budget is a serious constraint, the candidate system is considered not feasible. Operational Feasibility:- It is common knowledge that computer installations have something to do with turnover, transfers, retraining and changes in employee job status. People are inherently resistant to change, and computers have been known to facilitate change. An estimate should be made of how strong a reaction the user staff is likely to have toward the development of a computerized system.
Page 19
Observing The Current System:- The current system is manual and is worth observing the current system. It helped a lot in designing the Computerized System.
Studying similar Project on Business Managing:-The developer went to study development of various database management system. The other software were studied.
Page 20
( ii ) AN OVERVIEW OF SYSTEM DESIGN System design involves first the logical design and then the physical design construction of the system. When a system analyst formulates the logical design, s/he writes the detailed specification for the new system;
Page 21
he describes its features, the outputs, the inputs, files and databases and procedure. The statements of these features are termed as the design specification. Physical construction, the activities following the logical design, produces program software design specification instructs programmer about what the system do. The programmers that accept data from the users, process data, produce the reports and store data. One the basis of the system analysis, the system is designed to follow the top down approach, function requirements, modular design, modular design, data dictionary and input/output format are carefully analyzed and designed so that it is easy to understand the whole system by going through the design of the system. Modular approach is taken into consideration such that is minimum coupling and maximum cohesion. If we want to change the module there may be hardly any effect on the other module/modules are broken up to atomic level so that the program level becomes simple.
The system design involves the following three phases:1. Design of input 2. Design of output 3. Design of database ( iii ) DESIGN OF INPUT Input design if the process of converting user originated inputs to a computer based format. The goal of designing the input data is to make the data entry as easy, logical and free from errors as possible. Inaccurate input data are the most common cause of errors in data processing. Errors entered by the data entry operator can be controlled by input design. In entering data the operators need to know the following: The allocated space for each quantity/item. Field sequence, which must match that in the source document. The format in which the data field are entered for e.g. the data may be of different formats but the user might be required to enter it only in one format. So, it is essential for him to know the exact format in which he should enter data so that later on wrong results re not obtained after processing the data.
Page 22
The LIBRARY MANAGEMENT SYSTEM has input screen designed during VB 6.0. The forms and the reports are extremely user friendly and the major features of the screen are listed below: Appropriate hints are provided on the field level in each form, which facilitates the data entry operator when he/she is using the form for data entry. Lists of values are provided adequately as and when required, for the convenience of the user. For each of the options, data entry is facilitated through the use of single screen.These in turns make the data entry less cumbersome and less confusing for data entry operator. ( IV) DESIGN OF OUTPUT Output is the most important and direct source of information to the user. Efficient, intelligible output design should improve the systems relationship with the user and helps in decision making. A form of output is a hard copy from the printer and can also be displayed on the terminal. (V) DESIGN OF DATABASE Design of database may be considered as the backbone of the candidate system. How well and efficiently the system is able to retrieve data, process it and put it back depends on how well the database has been structured and organized. This section and the following subsection throw light on how the database has been structured and organized and how the database has been designed for the candidate system. (VI) NORMALIZATION Normalization is a process, which ensures that data in the database are not unnecessarily duplicated. It also ensures that addition and deletion of entity rows (or tuples) or change of individual attribute values do not lead to accidental loss of data or error in database. It is performed by first converting a relation so that all entities are simple. These results in a relation said to be in First Normal Form (1NF). Successive normalization steps such as 2NF, 3NF, BCNF, 4NF, 5NF are carried out to meet the objectives. 1. 1NF:- In 1nf composite attribute is converted to individual attribute. After doing this the common attributes for a composite attribute are duplicated as many times as there are lines in the composite
Page 23
attribute. This form is also called a flat file. The tables here are free from 1NF. 2. 2NF:- A relation is said to be in 2NF if it is in 1NF and non-key attributes are functionally dependent on the key attribute(s). Further if the key has more than one attribute then no non key attributes should be functionally dependant upon a part of the key attributes. The tables in the given system are in 2NF. 3. 3NF:- A third normal form normalization will be needed where all attributes in a relation tuple are not functionally dependent only on the key attribute. If two non key attributes are functionally dependent on each other then there will be unnecessary duplication of data. BCNF(Boyce-codd normal form):- Assume that relation has more than one possible key. Assume further that the composite keys have a common attribute. If an attribute of a composite key is dependent on an attribute of the other composite key normalization called BCNF is needed. 4NF & 5NF(Fourth and fifth normal form):- When attributes in a relation have multi valued dependency then 4Nf and 5NF normalization are required.
Page 24
Visual basic is an idle programming language for developing sophisticated professional application for Microsoft window. It makes us of graphical user interface (GUI) for creating robust and powerful application. The graphical user interface as the name suggest users us in text which enables users to interact with an application. The feature makes it easier to come pre hand thinks in quicker and easier way. Coding in GUI environment is quit transition form traditional linear programming. Method where the user is guided throws a line path of execution and it limited to a small set of operation. In GUI environment the no. option open to the user are much grater alien more freedom to both the user an developer feature such as easier comprehension user friendliness , faster application development and many other aspects such as introduction of internet feature make visual basic an interesting tool to work with. Visual basic was developed from BASIC programming language in 1970 my Microsoft. Got it starts by developing ROM based interpreted BASIC for the early micro processor based computer. In 1982 Microsoft quick basic revolutionized basic a legit lionized as the serious development language for MS-DOS environment. Later On Microsoft Corporation create The enhance version of basic called visual basic for window. The proposed automated payroll system is developed in visual basic 6.0 version and for data base MS ACCESS is used as back end. The system is designed and developed to suit requirement of medium size of payroll system.
Page 25
Standard EXE:A standard EXE project is a typical application most of the application in this language art standard EXE project. Active X EXE, Active DLL:Active X components are basic code-building components thats do not have a visible interface and that can add special functionality to your application. Active X Control:Active X control such as a TextBox or command button control is a basic element of the user interface .if the Active X control ,that come with visual basic do not provide the functionality you need, you can build your own custom controls . Active X Document EXE,Active X Document DLL That can run in the environmentsof a container that supports hyperlinking. VB Application Wizard,VB Wizard Manager:The application wizard takes you through the stenos of setting up the skelton of a new application. Data Project:It is identical to the Standard EXE project type ,but it automatically adds the controls that are used in accessing databases to the toolbox. DHTM Application:VB6 allows you to build dunamic HTML page that can be displayed in the browsers window on a client computer .Instead of showing you how to use VBs tool to automate the process of designing DHTML pages. HS Application:VB6 allows you to build applications that run on the web server and interact wuth client over the internet with the internet information server. VB Enterprise Edition Controls:It simply creates a new standard EXE project and load all the tools of the enterprise edition of VB. Project Explorer:The window totled project explorer ,which display the components of the project .The project window is called project explorer causes it has the look of the window explorer.
Page 26
Properties Window:The property window contains the property of setting for the selected control properties are attributes of an object ,such as its size caption and color . you can adjust the appearance of the controls and the form with point and click operations. Form Designer:The form designer is the main window in the middle of the screen ,and in it you design and edit the applications user interface .The same windows display a test editor in which you can enter and edit the applications code. Form Layout:You use the form layout window ,which is in the lower right corner of the VB IDL , to determine the initial positions of the forms in your application.you can move forms around and place them on too of each other. Immediate Window:The immediate window ,the bottom of the IDE is a debugging while an application is running you can stop it and use the immediate window to examine of change of value of the application variable and to execute VB commands in immediate mode. THE MENU BAR The menu bar contains the commands you need work with Visual Basic. The basics menu are-----File:The contains the commands for opening and saving projects and creating executable files and list of recent projects. Edit:Edit contains the editing commands (e.g.-Undo, Copy, Paste) plus a number of commands for formatting and editing your code (e.g Find, Replace). View:View contains commands for showing of hinding components of the IDE.
Page 27
Project:Project contains commands thar add componenrs to current project, references to windows and new tools to the toolbax. Format:Format contains commands for aligning the control on the form.
Query:Query contains commands that simplify the design of structures Query Language(SQL). Diagram:Diagram contains commands for efiting database diagrams.
Run:Run contains commands that start, break an execution of the current application.
Tools:Tools contains the tools you need in building Active X components and Active controls; contains the commands to start the Menu Editor and the otions commands, which lets the customize the environment. Window:Windows is the standard Windows menu of an application that contains commands ti arrange on the screen. Help:Help contains formation to help you as you work.
Page 28
THE ELEMENT USE IN THE INFORMATION:The toolbax of the visual IDE and lets quickie run through controls shown in the Toolbax. Label:The Label text appears to be placed directly on the form. You set the labels text with the caption property. TextBox: The Textbox control is a mini text editor, and its most important property is the text property, which can set the text on the control or read the text that the user enters. Frame:This control is used to draw boxes on the form and to group other elements. Command Button:Command buttons representd an action that is carried out when the user click the button. Option Button:The Option Buttons main property is checked,a nd it is True if the control is checked, and False otherwise. Combo Box:It contains an Edit fields. The user can choose an item from the list oriented a new string in the Edit field. The item selected from the list(or entered in the Edit field.) List Box:List box control can contains many lines and the user can scroll the list to locate an item. The selected item in a list box control is given by the text property. Shape:This control is used to draw graphical element such as boxes and circles, on the surface of a form. MSFlex Grid Control:The MSFlex Grid Control is an extremely used tool for displaying information in a tabular form, but not for data entry.
Page 29
The core of a visual basic programmed is a set of independent pieces of code (more maintainable) that are activated by, and respond to only the events they have been told recognize. 2. Fundamental shift Instead of designing a program to do what a programmer thinks should happen, the user is in control (modeless programming). 3. Event procedures Much of the programming code in visual basic that tells your program how to respond to events like mouse Clicks occur in what visual basic calls events procedures. Essentially, everything executable in visual basic program is either in event procedures.Or is used by event procedures to help the procedures to carry out its job.
Page 30
Page 31
INTRODUCTION TO MS-ACCESS
It is a coherent of data with some inherent meaning. Design cast and populated with data for a specific purpose. A data base stores data that is useful to us. This data is only part of the entire data available in the world around us.
To be able to successfully design and maintain database we have to do the following: Identify which part of the world data is of interest to us. Identify what specific objects in that part of world data are of interests to us. Identify a relationship between the object. Hence, the objects, their tributes and the relationship between them that are to us are stored in database that is designed, build and populated data for a specific purpose. MS Access is developed by Microsoft according to above consideration. MS Access a powerful tool of MS Office which allow user to create database and also have ability to maintain a database.
Page 32
Microsoft access is a powerful relation data base management (RDBMS), because it can establish between two or more data base and table very easily. Microsoft access is a user friendly-program, Microsoft access can be used to store large amount of data for examples students records, employments records, and inventory records etc. MS-Access helps to create database table, enter new records, delete desired records, relation between its table and get the print very easily. In MS-Access we can create reports and mailing labels on based of data base table.
Page 33
Page 34
STRUCTURE OF VB APPLICATION
From Module
.FRM
Binary Data
.FRX
Standard Module
.BAS
Class Module
.CLS
.OCX
Custom Module
.RES
Resource File
Application .EXE
Page 35
Package Structure
1. Record
Member Detail
Book Detail
Issue Detail
Delete Member
2.
Report
Member Detail
Book Detail
Issue Detail
Add Book
Delete Book
Page 36
Page 37
Login Form
No
EXIT
O K
OUTPUT
EXIT
Page 38
3
x
Back
Page 39
Wan t to add?
yes no
Add record
Page 40
Want to delete
yes
Delete record
no
Display main form
Page 41
Start
Display Record
No If Add
No If Save
Yes
Record File
Page 42
Display Record
No If Delete
If Save
No
Yes
Record File
Page 43
SEARCHING FLOWCHART
Start
If by Member ID no.
No
If By Member Name
No
Yes
Exit
Page 44
LIBRARY FLOWCHART
Start
Data Processing
Exit
Page 45
Start
Accept Code
If Valid
Call Application
Exit
Page 46
Page 47
MEMBER CODE
MEMBER
RENEWL DATE
BOOK NAME
BOOK
RACK NO.
CODE
AUTHOR
STOCK
Page 48
PUBLISH ER
Page 49
Library Transaction
Library Program
Report
Page 50
TRANSACTION
Members
Collect Data
Library Program
REPORT
Report Add
Page 51
MEMBER
ISSUE DATABASE
Yes/No
Y/ N Update
BOOK DATABASE
Page 52
MEMBER CODE
REPORT
BOOK CODE
BOOK NAME
LIBRARY
AUTHER
PUBLISHER
RECK NO.
Page 53
Page 54
Page 55
ENTRANCE FORM
LOGIN FORM
Page 56
WELCOME FORM
Page 57
Page 58
INTRODUCTORY FORM
USER PLATFORM
Page 59
LIBRARAY MANAGEMENT
Page 60
Page 61
ABOUT PROGRAMER
Page 62
BOOK DETAILS
MEMBER DETAILS
Page 63
Page 65
CONGRATULATIONS
Page 66
Page 67
Page 68
Page 69
ISSUE BOOK
Page 70
Page 71
FORM 1
Page 72
Private Sub Command1_Click() Form7.Hide Form10.Show End Sub Private Sub Start_Click() Login.Show Form7.Hide End Sub
FORM 2
Private Sub Command1_Click() Form11.Show Form8.Hide End Sub
FORM 3
Private Sub Command1_Click() Form10.Hide Form11.Show End Sub Private Sub Command2_Click() Form10.Hide Form12.Show
Page 73
FORM 4
Private Sub Command2_Click() Form11.Hide frmSplash.Show End Sub
FORM 5
Private Sub Command1_Click() Form12.Hide Form8.Show End Sub
FORM 6
Private Sub Command1_Click() Form1.Hide Form2.Show Form2.Text1.Text = "" Form2.Text2.Text = ""
Page 74
Form2.Text3.Text = "" Form2.Text4.Text = "" Form2.Text5.Text = "" End Sub Private Sub Command2_Click() Form1.Hide Form3.Show Form3.Text1.Text = "" Form3.Text2.Text = "" Form3.Text3.Text = "" Form3.Text4.Text = "" Form3.Text5.Text = "" Form3.Text6.Text = "" End Sub Private Sub Command3_Click() Form1.Hide Form4.Show Form4.Data1.RecordSource = "select * from Issue_mast" Form4.Data1.Refresh Form4.Text1.Text = "" Form4.Text2.Text = "" Form4.Text3.Text = "" Form4.Text5.Text = "" Form4.Text6.Text = "" Form4.Text7.Text = "" Form4.Text8.Text = "" Form4.Text1.SetFocus
Page 75
End Sub Private Sub Command4_Click() d = InputBox("Enter the member code to delete the record", "Delete") Data3.RecordSource = "select * from issue_mast where mem_code='" + d + "'" Data3.Refresh Do While Not Data3.Recordset.EOF c=c+1 Data3.Recordset.MoveNext Loop If c <> 0 Then MsgBox "The member has not returned the book", vbInformation, "Library" Data3.Recordset.Close Else Data1.RecordSource = "select * from mem_mast" Data1.Refresh Form1.Hide Form5.Show End If End Sub Private Sub Command5_Click() r = InputBox("Enter your member code", "Book Return") Data3.RecordSource = "select * from issue_mast where mem_code='" + r + "'" Data3.Refresh
Page 76
qty = Data3.Recordset.Fields(6) Data3.Recordset.Delete Data3.Recordset.Close Data3.RecordSource = "select * from issue_mast" Data3.Refresh b = InputBox("Enter your book code", "Book Return") Data2.RecordSource = "select * from book_mast where book_code='" + b + "'" Data2.Refresh Data2.Recordset.Edit s = Data2.Recordset.Fields(4) cs = s + qty Data2.Recordset.Fields(4) = cs Data2.Recordset.Update Data2.Recordset.Close End Sub Private Sub Command6_Click() d = InputBox("Enter the book code to delete the book", "Delete") Data3.RecordSource = "select * from issue_mast where book_code='" + d + "'" Data3.Refresh Do While Not Data3.Recordset.EOF c=c+1 Data3.Recordset.MoveNext Loop If c <> 0 Then MsgBox "Don't Delete, we have issued this book", vbInformation, "Library"
Page 77
Data3.Recordset.Close Else Data2.RecordSource = "select * from book_mast" Data2.Refresh Form1.Hide Form6.Show End If End Sub Private Sub Command7_Click() Form7.Show Form1.Hide End Sub Private Sub Command8_Click() Form1.Hide Form7.Show End Sub Private Sub Form_Load() If SSTab1.Tab = 0 Then Data1.RecordSource = "select * from mem_mast" Data1.Refresh Command1.Visible = True Command2.Visible = False Command3.Visible = False Command4.Visible = True Command5.Visible = False Command6.Visible = False
Page 78
End If If SSTab1.Tab = 1 Then Data2.RecordSource = "select * from Book_mast" Data2.Refresh Command1.Visible = False Command2.Visible = True Command3.Visible = False Command4.Visible = False Command5.Visible = False Command6.Visible = True End If If SSTab1.Tab = 2 Then Data3.RecordSource = "select * from Issue_mast" Data3.Refresh Command1.Visible = False Command2.Visible = False Command3.Visible = True Command4.Visible = False Command5.Visible = True Command6.Visible = False End If End Sub Private Sub SSTab1_Click(PreviousTab As Integer) If SSTab1.Tab = 0 Then Data1.RecordSource = "select * from Mem_mast" Data1.Refresh Command1.Visible = True Command2.Visible = False
Page 79
Command3.Visible = False Command4.Visible = True Command5.Visible = False Command6.Visible = False ElseIf SSTab1.Tab = 1 Then Data2.RecordSource = "select * from Book_mast" Data2.Refresh Command1.Visible = False Command2.Visible = True Command3.Visible = False Command4.Visible = False Command5.Visible = False Command6.Visible = True ElseIf SSTab1.Tab = 2 Then Data3.RecordSource = "select * from Issue_mast" Data3.Refresh Command1.Visible = False Command2.Visible = False Command3.Visible = True Command4.Visible = False Command5.Visible = True Command6.Visible = False End If End Sub
FORM 7
Page 80
Private Sub Command1_Click() Data1.RecordSource = "select * from mem_mast" Data1.Refresh Data1.Recordset.AddNew Data1.Recordset.Fields(0) = Text1.Text Data1.Recordset.Fields(1) = Text2.Text Data1.Recordset.Fields(2) = Text3.Text Data1.Recordset.Fields(3) = CInt(Text4.Text) Data1.Recordset.Fields(4) = CDate(Text5.Text) Data1.Recordset.Update Data1.Recordset.Close Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Form9.Show Form2.Hide End Sub Private Sub Command2_Click() Form1.Data1.RecordSource = "select * from mem_mast" Form1.Data1.Refresh Form2.Hide Form1.Show End Sub Private Sub Text1_LostFocus() On Error GoTo errorhandle
Page 81
Data1.RecordSource = "select * from mem_mast where mem_code='" + Text1.Text + "'" Data1.Refresh Do While Not Data1.Recordset.EOF c=c+1 Data1.Recordset.MoveNext Loop If c <> 0 Then MsgBox "Duplicate Code", vbExclamation, "Duplicate" Text1.Text = " " Text1.SetFocus Else Text2.SetFocus End If Exit Sub errorhandle: MsgBox "Error occurred!Wrong Member Code", vbInformation, "Error" End End Sub Private Sub Text4_GotFocus() Text4.Text = "500" End Sub
FORM 8
Page 82
Private Sub Command1_Click() Data1.RecordSource = "select * from book_mast" Data1.Refresh Data1.Recordset.AddNew Data1.Recordset.Fields(0) = 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 = "" End Sub Private Sub Command2_Click() Form1.Data2.RecordSource = "select * from book_mast" Form1.Data2.Refresh Form3.Hide Form1.Show End Sub Private Sub Text1_LostFocus() On Error GoTo errorhandle
Page 83
Data1.RecordSource = "select * from book_mast where book_code='" + Text1.Text + "'" Data1.Refresh Do While Not Data1.Recordset.EOF c=c+1 Data1.Recordset.MoveNext Loop If c <> 0 Then MsgBox "Duplicate Code", vbExclamation, "Duplicate" Text1.Text = " " Text1.SetFocus Else Text2.SetFocus End If Exit Sub errorhandle: MsgBox "Error occurred!Wrong Book Code", vbInformation, "Error" End End Sub
FORM 9
Page 84
Private Sub Command1_Click() Data1.RecordSource = "select * from issue_mast" Data1.Refresh Data1.Recordset.AddNew Data1.Recordset.Fields(0) = 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(Text7.Text) Data1.Recordset.Update Data1.Recordset.Close Form1.Data2.RecordSource = "select * from book_mast where book_code='" + Text3.Text + "'" Form1.Data2.Refresh Form1.Data2.Recordset.Edit Form4.Text8.Text = Form1.Data2.Recordset.Fields(4) Text8.Text = Val(Text8.Text) - Val(Text7.Text) Form1.Data2.Recordset.Fields(4) = Val(Text8.Text) Form1.Data2.Recordset.Update Form1.Data2.Recordset.Close Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = ""
Page 85
End Sub Private Sub Command2_Click() Form1.Data3.RecordSource = "select * from issue_mast" Form1.Data3.Refresh Form4.Hide Form1.Show End Sub Private Sub List1_Click() Text4.Text = List1.Text Form1.Data2.RecordSource = "select * from book_mast where book_name='" + List1.Text + "'" Form1.Data2.Refresh Do While Not Form1.Data2.Recordset.EOF Form4.Text3.Text = Form1.Data2.Recordset.Fields(0) Form4.Text8.Text = Form1.Data2.Recordset.Fields(4) Form1.Data2.Recordset.MoveNext Loop Form1.Data2.Recordset.Close End Sub Private Sub Text1_LostFocus() On Error GoTo errorhandle Data1.RecordSource = "select * from issue_mast where mem_code='" + Text1.Text + "'" Data1.Refresh Do While Not Data1.Recordset.EOF c=c+1
Page 86
Data1.Recordset.MoveNext Loop If c <> 0 Then MsgBox "Please return the book first", vbInformation, "Book Return" Text1.Text = "" Form4.Hide Form1.Show Else Form1.Data1.RecordSource = "select * from mem_mast where mem_code='" + Text1.Text + "'" Form1.Data1.Refresh Form1.Data1.Recordset.Edit Text2.Text = Form1.Data1.Recordset.Fields(1) Form1.Data1.Recordset.Update Form1.Data1.Recordset.Close List1.Clear Form1.Data2.RecordSource = "select * from book_mast" Form1.Data2.Refresh Do While Not Form1.Data2.Recordset.EOF Form4.List1.AddItem (Form1.Data2.Recordset.Fields(1)) Form1.Data2.Recordset.MoveNext Loop Form1.Data2.Recordset.Close End If Exit Sub errorhandle: MsgBox "Error occured!Wrong Member Code", vbInformation, "Error"
Page 87
End End Sub Private Sub Text5_GotFocus() Text5.Text = Date End Sub Private Sub Text7_LostFocus() If Val(Text8.Text) > Val(Text7.Text) Then Text8.Text = Val(Text8.Text) - Val(Text7.Text) Command1.SetFocus Else MsgBox ("Please check your stock") Text7.Text = " " End If End Sub
FORM 10
Private Sub Command1_Click() Data1.Recordset.MoveFirst Command1.Enabled = False Command4.Enabled = False Command3.Enabled = True Command2.Enabled = True End Sub Private Sub Command2_Click() Data1.Recordset.MoveNext
Page 88
s = Data1.Recordset.RecordCount Command1.Enabled = True Command4.Enabled = True If Data1.Recordset.AbsolutePosition = s - 1 Then Command2.Enabled = False Command3.Enabled = False End If End Sub Private Sub Command3_Click() Data1.Recordset.MoveLast Command1.Enabled = True Command4.Enabled = True Command2.Enabled = False Command3.Enabled = False End Sub Private Sub Command4_Click() Data1.Recordset.MovePrevious s = Data1.Recordset.RecordCount Command2.Enabled = True Command3.Enabled = True If Data1.Recordset.AbsolutePosition = s Then Command1.Enabled = False Command4.Enabled = False End If End Sub Private Sub Command5_Click()
Page 89
Data1.Recordset.Delete If Data1.Recordset.EOF Then Data1.Recordset.MoveFirst Else Data1.Recordset.MoveNext End If End Sub Private Sub Command6_Click() Form5.Hide Form1.Show Form1.Data1.RecordSource = "select * from mem_mast" Form1.Data1.Refresh End Sub
FORM 11
Private Sub Command1_Click() Data1.Recordset.MoveFirst Command1.Enabled = False Command4.Enabled = False Command3.Enabled = True Command2.Enabled = True End Sub Private Sub Command2_Click() Data1.Recordset.MoveNext s = Data1.Recordset.RecordCount
Page 90
Command1.Enabled = True Command4.Enabled = True If Data1.Recordset.AbsolutePosition = s - 1 Then Command2.Enabled = False Command3.Enabled = False End If End Sub Private Sub Command3_Click() Data1.Recordset.MoveLast Command1.Enabled = True Command4.Enabled = True Command2.Enabled = False Command3.Enabled = False End Sub Private Sub Command4_Click() Data1.Recordset.MovePrevious s = Data1.Recordset.RecordCount Command2.Enabled = True Command3.Enabled = True If Data1.Recordset.AbsolutePosition = s Then Command1.Enabled = False Command4.Enabled = False End If End Sub Private Sub Command5_Click() Data1.Recordset.Delete
Page 91
If Data1.Recordset.EOF Then Data1.Recordset.MoveFirst Else Data1.Recordset.MoveNext End If End Sub Private Sub Command6_Click() Form6.Hide Form1.Show Form1.Data2.RecordSource = "select * from book_mast" Form1.Data2.Refresh End Sub
FORM 12
Private Sub Command1_Click() Form2.Show Form9.Hide End Sub
FORM 13
Page 92
Option Explicit Private Sub Command1_Click() frmSplash.Hide Form10.Show End Sub Private Sub Form_KeyPress(KeyAscii As Integer) Unload Me End Sub Private Sub Form_Load() lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision lblProductName.Caption = App.Title End Sub Private Sub Frame1_Click() Unload Me End Sub
FORM 14
Dim x As String Dim y As String Private Sub Command1_Click() x = LTrim(RTrim(Text1.Text))
Page 93
y = LTrim(RTrim(Text2.Text)) If (x = "sandeep") And (y = "saraswati") Then Unload Me Form1.Show Else MsgBox "invalid user" Text2.SetFocus SendKeys "{home}+{end}" End If End Sub Private Sub Command2_Click() Form9.Hide Form7.Show End Sub
Page 94
TABELS
Page 95
ISSUE TABLE
BOOK TABLE
Page 96
MEMBER TABLE
Page 97
Page 98
Page 99
Acceptance Testing is performed to demonstrate to the client, on the reallife data of the client the operation of the system. Testing is an extremely critical and time-consuming activity. It requires proper planning of the overall testing process, Frequently the testing process starts with a test plan that indentifies all the testing-related activities that must be performed and specifies the schedule allocates the resources, and specifies guidelines for testing. The test plan specifies conditions that should be tested, different units to be tested, and the manner in which the modules will be integrated together. Then for different test units, a test case specification document is produced, which lists all the different test cases, together with the experienced output. During the testing of the unit, the specified test cases are executed and the actual result compared and the error report or a set of such report(one for each unit tested). Each test report contains the set of test cases and the result of executing the code with these test cases. The error report describes the errors encountered and the action taken to remove the errors.
Page 100
ADVANTAGES
No paper work
As we know when we work on the computer we do not need any paper. Computers have their own memory to store data and information. Computers can stores information which at least occupy thousands of paper if done manually. It saves money and space.
Page 101
LIMITATION
We have put our almost effort in this project but we found the following limitation in it:
Due to shortage of time we were unable to incorporate all the feature of library management system.
Less security levels. Dose not support DOS mode No on line facility.
Page 102
CONCLUSION
Page 103
CONCLUSION
We can not say our work is 100% complete. There is always space for rectification and modification. So there fore, in this library management system all the drawback of manual system have been removed and the efficiency of the system has been improved up to the maximum extent. Generally manual system are very time consuming and so work or inquiry can be performed instantly, but here by working on the computer overall efficiency of the system increase a lot every task is done instantly. In this system a large database can be maintained easily. This system is very user friendly, so therefore it can be handled easily just by carry training.
Page 104
BIBLIOGRAPHY
1.Mastering In Visual Studio.Net Bpp Publication 2.Black Book Dreamtech Press 3.Visual Basic In 21 Days Bpp Publication 4.Analysis And Design Of Information System Phi V.Rajaraman 5.Software Engineering Pankaj Jalote 6.Become Pro In Vb, Wrox
Page 105