SlideShare a Scribd company logo
Project report on
Restaurant Billing System
Submitted To
Dezyne E’cole College
Towards
The Partial Fulfilment
Of 2019 Year, Bachelor of Computer Application
By
Harsh Mathur
Dezyne E’cole College
106/10, Civil Line, Ajmer
www.dezyneecole.com
GRADE SHEET
This project report has been made under the guidance of Mr. Tarun Sharma faculty of Bachelor
of Computer Application. This project focus on various parameter of Restaurant Billing System
The overall project report is________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
_________________.
Principal Signature __________________
Date __________________
Contents
Acknowledgement................................................................................................................................... 1
Synopsis .................................................................................................................................................. 2
Chapter – 1 Introduction of Information Technology (IT) ..................................................................... 5
Chapter – 2 Introduction to Project......................................................................................................... 7
Chapter – 3 Project & Their Facilities .................................................................................................... 9
Chapter – 4 Project Design ................................................................................................................... 10
Chapter – 5 Database Development...................................................................................................... 14
Chapter – 6 System Requirements of PC............................................................................................ 113
Chapter – 7 Conclusion....................................................................................................................... 114
Bibliography........................................................................................................................................ 115
Page | 1
Acknowledgement
The satisfaction that accompanies that the successful completion of any task would be incomplete
without the mention of people whose ceaseless co-operation made it possible, whose constant guidance
and encouragement crown all efforts with success.
The project on Restaurant Billing System was developed in Visual Basic Language at Dezyne E’cole
College.
During the making of this project we have learnt a lot and we are extremely grateful and remain indebted
to our guide MR. Tarun Sharma for being a source of inspiration and for his constant support in the
design, implementation and evaluation of the project.
We are thankful to them for their constant constructive criticism and invaluable suggestions, which
benefited us a lot while developing the project on “Restaurant Billing System”.
He has been a constant source of inspiration and motivation for hard work. He has been very cooperative
throughout this project work.
Through this column, we express our warm thanks to him for their encouragement, co-operation and consent
without which we mightn’t be able to accomplish this project.
I cannot move on beloved without thank beloved Principal Mrs. Vinita Mathur for creating the required
academic environment which made my task appreciable.
We would like to thank the other faculty member also, at this occasion. Last but not the least, we would
like to thank our friends & family for support and encouragement they have given us during the course
of our work.
With due regards
Mr. Harsh Mathur
BCA 3rd Year
Page | 2
Synopsis
The project Restaurant Billing System gives us the facility to manage the Restaurants billing system.
This application is helpful for staff or admin for billing of food order and managing customers details.
This application is access by only staff and admin. Members can’t access it directly.
The project is very useful for those who want to know about Restaurants Billing System.
This application maintains the records related to Customers, and Sales etc.
We can enter the details of new food items and retrieve the details of food items and employees
available in the System. We can generate the bills for the customers. We can generate the membership
card for the customers. We can also maintain the records of customers .In this project we can maintain
the GST calculation of every food item. GST can be issued according to Govt. specified categories of
all the food itmes. Total sales can also be maintain in this project. All necessary requirements for the
Restaurants Billing System has presented in this project.
Page | 3
Introduction Page of Student
Qualification School/College Board/University Year Percentage
BCA-3rd
Year
Dezyne E’cole
College
M.D.S. University 2018-19 Pursuing
BCA-2nd
Year
Dezyne E’cole
College
M.D.S. University 2017-18 72.3%
BCA-1st
Year
Dezyne E’cole
College
M.D.S. University 2016-17 68.8
12th
MAPS CBSE 2015-16 63.8
10th
MAPS CBSE 2013-14 5.8(CGPA)
Harsh Mathur
Contact Information:
207/38,Rajoriya Building
Kayasth Mohlla,Purani
Mandi Ajmer (Raj.)
Phone:
0145-2624679
9509842953
E-mail:
E-mail:
mharsh631@gmail.comm
Personal Data:
Professional Qualification:
Pursuing Bachelor Degree in Computer Application from Dezyne E’cole
College, Ajmer Affiliated from Maharshi Dayanand Saraswati University, I
have mastered the basic languages and created lot of projects during my
study period to hone my skills.
Academic Qualification:
Date of birth: 18-Dec-1997
Nationality: Indian.
Date of birth: 18/09/1996
Technical Skills:
• Good command on the programming languages learnt in the first year of BCA, C,
,HTML, CSS,
MS Office and Data Structure.
• Good command on the programming languages learnt in the second year of BCA,
C++, JAVA,PHP
and Data Base Management System.
• Good command on the programming languages learnt in the third year of BCA,
VB, Relational
Data Base Management System, Oracle 10g, and Java Script.
Certifications:
• Two Months HTML and CSS Course Certifications.
• One Month PHP Course Certifications.
• One Month Android Develpoment Course Certifications.
Page | 4
Co-Curricular and Achievements:
• Participated in the Annual Identity Exhibition, 2016 at College on the concept of Rise of the robot.
• Participated in the Annual Identity Exhibition, 2017 at College on the concept Hooked and presented Project
on Banking System.
• Participated in the Annual Identity Exhibition, 2018 at College on the concept Future of me and
presented Project on Alert System and Holography.
• Participated in College Annual Event Kaleidoscope 2016 and 2017.
• Received 1st prize for Identity Exhibition in year 2017.
• Received 1st prize for Identity Exhibition in year 2018.
Main Projects Undertaken (During College Study):
Project made using languages HTML&CSS
• A website was created using HTML&CSS during my First year based on the concept Big Data.
You can see my work on the following link:
https://www.slideshare.net/dezyneecolebca3yrsprogram/harsh-mathur-bca-second-year-dezyne-ecole-
college?qid=040d9fb4-f1bc-4fc5-b181-80c63381a99e&v=&b=&from_search=3
Project made using languages HTML&CSS with PHP
• A website was created using HTML&CSS during my First year based on the concept Student
Management System.
You can see my work on the following link:
https://www.slideshare.net/harshmathur18/student-management-system-sms
Declaration: I hereby declare that particulars given here are true and complete to the best of my knowledge and
belief.
Page | 5
Chapter – 1 Introduction of Information Technology (IT)
Information Technology –
Set of tools, processes, and methodologies (such as coding, programming, data communication, data conversion,
storage & retrieval, system analysis & design, system control) and associated equipment employee to collect
process and present information. In broad terms, it also includes office automation, multimedia and Tele –
communication.
Information Technology, a source we call the “computer”, that can show you what information via Tele-portal,
scoping, working calibration for transmitting throughout the world.
More commonly known as I.T. is the most popular career and the fastest growing industry in the world. There
are several success stories about people who choose this field for a career and are now on top of their game.
Few reasons for why people choose IT -
 Low cost of education
The biggest advantage of choosing information technology for a career is that it has very low cost
of education as compared to many other career choices. You don’t need degree to become an I.T.
professional. Instead, you can get quick training to be certified in specific areas of information
technology. This way you save huge amounts of money that you may have otherwise spent on
years of college tuition.
 Fastest changing industry
The information technology industry operates at a speed much faster than any other industry and
for this reason, there’s always a significant demand for highly skilled workers with the innovations
in cloud computing, big data and cyber security an aspiring I.T. professional has many avenues to
pursue and grow from and I.T. professional never stops learning, and must always stay on top of
the latest technology trend in order to be successful in the field. The more training and knowledge
the I.T. professional has the more employable he or she will be.
 Better income
It is well known fact that information technology professionals are paid well, compared to other
professionals. An I.T. professional with the right mix of certifications & experience can find a
permanent position in either the public or private sector. Recently many companies have been
extensively hiring experts in cloud computing, cyber security and network security to help enhance
their current systems.
Bachelor of Computer Application
BCA is a part of information technology. In this age of computers and everything being digitalized,
knowledge about machines is very important. It helps the person have a distinct advantage over the others who
do not have a degree in computer applications. The domain is growing a rapid pace. In the 1990’s with the advent
of globalization computers grew in prominence and slowly started to replace the paper and files in offices. It
brought down the cost to quite an exist.
Page | 6
BCA is a three year undergraduate degree course. Students will be taught subjects which are related to the
technological applications that are requires in today’s practical work field.
1. Skills to be learnt –
Students who study for a bachelor of computer application (BCA) will get skills and information
not only about computer and information technology but also in communication, organization and
management.
One also get to learn programming languages such as C, C++, JAVA, JavaScript, HTML&CSS,
SQL, Foxpro etc.
2. Career opportunities –
BCA given a number of opportunities to individuals to go ahead and shine in their lives. The
opportunities available for people doing BCA are galore. A few of them like software programmer,
system and network administrator, web designer, faculty for computer science / communication
technology etc. the range of chances in information technology are immense.
According to our MDS University we have learnt many theory & practical subjects –
• First Year
o Management and accounting
o Computer fundamental
o PC software
o Fundamentals of C Programming
o Data structure and algorithm
o Multimedia Basic
• Second year
o Communication skills
o Database management system
o Client server technology
o Java Programming
o C++ Programming
o Computer Graphics
• Third year
o Visual Basic Programming
o Relational database management system
ORACLE / SQL)
o E - Commerce
o Computer Network and Mobile Computing
o Internet tools & website development
(JavaScript, ASP)
o Management Information System
Page | 7
Chapter – 2 Introduction to Project
The project is “Restaurant Billing System” software for monitoring and controlling the transactions in a
Restaurant.
The project Restaurant Billing System is developed on visual basic language which mainly focuses on basic
operation in a Restaurant like – Book Table,View Menu, Select Order, View Order, adding new member, &
updating new information,Generate Bill, Calculate Discount and Tax, Select Payment Mode ,Generate Report.
Restaurant Billing System is a windows application designed to help users maintain & organize Restaurant. Our
application is easy to use for both beginners & advanced users. It features a familiar and well thought – out, an
attractive user interface, combined with strong searching, insertion & deletion capabilities. It can generate a
Membership card for member of Restaurant.
The application Restaurant Billing system has four main module –
 Insertion, Deletion, Updation to database module – User friendly input screen.
 Extracting from the database module –Attractive output screen.
 Generate Membership card module – Further Discount though card.
 Search facility system Module – Search for members.
The Restaurant Billing System is designed and develop for a receipt and of book tables in the restaurants along
with the member’s details.
Why it is made –
The main objective of this project is to provide a friendly environment to maintain the details of restaurants and
library members. The main purpose of this project is replace the manually work.
What Language –
Visual Basic 6.0 Language
Visual basic (VB) is a 3rd
generation event-driven programming language developed by Microsoft for their
operating system windows. Visual basic is a widely understood high level programming language, written using
simple English. Like – words & syntax.
It is an interpreted language. Code can be run immediately after being written. Having an interpreter makes its
simpler to use, as there is no need for the computer to compile the code, possibly finding errors to fix, before the
compiled version can be run. Once the code is working, it can be compiled into an .exe file so that it will run on
all modern windows computers, whether VB is installed or not. The language allows a beginning programmer to
produce professional – looking windows applications, as its include drawing tools to create normal windows and
structures which allow programs to be adapted for use with the internet. VB will not run on operating systems
other than windows.
Visual Basic has its origin in basic which was developed round about the year 1960, when high level languages
were just being introduced to the computer community. Microsoft has made it extremely powerful by gearing all
its good features to the windows environment.
Page | 8
Evaluation of Visual Basic –
VB 1.0 was introduced in 1991. The drag and drop design for creating the user interface is derived from prototype
from generator developed by Allan cooper and his company called Tripod. Microsoft contracted with cooper and
his associates to develop Tripod into a programmable form system for windows 3.0, under the code name Ruby
(no relation to the Ruby programming language). Tripod did not include a programming language at all. Microsoft
decided to combine Ruby with the basic language to create Visual Basic.
Need of Visual Basic –
Visual Basic is easy to learn programming language. With Visual Basic you can develop windows based
applications and Games. Visual Basic is much easier to learn than others language (like Visual C++), and yet it’s
powerful programming language. Visual Basic suite more for desktop application developing than for Games
developing. You can create sophisticated games using Visual Basic, Visual Basic will be probably powerful
enough to suite all your application and games programming needs.
Integrated Development Environment –
The working environment in VB is often referred to as the Integrated Development Environment or IDE,
because it integrates many different functions such as design, editing,
compiling and debugging within a common environment. Since all our projects are developed only in the IDE.
Page | 9
Chapter – 3 Project & Their Facilities
Restaurant Billing System is a project which aims in developing a computerized system to maintain all the daily
work of library. This project has many features which are generally not available in normal Restaurant Billing
System like – Staff login. It has also a facility where member issue a book so all details of restaurant issue date
and return date show. It has a facility where we add a new member so member card will be create for member.
Overall this project is ours is being developed to help the schools, organizations, college to maintain the
library in the best way possible and also reduce the human efforts.
Here is a list of some features which are in provided in this application –
 Keep records of different categories like – Customers Name, Phone Number etc.
 Classify the customers Name wise.
 Easy way to enter new Customers.
 Easy way to Log-In and Log-Out.
 Automatic GST calculation.
 Different criteria for searching a Customers.
Objective of Restaurant Billing System –
1. Automation –The application automates each and every activity of the manual system and increases its
throughput. Thus the response time of the system is very less and it works very fast.
2. Accuracy – The application provides the user a quick response with very accurate information regarding the
user etc. any details or system in an accurate manner, as when required.
3. User Friendly – The application Restaurant Billing System has a very user friendly interface. Thus the users
will full very easy to work on it. The application provides accuracy along with a pleasant interface. Make the
present manual system more interactive, speedy and user friendly.
4. Availability – The all transaction of restaurant stored permanently in the database admin can see the data in
the availability of any information, whatever needed.
5. Maintain Cost – Reduce the cost of maintenance. It is standalone application so no required of cost for
maintain it.
Page | 10
Chapter – 4 Project Design
The project design process is not a step by step. But still much of design work depends on knowledge and
experience of the designs, when we start working on project design, we will face different types of problems.
However, following considerations should be kept in mind during the project design phase:
Design Objectives –
The primary objective of the design of course, is to deliver the requirements as specified already. In
general the following design objectives kept in mind. Practically –
The system must be stable and can be operated by people with average.
Efficiency –
This involves accuracy, timeliness, and comprehensiveness to the system output.
Cost –
It is desirable to aim for a system with a minimum cost subject to the condition that it must satisfy all
requirements & maintain maintenance.
Flexibility –
The system should be modifiable depending on the changing needs if the user. It should also be portable
to different computer system but not other than Windows OS.
Security –
This is very important aspect of the design and should cover areas of hardware reliability, fall back
procedures, physical security if the data. System design involves first logical design and then physical
construction of the system.
Major Project Design Activities –
Several development activities are carried out during structured design. They are database design,
implementation planning, and system interface.
Design Process –
The system design process is an exercise of specifying how, the system will work. It is an interactive
process which is based on what the system will be do as shown in the report. Mainly following two parts have
been included in the system design process.
1. Output Design –
Page | 11
The starting point of the design process is the proper knowledge of system requirements which
will normally be converted on terms of output.
2. Input Design –
Once the output requirements have been finalized the next step in to find out what data need to
be made available to the system to procedure the desired outputs.
Data Flow Diagrams of Restaurant Billing System
 DFD Level 0
Admin Restaurant Billing
SystemSystem
Request
Response
 DFD Level 1
Admin Restaurant Billing
System Database
Request Request
Response Response
 DFD Level 2
Admin Restaurant Billing
System
Database
Interaction Store in MS Access
Page | 12
 DFD Level 3
Admin Restaurant Billing
System
Database
Interaction Store in MS
Access
Display Message
Configuration
Book Table View Food Select Food Enter Quantity
Create Membership
Card
Select Payment
Mode
Proceed
Bill Payment
Invoice Generated
View Ordered
Food
Insert, Save, Update, Save Update, Delete, Search
Page | 13
 DFD Level 4
Admin Restaurant Billing
System
Database
Interaction Store in MS
Access
Display Message
Configuration
Membership Cards
Create
Membership
Security
Exists
Customer
New
Customer
Update
Existing
Data
Page | 14
Chapter – 5 Database Development
This activity deals with the design of the physical database. A key is to determine how the access path art to be
implemented.
As a programmer, we are expected to design and develop any program that works correctly efficiently and the
time is easy to be used by every person, who may or may not be well versed with computer and its capabilities.
The project is based on the Library Management System, Being the Information System it requires extensive use
of some Database Management System to store, manipulate & handle the huge and complex record. In DBMS
we can act various attributes with the database like editing the records, modifications, deletions of the records,
view the records in various formats, listing the database etc.
MS Access –
Microsoft Access is an office product that allows the user to create relational databases that have tables of data.
MS 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 & databases. It’s an easy to use tool for quickly creating browser based
database applications.
In very simple term, MS Access is an Information Management tool that helps you store information for
reference, reporting & analysis.
Microsoft Access helps you analyze large amount of information, and manage related data more efficient than
MS Excel or other spreadsheet applications.
In our project we create 10 tables in MS Access-
 Table Number
Field Name Data Type
ID Short Text
Name Short Text
Price Short Text
Category Short Text
Page | 15
 Bill
Field Name Data Type
ID Short Text
Date Short Text
Name Short Text
Phone Short Text
Total_Item Short Text
Total_qty Short Text
Sub_Total Short Text
Cgst Short Text
Sgst Short Text
Total_gst Short Text
After_tax_amt Short Text
Dis_amt Short Text
Grand_total Short Text
Payment_mode Short Text
Time Short Text
Day Short Text
Month Short Text
Year Short Text
 Bill Detail
Field Name Data Type
B_ID Short Text
Item_id Short Text
Item_name Short Text
Item_qty Short Text
Item_price Short Text
Item_amount Short Text
Page | 16
 Customer
Field Name Data Type
Name Short Text
Phone Short Text
 Membership Card
Field Name Data Type
M_no Short Text
Name Short Text
Phone Short Text
Issue Short Text
Valid Short Text
 Menu
