Você está na página 1de 56

1

CONTENTS

CONTENTS Sl. NO 1 1.1 2 2.1 2.2 TOPICS INTRODUCTION SYNOPSIS SYSTEM STUDY AND ANALYSIS EXISTING SYSTEM HARDWARE AND PAGE NO 3 5 7 9 SOFTWARE 11

REQUIREMENTS 2.3 2.4 2.5 3 3.1 3.2 3.3 3.4 3.5 4 5 ABOUT VISUAL BASIC ABOUT M.S ACCESS PROPOSED SYSTEM SYSTEM DESIGN DATAFLOW DIAGRAM SAMPLE INPUT SCREEN SAMPLE DATABASE SAMPLE CODING SAMPLE REPORTS CONCLUSION BIBLIOGRAPHY 13 16 18 21 24 28 32 37 50 53 55

INTRODUCTION

1. INTRODUCTION
In the modern era, computers have made everything under one root and have knit the World together. Even the complicated and time consuming works are made nothing by the Computers. Because of the technological IT revolution computer has been made as the Core element in every place. Computerization has become an essential one, for the people who prefer speedy and ease of access. Human beings are liable to make mistakes and the Output usually depends upon the efficiency of the persons involved. But computers could usually generate error output and highly efficient which varies depending on the person operating.

SYNOPSIS

1.1 SYNOPSIS Jewellery management system helps the retailer to maintain their records properly and accurately. This system provides a user friendly interface for controlling Purchase and sales management system. The project entitled Jewellery Management System is developed with an aim of automating the work of Retailer. The project is developed using Microsoft Visual Basic 6.0-Front End Tool Ms-Access 2000-Back end tool The project is broadly divided into following modules Customer Details Supplier Details Item Details Order Details Sales Details Billing Details

All the above modules are designed to meet the requirements of a Retailer. The Interface is developed with a feature rich interface and user-friendly Environment

SYSTEM STUDY AND ANALYSIS

2. SYSTEM STUDY AND ANALYSIS Systems analysis is the study of sets of interacting entities, including computer systems analysis. This field is closely related to requirements analysis or operations research. It is also "an explicit formal inquiry carried out to help someone (referred to as the decision maker) identify a better course of action and make a better decision than he might otherwise have made." When a computer-based information system is developed, systems analysis (according to the Waterfall model) would constitute the following steps:

The development of a feasibility study, involving determining whether a project is economically, socially, technologically and organizationally feasible.

Conducting fact-finding measures, designed to ascertain the requirements of the system's end-users. These typically span interviews, questionnaires, or visual observations of work on the existing system.

Gauging how the end-users would operate the system (in terms of general experience in using computer hardware or software), what the system would be used for and so on

Another view outlines a phased approach to the process. This approach breaks systems analysis into 5 phases:

Scope Definition Problem analysis Requirements analysis Logical design Decision analysis

Use cases are a widely-used systems analysis modeling tool for identifying and expressing the functional requirements of a system. Each use case is a business scenario or event for which the system must provide a defined response. Use cases evolved out of object-oriented analysis; however, their use as a modeling tool has become common in many other methodologies for system analysis and design.

EXISTING SYSTEM

10

2.1 EXISTING SYSTEM The existing system is handled manually. The system has a formatted accounting system for Purchase and Sales. The indent is prepared when items are to be purchased And bill is generated for sale of items. The system follows the predetermined purchase and sales procedures. Drawbacks of existing system Manual systems are more time consuming Large number of ledger books has to be maintained for each transaction Since the data are entered manually there are possibilities for errors. Data security is very minimal. There is a possibility for double entries. Since the transaction are mainly viz. paperwork updating of data is very hard. Generating the reports in the desired format is a tedious process. Reporting to the higher officials is not done through the proper channel. Data stored on papers is subject to loss due to physical damage.

11

HARDWARE AND SOFTWARE REQUIREMENTS

12

2.2 HARDWARE AND SOFTWARE REQUIREMENTS HARDWARE SPECIFICATION System type: IBM_PC Processor: INTEL PENTIUM Memory: 64MB Hard disk space: 1GB FDD: 1.44 MB Display: SVGA COLOR SOFTWARE SPECIFICATION Front end: Visual basic 6.0 Back end: Microsoft access Operating system: Window XP

