Beruflich Dokumente
Kultur Dokumente
Project Context
People in this generation have their own gadgets almost every company uses
technology for them to utilize. PC is the most popular and used in our today’s technology.
Many Companies prefer using technologies to speed up their process and works but some
small companies doesn’t bother using it not because they can’t afford it but because it’s a
little hard to explain and understand especially for workers who don’t have experience on
it.
Technologies is important not just for companies but also for our daily lives and it
is also very useful in other activities like making purchases, communication, shopping
etc. Many job opportunities require a solid foundation and knowledge for and without it,
the world will still have no progress in trend nowadays like computers, smartphones, and
TVs.
Majority of the people are aware that computers are important part in our life in
this generation of technology. However, some of them cannot utilize the potential of
having computer. They use it for e-mail, social media, games and entertainment. Many
people used it for gaming, but in what way will it affect their work and speed in progress.
faster
1
With the use of Easy to understand and simple system, even workers who do not
have high knowledge about computer will easily use the system, the proposed application
will make manufacturing and ordering faster and more reliable than ever.
The system is type of program which joins two types of system into one since the
target company involved in this kind transaction having them into one system will greatly
benefit not just the owner but also the employees that will make the job easier.
This software has been made because the company still uses the old type of
transaction which is the use of paper, with a big company like this using papers for
transaction is hard since it was only stored in a certain areas. Also is prone on natural
Having this type of system will save a lot of work especially on writing things in
paper also more secure since it’s online and lower the chance of losing it since it’s on
Using computerized sales and inventory systems allows for much greater
between employees as transactions are processed and items move from the business to
the consumer. Computerized transactions help provide better insight into which products
are most popular. It also allows for enhanced marketing, stocking and oversight of critical
sales objectives.
2
Computerized sales and inventory systems save time for businesses by speeding
up transactions while raising accuracy. This allows for confidence in accounting and
accountability among employees as it is easy to verify how much money and what time
In using this computerized sales and inventory system you can establish the
benefits you and your business handling may have. First is time savings. The amount of
time that can be saved by a business is perhaps the biggest benefit of using a
computerized inventory system. In cases where a shop maintains all data manually, its
manager must reconcile each sales receipt with every piece of physical inventory.
Depending on the size of the establishment and how many different products are sold,
this can be a daunting and time consuming task. However, used of an inventory system,
the master inventory list would be updated electronically each time a sale is made.
The company Tata Simeon Quality is managed by small manpower. The business
sells different sizes of items. Like some other store, the business does their physical
counting of stocks manually. Technically, the company is only using a manual system that
may cause to duplication of documents and work redundancy. The business is just
depending on their manual listing of products and inputs of data which is possible to
commit errors. The business can’t view their proper records of sales or income in a given
time of the year. It also doesn’t have its proper listings of product.
3
Objectives of the Project
The proponents now endorse our proposal which can help to implement good and
accurate system to the company. The proponents gave their best to satisfy the current
needs of the business by making a computerized sales and inventory system that will help
them in their business. Develop and implement computerized sales and inventory system
Specific Objectives
The proponents proposed system for the company can do stock maintenance,
To design, develop and implement a module that will handle the security for the
system.
User Accounts – this contains the function for adding, and editing user name and
password. (Of course the authorized user can only be the one using the system.)
To design, develop and implement a file maintenance module that will handle the
4
Products - it contains all the record of adding of products.
design, develop and implement a sales module that will handle the sales transaction of
their company.
Purchased Order - a module that handles generating of purchase ordered for the
Return Order – list of items buys by the customer to the business but needed to
be return because of some damage product and must change with new ones but this must
Transaction History – list of transaction that happen during purchased order, will
include time and date the price and how many items are bought.
To design, develop and implement an inventory module that will handle the
inventory of products. All items that are available in the company are monitored by the
Critical level – items that are low on stock will be monitored by the system in
Reports – this includes all the history that has been made in the system.
5
Destroyed Order – list of items that have been damage or destroyed in
unavoidable circumstances
Earnings – Includes the cash in, cash out, loss and total earning of the company
Limitations
Chapter 2
6
Local
Based on the research entitled “Computerized Sales and Inventory system for Ronmon
Trading” (de Alday, Espino, Ragudo, 2010), the replacement of the manual system with the
proposed system provided more efficient and accurate processing of transaction. The said system
is much reliable, eliminated errors and inaccurate information, and provided integrity valuable
reports.
(October, 2009). The process of counting the sacks of rice is done manually, which corresponds to
inventory list of records remains as one of their key problem since the establishment of the
business. The transaction processing system for Best Choice Rice Dealer will minimize the
difficulty of owner in processing inventory. It will monitor the availability of product items for
reorder to prevent under stocking, overstocking or running out of stocks, the system will also
the society particularly in business and marketing is the computerized system. This system
enables us to make every detailed work and follows accurate directives without error. This study
is prepared for the implementation of the Sales Inventory System in Borderless Hub Philippines,
Inc. located in Rm. 306-307 Pink Walters Building Quimpo Boulevard, Davao City. In order to
know the problem, we conducted an interview with the managing team for sales, billing, and
7
inventory. This led us to problems like the manual time-consuming record of documents, billing
organized which means that they can process much more quickly than humans. Data retrieval has
to be searched in lots of registers slowly and it wastes a lot of time. The current system that the
company uses is manual receipt recording. It makes the data not reliable enough as it is
handwritten and there is a high probability of errors to occur. Data recording consumes a lot of
space since it is stored in cabinets and folders. It is also prone to data loss where it could be
factory at any given time. The employees need to know how many units of their products are
available for reservation and sales and the items that are sold. All of these rely on the inventory
system to present solutions. The sales inventory system would provide service to the user, input
information to the database, summarize the inquiry of bills, and manage the product releases and
storage. This would generate a faster improvisation of work given less time and effort.
major role. It makes the work easier, faster and more accurate. Due to that fact, the automated
scheme has become essential to small and big companies for they are expected to give the best
services possible. Nevertheless, some businesses still prefer sticking with the system that is not
integrated with technology. Probable causes are computer illiterate staff and lack of funds.
Companies, especially the big ones are recommended to switch from manual to automated
systems because this will improve the efficiency and productivity of the business which will
and inventory system which comes hand in hand. A purchasing and inventory system is very
8
important in every organization because a good purchase and inventory management can create
excellent productivity. Primarily, inventory work consists of input, output and restock. Input is a
process of buying new products into the inventory and replacing the old products with the new
ones. Meanwhile, output is a procedure of taking out the products from the inventory for sales
or usage and refill is a process of increasing the number of existing products in the inventory in
order to fulfill the insufficient products or escalating demands. Most of the retailing market is
using traditional way in the inventory management system where a person is assigned to
check and record the stock by hand using pen and paper. It is where operations with regards to all
counting products, stocks and computing inventory summary will be the system job. It will
monitor the availability of products, items to prevent under stocking, over stocking and running
out of stock. The system will also simplify the transaction between dealer and supplier
relationship because of the updated supplier information and price list of items will correspond to
Related Literature
Foreign
(Almeda, Dañez, Geronimo), the proposed system are not just only accurate, reliable, and fast in
processing transactions rather it is also provided more systematic way of transacting with the
9
members and through the billing system also helped the employees to save a lot of time on
transaction processing.
anything necessary to do business” (U.S. Small Business Administration, 2010). The U.S. Small
balancing cost versus benefits of inventory, including maintaining a wide assortment without
spreading the rapidly moving items too thin, increasing inventory turnover without sacrificing
service, keeping stock low without sacrificing performance, obtaining lower prices bymaking
Under the Korean Red Ginseng Enterprise Sales and Inventory System, the researchers
came up with a computerized sales and inventory system. The proponents used database to easy
access of files and for easier and faster processing of the selling and inventory transaction. The
program was designated to generate reports such as monthly reports, inventory reports, sales
invoice and list of items. In connection with the proposed system, the proponents proposed a new
and faster way of processing business transactions. The system also helped the user to know the
availability of the products. It also helped the manager to monitor the stocks and to get immediate
study. It also gives the proponents ideas to create the proposed system’s reports in online sales
10
and inventory system. Automation is mandatory, thus automated report generation for precise
2009) states that business nowadays takes the advantage of using modern technology to improve
their status and ensuring an efficient and newer way to make their work easier. They state that the
main problem of the Osaka Iridology is what modern effective tool must be use in creating and
developing a sales and inventory system that will manage efficiently their transaction. So they
develop a system that inclusively for the transaction of Osaka Iridology, such as monitoring of
(Almeda, Dañez, Geronimo), the proposed system are not just only accurate, reliable, and fast in
processing transactions rather it is also provided more systematic way of transacting with the
members and through the billingsystem also helped the employees to save a lot of time on
transaction processing.
Chapter 3
Technical Background
11
Description of the System
The system is proposed for the Tata Simeon Quality which is located in Paombong,
Bulacan. The system will feature an easy to use system that comes up with a user-friendly
interface that enables the admin or the personnel that will use it to click navigation bars which has
respective functions such as Inventory wherein they can check the availability of the products, the
admin can also add or delete product in this tab. And the Ordering tab, in this tab the system will
show all the product and the user will just choose the quantity on how many product they want
and the system will automatically sum all the price, this depends on what products the customers
had ordered, which will lead to the next tab the Transaction History tab where it shows all the
product that has been sold, including the quantity and the price of the product. Lastly is the User
Tab wherein only the admin users can access, in this tab the admin can add and delete new users
for the new personnel. There will also be a reservation tab, if the costumer asks for reservation for
Hardware Requirements
Since the store uses the old manual system, they need to provide a computer for the
computerized system that we proposed to them. The computer should have at least 2.4 GHz dual
core processor, 4 GB worth of RAM, 80 GB hard drive. This will be use for the necessary data
storage to store data from current users and future users. This will also be enough for the required
minimum for said program. Since it is a computerized system it doesn’t recommend internet
Software Requirements
The programming language that will be use to this system is Visual Basic 6.0 which is
developed by Microsoft because it is one of the most used and easiest programming language
12
when it comes to making form applications. And we will be using MySQL as our database for
uses a graphical user interface to choose and modify preselected section of code written in the
Implementation Plan
With this the proposed project is complete, the program will now be completed by
selected Programmer accompanied by the Project Manager to ensure that the propose system will
be followed. The manager will also report all the status to other member so they can give their
opinion whenever and also can make changes if there is any need for upgrade. Also one of the
member will be needed for ensuring that the system will work on every testing phase and check if
there is a bug that needs to be fix. And with this the Implementation plan will commence.
population of 53,294 as of 2018, the proposed project will also be valid at other neighboring
Development Model
13
Figure 1 Waterfall Development Model
The Waterfall Development Model will be implemented in developing the Inventory and
Ordering System for Tata Simeon’s Quality. The system development model is composed of 6
phases namely:
14
Phase 1 – User Requirements, in this phase we interview the owner to learn their business process
on how each transaction flow, also in here we learn that we need to put an inventory system that
Phase 2 – Design, in this phase we brainstorm on how we put things in the system. Each of us
suggested a specific design and vote in which is the best option to put in the system.
Phase 3 – Coding, this phase our assigned programmer creates all the images us groupmates had
put into place. This also include the design of the system to be functional.
Phase 4 – Integration, us members will be checking the errors in this phase we will test the
Phase 5 – Deployment, “beta phase” the phase where we let the client check the system and check
Phase 6 – Maintenance, things that needed to change, any suggestion or upgrade that needs to be
15
Project Design and Analysis
Use Case
16
Context Diagram
17
System FlowChart
Figure 4 (FlowChart)
18
Figure 4.1 (Products)
19
Figure 4.2 (Categories)
20
Figure 4.4 (Logs)
21
Database Design
Data Dictionary
Table 1 – category
22
name Varchar(255) Product category name
Table 2 – logs
PK id Integer(11) Product ID
FK category_id Integer(11) Product category ID
Table 4 – cart
23
Key Name Data type Description
PK id Integer(11) Transaction ID
cart_id Integer(11) Cart ID
pchange Float
handler Varchar(255) Name of personnel
FK id Int(11) ID of user
username Varchar(255) Username of user
24
User Interface (Prospective)
Inventory Tab
25
Ordering Tab (Suka)
26
Transaction History
27
Schedule and Timeline
28
Verification, Validation and Testing
After the coding is done, Testing for bugs and compatibly will be conducted to ensure
that the system is running properly. Several test will be prepared to confirm if the proposed
features are followed. Checking and cleaning for code errors will be done, also testing the
program at rough condition will be done to ensure the stability of the program.
Each tab will be check for errors and glitches that can happen in the system, any glitches
that have been missed during the checking will be removed. And will also let some people try it
29
Chapter 4
Table 7. “Respondents”
Client 1 10%
Personnel 2 20%
IT Expert 3 30%
Users 4 40%
Total 10 100%
The subject of the study will comprise Client, Personnel, IT Experts, and Users. The data
Research Instrument
Evaluation sheets will be used as the instrument of the data gathering in this study.
The evaluation sheets will determine how acceptable the proposed system is.
system that will gather the detailed requirements, design and analysis, implementation
30
and development testing, and evaluation. It will help the software developer to
summarize all the data that gathered through conducting several steps and add more
Data Gathering
The researchers will distribute evaluation sheets to the people that will participate in
the survey to gathered data that will be tallied. The evaluation sheets will determine how
The study will utilize statistical test such as weighted mean to determine how acceptable
the proposed system is. Data will be analyzed, interpreted and presented in tables and
tables and graphical forms. The easiest way to do this through the measures of mean.
These will help the researchers to explain how the data are concentrated.
Rating
Scale Range
31
2 Limited in Acceptability 1.5 - 2.49
Criteria Indicator
system. Evaluation on the basis of the identified criteria to determine system acceptability
was sought from 1 Client, 2 Personnel, 3 IT Expert, and 4 Users. The result of the
32
Table 10 “Tata Simeon Quality Inventory System in terms of performance”
Evaluation Ratings
In Weighted Means
Mean of
Performance Weighted Interpretation
IT Expert Users Means
Client Personnel
Table 10 shows that the Inventory System in terms of Performance is Very Acceptable
because of the all the users, IT expert and the client is satisfied in the performance of the
33
Table 11 “Tata Simeon Quality Inventory System Security”
Evaluation Ratings
Overall weighted
4.5 4.25 4.5 4.5 4.43 Acceptable
mean
Table 11 shows that the Inventory System in terms of Security is Acceptable because of
the client is verified to secure the account can edit the personal information of the
personnel. The admin account is the only one can edit the personnel profile and the
34
Table 12. “Tata Simeon Quality Inventory System Usability”
Evaluation Ratings
Overall weighted
4 4.75 4.49 4.5 4.43 Acceptable
mean
Table 12 shows that the Inventory System in terms of Usability is Acceptable because all
the buttons are well organized and the all of item information need is easy to find.
35
Table 13. “Tata Simeon Quality Inventory System Interface Adequacy”
Evaluation Ratings
Interface meet
Very
the personal 5 4.5 4.66 4.5 4.66
acceptable
standard
Table 13 shows that the Inventory System in terms of Interface Adequacy is very
acceptable because all of them take this survey and take chance to try our system their
standard in the interface is almost get the standard and standard requirements and it is
36
Table 14. “Tata Simeon Quality Inventory System Standard”
Evaluation Ratings
Meets the
4 4.5 4 4.5 4.25 Acceptable
standard required
Overall weighted
4 4.5 4 4.5 4.25 Acceptable
mean
Table 14 shows that the Inventory System in terms of Standard is Acceptable because of
our panel give us the required standard in research system and the client, user and IT
37
Table 15. “Tata Simeon Quality Inventory System Functionality”
Evaluation Ratings
The functions of
the system are 4 4.5 4.33 4.25 4.27 Acceptable
reliable
Overall weighted
4 4.5 4.33 4.25 4.27 Acceptable
mean
Table 15 shows that the Inventory System in terms of Functionality is Acceptable because
of the panel required function to our research system is almost meet the all required
requirements and our client meet the functionality what they want to the system that’s
38
Table 16 “General Weighted Means”
The table 16 Presents the summary of the weighted means and description of the six
indicators of the developed system. From its table, it can be seen that four indicators were
given the highest ratings of 4.66, and 4.61 for the Interface Adequacy and Performance.
High weighted mean of 4.66 for the Interface Adequacy were computed for the system. It
can be said as a whole the evaluators agree that the system is very acceptable as shown
39
Chapter 5
manage stocks of items, information of the different item in stocks and the amount
available. Inventory and Ordering System is the study of people, technology, and
organizations. Information isn’t worth much if it doesn’t serve any purpose. So, the study
is focused on the development of the proposed Inventory and Ordering System for Tata
Simeon Quality. It is located at Paombong Bulacan. The Shop has 1 owner and 2
Assistant. Their works are done manually, from selling items, to files and record keeping.
and tested incrementally (a little more is added each time) until the product is finished. It
involves both development and maintenance. The product is defined as finished when it
satisfies all of its requirements. This method is appropriate for the development of the
system, as this generates working software quickly and early during the software life
cycle, more flexible as it would cost less to change scope and requirements, easier to test
40
Summary of Findings
The major focus of the project was the development of a Inventory and Ordering
System for Tata Simeon Quality that will provide a venue for buyers and our owner and
assistant to interact primarily for selling items and checking their stocks. The project
Problem 1: What were the current systems being used by the Tata Simeon Quality to
Currently, Tata Simeon Quality provides a manual files and record keeping, and
Problem 2: How was the model used in the development of the proposed Inventory
the said system. Incremental model is a method of software development where the
product is designed, implemented and tested incrementally (a little more is added each
time) until the product is finished. It involves both development and maintenance.
This method is appropriate for the development of the system, as this generates
working software quickly and early during the software life cycle, more flexible as it
would cost less to change scope and requirements, easier to test and debug, and so
41
Problem 3: What were the features of Inventory and Ordering System, for Tata
Simeon Quality?
The system is divided into two, one for the admin/owner and assistant/personel
User Interface. The admin UI contains Products, Categories, Transact, Earnings and
Logs. Products shows the product list of the company and also the add, delete and
updates of the products. Categories is where the list of the categories and description of
the items are show and divided. Transact is where the ordering system occurs, this is
where the owner sells the items and calculates that total amount that needed to pay.
Earning is where the total earning of the shop is totaled. Logs show the history of each
Problem 4: How acceptable was the proposed system in terms of the following:
a. Performance
b. Security
c. Usability
d. Interface Adequacy
e. Standard
f. Functionality
Six indicators were given the highest ratings of 4.66, 4.61, for the interface
adequacy and performance. These are described as very acceptable. On the other hand,
high weighted means of 4.43, 4.43, 4.25, and 4.27 for the security, usability, standard and
functionality which are described as acceptable. It can be said that as a whole, the
evaluators agree that the system is acceptable as shown by the computed general
42
Conclusions
On the basis of the aforementioned findings the following conclusions were derived:
1. Tata Simeon Quality provided a manual way of recording and stocks keeping
for their item records, and ordering items. They use filing cabinets to separate
the categories of the documents, and another separation for each product items.
2. Features of the system included a secure login, this provided the users access to
the website and use its functions. This system is divided into two, one UI for the
Incremental Method and was found to be the most effective and efficient in
Recommendations
In the light of the findings and conclusions of the study, the following are
recommended:
1. The proposed system developed the Inventory and Ordering System be utilized
43
3. Keep a physical copy of all the item stocks, just in-case of some data loss and
malfunctions.
BIBLIOGRAPHY
(de Alday, Espino, Ragudo, 2010), Retrieved November 20, 2018 from
https://www.academia.edu/30725705/CHAPTER_2_RELATED_LITERATURE_AND_STUDIE
S_Computer-Based_Inventory_System
Bisagas, Arivada, and Tanteo (October 2009) Retrieved November 20, 2018, from
https://blablawriting.com/inventory-system-for-best-choice-rice-dealer-essay
44
StudyMode.com (2012) Retrieved November 20, 2018 from
https://www.academia.edu/16863814/Sales_and_Inventory_System_Thesis_Document
ation
Averion, Gaela, and Libo (2009) Retrieved November 20, 2018 from
https://www.coursehero.com/file/p48nnj60/Third-the-risk-of-fraud-any-computerized-
system-carries-the-risk-of-intrusion/
U.S. Small Business Administration (2010) Retrieved November 20, 2018 from
https://www.bartleby.com/essay/Foreign-Literature-PKYW429KRZYA
Korean Red Ginseng Enterprise Retrieved November 20,
2018 From https://www.scribd.com/doc/124653038/Inventory-System
“Osaka Sales and Inventory System” Retrieved November 20, 2018 from
https://studymoose.com/foreign-and-local-studies-essay
45
Appendices
Appendix A
46
Appendix B
47
System Evaluation Sheet
The researchers are conducting a survey to know if the proposed system meets the following
criteria. Kindly evaluate the proposed system in comparison to the existing system according to Accuracy,
Efficiency, Reliability, Security, User-Friendliness and Functionality
Rating
Criteria Indicator
1 2 3 4 5
______________________________
Signature
Appendix C
48
Figure 8 (Sample Input)
this page is how transaction in the system occurs.
Appendix D
49
Figure 9 (Login Page)
This is the login page. This page is where you enter the registered username and
This is the tab where the owner views the product list.
50
Figure 9.2 (Category Tab)
This tab shows on where you can update the selected product.
51
Figure 9.4 (Admin Profile)
This is the index for the admin page that shows the profile for the admins.
52
Figure 9.6 (Transaction History)
This form of show the logs that have been made in the system.
53
Figure 9.8 (Loss Tab)
Appendix E
54
Appendix F
55
Main.vb PanelUsers.Show()
RefreshUserView()
Imports MySql.Data.MySqlClient End Sub
Imports System
Imports System.Diagnostics Private Sub Main_Load(sender As Object, e As EventArgs)
Imports System.IO Handles MyBase.Load
Imports PdfSharp Me.CenterToScreen()
Imports PdfSharp.Drawing RefreshProdView()
Imports PdfSharp.Pdf PanelInventory.Location = New Point(215, 143)
Imports MigraDoc.DocumentObjectModel PanelCategories.Location = New Point(215, 143)
Imports MigraDoc.Rendering PanelLogs.Location = New Point(215, 143)
PanelTransact.Location = New Point(215, 143)
Public Class Main PanelEarnings.Location = New Point(215, 143)
Public Shared varSelected As String = "" PanelUsers.Location = New Point(215, 143)
Public Shared varProdSelected As String Hidepanel()
Public Shared varCartSelected As String = ""
Public Shared varTransactSelected As String = "" End Sub
Public Shared varCategory As String = ""
Public Shared varUserSelected As String = "" Sub Hidepanel()
Public Shared varFrom, varExist As Integer PanelInventory.Hide()
Public Shared varInputq, varQuan, varCartQuan PanelCategories.Hide()
Dim vartotal, varAmount, varChange As Integer PanelLogs.Hide()
PanelTransact.Hide()
Private Sub btnProd_Click(sender As Object, e As PanelEarnings.Hide()
EventArgs) Handles btnProd.Click PanelUsers.Hide()
Hidepanel() End Sub
PanelInventory.Show()
RefreshProdView() Private Sub btnAddProd_Click(sender As Object, e As
End Sub EventArgs) Handles btnAddProd.Click
Me.Hide()
Private Sub btnCategories_Click(sender As Object, e As addProduct.Show()
EventArgs) Handles btnCategories.Click End Sub
Hidepanel()
PanelCategories.Show() Public Sub RefreshCategview()
RefreshCategview() Dim query1 As String
End Sub Try
DbFunction.Connect()
Private Sub btnLogs_Click(sender As Object, e As
EventArgs) Handles btnLogs.Click query1 = "select id as 'Category ID', name as 'Category
Hidepanel() Name' from tbl_category order by id ASC"
PanelLogs.Show() dtgCategories.DataSource =
RefreshLogview() DbFunction.ExecAdapter(query1)
End Sub dtgCategories.ClearSelection()
DbFunction.Close()
Private Sub btnTransact_Click(sender As Object, e As Catch ex As Exception
EventArgs) Handles btnTransact.Click MsgBox(ex.Message)
Hidepanel() Finally
PanelTransact.Show() DbFunction.Dispose()
RefreshTransactProdView() End Try
RefreshTransactNo() End Sub
RefreshCartView()
RefreshTotal() Public Sub RefreshProdView()
End Sub Dim query1 As String
Try
Private Sub btnEarnings_Click(sender As Object, e As DbFunction.Connect()
EventArgs) Handles btnEarnings.Click
Hidepanel() query1 = "select tbl_prod.id as 'Product ID',
PanelEarnings.Show() tbl_category.name as 'Category Name', tbl_prod.name as
RefreshEarnings() 'Product Name', tbl_prod.quantity as 'Quantity',
RefreshTotalEarnings() tbl_prod.price as 'Price', tbl_prod.description as 'Description'
End Sub from tbl_prod inner join tbl_category on
tbl_prod.category_id =tbl_category.id order by tbl_prod.id
Private Sub btnUsers_Click(sender As Object, e As ASC"
EventArgs) Handles btnUsers.Click dtgProd.DataSource =
Hidepanel() DbFunction.ExecAdapter(query1)
56
dtgProd.ClearSelection() DbFunction.Close()
DbFunction.Close() Catch ex As Exception
Catch ex As Exception MsgBox(ex.Message)
MsgBox(ex.Message) Finally
Finally DbFunction.Dispose()
DbFunction.Dispose() End Try
End Try End Sub
End Sub
Public Sub RefreshCartView()
Dim query1 As String
Public Sub RefreshLogView() Try
Dim query1 As String DbFunction.Connect()
57
End Sub Catch ex As Exception
MsgBox(ex.Message)
Public Sub RefreshUserView() Finally
Dim query1 As String DbFunction.Dispose()
Try End Try
DbFunction.Connect() Else
RefreshProdView()
query1 = "select id as 'User ID', username as End If
'Username', user_type as 'User Type', name as 'Name', tel End Sub
as 'Telephone Number', email as 'Email', status as 'Status'
from tbl_users where id != " & Login.actID & " and status != Private Sub btnAddQuan_Click(sender As Object, e As
'Archived' order by id ASC" EventArgs) Handles btnAddQuan.Click
dtgUsers.DataSource = Dim varTbl, varPk, varVal, varLog As String
DbFunction.ExecAdapter(query1)
dtgUsers.ClearSelection() Try
DbFunction.Close() varInputq = Integer.Parse(InputBox("Enter Quantity",
Catch ex As Exception "Add Quantity"))
MsgBox(ex.Message)
Finally Try
DbFunction.Dispose() DbFunction.Connect()
End Try Dim VarUpdatedq As Integer = 0
End Sub VarUpdatedq = Integer.Parse(varQuan) +
Integer.Parse(varInputq)
Private Sub Button11_Click(sender As Object, e As varTbl = "tbl_prod"
EventArgs) Handles Button11.Click varVal = " quantity = " & VarUpdatedq.ToString
updateProd.Show() varPk = "id = '" & varSelected & "'"
Me.Hide() varLog = "'Product','" & Login.actUser & " Updated
End Sub Quantity to " & VarUpdatedq.ToString & "(added " &
varInputq & ") for Product ID " & varSelected & "', '" &
Private Sub dtgProd_CellClick(sender As Object, e As System.DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss tt")
DataGridViewCellEventArgs) Handles dtgProd.CellClick & "'"
If e.RowIndex = -1 Then
Return DbFunction.Updatedb(varTbl, varVal, varPk)
Else DbFunction.InsertLog(varLog)
varSelected = DbFunction.Close()
dtgProd.SelectedRows(0).Cells(0).Value.ToString varInputq = 0
varQuan = varQuan = 0
dtgProd.SelectedRows(0).Cells(3).Value.ToString
End If RefreshProdView()
End Sub MsgBox("Successfully Added Quantity")
58
varPk = "id = '" & varSelected & "'" ElseIf cmbLogS.Text = "Category" Then
varLog = "'Product','" & Login.actUser & " varTbl = "category"
Updated Quantity to " & VarUpdatedq.ToString & "(deducted ElseIf cmbLogS.Text = "Description" Then
" & varInputq & ") for Product ID " & varSelected & "', '" & varTbl = "description"
System.DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss tt") Else
& "'" varTbl = "date"
End If
DbFunction.Updatedb(varTbl, varVal, varPk) Try
DbFunction.InsertLog(varLog) DbFunction.Connect()
DbFunction.Close()
varInputq = 0 query1 = "select id as 'Log ID', category as
varQuan = 0 'Category', description as 'Description', date as 'Date' from
RefreshProdView() tbl_logs where " & varTbl & " LIKE '%" & txtLogS.Text & "%'
MsgBox("Successfully Deducted Quantity") order by id ASC"
dtgLogs.DataSource =
Catch ex As Exception DbFunction.ExecAdapter(query1)
MsgBox(ex.Message)
Finally DbFunction.Close()
DbFunction.Dispose() Catch ex As Exception
End Try MsgBox(ex.Message)
Else Finally
MsgBox("Invalid input") DbFunction.Dispose()
End If End Try
Catch ex As Exception Else
MsgBox("Invalid input") RefreshLogView()
End Try End If
End Sub End Sub
59
Dim table, row, values, cid, pname, pprice, pquan As MsgBox("Added to Cart")
String DbFunction.Close()
Dim inputq, ptotal, varUpQuan As Integer
Dim res As MySqlDataReader RefreshCartView()
RefreshTransactProdView()
Dim query1, query2, query3 As String RefreshTotal()
varProdSelected = ""
Dim flag1 As Boolean Catch ex As Exception
MsgBox(ex.Message)
Try End Try
If varProdSelected <> "" Then Else
DbFunction.Connect() MsgBox("Insuffucient Quantity")
query1 = "select count(prod_id) from tbl_cart End If
where prod_id = " & varProdSelected & " and id = " & Else
txtTransact.Text MsgBox("Enter valid input for quantity")
varExist = DbFunction.ExecScalar(query1) End If
If varExist = "0" Then Else
DbFunction.Close()
query2 = "select * from tbl_category where name CartAddQuantity()
= '" & varCategory & "'" End If
res = DbFunction.ExecReader(query2) Else
If res.Read Then MsgBox("Select Product to Add")
cid = res.GetString(0) End If
res.Close() Catch ex As Exception
Else MsgBox(ex.Message)
MsgBox("Invalid") Finally
Exit Sub DbFunction.Dispose()
End If End Try
End Sub
query3 = "select * from tbl_prod where id = " &
varProdSelected Private Sub dtgProdT_CellClick(sender As Object, e As
res = DbFunction.ExecReader(query3) DataGridViewCellEventArgs) Handles dtgProdT.CellClick
If res.Read Then If e.RowIndex = -1 Then
pname = res.GetString(2) Return
pprice = res.GetString(4) Else
pquan = res.GetString(3) varProdSelected =
res.Close() dtgProdT.SelectedRows(0).Cells(0).Value.ToString
Else varCategory =
MsgBox("Invalid") dtgProdT.SelectedRows(0).Cells(1).Value.ToString
Exit Sub End If
End If End Sub
Try
inputq = Integer.Parse(InputBox("Enter
Quantity", "Quantity")) Private Sub btnVoid_Click(sender As Object, e As
Catch EventArgs) Handles btnVoid.Click
flag1 = True Dim result As DialogResult = MessageBox.Show("Are
End Try you sure you want to void this product?", "Void Product",
MessageBoxButtons.YesNo)
If flag1 = False Then
If inputq <= pquan Then If result = DialogResult.Yes Then
ptotal = Integer.Parse(pprice) * inputq varFrom = 3
varUpQuan = Integer.Parse(pquan) - inputq EnterPassword.Show()
Else
DbFunction.Updatedb("tbl_prod", " quantity
= " & varUpQuan.ToString, "id = '" & varProdSelected & "'") End If
End Sub
table = "tbl_cart"
row = "id, prod_id, category_id, prod_name, Private Sub btnAddQCart_Click(sender As Object, e As
quantity, price, total" EventArgs) Handles btnAddQCart.Click
values = txtTransact.Text & ",'" & CartAddQuantity()
varProdSelected & "'," & cid & ",'" & pname & "'," & End Sub
inputq.ToString & "," & pprice.ToString & "," & ptotal.ToString
& "" Private Sub btnDeductQCart_Click(sender As Object, e As
Try EventArgs) Handles btnDeductQCart.Click
DbFunction.Insertdb(table, row, values) Dim res As MySqlDataReader
60
End Try
Dim query1, pquan, pprice As String
Dim inputq, ptotal, varUpQuan, varUpCartQuan As End Sub
Integer
Dim flag1 As Boolean Private Sub btnCheckout_Click(sender As Object, e As
inputq = 0 EventArgs) Handles btnCheckout.Click
ptotal = 0 Dim table, row, values, varLog, query1 As String
varUpQuan = 0 Dim hasProduct As Integer
Try Dim flag1 As Boolean
If varCartSelected <> "" Then varAmount = 0
varChange = 0
DbFunction.Connect() Try
DbFunction.Connect()
query1 = "select * from tbl_prod where id = " & query1 = "select count(prod_id) from tbl_cart where
varCartSelected id = " & txtTransact.Text
hasProduct = DbFunction.ExecScalar(query1)
res = DbFunction.ExecReader(query1)
If res.Read Then If hasProduct <> "0" Then
pquan = res.GetString(3) Try
pprice = res.GetString(4) varAmount = Integer.Parse(InputBox("Enter
res.Close() Amount", "Checkout"))
Else Catch
MsgBox("Invalid") flag1 = True
Exit Sub End Try
End If
If flag1 = "False" Then
Try If varAmount >= vartotal Then
inputq = Integer.Parse(InputBox("Enter Quantity", varChange = varAmount - vartotal
"Quantity"))
Catch table = "tbl_transact"
flag1 = True row = "id, cart_id, totalprice, cashtendered,
End Try pchange, handler, date"
values = txtTransact.Text & "," &
If flag1 = False Then txtTransact.Text & "," & vartotal & "," & varAmount & "," &
If inputq <= varCartQuan Then varChange & ",'" & Login.actUser & "','" &
varUpQuan = Integer.Parse(pquan) + inputq System.DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss tt")
& "'"
varUpCartQuan = Integer.Parse(varCartQuan) -
inputq varLog = "'Transaction','" & Login.actUser & "
ptotal = Integer.Parse(pprice) * varUpCartQuan Processed Transaction No " & txtTransact.Text & "', '" &
DbFunction.Updatedb("tbl_prod", " quantity = System.DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss tt")
" & varUpQuan.ToString, "id = '" & varCartSelected & "'") & "'"
DbFunction.Updatedb("tbl_cart", " quantity = "
& varUpCartQuan & ", total = " & ptotal, "prod_id = '" & DbFunction.Insertdb(table, row, values)
varCartSelected & "'")
DbFunction.InsertLog(varLog)
DbFunction.Close()
DbFunction.Close()
RefreshCartView()
RefreshTransactProdView() PrintReceipt()
RefreshTotal() System.Threading.Thread.Sleep(2000)
Else RefreshTransactNo()
MsgBox("Invalid Quantity") RefreshCartView()
End If RefreshTransactProdView()
Else RefreshTotal()
MsgBox("Enter valid input for quantity")
End If Else
Else MsgBox("Insufficient Amount")
MsgBox("Choose Product to Add Quantity") End If
Exit Sub Else
End If MsgBox("Enter Valid Amount")
End If
Catch ex As Exception Else
MsgBox(ex.Message) MsgBox("Add Product to Cart")
Finally End If
DbFunction.Dispose()
61
Catch ex As Exception from tbl_users where " & varTbl & " LIKE '%" & txtSUser.Text
MsgBox(ex.Message) & "%' and status != 'Archived' order by id ASC"
Finally dtgUsers.DataSource =
DbFunction.Dispose() DbFunction.ExecAdapter(query1)
End Try dtgUsers.ClearSelection()
End Sub
DbFunction.Close()
Private Sub txtSEarnings_TextChanged(sender As Object, e Catch ex As Exception
As EventArgs) Handles txtSEarnings.TextChanged MsgBox(ex.Message)
If cmbEarnings.Text <> "" Then Finally
Dim query1, varTbl As String DbFunction.Dispose()
If cmbEarnings.Text = "Transaction ID" Then End Try
varTbl = "id" Else
ElseIf cmbEarnings.Text = "Processed By" Then RefreshUserView()
varTbl = "handler" End If
Else End Sub
varTbl = "date"
End If Private Sub dtgEarnings_CellDoubleClick(sender As Object,
e As DataGridViewCellEventArgs) Handles
Try dtgEarnings.CellDoubleClick
DbFunction.Connect() If e.RowIndex = -1 Then
query1 = "select id as 'Transaction ID', totalprice as Return
'Total Price', cashtendered as 'Cash Tendered', pchange as Else
'Change', handler as 'Processed By', date as 'Date' from varTransactSelected =
tbl_transact where " & varTbl & " LIKE '%" & dtgEarnings.SelectedRows(0).Cells(0).Value.ToString
txtSEarnings.Text & "%' order by id ASC" Me.Hide()
dtgEarnings.DataSource = viewTransaction.Show()
DbFunction.ExecAdapter(query1) End If
End Sub
DbFunction.Close() Private Sub btnAddUser_Click(sender As Object, e As
Catch ex As Exception EventArgs) Handles btnAddUser.Click
MsgBox(ex.Message) Me.Hide()
Finally addUSer.Show()
DbFunction.Dispose() End Sub
End Try
Else Private Sub dtgUsers_CellClick(sender As Object, e As
RefreshEarnings() DataGridViewCellEventArgs) Handles dtgUsers.CellClick
End If If e.RowIndex = -1 Then
End Sub Return
Else
varUserSelected =
Private Sub txtSUser_TextChanged(sender As Object, e As dtgUsers.SelectedRows(0).Cells(0).Value.ToString
EventArgs) Handles txtSUser.TextChanged End If
If cmbSUser.Text <> "" Then End Sub
Dim query1, varTbl As String
If cmbSUser.Text = "User ID" Then Private Sub btnUpdateUser_Click(sender As Object, e As
varTbl = "id" EventArgs) Handles btnUpdateUser.Click
ElseIf cmbSUser.Text = "Username" Then Me.Hide()
varTbl = "username" updateUser.Show()
ElseIf cmbSUser.Text = "User Type" Then End Sub
varTbl = "user_type"
ElseIf cmbSUser.Text = "Name" Then Private Sub btnRemUser_Click(sender As Object, e As
varTbl = "name" EventArgs) Handles btnRemUser.Click
ElseIf cmbSUser.Text = "Email" Then Dim result As DialogResult = MessageBox.Show("Are
varTbl = "email" you sure you want to remove this user?", "Remove User",
Else MessageBoxButtons.YesNo)
varTbl = "status"
End If If result = DialogResult.Yes Then
varFrom = 4
Try EnterPassword.Show()
DbFunction.Connect() Else
62
Private Sub dtgCart_CellClick(sender As Object, e As query1 = "Select * from tbl_prod where id = " &
DataGridViewCellEventArgs) Handles dtgCart.CellClick varCartSelected
If e.RowIndex = -1 Then res = DbFunction.ExecReader(query1)
Return If res.Read Then
Else pquan = res.GetString(3)
varCartSelected = pprice = res.GetString(4)
dtgCart.SelectedRows(0).Cells(0).Value.ToString res.Close()
varCartQuan = Else
dtgCart.SelectedRows(0).Cells(2).Value.ToString MsgBox("Invalid")
End If Exit Sub
End Sub End If
Else
Private Sub btnRem_Click(sender As Object, e As MsgBox("Choose Product To Add Quantity")
EventArgs) Handles btnRem.Click Exit Sub
Dim result As DialogResult = MessageBox.Show("Are End If
you sure you want To remove this product?", "Remove End If
Product", MessageBoxButtons.YesNo)
63
End Try row.Format.Font.Bold = True
row.Shading.Color = Colors.AliceBlue
End Sub row.Cells(0).AddParagraph("ID")
row.Cells(1).AddParagraph("Category")
Private Sub btnPrintLog_Click(sender As Object, e As row.Cells(2).AddParagraph("Description")
EventArgs) Handles btnPrintLog.Click row.Cells(3).AddParagraph("Date")
Dim result As DialogResult = MessageBox.Show("Do you
want to print this Log?", "logs", MessageBoxButtons.YesNo) For i = 0 To dtgLogs.Rows.Count - 2
varLId = dtgLogs.Item(0, i).Value
If result = DialogResult.Yes Then varLCAteg = dtgLogs.Item(1, i).Value
Try varLDesc = dtgLogs.Item(2, i).Value
Dim varLId, varLCAteg, varLDesc, varLDate As String varLDate = dtgLogs.Item(3, i).Value
Dim doc As New Document
doc.Info.Title = "Logs" Dim row1 = table.AddRow
row1.Cells(0).AddParagraph(varLId)
Dim mystyle As Style = row1.Cells(1).AddParagraph(varLCAteg)
doc.Styles.Item(StyleNames.Normal) row1.Cells(2).AddParagraph(varLDesc)
mystyle.Font.Name = "Verdana" row1.Cells(3).AddParagraph(varLDate)
mystyle.Font.Size = 9 Next
64
row1.Cells(5).AddParagraph(varPDesc)
Dim section As Section = doc.AddSection Next
Dim header = section.AddParagraph
Dim myRenderer As PdfDocumentRenderer = New
Dim myHeader As Paragraph = PdfDocumentRenderer
section.AddParagraph("PRODUCTS") myRenderer.Document = doc
myHeader.Style = StyleNames.Heading1 myRenderer.RenderDocument()
65
DbFunction.InsertLog("'User', '" & Login.actUser & " table.Borders.Left.Width = 0.5
Logged Out', '" & table.Borders.Right.Width = 0.5
System.DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss tt") table.Rows.LeftIndent = 0
& "'")
DbFunction.Close() Dim column = table.AddColumn("2.5cm")
Catch ex As Exception column.Format.Alignment =
MsgBox(ex.Message) ParagraphAlignment.Center
Finally column = table.AddColumn("2.5cm")
DbFunction.Dispose() column.Format.Alignment =
End Try ParagraphAlignment.Right
Me.Dispose() column = table.AddColumn("2.5cm")
Login.Show() column.Format.Alignment =
Else ParagraphAlignment.Right
e.Cancel = True column = table.AddColumn("2.5cm")
End If column.Format.Alignment =
End Sub ParagraphAlignment.Right
column = table.AddColumn("2.5cm")
Private Sub btnPrintTransact_Click(sender As Object, e As column.Format.Alignment =
EventArgs) Handles btnPrintTransact.Click ParagraphAlignment.Center
Dim result As DialogResult = MessageBox.Show("Do you column = table.AddColumn("3cm")
want to print Transaction Details?", "Transaction", column.Format.Alignment =
MessageBoxButtons.YesNo) ParagraphAlignment.Left
66
column = table.AddColumn("3cm")
myRenderer.PdfDocument.Save(filename) column.Format.Alignment =
Process.Start(filename) ParagraphAlignment.Center
column = table.AddColumn("3cm")
Catch ex As Exception column.Format.Alignment = ParagraphAlignment.Left
MsgBox(ex.ToString) column = table.AddColumn("3cm")
End Try column.Format.Alignment = ParagraphAlignment.Left
Else
Dim row = table.AddRow
End If row.HeadingFormat = True
End Sub row.Format.Alignment = ParagraphAlignment.Center
row.Format.Font.Bold = True
Sub PrintReceipt() row.Shading.Color = Colors.AliceBlue
Try row.Cells(0).AddParagraph("Product ID")
Dim varCId, varCName, varCquan, varCPrice, varCtotal row.Cells(1).AddParagraph("Product Name")
As String row.Cells(2).AddParagraph("Quantity")
Dim doc As New Document row.Cells(3).AddParagraph("Price")
doc.Info.Title = "Receipt" row.Cells(4).AddParagraph("Total Price")
67
Dim result As DialogResult = MessageBox.Show("Do you column = table.AddColumn("3.5cm")
want to print User Details?", "User", column.Format.Alignment =
MessageBoxButtons.YesNo) ParagraphAlignment.Left
68
Dim query = "DELETE FROM " & table & " WHERE " & pk
Public Shared Sub Connect() Dim command = New MySqlCommand(query,
MysqlConn.Open() MysqlConn)
End Sub 'MsgBox(query)
command.ExecuteNonQuery()
Public Shared Function ExecReader(ByVal query As String) End Sub
Dim Command = New MySqlCommand(query,
MysqlConn) Public Shared Sub LoadCateg(ByVal varcmb As Object)
READER = Command.ExecuteReader Dim query1 As String
Appendix G
69
Definition of Terms
Back-End Programming - Refers to the process of your system which cannot be seen by the
users.
Front-End Programming - Refers to the design, typography, colors, and etc for your system.
Peopleware – Is a term used to refer to one of the three core aspects of computer technology,
RAM (Random Access Memory) – Is a place in the computing device where the operating
system, application program and data in current use are kept so they can be quickly reached by
Schema – Is the skeleton structure that represents the logical view of the entire database.
70
Technology – The application of scientific knowledge for practical purposes, especially in
industry.
UI (User Interface) – Describes the design and the main form users see in your system.
71