Field Name Data Type
ID Short Text
Name Short Text
Price Short Text
Category Short Text
Page | 17
All Forms and Coding of our project:
Front Page
private Sub Close_Click()
Unload Me
End Sub
Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape1.BackColor = RGB(185, 0, 0)
End Sub
Private Sub CLOSEL_Click()
Unload Me
Unload BILLFORM
Unload BOOKTABLEFORM
Page | 18
Unload MENUFORM
Unload VIEWORDERFORM
Unload MEMBERSHIPFORM
End Sub
Private Sub CLOSEL_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
CLOSES.BackColor = vbRed
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
CLOSES.BackColor = RGB(180, 180, 180)
For i = 0 To 3
BTS(i).BorderColor = vbBlack
Next
End Sub
Private Sub Form_Load()
'MsgBox Screen.Width * 0.4 & Screen.Height * 0.4
With me
.Width = Screen.Width * 0.6
.Height = Screen.Height * 0.73
.Left = Screen.Width * 0.2
.Top = Screen.Height * 0.1
'.BackColor = RGB(20, 180, 248)
End With
With Image1
.Width = Me.Width
.Height = Me.Height
.Left = 0 .Top = 0
.Picture = LoadPicture(".databack.jpg")
'.Enabled = False
Page | 19
End With
With CLOSES
.Width = 650
.Height = 350
.Left = Me.Width - 640
.Top = 10
.BackColor = RGB(180, 180, 180)
End With
With CLOSEL
.Width = 650
.Height = 350
.Left = Me.Width - 640
.Top = 20
End With
For i = 0 To 2
With BTS(i)
.Width = Me.Width * 0.27
.Height = Me.Height * 0.05
.Top = Me.Height * 0.025
If i = 0 Then
.Left = Me.Width * 0.04
ElseIf i = 1 Then
.Left = Me.Width * 0.35
ElseIf i = 2 Then
.Left = Me.Width * 0.66
End If
End With
Next
For i = 0 To 2
With Label1(i)
Page | 20
.Width = Me.Width * 0.27
.Height = Me.Height * 0.03
.Top = Me.Height * 0.035
.Alignment = 2
If i = 0 Then
.Left = Me.Width * 0.04
ElseIf i = 1 Then
.Left = Me.Width * 0.35
ElseIf i = 2 Then
.Left = Me.Width * 0.66
ElseIf i = 3 Then
.Left = Me.Width * 0.71
End If
End With
Next
'
End Sub
Private Sub Image1_Click()
Unload BILLFORM
'Unload BOOKTABLEFORM
Unload MENUFORM
Unload VIEWORDERFORM
For i = 0 To 2
BTS(i).BackStyle = 0
Label1(i).ForeColor = vbBlack
Next
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) CLOSES.BackColor =
RGB(180, 180, 180)
Page | 21
For i = 0 To 2
BTS(i).BorderColor = vbBlack
Next
End Sub
Private Sub Label1_Click(Index As Integer)
If Index = 0 Then
BOOKTABLEFORM.Show
Unload MENUFORM
Unload VIEWORDERFORM
ElseIf Index = 1 Then
MENUFORM.Show
Unload VIEWORDERFORM
Unload MEMBERSHIPFORM
ElseIf Index = 2 Then
VIEWORDERFORM.Show
Unload MENUFORM
Unload MEMBERSHIPFORM
End If
For i = 0 To 2
BTS(i).BackStyle = 0
Label1(i).ForeColor = vbBlack
Next
With BTS(Index)
.BackStyle = 1
.BackColor = vbBlack
End With
Label1(Index).ForeColor = vbWhite
End Sub
Private Sub Label1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Page | 22
For i = 0 To 2
BTS(i).BorderColor = vbBlack
Next
BTS(Index).BorderColor = vbWhite
End Sub
Book Table
Private Sub Form_Activate() Call connect rs1.Close rs1.Open
"select distinct t_no from tablenumber"
'MsgBox rs1.RecordCount
If rs1.RecordCount = 0 Then
For i = 0 To 10
With TL1(i)
.Caption = ""
.Enabled = False
.Tag = "0"
End With
Page | 23
Next
End If
While Not rs1.EOF
For i = 0 To 10
If Image3(i).Tag = rs1.Fields(0) Then
With TL1(i)
.Caption = "Booked!!"
.Enabled = True
.Tag = "1"
End With
'MsgBox rs1.Fields(0)
End If
Next rs1.MoveNext Wend
End Sub
Private Sub Form_Load()
With Me
.Width = Screen.Width * 0.57
.Height = Screen.Height * 0.6
.Left = Screen.Width * 0.215
.Top = Screen.Height * 0.21
.BackColor = vbWhite
End With
With Image2
.Width = Me.Width
.Height = Me.Height
.Left = 0
.Top = 0
.Picture = LoadPicture(".databack11.jpg")
End With
Page | 24
With LWAITER
.Stretch = True
.LoadAnimatedGIF_File (".DataLwaiter.gif")
.Top = Me.Height * 0.5
.Left = Me.Width * 0.07
End With
With RWAITER
.Stretch = True
.LoadAnimatedGIF_File (".DataRwaiter.gif")
.Top = Me.Height * 0.5
.Left = Me.Width * 0.85
End With
For i = 0 To 10
With Image3(i)
.Stretch = True
.LoadAnimatedGIF_File (".Datatable.gif")
.ToolTipText = "Table No : " & i + 1
.Tag = i + 1
If i = 0 Then
.Top = Me.Height * 0.43
.Left = Me.Width * 0.28
ElseIf i = 1 Then
.Top = Me.Height * 0.395
.Left = Me.Width * 0.395
ElseIf i = 2 Then
.Top = Me.Height * 0.395
.Left = Me.Width * 0.51
ElseIf i = 3 Then
.Top = Me.Height * 0.43
.Left = Me.Width * 0.63
ElseIf i = 4 Then
Page | 25
.Top = Me.Height * 0.565
.Left = Me.Width * 0.175
i = i + 1
ElseIf i = 6 Then
.Top = Me.Height * 0.565
.Left = Me.Width * 0.69
ElseIf i = 7 Then
.Top = Me.Height * 0.75
.Left = Me.Width * 0.07
ElseIf i = 8 Then
.Top = Me.Height * 0.75
.Left = Me.Width * 0.3
ElseIf i = 9 Then
.Top = Me.Height * 0.75
.Left = Me.Width * 0.52
ElseIf i = 10 Then
.Top = Me.Height * 0.75
.Left = Me.Width * 0.75
End If
End With
Next
With Image3(5)
.Stretch = True
.ToolTipText = "Table No : " & 6
.Tag = 6
.LoadAnimatedGIF_File (".Databigtable1.gif")
.Top = Me.Height * 0.555
.Left = Me.Width * 0.37
End With
For i = 0 To 10
Page | 26
With Label1(i)
.Width = Me.Width * 0.03
.Height = Me.Height * 0.035
.BackStyle = 1
.FontSize = 12
.BackColor = RGB(255, 100, 0)
.ForeColor = vbWhite
If i = 0 Then
.Top = Me.Height * 0.38
.Left = Me.Width * 0.305
ElseIf i = 1 Then
.Top = Me.Height * 0.35
.Left = Me.Width * 0.42
ElseIf i = 2 Then
.Top = Me.Height * 0.35
.Left = Me.Width * 0.535
ElseIf i = 3 Then
.Top = Me.Height * 0.38
.Left = Me.Width * 0.65
ElseIf i = 4 Then
.Top = Me.Height * 0.52 .Left =
Me.Width * 0.21
ElseIf i = 5 Then
.Top = Me.Height * 0.52
.Left = Me.Width * 0.45
.Width = Me.Width * 0.06
ElseIf i = 6 Then
.Top = Me.Height * 0.52
.Left = Me.Width * 0.73
ElseIf i = 7 Then
.Top = Me.Height * 0.72
Page | 27
.Left = Me.Width * 0.12
ElseIf i = 8 Then
.Top = Me.Height * 0.72
.Left = Me.Width * 0.35
ElseIf i = 9 Then
.Top = Me.Height * 0.72
.Left = Me.Width * 0.57
ElseIf i = 10 Then
.Top = Me.Height * 0.72
.Left = Me.Width * 0.8
End If
End With
Next
For i = 0 To 10
With TL1(i)
.Width = Me.Width * 0.1
.Height = Me.Height * 0.05
.Top = Me.Height * 0.25
.Enabled = False
.BackStyle = 0
.Alignment = 2
.FontName = "consolas"
.FontBold = True
.FontSize = 15
If i = 0 Then
.Top = Me.Height * 0.5
.Left = Me.Width * 0.28
ElseIf i = 1 Then
.Top = Me.Height * 0.45
Page | 28
.Left = Me.Width * 0.39
ElseIf i = 2 Then
.Top = Me.Height * 0.45
.Left = Me.Width * 0.51
ElseIf i = 3 Then
.Top = Me.Height * 0.5
.Left = Me.Width * 0.62
ElseIf i = 4 Then
.Top = Me.Height * 0.65
.Left = Me.Width * 0.18
ElseIf i = 5 Then
.Top = Me.Height * 0.65
.Left = Me.Width * 0.43
.Width = Me.Width * 0.1
ElseIf i = 6 Then
.Top = Me.Height * 0.65
.Left = Me.Width * 0.7
ElseIf i = 7 Then
.Top = Me.Height * 0.875
.Left = Me.Width * 0.09
ElseIf i = 8 Then
.Top = Me.Height * 0.875
.Left = Me.Width * 0.32
ElseIf i = 9 Then
.Top = Me.Height * 0.875
.Left = Me.Width * 0.54
ElseIf i = 10 Then
.Top = Me.Height * 0.875
.Left = Me.Width * 0.77
End If
End With
Page | 29
Next
End Sub
Private Sub Close_Click()
Me.Hide
End Sub
Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Shape1.BackColor =
RGB(185, 0, 0)
End Sub
Private Sub Image3_Click(Index As Integer) i = Index
TL1(i).Enabled = True
TL1(i).Caption = "Booked!!"
TL1(i).Tag = "1"
End Sub
Private Sub Label2_Click()
Form1.Show
End Sub
Page | 30
View Menu
Dim l As ListItem
Dim TABLENO, I_ID, I_NAME, ITEM_NAME, I_PRICE As Variant
Dim I_QTY, AVAILABEL_QTY As Integer
Private Sub ATF_Click()
End Sub
Private Sub CANCELQTYBTN_Click()
QTYTEXT = ""
Frame1.Visible = False 'Frame1 for Take Input Qty from User
End Sub
Page | 31
Private Sub Close_Click()
Me.Hide
MENULISTFORM.Hide 'Add Itmes In Order List.
'OPTIONFORM.Show
End Sub
Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape2.BackColor = RGB(185, 0, 0) 'Shape2 for Close Button
End Sub
Private Sub Command1_Click()
MENUF2.Visible = True 'Secound Form of Menu
MENUF1.Visible = False 'First Form Of Menu
End Sub
Private Sub Command2_Click()
MENUF2.Visible = False
MENUF1.Visible = True
End Sub
Private Sub Form_Activate()
Call connect rs1.Close rs1.Open "select distinct t_no from
tablenumber"
'MsgBox rs1.RecordCount
While Not rs1.EOF
For i = 0 To 10
If BOOKTABLEFORM.Image3(i).Tag = rs1.Fields(0) Then
With BOOKTABLEFORM.TL1(i)
.Caption = "Booked!!"
.Enabled = True
.Tag = "1"
Page | 32
End With
'MsgBox rs1.Fields(0)
End If
Next rs1.MoveNext
Wend
For i = 0 To 10
If BOOKTABLEFORM.TL1(i).Tag = "1" Then
With TNL(i)
.Enabled = True
.ForeColor = vbBlack
Shape1(i).BackStyle = 1
Shape1(i).BackColor = vbWhite
End With
Else
With TNL(i)
.Enabled = False
.ForeColor = vbBlack
Shape1(i).BackStyle = 0
Shape1(i).BackColor = RGB(200, 200, 200)
End With
End If
Next
End Sub
Private Sub Form_Click()
Unload Me
End Sub
Private Sub Form_Load()
Page | 33
Me.FontName = "century gothic"
Label3(0).Tag = "ATF"
Label3(1).Tag = "Sandwich"
Label3(2).Tag = "Burger"
Label3(3).Tag = "Pizza"
Label3(4).Tag = "Noodle"
Label3(5).Tag = "Chats"
With Me
.Width = Screen.Width * 0.57
.Height = Screen.Height * 0.6
.Left = Screen.Width * 0.215
.Top = Screen.Height * 0.21
.FontSize = 12
.FontName = "century gothic"
.BackColor = vbRed
End With
For i = 0 To 1
With Image1(i)
.Width = Me.Width
.Height = Me.Height
.Left = 0 .Top = 0
.Stretch = True
.Picture = LoadPicture(".databack22.jpg")
End With
Next
With MENUF1
.Width = Me.Width
.Height = Me.Height
.Left = 0 .Top = 0
.BorderStyle = 0
.BackColor = vbWhite
Page | 34
End With
With MENUL
.Height = Me.Height * 0.06
.Width = Me.Width * 0.2
.Left = Me.Width * 0.4
.Top = Me.Height * 0
.Caption = "MENU"
.Alignment = 2
.BackStyle = 0
End With
' Table Number label
For i = 0 To 10
With TNL(i)
.Enabled = False
.BackStyle = 0
End With
Next
With MENUF2
.Width = Me.Width
.Height = Me.Height
.Left = 0 .Top = 0
.BorderStyle = 0
.Visible = False
.BackColor = vbWhite
End With
With Frame1
.Width = Me.Width * 0.35
.Height = Me.Height * 0.3
Page | 35
.Left = Me.Width / 2 - Frame1.Width / 2
.Top = Me.Height / 2 - Frame1.Height / 2
.BorderStyle = 0
.BackColor = RGB(210, 255, 255)
End With
With FRAMEBACK
.Width = Frame1.Width
.Height = Frame1.Height
.Left = 0 .Top = 0
.Picture = LoadPicture(".databack1.jpg")
.Stretch = True
End With
With ENTERQTYLABEL
.Width = Frame1.Width
.Height = Frame1.Height * 0.15
.Top = Frame1.Height * 0.1
.Alignment = 2
.Left = 0
.BackStyle = 0
End With
With ERRMSG
.Width = Frame1.Width
.Height = Frame1.Height * 0.15
.Top = Frame1.Height * 0.25
.Alignment = 2
.Left = 0
.BackStyle = 0
.Caption = ""
.ForeColor = vbRed
End With
Page | 36
With QTYTEXT
.Width = Frame1.Width * 0.4
.Height = Frame1.Height * 0.17
.Top = Frame1.Height * 0.4
.Left = Frame1.Width * 0.3
End With
With CANCELQTYBTN
.Width = Frame1.Width * 0.3
.Height = Frame1.Height * 0.15
.Top = Frame1.Height * 0.7
.Left = Frame1.Width * 0.15
End With
With OKQTYBTN
.Width = Frame1.Width * 0.3
.Height = Frame1.Height * 0.15
.Top = Frame1.Height * 0.7
.Left = Frame1.Width * 0.55
End With
.Caption = "All Time Favourite"
ElseIf i = 1 Then
.Left = Me.Width * 0.04
.Top = Me.Height * 0.45
.Caption = "Sandwich"
ElseIf i = 2 Then
.Left = Me.Width * 0.04
.Top = Me.Height * 0.72
.Caption = "Burger"
ElseIf i = 3 Then
.Left = Me.Width * 0.52
.Top = Me.Height * 0.18
.Caption = "Pizza"
Page | 37
ElseIf i = 4 Then
.Left = Me.Width * 0.52
.Top = Me.Height * 0.45
.Caption = "Noodle"
ElseIf i = 5 Then
.Left = Me.Width * 0.52
.Top = Me.Height * 0.72
.Caption = "Chats"
End If
End With
Next
With LV1
.Height = Me.Height * 0.2
.Width = Me.Width * 0.44
.Left = Me.Width * 0.04
.Top = Me.Height * 0.24
.ColumnHeaders(1).Width = 3000
End With
With LV2
.Height = Me.Height * 0.2
.Width = Me.Width * 0.44
.Left = Me.Width * 0.04
.Top = Me.Height * 0.51
.ColumnHeaders(1).Width = 3000
End With
With LV3
.Height = Me.Height * 0.2
.Width = Me.Width * 0.44
.Left = Me.Width * 0.04
Page | 38
.Top = Me.Height * 0.77
End With
With LV4
.Height = Me.Height * 0.2
.Width = Me.Width * 0.44
.Left = Me.Width * 0.52
.Top = Me.Height * 0.24
.ColumnHeaders(1).Width = 3000
End With
With LV5
.Height = Me.Height * 0.2
.Width = Me.Width * 0.44
.Left = Me.Width * 0.52
.Top = Me.Height * 0.51
.ColumnHeaders(1).Width = 3000
End With
With LV6
.Height = Me.Height * 0.2
.Width = Me.Width * 0.44
.Left = Me.Width * 0.52
.Top = Me.Height * 0.77
.ColumnHeaders(1).Width = 3000
End With
For i = 0 To 5
With Label1(i)
.Height = Me.Height * 0.06
.Width = Me.Width * 0.44
.Alignment = 2
.ForeColor = vbBlack 'RGB(255, 100, 0)
End With
Page | 39
If i < 3 Then
With Label1(i)
.Left = Me.Width * 0.04
End With
End If
If i < 6 And i > 2 Then
With Label1(i)
.Left = Me.Width * 0.52
End With
End If
Next h = Me.Height * 0.02 For i = 0
To 2
With Label1(i)
.Top = h
End With h = h + Me.Height * 0.32
Next h = Me.Height * 0.02
For i = 3 To 5
With Label1(i)
.Tag = "Ice_Cream"
End With
With LV7
.Height = Me.Height * 0.22
.Width = Me.Width * 0.44
.Left = Me.Width * 0.04
.Top = Me.Height * 0.1
.ColumnHeaders(1).Width = 3000
End With
With LV8
.Height = Me.Height * 0.22
.Width = Me.Width * 0.44
.Left = Me.Width * 0.04
Page | 40
.Top = Me.Height * 0.42
.ColumnHeaders(1).Width = 3000
End With
With LV9
.Height = Me.Height * 0.22
.Width = Me.Width * 0.44
.Left = Me.Width * 0.04
.Top = Me.Height * 0.74
.ColumnHeaders(1).Width = 3000
End With
With LV10
.Height = Me.Height * 0.22
.Width = Me.Width * 0.44
.Left = Me.Width * 0.52
.Top = Me.Height * 0.1
.ColumnHeaders(1).Width = 3000
End With
With LV11
rs.MoveNext Next
rs.Close rs.Open "select name,price from menu where category='" & Label3(2).Tag & "'"
For i = 1 To rs.RecordCount
Set l = LV3.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1) rs.MoveNext
Next
rs.Close rs.Open "select name,price from menu where category='" & Label3(3).Tag & "'"
For i = 1 To rs.RecordCount
Set l = LV4.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1)
rs.MoveNext Next
rs.Close rs.Open "select name,price from menu where category='" & Label3(4).Tag & "'"
For i = 1 To rs.RecordCount
Page | 41
Set l = LV5.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from
menu where category='" & Label3(5).Tag & "'"
For i = 1 To rs.RecordCount
Set l = LV6.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from
menu where category='" & Label1(0).Tag & "'"
For i = 1 To rs.RecordCount
Set l = LV7.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1)
rs.MoveNext Next rs.Close
rs.Open "select name,price from menu where category='" & Label1(1).Tag & "'"
For i = 1 To rs.RecordCount
Set l = LV8.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from
menu where category='" & Label1(2).Tag & "'"
For i = 1 To rs.RecordCount
Set l = LV9.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1)
rs.MoveNext Next
rs.Close rs.Open "select name,price from menu where category='" & Label1(3).Tag & "'"
For i = 1 To rs.RecordCount
Set l = LV10.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1)
rs.MoveNext Next
rs.Close rs.Open "select name,price from menu where category='" & Label1(4).Tag & "'"
For i = 1 To rs.RecordCount
Set l = LV11.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1)
rs.MoveNext Next
Page | 42
rs.Close rs.Open "select name,price from menu where category='" & Label1(5).Tag & "'" For i =
1 To rs.RecordCount
Set l = LV12.ListItems.Add(, , rs.Fields(0))
l.SubItems(1) = rs.Fields(1)
rs.MoveNext Next
rs.Close
End Sub
Private Sub STARTERL_Click()
End Sub
Private Sub Frame1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
QTYTEXT.SetFocus
End Sub
Private Sub Label2_Click()
MENULISTFORM.Show
End Sub
Private Sub LV1_ItemClick(ByVal Item As ComctlLib.ListItem)
'MsgBox TABLENO & Item
If TABLENO = 0 Then
MsgBox "SELECT YOUR TABLE"
Else
ITEM_NAME = Item
Frame1.Visible = True
QTYTEXT.Text = ""
End If
End Sub
Private Sub LV2_ItemClick(ByVal Item As ComctlLib.ListItem)
Page | 43
'MsgBox TABLENO & Item
If TABLENO = 0 Then
MsgBox "SELECT YOUR TABLE"
Else
ITEM_NAME = Item
Frame1.Visible = True
QTYTEXT.Text = ""
End If
End Sub
Private Sub LV3_ItemClick(ByVal Item As ComctlLib.ListItem)
'MsgBox TABLENO & Item
If TABLENO = 0 Then
MsgBox "SELECT YOUR TABLE"
Else
ITEM_NAME = Item
Frame1.Visible = True
QTYTEXT.Text = ""
End If
End Sub
Sub additem()
'On Error Resume Next
Call connect
rs.Close
rs.Open "select * from menu where name='" & ITEM_NAME & "' "
If rs.RecordCount = 1 Then
I_ID = rs.Fields(0)
I_NAME = rs.Fields(1)
I_PRICE = rs.Fields(2) End If
rs1.Close
rs1.Open "select * from tablenumber where item_name='" & ITEM_NAME & "' and t_no= '" & TABLENO
& "'"
Page | 44
If rs1.RecordCount >= 1 Then 'MsgBox
rs1.RecordCount
rs1.Close
rs1.Open "update tablenumber set item_qty = item_qty + '" & I_QTY & "' where item_name='" & ITEM_NAME
& "' and t_no= '" & TABLENO & "'" MENULISTFORM.ORDERVIEW.ListItems.Clear
rs1.Open "select * from tablenumber where t_no='" & TABLENO & "'"
For j = 1 To rs1.RecordCount
Set l = MENULISTFORM.ORDERVIEW.ListItems.Add(, , rs1.Fields(2))
l.SubItems(1) = rs1.Fields(4)
l.SubItems(2) = rs1.Fields(3) rs1.MoveNext
Next
Else
With rs1
.Close
.Open "select * from tablenumber"
.AddNew
.Fields(0).Value = TABLENO
.Fields(1).Value = I_ID
.Fields(2).Value = I_NAME
.Fields(3).Value = I_PRICE
.Fields(4).Value = I_QTY
.Update
End With
MENULISTFORM.ORDERVIEW.ListItems.Clear
rs1.Close
rs1.Open "select * from tablenumber where t_no='" & TABLENO & "'"
For j = 1 To rs1.RecordCount
Set l = MENULISTFORM.ORDERVIEW.ListItems.Add(, , rs1.Fields(2))
l.SubItems(1) = rs1.Fields(4)
l.SubItems(2) = rs1.Fields(3) rs1.MoveNext
Page | 45
Next
End If
End Sub
Private Sub OKQTYBTN_Click()
If QTYTEXT = "" Or Val(QTYTEXT) < 1 Then
ERRMSG.Caption = "error : ENTER QTY !!"
Else
I_QTY = QTYTEXT.Text
Frame1.Visible = False
Call additem
End If
End Sub
Private Sub TNL_Click(Index As Integer)
For i = 0 To 10
If BOOKTABLEFORM.TL1(i).Tag = "1" Then
With TNL(i)
.Enabled = True
.ForeColor = vbBlack
Shape1(i).BackStyle = 1
Shape1(i).BackColor = vbWhite
End With
Else
With Shape1(i)
.BackStyle = 0
.BackColor = RGB(200, 200, 200)
End With
End If
Next
Page | 46
For i = 0 To 10
If Index = i Then
With Shape1(Index)
.BackStyle = 1
.BackColor = vbBlack
TNL(i).ForeColor = vbWhite Call connect
rs1.Close rs1.Open "select * from tablenumber"
TABLENO = Index + 1
MENULISTFORM.TABLENOLABEL.Caption = "Table No : " & TABLENO
End With
End If
Next rs1.Close
MENULISTFORM.ORDERVIEW.ListItems.Clear rs1.Open "select * from
tablenumber where t_no='" & TABLENO & "'"
For j = 1 To rs1.RecordCount
Set l = MENULISTFORM.ORDERVIEW.ListItems.Add(, , rs1.Fields(2))
l.SubItems(1) = rs1.Fields(4)
l.SubItems(2) = rs1.Fields(3) rs1.MoveNext
Next
rs1.Close
End Sub
Order Food
Page | 47
Private Sub Command1_Click()
Me.Hide
End Sub
Private Sub Form_Load()
With Me
.Width = Screen.Width * 0.2
.Height = Screen.Height * 0.6
.Left = Screen.Width * 0.8
.Top = Screen.Height * 0.2
.FontSize = 12
.FontName = "century gothic"
.BackColor = vbWhite
End With
With Image1
.Width = Me.Width
.Height = Me.Height
.Top = 0 .Left = 0
Page | 48
.Stretch = True
.Picture = LoadPicture(".databack22.jpg")
End With
With TABLENOLABEL
.Width = Me.Width * 0.9
.Height = Me.Height * 0.075
.Top = Me.Height * 0.05
.Left = Me.Width * 0.05
.Font.Name = "Rockwell"
.Alignment = 2
.FontSize = 20
.BackStyle = 0
.Caption = ""
End With
With ORDERVIEW
.Width = Me.Width * 0.98
.Height = Me.Height * 0.75
.Top = Me.Height * 0.15
.Left = Me.Width * 0.01
.ColumnHeaders(1).Width = ORDERVIEW.Width * 0.47
.ColumnHeaders(2).Width = ORDERVIEW.Width * 0.15
.ColumnHeaders(3).Width = ORDERVIEW.Width * 0.2
.Font.Name = "Rockwell"
End With
End Sub
View Order
Page | 49
Public TABLENUMBER As Variant
Dim l As ListItem
Dim TOTAL_AMOUNT, TABLENO As Variant
Private Sub Close_Click()
Unload Me
End Sub
Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
CLOSESH.BackColor = RGB(185, 0, 0)
End Sub
Private Sub Form_Activate()
Call connect rs1.Close
rs1.Open "select distinct t_no from tablenumber"
Page | 50
'MsgBox rs1.RecordCount
While Not rs1.EOF For i = 0 To 10
If BOOKTABLEFORM.Image3(i).Tag = rs1.Fields(0) Then
With BOOKTABLEFORM.TL1(i)
.Caption = "Booked!!"
.Enabled = True
.Tag = "1"
End With
'MsgBox rs1.Fields(0)
End If
Next rs1.MoveNext Wend
For i = 0 To 10
If BOOKTABLEFORM.TL1(i).Tag = "1" Then
With TNL(i)
.Enabled = True
.ForeColor = vbBlack
Shape1(i).BackStyle = 1
Shape1(i).BackColor = vbWhite
End With
End If Next
TABLENO = 0
End Sub
Private Sub Form_Load()
With Me
.Width = Screen.Width * 0.57
.Height = Screen.Height * 0.6
.Left = Screen.Width * 0.215
.Top = Screen.Height * 0.2
.FontSize = 12
Page | 51
.FontName = "century gothic"
.BackColor = RGB(240, 240, 240)
End With
With Image1
.Width = Me.Width
.Height = Me.Height
.Left = 0 .Top = 0
.Stretch = True
.Picture = LoadPicture(".databack22.jpg")
End With
For i = 0 To 10
With TNL(i)
.Enabled = False
.BackStyle = 0
End With
Next
For i = 0 To 3
With Label1(i)
.Height = Me.Height * 0.05
.Top = Me.Height * 0.2
If i = 0 Then
.Left = Me.Width * 0.05
.Width = Me.Width * 0.423
ElseIf i = 1 Then
.Left = Me.Width * 0.4775
.Width = Me.Width * 0.11
ElseIf i = 2 Then
.Left = Me.Width * 0.59
.Width = Me.Width * 0.158
ElseIf i = 3 Then
Page | 52
.Left = Me.Width * 0.752
.Width = Me.Width * 0.195
End If
End With
Next
With ORDERVIEW
.Width = Me.Width * 0.9
.Height = Me.Height * 0.54
.Top = Me.Height * 0.26
.Left = Me.Width * 0.05
.ColumnHeaders(1).Width = ORDERVIEW.Width * 0.45
.ColumnHeaders(2).Width = ORDERVIEW.Width * 0.1
.ColumnHeaders(3).Width = ORDERVIEW.Width * 0.16
.ColumnHeaders(4).Width = ORDERVIEW.Width * 0.185 End With
With TOTALAMOUNTS
.Width = Me.Width * 0.32
.Height = Me.Height * 0.08
.Top = Me.Height * 0.85
.Left = Me.Width * 0.1
.BorderWidth = 2
'.Visible = False End With
With TOTALAMOUNTL
.Width = Me.Width * 0.3
.Height = Me.Height * 0.04
.Top = Me.Height * 0.86
.Left = Me.Width * 0.11
End With
'SHAPE
With GENERATEBILLS
.Width = Me.Width * 0.32
Page | 53
.Height = Me.Height * 0.08
.Top = Me.Height * 0.85
.Left = Me.Width * 0.6
.BorderWidth = 2
End With
'LABEL
With GENERATEBILLL
.Width = Me.Width * 0.3
.Height = Me.Height * 0.04
.Top = Me.Height * 0.86
.Left = Me.Width * 0.61
.Caption = "NEXT"
End With
End Sub
Private Sub GENERATEBILLL_Click()
If TABLENO > 0 Then
TABLENUMBER = TABLENO
Me.Hide
'MsgBox TABLENUMBER
MEMBERSHIPFORM.Show
End If
End Sub
Private Sub GENERATEBILLL_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
GENERATEBILLL.BackColor = RGB(255, 100, 0)
End Sub
Private Sub GENERATEBILLL_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
GENERATEBILLL.BackColor = RGB(255, 180, 0)
Page | 54
End Sub
Private Sub TNL_Click(Index As Integer)
For i = 0 To 10
If BOOKTABLEFORM.TL1(i).Tag = "1" Then
With TNL(i)
.Enabled = True
.ForeColor = vbBlack
Shape1(i).BackStyle = 1
Shape1(i).BackColor = vbWhite
End With
End If
Next
TOTALAMOUNTS.Visible = True
ORDERVIEW.ListItems.Clear
For i = 0 To 10
If Index = i Then
With Shape1(Index)
.BackStyle = 1
.BackColor = vbBlack
TNL(i).ForeColor = vbWhite
TABLENO = Index + 1 Call
connect rs1.Close
rs1.Open "select * from tablenumber where t_no='" & TABLENO & "'"
TOTAL_AMOUNT = 0
For j = 1 To rs1.RecordCount
Set l = ORDERVIEW.ListItems.Add(, , rs1.Fields(2)) l.SubItems(1) =
rs1.Fields(4)
l.SubItems(2) = rs1.Fields(3)
l.SubItems(3) = l.SubItems(1) * l.SubItems(2)
TOTAL_AMOUNT = TOTAL_AMOUNT + l.SubItems(3)
Page | 55
rs1.MoveNext
Next
End With
End If Next
TOTALAMOUNTL.Caption = "Total Amount : " & TOTAL_AMOUNT rs1.Close End
Sub
Membership Card
Public GETNAME, GETPHONE, GETDISCOUNT As Variant
Dim CARD_NUMBER, CHECK, GET_M_NO, COUNTER As Variant
Private Sub Check1_Click()
NAMETEXT = ""
PHONETEXT = ""
MEMBERSHIPNOTEXT = ""
MSGLABEL.Visible = False
Page | 56
If Check1.Value = 1 Then
CHECK = 1
Check2.Value = 0
Check3.Value = 0
MEMBERSHIPNOLABEL.Visible = True
MEMBERSHIPNOTEXT.Visible = True
Check2.Top = Me.Height * 0.45
Else
Check2.Top = Me.Height * 0.3
MEMBERSHIPNOLABEL.Visible = False
MEMBERSHIPNOTEXT.Visible = False
End If
End Sub
Private Sub Check2_Click()
NAMETEXT = ""
PHONETEXT = ""
MSGLABEL.Visible = False
If Check2.Value = 1 Then
CHECK = 2
Check1.Value = 0
Check3.Value = 0
With NAMELABEL
.Top = Me.Height * 0.62
.Left = Me.Width * 0.1
End With
With NAMETEXT
.Top = Me.Height * 0.7
.Left = Me.Width * 0.1
End With
Page | 57
With PHONELABEL
.Top = Me.Height * 0.43
.Left = Me.Width * 0.1
End With
With PHONETEXT
.Top = Me.Height * 0.51
.Left = Me.Width * 0.1
End With
NAMELABEL.Visible = True
NAMETEXT.Visible = True
PHONELABEL.Visible = True
PHONETEXT.Visible = True
Else
NAMELABEL.Visible = False
NAMETEXT.Visible = False
PHONELABEL.Visible = False
PHONETEXT.Visible = False
End If
End Sub
Private Sub Check3_Click()
NAMETEXT = ""
PHONETEXT = ""
Check3.Tag = 3
MSGLABEL.Visible = False
If Check3.Value = 1 Then
Check1.Value = 0
Check2.Value = 0
NEXTBTN.Visible = False
Shape2.Visible = False
With NAMELABEL
Page | 58
.Top = Me.Height * 0.45
.Left = Me.Width * 0.5
End With
With NAMETEXT
.Top = Me.Height * 0.53
.Left = Me.Width * 0.5
End With
With PHONELABEL
.Top = Me.Height * 0.27
.Left = Me.Width * 0.5
End With
With PHONETEXT
.Top = Me.Height * 0.35
.Left = Me.Width * 0.5
End With
NAMELABEL.Visible = True
NAMETEXT.Visible = True
PHONELABEL.Visible = True
PHONETEXT.Visible = True
Card.Visible = True
CREATECARD.Visible = True
Shape3.Visible = True
Call connect
If MS.RecordCount = 0 Then
CARDNUMBER.Caption = "1001"
VALIDDATE.Caption = Month(Date) + 2 & "/" & Mid(Year(Date), 3, 2)
Else
While Not MS.EOF
CARD_NUMBER = MS.Fields(0)
MS.MoveNext
Page | 59
Wend
CARDNUMBER.Caption = CARD_NUMBER + 1
VALIDDATE.Caption = Month(Date) + 2 & "/" & Mid(Year(Date), 3, 2) End If
Else
NEXTBTN.Visible = True
Shape2.Visible = True
NAMELABEL.Visible = False
NAMETEXT.Visible = False
PHONELABEL.Visible = False
PHONETEXT.Visible = False
Card.Visible = False
CREATECARD.Visible = False
Shape3.Visible = False
End If
End Sub
Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape1.BackColor = RGB(185, 0, 0)
End Sub
Private Sub Command1_Click()
End Sub
Private Sub CREATECARD_Click()
If NAMETEXT = "" Or PHONETEXT = "" Then
With MSGLABEL .Visible = True
.Caption = "Err 10: Enter name and phone"
End With
Else
Page | 60
CNAME.Caption = UCase(NAMETEXT)
Call connect
With MS
.AddNew
.Fields(0) = CARDNUMBER.Caption
.Fields(1) = NAMETEXT
.Fields(2) = PHONETEXT
.Fields(3) = Date
.Fields(4) = Month(Date) + 2 & "/" & Day(Date) & "/" & Year(Date)
.Update
End With
Shape3.Visible = False
CREATECARD.Visible = False
Shape2.Visible = True
NEXTBTN.Visible = True
CHECK = 3
GETNAME = NAMETEXT
GETPHONE = PHONETEXT
GETDISCOUNT = 0.05
End If
End Sub
Private Sub EDITBTN_Click()
If EDITBTN.Caption = "Update" And Check1.Value = 1 Or Check3.Value = 1 Then
Call connect
MS.Close
MS.Open "update membershipcard set name='" & NAMETEXT.Text & "' where phone='" & PHONETEXT &
"'"
ElseIf EDITBTN.Caption = "Update" And Check2.Value = 1 Then
Call connect
CUS.Close
Page | 61
CUS.Open "update customer set name='" & NAMETEXT.Text & "' where phone='" &
PHONETEXT & "'"
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape1.BackColor = RGB(220, 220, 220)
End Sub
Private Sub Close_Click()
Unload Me
VIEWORDERFORM.Show
End Sub
Private Sub Form_Load()
EDITBTN.Visible = False
With Me
.Width = Screen.Width * 0.57
.Height = Screen.Height * 0.6
.Left = Screen.Width * 0.215
.Top = Screen.Height * 0.2
'.BackColor = RGB(178, 150, 150)
End With
With BACK
.Width = Me.Width
.Height = Me.Height
.Left = 0 .Top = 0
'.BackColor = RGB(178, 150, 150)
.Picture = LoadPicture(".databack22.jpg")
End With
With Check1
Page | 62
.Width = Me.Width * 0.3
.Height = Me.Height * 0.1
.Left = Me.Width * 0.1
.Top = Me.Height * 0.15
.Caption = "Membership Card"
'.BackColor = RGB(47, 150, 248)
End With
With Check3
.Width = Me.Width * 0.4
.Height = Me.Height * 0.1
.Left = Me.Width * 0.5
.Top = Me.Height * 0.15
.Caption = "Create Membership Card"
'.BackColor = RGB(47, 150, 248)
End With
With MEMBERSHIPNOLABEL .Width = Me.Width
* 0.3
.Height = Me.Height * 0.06
.Left = Me.Width * 0.1
.Top = Me.Height * 0.27
.Caption = "Enter Number"
.Visible = False
End With
With MEMBERSHIPNOTEXT
.Width = Me.Width * 0.3
.Height = Me.Height * 0.06
.Left = Me.Width * 0.1
.Top = Me.Height * 0.35
.Visible = False
End With
Page | 63
With Check2
.Width = Me.Width * 0.3
.Height = Me.Height * 0.1
.Left = Me.Width * 0.1
.Top = Me.Height * 0.3
.Caption = "Customer"
'.BackColor = RGB(47, 150, 248)
End With
With PHONELABEL
.Width = Me.Width * 0.3
.Height = Me.Height * 0.06
.Caption = "Enter Mobile No"
.Visible = False
End With
With PHONETEXT
.Width = Me.Width * 0.4
.Height = Me.Height * 0.06
.Visible = False
End With
With NAMELABEL .Width = Me.Width *
0.3
.Height = Me.Height * 0.06
.Caption = "Enter Name"
.Visible = False End With
With NAMETEXT .Width = Me.Width *
0.4
.Height = Me.Height * 0.06
.Visible = False
End With
Page | 64
With Card
.Width = Me.Width * 0.4
.Height = Me.Height * 0.4
.Left = Me.Width * 0.05
.Top = Me.Height * 0.49
.Visible = False
End With
With Image2
.Width = Card.Width
.Height = Card.Height
.Left = 0 .Top = 0
.Stretch = True
.Picture = LoadPicture(".datacard1.jpg")
End With
With CARDNAME
.Width = Card.Width * 0.9
.Height = Card.Height * 0.2
.Left = Card.Width * 0.05
.Top = Card.Height * 0.075
.BackStyle = 0
'.LoadAnimatedGIF_File (".datacardname.gif")
End With
With MEMBERSHIP
.Width = Card.Width * 0.9
.Height = Card.Height * 0.13
.Left = Card.Width * 0.05
.Top = Card.Height * 0.3
.BackStyle = 0
'.LoadAnimatedGIF_File (".datacardname.gif")
Page | 65
End With
With CARDNUMBER
.Width = Card.Width * 0.4
.Height = Card.Height * 0.15
.Left = Card.Width * 0.05
.Top = Card.Height * 0.5
.BackStyle = 0
End With
With VALIDLABEL(0)
.Width = Card.Width * 0.2
.Height = Card.Height * 0.075
.Left = Card.Width * 0.5
.Top = Card.Height * 0.5
.BackStyle = 0
End With
With VALIDLABEL(1)
.Width = Card.Width * 0.2
.Height = Card.Height * 0.075
.Left = Card.Width * 0.5
.Top = Card.Height * 0.575
.BackStyle = 0
End With
With VALIDDATE
.Width = Card.Width * 0.25
.Height = Card.Height * 0.15
.Left = Card.Width * 0.7
.Top = Card.Height * 0.5
.BackStyle = 0
End With
Page | 66
With CNAME .Width = Card.Width * 0.9
.Height = Card.Height * 0.2
.Left = Card.Width * 0.05
.Top = Card.Height * 0.75
.BackStyle = 0
End With
CREATECARD.Visible = False
Shape3.Visible = False
MSGLABEL.Visible = False
End Sub
Private Sub Label1_Click()
If Check1.Value = 1 Then
MsgBox "M"
ElseIf Check2.Value = 1 Then
MsgBox "C"
ElseIf Check3.Value = 1 Then
MsgBox "M"
Else
MsgBox "SELECT"
End If
End Sub
Private Sub Label2_Click()
End Sub
Private Sub MEMBERSHIPNOTEXT_Change()
If Len(MEMBERSHIPNOTEXT) = 4 Then
Call connect
MS.Close
MS.Open "select * from membershipcard where m_no='" & MEMBERSHIPNOTEXT & "'"
Page | 67
'MsgBox MS.RecordCount
If MS.RecordCount = 1 Then
EDITBTN.Visible = True
NAMETEXT = MS.Fields(1)
PHONETEXT = MS.Fields(2)
With NAMELABEL
.Caption = "YOUR NAME"
.Top = Me.Height * 0.45
.Left = Me.Width * 0.5
End With
With NAMETEXT
.Top = Me.Height * 0.53
.Left = Me.Width * 0.5
End With
With PHONELABEL
.Caption = "YOUR MOBILE NUMBER"
.Top = Me.Height * 0.27
.Left = Me.Width * 0.5
End With
With PHONETEXT
.Top = Me.Height * 0.35
.Left = Me.Width * 0.5
End With
NAMELABEL.Visible = True
NAMETEXT.Visible = True
PHONELABEL.Visible = True
PHONETEXT.Visible = True
End If
Else
EDITBTN.Visible = False
Page | 68
With NAMELABEL .Visible = False
.Caption = "Enter Name "
End With
NAMETEXT.Visible = False
With PHONELABEL .Visible = False
.Caption = "Enter Phone Number"
End With
PHONETEXT.Visible = False
End If
End Sub
Private Sub MEMBERSHIPNOTEXT_GotFocus()
MSGLABEL.Visible = False
End Sub
Private Sub NAMETEXT_GotFocus()
MSGLABEL.Visible = False
End Sub
Private Sub NEXTBTN_Click()
If CHECK = 1 Then
If MEMBERSHIPNOTEXT = "" Then
With MSGLABEL
.Caption = "Enter Membership Number"
.Visible = True
End With
Else
Call connect
MS.Close
MS.Open "select * from membershipcard where m_no='" & MEMBERSHIPNOTEXT
& "'"
Page | 69
If MS.RecordCount = 1 Then
GETNAME = MS.Fields(1)
GETPHONE = MS.Fields(2)
GETDISCOUNT = 0.1
BILLFORM.Show
Else
With MSGLABEL
.Visible = True
.Caption = "Membership Number is Wrong"
End With
End If
End If
ElseIf CHECK = 2 Then
If NAMETEXT = "" Or PHONETEXT = "" Then
With MSGLABEL .Visible = True
.Caption = "Err 10: Enter name and phone"
End With
ElseIf COUNTER = 0 Then
Call connect
With CUS
.AddNew
.Fields(0) = NAMETEXT
.Fields(1) = PHONETEXT
.Update
End With
GETNAME = NAMETEXT
GETPHONE = PHONETEXT
GETDISCOUNT = 0
BILLFORM.Show
Else
Page | 70
GETNAME = NAMETEXT
GETPHONE = PHONETEXT
GETDISCOUNT = 0
BILLFORM.Show
End If
ElseIf CHECK = 3 Then
BILLFORM.Show
ElseIf Check3.Value = 1 Then
GETNAME = NAMETEXT
GETPHONE = PHONETEXT
GETDISCOUNT = 0.1
BILLFORM.Show
End If
End Sub
Private Sub PHONETEXT_Change()
If Len(PHONETEXT) = 10 And Check2.Value = 1 Then
Call connect
CUS.Close
CUS.Open "select * from customer where phone='" & PHONETEXT & "'"
'MsgBox CUS.RecordCount
If CUS.RecordCount = 1 Then
COUNTER = 1
NAMETEXT.Text = CUS.Fields(0)
EDITBTN.Caption = "Update"
EDITBTN.Visible = True
Else
COUNTER = 0
End If
Page | 71
ElseIf Len(PHONETEXT) = 10 And Check3.Value = 1 Then
Call connect
MS.Close
MS.Open "select * from membershipcard where phone='" & PHONETEXT & "'"
'MsgBox MS.RecordCount
If MS.RecordCount = 1 Then
GET_M_NO = MS.Fields(0)
NAMETEXT.Text = MS.Fields(1)
EDITBTN.Caption = "Update"
EDITBTN.Visible = True
CREATECARD.Visible = False
Shape3.Visible = False
NEXTBTN.Visible = True
Shape2.Visible = True
Else
CREATECARD.Visible = True
Shape3.Visible = True
End If
ElseIf Len(PHONETEXT) = 10 And Check1.Value = 1 Then
Call connect
MS.Close
MS.Open "select * from membershipcard where phone='" & PHONETEXT & "'" 'MsgBox MS.RecordCount
If MS.RecordCount = 1 Then
GET_M_NO = MS.Fields(0)
NAMETEXT.Text = MS.Fields(1)
EDITBTN.Caption = "Update"
EDITBTN.Visible = True
CREATECARD.Visible = False
Shape3.Visible = False
NEXTBTN.Visible = True
Page | 72
Shape2.Visible = True
Else
CREATECARD.Visible = True
Shape3.Visible = True
End If
Else
EDITBTN.Caption = "Edit"
EDITBTN.Visible = False
NAMETEXT.Text = ""
End If
End Sub
Private Sub PHONETEXT_GotFocus()
MSGLABEL.Visible = False
End Sub
Page | 73
Invoice
Dim BILL_NUMBER, TOTAL_AMOUNT, TOTAL_QTY As Variant
Dim l As ListItem
Private Sub Combo1_Change()
If Combo1.Text = "Cash" Then
Command1.Caption = "Pay"
Else
Command1.Caption = "Next"
End If
End Sub
Private Sub Combo1_Click()
If Combo1.Text = "Cash" Then
Command1.Caption = "Pay"
Else
Page | 74
Command1.Caption = "Next"
End If
End Sub
Private Sub Command1_Click()
If Combo1.Text = "Cash" Then
If Command1.Caption = "Pay" Then
Call Billinsert
End If
ElseIf Combo1.Text = "Credit Card" Then creditfrm.Show
ElseIf Combo1.Text = "Debit Card" Then debitfrm.Show
ElseIf Combo1.Text = "UPI" Then
UPI.Show
ElseIf Combo1.Text = "Paytm" Then
PAYTM.Show
End If
End Sub
Sub Billinsert()
Call connect
With B_L
.AddNew
.Fields(0) = BILLNO
.Fields(1) = DATETEXT
.Fields(2) = NAMETEXT
.Fields(3) = MOBILETEXT
.Fields(4) = FTOTALITEM(1).Caption
.Fields(5) = FTOTALQTY(1).Caption .Fields(6) =
FSUBTOTAL(1).Caption .Fields(7) =
Round(Val(FCGSTTAX(1).Caption))
.Fields(8) = Round(Val(FSGSTTAX(1).Caption))
.Fields(9) = Round((Val(FCGSTTAX(1).Caption) + Val(FSGSTTAX(1).Caption)))
.Fields(10) = Round(Val(FAFTERTAX(1).Caption))
Page | 75
.Fields(11) = Round(Val(FDISCOUNT(1).Caption))
.Fields(12) = Round(FGRANDTOTAL(1).Caption)
.Fields(13) = Combo1.Text
.Fields(14) = Time
.Fields(15) = Day(DATETEXT)
.Fields(16) = Month(DATETEXT)
.Fields(17) = Year(DATETEXT)
.Update
End With
For i = 1 To LV.ListItems.Count
With B_D
.AddNew
.Fields(0) = BILLNO
.Fields(1) = LV.ListItems(i).SubItems(1)
.Fields(2) = LV.ListItems(i).SubItems(2)
.Fields(3) = LV.ListItems(i).SubItems(3)
.Fields(4) = LV.ListItems(i).SubItems(4)
.Fields(5) = LV.ListItems(i).SubItems(5)
.Update
End With Call connect
rs1.Close
rs1.Open "delete * from tablenumber where t_no='" &
VIEWORDERFORM.TABLENUMBER & "'"
DONEFORM.Show
Next
End Sub
Private Sub Form_Activate()
Call BILLING
End Sub
Page | 76
End With
With DATETEXT
.Width = Me.Width * 0.12
.Height = Me.Height * 0.05
.Left = Me.Width * 0.17
.Top = Me.Height * 0.21
End With
With NAMED
.Width = Me.Width * 0.2
.Height = Me.Height * 0.05
.Left = Me.Width * 0.3
.Top = Me.Height * 0.15
End With
With NAMETEXT .Width = Me.Width *
0.2
.Height = Me.Height * 0.05
.Left = Me.Width * 0.3
.Top = Me.Height * 0.21
End With
With MOBILE
.Width = Me.Width * 0.17
.Height = Me.Height * 0.05
.Left = Me.Width * 0.51
.Top = Me.Height * 0.15
End With
With MOBILETEXT
.Width = Me.Width * 0.17
.Height = Me.Height * 0.05
.Left = Me.Width * 0.51
.Top = Me.Height * 0.21
Page | 77
End With
With SNO
.Width = Me.Width * 0.049
.Height = Me.Height * 0.05
.Left = Me.Width * 0.03
.Top = Me.Height * 0.29
End With
With ID
.Width = Me.Width * 0.065
.Height = Me.Height * 0.05
.Left = Me.Width * 0.0825
.Top = Me.Height * 0.29
End With
With INAME
.Width = Me.Width * 0.2625
.Height = Me.Height * 0.05
.Left = Me.Width * 0.15
.Top = Me.Height * 0.29
End With
With QTY
.Width = Me.Width * 0.055
.Height = Me.Height * 0.05
.Left = Me.Width * 0.415
.Top = Me.Height * 0.29
End With
With PRICE
.Width = Me.Width * 0.084 .Height = Me.Height * 0.05
.Left = Me.Width * 0.473
.Top = Me.Height * 0.29
End With
Page | 78
With AMOUNT
.Width = Me.Width * 0.115
.Height = Me.Height * 0.05
.Left = Me.Width * 0.56
.Top = Me.Height * 0.29
End With
With LV
.Width = Me.Width * 0.645
.Height = Me.Height * 0.5
.Left = Me.Width * 0.03
.Top = Me.Height * 0.35
.ColumnHeaders(1).Width = LV.Width * 0.05
.ColumnHeaders(2).Width = LV.Width * 0.072
.ColumnHeaders(3).Width = LV.Width * 0.379
.ColumnHeaders(4).Width = LV.Width * 0.06
.ColumnHeaders(5).Width = LV.Width * 0.1
.ColumnHeaders(6).Width = LV.Width * 0.14
End With
With FRAME
.Width = Me.Width * 0.28
.Height = Me.Height * 0.9
.Left = Me.Width * 0.7
.Top = Me.Height * 0.025
End With
With BILLDETAILSHAPE
.Width = Me.Width * 0.26
.Height = Me.Height * 0.1
.Left = Me.Width * 0.01
.Top = Me.Height * 0.03
End With
Page | 79
'BILL_NUMBER = B_L.Fields(0)
'MsgBox BILL_NUMBER
'MsgBox B_L.RecordCount
'For i = 1 To B_L.RecordCount
' BILL_NUMBER = B_L.Fields(0)
' B_L.MoveNext
'Next
' MsgBox BILL_NUMBER & " " & B_L.Fields(0).Value
BILLNO.Text = BILL_NUMBER + 1
End If
TOTAL_AMOUNT = 0 TOTAL_QTY = 0
rs1.Close
rs1.Open "select * from tablenumber where t_no='" &
VIEWORDERFORM.TABLENUMBER & "' "
If rs1.RecordCount > 0 Then
FTOTALITEM(1).Caption = rs1.RecordCount
For i = 1 To rs1.RecordCount Set l =
LV.ListItems.Add(, , i) l.SubItems(1) =
rs1.Fields(1)
l.SubItems(2) = rs1.Fields(2)
l.SubItems(3) = rs1.Fields(4)
TOTAL_QTY = TOTAL_QTY + l.SubItems(3) l.SubItems(4) =
rs1.Fields(3)
l.SubItems(5) = l.SubItems(3) * l.SubItems(4)
TOTAL_AMOUNT = TOTAL_AMOUNT + l.SubItems(5) rs1.MoveNext
Next
FTOTALQTY(1).Caption = TOTAL_QTY
FSUBTOTAL(1).Caption = TOTAL_AMOUNT
FCGSTTAX(1).Caption = Round(TOTAL_AMOUNT * 0.025, 2)
FSGSTTAX(1).Caption = Round(TOTAL_AMOUNT * 0.025, 2)
FAFTERTAX(1).Caption = Round(TOTAL_AMOUNT + TOTAL_AMOUNT * 0.025 +
TOTAL_AMOUNT * 0.025, 2)
Page | 80
FDISCOUNT(1).Caption = Round(Val(FAFTERTAX(1).Caption) *
MEMBERSHIPFORM.GETDISCOUNT, 2)
FROUNDOFF(1).Caption = Round(Val(FAFTERTAX(1).Caption) -
Val(FDISCOUNT(1).Caption))
FGRANDTOTAL(1).Caption = FROUNDOFF(1).Caption
End If
End Sub
Private Sub Form_Unload(CANCEL As Integer)
Unload creditfrm
Unload debitfrm
Unload PAYTM
Unload UPI
Unload UPIPASS
End Sub
Payment Using UPI
Page | 81
Private Sub CANCEL_Click()
Unload UPI
End Sub
Private Sub Command1_Click()
If UPITEXT.Text = "" Then
ERRORMSG.Caption = "Enter UPI"
ElseIf UPITEXT.Text = "rahul@paytm" Then
'UPI.Hide
UPIPASS.Show
Else
ERRORMSG.Caption = "Enter Valid UPI"
End If
End Sub
Private Sub Form_Activate()
Me.DrawWidth = 2
Me.Line (20, 20)-(Me.Width - 20, Me.Height - 20), vbCyan, B
Me.Line (40, 40)-(Me.Width - 40, Me.Height - 40), vbBlack, B
Me.Line (40, Me.Height * 0.17)-(Me.Width - 40, Me.Height * 0.17), vbBlack
End Sub
Private Sub Form_Load()
Me.Top = Screen.Height * 35 / 100
Me.Left = Screen.Width * 35 / 100
Me.Width = Screen.Width * 25 / 100
Me.Height = Screen.Height * 30 / 100
Me.BackColor = vbWhite
With CANCEL
.Top = 40
.Left = Me.Width - 640
Page | 82
.Width = 600
.Height = 400
.Caption = "X"
.Font.Name = "Century Gothic"
.Font.Size = 16
.BackColor = RGB(255, 0, 0)
.ForeColor = vbWhite
End With
With AMOUNT
.Caption = " AMOUNT TO BE PAY : " & BILLFORM.FGRANDTOTAL(1)
.Alignment = 0
.BackStyle = 0
.Width = Me.Width * 0.7
.Font.Size = 12
.Font.Name = "rockwell"
.Left = Me.Width * 0.07
.Top = Me.Height * 0.06
End With
With UPIIMAGE
.Picture = LoadPicture("E:ID PROJECTPROJECTBank imageUPIFORM.jpg")
.Top = UPI.Height * 0.15
.Width = UPI.Width * 0.6
.Height = UPI.Width * 0.2
.Left = UPI.Width * 0.2
End With
With UPILABEL .BackStyle = 0
.Caption = "ENTER UPI ID"
.Font.Size = 15
Page | 83
.Font.Name = "rockwell"
.Top = UPI.Height * 0.44
.Width = UPI.Width
.Left = 0
End With
With ERRORMSG .Caption =
""
.BackStyle = 0
.Font.Size = 12
.Alignment = 2
.Font.Name = "rockwell"
.Top = UPI.Height * 0.52
.Width = UPI.Width * 0.8
.Left = UPI.Width * 0.1
.ForeColor = vbRed
End With
With UPITEXT .FontSize = 15
.Font.Name = rockwell
.Top = UPI.Height * 0.6
.Width = UPI.Width * 0.64
.Left = UPI.Width * 0.18
End With
With Command1 .Top = UPI.Height * 0.78
.Width = UPI.Width * 0.4
.Left = UPI.Width * 0.3
.Caption = "Make Payment"
.Font.Size = 15
.Font.Name = "rockwell"
Page | 84
End With
End Sub
Private Sub UPITEXT_Change()
ERRORMSG.Caption = ""
End Sub
Page | 85
UPI Password
Dim c, cli As Integer
Private Sub Command1_Click()
End Sub
Private Sub DELETE_Click()
WRONGINPUT.Caption = ""
'MsgBox c
If c = 1 Then
PIN1.Text = ""
End If
If c = 2 Then
PIN2.Text = ""
End If
Page | 86
If c = 3 Then
PIN3.Text = ""
End If
If c = 4 Then
PIN4.Text = ""
End If
If c >= 1 Then c = c - 1 End If
End Sub
Private Sub DELETE_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
DELETE.Picture = LoadPicture("E:ID
PROJECTPROJECTNUMBERCOLORGREENdelete.jpg")
End Sub
Private Sub DELETE_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
DELETE.Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBERdelete.jpg") End Sub
Private Sub Form_Activate()
Me.DrawWidth = 1
Me.Line (5, 5)-(Me.Width - 10, Me.Height - 10), vbGreen, B
Me.Line (8, 8)-(Me.Width - 30, Me.Height - 30), vbBlack, B
End Sub
Private Sub Form_Load()
With Me
.Top = Screen.Height * 0.25
.Left = Screen.Width * 0.4
.Width = Screen.Width * 0.2
.Height = Screen.Height * 0.5
.BackColor = vbWhite
End With
.FontSize = 17
Page | 87
.Font.Name = "rockwell"
.Top = Me.Height * 0.26
.Width = Me.Width * 0.125
.Left = Me.Width * 0.35
End With
With PIN3
.MaxLength = 1
.Alignment = 2
.FontSize = 17
.Font.Name = "rockwell"
.Top = Me.Height * 0.26
.Width = Me.Width * 0.125
.Left = Me.Width * 0.55
End With
With PIN4
.MaxLength = 1
.Alignment = 2
.FontSize = 17
.Font.Name = "rockwell"
.Top = Me.Height * 0.26
.Width = Me.Width * 0.125
.Left = Me.Width * 0.75
End With
With WRONGINPUT
.Caption = ""
.BackStyle = 0
.Alignment = 2
.FontSize = 13
.Font.Name = "rockwell"
Page | 88
.Top = Me.Height * 0.34
.Width = Me.Width * 0.8
.Left = Me.Width * 0.1
End With
For i = 0 To 9
With Image2(i)
.Stretch = True
.BorderStyle = 0
End With
Next
l = 0.21
For i = 0 To 2
With Image2(i)
.Top = Me.Height * 0.38
.Left = Me.Width * l
.Width = Me.Width * 0.16
.Height = Me.Height * 0.1
.Tag = i + 1 End With l = l
+ 0.22
Next
l = 0.21 For i = 3 To 5
With Image2(i)
.Top = Me.Height * 0.5
.Left = Me.Width * l
.Width = Me.Width * 0.16
.Height = Me.Height * 0.1
.Tag = i + 1 End With l = l
+ 0.22 Next
l = 0.21 For i = 6 To 8
With Image2(i)
Page | 89
.Top = Me.Height * 0.62
.Left = Me.Width * l
.Width = Me.Width * 0.16
.Height = Me.Height * 0.1
.Tag = i + 1
End With
l = l + 0.22
Next
With SHOWPASS
.Picture = LoadPicture("E:ID
PROJECTPROJECTNUMBERNUMBERHIDEPASSWORD.jpg")
.Top = Me.Height * 0.74
.Left = Me.Width * 0.21
.Width = Me.Width * 0.16
.Height = Me.Height * 0.1
.BorderStyle = 0
End With
With Image2(9)
.Top = Me.Height * 0.74
.Left = Me.Width * 0.43
.Width = Me.Width * 0.16
.Height = Me.Height * 0.1
.Tag = 0 End With
For i = 0 To 9
Image2(i).Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBER" &
Image2(i).Tag & ".jpg")
Next
Page | 90
With DELETE
.Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBERdelete.jpg") .Top = Me.Height *
0.74
.Left = Me.Width * 0.65
.Width = Me.Width * 0.16
.Height = Me.Height * 0.1
.BorderStyle = 0
End With
With PROCEED
.Top = UPIPASS.Height * 0.87
.Width = UPIPASS.Width * 0.4
.Left = UPIPASS.Width * 0.3
.Caption = "Proceed"
.Font.Size = 15
.Font.Name = "rockwell"
End With
cli = 0 c = 0 End Sub
Private Sub Image2_Click(Index As Integer)
WRONGINPUT.Caption = ""
If c <= 3 Then c = c + 1 End If
'MsgBox c
If c = 1 Then
PIN1.Text = Image2(Index).Tag
End If
If c = 2 Then
PIN2.Text = Image2(Index).Tag
Page | 91
End If
If c = 3 Then
PIN3.Text = Image2(Index).Tag
End If
If c = 4 Then
PIN4.Text = Image2(Index).Tag 'WRONGINPUT.Caption = PIN1 & PIN2 & PIN3 & PIN4
End If
End Sub
Private Sub Image2_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X
As Single, Y As Single)
Image2(Index).BorderStyle = 1
Image2(Index).Picture = LoadPicture("E:ID
PROJECTPROJECTNUMBERCOLORGREEN" & Image2(Index).Tag & ".jpg")
End Sub
Private Sub Image2_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As
Single, Y As Single)
Image2(Index).BorderStyle = 0
Image2(Index).Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBER" &
Image2(Index).Tag & ".jpg")
End Sub
Private Sub Label2_Click()
Unload UPIPASS
End Sub
Private Sub PROCEED_Click()
If PIN1 <> "" And PIN2 <> "" And PIN3 <> "" And PIN4 <> "" Then
'MsgBox "a"
Page | 92
End If
If PIN1 = "1" And PIN2 = "2" And PIN3 = "4" And PIN4 = "5" Then
BILLFORM.Billinsert
With WRONGINPUT
.Caption = "PIN MATCHED" .ForeColor = RGB(0,
255, 0)
End With
Me.Hide
UPI.Hide
'MsgBox "done"
Else
With WRONGINPUT
.Caption = "WRONG INPUT"
.ForeColor = RGB(255, 0, 0)
End With
End If
End Sub
Private Sub SHOWPASS_Click()
cli = cli + 1
If cli = 1 Then
PIN1.PasswordChar = ""
PIN2.PasswordChar = ""
PIN3.PasswordChar = ""
PIN4.PasswordChar = ""
SHOWPASS.Picture = LoadPicture("E:ID
PROJECTPROJECTNUMBERNUMBERSHOWPASSWORD.jpg")
End If
If cli = 2 Then
PIN1.PasswordChar = "*"
PIN2.PasswordChar = "*"
Page | 93
PIN3.PasswordChar = "*"
PIN4.PasswordChar = "*"
cli = 0
SHOWPASS.Picture = LoadPicture("E:ID
PROJECTPROJECTNUMBERNUMBERHIDEPASSWORD.jpg")
End If
End Sub
Payment Using Credit Card
Private Sub CANCEL_Click()
Unload creditfrm
End Sub
Private Sub Form_Activate()
Me.DrawWidth = 2
Page | 94
Me.Line (20, 20)-(Me.Width - 20, Me.Height - 20), vbCyan, B
Me.Line (40, 40)-(Me.Width - 40, Me.Height - 40), vbBlack, B
Me.Line (40, Me.Height * 0.17)-(Me.Width - 40, Me.Height * 0.17), vbBlack
End Sub
Private Sub PROCEED_Click()
If Len(CARDTEXT.Text) = 16 And MONTHBOX <> " " And YEARBOX <> " " And PINTEXT <>
"" Then otpfrm.Show otpgen.Show
creditfrm.Enabled = False
Else
MsgBox "PLEASE FILL CORRECT", , "INFORMATION"
End If
End Sub
Private Sub Form_Load()
Me.Top = Screen.Height * 30 / 100
Me.Left = Screen.Width * 35 / 100
Me.Width = Screen.Width * 30 / 100
Me.Height = Screen.Height * 40 / 100
Me.BackColor = vbWhite
With AMOUNT
.Caption = " AMOUNT TO BE PAY : " & BILLFORM.FGRANDTOTAL(1)
.Alignment = 0
.BackStyle = 0
.Width = Me.Width * 0.7
.Font.Size = 14
.Font.Name = "rockwell"
.Left = Me.Width * 0.1
.Top = Me.Height * 0.06
End With
Page | 95
With CANCEL
.Top = 40
.Left = Me.Width - 640
.Width = 600
.Height = 400
.Caption = "X"
.Font.Name = "Century Gothic"
.Font.Size = 16
.BackColor = RGB(255, 0, 0)
.ForeColor = vbWhite
End With
With debit
.Caption = "Crebit Card"
.Font.Size = 25
.Font.Name = "rockwell"
.Alignment = 2
.FontBold = True
.Top = Me.Height * 0.2
.Width = Me.Width .Left = 0
End With
With CARDNO
.Font.Size = 18
.Font.Name = "rockwell"
.Width = Me.Width
.Alignment = 2
.Caption = "Crebit Card Number*"
.Left = 0
.Top = Me.Height * 0.32
Page | 96
End With
With CARDTEXT
.Font.Size = 16
'.Height = Me.Height * 0.04
.Font.Name = "rockwell"
.Width = Me.Width * 0.6
.Left = Me.Width * 0.2
.Top = Me.Height * 0.41
End With
With MONTHLABEL .Caption = "
Month *"
.Alignment = 0
.Font.Size = 14
.Font.Name = "rockwell"
.Width = Me.Width * 0.2
.Left = Me.Width * 0.23
.Top = Me.Height * 0.51
End With
With YEARLABEL .Caption = " Year *"
.Alignment = 0
.Font.Size = 14
.Font.Name = "rockwell"
.Width = Me.Width * 0.2
.Left = Me.Width * 0.58
.Top = Me.Height * 0.51
End With With MONTHBOX
.Text = " "
.Font.Size = 12
.Font.Name = "rockwell"
Page | 97
.Width = Me.Width * 0.23
.Left = Me.Width * 0.21
.Top = Me.Height * 0.58
End With
For i = 1 To 12
MONTHBOX.additem i
Next
With YEARBOX
.Text = " "
.Font.Size = 12
.Font.Name = "rockwell"
.Width = Me.Width * 0.23
.Left = Me.Width * 0.56
.Top = Me.Height * 0.58
End With
For i = 2018 To 2030
YEARBOX.additem i
Next
With PINLABEL
.Caption = "PIN *"
.Width = Me.Width * 0.3
.Alignment = 0
.Font.Size = 15
.Font.Name = "rockwell"
.Left = Me.Width * 0.21
.Top = Me.Height * 0.71
End With
Page | 98
With PINTEXT
.Width = Me.Width * 0.42
.FontBold = True
.Font.Size = 14
.Font.Name = "rockwell"
.Left = Me.Width * 0.37
.Top = Me.Height * 0.705
End With
With PROCEEDSHAPE
.Left = Me.Width * 0.65
.Top = Me.Height * 0.85
.Width = Me.Height * 0.35
.Height = Me.Height * 0.1
.BorderWidth = 2
.BorderColor = vbRed
.BackColor = RGB(255, 174, 61)
End With
With PROCEED
.Caption = "PROCEED"
.Left = Me.Width * 0.65
.Top = Me.Height * 0.87
.Width = Me.Height * 0.35
.Font.Size = 12
.FontBold = True
.BackStyle = 0
.Alignment = 2
.Font.Name = "rockwell"
End With
Page | 99
End Sub
Enter OTP
Dim a, h As Integer
Dim c As Integer
Private Sub Form_Activate()
Me.DrawWidth = 1
Me.Line (5, 5)-(Me.Width - 10, Me.Height - 10), vbGreen, B
Me.Line (8, 8)-(Me.Width - 30, Me.Height - 30), vbBlue, B
Timer1.Enabled = True
End Sub
Private Sub Form_Load() c = 0
Me.Refresh
With Me
.BackColor = vbBlack
.Left = Screen.Width * 0.8
Page | 100
.Top = Screen.Height
.Width = Screen.Width * 0.2
.Height = Screen.Height * 0.1
End With
With Label1
.Top = Me.Height * 0.35
.Left = 0
.Width = Me.Width * 0.6
.ForeColor = vbWhite
.Caption = "Your OTP is"
.Alignment = 2
.Font.Size = 20
.Font.Name = "rockwell"
.BackStyle = 0
End With
With OTP .BackStyle = 0
.Top = Me.Height * 0.35
.Left = otpgen.Width * 0.6
.ForeColor = RGB(0, 255, 255)
.Font.Name = "rockwell"
.Font.Size = 20
.BackColor = vbWhite a = Format(Rnd * 10000 + 2,
"00000")
.Caption = a
End With h = Screen.Height
End Sub
Private Sub Timer1_Timer() If c < 15 Then c
= c + 1 Me.Top = h h = h - 140 End If
Page | 101
If c = 15 Then
Timer1.Enabled = False
End If
End Sub
Payment Using Debit Card
Private Sub CANCEL_Click()
Unload debitfrm
End Sub
Private Sub CARDTEXT_Change()
With ERRORMSG .Caption = ""
End With
If Len(CARDTEXT) = 3 Or Len(CARDTEXT) = 0 Then
Page | 102
CARDIMG.Picture = LoadPicture("")
End If
If CARDTEXT.Text = "1234" Then
CARDIMG.Picture = LoadPicture(".Datavisa.jpg")
End If
If CARDTEXT.Text = "2345" Then
CARDIMG.Picture = LoadPicture(".Datarupay.jpg")
End If
If CARDTEXT.Text = "3456" Then
CARDIMG.Picture = LoadPicture(".Datamastercard.jpg")
End If
If CARDTEXT.Text = "4567" Then
CARDIMG.Picture = LoadPicture(".dataMaestro.jpg")
End If
End Sub
Private Sub CVPTEXT_Change()
With ERRORMSG
.Caption = ""
End With
End Sub
Private Sub Form_Activate()
Me.DrawWidth = 2
Me.Line (20, 20)-(Me.Width - 20, Me.Height - 20), vbCyan, B
Me.Line (40, 40)-(Me.Width - 40, Me.Height - 40), vbBlack, B
Me.Line (40, Me.Height * 0.17)-(Me.Width - 40, Me.Height * 0.17), vbBlack
End Sub
Private Sub MONTHBOX_Click()
Page | 103
With ERRORMSG .Caption = ""
End With
End Sub
Private Sub YEARBOX_Click()
'MsgBox "a"
With ERRORMSG
.Caption = ""
End With
End Sub
Private Sub PROCEED_Click()
If Len(CARDTEXT.Text) = 16 And MONTHBOX <> " " And YEARBOX <> " " And
Len(CVPTEXT.Text) = 3 Then
With ERRORMSG .Caption = ""
End With otpfrm.Show otpgen.Show
debitfrm.Enabled = False
Else
With ERRORMSG
.Caption = "PLEASE FILL CORRECT"
.ForeColor = vbRed
End With
End If
End Sub
Private Sub Form_Load()
Me.Top = Screen.Height * 30 / 100
Me.Left = Screen.Width * 35 / 100
Me.Width = Screen.Width * 30 / 100
Me.Height = Screen.Height * 40 / 100
Me.BackColor = vbWhite
With CANCEL .Top = 40
.Left = Me.Width - 640
Page | 104
With CARDNO
.Font.Size = 18
.Font.Name = "rockwell"
.Width = debitfrm.Width
.Alignment = 2
.Caption = "Debit Card Number *"
.Left = 0
.Top = Me.Height * 0.36
End With
With CARDTEXT
.Font.Size = 16
.Font.Name = "rockwell"
.Width = debitfrm.Width * 0.6
.Left = debitfrm.Width * 0.2
.Top = debitfrm.Height * 0.46
End With
With CARDIMG .Stretch = True
.Width = Me.Width * 0.1
.Left = Me.Width * 0.81
.Top = Me.Height * 0.46
.Height = Me.Height * 0.09
.BorderStyle = 0
End With
With MONTHLABEL
.Caption = " Month *"
.Alignment = 0
.Font.Size = 14
Page | 105
.Font.Name = "rockwell"
.Width = debitfrm.Width * 0.2
.Left = debitfrm.Width * 0.2
.Top = debitfrm.Height * 0.58
End With
With YEARLABEL .Caption = " Year
*"
.Alignment = 0
.Font.Size = 14
.Font.Name = "rockwell"
.Width = debitfrm.Width * 0.2 .Left = debitfrm.Width
* 0.425
.Top = debitfrm.Height * 0.58
End With
With CVPLABEL .Caption = " CVV
*"
.Width = debitfrm.Width * 0.2
.Alignment = 0
.Font.Size = 14
.Font.Name = "rockwell"
.Left = debitfrm.Width * 0.65
.Top = debitfrm.Height * 0.58
End With
With MONTHBOX .Text = " "
.Font.Size = 16
.Font.Name = "rockwell"
.Width = debitfrm.Width * 0.15
.Left = debitfrm.Width * 0.2
.Top = debitfrm.Height * 0.66
End With
Page | 106
For i = 1 To 12
MONTHBOX.additem i
Next
With YEARBOX .Text = " "
.Font.Size = 16
.Font.Name = "rockwell"
.Width = debitfrm.Width * 0.15
.Left = debitfrm.Width * 0.425
.Top = debitfrm.Height * 0.66
End With
For i = 2018 To 2030
YEARBOX.additem i
Next
With CVPTEXT
.Width = debitfrm.Width * 0.15
.Font.Size = 15
.Font.Name = "rockwell"
.Left = debitfrm.Width * 0.65
.Top = debitfrm.Height * 0.66
End With
With ERRORMSG .Caption = ""
.Alignment = 2
.BackStyle = 0
.Width = Me.Width * 0.95
.Font.Size = 12
.Font.Name = "rockwell"
.Left = Me.Width * 0.025
Page | 107
.Top = debitfrm.Height * 0.77
End With
With PROCEEDSHAPE .Left = Me.Width
* 0.65
.Top = Me.Height * 0.85
.Width = Me.Height * 0.35
.Height = Me.Height * 0.1
.BorderWidth = 2
.BorderColor = vbRed
.BackColor = RGB(255, 174, 61)
End With
With PROCEED
.Caption = "PROCEED"
.Left = Me.Width * 0.65
.Top = Me.Height * 0.87
.Width = Me.Height * 0.35
.Font.Size = 12
.FontBold = True
.BackStyle = 0
.Alignment = 2
.Font.Name = "rockwell"
End With
End Sub
Page | 108
Enter OPT
Dim a As Variant
Private Sub Form_Activate()
Me.DrawWidth = 1
Me.Line (5, 5)-(Me.Width - 10, Me.Height - 10), vbGreen, B
Me.Line (8, 8)-(Me.Width - 30, Me.Height - 30), vbBlack, B
End Sub
Private Sub Form_Load()
With Me
.Top = Screen.Height * 0.4
.Left = Screen.Width * 0.4
.Width = Screen.Width * 0.2
.Height = Screen.Height * 0.2
.BackColor = RGB(200, 255, 255)
Page | 109
Payment Using Paytm
Private Sub Form_Load()
Page | 110
With Me
.Width = Screen.Width * 0.2
.Height = Screen.Height * 0.3
.Top = Screen.Height * 0.3
.Left = Screen.Width * 0.4
End With
With ucAniGIF1
.Width = Me.Width * 0.5
.Height = Me.Height * 0.15
.Top = Me.Height * 0.1
.Left = Me.Width * 0.25
End With
With Label1
.Width = Me.Width * 0.7
.Height = Me.Height * 0.08
.Top = Me.Height * 0.4
.Left = Me.Width * 0.15
End With
With Label2
.Width = Me.Width * 0.7
.Height = Me.Height * 0.1
.Top = Me.Height * 0.51
.Left = Me.Width * 0.15
.Caption = BILLFORM.FGRANDTOTAL(1)
End With
With Shape1
.Width = Me.Width * 0.7
.Height = Me.Height * 0.16
.Top = Me.Height * 0.72
.Left = Me.Width * 0.15
Page | 111
.BackColor = RGB(0, 230, 230)
End With
With Label3
.Width = Me.Width * 0.7
.Height = Me.Height * 0.1
.Top = Me.Height * 0.74
.Left = Me.Width * 0.15
End With
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape1.BackColor = RGB(0, 230, 230)
End Sub
Private Sub Label3_Click()
BILLFORM.Billinsert
'MsgBox "done"
End Sub
Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape1.BackColor = RGB(0, 200, 200)
End Sub
Page | 112
Invoice Generate
Page | 113
Chapter – 6 System Requirements of PC
Processor Core 2 Dual / 4.3 more
RAM 1, 2 GB or more
HDD 500 GB / 1 TB or more
OS Window 7 or Later
Database MS Access 2003
Page | 114
Chapter – 7 Conclusion
After we have completed the project we are sure the problems in the existing system world overcome. The
“Restaurant Billing System” process made computerized to reduce human errors & to increase the efficiency.
The main focus of this project is to less human efforts. The maintenance of the records is made efficient, as all
the records are stored in the Access Database, through which data can be retrieved easily. The navigation control
is provided in all the forms to navigate through the large amount of records. If the numbers of records are very
large than user has to just type in the search string & user gets the results immediately. The editing is also made
simples. The user has to just type in the required field & process the update button to update the desired field.
The customers are given a particular unique id no. so that they can be access correctly & without errors. Our main
aim of the project is to get the correct information about a customer visit in the Restaurant.
Page | 115
Bibliography
 www.google.com
 www.youtube.com
 www.stackoverflow.com
 www.slideshare.com
VB Black Book (Author: Steven Holzner)
MS Visual Basic 2010 step by step (Author: Michael Halverson)
The Complete Reference Visual Basic 6 (Author: Noel Jerk) College Notes
Page | 116
Thank You…
Harsh Mathur
Bachelor of Computer Application
Dezyne E’cole College
106/10, CIVIL LINES
AJMER
RAJASTHAN - 305001 (INDIA)
(JANUARY, 2019)
www.dezyneecole.com

More Related Content

What's hot

Online Student Registration System
Online Student Registration SystemOnline Student Registration System
Online Student Registration System
Sanjana Agarwal
 
Employee Management System
Employee Management SystemEmployee Management System
Employee Management System
Monotheist Sakib
 
BSc CSIT Final Year Project Report on Hamro Krishi - Nepal
BSc CSIT Final Year Project Report on Hamro Krishi - NepalBSc CSIT Final Year Project Report on Hamro Krishi - Nepal
BSc CSIT Final Year Project Report on Hamro Krishi - Nepal
Sirish Paudel
 
Hostel Management system Report
Hostel Management system ReportHostel Management system Report
Hostel Management system Report
Prasoon Rawat
 
SRS for Hospital Management System
SRS for Hospital Management SystemSRS for Hospital Management System
SRS for Hospital Management System
kataria Arvind
 
Billing project
Billing projectBilling project
Student management system
Student management systemStudent management system
Student management systemGaurav Subham
 
Face Recognition Attendance System
Face Recognition Attendance System Face Recognition Attendance System
Face Recognition Attendance System
Shreya Dandavate
 
Final Project Report of College Management System
Final Project Report of College Management SystemFinal Project Report of College Management System
Final Project Report of College Management System
MuhammadHusnainRaza
 
College admission system
College admission system College admission system
College admission system
Sourabh Upadhyay
 
OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]
Daffodil International University
 
Hostel management project_report
Hostel management project_reportHostel management project_report
Hostel management project_report
kawsher11
 
Minor project Report for "Quiz Application"
Minor project Report for "Quiz Application"Minor project Report for "Quiz Application"
Minor project Report for "Quiz Application"
Harsh Verma
 
Quiz application
Quiz applicationQuiz application
Quiz application
Harsh Verma
 
Canteen Food Management System
Canteen Food Management SystemCanteen Food Management System
Canteen Food Management System
Shubham Dhage
 
Online bus pass management system
Online bus pass management systemOnline bus pass management system
Online bus pass management system
piyush khadse
 
Student information system project report
Student information system project reportStudent information system project report
Student information system project report
Suman Chandra
 
Online Examination System Project report
Online Examination System Project report Online Examination System Project report
Online Examination System Project report
SARASWATENDRA SINGH
 
e-commerce web development project report (Bookz report)
e-commerce web development project report (Bookz report)e-commerce web development project report (Bookz report)
e-commerce web development project report (Bookz report)
Mudasir Ahmad Bhat
 
HOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project reportHOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project report
PDEA's college of engineering, Pune
 

What's hot (20)

Online Student Registration System
Online Student Registration SystemOnline Student Registration System
Online Student Registration System
 
Employee Management System
Employee Management SystemEmployee Management System
Employee Management System
 
BSc CSIT Final Year Project Report on Hamro Krishi - Nepal
BSc CSIT Final Year Project Report on Hamro Krishi - NepalBSc CSIT Final Year Project Report on Hamro Krishi - Nepal
BSc CSIT Final Year Project Report on Hamro Krishi - Nepal
 
Hostel Management system Report
Hostel Management system ReportHostel Management system Report
Hostel Management system Report
 
SRS for Hospital Management System
SRS for Hospital Management SystemSRS for Hospital Management System
SRS for Hospital Management System
 
Billing project
Billing projectBilling project
Billing project
 
Student management system
Student management systemStudent management system
Student management system
 
Face Recognition Attendance System
Face Recognition Attendance System Face Recognition Attendance System
Face Recognition Attendance System
 
Final Project Report of College Management System
Final Project Report of College Management SystemFinal Project Report of College Management System
Final Project Report of College Management System
 
College admission system
College admission system College admission system
College admission system
 
OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]
 
