-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.py
64 lines (47 loc) · 1.79 KB
/
Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from Person import Person
from Order import Order
from Product import Product
from Company import Company
from Client import Client
from Employee import Employee
from datetime import datetime
company = Company()
person1 = Client("ahmad", "0993893", "male", "[email protected]")
person2 = Employee("majed", "46565", "male", 5000, "12 hours")
# person3 = Person("sara", "546852", "female")
# client1 = Client("ahmad", "0993893", "male", "[email protected]")
# client2 = Client("majed", "5645655", "male", "[email protected]")
# client3 = Client("sara", "546852", "female", "[email protected]")
# employee1 = Employee("majed", "46565", "male", 5000, "12 hours")
# employee2 = Employee("abody", "78465", "male", 4000, "8 hours")
# employee3 = Employee("amira", "44465", "female", 3000, "4 hours")
product1 = Product("tide", 100)
product2 = Product("fire", 50)
product3 = Product("shambow", 30)
product4 = Product("ditol", 40)
product5 = Product("dak", 21.6)
order1 = Order("2014-01-08", True, person1, [product1, product2, product3])
order2 = Order("2010-07-08", True, person1, [product5])
order3 = Order(datetime.now(), False, person2, [product1, product3, product4])
company.add_person(person1)
company.add_person(person2)
company.add_product(product1)
company.add_product(product2)
company.add_product(product3)
company.add_product(product4)
company.add_product(product5)
company.add_order(order1)
company.add_order(order2)
company.add_order(order3)
# company.print_person_info(1)
# company.print_person_info(2)
# company.print_person_info(3)
# company.print_person_info(4)
# company.print_person_info(5)
# company.print_person_info(6)
# company.print_product_details(1)
# company.print_product_details(2)
# company.print_product_details(3)
# company.print_order_details(3)
company.print_person_orders(1)
# company.prein_person