You are on page 1of 20

Book Shop Management System.

Index

Preface

About Visual Basic

Current System

Proposed System

Data Flow Diagram

Database Design

Form Design

Source Code

Hardware and Software Requirement

Future Scope and Limitation

References Preface Computer is fast emerging as a daily need in walks of life. The knowledge of computers and programming language has becomebasic skill need to service in todays information based society. Everybusiness institution and the corporate section, make a use of computerfor making their operation efficient & effective.Book distributors transaction handling is one of the complexprocess and it required computerized system to maintain overalltransactio ns in a easier manner. Due to heavy demand of books inthese competitive worlds, data increase so much. Books shop requiredup to date information about the customer who purchased books orabout the suppliers from where books are purchased. The books shoprequires large amount of data to record and to store, which arecollected from the Book House.

About Visual Basic 6.0 Visual Basic 6.0 is Microsoft latest and greatest version of the Visual Basic programming language. Although writing programscan be a ted ious chore at times Visual Basic educes the effortsrequired on your part and marks programming enjoyable About VisualBasic 6.0 Visual Basic marks many aspects of programming as simpleas dragging graphic object onto the screen with your mouse.

Even driven programming Traditionally programming is essentially linear and is based onthe flow of The execution. Operation runs for fixed span or until theyreached a decision Point. At the decision point the programmingbranches depe nding on the point to the program or the status of various variable of the program. This operation continues till theprogram i s completed. Once the program execution starts it isimpossible to interrupt the activity. The programmer is responsible forthe structure looks and the flow of program. If the programmer wants agood user interface, be has to explicitly write the long and complexcode for the user interface of the program.In the conventional method the programs are usuallywritten in a top Down manner. This may be done either using thestructure programming Approach i.e. by breaking up the program in tosmall sections of independent Procedures or function or using amodular approach i.e. by creating a program From a set of more orless self contained function and procedures. Theoretically, This makesa possible to reuse the modules to be used in other programs. InPractice, there are generally a very few routines that can be reused with out major Reworking. On this data is declared globally, anyfunction or procedure can Access the data, which might put it at the mercy pf any function or procedure. The likelihood of incorrect datamanipulation is high. If data is declared locally only the procedure inwhich the data is safer, it is very restricted.In object oriented programming, a method (the function orprocedure of an object) Know what data if can manipulate them. Thereis no confusion about who control whom. Declaring object andenclosing met

hod and their data in a Class achieve this. Generalprocedures the kind use in struct ured programming cannot accessdata with an object without using the object metho ds which areDesigned too manipulate their data.In procedural program, the order of procedure and controlstatement determines the program, flow of control. This implies thatthe programmer knows the entire flow of the program while hedeveloped it. In program designed to capture the essence of thedynamic world, this assumption is unrealistic and cumbersome.Object oriented programming captures these logicalrelationship in object Determines the flow of control in objects clarifythe communication along the Component of an application. Objectresponds to the other objects. Massages move through the system, notdata. Instead of invoking a Function on some data like in conventionalprogramming method, a message is sent to object. This is the principleof operation in windows, Visual Basic is Object oriented, i.e. revolvesaround ready made objects, and it is event driven, All the activity inprogram are triggered by one event or another. Each object also Hasits own event handling procedures. The Visual Basic system knows allabout this already.It knows what button is and how it work. It also knows how tohandle Menus dialogue boxes, drive and directory list and much else. The programmers job is to determine where, how and when an objectappears on the screen what it is to do. What is caption reads what colors it would He end what happens, when an event occurs. Theevents are trapped by the Execute, when the event occurs.Because the program code run through event and as such atany point a Whole range of event might be possible, the program flowis not as fixed as in a Conventional program. Operations do not have tofollow a set if sequence, and Can be easily interrupted, suspended orabandoned. The processes of program Design reflex the nature of thesystem. One begins by creating the screen layout, And work out wordsfrom here , adding first the code that will run in response to Specificevents and then any necessary code to coordinate the whole program. This approach of programming is called event driven programming. Programming terminology The terminology that is used in Visual Basic programming are:

Forms Controls Module Project Procedures Properties Methods Events Forms

The form is the basic object used in Visual Basic applicationdevelopment. It is a window, initially black on which controls areplaced to create the screen display. The forms size, colors type areprogrammable. Code can be attached to the form, which would beexecuted when the form is loaded, closed or when the mouse is clickedor moved on the form. A simple application may use only one form but a complex application may use many form activated by variouscontrols pasted on

the form. Each of the form on the application issaved in the disk as separate file with an extension Form . Controls

These are objects which can be pasted on to a form and theseControls range from simple labels, which are used to display text onthe screen on Form, or picture boxes for buttons, check boxes, list andother menus, To file management utilities and spreadsheet style grids. Their properties, And event they can handle, very to suit their nature.Each control can have coed Attached to it, though not all will have. Atext label or graphic image, for ex. May be There simply to improve thedisplay, and not as the start point for any activities. Module Code that is attached to form is accessible form anywhere onthat Form, but a program more than one form. In such a case a codeattached to a form. In such case a code attached to a form is notavailable to the other forms. In this case, the code that is required tobe made available to the other forms is written in a separate module.Modules are code segments, which are not written inside thescope of any form. They have global scope. These cannot be madevisible during run time. It is like any other program code. There may beseveral modules in one program and each is saved as separate file. These files have an extension of BAS, because these are BASICcodemodules. Procedure

