Sie sind auf Seite 1von 57

INDEX

0
Sr. Contents
No.
1 Introduction
1.1 Introduction to Café Coffee Day 1
1.2 Need
Preface
2
Existing System 3
Drawback of the Existing System 4
2 Introduction to Visual Basic 5
3 Introduction to Access Database 7
4 Need of Computerization 9
5 User requirement 10
6 Process system 12
7 System requirement 13
8 Requirement analysis & specification 16
9 Table Structure 18
10 Data Flow Diagram 19
11 E-R Diagram 20
12 Source Code 22
13 Screen layout 36
14 User interface 45
15 Testing processer 48
16 Report 50
17 System & limitation 51
18 Enhancement 52
19 Scope of project 53
20 Conclusion 54
21 Bibliography 55

INTRODUCTION TO
CAFÉ COFFEE DAY SYSTEM

1
The Café Coffee Day System version 1.0 is a very interactive and
fast software which really lets user to save his time and keeps him off
from all the tedious jobs for finding records and doing all the stuff with
Coffee Shop Bill.
The most striking feature of the software is that it has been
provided with a very simple and fast procedure to buy coffee and
checking up for the coffee available it can buy a Coffee. In this procedure
the customer will not have to do anything and not to get bothered about
filling up all the above information, only the user will do all the work.
In the same way the software has been provided with the
management of all the Coffee and all the account information of Coffee
shop. It can find out the information of the Coffee just by clicking
product list button.

2
PREFACE

Developing and implementing this system for Momenyz Boutique


is challenging process in order to live with current modern technological
age we have to follow some strategies and guidelines.The actual process
of duplication & enhancement of a manual system is that the new a
system performs faster, better & much more than strategies & guidelines.

At every step there are problems of analysis, login. coding, testing


and creating those for automation change those fears of the unknown that
emotional wills the machine replacement .The website developed is
totally user friendly and implies a m

odular approach and caters to positive section. Every word of


program is vitally placed and linked. Man has been continuously
searching for a more comfortable way of life. The application area of
computer is endless like the human imagination and enthusiasm.

Revolution is getting to uplift human life by standard and comforts.


Works are being standardized and bull works are being reduced giving
more productivity.

3
EXISTINGSYSTEM

Manual System Was Carried Out As Following Manner:

The existing system around many boutiques & clothing shops


which deals with the sale of clothes is manual system.

If any customer come to the shop, he/she is displayed all the clothes
available in the boutique.

If any item is purchased by the customer in the boutique.

The bill amount is collected from the customer and the


original bill give to customer.

Carbon copy of bill is kept with the organization and then


entries are made in bill registers and total monthly collection is
calculated from the register.

4
DRAWBACKS OF EXISTING SYSTEM

The present system requires of lot of manpower and there may be


delay for some work in case of absence of employee.

The organization may loose there data because of :

1. Large numbers of registers to be maintained.


2. It is very time consuming & tedious work, since all calculations are
to be done manually for every garment..

3. Lack of manpower.

4. Automatic updating of information is not possible.

5. Inconvenience in maintaining of registers or records in cupboards.

6. Organization may find problem in case living of some employee.

7. It is very hectic and lengthy job to find a particular


record as the registers containing that particular record may be
full of thousands of records.

Thus existing system has various problem , which leads towards need
of computerization.

5
INTRODUCTION TO VISUAL BASIC

Visual Basic is a powerful programming system for developing


sophisticated, graphical applications for Microsoft Windows
environment. Coding in GUI environment is quite a transition to
traditional, linear programming methods where the user is guided through
a linear path of execution and is limited to a small set of operations.

Visual Basic 6.0 for Windows requires at least Microsoft Windows


95 on words. Visual Basic supports SDI (Single Document Interface) and
MDI (Multiple Document Interface) application for software
development.

Visual Basic was developed from the BASIC programming


language. In the 1970s, Microsoft started developing ROM-based
interpreted BASIC for the early microprocessor based computers. In
1982, Microsoft QuickBasic revolutionized Basic and was legitimized as
a serious development language for MS-DOS environment. Later on,
Microsoft Corporation created the enhanced version of BASIC called
Visual Basic for Windows.

Visual Basic 6 provides you with the capability of building


OLEDB simple providers-that is, components that can be registered in the
system and that can be used by standard data sources to connect to data in
a proprietary format. This capability can be useful in countless situations.
For example, during the porting of a legacy application from MS-DOS to
Microsoft Windows, you often need to continue to read data in the old
format. Thanks to a custom OLE DB simple provider, You can access the
old data from the new program using standard syntax and you can switch

6
to a standard (and more efficient) OLE DB provider when the porting of
the code is complete and You’re ready to convert the database data to
SQL Server or another major database engine for which a standard OLE
DB provider exists.