Hostel management project_report
Hostel management project_reportHostel management project_report
Hostel management project_report
 
Minor project Report for "Quiz Application"
Minor project Report for "Quiz Application"Minor project Report for "Quiz Application"
Minor project Report for "Quiz Application"
 
Quiz application
Quiz applicationQuiz application
Quiz application
 
Canteen Food Management System
Canteen Food Management SystemCanteen Food Management System
Canteen Food Management System
 
Online bus pass management system
Online bus pass management systemOnline bus pass management system
Online bus pass management system
 
Student information system project report
Student information system project reportStudent information system project report
Student information system project report
 
Online Examination System Project report
Online Examination System Project report Online Examination System Project report
Online Examination System Project report
 
e-commerce web development project report (Bookz report)
e-commerce web development project report (Bookz report)e-commerce web development project report (Bookz report)
e-commerce web development project report (Bookz report)
 
HOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project reportHOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project report
 

Similar to Harsh Mathur Final Year Project Report on Restaurant Billing System

Bca Final Year VB Practical File
Bca Final Year VB Practical FileBca Final Year VB Practical File
Bca Final Year VB Practical File
Rahul Saini
 
Pinkle makhijani supermarket billing system vb project
Pinkle makhijani supermarket billing system vb projectPinkle makhijani supermarket billing system vb project
Pinkle makhijani supermarket billing system vb project
PinkleMakhijani
 