13

ABOUT VISUAL BASIC

14

2.3 ABOUT VISUAL BASIC In 1975, the only 20-year-old Bill Gates and his good friend, Paul Allen develop Basic on the microprocessor. And then Basic became popular to computer players. Basic has become the first program language for many people since the personal computers became more and more popular. Along with the evolution of the computer technique, the pure writing output was replaced by graphically operational interface. The Microsoft Company announced Visual Basic1.0 in 1991. Much software likes to add a word Visual in front of their names, and Visual Basic is the pioneer among them. Why do we say visual to describe Basic. Because Visual Basic provides programmers many visual tools to design windows. These windows will be as same as the appearances when the programs are executing. The Integrated Development Environment The Visual Basic Integrated Development Environment (IDE) may be the single biggest reason for the vast popularity of Visual Basic. It provides everything you need to develop applications in an easy-to-use-and-learn Graphical User Interface (GUI) like many Windows applications; Visual Basic has several ways in which it can be opened. First, and probably the easiest way to access Visual Basic is through the Windows Start menu the exact path required to access this shortcut is dependent upon your installation and may differ on individual machines. Another option is to create a shortcut on your desktop, which will execute Visual Basic by double-clicking on it. Lastly, because Visual Basic sets up default associations when it is installed, you can also run it by double-clicking on files that end with a VBP (Visual Basic Project) extension. Pointer: The pointer is the only item on the Toolbox that isnt a Control. You can use it to select Controls that have already been placed on a Form. Picture Box: You use the Picture Box Control to display images in several different graphics formats such as BMP, GIF, and JPEG among others. Label: The Label Control is used to display text information that does not have a need to be edited by an end user. Its often displayed next to additional Controls such as text boxes to label their use. Text Box: You use Text Box Controls for user input. It may be the most widely used Control.

15

Frame: A Frame Control is typically used for containing other Controls and for dividing the GUI. Controls placed within a Frame cannot be displayed outside of it, and if the Frame is moved on the Form, the Controls are moved with it. Command Button: Much like the Text Box Control, Command Button Controls are used for input on almost every Form. They are used as standard buttons for input like OK or Cancel. Check Box: If you need the ability to select True/False or Yes/No, the Check Box Control is the correct Control. Option Button: The Option Button Control is similar to the Check Box Control in that it offers the ability to select an option. However, an Option Button Control is most often used when a group of options exists and only one item can be selected. All additional items are deselected when a choice is made. List Box: The List Box Control contains a list of items, allowing an end user to select one or more items. Combo Box: Combo Box Controls are similar to List Box Controls, but they only provide support for a single selection. Scroll Bars: The HScrollBar and VScrollBar Controls let you create scroll bars but are used infrequently because many Controls provide the ability to display their own Scroll Bars. Timer: The Timer Control is an oddity when it is compared to other Controls, in that it isnt displayed at runtime. Its used to provide timed functions for certain events. Drive List Box, Dir List Box, and File List Box: These Controls can be used individually, but many times are used together to provide dialog boxes (also known as Windows in this book) that display the contents of Drives, Directories, and Files. Shape, Line: The Shape and Line Controls are simply used to display lines, rectangles, circles and ovals on forms. Image: You can think of the Image Control as a lighter version of the Picture Box Control, and although it doesnt provide all of the functionality that the Picture Box Control does, it consumes fewer resources. As a result, you should use the Image Control whenever possible. Data: The Data Control is a component that allows you to connect one or more Controls on a form to fields in a database.

16

ABOUT MS-ACCESS

17