Before you get too enthusiastic, keep in mind that Visual Basic
doesn’t allow you to write full-fledged OLE DB providers such as those
that Microsoft has created for the Microsoft Jet Database Engine, SQL
Server, or Oracle. An OLE DB simple provider doesn’t support
transactions, Command objects, and batch updates, just to mention a few
of its limitations. Another problem with these providers is that they don’t
expose information about the structure of the data: They can return the
name of a column, but they don’t expose a column’s data type or
maximum length. OLE DB Simple Providers are especially good at
exposing table data that can be stored in an array in memory. These
restrictions don’t keep you from doing interesting things with OLE DB
simple providers, however. For example, you can create a provider that
accesses Excel or Microsoft Outlook Programs, or from any other
program that you can control through Automation.

7
INTRODUCTION TO ACCESS DATABASES

A database is a collection of related and ordered information,


organized in such a way that information can be accessed quickly and
easily. A database can consist of one or more tables of information that
are related in some way. A Database Management System (DBMS) is a
computer based system to manage a database, or a collection of databases
or files.

Microsoft Access 2000 is a DBMS package from Microsoft. It is


one of the products in the Microsoft Office 2000 suite. MS-ACCESS
supports RDBMS features like setting Primary key, relations between
more than one table, designing queries, reports.
 A primary key is to be set to a table, which uniquely identifies each
record.
 A query that displays specified columns and data from a table(s).

MS-ACCESS supports SQL – Structured Query Language which is


used to manipulate data, retrieve data from more than one tables or for
query designing.

The three basic data functions provided by SQL are:

Data Definition Language (DDL): Consists of commands to create the


objects such as tables, views, indexes etc.

Data Manipulation Language (DML): Uses for query , insertion ,


deletion and updating of data stored in the database.

8
Data Control Language (DCL): this is used for controlling data and
their access to the database.
A database is a collection of information that’s related to a
particular subject or purpose, such as tracking customer orders or
maintaining a music collection. If your database isn’t stored on a
computer, or only parts of it are, you may be tracking information from a
variety of sources that you’re having to coordinate and organize yourself.
For example, suppose the phone numbers of your suppliers are
stored in various locations: in a card file containing supplier phone
numbers, in product information files in a file cabinet, and in a
spreadsheet containing order information. If a supplier’s phone number
changes, you might have to update that information in all three places. In
a database, however, you only have to update that information in one
place- the supplier’s phone number is automatically updated wherever
you use it in the database.

9
NEED OF COMPUTERIZATION

The most important feature of computerization is that it saves time


and performs all the operations very fast i.e. within a fraction of second.
When really leads towards the greater development?

The next and also an important feature is that it reduces the man
power and makes the job easy to use for the user.

The computerization deals to the accuracy which avoids certain


errors and miss place of records of the customers as well as staffs.

The storage capacity of the records increases and can keep the
records for the long time of period with misplacing the records.

The computerization also gives a sophisticated look to the Hotel


which is using computer.

10
USER REQUIREMENT

1) Technical Requirement :

a) Hardware Requirement: we require 128 MB RAM for VB


and MS-ACCESS. 20GB Hard Disk, Pentium IV or
equivalent processor to run project efficiently.
b) Software Requirement: MS-Visual Basic 6.0 , MS-ACCESS
2000 , OFFICE-2000 or OFFICE –XP.
c) Operating System: Window- 95 or above.
2) Economical Requirement :

a) We need stationary like printing papers for reports, floppy or


cd for back up of data, ink for printer which is included in
cost of project.
3) Environmental Requirement :

a) Staff must have knowledge of how to operate computer.


b) Printing of data – reports, to save data, to get back up copies
on floppy or CD. This training must be given to staff
member
4) Operational Feasibility:-

The system is very beneficial as meets the office and user


operating requirements. Simply stated, the feasibility test
assures that the system will work perfectly when it is developed
and installed. The important points to be considered are

 There is sufficient support for the system from the management as


well as end user.
 The users are very helpful and involved in the planning &
development of the system. This reduces the chances of resistance

11
to the system a change in general and increased the likelihood of
successful project.
 The simple GUI with a user – friendly data screens make the user
completely free to work with the system.

12
ROPOSED SYSTEMP

Due to computerization Internet to home services will enjoy


following advantages:

 Prompt services
 Online data entry facility

 Online report generation

 Paperless office

 Ultra modern technical environment

 Helpful in future plans

 Increased speed of work

 Reduction of manpower

 Standard qualified work

 Attractive representation and many more

In this way proposed system will help the Internet to home to


overcome all the problems occurred due to current manual system.

13
SYSTEM REQUIREMENT

System testing is actually a series of different tests whose primary


