Sei sulla pagina 1di 67

Bakery Management System

1.INTRODUCTION

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
2

1.1ABOUT THE PROJECT

The bakery sells a wide variety of food items like cakes, sweets, soft drinks and so on to the
customers. While handling such a vast amount of sales, the billing details cannot be kept safe manually.
The application will ensure the working of the bakery in an organised manner. Employee can browse
any product inthe stock and can print the bill details. Stocks can be managed by admin from admins
panel. Admin can viewemployee attendance and so on.

Bakeries with awesome food items and an efficient functioning can and will draw a huge crowd
of customers. Moreover, the satisfaction of the customer means the booming of the business for the
bakery. Computerizing theemployeesattendance and salary details will ensure in analysing the
efficiency of employees and paying them according to the same.

Admin can view and update the stock and calculate the profit and loss in the business. The main
purpose of the system is to enable the systematic functioning of the bakery and hence increasing
business scope. The main modules are,

1.Admin

2.Employee

3.Stock Management

4.Pre-Booking

Admin is the top most authority of this software. This user can control and analyse the entire process
of this software. The major processes are.

1. Recruit employee’s
2. Update and Analyse stock details
3. View employee attendance
4. View billing details

Employee’s who are not obeying the rules and regulations will be thrown by the admin.

The next user is employee,who can perform the following processes,

1. View stock details


2. Mark attendance
3. Perform pre-booking

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
3

Stock management is the next process, It includes,

1. Update Stock
2. Remove an item details when it is sold out
Pre-booking is an another important process, it includes,

1. Store details of the Customer


2. Placing the order

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
4

2.SYSTEM STUDY AND ANALYSIS

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
5

INTRODUCTION

System analysis works with users to identify goals and build systems to achieve them. System
analysis is the important phase of any system development process. The system is studied to the minute
details and analysed. The system analysis plays the role of an interrogator and dwells deep into the
working of the present system. In analysis, a detailed study of these operations performed by a system
and their relationship within and outside of the system is done. One aspect of analysis is defining the
boundaries of the system and determining whether or not the candidate system should be considered.

Before designing a computer system, which will satisfy the information requirements of an
organization, its important that the nature of the business and the way it currently operates are clearly
understood. This process of system investigation includes several methods of gathering the required
information. It is important that the approach is appropriate to the system under consideration and the
user of the system. System analysis should be creative and imaginative in producing new solution to
meet such as system functionality, problems encountered, requirement of the proposed system, users,
their takes and responsibilities.

2.1 EXISTING SYSTEM

The existing system have lot of disadvantages. The existing system is not user friendly. It is a
time consuming process. The present system does not support systematic record keeping. Hence, the
stock details and other important records are manually written and stored. Such records can often be
subject to destruction by many factors. Employee attendance keeping is not in the existing system. In
the existing system there is not an accurate way of keeping the employee attendance. Employee can
sometimes manipulate and corrupt the records. The existing system does not support authentication.
Error is likely to occur as all the process are done manually.

2.2 DRAWBACKS OF EXISTING SYSTEM

 The system is not user friendly.


 The present system does not support systematic record keeping.
 Employee attendance keeping is not in the existing system.
 Lack of accurate information flow causes the whole process to slow down.
 Error can occur as everything is done manually.
 It is a time-consuming process.
2.3 PROPOSED SYSTEM

Our bakery management system aims to reduce paper work. The proposed system is highly user
friendly, computerized and facilities are more attractive. The Admin can control the whole system. He
can add the details of employees, their attendance and also view the billing details. User can easily
work with the proposed system.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
6

2.4 ADVANTAGES OF PROPOSED SYSTEM

 Easy and adaptable.


 Future maintenance will be easy.
 Comfortable to use.
 It saves all record of sales.
 Provides all the details of stock.
2.5 FEASIBILITY STUDY
The main aim of feasibility study is to determine whether it would be functionally and
technically feasible to develop the product. The feasibility study involves the analysis of the problem
and the collection of relevant information relating to the product such as the different data item which
would be the input to the system, the processing required to be carried out on these data, the output data
required to be produced by the system, as well as various constraints on the behaviour of the system. A
feasibility study is a rest of the system proposal according to its working, impact on the organization,
ability to meet users and effective use of resources. The objective of feasibility study is acquiring the
sense of scope of the system.
The development of a computer based system is more likely to be projects that arefeasible.
Three essential factors are involved in the feasibility analysis are:

1. Technical Feasibility
2. Economic Feasibility
3. Operational Feasibility

Technical feasibility

Technical feasibility focuses on the possibility of doing the project with current equipment,
existing software technologies available personnel. The assessment of this feasibility mustbe based on
the study of system requirements in terms of input, output, programs, procedures, and staff having
identified an outline system. It also includes the possibility of expanding the system developed and
technical guarantees of accuracy, reliability, ease of access and also the data security. The technical
needs were taken into consideration to see if the project is feasible with the current resources available.

Economic feasibility

The cost to conduct a full system implementation is very low. The proposed system can be
developed with the existing resources. There is no need for any additional hardware or software
requirements for both developing and implementation. The cost of other resources needed for
development is minimum. The technologies to be used to develop the system were so chosen to
minimize cost. Most modifications can be done easily with less effort. Since the system is developed as
a part of project work, there is no manual cost to be spending for the proposed system. The cost of
errors is acceptable and the errors are mostly solvable. The cost incurred for the project development
has less impact on other profit centers or products. Hence the proposed system is feasible.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
7

Operational feasibility

One of the main problems faced during development of a new system is getting acceptance
from user. Even if a system is technically and economically feasible but the users of the system are
resistant to use it then there is no use. In this stage the following issues are considered.

  Is the proposed system is user friendly? 


  Is there sufficient support for the project from the management and users? 
  Will the proposed system cause harm? 

 Will it produce poorer result in any area? 
 Will loss of control result in any area? 