2.4 ABOUT MS-ACCESS Microsoft Access, also known as Microsoft Office Access, is a database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software-development tools. It is a member of the Microsoft Office suite of applications, included in the Professional and higher editions or sold separately. On May 12, 2010, the current version of Microsoft Access 2010 was released by Microsoft in Office 2010; Microsoft Office Access 2007 was the prior version. Microsoft Access stores data in its own format based on the Access Jet Database Engine. It can also import or link directly to data stored in other applications and databases. Software developers and data architects can use Microsoft Access to develop application software, and "power users" can use it to build software applications. Like other Office applications, Access is supported by Visual Basic for Applications, an object-oriented programming language that can reference a variety of objects including DAO (Data Access Objects), ActiveX Data Objects, and many other ActiveX components. Visual objects used in forms and reports expose their methods and properties in the VBA programming environment, and VBA code modules may declare and call Windows operating-system functions.

18

PROPOSED SYSTEM

19

2.5 PROPOSED SYSTEM The proposed system is developed after a detailed study about the requirements requested by the user. Proposed system is a computerized one, where all the limitations of manual system are compensated. The proposed system shall have the following features. It automatically update monthly amount. Error free and menu driven interface. Saves lot of time. Quick preparation of reports. Reports could be generated through printouts. Consistency in quality and delivery system Web based user friendly environments for personalized information Continuous up gradation and maintenance.

Purchase and Sales management system of Jewellery Management has simplified the working information and makes a user friendly environment, where the user is provided with much flexibility to manage effectively. It helps the retailer to generate desirable reports more quickly and also to produce better results. The objectives of the proposed system are Build a user friendly system Make retrieval & editing easy Updating records easily

The core elements of Jewellery Management are, Control section View section Print Reports

Control Section The control section involves three parts. One is Customer details, Supplier details and Order details. This module helps the retailer to enter the Customer details, supplier details and order details which give information about customer, supplier and orders of the items. With the help of this module, we can update the new Customers details day by day. View Section This module helps to view the following details and it generates reports:

20

Customer details Supplier Details Item repair Order bill Old gold sale Purchase bill Sale bill

Print Reports This module helps to print the following details: Order bill Purchase bill Sale bill

THE ADVANTAGES OF THE PROPOSED SYSTEM: Less time consumption and manpower Fast and economical Accurate calculation More interactive screens Large database capacity No separate bill book is necessary Easy report generating

21

SYSTEM DESIGN

22

3. SYSTEM DESIGN DATABASE: A database is an application that manages data and allows fast storage and retrieval of that data. DATABASE MANAGEMENT SYSTEM: A database management system (DBMS) is a software package designed to define, manipulate, retrieve and manage data in a database. A DBMS generally manipulates the data itself, the data format, field names, record structure and file structure. It also defines rules to validate and manipulate this data. DATA INDEPENDENCE: The ability to modify a scheme definition in one level without affecting a scheme definition in a higher level is called data independence. LOGICAL DATA INDEPENDENCE: The ability to modify the physical scheme without causing application programs to be rewritten PHYSICAL DATA INDEPENDENCE: The ability to modify the conceptual scheme without causing application programs to be rewritten NORMALIZATION: Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy and dependency. FIRST NORMAL FORM (1NF): is a property of a relation in a relational database. A relation is in first normal form if the domain of each attribute contains only atomic values, and the value of each attribute contains only a single value from that domain. SECOND NORMAL FORM (2NF): A table that is in first normal form (1NF) must meet additional criteria if it is to qualify for second normal form. Specifically: a table is in 2NF if and only if it is in 1NF and no non-prime attribute is dependent on any proper subset of any candidate key of the table. A non-prime attribute of a table is an attribute that is not a part of any candidate key of the table. THIRD NORMAL FORM (3NF): Cods definition states that a table is in 3NF if and only if both of the following conditions hold:

The relation R (table) is in second normal form (2NF) Every non-prime attribute of R is non-transitively dependent (i.e. directly dependent) on every superkey of R.

23

BOYCE CODD NORMAL FORM: A relational schema R is in BoyceCodd normal form if and only if for every one of its dependencies X Y, at least one of the following conditions holds

X Y is a trivial functional dependency (Y X) X is a superkey for schema R

24

DATA FLOW DIAGRAM

25