purpose is to fully exercise the computer-based system. Although
each test has a different purpose, all work to verify that all system
elements have been properly integrated and perform allocated
functions. During testing I tried to make sure that the product does
exactly what is supposed to do. Testing is the final verification and
validation activity within the organization itself. In the testing stage,
I try to achieve the following goals; to affirm the quality of the
product, to find and eliminate any residual errors from previous
stages, to validate the software as a solution to the original problem,
to demonstrate the presence of all specified functionality in the
product, to estimate the operational reliability of the system. During
testing the major activities are concentrated on the examination and
modification of the source code. The various system-testing
methodologies such as Recovery testing, Stress testing and
Performance testing are carried out for testing the application.

The stages of testing processes are:

 Unit Testing

Individual components are tested to ensure that they operate correctly.


Each component is tested independently, without other system
component.

 Module testing

14
A module is a collection of dependant components such as on
object class, an abstract data type or some looser collection of
procedures and function .

A module encapsulates related components so can be tested without


other system modules.

 Sub-module testing

This phase involves testing collections of modules, which have been


integrated into sub-systems. Sub-systems may be independently
designed and implemented. The most common problems that arise in
the large software systems are sub-system interface mismatches. The
subsystem test process should therefore concentrate on the detection of
interface errors by rigorously exercising these interfaces.

 Acceptance testing

This is the final stage in the testing process before the system is
accepted for operational use. The system is tested with data supplied
by the system procurer rather than simulated test data. Acceptance
testing may reveal errors and omission in the system requirement
definition because the real data exercises the system in different
ways from the test data. Acceptance testing may also reveal the
requirement problems where the system’s facilities do not really meet
the user’s needs or the system performance is acceptable.

15
REQUIREMENT ANALYSIS & SPECIFICATION

Requirements are nothing but the ideas in the mind of


customer or client. Requirement can also be defined as a condition of
capability needed by the user to solve the problems or to achieve the
objects.

The requirement phase translates the ideas in themind of


customer (input) into the document called “Software Requirement
Specifications”. (srs) output.

The basic goal of requirement phase is to produce SRS, which


explains the complete external behavioure of the proposed software.

The process of the software analisys & specification gives


additional ideas to the client about what is needed from the system.

Need Of Software requirement & specification :-

SRS is needed for the following reasons-

1. Any software system starts with the needs of client afterwords


these needs are converted into the system that used by the end
users. There are thee main parties who are interested in the new
system they are as- Client, Developer, Enduser.
2. SRS establishes the base for the agreement between client &
supplier.
3. SRS provides a reference for the validation of final
product.Without proper SRS there is no way to determine the
actual order & to convince the client that all requirements have
been fulfilled.

16
4. The introduction of SRS states the goals & objectives of software

Components Of SRS –

SRS is the primary document which is generated after customer


communication in order to be complete any SRS should have following
components.

a. Functionality requirements
b. Reference requirements
c. Design constraints
d. External interface

17
TABLES

LOGIN TABLE

Field Name Data Type Constraints Description


USERNAME TEXT(30) Primary Key Should be Same
PASSWD TEXT(20) Should be Should be
compulsory compulsory

PRODUCT MASTER

Field Name Data Type Constraints Description


PROD NO TEXT(5) Primary Key Unique no for
each item
PROD NAME TEXT(30) Should be Name of the
compulsory item
STOCK QTY NUMBER Should be Current stock
compulsory
RATE NUMBER Should be Rate per unit
compulsory
CATG TEXT(15) Should be Company name
compulsory

BILL MASTER

Field Name Data Type Constraints Description


BILLNO TEXT(5) Primary Key Unique bill no.
BILL DATE DATE Should be Bill date should
compulsory be fill

18
DATA FLOW DIAGRAM

19
E R - DIAGRAM

Prod PRODNAM
E
no

BILL DATE

STOCK
QTY BILLN
O

PRODUCT PRODNO
SALEQTY

RATE BILL

RATE

CUST BUYS
PRODUCT

20
SOURCE
CODE

LOGIN FORM CODING


Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim cmd As New ADODB.Command
Private Sub CmdCancel_Click()
con.Close
Unload Me
End Sub

Private Sub CmdLogin_Click()


On Error Resume Next
Dim s As String
Dim unm As String
Dim pwd As String
unm = Trim(txtusername.Text)
pwd = Trim(txtpassword.Text)
If Len(unm) = 0 Or Len(pwd) = 0 Then
MsgBox "username or password is invalid", vbCritical
Exit Sub
End If
s = "select * from Login where USERNAME = '" & unm & "' and
PASSWORD = '" & pwd & "'"
rs.Open s, con, adOpenDynamic, adLockOptimistic, adCmdText
rs.MoveFirst
If Not rs.EOF Then
con.Close
Unload Me
MainMDIFrm.Show
Else
MsgBox "invalid user name or password ", vbCritical, "Error"
txtusername.Text = ""
txtpassword.Text = ""
21
txtusername.SetFocus
End If
rs.Close
End Sub
Private Sub Form_Load()
txtpassword = ""
txtusername = ""
On Error Resume Next
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & App.Path & "\Cafe.mdb;Persist Security Info=False"
con.Open
End Sub