The proposed system is so effective, user friendly, and functionally reliable that the users will
find it that the new system reduced their effort. Since the users are very much involved in planning and
development of the project there cannot be any resistance from the management and the reactions are
favourable. The result produced is accurate and optimized. The proposed system causes no harm to
anyone. The proposed system will have good control on all parts of the organization and it will take
care of current activities.

2.6 DATA FLOW DIAGRAM

DFD are the most commonly used way of documenting the process of current and required
system. As their name suggests, they are a pictorial way of showing flow of data into, around the
system. DFD was introduced by Demacro, Gane and Sarson. Data Flow Diagrams are constructed with
four major components. They are:

Data Flow Diagram Symbols

1. Entities

External entities represent the sources of data that enter the system or the recipients of data
that leave the system.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
8

2. Process

Process represents activates in which data is manipulated by being stored orretrieved or


transformed in some way. A circle represents it.

3. Database

Database represents storage of data within the system

4. Data Flows

Data flow shows the flow of information from its source to its destination. A line represents
data flow, with arrowheads showing the direction of flow.

Or

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
9

5. Output

The output shows the output of data that enter the system

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
10

Context Diagram

Request Response

Bakery
Management
Admin Employee
System

Response Request

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
11

LEVEL 1: DFD

Employee
Add Registration
Stock Id, Password

Stock Details Employee

Details

Stock Employee Login

Product Id, Name Date Employee Id

Product Id, Name

Pre- Mark
Billing
Booking Attendence

Bill Details Bill Id

Booking Details Date

billhistory Pre-Booking Attendance

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
12

3. SYSTEM DESIGN

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
13

INTRODUCTION

System Design is the first step in the development phase for many engineered product or
system. It may be defined as the process of applying various techniques and principles for the purpose
of defining a device, a process or a system in sufficient detail to permits its physical realization. This
phase is the first step in moving from the problem domain to the solution domain. It is an iterative
process through which requirements are transmitted into a “blueprint” for constructing the software
initially; the blue depicts a holistic view of software. That is, design is represented at a high level of
abstraction, functional, and behavioral requirements.

System design develops the architectural detail required to build a system or product. The
system design process encompasses the following activities.


 Partition the analysis model into subsystem. 

 Identify the concurrency that is dictated by the problem. 

 Allocate the subsystems to processors and tasks. 

 Develop a design for the user interface. 

 Choose a basic strategy for implementing data management. 

 Identify global resources and control mechanisms required to access them. 
 Design an appropriate control mechanism for the system, including task management. 

System design provides an understanding of the procedural details, necessary for implementing
the system recommended in the feasibility study. Basically it is all about the creation of the new
system. This is critical phase since it decides the quality of the system. It has a major impact on the
testing and implementation phase.

System design is the most creative and challenging phase of the system life cycle. The term
design describes the final system and the process by which is to be developed. During the system
design phase the designers must design how to produce an efficient and effective system. There are two
levels of system design: Logical design and Physical design.

In the logical design, the designer produces a specification of the major features of the system
which meets the objectives. The delivered product of logical design includes current requirements of
the system components: Input design, Output design and Database design.

Physical design takes this logical design blueprint and produces the program specifications.
Design specifications instruct programmers about what the system should do. Structured design is data
flow based methodology that partitions a program into a hierarchy of modules organized top-down
manner with details.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
14

3.1 INPUT DESIGN

The input design is the process of converting the user- oriented inputs in to the computer based
format. The goal of designing input data is to make automation as easy and free from errors as possible.
The input design requirements such as user friendliness, consistent format and interactive dialogues for
giving the right message and help for the user at right time are also considered for the development of
the project.

Inaccurate input data is the most common cause of error in processing data. Errors entered by
the data entry operators can be controlled by the input design. The arrangement of messages as well as
placement of data, headings and titles on display screens or source document is also a part of input
design. The design of input also includes specifying the means by which end user and system operators
direct the system what action to take.

The input design is the link between the information system and the user. It comprises the
developing specification and procedures for data preparation and those steps that are necessary to put
transaction data into a usable form for processing data entry.

In this project, all the necessary text boxes are validated. The input forms are designed in Net
Beans. If any non-empty fields are not filled, it will display an error message and will wait until user
types the necessary and correct input. Initially, to access the services of this software, the user has to
log on with a login name and password which are validated. Once logged on, he can access the various
services, navigate to different profiles.

3.2 OUTPUT DESIGN

Output generally refers to the results and information that are generated by the system. When
designing output, system analyst must accomplish the following.

 Determine what information to present.


 Decide whether to display, print the information and select the output medium.
 Arrange the presentation of information in an acceptable format.
 Decide how to distribute the output to intended recipients.

The output design is specified on layout forms, sheets that describe the location characteristics, and
formats of the column heading and pagination. In this project, output forms are designed in PHP. Each
form has a heading or caption which specifies what services is been given to the users making the
software user-friendly. All information are stored in the database and when anyone logs on and request
for a service, the corresponding page is fetched from the server after validation and is rendered.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
15

3.3 DATABASE DESIGN


A relational database is a collection of data items organized as a set of formally described tables
from which data can be accessed or reassembled in many different ways without having to recognize
database tables. The RDB was invented by E.F Codd at IBM in 1970.

An RDBMS is a program that lets you create, update, and administer a relational database. Most
commercial RDBMSs use the SQL to access the database, although SQL was invented after the
development of relational model and is not necessary for its use.

A database is an organized mechanism that has the capability of storing information through
which a user can retrieve stored data in an effective and efficient manner. The data is the purpose of
any database and must be protected.

The database design is a two level process. In the first step user requirements are gathered
together and a database is designed which will meet these requirements as cleanly as possible. This step
is called Information Level Design and it is taken independent of any individual DBMS.

In the second step this information level is transferred into a design for specific DBMS that will be
used to implement the system in question. This step is called Physical Level Design, concerned with the
characteristics of the specific DBMS that will be used. A DB design runs parallel with the system
design. The organization of data in the database is aimed to achieve two major objectives. They are:

 Data integrity
 Data independence