3.1 DATA FLOW DIAGRAM A data flow diagram (DFD) is a graphical representation of the "flow" of data through an information system, modeling its process aspects. Often they are a preliminary step used to create an overview of the system which can later be elaborated. DFDs can also be used for the visualization of data processing (structured design). A DFD shows what kinds of information will be input to and output from the system, where the data will come from and go to, and where the data will be stored. It does not show information about the timing of processes, or information about whether processes will operate in sequence or in parallel (which is shown on a flowchart).

26

ZERO LEVEL DFD

Purchase Admin Receipt

27

FIRST LEVEL DFD


Supplierdetails db

Jewellerdetails db

Supply Customerorder db

Jeweller purchas e

Order

Admin

Log in

Registra tion

Purchas e

Bill

Receipt

Customerdetails db Old gold sale

Customerbill db

Receipt

Oldgolddetails db

Item repair Receipt

Itemrepair db

28

SAMPLE INPUT SCREEN

29

3.2 SAMPLE INPUT SCREENS

30

31

32

SAMPLE DATABASE

33

3.3SAMPLE DATABASE 1. LOGIN DETAILS FIELD NAME


Username Password Text Text

DATATYPE

DESCRIPTION
Username Password

2. SUPPLIER DETAILS FIELD NAME DATATYPE


Supplier name Address 1 Address 2 Phone no City Text Text Text Number Text

DESCRIPTION
Name of the supplier Address Address Phone number Name of the city

3. CUSTOMER DETAILS FIELD NAME DATATYPE


Customer name Address 1 Address 2 Phone no City Text Text Text Number Text

DESCRIPTION
Name of the customer Address Address Phone number Name of the city

4. CUSTOMER ORDER DETAILS FIELD NAME DATATYPE


Item code Item type Gross weight Quantity Advance Order date Delivery date Text Text Number Number Number Date Date

DESCRIPTION
Code of item Type of item Gross wt No. of items Advance Date of order Date of delivery

34

5. ITEM REPAIR DETAILS FIELD NAME DATATYPE


Bill no Customer name Address Phone no Date Attender name Item code Item type Item wt App cost Delivery date Sl no Gross wt Pcs Extra wt Net wt Stone charge Making charge Handling charge Total amount Number Text Text Number Date Text Text Text Number Number Date Number Number Number Number Number Number Number Number Number

DESCRIPTION
Bill no Name of customer Customer address Phone no Date Attender name Item code Item type Item weight Application cost Date of delivery Serial number Gross weight Pieces Extra weight Net weight Stone charge Making charge Handling charge Total amount

35

5. OLD GOLD DETAILS FIELD NAME DATATYPE


Bill no Customer name Address Date Gold rate Sl no Item code Item type Quantity Total wt Total purchased amt Stone charge Loss Total amt Number Text Text Date Number Number Text Text Number Number Number Number Number Number

DESCRIPTION
Bill no Name of customer Address of customer Date Gold rate Serial number Code of item Type of item No of items Total weight Total purchased amt Stone charge Loss Total amt

6. PURCHASE BILLING DETAILS FIELD NAME DATATYPE


Bill no Customer name Customer address Date Gold rate Sl no Item code Item type Quantity Net wt Making charge Total amount Number Text Text Date Number Number Text Text Number Number Number Number

DESCRIPTION
Bill no Name of customer Customers address Date Gold rate Serial number Item code Type of item No of items Net weight Making charge Total amount

36

7. SALE BILL DETAILS FIELD NAME


Bill no Customer name Customer address Date Attender name Sl no Item code Item type Quantity Gross wt Stone wt Net wt Wastage wt Making charge Amount Total amount Text Text Date Text

DATATYPE

DESCRIPTION
Bill no Name of customer Customers address Date Attender name Serial number Item code Type of item No of items Gross weight Stone weight Net weight Wastage wt Making charge Amount Total amount

Number

Number Text Text Number Number Number Number Number Number Number Number

37

SAMPLE CODING

38

3.4 SAMPLE CODING FORM2 Option Explicit Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim rs1 As ADODB.Recordset Private Sub Combo1_Click () rs.MoveFirst While not rs.EOF If rs.Fields (0) = Combo1.Text Then Combo1.Text = rs.Fields (0) Text1.Text = rs.Fields (1) Text2.Text = rs.Fields (2) Text3.Text = rs.Fields (3) Text4.Text = rs.Fields (4) End If rs.MoveNext Wend End Sub