Private Sub txtpassword_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
CmdLogin.SetFocus
CmdLogin_Click
End If
End Sub
Private Sub txtusername_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtpassword.SetFocus
End If
End Sub

22
MDIForm

End Sub

Private Sub mnuabout_Click()


Frmabout.Show
End Sub

'THE MDI FORM CODING


Private Sub mnubillentry_Click()
FrmBillentry.Show
End Sub

Private Sub mnulogout_Click()


X% = MsgBox(" CONFIRM EXIT", vbInformation + vbYesNo,
"Coffee Cafe Day-EXIT CONFORM")
If (X% = vbYes) Then
End
Else
MainMDIFrm.Show
End If
End Sub

Private Sub mnuprodEntry_Click()


Product_Entry.Show
End Sub

Private Sub mnuprodlist_Click()


Product_List.Show
End Sub

Private Sub Timer1_Timer()


Label2.Left = Label2.Left + 80
If Label2.Left > MainMDIFrm.Width Then Label2.Left = 0 -
Label2.Width
Label2.ForeColor = Rnd(100) * RGB(100, 100, 100)
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As


MSComctlLib.Button)
Select Case Button.Key

23
Case "Product_Entry"
mnuprodEntry_Click

Case "Bill_Entry"
mnubillentry_Click

Case "Product_List"
mnuprodlist_Click

Case "Logout"
mnulogout_Click

Case "About"
mnuabout_Click

End Select
End Sub

24
THE PRODUCT ENTRY CODING
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim rs2 As New ADODB.Recordset
Dim cmd As New ADODB.Command
Dim addflag As Boolean
Dim cancelflag As Boolean
Private Sub cmdadd_Click()
On Error GoTo chkerr
Dim s As String
cancelflag = True
txtProdno.Text = ""
txtprodname.Text = ""
txtstockqty.Text = ""
txtrate.Text = ""
txtcatg.Text = ""
ButtonDisabled
addflag = True
txtProdno.Locked = True
s = "select max(PRODNO) from PRODUCTMASTER"
rs2.Open s, con, adOpenDynamic, adLockOptimistic, adCmdText
rs2.MoveFirst
If Not rs2.EOF Then
txtProdno.Text = rs2.Fields(0) + 1
GoTo bottom
End If
chkerr:
txtProdno.Text = 1
bottom:
rs2.Close
txtprodname.SetFocus
End Sub
Private Sub CmdCancel_Click()
On Error Resume Next
ButtonEnabled
addflag = False
rs.MoveFirst
ShowRecord
End Sub
Private Sub cmdExit_Click()
cancelflag = True

25
con.Close
Unload Me
End Sub
Private Sub cmddel_Click()
On Error GoTo chkerr
Dim str As String
ans = MsgBox(" Delete ? ", vbYesNo + vbDefaultButton2 +
vbCritical, " Product Deletion")
If ans = vbYes Then
str = " delete from PRODUCTMASTER where PRODNO = " &
Val(txtProdno.Text)
cmd.ActiveConnection = con
cmd.CommandType = adCmdText
cmd.CommandText = str
cmd.Execute
rs.Requery
rs.MoveNext
ShowRecord
End If
GoTo enddata
chkerr:
MsgBox " Can not delete "
enddata:
End Sub
Private Sub CmdFirst_Click()
On Error Resume Next
rs.MoveFirst
ShowRecord
End Sub
Private Sub CmdLast_Click()
On Error Resume Next
rs.MoveLast
ShowRecord
End Sub
Private Sub CmdNext_Click()
On Error Resume Next
rs.MoveNext
If rs.EOF Then rs.MoveLast
ShowRecord
End Sub
Private Sub cmdPrev_Click()
On Error Resume Next
rs.MovePrevious

26
If rs.BOF Then rs.MoveFirst
ShowRecord
End Sub
Private Sub cmdsave_Click()
On Error Resume Next
Dim str As String
If addflag = True Then
str = "insert into PRODUCTMASTER values (" & Val(txtProdno.Text)
& ",'" & UCase(txtprodname.Text) & "'," & txtstockqty.Text & " , " &
Val(txtrate.Text) & ",'" & UCase(txtcatg.Text) & "') "
Else
str = "update PRODUCTMASTER set Prodname ='" &
UCase(txtprodname.Text) & _
"' , STOCKQTY = " & Val(txtstockqty.Text) & _
" , RATE = " & Val(txtrate.Text) & _
" , Category = '" & UCase(txtcatg.Text) & _
"' where PRODNO=" & Val(txtProdno.Text)
End If