21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx
hariharan536808
 
21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx
hariharan536808
 
Electric Vehicle Business Opportunities Brochure
Electric Vehicle Business Opportunities Brochure Electric Vehicle Business Opportunities Brochure
Electric Vehicle Business Opportunities Brochure
Srishti Sikaria
 
school billing system report
school billing system reportschool billing system report
school billing system report
aki_shu
 
Ignou MCA mini project report
Ignou MCA mini project reportIgnou MCA mini project report
Ignou MCA mini project report
Hitesh Jangid
 
manjunath new present resume
manjunath new present resumemanjunath new present resume
manjunath new present resumemanju reddy
 
E billing and invoice system
E billing and invoice systemE billing and invoice system
E billing and invoice system
Surya Indira
 
Current Trend of Placement Activity Control System in the College
Current Trend of Placement Activity Control System in the CollegeCurrent Trend of Placement Activity Control System in the College
Current Trend of Placement Activity Control System in the College
AI Publications
 
Online resort reservation system report (practicum)
Online resort reservation system report (practicum)Online resort reservation system report (practicum)
Online resort reservation system report (practicum)
Sumaiya Ismail
 
Gyaneager.pdf
Gyaneager.pdfGyaneager.pdf
Gyaneager.pdf
vidyaplanet1
 
Inplant training in_ns2_1
Inplant training in_ns2_1Inplant training in_ns2_1
Inplant training in_ns2_1
anushaanu3092
 
Advanced Course in Electric Vehicle Design Engineering
Advanced Course in Electric Vehicle Design EngineeringAdvanced Course in Electric Vehicle Design Engineering
Advanced Course in Electric Vehicle Design Engineering
Srishti Sikaria
 