Private Sub Command2_Click () rs.AddNew rs.Fields (0) = Combo1.Text

39

rs.Fields (1) = Text1.Text rs.Fields (2) = Text2.Text rs.Fields (3) = Text3.Text rs.Fields (4) = Text4.Text rs.Update Combo1.AddItem rs.Fields (0) MsgBox "customer details created" End Sub Private Sub Command3_Click () rs.MoveFirst While not rs.EOF If rs.Fields (0) = Combo1.Text Then rs.Fields (0) = Combo1.Text rs.Fields (1) = Text1.Text rs.Fields (2) = Text2.Text rs.Fields (3) = Text3.Text rs.Fields (4) = Text4.Text End If rs.MoveNext Wend MsgBox "record updated" End Sub Private Sub Command4_Click ()

40

rs.MoveFirst While not rs.EOF If rs.Fields (0) = Combo1.Text Then MsgBox "deleted?" 'Combo1.RemoveItem rs.Fields (0) rs.Delete Combo1.Text = " " Text1.Text = " " Text2.Text = " " Text3.Text = " " Text4.Text = " " End If rs.MoveNext Wend End Sub

Private Sub Command5_Click () Combo1.Text = " " Text1.Text = " " Text2.Text = " " Text3.Text = " " Text4.Text = " " End Sub

41

Private Sub Form_Load () Set con = New ADODB.Connection Set rs = New ADODB.Recordset con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\jewellery\db1.mdb;Persist Security Info=False" con.Open Rs. Open "select * from Customerdetails", con, adOpenDynamic, adLockOptimistic While not rs.EOF Combo1.AddItem rs.Fields (0) rs.MoveNext Wend End Sub

Private Sub Text1_KeyPress (KeyAscii as Integer) KeyAscii = Asc (UCase (Chr (KeyAscii))) If KeyAscii >= vbKeyA And KeyAscii <= vbKeyZ Then Exit Sub Else MsgBox "only alphabets are allowed", vbInformation, "verification" KeyAscii = 0 End If End Sub Private Sub Text2_KeyPress (KeyAscii As Integer)

42

KeyAscii = Asc (UCase (Chr (KeyAscii))) If KeyAscii >= vbKeyA And KeyAscii <= vbKeyZ Then Exit Sub Else MsgBox "only alphabets are allowed", vbInformation, "verification" KeyAscii = 0 End If End Sub Private Sub Text3_KeyPress (KeyAscii as Integer) KeyAscii = Asc (UCase (Chr (KeyAscii))) If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then Exit Sub Else MsgBox "only integers are allowed", vbInformation, "verification" KeyAscii = 0 End If End Sub

Private Sub Text4_KeyPress (KeyAscii as Integer) KeyAscii = Asc (UCase (Chr (KeyAscii))) If KeyAscii >= vbKeyA And KeyAscii <= vbKeyZ Then Exit Sub Else

43

MsgBox "only alphabets are allowed", vbInformation, "verification" KeyAscii = 0 End If End Sub

FORM 4 Option Explicit Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim rs1 As ADODB.Recordset

Private Sub Combo1_Click () rs.MoveFirst While not rs.EOF If rs.Fields (0) = Combo1.Text Then Combo1.Text = rs.Fields (0) Text2.Text = rs.Fields (1) Text3.Text = rs.Fields (2) Text4.Text = rs.Fields (3) Text5.Text = rs.Fields (4) DTPicker2.Value = rs.Fields (5) DTPicker1.Value = rs.Fields (6) Text6.Text = rs.Fields (7)

44

End If rs.MoveNext Wend End Sub

Private Sub Command1_Click () Combo1.Text = " " Text2.Text = " " Text3.Text = " " Text4.Text = " " Text5.Text = " " Text6.Text = " " End Sub

Private Sub Command2_Click () rs.AddNew rs.Fields (0) = Combo1.Text rs.Fields (1) = Text2.Text rs.Fields (2) = Text3.Text rs.Fields (3) = Text4.Text rs.Fields (4) = Text5.Text rs.Fields (5) = DTPicker2.Value