cmd.ActiveConnection = con
cmd.CommandType = adCmdText
cmd.CommandText = str
cmd.Execute
rs.Requery
addflag = False
ButtonEnabled
txtProdno.Locked = True
End Sub
Private Sub cmdupdate_Click()
ButtonDisabled
txtProdno.Locked = True
End Sub
Private Sub Form_Load()
On Error Resume Next
cmdsave.Enabled = False
cmdCancel.Enabled = False
addflag = False
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & App.Path & "\Cafe.mdb;Persist Security Info=False"
con.Open
rs.Open "PRODUCTMASTER", con, adOpenDynamic,
adLockOptimistic, adCmdTable
rs.MoveFirst

27
ShowRecord
End Sub
Public Sub ShowRecord()
On Error Resume Next
txtProdno.Text = rs.Fields("PRODNO")
txtprodname.Text = rs.Fields("PRODNAME")
txtstockqty.Text = rs.Fields("STOCKQTY")
txtrate.Text = rs.Fields("RATE")
txtcatg.Text = rs.Fields("Category")
End Sub
Public Sub ButtonDisabled()
CmdFirst.Enabled = False
CmdNext.Enabled = False
cmdPrev.Enabled = False
CmdLast.Enabled = False
cmdadd.Enabled = False
cmdupdate.Enabled = False
cmddel.Enabled = False
cmdsave.Enabled = True
cmdCancel.Enabled = True
End Sub
Public Sub ButtonEnabled()
CmdFirst.Enabled = True
CmdNext.Enabled = True
cmdPrev.Enabled = True
CmdLast.Enabled = True
cmdadd.Enabled = True
cmdupdate.Enabled = True
cmddel.Enabled = True
cmdsave.Enabled = False
cmdCancel.Enabled = False
End Sub

Private Sub txtprodname_Validate(Cancel As Boolean)


txtprodname.Text = Trim(txtprodname.Text)
If cancelflag = False Then
If Len(txtprodname.Text) = 0 Then
MsgBox "Please enter Product Name "
Cancel = True
End If
End If
End Sub
Private Sub txtstockqty_Validate(Cancel As Boolean)

28
txtstockqty.Text = Val(txtstockqty.Text)
If Val(txtstockqty.Text) < 0 Then
MsgBox "Please enter stock "
Cancel = True
End If
End Sub
Private Sub txtstockqty_KeyPress(KeyAscii As Integer)
If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then
KeyAscii = 0
End If
End Sub

29
THE PRODUCTLIST FORM CODING TO SHOW
PRODUCTLIST ON GRID

Private Sub Form_Load()


Grid.Rows = 1

Grid.ColWidth(0) = 1600
Grid.ColWidth(1) = 2500
Grid.ColWidth(2) = 2500
Grid.ColWidth(3) = 1500
Grid.ColWidth(4) = 2000

Grid.TextMatrix(0, 0) = "PRODUCT NO"


Grid.TextMatrix(0, 1) = "PRODUCT NAME"
Grid.TextMatrix(0, 2) = "STOCK QUANTITY"
Grid.TextMatrix(0, 3) = "RATE"
Grid.TextMatrix(0, 4) = "CATEGORY"

Dim con As New ADODB.Connection


Dim rs As New ADODB.Recordset
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
App.Path & "\Cafe.mdb;Persist Security Info=False"
rs.Open "PRODUCTMASTER", con, adOpenDynamic,
adLockBatchOptimistic

n=1
While rs.EOF = False
Grid.Rows = Grid.Rows + 1
Grid.TextMatrix(n, 0) = rs!PRODNO
Grid.TextMatrix(n, 1) = rs!PRODNAME
Grid.TextMatrix(n, 2) = rs!STOCKQTY
Grid.TextMatrix(n, 3) = rs!rate
Grid.TextMatrix(n, 4) = rs!Category

rs.MoveNext
n=n+1
Wend
rs.Close
con.Close
End Sub

30
Private Sub prodlistClose_Click()
Unload Me
End Sub

31
New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim rs2 As New ADODB.Recordset
Dim rs3 As New ADODB.Recordset
Dim cmd As New ADODB.Command
Dim pno As Integer
Dim rowno As Integer
Dim closeflag As Boolean

Private Sub cmbprodname_Click()