All the code in the visual basic program is written in theforms of procedure, or subroutines. Most of these procedures will be attached to the event some controls or forms. Some of the procedureswould be separately written inside the modules as global functions. Allthe procedures start with keyword Sub and close with the keyword EndSub.

Project

The project is a file in which all the form files(*.frm files) andthe modules(*.bas files) that make up the entire application, is kept . These have an extension of * .Mac. they are called make file thusany application wil have a * . vbpfile. Properties

Each control has a set of predefined properties, method andevents that it will respond to. Properties are simply characteristics of an object or control. They are used to store data describes someparticular attribute of the object such as color, size or the picturepresent in a control. The one property that every object must have isthe Name property. This is use to refer to the object must be unique ina project. Visual Basic assign default name to control when you addthem to your form, but you can alter these at design time(and youshould alter them at design time)to make your code more descriptive.Note that you cant change a controls Name property at run time, andthese wont appear in the properties window .Properties can be set at design time using the properties window orthey can be set and reference within your Visual Basic code. Propertiesare reference in the form of object name. property and in some respectyou can think of them like a variable. You can assign a value to aproperty just as you assign a value to a variable. here we assign thetext string john smith to text property of the object called Text1: Text1.text= john smith Just as with variable, properties can also be used as part of otherstatement:Print your name is: Text1.text Methods Methods are action that can be performing on anobject. These are like procedures. They are written in code in the formobject name. method parameters for e. forms have a move methodthat moves them to the procedure specified by the parameter. In thiscase, the top left of the form would be move screen coordinates(370,915) asForm1.move 30,915When you referred to the property or method of

anobject that resides in a form other than one form which you arerefereeing it , you will need to give it a fully qualified reference. Thesemeans preceding name of the object with the name of the form likethis:FormName.ObjectName.propertyThis sort of reference to an object can be extended in thecase of OLE application to include the name of the project before thename of the form. If you dont supply a fully qualified reference, VisualBasic assumes that you are referring to the project and form in whichyou are making the reference. Events Events are the key to Visual Basic programming each object inthe Visual Basic can be respond to a predefined set of events. Thesewould be movement of the mouse, the pressing of the key on thekeyboard or the lapsing the particular period of time. You can seewhich events a control can respond to by adding controls to your form and double clicking it to bring up the code window. The proceduredropdown list box in the top right corner of the code window contains alist of all the events that a control can respond to. If you select one of the item in the list box, the first and last lines of a procedure are addedto your code. This proce4dure will be triggered whenever thatparticular event occurs, so any code that you add to the procedure willbe executed at the same time. This is how you create Visual Basic codeto respond to user interaction and other events.

Current system The book shop contains different types of books of various subjects with various quality according to the customers needsand requirement. The main thing of the book shop is to maintain lot of records for the daily transaction of the business. It is necessary forevery business to maintain all records, which show the profit and lossof the business.In todays life people have very little time and manythings to do. They have to manage all this unbalance workload,although every one wants to achieve all their ambitions and dreams.And the present system of managing Books is very time consuming soit is very difficult to maintain good records and fast service. The paperwork is becoming very difficult to handle day by day.Currently we have to keep track of each and every thing aboutthe book shop on the paper or in register. We have to maintain lot of registers to enter these large volumes of data. This leads to thewastage of stationary.Some disadvantages are: Manual system involves a lot of paper work, so it becomes timeconsuming and costly. The chances of errors in calculation of delivery of Books are morein the current manual system. The calculation of total collectionfor day or month or year is very difficult. Currently no security is provided to the large amount of data of the every book details. It becomes very difficult to maintain details of every Book asrecords increases day by day.

Proposed system While creating new software we should analyze what isthe basic need of the software. Analysis is nothing but a planning of creation of software to get proper output from it. Analysis is detailsstudy of projects that you want to show in your software solvingproblems.T he basic need of the software is to save the time of theuser with the help of all useful information. And also to maintain thecollection of data in your computer systematically, so that its easy tounderstand. The proposed system provides lot of facility to the user tostore information of the Books and it provides information in quick timein a systematic manner. The processing time on the data is very fast. Itprovides required data quickly to the user and also in specified mannerto the user. All the information of Books changes is given to the userand also the reports are also generated according to the requirementof the user. Today it is becoming very difficult to maintain record manually. Thissoftware system easily does the job of maintaining daily records aswell as the transaction according to the user requirements.Some advantages are: User friendly software Easy to record all data about the Books and its details. It saves time of the user as well as prevent paper work It provides the security to the database that is large amount of important data of the hospital. It provides more reliability for keeping information.

Data Flow Diagram

Database design

Form Design Main Form:

Sales invoice

Login Form: Dim rs As New ADODB.Recordset Public LoginSucceeded As Boolean Dim Counter As Integer Private Sub cmdCancel_Click() 'set the global var to false 'to denote a failed login LoginSucceeded = False Unload Me End Sub Private Sub cmdOK_Click() On Error Resume Next If txtPasswd.Text = "" Then

You might also like