Computer Shop Management System
Computer Shop Management System
Computer Shop Management System
Table of Contents……………………………………………………………………………….4
Introduction………………………………………………………………………………………5
Objective………………………………………………………………...……………………….6
Operating environment…………………………………………………………………………6
1) Harware requirement…………..…………………………………………………………6
2) Sowtware requirement……………………………………………………………………6
Platform used……………………………………………………………………………5
Purpose ………………….………………………………………………………………………5
Product
Perspective………………………………………………………………………………………5
Process logic....................................................................................................................2
Logic diagram……………….…………………………………………………………………..7
ER diagram…...……………..…………………………………………………………………11
Data structure…………………………………………………………………………………..12
Sreenshots ………………………………………………………………………………….. 3
1) Login form……………………………………………………………………………….3
Computer Shop Management System
2) Main form….…………………………………………………………………………….4
7) Change password………………………….…………………………………………….5
Coding …………………………………………………………….5
Future Scope…………………………………………………………
Bibliography …………………………………………………………………………………
Introduction
Computer-shop management System is a project which assist in keeping the
Record of what ever the sales from shop (whole seller), also it keep track of remaining
balance which due after selling the product. Through this project we maintain the
warranty given on particular products along with complete information related to that
product.
Computer-shop management System is software for store billing
management. Sell hardware systems components and accessories (keep track of sold
configurations, create system configuration, sell accessories and computer
components, supplying company’s administration, and many more...). Computer-shop
management System is a windows based billing software designed for uses in computer
stores.
Objective
The objective of my project to provides management facility to
computer-shop. We have given many facilities for users in this project.
1) Welcome screen (Formsplash)
2) Login screen
3) Main form
4) Sell Computer System form
5) Sell Computer Parts form
6) Update customer Balance form
7) Product Price Report form
8) Change password form
9) Make quotation form
10) Add computer part form
11) Add computer system form
12) Create user account form
13) Update shop information form
14) Report of sold computer part
15) Report of sold computer system
Operating Environment
1) Hardware Requirement
2) Software Requirement
1) MS-office-2003
2) MS Visual Basic6.0
Purpose
Project Scope
It will also save lots of time, as system will perform all tasks in quick time
profiting customer and shop owner as well, so it will prove very economical in every
respect.
Product Perspective
The Computer-shop Management System is the new, self-contained product.
The Computer-shop management system is using vb6.0 platform. All components follow
Model-View-Controller pattern. The user can retrieve information of their shop progress.
All pages of the system are following a consistent theme and clear structure.
The occurrence of errors should be minimized through the use of checkboxes and scroll
down in order to reduce the amount of text input from user. Error message should be
located beside the error input which clearly highlight and tell user how to solve it. If
system error, it should provide the contact methods. The page should display the
project process in different color to clearly reflect the various states. Each level of user
will have its own interface and privilege to mange and modify the project information.
User interface elements are easy to understand. Part of user interface is well-
organized on screen and the parts are concatenated right. When users look at the
interface, they understand which pane is used for which purpose. Each task of an
interface is specified clearly and users use them correctly. For example, when users
press to any button on interface, they can know which operations are done by pressing
this button.
The user interface is easy to learn. When users use the user interface, they
can know which element is used to which operations. The interface actions and
elements is consistent. When users press any button, required actions is done by the
system.
The screen layout and color of the user interface is appealing. When users
look at the screen, it will have a nice vision. Colors will be selected clearly, thus eyes of
users won’t be tired.To inhance the graphical user interface I use xp button, lv button
and vk frame.
Since the application must run on the PC, all the hardware shall require to
connect the PC will be hardware interface for the system.The main interface would be
the monitor, Keyboard and mouse.
Product Features
• NETWORK SUPPORT. You can use more than one computer to work with Computer-
shop Maintenance System.
• Support for VAT tax system. Also you can -
Process Logic
1. Login Form
In this form, existing user/administrator enters the user-name and password
and access the main form. If user forgets his password then he can click on button
forget password and then entering his e-mail id can get user name and password. This
form contains user name and password as sub module.
2. Main Form
If administrator accesses this form using authentic login-name and password
then the administrator has administrative power as add the product, create user
account, add new branded computer system, add company, change the shop record .
Administrator have full power But user have some restricted power only which is
provided by administrator.
In this main form user can sell computer part/assemble computer
system/branded computer system, update customer record, change the password,
make quotation. Using this form the user/administrator can see the report of sold
computer part, branded computer system in any time duration. In this form, there is
option to exit & log-off
In this module, the administrator can add new product by entering its name,
company name, range, type, serial number, and its price. Here administrator can also
see the available product and its information. And the administrator can also delete any
product.
LOGICAL DIAGRAM
START
LOGIN FORM
MAIN FORM
Update customer
Branded Assemble Balance
computer system computer/Computer
part
Change shop
information
Computer-shop
Req. Resp. Customer
Customer
management
System
I
Sold sold computer system detail
compute
Customer
r part
Sold
Item Compute
User/admin r system
Update Report
Login
Add
compute
Add Search
r system
compute Search detail
r part
Vikrant Singh Baghel Page 9
Computer Shop Management System
Customer detail
Compter Compter
system Part
Detail Detail
Customer
Issue detail
Customer
Sold History
Customer
Issue detail
User
Balance detail
Update
Balance
Verify balance detail
Sold detail
Balance History
User
Search Customer Detail
Customer Record
ER Diagram:- Brand_name
configuratio
n
system_name Warranty_period
Item_pric
e Warranty_period
Item_type
Computer
user_addres
user_ph.n
o.
system_detail
Brand_name
s Item_pric
Login-
e
name&pas
user_name sword Item_nam
e
serial_no.
BALANCE
Serial.No.
Warranty.per
d
Balance
Date
Vikrant Singh Baghel Page 12
C_name
Computer Shop Management System
Sell
User computer Computer
system/pa part_DETAIL
rt
Paid
Amou
nt
Customer
Invoiceno Invoice
. Paid_amoun no.
t
Tot.amount c_address
c_ph.no.
c_Balance
c_name
DATA STRUCTURE
1. Balance Table
Key Column Name Data Type Width
Primary key InvoiceNo. Alphanumeric 5
Customername Alphanumeric 25
Customer address Alphanumeric 6
Customer phone no. Numeric 6
Paidamount Numeric 8
Totalamount Numeric
Date Date
Brandname Alphanumeric 25
Type Alphanumeric 5
Price Numeric 6
Primary key Serialno. Alphanumeric 5
warranty Numeric 1
3. Customer
key Column Name Data Type Width
Customer_name Alphanumeric 25
Customer_Address Alphanumeric 30
Primary key Customer_Phone.no. Numeric 10
Customer_Balance Numeric 8
5.Troubleshoot
key Column Name Data Type Width
Primary key Invoice no Alphanumeric 5
Customer_name Alphanumeric 25
Customer_Address Alphanumeric 30
Customer_phoneno. Numeric 10
Problem Alphanumeric 25
Service_date Date 8
Charge Numeric 10
6.Employee Table
Key Column Name Data Type Width
Primary key Employee-id Alphanumeric 12
Employee_name Alphanumeric 15
Employee_address Alphanumeric 45
Employee_phoneno Numeric 10
Email_id Alphanumeric 20
7.Warranty
Key Column Name Data Type Width
Invoice_no. Alphanumeric 8
Primary key Serial_no. Alphanumeric 20
Bill_no. Alphanumeric 10
New_Serial no Alphanumeric 15
Problem Alphanumeric 25
Service_date Date 8
Delivery_date Date 8
SCREENSHOTS
Loginform
Main form
Make quotation
Test case
If connection of database is not closed at unload of this form then this error occurred.so
needs to close connection of database as
Private Sub Form_Unload(Cancel As Integer)
con.Close
End Sub
In database setsold table has p2 field, this field have to allow zero lenth.
I the database there is field name “login name’ have no value so this error occurred.
So insert login name and password.
This error occure when in database the data type is not matching. So need to give
correct data type.
There is not any item in the database in the requested field. So need to insert a item or
generate a message.
The insert into command have syntax error. So need to write correct syntax.
When execute the insert into statement, there is any extra parameter.
In database customeaddressfield not found because I have write wrong table name.
I dcrease the size of all text field and labels to correct this error
Login form
rs.MoveFirst
For i = 1 To rs.RecordCount
If rs.Fields(2) = Text1.Text And rs.Fields(3) = Text2.Text Then
If rs.Fields(6) = ("admin") Then
mainfrm.Show
Unload Me
con.Close
Exit Sub
End If
If rs.Fields(6) = ("employee") Then
mainfrm.Show
mainfrm.admin.Visible = False
Vikrant Singh Baghel Page 40
Computer Shop Management System
Unload Me
con.Close
Exit Sub
End If
End If
rs.MoveNext
Next i
If rs.EOF = True Then
MsgBox "Invalid login name & password!"
Text2.Text = ""
Text2.SetFocus
End If
End Sub
End If
End Sub
Main form
Else
End If
End Sub
End Sub
End Sub
End Sub
Case 2:
asssembled_Click
Case 3:
bronded_Click
Case 4:
logoff_Click
Case 5:
Exit_Click
End Select
End Sub
End Sub
rs3.Open "select Range from itemdetail where Itemname='" & temp & "' and
Company='" & Comboram.Text & "' and Type='" & Combo19.Text & "'"
While rs3.EOF = False
Combo27.AddItem rs3(0)
rs3.MoveNext
Wend
End Sub
Wend
End Sub
Private Sub Combo28_Click()
Combo39.Clear
temp = "Processor"
If rs3.State = adStateOpen Then rs3.Close
rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & ComboProcessor.Text & "' and Type='" & Combo20.Text & "' and
Range='" & Combo28.Text & "'"
While rs3.EOF = False
Combo39.AddItem rs3(0)
rs3.MoveNext
Wend
End Sub
Private Sub Combo29_Click()
Combo40.Clear
temp = "MotherBoard"
If rs3.State = adStateOpen Then rs3.Close
rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & Combomotherboard.Text & "' and Type='" & Combo21.Text & "'
and Range='" & Combo29.Text & "'"
While rs3.EOF = False
Combo40.AddItem rs3(0)
rs3.MoveNext
Wend
End Sub
Private Sub Combo30_Click()
temp = "Speaker"
If rs3.State = adStateOpen Then rs3.Close
rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & Combospeaker.Text & "' and Type='" & Combo23.Text & "' and
Range='" & Combo30.Text & "'"
While rs3.EOF = False
Combo46.AddItem rs3(0)
rs3.MoveNext
Wend
End Sub
Private Sub Combo31_Click()
temp = "Monitor"
If rs3.State = adStateOpen Then rs3.Close
rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & Combomonitor.Text & "' and Type='" & Combo24.Text & "' and
Range='" & Combo31.Text & "'"
While rs3.EOF = False
Combo47.AddItem rs3(0)
rs3.MoveNext
Wend
End Sub
Private Sub Combo34_Click()
temp = "Printer"
If rs3.State = adStateOpen Then rs3.Close
rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & Comboprinter.Text & "' and Type='" & Combo34.Text & "'"
While rs3.EOF = False
Combo51.AddItem rs3(0)
rs3.MoveNext
Wend
End Sub
End Sub
End Sub
Private Sub Combo37_Click()
Static cdwprice As Double
Static i As Integer
If rs3.State = adStateOpen Then rs3.Close
rs3.Open "select Price from itemdetail where Serialno='" & Combo37.Text & "'"
Text6.Text = rs3(0)
If i = 0 Then
cdwprice = Val(Text6)
price = price + cdwprice
Else
price = price - cdwprice
cdwprice = Val(Text6)
price = price + cdwprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo38_Click()
Static ramprice As Double
Static i As Integer
If rs3.State = adStateOpen Then rs3.Close
rs3.Open "select Price from itemdetail where Serialno='" & Combo38.Text & "'"
Text7.Text = rs3(0)
If i = 0 Then
ramprice = Val(Text7)
price = price + ramprice
Else
price = price - ramprice
ramprice = Val(Text7)
price = price + ramprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
If i = 0 Then
fdprice = Val(Text10)
price = price + fdprice
Else
price = price - fdprice
fdprice = Val(Text10)
price = price + fdprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo42_Click()
Static dvdrprice As Double
Static i As Integer
If rs3.State = adStateOpen Then rs3.Close
rs3.Open "select Price from itemdetail where Serialno='" & Combo42.Text & "'"
Text11.Text = rs3(0)
If i = 0 Then
dvdrprice = Val(Text11)
price = price + dvdrprice
Else
price = price - dvdrprice
dvdrprice = Val(Text11)
price = price + dvdrprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo43_Click()
Static dvdwprice As Double
Static i As Integer
If rs3.State = adStateOpen Then rs3.Close
rs3.Open "select Price from itemdetail where Serialno='" & Combo43.Text & "'"
Text12.Text = rs3(0)
If i = 0 Then
dvdwprice = Val(Text12)
price = price + dvdwprice
Else
price = price - dvdwprice
dvdwprice = Val(Text12)
price = price + dvdwprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & Combocabinet.Text & "'"
While rs3.EOF = False
Combo53.AddItem rs3(0)
rs3.MoveNext
Wend
End Sub
FUTURE SCOPE
The future scope of this software is given below.
• Bar code support.
• make rebates on system configuration
• make rebates on group of components
• make system configuration with rebates
• make tribute on system configuration
• Export data filters /employees, payments, companies, sold items, components-
- XLS /Excel/ file format
- XML file format
- HTML file format
and later change/print that files.
• Quickly create database backup!
• Debts/Demand customer management.
• Customize bills that you print!
• Create estimates and latter convert it into bills!
• Reports to make comparisons between months (total sum, or sum by
employees)!
• Sell computer system by instalments!
• Print bills with currency sign.
• Different kind of reports.
• Pay - roll administration for your employees!
• Keep track of you suppliers!
• Server database is protected from unauthorized modifications!
• Process payments quickly and efficiently!
• Unique design with very functional user interface!
• Improve your store business with various reports and statistics.
Bibliography
Books:
1) Programing Microsoft visual basic 6.0
2) Mastering visual basic 6
3) Black book visual basic
4) Complete reference in visual basic 6
5) System analysis and design by elias m. awad
Websites:
1) www.a1vbcode.com
2) www.vbcode.com
3) www.codeguru.com
4) www.vbexpert.com
5) www.1000project.com