Dim s As String
Dim q As Integer
txtqty.Text = ""
s = " select * from PRODUCTMASTER where PRODNAME = '" &
cmbprodname.Text & "'"
rs2.Open s, con, adOpenDynamic, adCmdText
txtrate.Text = rs2.Fields("RATE")
pno = rs2.Fields("PRODNO")
txtstockqty.Text = rs2.Fields("STOCKQTY")
rs2.Close
cmdselect.Enabled = True
End Sub
Private Sub cmdclose_Click()
closeflag = True
con.Close
Unload Me
'MDIFormIceCream.cmdbill.BackColor = &H80FF&
'MDIFormIceCream.cmdbill.BackColor = &H80FF&
End Sub
Private Sub cmdnewbill_Click()
On Error GoTo chkerr
rowno = 1
MSHFlexGrid1.Clear
MSHFlexGrid1.Rows = 2
txtqty.Text = ""
txtrate.Text = ""
txtstockqty.Text = ""
Call productlist
Call gridformat
txtbilldate.Text = Format(Now, "dd-mmm-yyyy hh:mm:ss")
rs2.Open "select max(BILLNO) from BILLMASTER", con,
adOpenDynamic, adLockOptimistic, adCmdText

32
rs2.MoveFirst
If Not rs2.EOF Then
txtbillno.Text = rs2.Fields(0) + 1
End If
GoTo enddata
chkerr:
txtbillno.Text = 1
enddata:
rs2.Close
End Sub
Private Sub cmdsave_Click()
On Error Resume Next
Dim str As String
Dim ctr As Integer
Dim billno As Integer
Dim pno As Integer
Dim qty As Integer
Dim rate As Integer
Dim dt As Date
ctr = 1
billno = Val(txtbillno.Text)
dt = Format(txtbilldate.Text, "dd-mmm-yyyy hh:mm:ss")
rs.Open "BILLMASTER", con, adOpenDynamic, adLockOptimistic,
adCmdTable
str = "insert into BILLMASTER values (" & Val(txtbillno.Text) & ",'" &
dt & "')"
cmd.ActiveConnection = con
cmd.CommandType = adCmdText
cmd.CommandText = str
cmd.Execute
rs.Requery
rs.Close
rs2.Open "BILLDETAIL", con, adOpenDynamic, adLockOptimistic,
adCmdTable
rs3.Open "PRODUCTMASTER", con, adOpenDynamic,
adLockOptimistic, adCmdTable
Do While ctr < rowno
pno = MSHFlexGrid1.TextMatrix(ctr, 1)
qty = MSHFlexGrid1.TextMatrix(ctr, 3)
rate = MSHFlexGrid1.TextMatrix(ctr, 4)
str = " insert into BILLDETAIL values ( " & billno & " , " & pno & " , "
& qty & " ," & rate & " ) "
cmd.ActiveConnection = con

33
cmd.CommandType = adCmdText
cmd.CommandText = str
cmd.Execute
rs2.Requery
str = "update PRODUCTMASTER set STOCKQTY = STOCKQTY - "
& qty & " where PRODNO = " & pno
cmd.ActiveConnection = con
cmd.CommandType = adCmdText
cmd.CommandText = str
cmd.Execute
rs3.Requery
ctr = ctr + 1
Loop
rs2.Close
rs3.Close
MsgBox " Bill Print...", vbInformation, "Print Bill"
On Error GoTo chkerr
DataEnvironment1.Command4 billno
DataReportBillPrint.Show vbModal
GoTo last
chkerr:
DataEnvironment1.Connection1.Close
DataEnvironment1.Connection1.Open
DataEnvironment1.Command4 billno
DataReportBillPrint.Show vbModal
last:
cmdsave.Enabled = False
cmdnewbill.SetFocus
End Sub
Private Sub cmdselect_Click()
Dim s As String
Dim pno, qty, rate As Integer
Dim ctr, amt As Integer
ctr = 1
amt = 0
If Len(txtqty.Text) = 0 Then
MsgBox " Enter Qty ", vbInformation, "COFFEE Qty "
txtqty.SetFocus
Exit Sub
End If
s = " select * from PRODUCTMASTER where PRODNAME = '" &
cmbprodname.Text & "'"
rs2.Open s, con, adOpenDynamic, adLockOptimistic, adCmdText