45

rs.Fields (6) = DTPicker1.Value rs.Fields (7) = Text6.Text rs.Update Combo1.AddItem rs.Fields (0) MsgBox "customerorder details created"

End Sub

Private Sub Command3_Click () rs.MoveFirst While not rs.EOF If rs.Fields (0) = Combo1.Text Then rs.Fields (0) = Combo1.Text rs.Fields (1) = Text2.Text rs.Fields (2) = Text3.Text rs.Fields (3) = Text4.Text rs.Fields (4) = Text5.Text rs.Fields (5) = DTPicker2.Value rs.Fields (6) = DTPicker1.Value rs.Fields (7) = Text6.Text End If rs.MoveNext Wend

46

MsgBox "record updated" End Sub

Private Sub Command4_Click () rs.MoveFirst While not rs.EOF If rs.Fields (0) = Combo1.Text Then MsgBox "deleted?" 'Combo1.RemoveItem rs.Fields (0) rs.Delete Combo1.Text = " " Text2.Text = " " Text3.Text = " " Text4.Text = " " Text5.Text = " " Text6.Text = " " End If rs.MoveNext Wend End Sub

Private Sub Command5_Click () End

47

End Sub

Private Sub Form_Load () Set con = New ADODB.Connection Set rs = New ADODB.Recordset con.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\jewellery\db1.mdb;Persist Security Info=False" con.Open Rs. Open "select * from Customerorder ", con, adOpenDynamic, adLockOptimistic While not rs.EOF Combo1.AddItem rs.Fields (0) rs.MoveNext Wend DTPicker2.Value = Now DTPicker1.Value = Now End Sub

Private Sub Text2_KeyPress (KeyAscii as Integer) KeyAscii = Asc (UCase (Chr (KeyAscii))) If KeyAscii >= vbKeyA And KeyAscii <= vbKeyZ Then Exit Sub Else MsgBox "only alphabets are allowed", vbInformation, "verification"

48

KeyAscii = 0 End If End Sub Private Sub Text3_KeyPress (KeyAscii as Integer) KeyAscii = Asc (UCase (Chr (KeyAscii))) If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then Exit Sub Else MsgBox "only integers are allowed", vbInformation, "verification" KeyAscii = 0 End If End Sub Private Sub Text4_KeyPress (KeyAscii as Integer) KeyAscii = Asc (UCase (Chr (KeyAscii))) If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then Exit Sub Else MsgBox "only integers are allowed", vbInformation, "verification" KeyAscii = 0 End If End Sub Private Sub Text5_KeyPress (KeyAscii as Integer) KeyAscii = Asc (UCase (Chr (KeyAscii)))

49

If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then Exit Sub Else MsgBox "only integers are allowed", vbInformation, "verification" KeyAscii = 0 End If End Sub Private Sub Text6_KeyPress (KeyAscii As Integer) KeyAscii = Asc (UCase (Chr (KeyAscii))) If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then Exit Sub Else MsgBox "only integers are allowed", vbInformation, "verification" KeyAscii = 0 End If End Sub

50

SAMPLE REPORTS

3.5 SAMPLE REPORTS

51

52

53

CONCLUSION

54

4. CONCLUSION The system Jewellery Management system deals with purchase and sales processing of Jewellery shop. This system has been developed to satisfy all the proposed requirements. The process of recording details about supplier, item, Billing and customers is more simple and easy. The system reduces the possibility of errors to a great extent and maintains the data in an efficient manner. User friendliness is the unique feature of this system. The system generates the reports as and when required. The system is highly interactive and flexible for further enhancement. The coding is done in a simplified and easy to understandable manner so that other team trying to enhance the project can do so without facing much difficulty. The documentation will also assist in the process as it has also been carried out in a simplified and concise way.

55

BIBLIOGRAPHY

56

5. BIBLIOGRAPHY
1. Software engineering and visual application Authors: H.K Gundu rao N.S Manjunath M.N Nachappa 2. Visual basic 6.0 programming-internet source (www.google.com) 3. MS Access internet source (www.google.com)

Você também pode gostar