This project report summarizes a Restaurant Billing System developed using Visual Basic. The system automates restaurant operations like booking tables, viewing menus and orders, adding members, and generating bills. It allows storing customer details, maintaining sales records, and providing membership cards for discounts. The system aims to reduce manual work for improved accuracy, availability, and reduced costs. It was developed under faculty guidance as a student project and presents the objectives, features, and design considerations of the Restaurant Billing System.
E- Healthcare is a web based project system which deals with online checkup through video conferencing & doctor gives online prescription.
People can book appointments online by approaching the website of E- healthcare. And people can also download their lab reports. people can discuss their health related issues via video conferencing and get doctor useful prescription.
The main motive of introducing these “E - HEALTHCARE” system is to promote online health care services. Because lack of specialists is major problem in small towns. But E-healthcare provides online services like online treatment. It will be beneficial for all those peoples located in Small towns and the patients who have to take regular treatment, travel a lot where there is a lack of medical facilities.
E- Healthcare is a web based project system which deals with online checkup through video conferencing & doctor gives online prescription.
People can book appointments online by approaching the website of E- healthcare. And people can also download their lab reports. people can discuss their health related issues via video conferencing and get doctor useful prescription.
The main motive of introducing these “E - HEALTHCARE” system is to promote online health care services. Because lack of specialists is major problem in small towns. But E-healthcare provides online services like online treatment. It will be beneficial for all those peoples located in Small towns and the patients who have to take regular treatment, travel a lot where there is a lack of medical facilities.
BSc CSIT Final Year Project Report on Hamro Krishi - NepalSirish Paudel
This is a copy of Final Year Project Report 2072 prepared by BSc CSIT students: Sirish Paudel, Sahaz Bhattarai, Jiwan Bhattarai and Suman Shreshta from New Summit College, Kathmandu, Nepal
The project “Billing system” is an application to automate the process of ordering
And billing of a restaurant .This application is developed for the established restaurants in the city to manage the billing operations. It has the entire basic module to operate the billing modules. This application also administrates its users and customers.
This project will serve the following objectives:-
• Add and maintain records of available products.
• Add and maintain customer details.
• Add and maintain description of new products.
• Add and maintain admin and employee details.
• Provides a convenient solution of billing pattern.
• Make an easy to use environment for users and customers.
• Create membership for customers.
This documentation provides a brief insight of face recognition based attendance system using neural networks in terms of product architecture which can be used for educational purpose.
OpenGL Mini Projects With Source Code [ Computer Graphics ] WITH SOURCE CODES
Paid OpenGL projects • Here’s about 30+ OpenGL GLUT projects. • Price $5 • Easy Payment methods: For Bangladesh and other Countries .
If you are interested to get these projects, just mail the project name along with your name, and institute name. I’ll Contact You As Soon As Possible .
EMAIL:- k4nc80n@gmail.com
FACEBOOK:- https://www.facebook.com/k4nc80n
Source Code :- k4nc80n@gmail.com
For more Project :-
EMAIL:- k4nc80n@gmail.com
FACEBOOK:- https://www.facebook.com/k4nc80n
INSTAGRAM:- https://www.instagram.com/k4nc80n
TWITTER:- https://www.twitter.com/K4NC80N
The purpose of the project entitled as “Hospital Management System” is to computerize the
Front Office Management of Hospital to develop software which is user friendly simple, fast,
and cost – effective. It deals with the collection of patient’s information like add patient, update
patient, delete patient, search patient, view patient diagnosis, etc. Traditionally, it was done
manually. The main function of the system is register and store patient details and doctor details
and retrieve these details as and when required, and also to manipulate these details
meaningfully. The Hospital Management System can be entered using a username and
password. It is accessible by an Admin, Doctor & Receptionist. Only they can add data into
the database. The data can be retrieved easily. The data are well protected for personal use and
makes the data processing very fast.
Hello i'm Rahul saini from ajmer .
This is my BCA final year VB language source code with output pdf file. I completed my Graduration in this stream in 2018 year . So here just upload for Showcase my work .You can check it out hope you are like it and comment are most welcome. Thank you everyone .
BSc CSIT Final Year Project Report on Hamro Krishi - NepalSirish Paudel
This is a copy of Final Year Project Report 2072 prepared by BSc CSIT students: Sirish Paudel, Sahaz Bhattarai, Jiwan Bhattarai and Suman Shreshta from New Summit College, Kathmandu, Nepal
The project “Billing system” is an application to automate the process of ordering
And billing of a restaurant .This application is developed for the established restaurants in the city to manage the billing operations. It has the entire basic module to operate the billing modules. This application also administrates its users and customers.
This project will serve the following objectives:-
• Add and maintain records of available products.
• Add and maintain customer details.
• Add and maintain description of new products.
• Add and maintain admin and employee details.
• Provides a convenient solution of billing pattern.
• Make an easy to use environment for users and customers.
• Create membership for customers.
This documentation provides a brief insight of face recognition based attendance system using neural networks in terms of product architecture which can be used for educational purpose.
OpenGL Mini Projects With Source Code [ Computer Graphics ] WITH SOURCE CODES
Paid OpenGL projects • Here’s about 30+ OpenGL GLUT projects. • Price $5 • Easy Payment methods: For Bangladesh and other Countries .
If you are interested to get these projects, just mail the project name along with your name, and institute name. I’ll Contact You As Soon As Possible .
EMAIL:- k4nc80n@gmail.com
FACEBOOK:- https://www.facebook.com/k4nc80n
Source Code :- k4nc80n@gmail.com
For more Project :-
EMAIL:- k4nc80n@gmail.com
FACEBOOK:- https://www.facebook.com/k4nc80n
INSTAGRAM:- https://www.instagram.com/k4nc80n
TWITTER:- https://www.twitter.com/K4NC80N
The purpose of the project entitled as “Hospital Management System” is to computerize the
Front Office Management of Hospital to develop software which is user friendly simple, fast,
and cost – effective. It deals with the collection of patient’s information like add patient, update
patient, delete patient, search patient, view patient diagnosis, etc. Traditionally, it was done
manually. The main function of the system is register and store patient details and doctor details
and retrieve these details as and when required, and also to manipulate these details
meaningfully. The Hospital Management System can be entered using a username and
password. It is accessible by an Admin, Doctor & Receptionist. Only they can add data into
the database. The data can be retrieved easily. The data are well protected for personal use and
makes the data processing very fast.
Hello i'm Rahul saini from ajmer .
This is my BCA final year VB language source code with output pdf file. I completed my Graduration in this stream in 2018 year . So here just upload for Showcase my work .You can check it out hope you are like it and comment are most welcome. Thank you everyone .
Electric Vehicle Business Opportunities Brochure Srishti Sikaria
Students of this course can apply for designer jobs at automobile companies, auto-ancillary units, tier-one suppliers to work on the concept and design departments. Sketch artist, concept illustration artist, concept artists are some of exclusive job positions available in this domain.
Learn more at - https://www.diyguru.org/course/automotive-sketching-drawing/
Ignou MCA 4th semester mini project report. College admission system. This project is based on real working system of University seat allocation to affiliate colleges. College admission system provide seat allocation process for various UG PG programs for every academic session.
Current Trend of Placement Activity Control System in the CollegeAI Publications
This paper is about a technology that provides Placement Activity Control System in college unlike the traditional system where students as well as TPO may face many problems like insufficient details, less security, problems with manual working etc. The purpose of the Placement Activity Control System Website is to overcome the disadvantages of traditional placement system. It enables the end users to read and apply for the company of their choice and get frequent updates regarding the placements from college TPO. There is no chance of missing the placement opportunity updates. The college placement officers will not have to get the separately collect information of every student. It will automatically be updated when the student registers. The project is basically a website and application which can be easily accessed through mobile.
Online resort reservation system report (practicum)Sumaiya Ismail
An online reservation system is a software you can use for managing reservations. They allow hotels, tours, and activity operators to accept bookings online and better manage their phone and in-person bookings. They also do so much more than that.
Study from India's Top Ranked Distance Universities and gain your chops to make a satisfying career
Why Gyaneager
The global industrial landscape is growing vertically. Gyaneager carefully identifies the gap between individual skills and emerging organizational needs to create comprehensive solutions to bridge this gap.
Quality and relevance are our two main virtues; our “customer first” ideology helps us shape certifications while keeping your needs front and canter.
Advanced Course in Electric Vehicle Design EngineeringSrishti Sikaria
This course offers a detailed technical explanation with design considerations of the EV powertrain components, how they work together, and how they compare to the internal combustion engine in value.
Learn More at - https://www.diyguru.org/course/advanced-ev-design-engineering/
Training Management Software By Harsh Mathur.Harsh Mathur
Software for Training Companies Large and Small.
Traine is the world's most advanced platform for managing
training delivery. Now you can provide access to training
resources and materials managed by Administrate, directly to
your SalesForce users, within your SalesForce instance
Holography project By Harsh Mathur & Aditya Mathur.Harsh Mathur
We have create a software, which takes live input from the camera and represents it in such a way that, when we put a prism on the screen we can see holography of the live feed which we are getting from the camera.
Alert System Made in Visual Basic 6.0 this software are received alert send by the smart car and smart homes in case of emergency eg: car accident,fire in home and send emergency departments like Hospitals,Poilce and fire brigade.
Color palette is create in visual basic 6.0 for create hexadecimal value of color without using a hex function .
user can make a combination of (RGB) colors.
Text Editor Created in Visual Basic 6.0.
In this softwere user can write there text also open or browse file and chnage the font name,size,colors and alignments.user can save there there work with select specifiy location with the file type(.txt or .doc).
In This Softwere we create a admin login panel and admin can also add ,update,delete,search student record from the database send notice to the student .
The database are create in mysql and Desiging done with html and css also use php for create this softwere..
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
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 __________________
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
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
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
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
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
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
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)
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
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