The database design is made up of three levels:

1. Conceptual level (High Level)


2. Physical level (Low Level)
3. View level (Representation Level

3.3.1 DATA NORMALIZATION

Normalization is the process of efficiently organizing data in a database. Two goals of


normalization are: eliminate redundant data and ensure data dependencies make sense. Both these goals
reduce the amount of space a database consumes and ensure that data is logically stored. The database
commonly has developed a series of guidelines for ensuring that databases are normalized. These are
referred to as normal forms and are numbered from one through five (1NF to 5NF).

First Normal Form(1NF)

A relation is in first normal form if and only if all its attributes are based upon a single domain

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
16

Second Normal Form(2NF)

A relation r(R) is in second normal form if and only if The following two conditions are not
simultaneously

1. r(R) is in First Normal Form


2. No non prime attribute is partially dependent on any key

Third Normal Form(3NF)

 A relation is in Third normal form if and only if the following conditions are satisfied
Simultaneously

1. It is already in second normal form


2. No non-prime attribute is transitively dependent on the key

Advantages of Normalization

 Helps in reduction in the complexity of maintaining data integrity by removing the redundant
data.
 Eliminate repeating fields.
 Reduces inconsistency of data.
 Create a row for each occurrence of a repeated field.
 Allows exploitation of column functions.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
17

3.3.2 TABLE DESIGN

1. Table Name: billhistory

Field Type Size Constraint Description

id int 11 Primary Key Id of bill details

productid varchar 11 Not Null Id of Product

productname varchar 25 Not Null Name of Product

productqty varchar 15 Not Null Quantity of


Product in Stock

productmrp int 8 Not Null Amount for One


Product

customername varchar 25 Not Null Name of


Customer

phone varchar 14 Not Null Phone Number of


Customer

date varchar 10 Not Null Purchase Date

quantity varchar 15 Not Null Quantity


Purchased

amount varchar 8 Not Null Total Amount

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
18

2. Table Name: booking

Field Type Size Constraint Description

billid int 11 Not Null Billing Id

deliverydate varchar 10 Not Null Date of Delivery

writing varchar 30 Not Null Writing in cake

adv int 8 Not Null Advance Paid

balanceamount int 11 Not Null Balance Amount


to be paid

status varchar 7 Not Null Status of payment

id int 11 Primary key Booking Id

3.Table Name: login

Field Type Size Constraint Description

id int 11 Foreign Key Id of Employee

username varchar 20 Not Null User Name of


Employee

password varchar 10 Not Null Password of


Employee

type varchar 10 Not Null User Type

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
19

4.Table Name: registration

Field Type Size Constraint Description

id int 11 Primary Key Id of Employee

name varchar 20 Not Null Name of


customer

address varchar 25 Not Null Address of


Employee

phone varchar 15 Not Null Phone Number


of Employeee

email varchar 25 Not Null Email of


Employee

5.TableName:attendance

Field Type Size Constraint Description

fid int 11 Not Null Id of employee

fdate varchar 10 Not Null Attendance date

id int 11 Primary Key Id of the


attendance

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
20

6.Table Name: stock

Field Type Size Constraint Description

id int 11 Primary Key Id of the Stock

name varchar 20 Not Null Name of Item

category varchar 20 Not Null Category of


Item

quantity int 11 Not Null Quantity in Stock

price int 11 Not Null Actual Price of


Item

mrp int 11 Not Null Selling Price of


Item

7. Table Name: cart

Field Type Size Constraint Description

id int 11 Primary Key Id of the Cart

itemid int 11 Not Null Id of the Item

name varchar 20 Not Null Name of Item

quantity int 11 Not Null Quantity of Item

price int 11 Not Null Price of Item

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
21

3.3.3 LANGUAGE OVERVIEW

JAVA

James Gosling initiated Java language project in June 1991 for use in one of his many set-top
box projects. The language, initially called ‘Oak’ after an oak tree that stood outside Gosling's office,
also went by the name ‘Green’ and ended up later being renamed as Java, from a list of random words.
Sun released the first public implementation as Java 1.0 in 1995. It promised Write Once, Run
Anywhere (WORA), providing no-cost run-times on popular platforms.
On 13 November, 2006, Sun released much of Java as free and open source software under the terms
of the GNU General Public License (GPL).
On 8 May, 2007, Sun finished the process, making all of Java's core code free and open-source, aside
from a small portion of code to which Sun did not hold the copyright.
Java programming language was originally developed by Sun Microsystems which was initiated by
James Gosling and released in 1995 as core component of Sun Microsystems' Java platform (Java 1.0
[J2SE]).
The latest release of the Java Standard Edition is Java SE 8. With the advancement of Java and its
widespread popularity, multiple configurations were built to suit various types of platforms. For
example: J2EE for Enterprise Applications, J2ME for Mobile Applications.
The new J2 versions were renamed as Java SE, Java EE, and Java ME respectively. Java is guaranteed
to be Write Once, Run Anywhere.
Java is −
 Object Oriented − In Java, everything is an Object. Java can be easily extended since it is
based on the Object model.
 Platform Independent − Unlike many other programming languages including C and C++,
when Java is compiled, it is not compiled into platform specific machine, rather into platform
independent byte code. This byte code is distributed over the web and interpreted by the
Virtual Machine (JVM) on whichever platform it is being run on.
 Simple − Java is designed to be easy to learn. If you understand the basic concept of OOP Java,
it would be easy to master.
 Secure − With Java's secure feature it enables to develop virus-free, tamper-free systems.
Authentication techniques are based on public-key encryption.
 Architecture-neutral − Java compiler generates an architecture-neutral object file format,
which makes the compiled code executable on many processors, with the presence of Java
runtime system.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
22

 Portable − Being architecture-neutral and having no implementation dependent aspects of the


specification makes Java portable. Compiler in Java is written in ANSI C with a clean
portability boundary, which is a POSIX subset.
 Robust − Java makes an effort to eliminate error prone situations by emphasizing mainly on