online education system project report
online education system project reportonline education system project report
online education system project report
Hagi Sahib
 
College Result presentation report pdf and
College Result presentation report pdf andCollege Result presentation report pdf and
College Result presentation report pdf and
bhagyavantrajapur88
 
JOBS FOR PROFESSOR, ASSOCIATE PROFESSOR AND ASSISTANT PROFESSOR
JOBS FOR PROFESSOR, ASSOCIATE PROFESSOR AND ASSISTANT PROFESSORJOBS FOR PROFESSOR, ASSOCIATE PROFESSOR AND ASSISTANT PROFESSOR
JOBS FOR PROFESSOR, ASSOCIATE PROFESSOR AND ASSISTANT PROFESSOR
myeducationwire.com
 
Project Report on Employee Management System.docx
Project Report on Employee Management System.docxProject Report on Employee Management System.docx
Project Report on Employee Management System.docx
DhineshkumarPrakasam
 

Similar to Harsh Mathur Final Year Project Report on Restaurant Billing System (20)

Bca Final Year VB Practical File
Bca Final Year VB Practical FileBca Final Year VB Practical File
Bca Final Year VB Practical File
 
Pinkle makhijani supermarket billing system vb project
Pinkle makhijani supermarket billing system vb projectPinkle makhijani supermarket billing system vb project
Pinkle makhijani supermarket billing system vb project
 
21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx
 
21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx
 
Electric Vehicle Business Opportunities Brochure
Electric Vehicle Business Opportunities Brochure Electric Vehicle Business Opportunities Brochure
Electric Vehicle Business Opportunities Brochure
 
aravinthkumar resume
aravinthkumar resumearavinthkumar resume
aravinthkumar resume
 
school billing system report
school billing system reportschool billing system report
school billing system report
 
Ignou MCA mini project report
Ignou MCA mini project reportIgnou MCA mini project report
Ignou MCA mini project report
 
manjunath new present resume
manjunath new present resumemanjunath new present resume
manjunath new present resume
 
E billing and invoice system
E billing and invoice systemE billing and invoice system
E billing and invoice system
 
Current Trend of Placement Activity Control System in the College
Current Trend of Placement Activity Control System in the CollegeCurrent Trend of Placement Activity Control System in the College
Current Trend of Placement Activity Control System in the College
 
Online resort reservation system report (practicum)
Online resort reservation system report (practicum)Online resort reservation system report (practicum)
Online resort reservation system report (practicum)
 
Gyaneager.pdf
Gyaneager.pdfGyaneager.pdf
Gyaneager.pdf
 
Inplant training in_ns2_1
Inplant training in_ns2_1Inplant training in_ns2_1
Inplant training in_ns2_1
 
Advanced Course in Electric Vehicle Design Engineering
Advanced Course in Electric Vehicle Design EngineeringAdvanced Course in Electric Vehicle Design Engineering
Advanced Course in Electric Vehicle Design Engineering
 
online education system project report
online education system project reportonline education system project report
online education system project report
 
Hafsa 131003112307-phpapp02
Hafsa 131003112307-phpapp02Hafsa 131003112307-phpapp02
Hafsa 131003112307-phpapp02
 
College Result presentation report pdf and
College Result presentation report pdf andCollege Result presentation report pdf and
College Result presentation report pdf and
 
JOBS FOR PROFESSOR, ASSOCIATE PROFESSOR AND ASSISTANT PROFESSOR
JOBS FOR PROFESSOR, ASSOCIATE PROFESSOR AND ASSISTANT PROFESSORJOBS FOR PROFESSOR, ASSOCIATE PROFESSOR AND ASSISTANT PROFESSOR
JOBS FOR PROFESSOR, ASSOCIATE PROFESSOR AND ASSISTANT PROFESSOR
 
Project Report on Employee Management System.docx
Project Report on Employee Management System.docxProject Report on Employee Management System.docx
Project Report on Employee Management System.docx
 

More from Harsh Mathur

Understanding-Salesforce-CDP.pdf
Understanding-Salesforce-CDP.pdfUnderstanding-Salesforce-CDP.pdf
Understanding-Salesforce-CDP.pdf
Harsh Mathur
 
Service Desk By Harsh Mathur
Service Desk  By Harsh MathurService Desk  By Harsh Mathur
Service Desk By Harsh Mathur
Harsh Mathur
 
Training Management Software By Harsh Mathur.
Training  Management Software By Harsh Mathur.Training  Management Software By Harsh Mathur.
Training Management Software By Harsh Mathur.
Harsh Mathur
 
Hotel management system By Harsh & aditya Mathur.
Hotel management system By  Harsh & aditya  Mathur.Hotel management system By  Harsh & aditya  Mathur.
Hotel management system By Harsh & aditya Mathur.
Harsh Mathur
 
Invoice Maker by harsh mathur
Invoice Maker by harsh mathurInvoice Maker by harsh mathur
Invoice Maker by harsh mathur
Harsh Mathur
 
Holography project By Harsh Mathur & Aditya Mathur.
Holography project By Harsh Mathur & Aditya Mathur.Holography project By Harsh Mathur & Aditya Mathur.
Holography project By Harsh Mathur & Aditya Mathur.
Harsh Mathur
 
Harsh Mathur project c++
Harsh Mathur project c++Harsh Mathur project c++
Harsh Mathur project c++
Harsh Mathur
 
College website By Harsh Mathur
College website By Harsh MathurCollege website By Harsh Mathur
College website By Harsh Mathur
Harsh Mathur
 
Billing software By Harsh Mathur
Billing software By Harsh MathurBilling software By Harsh Mathur
Billing software By Harsh Mathur
Harsh Mathur
 
Alert system By Harsh Mathur.
Alert system By Harsh Mathur.Alert system By Harsh Mathur.
Alert system By Harsh Mathur.
Harsh Mathur
 
Color palette By Harsh Mathur
Color palette By Harsh MathurColor palette By Harsh Mathur
Color palette By Harsh Mathur
Harsh Mathur
 
Billing Software By Harsh Mathur.
Billing Software By Harsh Mathur.Billing Software By Harsh Mathur.
Billing Software By Harsh Mathur.
Harsh Mathur
 
Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.
Harsh Mathur
 
Student Management System (SMS)
Student Management System (SMS)Student Management System (SMS)
Student Management System (SMS)
Harsh Mathur
 
Cab invoice/cab Bill Genrater
Cab invoice/cab Bill GenraterCab invoice/cab Bill Genrater
Cab invoice/cab Bill Genrater
Harsh Mathur
 
Informatics Practices Chapter 2 Open Source Software Concepts Class 12th
 Informatics Practices Chapter 2  Open Source Software Concepts Class 12th Informatics Practices Chapter 2  Open Source Software Concepts Class 12th
Informatics Practices Chapter 2 Open Source Software Concepts Class 12th
Harsh Mathur
 
Chapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12thChapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12th
Harsh Mathur
 
Informatics Practices Project on Tour and travels
 Informatics Practices Project on Tour and travels  Informatics Practices Project on Tour and travels
Informatics Practices Project on Tour and travels
Harsh Mathur
 
Eco chapter 1 class 12th
Eco chapter 1 class 12thEco chapter 1 class 12th
Eco chapter 1 class 12th
Harsh Mathur
 

More from Harsh Mathur (19)

Understanding-Salesforce-CDP.pdf
Understanding-Salesforce-CDP.pdfUnderstanding-Salesforce-CDP.pdf
Understanding-Salesforce-CDP.pdf
 
Service Desk By Harsh Mathur
Service Desk  By Harsh MathurService Desk  By Harsh Mathur
Service Desk By Harsh Mathur
 
Training Management Software By Harsh Mathur.
Training  Management Software By Harsh Mathur.Training  Management Software By Harsh Mathur.
Training Management Software By Harsh Mathur.
 
Hotel management system By Harsh & aditya Mathur.
Hotel management system By  Harsh & aditya  Mathur.Hotel management system By  Harsh & aditya  Mathur.
Hotel management system By Harsh & aditya Mathur.
 
Invoice Maker by harsh mathur
Invoice Maker by harsh mathurInvoice Maker by harsh mathur
Invoice Maker by harsh mathur
 
Holography project By Harsh Mathur & Aditya Mathur.
Holography project By Harsh Mathur & Aditya Mathur.Holography project By Harsh Mathur & Aditya Mathur.
Holography project By Harsh Mathur & Aditya Mathur.
 
Harsh Mathur project c++
Harsh Mathur project c++Harsh Mathur project c++
Harsh Mathur project c++
 
College website By Harsh Mathur
College website By Harsh MathurCollege website By Harsh Mathur
College website By Harsh Mathur
 
Billing software By Harsh Mathur
Billing software By Harsh MathurBilling software By Harsh Mathur
Billing software By Harsh Mathur
 
Alert system By Harsh Mathur.
Alert system By Harsh Mathur.Alert system By Harsh Mathur.
Alert system By Harsh Mathur.
 
Color palette By Harsh Mathur
Color palette By Harsh MathurColor palette By Harsh Mathur
Color palette By Harsh Mathur
 
Billing Software By Harsh Mathur.
Billing Software By Harsh Mathur.Billing Software By Harsh Mathur.
Billing Software By Harsh Mathur.
 
Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.Text Editor By Harsh Mathur.
Text Editor By Harsh Mathur.
 
Student Management System (SMS)
Student Management System (SMS)Student Management System (SMS)
Student Management System (SMS)
 
Cab invoice/cab Bill Genrater
Cab invoice/cab Bill GenraterCab invoice/cab Bill Genrater
Cab invoice/cab Bill Genrater
 
Informatics Practices Chapter 2 Open Source Software Concepts Class 12th
 Informatics Practices Chapter 2  Open Source Software Concepts Class 12th Informatics Practices Chapter 2  Open Source Software Concepts Class 12th
Informatics Practices Chapter 2 Open Source Software Concepts Class 12th
 
Chapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12thChapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12th
 
Informatics Practices Project on Tour and travels
 Informatics Practices Project on Tour and travels  Informatics Practices Project on Tour and travels
Informatics Practices Project on Tour and travels
 
Eco chapter 1 class 12th
Eco chapter 1 class 12thEco chapter 1 class 12th
Eco chapter 1 class 12th
 

Recently uploaded

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 

Recently uploaded (20)

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 

