12th Showroon Management System
12th Showroon Management System
12th Showroon Management System
PUBLIC SCHOOL
GANDHINAGAR
The user will then be able to track the manufacturing and shipping process
of the car. Shortly before the delivery of the car, the user will have the option to
choose accessories for the car. They will be able to see how it looks by using a
simulating tool that will show how the accessory looks on their car. After such
choices are made the dealer will order the required accessories and fit them on
the car before it is delivered. All the payment formalities will also be completed
by this stage. The dealer will arrange for the vehicle’s registration as well and
keep the car ready for delivery on the scheduled date.
Till now all the interaction between dealer and customer was completed
via the web interface. Now the new car owner can drive to the dealership in their
old car and exchange it for the new one after signing all the required documents.
PROPOSED SYSTEM
Processor: AMD Ryzen 7 4800H
db=mysql.connector.connect(user="root",passwd="VENOMRoit17@",host="localhost",dat
abase='Showroom')
my_cursor=db.cursor()
#query to create a table products
query="CREATE TABLE IF NOT EXISTS products (date VARCHAR(10),prodName
VARCHAR(20), prodPrice VARCHAR(50))"
my_cursor.execute(query) #executing the query
db=mysql.connector.connect(user="root",passwd="VENOMRoit17@",host="localhost",dat
abase='Showroom')
my_cursor=db.cursor()
#query to create a table sale
query="CREATE TABLE IF NOT EXISTS sale (custName VARCHAR(20), date VARCHAR(10),
prodName VARCHAR(30),qty INTEGER, price INTEGER )"
my_cursor.execute(query) #executing the query
wn.destroy()
#Function to get details of the product to be added
def addProd():
global prodName, prodPrice, date, Canvas1, wn
Canvas1 = Canvas(wn)
Canvas1.config(bg='Green')
Canvas1.pack(expand=True,fill=BOTH)
headingFrame1 = Frame(wn,bg='Green',bd=5)
headingFrame1.place(relx=0.25,rely=0.1,relwidth=0.5,relheight=0.13)
headingLabel = Label(headingFrame1, text="Cars shipped in godown",
fg='Black', font=('Courier',15,'bold'))
headingLabel.place(relx=0,rely=0, relwidth=1, relheight=1)
labelFrame = Frame(wn)
labelFrame.place(relx=0.1,rely=0.4,relwidth=0.8,relheight=0.4)
# Getting Date
lable1 = Label(labelFrame,text="Date of shipping: ", fg='black')
lable1.place(relx=0.05,rely=0.3, relheight=0.08)
date = Entry(labelFrame)
date.place(relx=0.3,rely=0.3, relwidth=0.62, relheight=0.08)
# Product Name
lable2 = Label(labelFrame,text="Car's model : ", fg='black')
lable2.place(relx=0.05,rely=0.45, relheight=0.08)
prodName = Entry(labelFrame)
prodName.place(relx=0.3,rely=0.45, relwidth=0.62, relheight=0.08)
# Product Price
lable3 = Label(labelFrame,text="On road price : ", fg='black')
lable3.place(relx=0.05,rely=0.6, relheight=0.08)
prodPrice = Entry(labelFrame)
prodPrice.place(relx=0.3,rely=0.6, relwidth=0.62, relheight=0.08)
#Add Button
Btn = Button(wn,text="ADD",bg='#d1ccc0', fg='black',command=prodtoTable)
Btn.place(relx=0.28,rely=0.85, relwidth=0.18,relheight=0.08)
wn.mainloop()
wn.destroy()
#Function to get product details from the user to be deleted
def delProd():
Canvas1 = Canvas(wn)
Canvas1.config(bg="misty rose")
Canvas1.pack(expand=True,fill=BOTH)
labelFrame = Frame(wn)
labelFrame.place(relx=0.1,rely=0.3,relwidth=0.8,relheight=0.5)
prodName = Entry(labelFrame)
prodName.place(relx=0.3,rely=0.5, relwidth=0.62)
#Delete Button
Btn = Button(wn,text="DELETE",bg='#d1ccc0', fg='black',command=removeProd)
Btn.place(relx=0.28,rely=0.9, relwidth=0.18,relheight=0.08)
wn.mainloop()
#Function to show all the products in the database
def viewProds():
global wn
#Creating the window to show the products details
wn = tkinter.Tk()
wn.title("Agent 77's showroom")
wn.configure(bg='mint cream')
wn.minsize(width=500,height=500)
wn.geometry("700x600")
Canvas1 = Canvas(wn)
Canvas1.config(bg="old lace")
Canvas1.pack(expand=True,fill=BOTH)
labelFrame = Frame(wn)
labelFrame.place(relx=0.1,rely=0.3,relwidth=0.8,relheight=0.5)
y = 0.25
#Connecting to database
db=mysql.connector.connect(user="root",passwd="VENOMRoit17@",host="localhost"
,database='Showroom')
cursor=db.cursor()
#query to select all products from the table
query = 'SELECT * FROM products'
Label(labelFrame, text="%-50s%-50s%-50s"%('Date','Product','Price'),font =
('calibri',11,'bold'),
fg='black').place(relx=0.07,rely=0.1)
Label(labelFrame, text = "---------------------------------------------------
-------------------------",fg='black').place (relx=0.05,rely=0.2)
#Executing the query and showing the products details
try:
cursor.execute(query)
res = cursor.fetchall()
for i in res:
Label(labelFrame,text="%-50s%-50s%-50s"%(i[0],i[1],i[2])
,fg='black').place(relx=0.07,rely=y)
y += 0.1
except Exception as e:
print("The exception is:",e)
messagebox.showinfo("Failed to fetch records from database")
wn.mainloop()
labelFrame = Frame(wn)
labelFrame.place(relx=0.1,rely=0.3,relwidth=0.8,relheight=0.5)
y = 0.35
Label(labelFrame, text="%-40s%-40s%-40s%-
40s"%('Product','Price','Quantity','Total'),font = ('calibri',11,'bold'),
fg='black').place(relx=0.07,rely=0.2)
wn.mainloop()
#Function to take the inputs form the user to generate bill
def newCust():
global wn,name1,name2,name3,date,custName
#Creating a window
wn = tkinter.Tk()
wn.title("Agent77's Showroom")
wn.configure(bg='lavender blush2')
wn.minsize(width=500,height=500)
wn.geometry("700x600")
#Getting date
date = Entry(wn)
date.place(relx=0.3,rely=0.3, relwidth=0.62)
labelFrame = Frame(wn)
labelFrame.place(relx=0.1,rely=0.45,relwidth=0.8,relheight=0.4)
y = 0.3
Label(labelFrame, text="Number of Cars to buy",font = ('calibri',11,'bold'),
fg='black').place(relx=0.07,rely=0.1)
Label(labelFrame, text="%-50s%-50s%-30s"%('Product','Price','Quantity'),font
= ('calibri',11,'bold'),
fg='black').place(relx=0.07,rely=0.2)
cursor.execute(query)
res = cursor.fetchall()
print(res)
c=1
#Showing all the products and creating entries to take the input of the
quantity
i=res[0]
Label(labelFrame,text="%-50s%-50s"%(i[1],i[2])
,fg='black').place(relx=0.07,rely=y)
name1 = Entry(labelFrame)
name1.place(relx=0.6,rely=y, relwidth=0.2)
y += 0.1
i=res[1]
Label(labelFrame,text="%-50s%-50s"%(i[1],i[2])
,fg='black').place(relx=0.07,rely=y)
name2 = Entry(labelFrame)
name2.place(relx=0.6,rely=y, relwidth=0.2)
y += 0.1
i=res[2]
Label(labelFrame,text="%-50s%-50s"%(i[1],i[2])
,fg='black').place(relx=0.07,rely=y)
name3 = Entry(labelFrame)
name3.place(relx=0.6,rely=y, relwidth=0.2)
y += 0.1
wn.mainloop()
headingFrame1 = Frame(wn,bg="snow3",bd=5)
headingFrame1.place(relx=0.2,rely=0.1,relwidth=0.6,relheight=0.16)
headingLabel = Label(headingFrame1, text="Welcome to Agent 77's Showroom",
fg='grey19', font=('Courier',15,'bold'))
headingLabel.place(relx=0,rely=0, relwidth=1, relheight=1)
wn.mainloop()
OUTPUT SCREEN
REQUIREMENTS
->Operating systems- Windows:8, 10 & 11 or
Apple – M1, M2
->RAM- 8 Gb
->Hard disk space- min. 1gb (if possible then prefer SSD)
Python: https://www.python.org/downloads/
Or
https://apps.microsoft.com/store/detail/python-310/9PJPW5LDXLZ5
Windows powershell:
https://apps.microsoft.com/store/detail/powershell/9MZ1SNWT0N5D?hl=en-
in&gl=in
Tkinter: https://docs.python.org/3/library/tkinter.html