34
rs2.MoveFirst
pno = rs2.Fields("PRODNO")
rs2.Close
MSHFlexGrid1.TextMatrix(rowno, 0) = rowno
MSHFlexGrid1.TextMatrix(rowno, 1) = pno
MSHFlexGrid1.TextMatrix(rowno, 2) = cmbprodname.Text
MSHFlexGrid1.TextMatrix(rowno, 3) = txtqty.Text
MSHFlexGrid1.TextMatrix(rowno, 4) = txtrate.Text
MSHFlexGrid1.TextMatrix(rowno, 5) = Val(txtqty.Text) *
Val(txtrate.Text)
Do While ctr <= rowno
qty = MSHFlexGrid1.TextMatrix(ctr, 3)
rate = MSHFlexGrid1.TextMatrix(ctr, 4)
amt = amt + (qty * rate)
ctr = ctr + 1
Loop
txtbillamount.Text = amt
rowno = rowno + 1
MSHFlexGrid1.Rows = MSHFlexGrid1.Rows + 1
cmdsave.Enabled = True
End Sub
Private Sub Form_Load()
On Error Resume Next
cmdsave.Enabled = False
cmdselect.Enabled = False
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & App.Path & "\Cafe.mdb;Persist Security Info=False"
con.Open
'Call productlist
closeflag = False
'Call gridformat
Call cmdnewbill_Click
End Sub
Private Sub productlist()
On Error Resume Next
Dim s As String
s = "select * from productmaster where stockqty > 0 "
rs2.Open s, con, adOpenDynamic, adLockOptimistic, adCmdText
cmbprodname.Clear
rs2.MoveFirst
Do While Not rs2.EOF
cmbprodname.AddItem rs2.Fields("prodname")
rs2.MoveNext

35
Loop
rs2.Close
End Sub
Private Sub gridformat()
MSHFlexGrid1.Cols = 6
MSHFlexGrid1.ColWidth(0) = 800
MSHFlexGrid1.ColWidth(1) = 1500
MSHFlexGrid1.ColWidth(2) = 2400
MSHFlexGrid1.ColWidth(3) = 1000
MSHFlexGrid1.ColWidth(4) = 1000
MSHFlexGrid1.ColWidth(5) = 1500
MSHFlexGrid1.TextMatrix(0, 0) = "Sr No"
MSHFlexGrid1.TextMatrix(0, 1) = "Product No"
MSHFlexGrid1.TextMatrix(0, 2) = "Product Name "
MSHFlexGrid1.TextMatrix(0, 3) = "Qty"
MSHFlexGrid1.TextMatrix(0, 4) = " Rate"
MSHFlexGrid1.TextMatrix(0, 5) = " Amount"
End Sub
Private Sub txtqty_KeyPress(KeyAscii As Integer)
If Not ((KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then
KeyAscii = 0
End If
End Sub
Private Sub txtqty_Validate(Cancel As Boolean)
Dim a As Integer
Dim stk As Integer
stk = Val(txtstockqty.Text)
a = Val(txtqty.Text)
If closeflag = False Then
If a <= 0 Then
MsgBox " sale qty can not be <=0 ", vbCritical
Cancel = True
End If
If a > stk Then
MsgBox " Not enough stock , order <= " & stk, vbCritical
Cancel = True
End If
End If
End Sub

36
SCREENS
LAYOUT

37
LOGIN WINDOW:

This form gives the detail of login window.

LOGIN WINDOW:

38
MDI FORM:

This form gives the detail of Product entry form, Bill entry
form, Bill Report, Product list form & about the software developer & its
version detail.

MDI FORM:

39
PRODUCT MASTER FORM:

This form gives information about product stock, its price, Product
category, Product number. It also provides Updating in product Stock,
product rates & its category, user can add, save, or delete the product
from available.

PRODUCT MASTER FORM:

40
PRODUCT LIST FORM:

It shows all the detail’s about product’s available.

PRODUCT LIST FORM:

41
SOFTWARE INFORMATION FORM:

This form shows all details about the software. It provides


the information about software developers & software version
details.

SOFTWAR INFORMATION FORM:

42
BILL ENTRY FORM:

This form provides the platform to enter the entry of selling all the
product’s to customer & provides bill generating platform. Here fill’s all
the detail that user have been purchased product.

BILL ENTRY FORM:

43
BILLING FORM:

44
BILL REPORT FORM:

This is the bill report, which will be providing to the customer. This

report shows the entire purchased product by customer, product quantity

& total amount bill.

BILL REPORT FORM:

45
USER INTERFACE

System is developed in VB 6.0. The user manual is provided


for the quick references to the user. The user manual also gives a
compete guidance about using the system to the end user. The user
manual consists of different options provided to the system.

To start up with the project welcome screen appears to


proceed further click on the go button.

Main Menu:-

 Enter
 Forms

 Reports

 Help

If the option master menu is selected the following sub menu


appears on the screen.

1) Enter:-

 Login

 Exit

On clicking login we make the login entry and proceed with the
project further , clicking exit we get back to the original state . If the
option form menu is selected then following sub menu appears on
the screen.

Form:-
46
 Data entry screen for Computer Entry
 Data entry screen for Service Entry

 Data entry screen for Bill Entry

When we start with form menu we get the details of entry screen for
Computer entry, Service entry, Bill entry.

If the option Report menu is selected then following sub menu appears on
the screen.

2) Report:-

 Computer Master Report

 Service Master Report

 Service Wise Report

 Bill Number Wise Report

 Computer Wise Daily Collection

 Computer Wise Monthly Collection