compile time error checking and runtime checking.
 Multithreaded − With Java's multithreaded feature it is possible to write programs that can
perform many tasks simultaneously. This design feature allows the developers to construct
interactive applications that can run smoothly.
 Interpreted − Java byte code is translated on the fly to native machine instructions and is not
stored anywhere. The development process is more rapid and analytical since the linking is an
incremental and light-weight process.
 High Performance − With the use of Just-In-Time compilers, Java enables high performance.
 Distributed − Java is designed for the distributed environment of the internet.
 Dynamic − Java is considered to be more dynamic than C or C++ since it is designed to adapt
to an evolving environment. Java programs can carry extensive amount of run-time
information that can be used to verify and resolve accesses to objects on run-time.

ADVANTAGES OF JAVA
 Java is easy to learn.
Java was designed to be easy to use and is therefore easy to write, compile, debug, and learn than other
programming languages.
 Java is object-oriented.
This allows you to create modular programs and reusable code.
 Java is platform-independent.
One of the most significant advantages of Java is its ability to move easily from one computer system
to another. The ability to run the same program on many different systems is crucial to World Wide
Web software, and Java succeeds at this by being platform-independent at both the source and binary
levels.

Other Advantages of JAVA

 Cost is low

 Java is easy to learn

 Java code can be embedded within the html

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
23

DATABASE

A database is a separate application that stores a collection of data. Each database has one or
more distinct APIs for creating, accessing, managing, searching, and replicating the data it holds. Other
kinds of data stores can be used, such as files on the file system or large hash tables in memory.

A database system must provide following features:

A variety of user interfaces.



Physical data independence.

Logical data independence.

Query optimization.

Data integrity.

Concurrency control.

Backup and recovery.

Security and authorization.

MySQL

MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL
is developed, marketed, and supported by MySQL Database, which is a Swedish company. MySQL is
an open source, SQL RDBMS that is free for many users. Its acceptance was aided in part by the wide
variety of other technologies such as PHP, Java, Perl, Python and the like that have encouraged its use
through stable, well documented modules and extensions. MySQL has not failed to reward the loyalty
of these users with the addition of both sub selects and foreign keys.

MySQL is becoming so popular because of many good reasons.



MySQL is released under an open source license.

MySQL is a very powerful program in its own right.

MySQL uses a standard form of the well-known SQL data language.

It works on many operating systems and with many languages including PHP, Perl,
C,C++, Java etc.

It works very quickly and works well even with large data sets.

MySQL is very friendly to PHP, the most appreciated language for web development.

It supports large databases, up to 50 million rows or more in a table.

MySQL is customizable.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
24

3.4 SELECTION OF TOOLS (S/W, H/W REQUIREMENTS)

Hardware Requirements

CPU : CORE I3 6TH GEN


Operation Speed : 2.5GHz

RAM : 8GB

Hard Disk : 1TB

Modem : 56 kb/s or above

Software Requirements

Operating System : Windows

Development tool : JAVA, JSP,CSS

Database : MySQL 5.1

IDE : Net Beans IDE 8.2

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
25

3.5 MENU TREE

Bakery Management
System

Admin Employee

Add/Remove View/Edit
Employee
Employee
Details

Add and view Mark

Stock Details Attendance

View View Stock


Employee Details
Attendance

View Perform
Employee
Pre-booking
Details

Perform
View Bill
Billing
History

View Pre-
Edit Stock booking
Details

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
26

4. SYSTEM TESTING AND IMPLEMENTATION

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
27

4.1 SYSTEM TESTING

Testing is the process of executing a program with the intent of finding any errors. A good test
of course has the high probability of finding a yet undiscovered error. A successful testing is the one
that uncovers a yet undiscovered error. A test is vital to the success of the system. System that makes
logical assumptions that if all parts of this system are correct, then foal will be successfully achieved.
The candidate system is subjected to variety of tests online like responsiveness, its value, stress and
security. System testing can be broadly classified into:


 Black box testing 

 White box testing 

 Unit testing 

 Integration testing 
 Validation testing 

Black Box Testing

When computer software is considered, black box testing alludes to tests that are conducted at
the software interface. A black box test examines some fundamental aspects of a system with little
regard for the internal logical structure of the software. Black box testing attempts to find errors in the
following categories:
 Incorrect or missing function
 Interface errors
 Performance errors
 Errors in data structures or external database access
 Initialization and termination errors

In our application, we use a number of functions to perform operations. Using the black box
testing we made sure that all functions are executing correctly by giving the required result.

White Box Testing

It is a testing method that uses control structure of procedural design to derive testing. Knowing
the internal working of a product tests can be conducted to ensure that the internal operations performs
according to specification and all internal components have been adequately exercised. White box
testing of software is predicated on close examination of conditions and/or loops tests logical paths
through the software. Using this testing method, the software engineer can do tests that:

 Guarantee that all independent paths within a module have been exercised at least once.
 Exercise all logical decisions on their true and false values.
 Execute all loops at their boundaries and within their operational bounds.
 Exercise internal data structures to ensure their validity.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
28

Here all logical structures are tested in their true and false conditions. We also made sure that all
loops are performing well at their boundaries. For the checking appropriate data inputs are given and
they are processed correctly. Individual functions are tested separately for each of the above conditions.

Unit Testing

This is the first level of testing. Here different functions used in the software development are
split into different modules and tested to see whether they satisfy our needs. Code produced during the
coding phase of the software development process and the internal logic of the module is tested here.
After coding each function was tested individually. The logical errors found were corrected.

Integration Testing

This is systematic technique for constructing the structure while conducting tests to uncover
errors with interfacing. Here the different functions of software are combined into subsystem, which are
again tested. The various unit tested functions of the software were integrated and rigorous integration
testing was conducted to make the application free of any interface errors that may occur. In this phase
various functions are combined. Once the individual functions were tested, we tested the control
hierarchy in a top down integration manner.

Validation Testing

