Professional Documents
Culture Documents
The system will display all the items whose name starts with the letter selected by the user.
He can select out of those displayed. Finally a separate bill will be generated for each
customer. This will be saved in the database. Any periodic records can be viewed at any time.
If the stock is not available, the supermarket orders and buys from a prescribed vendor. The
amount will be paid by deducting the total amount acquired in the sales activity. Admin
provides a unique username and password for each employee through which he can login.
1
i. Employee: When a new employee joins the company, his record is saved in the
database.
ii. Items: Here the Admin can add any new items present in the supermarket. He also
has the right to modify or delete it from the database.
iii. Registration: As soon as the employee joins the company, the admin provides unique
username and password to him.
iv. Vendor Order: If the stock is not available, the supermarket orders and buys from a
prescribed vendor. The amount will be paid by deducting the total amount acquired in
the sales activity.
v. Stock entry: The items bought from the vendor will be entered here and this will be
added to the stock.
vi. Indent Report: This provides the report of the items sold for a particular month/ year
and also gives the total amount acquired.
vii. Vendor Report: This provides the report of the items bought from a vendor for a
particular month/ year and also gives the total amount spent.
viii. Display: A user can view information regarding Items present in the supermarket.
ix. Logout: This module allows the user to Logout the application. Further operations
cannot be performed after user exits.
2
The factors for these difficulties are:
i. Time Consumption: Manual systems are time consuming, as the business owner
must keep track of Supermarket sales on a daily basis, while updating the system
manually at the end of the day.
ii. Poor Communication: A manual Supermarket system requires employees and
managers to write down each time an item is removed from the Supermarket. If one
employee forgets to mention that the last Sugar product has been removed from the
Supermarket, a manager expects the item to still be available for a customer during a
sale. Compared with a technical Supermarket system, a manual Supermarket system
does not help the communication in the workplace.
iii. Physical Counts: A manual Supermarket system does not provide any number, as all
numbers from the Supermarket are gained through physical Supermarket counts. One
of the difficulties of running a manual Supermarket system is that physical
Supermarket counts must be performed frequently to control the items in the
Supermarket. This is time consuming and can cost the business money, if employees
must come in to help out outside of business hours.
iv. Daily Purchases: Keeping track of daily purchases is another difficult controlling
measure with manual Supermarket systems. A manual Supermarket system requires
the employees to write down the items sold during a single work day. This can be a
difficult task, as one employee may lose the list of items sold or another may forget
to write down a sale.
v. Ordering Supplies: A manual Supermarket system does not update at the end of the
day with updated Supermarket
3
ii. Explore the challenges being faced by the manual system.
iii. Make a software fast in processing, with good user interface.
iv. Ensure accurate number of product item that are available.
v. Have easy record of goods in store and proper identification.
4
vii. MICROSOFT VISUAL STUDIO: Visual Studio (VS) is an integrated development
environment (IDE) is a set of tools in a single application that helps you write
programs.
viii. MICROSOFT C#: Microsoft C# (pronounced C sharp) is a new programming
language designed for building a wide range of enterprise applications that run on
the .NET Framework
ix. MYSQL: MySQL is a freely available open source Relational Database Management
System (RDBMS) that uses Structured Query Language (SQL). SQL is the most
popular language for adding, accessing and managing content in a database. It is most
noted for its quick processing, proven reliability, ease and flexibility of use.
5
CHAPTER TWO: LITERATURE REVIEW
2.1 Introduction to Supermarket
A supermarket is a large form of the traditional grocery store, it is a self-
service shop offering a wide variety of food and household products, organized into aisles. It
is larger in size and has a wider selection than a traditional grocery store, but is smaller and
more limited in the range of merchandise than a hypermarket or big-box market.
The concept of an inexpensive food market relying on large economies of scale was
developed by Vincent Astor. He founded the Astor Market in 1915, investing $750,000 of his
fortune into a 165 by 125 corner of in the famous 95 Manhattan avenue, creating in effect, an
open air mini-mall that sold meat, fruit, produce and flowers.
The expectation was that customers would come from great distances ("miles around"), but in
the end even attracting people from ten blocks away was difficult, and the market folded in
1917. The concept of a super market was developed by entrepreneur Clarence Saunders and
his Piggly Wigglystores. His first store opened in 1916. Saunders was awarded a number
of patents for the ideas he incorporated into his stores. The stores were a financial success
and Saunders began to offer franchises. The Great Atlantic & Pacific Tea Company, which
was established in 1859, was another successful early grocery store chain in Canada and the
United States, and became common in North American cities in the 1920s. The general trend
in retail since then has been to stock shelves at night so that customers, the following day, can
obtain their own goods and bring them to the front of the store to pay for them. Although
6
there is a higher risk of shoplifting, the costs of appropriate security measures ideally will be
outweighed by reduced labor cost.
It has been determined that the first true supermarket in the United States was opened by a
former Kroger employee, Michael J. Cullen, on August 4, 1930, inside a 6,000-square-foot
(560 m2) former garage in Jamaica, Queens in New York City. The store, King Kullen,
(inspired by the fictional character King Kong), operated under the slogan "Pile it high. Sell it
low." At the time of Cullen's death in 1936, there were seventeen King Kullen stores in
operation. Although Saunders had brought the world self-service, uniform stores and
nationwide marketing, Cullen built on this idea by adding separate food departments, selling
large volumes of food at discount prices and adding a parking lot.
Other established American grocery chains in the 1930s, such as Kroger and Safeway at first
resisted Cullen's idea, but eventually were forced to build their own supermarkets as the
economy sank into the Great Depression, while consumers were becoming price-sensitive at
a level never experienced before. Kroger took the idea one step further and pioneered the first
supermarket surrounded on all four sides by a parking lot.
Supermarkets proliferated across Canada and the United States with the growth of automobile
ownership and suburban development after World War II. Most North American
supermarkets are located in suburban strip shopping centers as an anchor store along with
other smaller retailers. They are generally regional rather than national in their
7
company branding. Kroger is perhaps the most nationally oriented supermarket chain in the
United States but it has preserved most of its regional brands, including Ralphs, City
Market, King Soopers, Fry's, Smith's, and QFC.
In Canada, the largest such chain is Loblaw, which operates stores under a variety of regional
names, including Fortinos, Zehrs, No Frills, the Real Canadian Superstore, and the
largest, Loblaws, (named after the company itself). Sobeys is Canada's second largest
supermarket with locations across the country, operating under many banners (Sobeys IGA
in Quebec). Québec's first supermarket opened in 1934 in Montréal, under the
banner Steinberg's.
In the United Kingdom, self-service shopping took longer to become established. Even in
1947, there were just ten self-service shops in the country. In 1951, ex-US Navy sailor
Patrick Galvani, son-in-law of Express Dairies chairman, made a pitch to the board to open a
chain of supermarkets across the country. The UK's first supermarket under the new Premier
Supermarkets brand opened in Streatham, South London, taking ten times as much per week
as the average British general store of the time. Other chains caught on, and after Galvani lost
out to Tesco's Jack Cohen in 1960 to buy the 212 Irwin's chain, the sector underwent a large
amount of consolidation, resulting in 'the big four' dominant UK retailers of
today: Tesco, Asda (owned by Wal-Mart), Sainsbury's and Morrisons.
8
Food Marketing Institute classifies superstores as a large type of supermarket, while
designating warehouse stores as grocery stores.
iii. Bigboxmarket: Is a physically large retail establishment, usually part of a chain. The
term sometimes also refers, by extension, to the company that operates the store. The
store may sell general goods, it is generally inaccessible to pedestrians and often can
only be reached by motor vehicles, the big-box store is regarded as unsustainable and
a failure of urban planning.
9
Some conservatives worry about the economic impact of big-box retailers on
established downtown merchants or the sprawl-inducing impacts on the character of
such developments, as these stores are often associated with heavy traffic in the areas
around the store locations. Some communities have adopted a higher level of
architectural treatment and regulations to ensure that the superstores relate better to
their environs and neighbors. Many regulate signage and landscaping.
There are also concerns surrounding traffic and roads. The increased traffic leads to
more air pollution in an area and higher taxes in order to maintain the roads.
The internet marketing has been active for a long time now, the cumulative events occurring
in online marketing is leading up to where we are now it have impacted the entire globe faster
than any marketing revolution in history.
Over the past decade or so, supermarkets and other grocery retailers have continued to invest
significantly into broadening their Internet presence and expanding the number of channels
through which their goods are sold. Key Note estimates that sales of groceries transacted via
online channels observed double-digit growth between 2007 and 2011, increasing by 127%
overall.
One of the major trends to have driven growth within the Internet grocery market is m-
commerce that is sales made via mobile channels, i.e. smart phones and tablet computers. The
increasing popularity of smart phones and tablets among consumers has resulted in a whole
host of retailers investing significant sums of money into mobile sales platforms, as well as
downloadable applications (apps'), which offer a more interactive and personalized shopping
experience.
Despite the growth of online grocers in recent years, online spending still accounts for a
relatively small proportion of the overall Internet grocery market, with just 3.9% of total
grocery sales estimated to have been transacted via e-commerce and m-commerce channels.
However, the share of the total grocery market represented by online grocers has continued to
increase year-on-year since at least 2007, when their market share stood at just 2.1%.
Key Note expects the Internet grocery market to continue to go from strength to strength over
the forthcoming years and has forecast year-on-year double-digit growth for 2012 to 2016.
The rising uptake of Internet-connected mobile devices, such as smart phones and tablets,
should boost sales transacted via m-commerce channels, while continued Government
10
investment in the rollout of superfast broadband, alongside the introduction of the UK's first
4G mobile network, will also help to boost Internet activity and the use of e-commerce
services throughout the country.
Online marketing can broadly be defined as the processes or areas involved in the running
and operation of an organization that are electronic or digital in nature. These include direct
business activities such as marketing, sales and human resource management but also indirect
activities such as business process re-engineering and change management, which impact on
the improvement in efficiency and integration of business processes and activities.
In 1994, spending for internet marketing totaled nearly nothing, but increased to over $300
million in 1995. Now, little more than a decade later, marketing spending and internet
marketing business has exploded to nearly $200 billion (according to Forrester Research).
Today, it’s hard to believe in having an organization which doesn’t have some kind of online
presence.
When the internet was first introduced in the early 90s, it wasn’t considered to be an
advertising medium at all. Instead, the internet was treated as a tool for exchanging emails
and digital information, but wasn’t yet considered valuable for reaching customers. However,
it wasn’t long before marketing pioneers began to see the potential for internet marketing
business as millions of web surfers logging on each day to find valuable and relevant
information. Within just a few years, informative and educational marketing, as well as
graphically enticing banner ads began to be show up. It wasn’t long before results began to
flood in which proved the value of the internet marketplace to even the most skeptical
advertisers.
i. Technological Factors,
ii. Social Factors
iii. Economic Factors.
11
every room in his house, so that he could check the status of his home by logging onto the
Internet when he was away from home on tour.
i. More choices: Customers not only have a whole range of products that they can
choose from and customize, but also an international selection of suppliers.
ii. Price comparisons: Customers can ‘shop’ around the world and conduct
comparisons either directly by visiting different sites, or by visiting a single site where
prices are aggregated from a number of providers and compared (for example
www.moneyextra.co.uk for financial products and services).
iii. Improved delivery processes: This can range from the immediate delivery of
digitized or electronic goods such as software or audio-visual files by downloading
via the Internet, to the on-line tracking of the progress of packages being delivered by
mail or courier
12
new opportunities which sometimes leads to strategies detrimental to the organization. The
ease with which business models can be copied and emulated over the Internet increases that
pressure and curtails longer-term competitive advantage.
Facing increased competition from both national and international competitors often leads to
price wars and subsequent unsustainable losses for the organization.
There are problems where older business systems cannot communicate with web based and
Internet infrastructures, leading to some organizations running almost two independent
systems where data cannot be shared. This often leads to having to invest in new systems or
an infrastructure, which bridges the different systems. In both cases this is both financially
costly as well as disruptive to the efficient running of organizations.
13
skills become unable to secure better-paid jobs and could form an underclass with
potentially dangerous implications for social stability.
2.9 Introduction to Management
The term management is the organization and coordination of the activities of
a business in order to achieve defined objectives. Management is often included as
a factor of production along with machines, materials, and money. According to the
management guru Peter Drucker (1909-2005), the basic task of management includes
both marketing and innovation. Practice of modern management originates from the 16th
century study of low-efficiency and failures of certain enterprises, conducted by the English
statesman Sir Thomas More (1478-1535).
Management consists of the interlocking functions of creating corporate
policy and organizing, planning, controlling,and directing an organization's resources in order
to achieve the objectives of that policy.
The size of management can range from one person in a small organization to hundreds or
thousands of managers in multinational companies. In large organizations, the board of
directors defines the policy which is then carried out by the chief executive officer, or CEO.
Some people agree that in order to evaluate a company's current and future worth, the most
important factors are the quality and experience of the managers.
Management involves the manipulation of the human capital of an enterprise to contribute to the
success of the enterprise. This implies effective communication: an enterprise environment (as
opposed to a physical or mechanical mechanism), implies human motivation and implies some sort
of successful progress or system outcome. As such, management is not the manipulation of a
mechanism (machine or automated program), not the herding of animals, and can occur in both a
legal as well as illegal enterprise and environment. Based on this, management must have humans,
communication, and a positive enterprise endeavor. Plans, measurements, motivational
psychological tools, goals, and economic measures (profit, etc.) may or may not be necessary
components for there to be management. At first, one views management functionally, such as
measuring quantity, adjusting plans, meeting goals. This applies even in situations where planning
does not take place. From this perspective, Henri Fayol (1841–1925) considers management to
consist of six functions:
i. Forecasting
ii. Planning
iii. Organizing
14
iv. Commanding
v. Coordinating
vi. Controlling
2.10 Introduction to System
The word system in its meaning here, has a long history which can be traced back
to Plato (Philebus), Aristotle (Politics) and Euclid (Elements). It had meant "total", "crowd"
or "union" in even more ancient times, as it derives from the verb sunìstemi, uniting, putting
together.
"System" means "something to look at". You must have a very high visual gradient to have
systematization. In philosophy, before Descartes, there was no "system". Plato had no
"system". Aristotle had no "system".
In the 19th century the first to develop the concept of a "system" in the natural sciences was
the French physicist Nicolas Léonard Sadi Carnot who studied thermodynamics. In 1824 he
studied the system which he called the working substance, i.e. typically a body of water
vapor, in steam engines, in regards to the system's ability to do work when heat is applied to
it. The working substance could be put in contact with either a boiler, a cold reservoir (a
stream of cold water), or a piston (to which the working body could do work by pushing on
it). In 1850, the German physicist Rudolf Clausius generalized this picture to include the
concept of the surroundings and began to use the term "working body" when referring to the
system.
One of the pioneers of the general systems theory was the biologist Ludwig von Bertalanffy.
In 1945 he introduced models, principles, and laws that apply to generalized systems or their
subclasses, irrespective of their particular kind, the nature of their component elements, and
the relation or 'forces' between them.
15
continually influence one another (directly or indirectly) to maintain their activity and the
existence of the system, in order to achieve the goal of the system.
All systems have inputs, outputs and feedback mechanisms, maintain an internal steady-
state (called homeostasis) despite a changing external environment, display properties that are
different than the whole (called emergent properties) but are not possessed by any of
the individual elements, and have boundaries that are usually defined by the system observer.
Systems underlie every phenomenon and all are part of a larger system. Systems stop
functioning when an element is removed or changed significantly. Together, they allow
understanding and interpretation of the universe as a meta-system of interlinked wholes, and
organize our thoughts about the world.
16
CHAPTER THREE: DESIGN OF COMPUTERIZED SUPERMARKET
MANAGEMENT SYSTEM
3.1 Challenges of the Existing System
The current system operates manual supermarket management system, from stocks, products,
ordering and purchases etc. recorded in a book. This is faced with errors, incompleteness, and
insufficient data for analysis. Information regarding stocks, products, sales and purchases are
still in black and white which is not properly organized and managed. From the wholesalers
to retailer bills, tickets, vouchers, receipts of products are recorded in a book but further
operations are not being properly handled. As a result it is difficult in processing, updating
and managing.
The factors for these difficulties are:
i. Labor-Intensive: A manual supermarket management systems is that they can be
highly labor-intensive to operate. They require continuous monitoring to ensure that
each transaction is accounted for and that products are maintained at the appropriate
stocking levels. It is also more difficult to share inventory information throughout the
business, because the lack of computerization makes accessing inventory records a
more cumbersome process. The time spent monitoring inventory levels could be used
on more productive activities for the business.
ii. Human Error: A manual supermarket management system relies heavily on the
actions of people, which increases the possibility of human error. People might forget
to record a transaction or simply miscount the number of goods. This results in
needless additional orders that increase the company's inventory carrying costs and
use up precious storage space. Inaccurate physical counts could also result in not
ordering enough of a product, meaning the business could run out of a crucial item at
the wrong time.
17
iii. Time Wasting: A manual supermarket management system has a huge tendency of
time wasting as the sales manager could have a lot to tackle while many customer
seeks attention and this is really affecting the business.
18
iii. Compute more than one item at the same time
Due to the following reason: This project is based on the sales transaction and Stocking of
items in a supermarket.
Observation Method.
This was closely observed that supermarket activities as the customers are served at the
supermarket and how the management carried out its managerial activities. It was found
out that the supermarket indeed was in a need for automation of its activities to realize its
maximum potential. It was also observed that when a customer buy a product all the
details was not well managed by the current manual system, I came up with this system to
clearly address these problems while managing the supermarket.
1. Add staff
Contains a form that the administrator of the system can add a new user of the
supermarket management system as a staff.
2. Registered Staff
Contains the details of all staff (users) of the system
3. Add Item
Contains the form for adding a new item that have been purchase by the supermarket
and kept it in the store of the system.
4. Search Item
Responsible for checking of an item from the store to see if the item is available in the
supermarket
5. Report
Shows all the thing that were purchase in the supermarket. This includes general
reports, such as search by name, by date and print.
19
6. Warehouse
Contains a large store of data accumulated from a wide range of sources within a
company and used to guide management decisions.
7. Logout
It will take the administrator out of the home page of the Admin page in the system
User’s part: Product, Repot and Logout.
1. Product
This is where the staff (user) use to put the details of the purchase item in the
supermarket
2. Report
Shows all the thing that were purchase in the supermarket. This includes general
reports, such as search by name, by date and print.
3. Logout
It will take the staff (user) out of the home page of the user’s page in the system.
System Design is one of the tasking sections of the Programming. In this section of the
project many previews are going to be seen and we are gradually getting close to the new
system. System design is a transition from a user-oriented document to a document oriented
to programmers or database personnel. The system design is structured into the following
parts:
i. Input design
ii. Output design
iii. Database design
iv. System Flowchart
In any organization, institution or any system of operation there is always an input into
the system which keeps a system going, if the input is wrong definitely the output will be
wrong. This design is meant to handle data about a particular product or stock in the
Supermarkets as shown in figure 3.1
Customers Form
20
Surname
Other name
Gender
Occupation
Contact Address
Phone No.
Staff_id
Item_type
Item_name
Item_no
Item_size
Price
21
Item_quantity
Refresh
Total
Figure 3.1
Report
Surname Other_name Gender Occupation Contact_Address Phone_no
Emmanuel Bitrus Male Student Ecwa Goodnews 07064749825
Yusuf Ishaku Male Business Billiri Normal
22
Field Name Data Type Field Size
Id Int 11
Staff Id Varchar 8
First_name Text 15
Surname Text 15
Last_name Text 15
Gender Text 8
Date_of_birth Varchar 15
Department Text 20
Nationality Text 15
State Text 10
Lga Text 10
Email Varchar 50
Year_of_appointment Varchar 12
Qualification Text 15
Password Varchar 15
Passport Mediumblob
Kin_first_name Text 15
Kin_surname Text 15
Kin_last_name Text 15
Kin_nationality Text 15
Kin_state Text 10
Kin_lga Text 10
23
Kin_relationship Text 15
Kin_email Varchar 50
Kin_phone_no Int 15
24
Start
Administrator
Account Add
Account
Delete
Customer
Modify
Customer
Account Clear
Refresh
Logout
Stop
ii. (Most of) it can be easily transformed into the relational schema.
25
Figure 3.3 System ER Diagram
They are usually referred to as behavior diagrams used to describe a set of actions
(use cases) that some system or systems (subject) should or can perform in collaboration with
one or more external users of the system (actors). A use case diagram is a graphic depiction
26
Figure 3.4 System Use Case
3.10 Materials
This has to do with the requirements for the effective functioning of the system this
requirement can be viewed from a hardware and software perspective, the hardware
requirement encompass the physical component that are required and the software
requirement has to do with all that is required from a software level.
27
existing computer systems than technological advancements. A second meaning of the term
of System requirements is a generalization of this first definition, giving the requirements to
be met in the design of a system or sub-system. Typically an organization starts with a set of
Business requirements and then derives the System requirements from there. The most
common set of requirements defined by any operating system or software application is the
physical computer resources. This is often accompanied by a hardware compatibility
list (HCL), especially in case of operating systems. An HCL lists tested, compatible, and
sometimes incompatible hardware devices for a particular operating system or application.
The following sub-sections discuss the various aspects of hardware requirements for this
application software
The hardware required include:
This are requirements specification for a software system, is a description of the behavior of a
system to be developed and may include a set of use cases that describe interactions the users
will have with the software. In addition it also contains non-functional requirements.
Software requirements specification establishes the basis for agreement between customers
and contractors or suppliers (in market-driven projects, these roles may be played by the
marketing and development divisions) on what the software product is to do as well as what it
is not expected to do. Software requirements specification permits a rigorous assessment of
requirements before design can begin and reduces later redesign. It should also provide a
realistic basis for estimating product costs, risks, and schedules.
28
The software requirements specification document enlists enough and necessary requirements
that are required for the project development. To derive the requirements we need to have
clear and thorough understanding of the products to be developed or being developed. This is
achieved and refined with detailed and continuous communications with the project team and
customer till the completion of the software.
29
CHAPTER FOUR: RESULT AND DISCUSSION
4.1 Introduction
Result is something that follows naturally from a particular action, operation or course a
consequences or outcome. Result is actually a output of a particular operation in this
context. This Makay Supermarket Management System will performs many task such as
authentication of user and admin of the supermarket, adding new staff to the supermarket
if a new staff is employed, sales of product to the customers and also the report of the
sales and available product that are in the supermarket will all be seen.
Result
30
Login for Users Interface
31
Users Interface
Product Interface
32
Figure 4.4: Sales Interface
Report Record of Customers and All items that are bought Successful
what they have bought by the customers, the
records are kept for
future referencing.
Table 4.3: Users Report Test
33
Figure 4.5: Users Report
34
Figure 4.6: Administrative Login Page
Add Staff The system will If the staff details are fill Successful
automatically generate Staff appropriately the system
ID number and the staff will prompt Staff
should choose his password successfully added but if
himself which he can be not it will prompt Staff
using to login to the user not successfully added
site and is also responsible
for adding, deleting and
updating staff details
Table 4.5: Add New Staff Test
35
Figure 4.7: Add Staff Form
36
Registered Staff Interface
Add New Item Responsible for adding, If new item added it will Successful
deleting, updating of items prompt item successfully
in the supermarket. added but if not it will
prompt not successfully
added
37
Figure 4.9: Add Items Form
Search Item Search for Available item and if the a item is found Successful
it will prompt the item
found but if not it will
prompt item not found
Table 4.8: Item Search Test
38
Figure 4.10: Available Items
Admin Report List of item that are store in Price, Quantity and Total Successful
the supermarket of each product is here
and many more details.
39
Figure 4.11: Admin Report
Exit Program Close the software If the user or admin click Successful
on exit program it will
prompt to him/her are
you sure want to close
the software and if he
click YES it will exit
him out but if he click
NO he will remain inside
the software
Table 4.10: Close the Software Test
40
Figure 4.12: Close the Program
4.2 Discussion
This phase is the part that puts a planned system into action and examine in details the
analysis and design of the Makay supermarket system. The present phase discusses the
implementation of the system, highlighting the testing exercise and describing some of the
main components of the system's Graphical User Interface. It will give an output from
programming language and other tools used to develop our 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.
Changeover Method
This section deals with the strategy used to change from the old system to the new system.
There are many methods available to swap from the old system to the new system these are
direct changeover, parallel operation, pilot operation and phased operation.
I prefer a parallel operation changeover method for this system change over because this kind
of method requires that both the old and the new information systems operate fully for a
specified period. Data is input to both systems and output generated by the new system is
compared with the equivalent output from the old system. When users, management, and IT
group are satisfied that the new system (MAKAY SUPERMAKET SYSTEM) operates
correctly then the old system should be terminated. It is the most costly changeover method
but it involves lower risks and it is very good.
5.1 Summary
41
5.2 Conclusion
Supermarket Management System has to do with making appropriate effort to stop the rising
problem to all manual supermarket operation in order to enhance the operation of such
supermarket. In this project, the software or system that can be used to aid all supermarkets
that is still operating manually have been successfully developed. The software can be
implementing in all types of supermarket as mentioned. The software has a large memory of
storing all the goods in the supermarket and also keeping record it is highly effective and
accurate.
5.3 Recommendation
In the development of this supermarket management system, I will recommend that if there is
going to be any modification the new writer should endeavor to improve on the limitations
such as inclusion of the billing and data warehouse to further increase the system architecture
and to satisfy users need more for writing of the source code, visual studio 2013 should be
used and MySQL for the database. There are some limitations during the development of this
supermarket management system that will require improvement as stated in previous chapter
writer should put them in mind and face it as a challenge and not a problem.
REFERENCES/BIBLIOGRAPHY
Billington, C., Callioni, G., Crane, B., and Ruark, J.D., et al, (2004). Accelerating the
Profitability of Hewlett Packard’s.
David, F. R. (2009). Strategic management: concepts and cases (11th éd, Rev) New
York USA:
42
DIC Lover. (2009, December 03). Fill data from database in the combobox. Retrieved
from http://www.dreamincode,com
Fleischmann, M., van Nunen, J.A.E.E., and Grave, B., (2003). Integrating Closed-Loop
Supply Chains and Spare-Parts Management at IBM.
Kundan Singh Chouhan. (2013, January 1). How to insert, update and delete data.
Retrieved from http://www.mycode.com/en-us
Linthicum Breugelmans, E., Campob, and K., Gijsbrechts (2006). Supply Chains
Interfaces.
Linthicum: Vol.33, Iss. 6; Frazelle .E. (2009). Supply Chain Strategy: The Logistics of
Supply Chain Management, New York.
Mikael, Svenson. (2010, June 14). How to create a message box with yes or no choice.
Retrieved from http://www.stackcode.com
Monczka, R.M, Trent, RJ. AndHandfield, R.B. (2002). Purchasing and Supply Chain
Management, 2nd éd. South-Western, Cincinnati, Ohio, United States.
Monterrey, and NL MEXICO: McGraw Hill Publishers, California, USA, and New
York. Opportunities for active stock-out management in computerized stores: The
impact of the stock-out policy on computerized stock-out reactions © 2006 New York
University. Published by Elsevier Inc.
Nazhand, Zareei. (2013, April 9). How to validate a password. Retrieved from
http://www.c#corner.com
Pagh, J.D. and Cooper, M.C. (1998). Supply chain postponement and speculation
strategies: how to choose the right strategy, Journal of Business Logistics, Vol. 19.
Patton, M.Q. (1990). Qualitative Evaluation and Research Methods, 2nd edition, New
Bury Park, CA.
Vithal, Wadje. (2013, January 24). Searching a record and displaying in a data grid
viewer. Retrieved from http://www.visualstudio.com/en-us
Wallin, C., Rungtusanatham, M.J., and Rabinovich, E (2006). What is the right
inventory management approach for a purchased item?
43
Zabi, Harshe. (2012, July 23). Tutorials on C#. Retrieved from
http://www.c#tutor.net/c#/
MySqlConnection cn = new
MySqlConnection("datasource=localhost; port=3306;
database=supermarket; username=root; password=''");
try
cn.Open();
user = txtusername1.Text;
pass = txtpassword1.Text;
da.Fill(bb);
if (bb.Rows[0][0].ToString() == "1")
this.Hide();
fm.Show();
return;
else
MessageBox.Show("Username or Password
Incorrect", "PUT THE CORRECT ONE", MessageBoxButtons.OK,
MessageBoxIcon.Error);
txtusername1.SelectAll();
45
txtpassword1.Text = "";
txtusername1.Focus();
txtusername1.SelectAll();
txtpassword1.Text = "";
txtusername1.Focus();
cn.Close();
try
paddstaff.Visible = true;
return;
if (txt12.Text != txt11.Text)
46
{
txt12.Focus();
paddstaff.Visible = true;
return;
MessageBox.Show(string.Format("An error
occurred {0}", ex.Message), "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
try
cn.Open();
47
pbpic.Image.Save(stream,
System.Drawing.Imaging.ImageFormat.Jpeg);
cmd.Parameters.AddWithValue("@pic", pic);
i = cmd.ExecuteNonQuery();
if (i > 0)
clear();
paddstaff.Visible = true;
return;
catch(Exception ex)
finally
if (cn != null)
cn.Close();
showdata();
48
Appendix D: Registered Staff
private void dg1_DoubleClick(object sender, EventArgs e)
try
cn.Open();
textBox1.Text =
dg1.SelectedRows[0].Cells[1].Value.ToString();
txt2.Text =
dg1.SelectedRows[0].Cells[2].Value.ToString();
txt7.Text =
dg1.SelectedRows[0].Cells[3].Value.ToString();
txt8.Text =
dg1.SelectedRows[0].Cells[4].Value.ToString();
cmb1.Text =
dg1.SelectedRows[0].Cells[5].Value.ToString();
dtp1.Text =
dg1.SelectedRows[0].Cells[6].Value.ToString();
cmb2.Text =
dg1.SelectedRows[0].Cells[7].Value.ToString();
cmb3.Text =
dg1.SelectedRows[0].Cells[8].Value.ToString();
cmb4.Text =
dg1.SelectedRows[0].Cells[9].Value.ToString();
cmb5.Text =
dg1.SelectedRows[0].Cells[10].Value.ToString();
txt4.Text =
dg1.SelectedRows[0].Cells[11].Value.ToString();
txt5.Text =
dg1.SelectedRows[0].Cells[12].Value.ToString();
txt6.Text =
dg1.SelectedRows[0].Cells[13].Value.ToString();
txt9.Text =
dg1.SelectedRows[0].Cells[14].Value.ToString();
txt10.Text =
dg1.SelectedRows[0].Cells[15].Value.ToString();
49
txt11.Text =
dg1.SelectedRows[0].Cells[16].Value.ToString();
txt13.Text =
dg1.SelectedRows[0].Cells[18].Value.ToString();
txt14.Text =
dg1.SelectedRows[0].Cells[19].Value.ToString();
txt16.Text =
dg1.SelectedRows[0].Cells[20].Value.ToString();
cmb6.Text =
dg1.SelectedRows[0].Cells[21].Value.ToString();
cmb7.Text =
dg1.SelectedRows[0].Cells[22].Value.ToString();
cmb8.Text =
dg1.SelectedRows[0].Cells[23].Value.ToString();
txt17.Text =
dg1.SelectedRows[0].Cells[24].Value.ToString();
cmb9.Text =
dg1.SelectedRows[0].Cells[25].Value.ToString();
txt18.Text =
dg1.SelectedRows[0].Cells[26].Value.ToString();
txt19.Text =
dg1.SelectedRows[0].Cells[27].Value.ToString();
da.SelectCommand = cmd;
da.Fill(ds, "staffdata");
DataRow myrow;
myrow = ds.Tables["staffdata"].Rows[0];
mydata = (byte[])myrow["passport"];
pbpic.Image = Image.FromStream(stream);
50
paddstaff.Visible = true;
pregisteredstaff.Visible = false;
cn.Close();
}
Appendix E: Add items
private void button17_Click(object sender, EventArgs e)
try
cn.Open();
i = cmd.ExecuteNonQuery();
if (i > 0)
clear();
51
catch (Exception ex)
finally
if (cn != null)
cn.Close();
showdata1();
}
Appendix F: Modify item
private void btnmodify_Click(object sender, EventArgs e)
try
cn.Open();
i = cmd.ExecuteNonQuery();
if(i>0)
clear();
}
52
catch (Exception ex)
finally
if (cn != null)
cn.Close();
showdata1();
try
cn.Open();
i = cmd.ExecuteNonQuery();
if (i > 0)
clear();
53
MessageBox.Show(string.Format("An error occurred
{0}", ex.Message), "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
finally
if (cn != null)
cn.Close();
showdata1();
}
Appendix H: Search item
private void comboBox4_SelectedIndexChanged(object sender, EventArgs
e)
try
if (comboBox4.SelectedItem.ToString() == "additems")
dg2.DataSource = dtadd;
else
dg2.DataSource = dv;
54
MessageBox.Show(string.Format("An error occurred
{0}", ex.Message), "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
clear();
try
cn.Open();
i = cmd.ExecuteNonQuery();
if (i > 0)
clear();
da.Fill(ds);
55
MessageBox.Show(string.Format("An error occurred
{0}", ex.Message), "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
finally
if (cn != null)
cn.Close();
showdata2();
showdata3();
void showdata2()
try
da.SelectCommand = cmd;
dtcustomer.Clear();
da.Fill(dtcustomer);
dataGridView1.DataSource = dtcustomer;
dataGridView1.Columns[9].Width = 80;
clear();
56
}
cn.Close();
Report
void showdata3()
try
da.SelectCommand = cmd;
dtreport.Clear();
da.Fill(dtreport);
dataGridView2.DataSource = dtreport;
dataGridView2.Columns[14].Width = 80;
clear();
cn.Close();
57