Harsh Mathur Final Year Project Report on Restaurant Billing System

  • 1.
  • 2. Project report on Restaurant Billing System Submitted To Dezyne E’cole College Towards The Partial Fulfilment Of 2019 Year, Bachelor of Computer Application By Harsh Mathur Dezyne E’cole College 106/10, Civil Line, Ajmer www.dezyneecole.com
  • 3. GRADE SHEET This project report has been made under the guidance of Mr. Tarun Sharma faculty of Bachelor of Computer Application. This project focus on various parameter of Restaurant Billing System The overall project report is________________________________________________ ___________________________________________________________________________ ___________________________________________________________________________ ___________________________________________________________________________ _________________. Principal Signature __________________ Date __________________
  • 4. Contents Acknowledgement................................................................................................................................... 1 Synopsis .................................................................................................................................................. 2 Chapter – 1 Introduction of Information Technology (IT) ..................................................................... 5 Chapter – 2 Introduction to Project......................................................................................................... 7 Chapter – 3 Project & Their Facilities .................................................................................................... 9 Chapter – 4 Project Design ................................................................................................................... 10 Chapter – 5 Database Development...................................................................................................... 14 Chapter – 6 System Requirements of PC............................................................................................ 113 Chapter – 7 Conclusion....................................................................................................................... 114 Bibliography........................................................................................................................................ 115
  • 5. Page | 1 Acknowledgement The satisfaction that accompanies that the successful completion of any task would be incomplete without the mention of people whose ceaseless co-operation made it possible, whose constant guidance and encouragement crown all efforts with success. The project on Restaurant Billing System was developed in Visual Basic Language at Dezyne E’cole College. During the making of this project we have learnt a lot and we are extremely grateful and remain indebted to our guide MR. Tarun Sharma for being a source of inspiration and for his constant support in the design, implementation and evaluation of the project. We are thankful to them for their constant constructive criticism and invaluable suggestions, which benefited us a lot while developing the project on “Restaurant Billing System”. He has been a constant source of inspiration and motivation for hard work. He has been very cooperative throughout this project work. Through this column, we express our warm thanks to him for their encouragement, co-operation and consent without which we mightn’t be able to accomplish this project. I cannot move on beloved without thank beloved Principal Mrs. Vinita Mathur for creating the required academic environment which made my task appreciable. We would like to thank the other faculty member also, at this occasion. Last but not the least, we would like to thank our friends & family for support and encouragement they have given us during the course of our work. With due regards Mr. Harsh Mathur BCA 3rd Year
  • 6. Page | 2 Synopsis The project Restaurant Billing System gives us the facility to manage the Restaurants billing system. This application is helpful for staff or admin for billing of food order and managing customers details. This application is access by only staff and admin. Members can’t access it directly. The project is very useful for those who want to know about Restaurants Billing System. This application maintains the records related to Customers, and Sales etc. We can enter the details of new food items and retrieve the details of food items and employees available in the System. We can generate the bills for the customers. We can generate the membership card for the customers. We can also maintain the records of customers .In this project we can maintain the GST calculation of every food item. GST can be issued according to Govt. specified categories of all the food itmes. Total sales can also be maintain in this project. All necessary requirements for the Restaurants Billing System has presented in this project.
  • 7. Page | 3 Introduction Page of Student Qualification School/College Board/University Year Percentage BCA-3rd Year Dezyne E’cole College M.D.S. University 2018-19 Pursuing BCA-2nd Year Dezyne E’cole College M.D.S. University 2017-18 72.3% BCA-1st Year Dezyne E’cole College M.D.S. University 2016-17 68.8 12th MAPS CBSE 2015-16 63.8 10th MAPS CBSE 2013-14 5.8(CGPA) Harsh Mathur Contact Information: 207/38,Rajoriya Building Kayasth Mohlla,Purani Mandi Ajmer (Raj.) Phone: 0145-2624679 9509842953 E-mail: E-mail: mharsh631@gmail.comm Personal Data: Professional Qualification: Pursuing Bachelor Degree in Computer Application from Dezyne E’cole College, Ajmer Affiliated from Maharshi Dayanand Saraswati University, I have mastered the basic languages and created lot of projects during my study period to hone my skills. Academic Qualification: Date of birth: 18-Dec-1997 Nationality: Indian. Date of birth: 18/09/1996 Technical Skills: • Good command on the programming languages learnt in the first year of BCA, C, ,HTML, CSS, MS Office and Data Structure. • Good command on the programming languages learnt in the second year of BCA, C++, JAVA,PHP and Data Base Management System. • Good command on the programming languages learnt in the third year of BCA, VB, Relational Data Base Management System, Oracle 10g, and Java Script. Certifications: • Two Months HTML and CSS Course Certifications. • One Month PHP Course Certifications. • One Month Android Develpoment Course Certifications.
  • 8. Page | 4 Co-Curricular and Achievements: • Participated in the Annual Identity Exhibition, 2016 at College on the concept of Rise of the robot. • Participated in the Annual Identity Exhibition, 2017 at College on the concept Hooked and presented Project on Banking System. • Participated in the Annual Identity Exhibition, 2018 at College on the concept Future of me and presented Project on Alert System and Holography. • Participated in College Annual Event Kaleidoscope 2016 and 2017. • Received 1st prize for Identity Exhibition in year 2017. • Received 1st prize for Identity Exhibition in year 2018. Main Projects Undertaken (During College Study): Project made using languages HTML&CSS • A website was created using HTML&CSS during my First year based on the concept Big Data. You can see my work on the following link: https://www.slideshare.net/dezyneecolebca3yrsprogram/harsh-mathur-bca-second-year-dezyne-ecole- college?qid=040d9fb4-f1bc-4fc5-b181-80c63381a99e&v=&b=&from_search=3 Project made using languages HTML&CSS with PHP • A website was created using HTML&CSS during my First year based on the concept Student Management System. You can see my work on the following link: https://www.slideshare.net/harshmathur18/student-management-system-sms Declaration: I hereby declare that particulars given here are true and complete to the best of my knowledge and belief.
  • 9. Page | 5 Chapter – 1 Introduction of Information Technology (IT) Information Technology – Set of tools, processes, and methodologies (such as coding, programming, data communication, data conversion, storage & retrieval, system analysis & design, system control) and associated equipment employee to collect process and present information. In broad terms, it also includes office automation, multimedia and Tele – communication. Information Technology, a source we call the “computer”, that can show you what information via Tele-portal, scoping, working calibration for transmitting throughout the world. More commonly known as I.T. is the most popular career and the fastest growing industry in the world. There are several success stories about people who choose this field for a career and are now on top of their game. Few reasons for why people choose IT -  Low cost of education The biggest advantage of choosing information technology for a career is that it has very low cost of education as compared to many other career choices. You don’t need degree to become an I.T. professional. Instead, you can get quick training to be certified in specific areas of information technology. This way you save huge amounts of money that you may have otherwise spent on years of college tuition.  Fastest changing industry The information technology industry operates at a speed much faster than any other industry and for this reason, there’s always a significant demand for highly skilled workers with the innovations in cloud computing, big data and cyber security an aspiring I.T. professional has many avenues to pursue and grow from and I.T. professional never stops learning, and must always stay on top of the latest technology trend in order to be successful in the field. The more training and knowledge the I.T. professional has the more employable he or she will be.  Better income It is well known fact that information technology professionals are paid well, compared to other professionals. An I.T. professional with the right mix of certifications & experience can find a permanent position in either the public or private sector. Recently many companies have been extensively hiring experts in cloud computing, cyber security and network security to help enhance their current systems. Bachelor of Computer Application BCA is a part of information technology. In this age of computers and everything being digitalized, knowledge about machines is very important. It helps the person have a distinct advantage over the others who do not have a degree in computer applications. The domain is growing a rapid pace. In the 1990’s with the advent of globalization computers grew in prominence and slowly started to replace the paper and files in offices. It brought down the cost to quite an exist.
  • 10. Page | 6 BCA is a three year undergraduate degree course. Students will be taught subjects which are related to the technological applications that are requires in today’s practical work field. 1. Skills to be learnt – Students who study for a bachelor of computer application (BCA) will get skills and information not only about computer and information technology but also in communication, organization and management. One also get to learn programming languages such as C, C++, JAVA, JavaScript, HTML&CSS, SQL, Foxpro etc. 2. Career opportunities – BCA given a number of opportunities to individuals to go ahead and shine in their lives. The opportunities available for people doing BCA are galore. A few of them like software programmer, system and network administrator, web designer, faculty for computer science / communication technology etc. the range of chances in information technology are immense. According to our MDS University we have learnt many theory & practical subjects – • First Year o Management and accounting o Computer fundamental o PC software o Fundamentals of C Programming o Data structure and algorithm o Multimedia Basic • Second year o Communication skills o Database management system o Client server technology o Java Programming o C++ Programming o Computer Graphics • Third year o Visual Basic Programming o Relational database management system ORACLE / SQL) o E - Commerce o Computer Network and Mobile Computing o Internet tools & website development (JavaScript, ASP) o Management Information System
  • 11. Page | 7 Chapter – 2 Introduction to Project The project is “Restaurant Billing System” software for monitoring and controlling the transactions in a Restaurant. The project Restaurant Billing System is developed on visual basic language which mainly focuses on basic operation in a Restaurant like – Book Table,View Menu, Select Order, View Order, adding new member, & updating new information,Generate Bill, Calculate Discount and Tax, Select Payment Mode ,Generate Report. Restaurant Billing System is a windows application designed to help users maintain & organize Restaurant. Our application is easy to use for both beginners & advanced users. It features a familiar and well thought – out, an attractive user interface, combined with strong searching, insertion & deletion capabilities. It can generate a Membership card for member of Restaurant. The application Restaurant Billing system has four main module –  Insertion, Deletion, Updation to database module – User friendly input screen.  Extracting from the database module –Attractive output screen.  Generate Membership card module – Further Discount though card.  Search facility system Module – Search for members. The Restaurant Billing System is designed and develop for a receipt and of book tables in the restaurants along with the member’s details. Why it is made – The main objective of this project is to provide a friendly environment to maintain the details of restaurants and library members. The main purpose of this project is replace the manually work. What Language – Visual Basic 6.0 Language Visual basic (VB) is a 3rd generation event-driven programming language developed by Microsoft for their operating system windows. Visual basic is a widely understood high level programming language, written using simple English. Like – words & syntax. It is an interpreted language. Code can be run immediately after being written. Having an interpreter makes its simpler to use, as there is no need for the computer to compile the code, possibly finding errors to fix, before the compiled version can be run. Once the code is working, it can be compiled into an .exe file so that it will run on all modern windows computers, whether VB is installed or not. The language allows a beginning programmer to produce professional – looking windows applications, as its include drawing tools to create normal windows and structures which allow programs to be adapted for use with the internet. VB will not run on operating systems other than windows. Visual Basic has its origin in basic which was developed round about the year 1960, when high level languages were just being introduced to the computer community. Microsoft has made it extremely powerful by gearing all its good features to the windows environment.
  • 12. Page | 8 Evaluation of Visual Basic – VB 1.0 was introduced in 1991. The drag and drop design for creating the user interface is derived from prototype from generator developed by Allan cooper and his company called Tripod. Microsoft contracted with cooper and his associates to develop Tripod into a programmable form system for windows 3.0, under the code name Ruby (no relation to the Ruby programming language). Tripod did not include a programming language at all. Microsoft decided to combine Ruby with the basic language to create Visual Basic. Need of Visual Basic – Visual Basic is easy to learn programming language. With Visual Basic you can develop windows based applications and Games. Visual Basic is much easier to learn than others language (like Visual C++), and yet it’s powerful programming language. Visual Basic suite more for desktop application developing than for Games developing. You can create sophisticated games using Visual Basic, Visual Basic will be probably powerful enough to suite all your application and games programming needs. Integrated Development Environment – The working environment in VB is often referred to as the Integrated Development Environment or IDE, because it integrates many different functions such as design, editing, compiling and debugging within a common environment. Since all our projects are developed only in the IDE.
  • 13. Page | 9 Chapter – 3 Project & Their Facilities Restaurant Billing System is a project which aims in developing a computerized system to maintain all the daily work of library. This project has many features which are generally not available in normal Restaurant Billing System like – Staff login. It has also a facility where member issue a book so all details of restaurant issue date and return date show. It has a facility where we add a new member so member card will be create for member. Overall this project is ours is being developed to help the schools, organizations, college to maintain the library in the best way possible and also reduce the human efforts. Here is a list of some features which are in provided in this application –  Keep records of different categories like – Customers Name, Phone Number etc.  Classify the customers Name wise.  Easy way to enter new Customers.  Easy way to Log-In and Log-Out.  Automatic GST calculation.  Different criteria for searching a Customers. Objective of Restaurant Billing System – 1. Automation –The application automates each and every activity of the manual system and increases its throughput. Thus the response time of the system is very less and it works very fast. 2. Accuracy – The application provides the user a quick response with very accurate information regarding the user etc. any details or system in an accurate manner, as when required. 3. User Friendly – The application Restaurant Billing System has a very user friendly interface. Thus the users will full very easy to work on it. The application provides accuracy along with a pleasant interface. Make the present manual system more interactive, speedy and user friendly. 4. Availability – The all transaction of restaurant stored permanently in the database admin can see the data in the availability of any information, whatever needed. 5. Maintain Cost – Reduce the cost of maintenance. It is standalone application so no required of cost for maintain it.
  • 14. Page | 10 Chapter – 4 Project Design The project design process is not a step by step. But still much of design work depends on knowledge and experience of the designs, when we start working on project design, we will face different types of problems. However, following considerations should be kept in mind during the project design phase: Design Objectives – The primary objective of the design of course, is to deliver the requirements as specified already. In general the following design objectives kept in mind. Practically – The system must be stable and can be operated by people with average. Efficiency – This involves accuracy, timeliness, and comprehensiveness to the system output. Cost – It is desirable to aim for a system with a minimum cost subject to the condition that it must satisfy all requirements & maintain maintenance. Flexibility – The system should be modifiable depending on the changing needs if the user. It should also be portable to different computer system but not other than Windows OS. Security – This is very important aspect of the design and should cover areas of hardware reliability, fall back procedures, physical security if the data. System design involves first logical design and then physical construction of the system. Major Project Design Activities – Several development activities are carried out during structured design. They are database design, implementation planning, and system interface. Design Process – The system design process is an exercise of specifying how, the system will work. It is an interactive process which is based on what the system will be do as shown in the report. Mainly following two parts have been included in the system design process. 1. Output Design –
  • 15. Page | 11 The starting point of the design process is the proper knowledge of system requirements which will normally be converted on terms of output. 2. Input Design – Once the output requirements have been finalized the next step in to find out what data need to be made available to the system to procedure the desired outputs. Data Flow Diagrams of Restaurant Billing System  DFD Level 0 Admin Restaurant Billing SystemSystem Request Response  DFD Level 1 Admin Restaurant Billing System Database Request Request Response Response  DFD Level 2 Admin Restaurant Billing System Database Interaction Store in MS Access
  • 16. Page | 12  DFD Level 3 Admin Restaurant Billing System Database Interaction Store in MS Access Display Message Configuration Book Table View Food Select Food Enter Quantity Create Membership Card Select Payment Mode Proceed Bill Payment Invoice Generated View Ordered Food Insert, Save, Update, Save Update, Delete, Search
  • 17. Page | 13  DFD Level 4 Admin Restaurant Billing System Database Interaction Store in MS Access Display Message Configuration Membership Cards Create Membership Security Exists Customer New Customer Update Existing Data
  • 18. Page | 14 Chapter – 5 Database Development This activity deals with the design of the physical database. A key is to determine how the access path art to be implemented. As a programmer, we are expected to design and develop any program that works correctly efficiently and the time is easy to be used by every person, who may or may not be well versed with computer and its capabilities. The project is based on the Library Management System, Being the Information System it requires extensive use of some Database Management System to store, manipulate & handle the huge and complex record. In DBMS we can act various attributes with the database like editing the records, modifications, deletions of the records, view the records in various formats, listing the database etc. MS Access – Microsoft Access is an office product that allows the user to create relational databases that have tables of data. MS 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 & databases. It’s an easy to use tool for quickly creating browser based database applications. In very simple term, MS Access is an Information Management tool that helps you store information for reference, reporting & analysis. Microsoft Access helps you analyze large amount of information, and manage related data more efficient than MS Excel or other spreadsheet applications. In our project we create 10 tables in MS Access-  Table Number Field Name Data Type ID Short Text Name Short Text Price Short Text Category Short Text
  • 19. Page | 15  Bill Field Name Data Type ID Short Text Date Short Text Name Short Text Phone Short Text Total_Item Short Text Total_qty Short Text Sub_Total Short Text Cgst Short Text Sgst Short Text Total_gst Short Text After_tax_amt Short Text Dis_amt Short Text Grand_total Short Text Payment_mode Short Text Time Short Text Day Short Text Month Short Text Year Short Text  Bill Detail Field Name Data Type B_ID Short Text Item_id Short Text Item_name Short Text Item_qty Short Text Item_price Short Text Item_amount Short Text
  • 20. Page | 16  Customer Field Name Data Type Name Short Text Phone Short Text  Membership Card Field Name Data Type M_no Short Text Name Short Text Phone Short Text Issue Short Text Valid Short Text  Menu Field Name Data Type ID Short Text Name Short Text Price Short Text Category Short Text
  • 21. Page | 17 All Forms and Coding of our project: Front Page private Sub Close_Click() Unload Me End Sub Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Shape1.BackColor = RGB(185, 0, 0) End Sub Private Sub CLOSEL_Click() Unload Me Unload BILLFORM Unload BOOKTABLEFORM
  • 22. Page | 18 Unload MENUFORM Unload VIEWORDERFORM Unload MEMBERSHIPFORM End Sub Private Sub CLOSEL_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) CLOSES.BackColor = vbRed End Sub Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) CLOSES.BackColor = RGB(180, 180, 180) For i = 0 To 3 BTS(i).BorderColor = vbBlack Next End Sub Private Sub Form_Load() 'MsgBox Screen.Width * 0.4 & Screen.Height * 0.4 With me .Width = Screen.Width * 0.6 .Height = Screen.Height * 0.73 .Left = Screen.Width * 0.2 .Top = Screen.Height * 0.1 '.BackColor = RGB(20, 180, 248) End With With Image1 .Width = Me.Width .Height = Me.Height .Left = 0 .Top = 0 .Picture = LoadPicture(".databack.jpg") '.Enabled = False
  • 23. Page | 19 End With With CLOSES .Width = 650 .Height = 350 .Left = Me.Width - 640 .Top = 10 .BackColor = RGB(180, 180, 180) End With With CLOSEL .Width = 650 .Height = 350 .Left = Me.Width - 640 .Top = 20 End With For i = 0 To 2 With BTS(i) .Width = Me.Width * 0.27 .Height = Me.Height * 0.05 .Top = Me.Height * 0.025 If i = 0 Then .Left = Me.Width * 0.04 ElseIf i = 1 Then .Left = Me.Width * 0.35 ElseIf i = 2 Then .Left = Me.Width * 0.66 End If End With Next For i = 0 To 2 With Label1(i)
  • 24. Page | 20 .Width = Me.Width * 0.27 .Height = Me.Height * 0.03 .Top = Me.Height * 0.035 .Alignment = 2 If i = 0 Then .Left = Me.Width * 0.04 ElseIf i = 1 Then .Left = Me.Width * 0.35 ElseIf i = 2 Then .Left = Me.Width * 0.66 ElseIf i = 3 Then .Left = Me.Width * 0.71 End If End With Next ' End Sub Private Sub Image1_Click() Unload BILLFORM 'Unload BOOKTABLEFORM Unload MENUFORM Unload VIEWORDERFORM For i = 0 To 2 BTS(i).BackStyle = 0 Label1(i).ForeColor = vbBlack Next End Sub Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) CLOSES.BackColor = RGB(180, 180, 180)
  • 25. Page | 21 For i = 0 To 2 BTS(i).BorderColor = vbBlack Next End Sub Private Sub Label1_Click(Index As Integer) If Index = 0 Then BOOKTABLEFORM.Show Unload MENUFORM Unload VIEWORDERFORM ElseIf Index = 1 Then MENUFORM.Show Unload VIEWORDERFORM Unload MEMBERSHIPFORM ElseIf Index = 2 Then VIEWORDERFORM.Show Unload MENUFORM Unload MEMBERSHIPFORM End If For i = 0 To 2 BTS(i).BackStyle = 0 Label1(i).ForeColor = vbBlack Next With BTS(Index) .BackStyle = 1 .BackColor = vbBlack End With Label1(Index).ForeColor = vbWhite End Sub Private Sub Label1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  • 26. Page | 22 For i = 0 To 2 BTS(i).BorderColor = vbBlack Next BTS(Index).BorderColor = vbWhite End Sub Book Table Private Sub Form_Activate() Call connect rs1.Close rs1.Open "select distinct t_no from tablenumber" 'MsgBox rs1.RecordCount If rs1.RecordCount = 0 Then For i = 0 To 10 With TL1(i) .Caption = "" .Enabled = False .Tag = "0" End With
  • 27. Page | 23 Next End If While Not rs1.EOF For i = 0 To 10 If Image3(i).Tag = rs1.Fields(0) Then With TL1(i) .Caption = "Booked!!" .Enabled = True .Tag = "1" End With 'MsgBox rs1.Fields(0) End If Next rs1.MoveNext Wend End Sub Private Sub Form_Load() With Me .Width = Screen.Width * 0.57 .Height = Screen.Height * 0.6 .Left = Screen.Width * 0.215 .Top = Screen.Height * 0.21 .BackColor = vbWhite End With With Image2 .Width = Me.Width .Height = Me.Height .Left = 0 .Top = 0 .Picture = LoadPicture(".databack11.jpg") End With
  • 28. Page | 24 With LWAITER .Stretch = True .LoadAnimatedGIF_File (".DataLwaiter.gif") .Top = Me.Height * 0.5 .Left = Me.Width * 0.07 End With With RWAITER .Stretch = True .LoadAnimatedGIF_File (".DataRwaiter.gif") .Top = Me.Height * 0.5 .Left = Me.Width * 0.85 End With For i = 0 To 10 With Image3(i) .Stretch = True .LoadAnimatedGIF_File (".Datatable.gif") .ToolTipText = "Table No : " & i + 1 .Tag = i + 1 If i = 0 Then .Top = Me.Height * 0.43 .Left = Me.Width * 0.28 ElseIf i = 1 Then .Top = Me.Height * 0.395 .Left = Me.Width * 0.395 ElseIf i = 2 Then .Top = Me.Height * 0.395 .Left = Me.Width * 0.51 ElseIf i = 3 Then .Top = Me.Height * 0.43 .Left = Me.Width * 0.63 ElseIf i = 4 Then
  • 29. Page | 25 .Top = Me.Height * 0.565 .Left = Me.Width * 0.175 i = i + 1 ElseIf i = 6 Then .Top = Me.Height * 0.565 .Left = Me.Width * 0.69 ElseIf i = 7 Then .Top = Me.Height * 0.75 .Left = Me.Width * 0.07 ElseIf i = 8 Then .Top = Me.Height * 0.75 .Left = Me.Width * 0.3 ElseIf i = 9 Then .Top = Me.Height * 0.75 .Left = Me.Width * 0.52 ElseIf i = 10 Then .Top = Me.Height * 0.75 .Left = Me.Width * 0.75 End If End With Next With Image3(5) .Stretch = True .ToolTipText = "Table No : " & 6 .Tag = 6 .LoadAnimatedGIF_File (".Databigtable1.gif") .Top = Me.Height * 0.555 .Left = Me.Width * 0.37 End With For i = 0 To 10
  • 30. Page | 26 With Label1(i) .Width = Me.Width * 0.03 .Height = Me.Height * 0.035 .BackStyle = 1 .FontSize = 12 .BackColor = RGB(255, 100, 0) .ForeColor = vbWhite If i = 0 Then .Top = Me.Height * 0.38 .Left = Me.Width * 0.305 ElseIf i = 1 Then .Top = Me.Height * 0.35 .Left = Me.Width * 0.42 ElseIf i = 2 Then .Top = Me.Height * 0.35 .Left = Me.Width * 0.535 ElseIf i = 3 Then .Top = Me.Height * 0.38 .Left = Me.Width * 0.65 ElseIf i = 4 Then .Top = Me.Height * 0.52 .Left = Me.Width * 0.21 ElseIf i = 5 Then .Top = Me.Height * 0.52 .Left = Me.Width * 0.45 .Width = Me.Width * 0.06 ElseIf i = 6 Then .Top = Me.Height * 0.52 .Left = Me.Width * 0.73 ElseIf i = 7 Then .Top = Me.Height * 0.72
  • 31. Page | 27 .Left = Me.Width * 0.12 ElseIf i = 8 Then .Top = Me.Height * 0.72 .Left = Me.Width * 0.35 ElseIf i = 9 Then .Top = Me.Height * 0.72 .Left = Me.Width * 0.57 ElseIf i = 10 Then .Top = Me.Height * 0.72 .Left = Me.Width * 0.8 End If End With Next For i = 0 To 10 With TL1(i) .Width = Me.Width * 0.1 .Height = Me.Height * 0.05 .Top = Me.Height * 0.25 .Enabled = False .BackStyle = 0 .Alignment = 2 .FontName = "consolas" .FontBold = True .FontSize = 15 If i = 0 Then .Top = Me.Height * 0.5 .Left = Me.Width * 0.28 ElseIf i = 1 Then .Top = Me.Height * 0.45
  • 32. Page | 28 .Left = Me.Width * 0.39 ElseIf i = 2 Then .Top = Me.Height * 0.45 .Left = Me.Width * 0.51 ElseIf i = 3 Then .Top = Me.Height * 0.5 .Left = Me.Width * 0.62 ElseIf i = 4 Then .Top = Me.Height * 0.65 .Left = Me.Width * 0.18 ElseIf i = 5 Then .Top = Me.Height * 0.65 .Left = Me.Width * 0.43 .Width = Me.Width * 0.1 ElseIf i = 6 Then .Top = Me.Height * 0.65 .Left = Me.Width * 0.7 ElseIf i = 7 Then .Top = Me.Height * 0.875 .Left = Me.Width * 0.09 ElseIf i = 8 Then .Top = Me.Height * 0.875 .Left = Me.Width * 0.32 ElseIf i = 9 Then .Top = Me.Height * 0.875 .Left = Me.Width * 0.54 ElseIf i = 10 Then .Top = Me.Height * 0.875 .Left = Me.Width * 0.77 End If End With
  • 33. Page | 29 Next End Sub Private Sub Close_Click() Me.Hide End Sub Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Shape1.BackColor = RGB(185, 0, 0) End Sub Private Sub Image3_Click(Index As Integer) i = Index TL1(i).Enabled = True TL1(i).Caption = "Booked!!" TL1(i).Tag = "1" End Sub Private Sub Label2_Click() Form1.Show End Sub
  • 34. Page | 30 View Menu Dim l As ListItem Dim TABLENO, I_ID, I_NAME, ITEM_NAME, I_PRICE As Variant Dim I_QTY, AVAILABEL_QTY As Integer Private Sub ATF_Click() End Sub Private Sub CANCELQTYBTN_Click() QTYTEXT = "" Frame1.Visible = False 'Frame1 for Take Input Qty from User End Sub
  • 35. Page | 31 Private Sub Close_Click() Me.Hide MENULISTFORM.Hide 'Add Itmes In Order List. 'OPTIONFORM.Show End Sub Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Shape2.BackColor = RGB(185, 0, 0) 'Shape2 for Close Button End Sub Private Sub Command1_Click() MENUF2.Visible = True 'Secound Form of Menu MENUF1.Visible = False 'First Form Of Menu End Sub Private Sub Command2_Click() MENUF2.Visible = False MENUF1.Visible = True End Sub Private Sub Form_Activate() Call connect rs1.Close rs1.Open "select distinct t_no from tablenumber" 'MsgBox rs1.RecordCount While Not rs1.EOF For i = 0 To 10 If BOOKTABLEFORM.Image3(i).Tag = rs1.Fields(0) Then With BOOKTABLEFORM.TL1(i) .Caption = "Booked!!" .Enabled = True .Tag = "1"
  • 36. Page | 32 End With 'MsgBox rs1.Fields(0) End If Next rs1.MoveNext Wend For i = 0 To 10 If BOOKTABLEFORM.TL1(i).Tag = "1" Then With TNL(i) .Enabled = True .ForeColor = vbBlack Shape1(i).BackStyle = 1 Shape1(i).BackColor = vbWhite End With Else With TNL(i) .Enabled = False .ForeColor = vbBlack Shape1(i).BackStyle = 0 Shape1(i).BackColor = RGB(200, 200, 200) End With End If Next End Sub Private Sub Form_Click() Unload Me End Sub Private Sub Form_Load()
  • 37. Page | 33 Me.FontName = "century gothic" Label3(0).Tag = "ATF" Label3(1).Tag = "Sandwich" Label3(2).Tag = "Burger" Label3(3).Tag = "Pizza" Label3(4).Tag = "Noodle" Label3(5).Tag = "Chats" With Me .Width = Screen.Width * 0.57 .Height = Screen.Height * 0.6 .Left = Screen.Width * 0.215 .Top = Screen.Height * 0.21 .FontSize = 12 .FontName = "century gothic" .BackColor = vbRed End With For i = 0 To 1 With Image1(i) .Width = Me.Width .Height = Me.Height .Left = 0 .Top = 0 .Stretch = True .Picture = LoadPicture(".databack22.jpg") End With Next With MENUF1 .Width = Me.Width .Height = Me.Height .Left = 0 .Top = 0 .BorderStyle = 0 .BackColor = vbWhite
  • 38. Page | 34 End With With MENUL .Height = Me.Height * 0.06 .Width = Me.Width * 0.2 .Left = Me.Width * 0.4 .Top = Me.Height * 0 .Caption = "MENU" .Alignment = 2 .BackStyle = 0 End With ' Table Number label For i = 0 To 10 With TNL(i) .Enabled = False .BackStyle = 0 End With Next With MENUF2 .Width = Me.Width .Height = Me.Height .Left = 0 .Top = 0 .BorderStyle = 0 .Visible = False .BackColor = vbWhite End With With Frame1 .Width = Me.Width * 0.35 .Height = Me.Height * 0.3
  • 39. Page | 35 .Left = Me.Width / 2 - Frame1.Width / 2 .Top = Me.Height / 2 - Frame1.Height / 2 .BorderStyle = 0 .BackColor = RGB(210, 255, 255) End With With FRAMEBACK .Width = Frame1.Width .Height = Frame1.Height .Left = 0 .Top = 0 .Picture = LoadPicture(".databack1.jpg") .Stretch = True End With With ENTERQTYLABEL .Width = Frame1.Width .Height = Frame1.Height * 0.15 .Top = Frame1.Height * 0.1 .Alignment = 2 .Left = 0 .BackStyle = 0 End With With ERRMSG .Width = Frame1.Width .Height = Frame1.Height * 0.15 .Top = Frame1.Height * 0.25 .Alignment = 2 .Left = 0 .BackStyle = 0 .Caption = "" .ForeColor = vbRed End With
  • 40. Page | 36 With QTYTEXT .Width = Frame1.Width * 0.4 .Height = Frame1.Height * 0.17 .Top = Frame1.Height * 0.4 .Left = Frame1.Width * 0.3 End With With CANCELQTYBTN .Width = Frame1.Width * 0.3 .Height = Frame1.Height * 0.15 .Top = Frame1.Height * 0.7 .Left = Frame1.Width * 0.15 End With With OKQTYBTN .Width = Frame1.Width * 0.3 .Height = Frame1.Height * 0.15 .Top = Frame1.Height * 0.7 .Left = Frame1.Width * 0.55 End With .Caption = "All Time Favourite" ElseIf i = 1 Then .Left = Me.Width * 0.04 .Top = Me.Height * 0.45 .Caption = "Sandwich" ElseIf i = 2 Then .Left = Me.Width * 0.04 .Top = Me.Height * 0.72 .Caption = "Burger" ElseIf i = 3 Then .Left = Me.Width * 0.52 .Top = Me.Height * 0.18 .Caption = "Pizza"
  • 41. Page | 37 ElseIf i = 4 Then .Left = Me.Width * 0.52 .Top = Me.Height * 0.45 .Caption = "Noodle" ElseIf i = 5 Then .Left = Me.Width * 0.52 .Top = Me.Height * 0.72 .Caption = "Chats" End If End With Next With LV1 .Height = Me.Height * 0.2 .Width = Me.Width * 0.44 .Left = Me.Width * 0.04 .Top = Me.Height * 0.24 .ColumnHeaders(1).Width = 3000 End With With LV2 .Height = Me.Height * 0.2 .Width = Me.Width * 0.44 .Left = Me.Width * 0.04 .Top = Me.Height * 0.51 .ColumnHeaders(1).Width = 3000 End With With LV3 .Height = Me.Height * 0.2 .Width = Me.Width * 0.44 .Left = Me.Width * 0.04
  • 42. Page | 38 .Top = Me.Height * 0.77 End With With LV4 .Height = Me.Height * 0.2 .Width = Me.Width * 0.44 .Left = Me.Width * 0.52 .Top = Me.Height * 0.24 .ColumnHeaders(1).Width = 3000 End With With LV5 .Height = Me.Height * 0.2 .Width = Me.Width * 0.44 .Left = Me.Width * 0.52 .Top = Me.Height * 0.51 .ColumnHeaders(1).Width = 3000 End With With LV6 .Height = Me.Height * 0.2 .Width = Me.Width * 0.44 .Left = Me.Width * 0.52 .Top = Me.Height * 0.77 .ColumnHeaders(1).Width = 3000 End With For i = 0 To 5 With Label1(i) .Height = Me.Height * 0.06 .Width = Me.Width * 0.44 .Alignment = 2 .ForeColor = vbBlack 'RGB(255, 100, 0) End With
  • 43. Page | 39 If i < 3 Then With Label1(i) .Left = Me.Width * 0.04 End With End If If i < 6 And i > 2 Then With Label1(i) .Left = Me.Width * 0.52 End With End If Next h = Me.Height * 0.02 For i = 0 To 2 With Label1(i) .Top = h End With h = h + Me.Height * 0.32 Next h = Me.Height * 0.02 For i = 3 To 5 With Label1(i) .Tag = "Ice_Cream" End With With LV7 .Height = Me.Height * 0.22 .Width = Me.Width * 0.44 .Left = Me.Width * 0.04 .Top = Me.Height * 0.1 .ColumnHeaders(1).Width = 3000 End With With LV8 .Height = Me.Height * 0.22 .Width = Me.Width * 0.44 .Left = Me.Width * 0.04
  • 44. Page | 40 .Top = Me.Height * 0.42 .ColumnHeaders(1).Width = 3000 End With With LV9 .Height = Me.Height * 0.22 .Width = Me.Width * 0.44 .Left = Me.Width * 0.04 .Top = Me.Height * 0.74 .ColumnHeaders(1).Width = 3000 End With With LV10 .Height = Me.Height * 0.22 .Width = Me.Width * 0.44 .Left = Me.Width * 0.52 .Top = Me.Height * 0.1 .ColumnHeaders(1).Width = 3000 End With With LV11 rs.MoveNext Next rs.Close rs.Open "select name,price from menu where category='" & Label3(2).Tag & "'" For i = 1 To rs.RecordCount Set l = LV3.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from menu where category='" & Label3(3).Tag & "'" For i = 1 To rs.RecordCount Set l = LV4.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from menu where category='" & Label3(4).Tag & "'" For i = 1 To rs.RecordCount
  • 45. Page | 41 Set l = LV5.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from menu where category='" & Label3(5).Tag & "'" For i = 1 To rs.RecordCount Set l = LV6.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from menu where category='" & Label1(0).Tag & "'" For i = 1 To rs.RecordCount Set l = LV7.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from menu where category='" & Label1(1).Tag & "'" For i = 1 To rs.RecordCount Set l = LV8.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from menu where category='" & Label1(2).Tag & "'" For i = 1 To rs.RecordCount Set l = LV9.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from menu where category='" & Label1(3).Tag & "'" For i = 1 To rs.RecordCount Set l = LV10.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close rs.Open "select name,price from menu where category='" & Label1(4).Tag & "'" For i = 1 To rs.RecordCount Set l = LV11.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next
  • 46. Page | 42 rs.Close rs.Open "select name,price from menu where category='" & Label1(5).Tag & "'" For i = 1 To rs.RecordCount Set l = LV12.ListItems.Add(, , rs.Fields(0)) l.SubItems(1) = rs.Fields(1) rs.MoveNext Next rs.Close End Sub Private Sub STARTERL_Click() End Sub Private Sub Frame1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) QTYTEXT.SetFocus End Sub Private Sub Label2_Click() MENULISTFORM.Show End Sub Private Sub LV1_ItemClick(ByVal Item As ComctlLib.ListItem) 'MsgBox TABLENO & Item If TABLENO = 0 Then MsgBox "SELECT YOUR TABLE" Else ITEM_NAME = Item Frame1.Visible = True QTYTEXT.Text = "" End If End Sub Private Sub LV2_ItemClick(ByVal Item As ComctlLib.ListItem)
  • 47. Page | 43 'MsgBox TABLENO & Item If TABLENO = 0 Then MsgBox "SELECT YOUR TABLE" Else ITEM_NAME = Item Frame1.Visible = True QTYTEXT.Text = "" End If End Sub Private Sub LV3_ItemClick(ByVal Item As ComctlLib.ListItem) 'MsgBox TABLENO & Item If TABLENO = 0 Then MsgBox "SELECT YOUR TABLE" Else ITEM_NAME = Item Frame1.Visible = True QTYTEXT.Text = "" End If End Sub Sub additem() 'On Error Resume Next Call connect rs.Close rs.Open "select * from menu where name='" & ITEM_NAME & "' " If rs.RecordCount = 1 Then I_ID = rs.Fields(0) I_NAME = rs.Fields(1) I_PRICE = rs.Fields(2) End If rs1.Close rs1.Open "select * from tablenumber where item_name='" & ITEM_NAME & "' and t_no= '" & TABLENO & "'"
  • 48. Page | 44 If rs1.RecordCount >= 1 Then 'MsgBox rs1.RecordCount rs1.Close rs1.Open "update tablenumber set item_qty = item_qty + '" & I_QTY & "' where item_name='" & ITEM_NAME & "' and t_no= '" & TABLENO & "'" MENULISTFORM.ORDERVIEW.ListItems.Clear rs1.Open "select * from tablenumber where t_no='" & TABLENO & "'" For j = 1 To rs1.RecordCount Set l = MENULISTFORM.ORDERVIEW.ListItems.Add(, , rs1.Fields(2)) l.SubItems(1) = rs1.Fields(4) l.SubItems(2) = rs1.Fields(3) rs1.MoveNext Next Else With rs1 .Close .Open "select * from tablenumber" .AddNew .Fields(0).Value = TABLENO .Fields(1).Value = I_ID .Fields(2).Value = I_NAME .Fields(3).Value = I_PRICE .Fields(4).Value = I_QTY .Update End With MENULISTFORM.ORDERVIEW.ListItems.Clear rs1.Close rs1.Open "select * from tablenumber where t_no='" & TABLENO & "'" For j = 1 To rs1.RecordCount Set l = MENULISTFORM.ORDERVIEW.ListItems.Add(, , rs1.Fields(2)) l.SubItems(1) = rs1.Fields(4) l.SubItems(2) = rs1.Fields(3) rs1.MoveNext
  • 49. Page | 45 Next End If End Sub Private Sub OKQTYBTN_Click() If QTYTEXT = "" Or Val(QTYTEXT) < 1 Then ERRMSG.Caption = "error : ENTER QTY !!" Else I_QTY = QTYTEXT.Text Frame1.Visible = False Call additem End If End Sub Private Sub TNL_Click(Index As Integer) For i = 0 To 10 If BOOKTABLEFORM.TL1(i).Tag = "1" Then With TNL(i) .Enabled = True .ForeColor = vbBlack Shape1(i).BackStyle = 1 Shape1(i).BackColor = vbWhite End With Else With Shape1(i) .BackStyle = 0 .BackColor = RGB(200, 200, 200) End With End If Next
  • 50. Page | 46 For i = 0 To 10 If Index = i Then With Shape1(Index) .BackStyle = 1 .BackColor = vbBlack TNL(i).ForeColor = vbWhite Call connect rs1.Close rs1.Open "select * from tablenumber" TABLENO = Index + 1 MENULISTFORM.TABLENOLABEL.Caption = "Table No : " & TABLENO End With End If Next rs1.Close MENULISTFORM.ORDERVIEW.ListItems.Clear rs1.Open "select * from tablenumber where t_no='" & TABLENO & "'" For j = 1 To rs1.RecordCount Set l = MENULISTFORM.ORDERVIEW.ListItems.Add(, , rs1.Fields(2)) l.SubItems(1) = rs1.Fields(4) l.SubItems(2) = rs1.Fields(3) rs1.MoveNext Next rs1.Close End Sub Order Food
  • 51. Page | 47 Private Sub Command1_Click() Me.Hide End Sub Private Sub Form_Load() With Me .Width = Screen.Width * 0.2 .Height = Screen.Height * 0.6 .Left = Screen.Width * 0.8 .Top = Screen.Height * 0.2 .FontSize = 12 .FontName = "century gothic" .BackColor = vbWhite End With With Image1 .Width = Me.Width .Height = Me.Height .Top = 0 .Left = 0
  • 52. Page | 48 .Stretch = True .Picture = LoadPicture(".databack22.jpg") End With With TABLENOLABEL .Width = Me.Width * 0.9 .Height = Me.Height * 0.075 .Top = Me.Height * 0.05 .Left = Me.Width * 0.05 .Font.Name = "Rockwell" .Alignment = 2 .FontSize = 20 .BackStyle = 0 .Caption = "" End With With ORDERVIEW .Width = Me.Width * 0.98 .Height = Me.Height * 0.75 .Top = Me.Height * 0.15 .Left = Me.Width * 0.01 .ColumnHeaders(1).Width = ORDERVIEW.Width * 0.47 .ColumnHeaders(2).Width = ORDERVIEW.Width * 0.15 .ColumnHeaders(3).Width = ORDERVIEW.Width * 0.2 .Font.Name = "Rockwell" End With End Sub View Order
  • 53. Page | 49 Public TABLENUMBER As Variant Dim l As ListItem Dim TOTAL_AMOUNT, TABLENO As Variant Private Sub Close_Click() Unload Me End Sub Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) CLOSESH.BackColor = RGB(185, 0, 0) End Sub Private Sub Form_Activate() Call connect rs1.Close rs1.Open "select distinct t_no from tablenumber"
  • 54. Page | 50 'MsgBox rs1.RecordCount While Not rs1.EOF For i = 0 To 10 If BOOKTABLEFORM.Image3(i).Tag = rs1.Fields(0) Then With BOOKTABLEFORM.TL1(i) .Caption = "Booked!!" .Enabled = True .Tag = "1" End With 'MsgBox rs1.Fields(0) End If Next rs1.MoveNext Wend For i = 0 To 10 If BOOKTABLEFORM.TL1(i).Tag = "1" Then With TNL(i) .Enabled = True .ForeColor = vbBlack Shape1(i).BackStyle = 1 Shape1(i).BackColor = vbWhite End With End If Next TABLENO = 0 End Sub Private Sub Form_Load() With Me .Width = Screen.Width * 0.57 .Height = Screen.Height * 0.6 .Left = Screen.Width * 0.215 .Top = Screen.Height * 0.2 .FontSize = 12
  • 55. Page | 51 .FontName = "century gothic" .BackColor = RGB(240, 240, 240) End With With Image1 .Width = Me.Width .Height = Me.Height .Left = 0 .Top = 0 .Stretch = True .Picture = LoadPicture(".databack22.jpg") End With For i = 0 To 10 With TNL(i) .Enabled = False .BackStyle = 0 End With Next For i = 0 To 3 With Label1(i) .Height = Me.Height * 0.05 .Top = Me.Height * 0.2 If i = 0 Then .Left = Me.Width * 0.05 .Width = Me.Width * 0.423 ElseIf i = 1 Then .Left = Me.Width * 0.4775 .Width = Me.Width * 0.11 ElseIf i = 2 Then .Left = Me.Width * 0.59 .Width = Me.Width * 0.158 ElseIf i = 3 Then
  • 56. Page | 52 .Left = Me.Width * 0.752 .Width = Me.Width * 0.195 End If End With Next With ORDERVIEW .Width = Me.Width * 0.9 .Height = Me.Height * 0.54 .Top = Me.Height * 0.26 .Left = Me.Width * 0.05 .ColumnHeaders(1).Width = ORDERVIEW.Width * 0.45 .ColumnHeaders(2).Width = ORDERVIEW.Width * 0.1 .ColumnHeaders(3).Width = ORDERVIEW.Width * 0.16 .ColumnHeaders(4).Width = ORDERVIEW.Width * 0.185 End With With TOTALAMOUNTS .Width = Me.Width * 0.32 .Height = Me.Height * 0.08 .Top = Me.Height * 0.85 .Left = Me.Width * 0.1 .BorderWidth = 2 '.Visible = False End With With TOTALAMOUNTL .Width = Me.Width * 0.3 .Height = Me.Height * 0.04 .Top = Me.Height * 0.86 .Left = Me.Width * 0.11 End With 'SHAPE With GENERATEBILLS .Width = Me.Width * 0.32
  • 57. Page | 53 .Height = Me.Height * 0.08 .Top = Me.Height * 0.85 .Left = Me.Width * 0.6 .BorderWidth = 2 End With 'LABEL With GENERATEBILLL .Width = Me.Width * 0.3 .Height = Me.Height * 0.04 .Top = Me.Height * 0.86 .Left = Me.Width * 0.61 .Caption = "NEXT" End With End Sub Private Sub GENERATEBILLL_Click() If TABLENO > 0 Then TABLENUMBER = TABLENO Me.Hide 'MsgBox TABLENUMBER MEMBERSHIPFORM.Show End If End Sub Private Sub GENERATEBILLL_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) GENERATEBILLL.BackColor = RGB(255, 100, 0) End Sub Private Sub GENERATEBILLL_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) GENERATEBILLL.BackColor = RGB(255, 180, 0)
  • 58. Page | 54 End Sub Private Sub TNL_Click(Index As Integer) For i = 0 To 10 If BOOKTABLEFORM.TL1(i).Tag = "1" Then With TNL(i) .Enabled = True .ForeColor = vbBlack Shape1(i).BackStyle = 1 Shape1(i).BackColor = vbWhite End With End If Next TOTALAMOUNTS.Visible = True ORDERVIEW.ListItems.Clear For i = 0 To 10 If Index = i Then With Shape1(Index) .BackStyle = 1 .BackColor = vbBlack TNL(i).ForeColor = vbWhite TABLENO = Index + 1 Call connect rs1.Close rs1.Open "select * from tablenumber where t_no='" & TABLENO & "'" TOTAL_AMOUNT = 0 For j = 1 To rs1.RecordCount Set l = ORDERVIEW.ListItems.Add(, , rs1.Fields(2)) l.SubItems(1) = rs1.Fields(4) l.SubItems(2) = rs1.Fields(3) l.SubItems(3) = l.SubItems(1) * l.SubItems(2) TOTAL_AMOUNT = TOTAL_AMOUNT + l.SubItems(3)
  • 59. Page | 55 rs1.MoveNext Next End With End If Next TOTALAMOUNTL.Caption = "Total Amount : " & TOTAL_AMOUNT rs1.Close End Sub Membership Card Public GETNAME, GETPHONE, GETDISCOUNT As Variant Dim CARD_NUMBER, CHECK, GET_M_NO, COUNTER As Variant Private Sub Check1_Click() NAMETEXT = "" PHONETEXT = "" MEMBERSHIPNOTEXT = "" MSGLABEL.Visible = False
  • 60. Page | 56 If Check1.Value = 1 Then CHECK = 1 Check2.Value = 0 Check3.Value = 0 MEMBERSHIPNOLABEL.Visible = True MEMBERSHIPNOTEXT.Visible = True Check2.Top = Me.Height * 0.45 Else Check2.Top = Me.Height * 0.3 MEMBERSHIPNOLABEL.Visible = False MEMBERSHIPNOTEXT.Visible = False End If End Sub Private Sub Check2_Click() NAMETEXT = "" PHONETEXT = "" MSGLABEL.Visible = False If Check2.Value = 1 Then CHECK = 2 Check1.Value = 0 Check3.Value = 0 With NAMELABEL .Top = Me.Height * 0.62 .Left = Me.Width * 0.1 End With With NAMETEXT .Top = Me.Height * 0.7 .Left = Me.Width * 0.1 End With
  • 61. Page | 57 With PHONELABEL .Top = Me.Height * 0.43 .Left = Me.Width * 0.1 End With With PHONETEXT .Top = Me.Height * 0.51 .Left = Me.Width * 0.1 End With NAMELABEL.Visible = True NAMETEXT.Visible = True PHONELABEL.Visible = True PHONETEXT.Visible = True Else NAMELABEL.Visible = False NAMETEXT.Visible = False PHONELABEL.Visible = False PHONETEXT.Visible = False End If End Sub Private Sub Check3_Click() NAMETEXT = "" PHONETEXT = "" Check3.Tag = 3 MSGLABEL.Visible = False If Check3.Value = 1 Then Check1.Value = 0 Check2.Value = 0 NEXTBTN.Visible = False Shape2.Visible = False With NAMELABEL
  • 62. Page | 58 .Top = Me.Height * 0.45 .Left = Me.Width * 0.5 End With With NAMETEXT .Top = Me.Height * 0.53 .Left = Me.Width * 0.5 End With With PHONELABEL .Top = Me.Height * 0.27 .Left = Me.Width * 0.5 End With With PHONETEXT .Top = Me.Height * 0.35 .Left = Me.Width * 0.5 End With NAMELABEL.Visible = True NAMETEXT.Visible = True PHONELABEL.Visible = True PHONETEXT.Visible = True Card.Visible = True CREATECARD.Visible = True Shape3.Visible = True Call connect If MS.RecordCount = 0 Then CARDNUMBER.Caption = "1001" VALIDDATE.Caption = Month(Date) + 2 & "/" & Mid(Year(Date), 3, 2) Else While Not MS.EOF CARD_NUMBER = MS.Fields(0) MS.MoveNext
  • 63. Page | 59 Wend CARDNUMBER.Caption = CARD_NUMBER + 1 VALIDDATE.Caption = Month(Date) + 2 & "/" & Mid(Year(Date), 3, 2) End If Else NEXTBTN.Visible = True Shape2.Visible = True NAMELABEL.Visible = False NAMETEXT.Visible = False PHONELABEL.Visible = False PHONETEXT.Visible = False Card.Visible = False CREATECARD.Visible = False Shape3.Visible = False End If End Sub Private Sub Close_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Shape1.BackColor = RGB(185, 0, 0) End Sub Private Sub Command1_Click() End Sub Private Sub CREATECARD_Click() If NAMETEXT = "" Or PHONETEXT = "" Then With MSGLABEL .Visible = True .Caption = "Err 10: Enter name and phone" End With Else
  • 64. Page | 60 CNAME.Caption = UCase(NAMETEXT) Call connect With MS .AddNew .Fields(0) = CARDNUMBER.Caption .Fields(1) = NAMETEXT .Fields(2) = PHONETEXT .Fields(3) = Date .Fields(4) = Month(Date) + 2 & "/" & Day(Date) & "/" & Year(Date) .Update End With Shape3.Visible = False CREATECARD.Visible = False Shape2.Visible = True NEXTBTN.Visible = True CHECK = 3 GETNAME = NAMETEXT GETPHONE = PHONETEXT GETDISCOUNT = 0.05 End If End Sub Private Sub EDITBTN_Click() If EDITBTN.Caption = "Update" And Check1.Value = 1 Or Check3.Value = 1 Then Call connect MS.Close MS.Open "update membershipcard set name='" & NAMETEXT.Text & "' where phone='" & PHONETEXT & "'" ElseIf EDITBTN.Caption = "Update" And Check2.Value = 1 Then Call connect CUS.Close
  • 65. Page | 61 CUS.Open "update customer set name='" & NAMETEXT.Text & "' where phone='" & PHONETEXT & "'" End If End Sub Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Shape1.BackColor = RGB(220, 220, 220) End Sub Private Sub Close_Click() Unload Me VIEWORDERFORM.Show End Sub Private Sub Form_Load() EDITBTN.Visible = False With Me .Width = Screen.Width * 0.57 .Height = Screen.Height * 0.6 .Left = Screen.Width * 0.215 .Top = Screen.Height * 0.2 '.BackColor = RGB(178, 150, 150) End With With BACK .Width = Me.Width .Height = Me.Height .Left = 0 .Top = 0 '.BackColor = RGB(178, 150, 150) .Picture = LoadPicture(".databack22.jpg") End With With Check1
  • 66. Page | 62 .Width = Me.Width * 0.3 .Height = Me.Height * 0.1 .Left = Me.Width * 0.1 .Top = Me.Height * 0.15 .Caption = "Membership Card" '.BackColor = RGB(47, 150, 248) End With With Check3 .Width = Me.Width * 0.4 .Height = Me.Height * 0.1 .Left = Me.Width * 0.5 .Top = Me.Height * 0.15 .Caption = "Create Membership Card" '.BackColor = RGB(47, 150, 248) End With With MEMBERSHIPNOLABEL .Width = Me.Width * 0.3 .Height = Me.Height * 0.06 .Left = Me.Width * 0.1 .Top = Me.Height * 0.27 .Caption = "Enter Number" .Visible = False End With With MEMBERSHIPNOTEXT .Width = Me.Width * 0.3 .Height = Me.Height * 0.06 .Left = Me.Width * 0.1 .Top = Me.Height * 0.35 .Visible = False End With
  • 67. Page | 63 With Check2 .Width = Me.Width * 0.3 .Height = Me.Height * 0.1 .Left = Me.Width * 0.1 .Top = Me.Height * 0.3 .Caption = "Customer" '.BackColor = RGB(47, 150, 248) End With With PHONELABEL .Width = Me.Width * 0.3 .Height = Me.Height * 0.06 .Caption = "Enter Mobile No" .Visible = False End With With PHONETEXT .Width = Me.Width * 0.4 .Height = Me.Height * 0.06 .Visible = False End With With NAMELABEL .Width = Me.Width * 0.3 .Height = Me.Height * 0.06 .Caption = "Enter Name" .Visible = False End With With NAMETEXT .Width = Me.Width * 0.4 .Height = Me.Height * 0.06 .Visible = False End With
  • 68. Page | 64 With Card .Width = Me.Width * 0.4 .Height = Me.Height * 0.4 .Left = Me.Width * 0.05 .Top = Me.Height * 0.49 .Visible = False End With With Image2 .Width = Card.Width .Height = Card.Height .Left = 0 .Top = 0 .Stretch = True .Picture = LoadPicture(".datacard1.jpg") End With With CARDNAME .Width = Card.Width * 0.9 .Height = Card.Height * 0.2 .Left = Card.Width * 0.05 .Top = Card.Height * 0.075 .BackStyle = 0 '.LoadAnimatedGIF_File (".datacardname.gif") End With With MEMBERSHIP .Width = Card.Width * 0.9 .Height = Card.Height * 0.13 .Left = Card.Width * 0.05 .Top = Card.Height * 0.3 .BackStyle = 0 '.LoadAnimatedGIF_File (".datacardname.gif")
  • 69. Page | 65 End With With CARDNUMBER .Width = Card.Width * 0.4 .Height = Card.Height * 0.15 .Left = Card.Width * 0.05 .Top = Card.Height * 0.5 .BackStyle = 0 End With With VALIDLABEL(0) .Width = Card.Width * 0.2 .Height = Card.Height * 0.075 .Left = Card.Width * 0.5 .Top = Card.Height * 0.5 .BackStyle = 0 End With With VALIDLABEL(1) .Width = Card.Width * 0.2 .Height = Card.Height * 0.075 .Left = Card.Width * 0.5 .Top = Card.Height * 0.575 .BackStyle = 0 End With With VALIDDATE .Width = Card.Width * 0.25 .Height = Card.Height * 0.15 .Left = Card.Width * 0.7 .Top = Card.Height * 0.5 .BackStyle = 0 End With
  • 70. Page | 66 With CNAME .Width = Card.Width * 0.9 .Height = Card.Height * 0.2 .Left = Card.Width * 0.05 .Top = Card.Height * 0.75 .BackStyle = 0 End With CREATECARD.Visible = False Shape3.Visible = False MSGLABEL.Visible = False End Sub Private Sub Label1_Click() If Check1.Value = 1 Then MsgBox "M" ElseIf Check2.Value = 1 Then MsgBox "C" ElseIf Check3.Value = 1 Then MsgBox "M" Else MsgBox "SELECT" End If End Sub Private Sub Label2_Click() End Sub Private Sub MEMBERSHIPNOTEXT_Change() If Len(MEMBERSHIPNOTEXT) = 4 Then Call connect MS.Close MS.Open "select * from membershipcard where m_no='" & MEMBERSHIPNOTEXT & "'"
  • 71. Page | 67 'MsgBox MS.RecordCount If MS.RecordCount = 1 Then EDITBTN.Visible = True NAMETEXT = MS.Fields(1) PHONETEXT = MS.Fields(2) With NAMELABEL .Caption = "YOUR NAME" .Top = Me.Height * 0.45 .Left = Me.Width * 0.5 End With With NAMETEXT .Top = Me.Height * 0.53 .Left = Me.Width * 0.5 End With With PHONELABEL .Caption = "YOUR MOBILE NUMBER" .Top = Me.Height * 0.27 .Left = Me.Width * 0.5 End With With PHONETEXT .Top = Me.Height * 0.35 .Left = Me.Width * 0.5 End With NAMELABEL.Visible = True NAMETEXT.Visible = True PHONELABEL.Visible = True PHONETEXT.Visible = True End If Else EDITBTN.Visible = False
  • 72. Page | 68 With NAMELABEL .Visible = False .Caption = "Enter Name " End With NAMETEXT.Visible = False With PHONELABEL .Visible = False .Caption = "Enter Phone Number" End With PHONETEXT.Visible = False End If End Sub Private Sub MEMBERSHIPNOTEXT_GotFocus() MSGLABEL.Visible = False End Sub Private Sub NAMETEXT_GotFocus() MSGLABEL.Visible = False End Sub Private Sub NEXTBTN_Click() If CHECK = 1 Then If MEMBERSHIPNOTEXT = "" Then With MSGLABEL .Caption = "Enter Membership Number" .Visible = True End With Else Call connect MS.Close MS.Open "select * from membershipcard where m_no='" & MEMBERSHIPNOTEXT & "'"
  • 73. Page | 69 If MS.RecordCount = 1 Then GETNAME = MS.Fields(1) GETPHONE = MS.Fields(2) GETDISCOUNT = 0.1 BILLFORM.Show Else With MSGLABEL .Visible = True .Caption = "Membership Number is Wrong" End With End If End If ElseIf CHECK = 2 Then If NAMETEXT = "" Or PHONETEXT = "" Then With MSGLABEL .Visible = True .Caption = "Err 10: Enter name and phone" End With ElseIf COUNTER = 0 Then Call connect With CUS .AddNew .Fields(0) = NAMETEXT .Fields(1) = PHONETEXT .Update End With GETNAME = NAMETEXT GETPHONE = PHONETEXT GETDISCOUNT = 0 BILLFORM.Show Else
  • 74. Page | 70 GETNAME = NAMETEXT GETPHONE = PHONETEXT GETDISCOUNT = 0 BILLFORM.Show End If ElseIf CHECK = 3 Then BILLFORM.Show ElseIf Check3.Value = 1 Then GETNAME = NAMETEXT GETPHONE = PHONETEXT GETDISCOUNT = 0.1 BILLFORM.Show End If End Sub Private Sub PHONETEXT_Change() If Len(PHONETEXT) = 10 And Check2.Value = 1 Then Call connect CUS.Close CUS.Open "select * from customer where phone='" & PHONETEXT & "'" 'MsgBox CUS.RecordCount If CUS.RecordCount = 1 Then COUNTER = 1 NAMETEXT.Text = CUS.Fields(0) EDITBTN.Caption = "Update" EDITBTN.Visible = True Else COUNTER = 0 End If
  • 75. Page | 71 ElseIf Len(PHONETEXT) = 10 And Check3.Value = 1 Then Call connect MS.Close MS.Open "select * from membershipcard where phone='" & PHONETEXT & "'" 'MsgBox MS.RecordCount If MS.RecordCount = 1 Then GET_M_NO = MS.Fields(0) NAMETEXT.Text = MS.Fields(1) EDITBTN.Caption = "Update" EDITBTN.Visible = True CREATECARD.Visible = False Shape3.Visible = False NEXTBTN.Visible = True Shape2.Visible = True Else CREATECARD.Visible = True Shape3.Visible = True End If ElseIf Len(PHONETEXT) = 10 And Check1.Value = 1 Then Call connect MS.Close MS.Open "select * from membershipcard where phone='" & PHONETEXT & "'" 'MsgBox MS.RecordCount If MS.RecordCount = 1 Then GET_M_NO = MS.Fields(0) NAMETEXT.Text = MS.Fields(1) EDITBTN.Caption = "Update" EDITBTN.Visible = True CREATECARD.Visible = False Shape3.Visible = False NEXTBTN.Visible = True
  • 76. Page | 72 Shape2.Visible = True Else CREATECARD.Visible = True Shape3.Visible = True End If Else EDITBTN.Caption = "Edit" EDITBTN.Visible = False NAMETEXT.Text = "" End If End Sub Private Sub PHONETEXT_GotFocus() MSGLABEL.Visible = False End Sub
  • 77. Page | 73 Invoice Dim BILL_NUMBER, TOTAL_AMOUNT, TOTAL_QTY As Variant Dim l As ListItem Private Sub Combo1_Change() If Combo1.Text = "Cash" Then Command1.Caption = "Pay" Else Command1.Caption = "Next" End If End Sub Private Sub Combo1_Click() If Combo1.Text = "Cash" Then Command1.Caption = "Pay" Else
  • 78. Page | 74 Command1.Caption = "Next" End If End Sub Private Sub Command1_Click() If Combo1.Text = "Cash" Then If Command1.Caption = "Pay" Then Call Billinsert End If ElseIf Combo1.Text = "Credit Card" Then creditfrm.Show ElseIf Combo1.Text = "Debit Card" Then debitfrm.Show ElseIf Combo1.Text = "UPI" Then UPI.Show ElseIf Combo1.Text = "Paytm" Then PAYTM.Show End If End Sub Sub Billinsert() Call connect With B_L .AddNew .Fields(0) = BILLNO .Fields(1) = DATETEXT .Fields(2) = NAMETEXT .Fields(3) = MOBILETEXT .Fields(4) = FTOTALITEM(1).Caption .Fields(5) = FTOTALQTY(1).Caption .Fields(6) = FSUBTOTAL(1).Caption .Fields(7) = Round(Val(FCGSTTAX(1).Caption)) .Fields(8) = Round(Val(FSGSTTAX(1).Caption)) .Fields(9) = Round((Val(FCGSTTAX(1).Caption) + Val(FSGSTTAX(1).Caption))) .Fields(10) = Round(Val(FAFTERTAX(1).Caption))
  • 79. Page | 75 .Fields(11) = Round(Val(FDISCOUNT(1).Caption)) .Fields(12) = Round(FGRANDTOTAL(1).Caption) .Fields(13) = Combo1.Text .Fields(14) = Time .Fields(15) = Day(DATETEXT) .Fields(16) = Month(DATETEXT) .Fields(17) = Year(DATETEXT) .Update End With For i = 1 To LV.ListItems.Count With B_D .AddNew .Fields(0) = BILLNO .Fields(1) = LV.ListItems(i).SubItems(1) .Fields(2) = LV.ListItems(i).SubItems(2) .Fields(3) = LV.ListItems(i).SubItems(3) .Fields(4) = LV.ListItems(i).SubItems(4) .Fields(5) = LV.ListItems(i).SubItems(5) .Update End With Call connect rs1.Close rs1.Open "delete * from tablenumber where t_no='" & VIEWORDERFORM.TABLENUMBER & "'" DONEFORM.Show Next End Sub Private Sub Form_Activate() Call BILLING End Sub
  • 80. Page | 76 End With With DATETEXT .Width = Me.Width * 0.12 .Height = Me.Height * 0.05 .Left = Me.Width * 0.17 .Top = Me.Height * 0.21 End With With NAMED .Width = Me.Width * 0.2 .Height = Me.Height * 0.05 .Left = Me.Width * 0.3 .Top = Me.Height * 0.15 End With With NAMETEXT .Width = Me.Width * 0.2 .Height = Me.Height * 0.05 .Left = Me.Width * 0.3 .Top = Me.Height * 0.21 End With With MOBILE .Width = Me.Width * 0.17 .Height = Me.Height * 0.05 .Left = Me.Width * 0.51 .Top = Me.Height * 0.15 End With With MOBILETEXT .Width = Me.Width * 0.17 .Height = Me.Height * 0.05 .Left = Me.Width * 0.51 .Top = Me.Height * 0.21
  • 81. Page | 77 End With With SNO .Width = Me.Width * 0.049 .Height = Me.Height * 0.05 .Left = Me.Width * 0.03 .Top = Me.Height * 0.29 End With With ID .Width = Me.Width * 0.065 .Height = Me.Height * 0.05 .Left = Me.Width * 0.0825 .Top = Me.Height * 0.29 End With With INAME .Width = Me.Width * 0.2625 .Height = Me.Height * 0.05 .Left = Me.Width * 0.15 .Top = Me.Height * 0.29 End With With QTY .Width = Me.Width * 0.055 .Height = Me.Height * 0.05 .Left = Me.Width * 0.415 .Top = Me.Height * 0.29 End With With PRICE .Width = Me.Width * 0.084 .Height = Me.Height * 0.05 .Left = Me.Width * 0.473 .Top = Me.Height * 0.29 End With
  • 82. Page | 78 With AMOUNT .Width = Me.Width * 0.115 .Height = Me.Height * 0.05 .Left = Me.Width * 0.56 .Top = Me.Height * 0.29 End With With LV .Width = Me.Width * 0.645 .Height = Me.Height * 0.5 .Left = Me.Width * 0.03 .Top = Me.Height * 0.35 .ColumnHeaders(1).Width = LV.Width * 0.05 .ColumnHeaders(2).Width = LV.Width * 0.072 .ColumnHeaders(3).Width = LV.Width * 0.379 .ColumnHeaders(4).Width = LV.Width * 0.06 .ColumnHeaders(5).Width = LV.Width * 0.1 .ColumnHeaders(6).Width = LV.Width * 0.14 End With With FRAME .Width = Me.Width * 0.28 .Height = Me.Height * 0.9 .Left = Me.Width * 0.7 .Top = Me.Height * 0.025 End With With BILLDETAILSHAPE .Width = Me.Width * 0.26 .Height = Me.Height * 0.1 .Left = Me.Width * 0.01 .Top = Me.Height * 0.03 End With
  • 83. Page | 79 'BILL_NUMBER = B_L.Fields(0) 'MsgBox BILL_NUMBER 'MsgBox B_L.RecordCount 'For i = 1 To B_L.RecordCount ' BILL_NUMBER = B_L.Fields(0) ' B_L.MoveNext 'Next ' MsgBox BILL_NUMBER & " " & B_L.Fields(0).Value BILLNO.Text = BILL_NUMBER + 1 End If TOTAL_AMOUNT = 0 TOTAL_QTY = 0 rs1.Close rs1.Open "select * from tablenumber where t_no='" & VIEWORDERFORM.TABLENUMBER & "' " If rs1.RecordCount > 0 Then FTOTALITEM(1).Caption = rs1.RecordCount For i = 1 To rs1.RecordCount Set l = LV.ListItems.Add(, , i) l.SubItems(1) = rs1.Fields(1) l.SubItems(2) = rs1.Fields(2) l.SubItems(3) = rs1.Fields(4) TOTAL_QTY = TOTAL_QTY + l.SubItems(3) l.SubItems(4) = rs1.Fields(3) l.SubItems(5) = l.SubItems(3) * l.SubItems(4) TOTAL_AMOUNT = TOTAL_AMOUNT + l.SubItems(5) rs1.MoveNext Next FTOTALQTY(1).Caption = TOTAL_QTY FSUBTOTAL(1).Caption = TOTAL_AMOUNT FCGSTTAX(1).Caption = Round(TOTAL_AMOUNT * 0.025, 2) FSGSTTAX(1).Caption = Round(TOTAL_AMOUNT * 0.025, 2) FAFTERTAX(1).Caption = Round(TOTAL_AMOUNT + TOTAL_AMOUNT * 0.025 + TOTAL_AMOUNT * 0.025, 2)
  • 84. Page | 80 FDISCOUNT(1).Caption = Round(Val(FAFTERTAX(1).Caption) * MEMBERSHIPFORM.GETDISCOUNT, 2) FROUNDOFF(1).Caption = Round(Val(FAFTERTAX(1).Caption) - Val(FDISCOUNT(1).Caption)) FGRANDTOTAL(1).Caption = FROUNDOFF(1).Caption End If End Sub Private Sub Form_Unload(CANCEL As Integer) Unload creditfrm Unload debitfrm Unload PAYTM Unload UPI Unload UPIPASS End Sub Payment Using UPI
  • 85. Page | 81 Private Sub CANCEL_Click() Unload UPI End Sub Private Sub Command1_Click() If UPITEXT.Text = "" Then ERRORMSG.Caption = "Enter UPI" ElseIf UPITEXT.Text = "rahul@paytm" Then 'UPI.Hide UPIPASS.Show Else ERRORMSG.Caption = "Enter Valid UPI" End If End Sub Private Sub Form_Activate() Me.DrawWidth = 2 Me.Line (20, 20)-(Me.Width - 20, Me.Height - 20), vbCyan, B Me.Line (40, 40)-(Me.Width - 40, Me.Height - 40), vbBlack, B Me.Line (40, Me.Height * 0.17)-(Me.Width - 40, Me.Height * 0.17), vbBlack End Sub Private Sub Form_Load() Me.Top = Screen.Height * 35 / 100 Me.Left = Screen.Width * 35 / 100 Me.Width = Screen.Width * 25 / 100 Me.Height = Screen.Height * 30 / 100 Me.BackColor = vbWhite With CANCEL .Top = 40 .Left = Me.Width - 640
  • 86. Page | 82 .Width = 600 .Height = 400 .Caption = "X" .Font.Name = "Century Gothic" .Font.Size = 16 .BackColor = RGB(255, 0, 0) .ForeColor = vbWhite End With With AMOUNT .Caption = " AMOUNT TO BE PAY : " & BILLFORM.FGRANDTOTAL(1) .Alignment = 0 .BackStyle = 0 .Width = Me.Width * 0.7 .Font.Size = 12 .Font.Name = "rockwell" .Left = Me.Width * 0.07 .Top = Me.Height * 0.06 End With With UPIIMAGE .Picture = LoadPicture("E:ID PROJECTPROJECTBank imageUPIFORM.jpg") .Top = UPI.Height * 0.15 .Width = UPI.Width * 0.6 .Height = UPI.Width * 0.2 .Left = UPI.Width * 0.2 End With With UPILABEL .BackStyle = 0 .Caption = "ENTER UPI ID" .Font.Size = 15
  • 87. Page | 83 .Font.Name = "rockwell" .Top = UPI.Height * 0.44 .Width = UPI.Width .Left = 0 End With With ERRORMSG .Caption = "" .BackStyle = 0 .Font.Size = 12 .Alignment = 2 .Font.Name = "rockwell" .Top = UPI.Height * 0.52 .Width = UPI.Width * 0.8 .Left = UPI.Width * 0.1 .ForeColor = vbRed End With With UPITEXT .FontSize = 15 .Font.Name = rockwell .Top = UPI.Height * 0.6 .Width = UPI.Width * 0.64 .Left = UPI.Width * 0.18 End With With Command1 .Top = UPI.Height * 0.78 .Width = UPI.Width * 0.4 .Left = UPI.Width * 0.3 .Caption = "Make Payment" .Font.Size = 15 .Font.Name = "rockwell"
  • 88. Page | 84 End With End Sub Private Sub UPITEXT_Change() ERRORMSG.Caption = "" End Sub
  • 89. Page | 85 UPI Password Dim c, cli As Integer Private Sub Command1_Click() End Sub Private Sub DELETE_Click() WRONGINPUT.Caption = "" 'MsgBox c If c = 1 Then PIN1.Text = "" End If If c = 2 Then PIN2.Text = "" End If
  • 90. Page | 86 If c = 3 Then PIN3.Text = "" End If If c = 4 Then PIN4.Text = "" End If If c >= 1 Then c = c - 1 End If End Sub Private Sub DELETE_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) DELETE.Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERCOLORGREENdelete.jpg") End Sub Private Sub DELETE_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) DELETE.Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBERdelete.jpg") End Sub Private Sub Form_Activate() Me.DrawWidth = 1 Me.Line (5, 5)-(Me.Width - 10, Me.Height - 10), vbGreen, B Me.Line (8, 8)-(Me.Width - 30, Me.Height - 30), vbBlack, B End Sub Private Sub Form_Load() With Me .Top = Screen.Height * 0.25 .Left = Screen.Width * 0.4 .Width = Screen.Width * 0.2 .Height = Screen.Height * 0.5 .BackColor = vbWhite End With .FontSize = 17
  • 91. Page | 87 .Font.Name = "rockwell" .Top = Me.Height * 0.26 .Width = Me.Width * 0.125 .Left = Me.Width * 0.35 End With With PIN3 .MaxLength = 1 .Alignment = 2 .FontSize = 17 .Font.Name = "rockwell" .Top = Me.Height * 0.26 .Width = Me.Width * 0.125 .Left = Me.Width * 0.55 End With With PIN4 .MaxLength = 1 .Alignment = 2 .FontSize = 17 .Font.Name = "rockwell" .Top = Me.Height * 0.26 .Width = Me.Width * 0.125 .Left = Me.Width * 0.75 End With With WRONGINPUT .Caption = "" .BackStyle = 0 .Alignment = 2 .FontSize = 13 .Font.Name = "rockwell"
  • 92. Page | 88 .Top = Me.Height * 0.34 .Width = Me.Width * 0.8 .Left = Me.Width * 0.1 End With For i = 0 To 9 With Image2(i) .Stretch = True .BorderStyle = 0 End With Next l = 0.21 For i = 0 To 2 With Image2(i) .Top = Me.Height * 0.38 .Left = Me.Width * l .Width = Me.Width * 0.16 .Height = Me.Height * 0.1 .Tag = i + 1 End With l = l + 0.22 Next l = 0.21 For i = 3 To 5 With Image2(i) .Top = Me.Height * 0.5 .Left = Me.Width * l .Width = Me.Width * 0.16 .Height = Me.Height * 0.1 .Tag = i + 1 End With l = l + 0.22 Next l = 0.21 For i = 6 To 8 With Image2(i)
  • 93. Page | 89 .Top = Me.Height * 0.62 .Left = Me.Width * l .Width = Me.Width * 0.16 .Height = Me.Height * 0.1 .Tag = i + 1 End With l = l + 0.22 Next With SHOWPASS .Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBERHIDEPASSWORD.jpg") .Top = Me.Height * 0.74 .Left = Me.Width * 0.21 .Width = Me.Width * 0.16 .Height = Me.Height * 0.1 .BorderStyle = 0 End With With Image2(9) .Top = Me.Height * 0.74 .Left = Me.Width * 0.43 .Width = Me.Width * 0.16 .Height = Me.Height * 0.1 .Tag = 0 End With For i = 0 To 9 Image2(i).Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBER" & Image2(i).Tag & ".jpg") Next
  • 94. Page | 90 With DELETE .Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBERdelete.jpg") .Top = Me.Height * 0.74 .Left = Me.Width * 0.65 .Width = Me.Width * 0.16 .Height = Me.Height * 0.1 .BorderStyle = 0 End With With PROCEED .Top = UPIPASS.Height * 0.87 .Width = UPIPASS.Width * 0.4 .Left = UPIPASS.Width * 0.3 .Caption = "Proceed" .Font.Size = 15 .Font.Name = "rockwell" End With cli = 0 c = 0 End Sub Private Sub Image2_Click(Index As Integer) WRONGINPUT.Caption = "" If c <= 3 Then c = c + 1 End If 'MsgBox c If c = 1 Then PIN1.Text = Image2(Index).Tag End If If c = 2 Then PIN2.Text = Image2(Index).Tag
  • 95. Page | 91 End If If c = 3 Then PIN3.Text = Image2(Index).Tag End If If c = 4 Then PIN4.Text = Image2(Index).Tag 'WRONGINPUT.Caption = PIN1 & PIN2 & PIN3 & PIN4 End If End Sub Private Sub Image2_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single) Image2(Index).BorderStyle = 1 Image2(Index).Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERCOLORGREEN" & Image2(Index).Tag & ".jpg") End Sub Private Sub Image2_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single) Image2(Index).BorderStyle = 0 Image2(Index).Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBER" & Image2(Index).Tag & ".jpg") End Sub Private Sub Label2_Click() Unload UPIPASS End Sub Private Sub PROCEED_Click() If PIN1 <> "" And PIN2 <> "" And PIN3 <> "" And PIN4 <> "" Then 'MsgBox "a"
  • 96. Page | 92 End If If PIN1 = "1" And PIN2 = "2" And PIN3 = "4" And PIN4 = "5" Then BILLFORM.Billinsert With WRONGINPUT .Caption = "PIN MATCHED" .ForeColor = RGB(0, 255, 0) End With Me.Hide UPI.Hide 'MsgBox "done" Else With WRONGINPUT .Caption = "WRONG INPUT" .ForeColor = RGB(255, 0, 0) End With End If End Sub Private Sub SHOWPASS_Click() cli = cli + 1 If cli = 1 Then PIN1.PasswordChar = "" PIN2.PasswordChar = "" PIN3.PasswordChar = "" PIN4.PasswordChar = "" SHOWPASS.Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBERSHOWPASSWORD.jpg") End If If cli = 2 Then PIN1.PasswordChar = "*" PIN2.PasswordChar = "*"
  • 97. Page | 93 PIN3.PasswordChar = "*" PIN4.PasswordChar = "*" cli = 0 SHOWPASS.Picture = LoadPicture("E:ID PROJECTPROJECTNUMBERNUMBERHIDEPASSWORD.jpg") End If End Sub Payment Using Credit Card Private Sub CANCEL_Click() Unload creditfrm End Sub Private Sub Form_Activate() Me.DrawWidth = 2
  • 98. Page | 94 Me.Line (20, 20)-(Me.Width - 20, Me.Height - 20), vbCyan, B Me.Line (40, 40)-(Me.Width - 40, Me.Height - 40), vbBlack, B Me.Line (40, Me.Height * 0.17)-(Me.Width - 40, Me.Height * 0.17), vbBlack End Sub Private Sub PROCEED_Click() If Len(CARDTEXT.Text) = 16 And MONTHBOX <> " " And YEARBOX <> " " And PINTEXT <> "" Then otpfrm.Show otpgen.Show creditfrm.Enabled = False Else MsgBox "PLEASE FILL CORRECT", , "INFORMATION" End If End Sub Private Sub Form_Load() Me.Top = Screen.Height * 30 / 100 Me.Left = Screen.Width * 35 / 100 Me.Width = Screen.Width * 30 / 100 Me.Height = Screen.Height * 40 / 100 Me.BackColor = vbWhite With AMOUNT .Caption = " AMOUNT TO BE PAY : " & BILLFORM.FGRANDTOTAL(1) .Alignment = 0 .BackStyle = 0 .Width = Me.Width * 0.7 .Font.Size = 14 .Font.Name = "rockwell" .Left = Me.Width * 0.1 .Top = Me.Height * 0.06 End With
  • 99. Page | 95 With CANCEL .Top = 40 .Left = Me.Width - 640 .Width = 600 .Height = 400 .Caption = "X" .Font.Name = "Century Gothic" .Font.Size = 16 .BackColor = RGB(255, 0, 0) .ForeColor = vbWhite End With With debit .Caption = "Crebit Card" .Font.Size = 25 .Font.Name = "rockwell" .Alignment = 2 .FontBold = True .Top = Me.Height * 0.2 .Width = Me.Width .Left = 0 End With With CARDNO .Font.Size = 18 .Font.Name = "rockwell" .Width = Me.Width .Alignment = 2 .Caption = "Crebit Card Number*" .Left = 0 .Top = Me.Height * 0.32
  • 100. Page | 96 End With With CARDTEXT .Font.Size = 16 '.Height = Me.Height * 0.04 .Font.Name = "rockwell" .Width = Me.Width * 0.6 .Left = Me.Width * 0.2 .Top = Me.Height * 0.41 End With With MONTHLABEL .Caption = " Month *" .Alignment = 0 .Font.Size = 14 .Font.Name = "rockwell" .Width = Me.Width * 0.2 .Left = Me.Width * 0.23 .Top = Me.Height * 0.51 End With With YEARLABEL .Caption = " Year *" .Alignment = 0 .Font.Size = 14 .Font.Name = "rockwell" .Width = Me.Width * 0.2 .Left = Me.Width * 0.58 .Top = Me.Height * 0.51 End With With MONTHBOX .Text = " " .Font.Size = 12 .Font.Name = "rockwell"
  • 101. Page | 97 .Width = Me.Width * 0.23 .Left = Me.Width * 0.21 .Top = Me.Height * 0.58 End With For i = 1 To 12 MONTHBOX.additem i Next With YEARBOX .Text = " " .Font.Size = 12 .Font.Name = "rockwell" .Width = Me.Width * 0.23 .Left = Me.Width * 0.56 .Top = Me.Height * 0.58 End With For i = 2018 To 2030 YEARBOX.additem i Next With PINLABEL .Caption = "PIN *" .Width = Me.Width * 0.3 .Alignment = 0 .Font.Size = 15 .Font.Name = "rockwell" .Left = Me.Width * 0.21 .Top = Me.Height * 0.71 End With
  • 102. Page | 98 With PINTEXT .Width = Me.Width * 0.42 .FontBold = True .Font.Size = 14 .Font.Name = "rockwell" .Left = Me.Width * 0.37 .Top = Me.Height * 0.705 End With With PROCEEDSHAPE .Left = Me.Width * 0.65 .Top = Me.Height * 0.85 .Width = Me.Height * 0.35 .Height = Me.Height * 0.1 .BorderWidth = 2 .BorderColor = vbRed .BackColor = RGB(255, 174, 61) End With With PROCEED .Caption = "PROCEED" .Left = Me.Width * 0.65 .Top = Me.Height * 0.87 .Width = Me.Height * 0.35 .Font.Size = 12 .FontBold = True .BackStyle = 0 .Alignment = 2 .Font.Name = "rockwell" End With
  • 103. Page | 99 End Sub Enter OTP Dim a, h As Integer Dim c As Integer Private Sub Form_Activate() Me.DrawWidth = 1 Me.Line (5, 5)-(Me.Width - 10, Me.Height - 10), vbGreen, B Me.Line (8, 8)-(Me.Width - 30, Me.Height - 30), vbBlue, B Timer1.Enabled = True End Sub Private Sub Form_Load() c = 0 Me.Refresh With Me .BackColor = vbBlack .Left = Screen.Width * 0.8
  • 104. Page | 100 .Top = Screen.Height .Width = Screen.Width * 0.2 .Height = Screen.Height * 0.1 End With With Label1 .Top = Me.Height * 0.35 .Left = 0 .Width = Me.Width * 0.6 .ForeColor = vbWhite .Caption = "Your OTP is" .Alignment = 2 .Font.Size = 20 .Font.Name = "rockwell" .BackStyle = 0 End With With OTP .BackStyle = 0 .Top = Me.Height * 0.35 .Left = otpgen.Width * 0.6 .ForeColor = RGB(0, 255, 255) .Font.Name = "rockwell" .Font.Size = 20 .BackColor = vbWhite a = Format(Rnd * 10000 + 2, "00000") .Caption = a End With h = Screen.Height End Sub Private Sub Timer1_Timer() If c < 15 Then c = c + 1 Me.Top = h h = h - 140 End If
  • 105. Page | 101 If c = 15 Then Timer1.Enabled = False End If End Sub Payment Using Debit Card Private Sub CANCEL_Click() Unload debitfrm End Sub Private Sub CARDTEXT_Change() With ERRORMSG .Caption = "" End With If Len(CARDTEXT) = 3 Or Len(CARDTEXT) = 0 Then
  • 106. Page | 102 CARDIMG.Picture = LoadPicture("") End If If CARDTEXT.Text = "1234" Then CARDIMG.Picture = LoadPicture(".Datavisa.jpg") End If If CARDTEXT.Text = "2345" Then CARDIMG.Picture = LoadPicture(".Datarupay.jpg") End If If CARDTEXT.Text = "3456" Then CARDIMG.Picture = LoadPicture(".Datamastercard.jpg") End If If CARDTEXT.Text = "4567" Then CARDIMG.Picture = LoadPicture(".dataMaestro.jpg") End If End Sub Private Sub CVPTEXT_Change() With ERRORMSG .Caption = "" End With End Sub Private Sub Form_Activate() Me.DrawWidth = 2 Me.Line (20, 20)-(Me.Width - 20, Me.Height - 20), vbCyan, B Me.Line (40, 40)-(Me.Width - 40, Me.Height - 40), vbBlack, B Me.Line (40, Me.Height * 0.17)-(Me.Width - 40, Me.Height * 0.17), vbBlack End Sub Private Sub MONTHBOX_Click()
  • 107. Page | 103 With ERRORMSG .Caption = "" End With End Sub Private Sub YEARBOX_Click() 'MsgBox "a" With ERRORMSG .Caption = "" End With End Sub Private Sub PROCEED_Click() If Len(CARDTEXT.Text) = 16 And MONTHBOX <> " " And YEARBOX <> " " And Len(CVPTEXT.Text) = 3 Then With ERRORMSG .Caption = "" End With otpfrm.Show otpgen.Show debitfrm.Enabled = False Else With ERRORMSG .Caption = "PLEASE FILL CORRECT" .ForeColor = vbRed End With End If End Sub Private Sub Form_Load() Me.Top = Screen.Height * 30 / 100 Me.Left = Screen.Width * 35 / 100 Me.Width = Screen.Width * 30 / 100 Me.Height = Screen.Height * 40 / 100 Me.BackColor = vbWhite With CANCEL .Top = 40 .Left = Me.Width - 640
  • 108. Page | 104 With CARDNO .Font.Size = 18 .Font.Name = "rockwell" .Width = debitfrm.Width .Alignment = 2 .Caption = "Debit Card Number *" .Left = 0 .Top = Me.Height * 0.36 End With With CARDTEXT .Font.Size = 16 .Font.Name = "rockwell" .Width = debitfrm.Width * 0.6 .Left = debitfrm.Width * 0.2 .Top = debitfrm.Height * 0.46 End With With CARDIMG .Stretch = True .Width = Me.Width * 0.1 .Left = Me.Width * 0.81 .Top = Me.Height * 0.46 .Height = Me.Height * 0.09 .BorderStyle = 0 End With With MONTHLABEL .Caption = " Month *" .Alignment = 0 .Font.Size = 14
  • 109. Page | 105 .Font.Name = "rockwell" .Width = debitfrm.Width * 0.2 .Left = debitfrm.Width * 0.2 .Top = debitfrm.Height * 0.58 End With With YEARLABEL .Caption = " Year *" .Alignment = 0 .Font.Size = 14 .Font.Name = "rockwell" .Width = debitfrm.Width * 0.2 .Left = debitfrm.Width * 0.425 .Top = debitfrm.Height * 0.58 End With With CVPLABEL .Caption = " CVV *" .Width = debitfrm.Width * 0.2 .Alignment = 0 .Font.Size = 14 .Font.Name = "rockwell" .Left = debitfrm.Width * 0.65 .Top = debitfrm.Height * 0.58 End With With MONTHBOX .Text = " " .Font.Size = 16 .Font.Name = "rockwell" .Width = debitfrm.Width * 0.15 .Left = debitfrm.Width * 0.2 .Top = debitfrm.Height * 0.66 End With
  • 110. Page | 106 For i = 1 To 12 MONTHBOX.additem i Next With YEARBOX .Text = " " .Font.Size = 16 .Font.Name = "rockwell" .Width = debitfrm.Width * 0.15 .Left = debitfrm.Width * 0.425 .Top = debitfrm.Height * 0.66 End With For i = 2018 To 2030 YEARBOX.additem i Next With CVPTEXT .Width = debitfrm.Width * 0.15 .Font.Size = 15 .Font.Name = "rockwell" .Left = debitfrm.Width * 0.65 .Top = debitfrm.Height * 0.66 End With With ERRORMSG .Caption = "" .Alignment = 2 .BackStyle = 0 .Width = Me.Width * 0.95 .Font.Size = 12 .Font.Name = "rockwell" .Left = Me.Width * 0.025
  • 111. Page | 107 .Top = debitfrm.Height * 0.77 End With With PROCEEDSHAPE .Left = Me.Width * 0.65 .Top = Me.Height * 0.85 .Width = Me.Height * 0.35 .Height = Me.Height * 0.1 .BorderWidth = 2 .BorderColor = vbRed .BackColor = RGB(255, 174, 61) End With With PROCEED .Caption = "PROCEED" .Left = Me.Width * 0.65 .Top = Me.Height * 0.87 .Width = Me.Height * 0.35 .Font.Size = 12 .FontBold = True .BackStyle = 0 .Alignment = 2 .Font.Name = "rockwell" End With End Sub
  • 112. Page | 108 Enter OPT Dim a As Variant Private Sub Form_Activate() Me.DrawWidth = 1 Me.Line (5, 5)-(Me.Width - 10, Me.Height - 10), vbGreen, B Me.Line (8, 8)-(Me.Width - 30, Me.Height - 30), vbBlack, B End Sub Private Sub Form_Load() With Me .Top = Screen.Height * 0.4 .Left = Screen.Width * 0.4 .Width = Screen.Width * 0.2 .Height = Screen.Height * 0.2 .BackColor = RGB(200, 255, 255)
  • 113. Page | 109 Payment Using Paytm Private Sub Form_Load()
  • 114. Page | 110 With Me .Width = Screen.Width * 0.2 .Height = Screen.Height * 0.3 .Top = Screen.Height * 0.3 .Left = Screen.Width * 0.4 End With With ucAniGIF1 .Width = Me.Width * 0.5 .Height = Me.Height * 0.15 .Top = Me.Height * 0.1 .Left = Me.Width * 0.25 End With With Label1 .Width = Me.Width * 0.7 .Height = Me.Height * 0.08 .Top = Me.Height * 0.4 .Left = Me.Width * 0.15 End With With Label2 .Width = Me.Width * 0.7 .Height = Me.Height * 0.1 .Top = Me.Height * 0.51 .Left = Me.Width * 0.15 .Caption = BILLFORM.FGRANDTOTAL(1) End With With Shape1 .Width = Me.Width * 0.7 .Height = Me.Height * 0.16 .Top = Me.Height * 0.72 .Left = Me.Width * 0.15
  • 115. Page | 111 .BackColor = RGB(0, 230, 230) End With With Label3 .Width = Me.Width * 0.7 .Height = Me.Height * 0.1 .Top = Me.Height * 0.74 .Left = Me.Width * 0.15 End With End Sub Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Shape1.BackColor = RGB(0, 230, 230) End Sub Private Sub Label3_Click() BILLFORM.Billinsert 'MsgBox "done" End Sub Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Shape1.BackColor = RGB(0, 200, 200) End Sub
  • 116. Page | 112 Invoice Generate
  • 117. Page | 113 Chapter – 6 System Requirements of PC Processor Core 2 Dual / 4.3 more RAM 1, 2 GB or more HDD 500 GB / 1 TB or more OS Window 7 or Later Database MS Access 2003
  • 118. Page | 114 Chapter – 7 Conclusion After we have completed the project we are sure the problems in the existing system world overcome. The “Restaurant Billing System” process made computerized to reduce human errors & to increase the efficiency. The main focus of this project is to less human efforts. The maintenance of the records is made efficient, as all the records are stored in the Access Database, through which data can be retrieved easily. The navigation control is provided in all the forms to navigate through the large amount of records. If the numbers of records are very large than user has to just type in the search string & user gets the results immediately. The editing is also made simples. The user has to just type in the required field & process the update button to update the desired field. The customers are given a particular unique id no. so that they can be access correctly & without errors. Our main aim of the project is to get the correct information about a customer visit in the Restaurant.
  • 119. Page | 115 Bibliography  www.google.com  www.youtube.com  www.stackoverflow.com  www.slideshare.com VB Black Book (Author: Steven Holzner) MS Visual Basic 2010 step by step (Author: Michael Halverson) The Complete Reference Visual Basic 6 (Author: Noel Jerk) College Notes
  • 120. Page | 116 Thank You… Harsh Mathur Bachelor of Computer Application Dezyne E’cole College 106/10, CIVIL LINES AJMER RAJASTHAN - 305001 (INDIA) (JANUARY, 2019) www.dezyneecole.com