It provides the final assurance that the software meets all functional, behavioural and
performance requirements. Then software changed for the better performance. When the Application
was made free of all logical and interface errors, validation testing was conducted by inputting dummy
data to ensure that the software developed satisfied all the requirements of the user. This includes
providing various valid and invalid inputs.

System tests carried out to validate dully developed system with a view assuring that it meets its
requirements. There are essentially three kinds of system testing:

1. Alpha Testing

It refers to the system testing that is carried out by the test team within the organization.

2. Beta Testing

Beta testing is the system testing performed by a selected group of friendly customers.

3. Acceptance Testing

Acceptance testing is the system testing performed by the customer to determine whether or not
to accept the delivery of the system. The application is tested to ensure the requirements.
Different sets of input data are entered to validate the system. In all cases the system produces the
reasonable output.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
29

4.2 SYSTEM IMPLEMENTATION

Implementation is the process of converting a new or revised system design into operation. It is
the key stage in achieving a successful new system because, usually it reveals a lotof up heal. It must
therefore be carefully planned and controlled. Apart from planning the two major tasks of preparing for
implementation are education and training of users and testing of the system. Education of users should
really take place much earlier in the project. Training has to be given to the web masters regarding the
new system. Implementation is the stage of project where the theoretical design is turned into working
system or it is the key stage in achieving a successful new system. Therefore it must be carefully
planned and controlled. It can also be considered to be the most crucial stage in achieving a successful
new system and in giving the user confidence that the new system and in giving the user confidence
that the new system will work and be effective.

Implementation is the final and important phase. It is the phase where theoretical design is
turned into working system, which works for the user in the most effective manner. It involves careful
planning, investigation of the present system and the constraints involved, user training, system testing
and successful running of developed proposed system. The implementation process begins with
preparing a plan for the implementation of the system. According to this plan the activities are to be
carried out, discussions made regarding the equipment and resources and the additional equipment has
to be acquired to implement the new system. The user tests the developed system and changes are made
according to their needs. The testing phase involves the testing of a system using various kinds of data.
This method also offers the greatest security since the old system can take over if the errors are found
or inability to handle certain type of transactions while using the new system.

4.3 FUTURE ENHANCEMENTS

Changes in software engineering technology are indeed rapid. By the time a decision is made
to adopt a new method,conduct the training necessary to understand its application and introduce the
technology into the software development culture, something new and better has come along and the
process begins .Computer Software is one of the few key technologies that will have a significant
impact on nearly every aspects of modern society. It is a medium for automating the college services,
a medium for transferring new technology. Our College Management System is capable to adapt any
modification in future.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
30

5. SYSTEM MAINTENANCE

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
31

5. SYSTEM MAINTENANCE

It is possible to produce systems of any size which do not need to be changed. Over the lifetime
of a system, its original requirements will be modified to reflect the changing user.
After implementation, maintenance is the important process. Usually once the system is
implemented, the software developers and customer would sign a contract. According to the time
mentioned in the contract all errors and requirements would be charged. During the contract period we
would frequently visit the site where the system is implemented and check the system performance
such as response time and also how it works at peak hours. If any problem is found, it is corrected.

The four types of maintenance activities are listed below.

Corrective Maintenance

This is concerned with fixing reported errors in the software. Coding errors are relatively cheap
to correct; design errors are more expensive as they may involve the rewriting of several program
components. Requirements errors are the most expensive to repair because of the extensive system
redesign which may be necessary.

Adaptive Maintenance

Adaptive maintenance means changing the software to some new environment such as different
hardware platform or for use with different operating system. The software functionality does not
radically change.

Perfective Maintenance

This involves implementing a functional or non-functional system requirement. These are


generated by software consumers as their organization or business changes.

Preventive Maintenance

This occurs when software is changed to improve future maintainability or reliability or to


provide a better basis for future enhancement. In this project, all the above maintenance were
implemented.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
32

6. SECURITY MECHANISMS

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
33

6. SECURITY MECHANISMS
This project provides some security features. We can implement application security in the
developing system. After registering employee details, their unique employee numbers are invoked as
their username and the employee can provide their password.Securities are provided in this project that
the data remains confidential. Password facility is implemented to avoid unauthorized access of
information. A combination of alphabets, numbers and special characters makes a password strong.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
34

7. UPGRADABILITY POSSIBILITY

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
35

7. UPGRADABILITY POSSIBILITY

The technology is changing day to day. The efficiency of developed system can be improved by
modifications. The quality of this software can be improved by keeping wise list of reports and other
documents effectively. So it is easy to add or remove modules.

This system gives only the current situation in the organization. But in future, it is possible to
make changes in a system to a complete record keeping which will give all the past and current
information of the organization. Software development in JAVA is very flexible and all application was
tested with live data and has proved respond successful. So it is quite and helps in smooth migration
from manual system to computerized system.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
36

8. CONCLUSION

This project entitled Bakery Management System using Windows application is developed for
minimizing the workload. This software handles almost entire tasks for bakery.

The frontend of this software is prepared in java and the back-end database is created with
MYSQL Server in Windows operating system. This software is so user friendly and covering all main
features and functions of both the software’s. During the design phase of the system, many difficulties
were encountered. Checking different tables and listing out the errors created many problems. More
errors were spotted during system testing. It successfully overcome strict validation checks performed
during test data. The results obtained were fully satisfactory from the user point of view. Thus, the
project titled ‘Bakery Management System’was successfully completed and showed reasonably good
performance.

The key features of the system are:-

 Resource requirement is less.


 User friendly.
 Ease in handling and implementation.

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
37

APPENDIX A-FORM LAYOUTS

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
38

Main

ADMIN

Admin Home

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
39

Register Employee

Add Stock

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
40

Edit and Remove Employee

Attendance View

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
41

View Stock

Edit and Remove Stock

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
42

View Bill Details

EMPLOYEE

Billing

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
43

View and Edit Profile

Mark Attendence

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
44

View Stock

Pre-Booking

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
45