On clicking on report menu we get the information about ticket


rate, tour, vehicle, vehicle wise information and city wise tour
information.

If the option Help menu is selected then following sub menu


appears on the screen.

47
3) Help:-

 About Software

On clicking the Help menu we get information about the software.

POST IMPLEMENTATION

Implementation:

While implementing the system, a proper training is given to the


end user depending on the nature of the system. Conversation takes
place at the training time of the user or later on.

System Testing helps in checking the accuracy and readiness of the


system as how update and retries the data from the new files. Once
the programs are available , test data is read from the computer and
processing takes place against the files provided for the testing.

If the program is successful then list data is entered in it otherwise


a diagnostic procedure is used to correct the errors.

In most of conversions of parallel run is conducted where the new


system simultaneously. As such this method is costly but it provides
added assurance against the errors in the candidate system and also
gives the staff an opportunity to give experience through operations.
In any guess after the candidate system provides itself better than
the old system is phased out.

48
TESTING PROCEDURE

 Recovery Testing

In this test the system is tested by forcing it to fail in a Varity of


ways and verifies that the recovery is properly performed. The re-
initialization, data recovery, and restart are each evaluated for
correctness.

 Stress Testing

In this test the application is tested in a manner that the application is


demanding resources in an abnormal manner. The application is tested for
maximum memory usage. The boundary conditions are also tested for
arrays and other data structures used in the system.

 Performance Testing

Performance testing for the application is performed for finding the actual
run-time performance. Time taken for search and locate the required data
is tested. The data conversion accuracy and speed for the converter tool is
also tested. Connectivity and data transfer performance for live update
facility of the application is tested by using test data sets provided by the
system testing specialists of the company.

 User Acceptance Testing

User acceptance testing is the moment at which we prove that we


have really done what we promised to do. This testing Is not the
same as the testing conducted in the various stages of the life

49
cycle. since, here; it involves the customer and intends to check that the
tests dispose no errors at all. All the possible testing conditions and
data that the software organization has never seen will fall within the
specified operational conditions and behavior of the software. The
proposed system is very efficient and perfect than the existing one. The
modules available are very user friendly and also completely devoid
of all the possible input errors. The user proves it by using sample
data.

50
REPORTS

When we start with form menu we get the details of entry screen for
Computer entry, Service entry, Bill entry.

If the option Report menu is selected then following sub menu appears on
the screen.

Report:-

 Computer Master Report


 Service Master Report

 Service Wise Report

 Bill Number Wise Report

 Computer Wise Daily Collection

 Computer Wise Monthly Collection

On clicking on report menu we get the information about ticket


rate, tour, vehicle, vehicle wise information and city wise tour
information.

If the option Help menu is selected then following sub menu


appears on the screen.

51
SYSTEM & LIMITATIONS

 It is not generalized system because the system can only be used


for the shop for which it is developed & cant be implemented
for other shops or companies.
 It requires person with knowledge of computer to handle.

 It cant be used if there is a power problem.

52
ENHANCEMENT

It is a set of techniques and graphical tools that allow the


analyst to develop a new kind of system specification that is easily
understandable to the user. Structured Analysis considers new goals
and structured tools for the analysis. The new goals contain:-

1. Use of graphics whenever possesses to help.


2. Difference between logical and physical system.

3. To build a logical system model, familiarize the user with


the system characteristics and interrelation before
implementation.

The structure tools focuses on the tools listed earlier like Data Flow
Diagram (DFD), Data Dictionary (DD). Structured English, Decision
trees and Decision tables.

53
SCOPE OF THE PROJECT

We have computerized the manual system for reducing complexity

of the records of transactions & Account transactions. In our software we

have provided three separate sections i.e. Product entry, Product detail

list, & bill receipt so that they can maintain records easily. Though we are

providing them all their product entry & account transactions but, in

product entry section we are providing facility to keep detail record of

product‘s and also able to modify, delete & save the changes in their

product’s.

54
CONCLUSION

“Every good beginning has a good end”. The beautiful saying

has come true. The successful working of the computerized system is due

to the proper teaching.

The reason for our success is teamwork. Every one of us gives his

best to make project successful. Our software removes their complexity

and makes them easy to handle the transactions and keep the records of

transactions.

55
BIBLIOGRAPHY

1. MS-ACCESS
Author - IRON BAY ROSS

2. DATA SYSTEM CONCEPT


Author – HENRY KORTH

3. VISUL BASIC 6.0


Author- GERG PERRY

56

Das könnte Ihnen auch gefallen