View Booking Details

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
46

APPENDIX B-SYSTEM CODING

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
47

SAMPLE CODE

DBconnection

importjava.sql.Connection;

importjava.sql.DriverManager;

importjava.sql.SQLException;

public class DBconnection

private static final String DATABASE ="jdbc:mysql://localhost:3306/stockmanagement";

private static final String USERNAME ="root";

private static final String PASSWORD ="";

public static Connection getConnection() throws ClassNotFoundException, SQLException

Class.forName("com.mysql.jdbc.Driver");

Connection con =DriverManager.getConnection(DATABASE,USERNAME,PASSWORD);

return con;

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
48

Registration

importcom.database.DBconnection;

importcom.mysql.jdbc.StringUtils;

importjava.sql.PreparedStatement;

importjava.sql.ResultSet;

importjava.sql.SQLException;

importjava.util.logging.Level;

importjava.util.logging.Logger;

importjava.util.regex.Pattern;

importjavax.swing.JOptionPane;

public class AdminRegister extends javax.swing.JFrame {

publicAdminRegister() {

initComponents();

setLocationRelativeTo(null);

setInitialId();

private void registerBtActionPerformed(java.awt.event.ActionEventevt) {

if(!StringUtils.isNullOrEmpty(nameTf.getText())&&!StringUtils.isNullOrEmpty(addressTa.getText())
&&!StringUtils.isNullOrEmpty(phoneTf.getText())&&!StringUtils.isNullOrEmpty(emailTf.getText())
&&!StringUtils.isNullOrEmpty(usernameTf.getText())&&!StringUtils.isNullOrEmpty(passwordTf.get
Text())){

String insertDataToRegistration = "insert into registration values(?,?,?,?,?)";

String insertDataToLogin = "insert into login values(?,?,?,?)";

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
49

try {

PreparedStatement ps2 = DBconnection.getConnection().prepareStatement(insertDataToRegistration);

ps2.setInt(1, Integer.parseInt(idTf.getText()));

ps2.setString(2, nameTf.getText());

ps2.setString(3, addressTa.getText());

ps2.setString(4, phoneTf.getText());

ps2.setString(5, emailTf.getText());

// if(String)

PreparedStatement ps3 = DBconnection.getConnection().prepareStatement(insertDataToLogin);

ps3.setInt(1, Integer.parseInt(idTf.getText()));

ps3.setString(2, usernameTf.getText());

ps3.setString(3, String.valueOf(passwordTf.getPassword()));

ps3.setString(4, "emp");

if (ps2.executeUpdate() > 0 && ps3.executeUpdate() > 0) {

JOptionPane.showMessageDialog(rootPane, "Successfully Inserted");

dispose();

newAdminRegister().setVisible(true);

} else {

JOptionPane.showMessageDialog(rootPane, "Failed To Inserted");

dispose();

newAdminRegister().setVisible(true);

} catch (ClassNotFoundException ex) {

Logger.getLogger(AdminRegister.class.getName()).log(Level.SEVERE, null, ex);

} catch (SQLException ex) {

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
50

Logger.getLogger(AdminRegister.class.getName()).log(Level.SEVERE, null, ex);

} catch (NumberFormatExceptionnumEx) {

JOptionPane.showMessageDialog(rootPane, "Enter Valid Phone Number");

} catch (ArithmeticExceptionarEx) {

JOptionPane.showMessageDialog(rootPane, "Enter Valid Input");

} catch (NullPointerExceptionnullEx) {

JOptionPane.showMessageDialog(rootPane, "Enter Valid Input");

else{

JOptionPane.showMessageDialog(rootPane, "Please fill All The Fields");

private void cancelBtActionPerformed(java.awt.event.ActionEventevt) {

dispose();

newAdminMain().setVisible(true);

private void phoneTfKeyTyped(java.awt.event.KeyEventevt) {

if (phoneTf.getText().length() >= 10) {

evt.consume();

private void nameTfKeyReleased(java.awt.event.KeyEventevt) {

String cName = nameTf.getText();

if (!Pattern.matches("[a-z A-Z]+", cName)) {

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
51

JOptionPane.showMessageDialog(null, "Only Characters are allowed");

int length = cName.length();

nameTf.setText(cName.substring(0, length - 1));

private void phoneTfKeyReleased(java.awt.event.KeyEventevt) {

String cName = phoneTf.getText();

if (!Pattern.matches("[0-9]+", cName)) {

JOptionPane.showMessageDialog(null, "Only Numbers are allowed");

int length = cName.length();

phoneTf.setText(cName.substring(0, length - 1));

private void emailTfFocusLost(java.awt.event.FocusEventevt) {

String cName = emailTf.getText();

if (!Pattern.matches("([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})", cName)) {

JOptionPane.showMessageDialog(null, "Enter Valid Email");

int length = cName.length();

emailTf.setText(cName.substring(0, length - 1));

private void usernameTfKeyReleased(java.awt.event.KeyEventevt) {

String cName = usernameTf.getText();

if (!Pattern.matches("[a-z A-Z]+", cName)) {

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
52

JOptionPane.showMessageDialog(null, "Only Characters are allowed");

int length = cName.length();

usernameTf.setText(cName.substring(0, length - 1));

public static void main(String args[]) {

java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

newAdminRegister().setVisible(true);

});

public void setInitialId() {

String getMaxId = "select max(id) from registration";

ResultSetrs;

try {

rs = DBconnection.getConnection().prepareStatement(getMaxId).executeQuery();

if (rs.next()) {

idTf.setText(String.valueOf((rs.getInt(1) + 1)));

} catch (ClassNotFoundException ex) {

Logger.getLogger(AdminRegister.class

.getName()).log(Level.SEVERE, null, ex);

} catch (SQLException ex) {

Logger.getLogger(AdminRegister.class

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
53

.getName()).log(Level.SEVERE, null, ex);

Login

importcom.database.DBconnection;

importcom.employee.EmployeeMain;

importjava.sql.PreparedStatement;

importjava.sql.ResultSet;

importjava.sql.SQLException;

importjava.text.ParseException;

importjava.text.SimpleDateFormat;

importjava.util.Date;

importjava.util.logging.Level;

importjava.util.logging.Logger;

importjavax.swing.JOptionPane;

public class Login extends javax.swing.JFrame

private static int id;

public Login()

initComponents();

setLocationRelativeTo(null);

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
54

private void loginBtActionPerformed(java.awt.event.ActionEventevt) {

boolean flag = false;

String query = "select * from login where username=? and password=? ";

try {

PreparedStatementps = DBconnection.getConnection().prepareStatement(query);

ps.setString(1, usernameTf.getText());

ps.setString(2, new String(passwordTf.getPassword()));

ResultSetrs = ps.executeQuery();

if (rs.next()) {

if (rs.getString(4).equals("admin")) {

dispose();

newAdminMain().setVisible(true);

} else if (rs.getString(4).equals("emp")) {

dispose();

int id = rs.getInt(1);

markAttendance(id);

newEmployeeMain(id).setVisible(true);

} else

JOptionPane.showMessageDialog(rootPane, "Not A Registered User");

} catch (ClassNotFoundException ex)

Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
55

} catch (SQLException ex) {

Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);

private void cancelBtActionPerformed(java.awt.event.ActionEventevt)

dispose();

public static void main(String args[]) {

java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

new Login().setVisible(true);

});

public static intgetId() {

return id;

public static void setId(int id) {

Login.id = id;

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
56

Mark Attendence

public void markAttendance(int id) {

inttempDate;

boolean status = true;

String getData = "select * from attendance where fid = ? ";

String query = "insert into attendance values(?,?,null)";

try {

PreparedStatement ps1 = DBconnection.getConnection().prepareStatement(getData);

ps1.setInt(1, id);

ResultSetrs = ps1.executeQuery();

while (rs.next()) {

if (rs.getString(2).equals(getCurrentDate())) {

status = false;

if (status) {

PreparedStatementps = DBconnection.getConnection().prepareStatement(query);

ps.setInt(1, id);

ps.setString(2, getCurrentDate());

ps.executeUpdate();

} catch (ClassNotFoundException | SQLException | ParseException ex) {

Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
57

public String getCurrentDate() throws ParseException {

SimpleDateFormatsdf = new SimpleDateFormat("yyyy-MM-dd");

Date dateWithoutTime = sdf.parse(sdf.format(new Date()));

returndateWithoutTime.toString().substring(0, 11);

Pre-Booking

importcom.mysql.jdbc.StringUtils;

importjava.sql.ResultSet;

importjava.sql.SQLException;

importjava.text.ParseException;

importjava.text.SimpleDateFormat;

importjava.util.Date;

importjava.util.List;

importjava.util.logging.Level;

importjava.util.logging.Logger;

importjava.util.regex.Pattern;

importjavax.swing.DefaultListModel;

importjavax.swing.JOptionPane;

public class Bookings extends javax.swing.JFrame {

public Bookings() {

initComponents();

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
58

setLocationRelativeTo(null);

try {

customerOrderDateTf.setText(getCurrentDate());

} catch (ParseException ex) {

Logger.getLogger(Booking.class.getName()).log(Level.SEVERE, null, ex);

private void jButton1ActionPerformed(java.awt.event.ActionEventevt) {

if(!StringUtils.isNullOrEmpty(customerNameTf.getText())&&!StringUtils.isNullOrEmpty(customerPh
oneTf.getText())&&!StringUtils.isNullOrEmpty(customerQuantityTf.getText())&&!StringUtils.isNull
OrEmpty(customerDeliveryDpik.getEditor().getText())){

new BookingBill(nameTf.getText(), customerOrderDateTf.getText(),


customerDeliveryDpik.getEditor().getText(), advanceLb.getText(), amountLb.getText(),
totalAmountLb.getText()).setVisible(true);

else{

JOptionPane.showMessageDialog(rootPane,"Please Fill All The fields Properly");

private void searchTfKeyReleased(java.awt.event.KeyEventevt) {

EmployeeDaodao = new EmployeeDao();

try {

List<String>arrayList = dao.getSearchDetails(searchTf.getText());

DefaultListModellistModel = new DefaultListModel();

for (String string :arrayList)

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
59

listModel.addElement(string);

list1.setModel(listModel);

} catch (ClassNotFoundException ex) {

Logger.getLogger(EmployeeMain.class.getName()).log(Level.SEVERE, null, ex);

} catch (SQLException ex) {

Logger.getLogger(EmployeeMain.class.getName()).log(Level.SEVERE, null, ex);

private void list1MouseClicked(java.awt.event.MouseEventevt) {

EmployeeDaodao = new EmployeeDao();

ResultSetrs;

try {

if (evt.getClickCount() == 2) {

rs = dao.getDetailsOfSelectedItem(list1.getSelectedValue());

while (rs.next()) {

idTf.setText(String.valueOf(rs.getInt(1)));

nameTf.setText(rs.getString(2));

categoryTf.setText(rs.getString(3));

quantityTf.setText(rs.getInt(4) + "");

priceTf.setText(rs.getInt(5) + "");

mrpTf.setText(rs.getInt(6) + "");

customerQuantityTf.setText("");

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
60

} catch (ClassNotFoundException ex) {

Logger.getLogger(EmployeeMain.class.getName()).log(Level.SEVERE, null, ex);

} catch (SQLException ex) {

Logger.getLogger(EmployeeMain.class.getName()).log(Level.SEVERE, null, ex);

private void customerQuantityTfKeyReleased(java.awt.event.KeyEventevt) {

try {

if (!customerQuantityTf.getText().equals("") && !quantityTf.getText().equals("")) {

intcustomerQuantity = Integer.parseInt(customerQuantityTf.getText());

int quantity = Integer.parseInt(quantityTf.getText());

int price = Integer.parseInt(mrpTf.getText());

inttotalAmount = customerQuantity * price;

int advance = Math.round(totalAmount / 4);

floatremainingAmound = totalAmount - advance;

totalAmountLb.setText(totalAmount + " Rs");

advanceLb.setText(advance + " Rs");

amountLb.setText(remainingAmound + " Rs");

if (customerQuantity> quantity) {

evt.consume();

JOptionPane.showMessageDialog(customerNameTf, "Not Enough Stock ");

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
61

//Removing Last Value From totalAmount

inttotalAmountLength = customerQuantityTf.getText().length();

String totalAmountTrimmedVal = customerQuantityTf.getText().substring(0,


(totalAmountLength - 1));

customerQuantityTf.setText(totalAmountTrimmedVal);

totalAmount = Integer.parseInt(totalAmountTrimmedVal) * price;

totalAmountLb.setText(totalAmount + " Rs");

//Removing Last Value From advance

advance = Math.round(totalAmount / 4);

advanceLb.setText(advance + " Rs");

//Removing Last Value From remainingAmount

remainingAmound = totalAmount - advance;

amountLb.setText(remainingAmound + " Rs");

} catch (NumberFormatException e) {

JOptionPane.showMessageDialog(customerNameTf, "Invalid Value Entered");

private void submitButtonActionPerformed(java.awt.event.ActionEventevt) {

if(!StringUtils.isNullOrEmpty(customerNameTf.getText())&&!StringUtils.isNullOrEmpty(customerPh
oneTf.getText())&&!StringUtils.isNullOrEmpty(customerQuantityTf.getText())&&!StringUtils.isNull
OrEmpty(customerDeliveryDpik.getEditor().getText())){

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
62

intstockQuantity = Integer.parseInt(quantityTf.getText());

intcustomerQuantity = Integer.parseInt(customerQuantityTf.getText());

stockQuantity -= customerQuantity;

//Customer Details

String customerName = customerNameTf.getText();

String customerPhone = customerPhoneTf.getText();

String customerOrderDate = customerOrderDateTf.getText();

String customerDeliveryDate = customerDeliveryDpik.getEditor().getText();

String customerWriting = customerWritingTf.getText();

//Stock Details

intstockId = Integer.parseInt(idTf.getText());

String stockName = nameTf.getText();

String stockCategory = categoryTf.getText();

intstockPrice = Integer.parseInt(priceTf.getText());

intstockMrp = Integer.parseInt(mrpTf.getText());

//Pricing Details

int advance = Integer.parseInt(advanceLb.getText().replaceAll("[a-z A-Z]", ""));

String tempAmount = amountLb.getText().replaceAll("[a-z A-Z /.]", "");

int balance = Integer.parseInt(tempAmount.substring(0,tempAmount.length()-1));

String total = totalAmountLb.getText();

StockPojostockDetails = new StockPojo(stockId, stockName, stockCategory, stockQuantity,


stockPrice, stockMrp);

try {

boolean status = new EmployeeDao().bookingTransaction(stockDetails, customerName,


customerPhone, customerOrderDate, customerDeliveryDate, customerQuantity, customerWriting,
advance, balance, total);

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
63

if(status){

JOptionPane.showMessageDialog(submitButton,"Inserted successfully");

} else {

JOptionPane.showMessageDialog(submitButton,"Insertion failed");

} catch (ClassNotFoundException ex) {

Logger.getLogger(Booking.class.getName()).log(Level.SEVERE, null, ex);

} catch (SQLException ex) {

Logger.getLogger(Booking.class.getName()).log(Level.SEVERE, null, ex);

else{

private void customerPhoneTfKeyTyped(java.awt.event.KeyEventevt) {

if (customerPhoneTf.getText().length() >= 10) {

evt.consume();

private void jLabel16MouseClicked(java.awt.event.MouseEventevt) {

categoryTf.setText("");

customerDeliveryDpik.getEditor().setText("");

customerNameTf.setText("");

customerPhoneTf.setText("");

customerQuantityTf.setText("");

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
64

customerWritingTf.setText("");

advanceLb.setText("");

amountLb.setText("");

totalAmountLb.setText("");

idTf.setText("");

nameTf.setText("");

priceTf.setText("");

mrpTf.setText("");

quantityTf.setText("");

searchTf.setText("");

private void customerNameTfKeyReleased(java.awt.event.KeyEventevt) {

// TODO add your handling code here:

System.out.println("***");

String cName = customerNameTf.getText();

if (!Pattern.matches("[a-z A-Z]+", cName)) {

JOptionPane.showMessageDialog(null, "Only Characters are allowed");

int length = cName.length();

customerNameTf.setText(cName.substring(0, length - 1));

private void customerPhoneTfKeyReleased(java.awt.event.KeyEventevt) {

System.out.println("***********************");

String cName =customerPhoneTf.getText();

if (!Pattern.matches("[0-9]+", cName)) {

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
65

JOptionPane.showMessageDialog(null, "Only Numbers are allowed");

int length = cName.length();

customerPhoneTf.setText(cName.substring(0, length - 1));

public static void main(String args[]) {

java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

new Bookings().setVisible(true);

});

public String getCurrentDate() throws ParseException {

SimpleDateFormatsdf = new SimpleDateFormat("yyyy-MM-dd");

Date dateWithoutTime = sdf.parse(sdf.format(new Date()));

returndateWithoutTime.toString().substring(0, 11);

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
66

9. REFERENCE

Mar Thoma College of Science &Technology,Ayur


Bakery Management System
67

BOOKS:

1. Rajib Mall, Fundamentals of software Engineering, Second Edition, Prentice-hall of


India private limited.
2. Roger S Pressman, Software Engineering, Sixth Edition,McGraw-Hill International
Editions.
3. D.S.Malik, Java Programming:From Problem Analysis to Program Design ,FifthEdition

Websites

1. www.tutorialspoint.com/java
2. www.java.net

Mar Thoma College of Science &Technology,Ayur

Potrebbero piacerti anche