-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder_System.h
More file actions
93 lines (58 loc) · 3.68 KB
/
Order_System.h
File metadata and controls
93 lines (58 loc) · 3.68 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#pragma once
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <chrono>
#include <ctime>
#include "ClassTypes.h"
int userChoice;
int tableCounter = 1;
/*PROTOTYPES*/
/*************************************************************************************************************************************************************/
/*VIEW OPTIONS SECTION*/
void viewActiveSubOrder(); /*view active sub order*/
void viewAllSubOrders(); /*view the status of all active suborders*/
void viewActiveMenu(); /*only view the active menu*/
void viewTransactionList();
/*PRINT OPTIONS SECTION*/
void printFinalReceipts(); /*print customer receipts on order completion*/
/**************************************************************************************************************************************************************/
/********************************************************************VIEW SECTION******************************************************************************/
void viewActiveSubOrder()
{
std::cout << "------------------------------------------------------------------------------------------------------------------------------\n";
std::cout << "|" << std::setw(62) << "CURRENT ORDERS" << std::setw(63) << "|" << "\n";
std::cout << "------------------------------------------------------------------------------------------------------------------------------\n";
std::cout << "NAME" << std::setw(40) << "UNIT COST" << std::setw(24) << "PRICE" << std::setw(25) << "COOK TIME" << std::setw(25) << "TABLE" << "\n";
}
void viewActiveMenu() // SHOWS A STATIC MENU
{
std::cout << "------------------------------------------------------------------------------------------------------\n";
std::cout << "|" << std::setw(50) << "MENU" << std::setw(51) << "|" << "\n";
std::cout << "------------------------------------------------------------------------------------------------------\n";
std::cout << "NAME" << std::setw(40) << "UNIT COST" << std::setw(24) << "PRICE" << std::setw(25) << "COOK TIME" << std::setw(25) << "\n";
}
void viewAllSubOrders() // USED TO VIEW ALL SUBORDERS
{
std::cout << "-------------------------------------------------------------------------------------------------------------\n";
std::cout << "|" << std::setw(65) << "ACTIVE ORDERS" << std::setw(43) << "|" << "\n";
std::cout << "-------------------------------------------------------------------------------------------------------------\n";
std::cout << "NAME" << std::setw(40) << "UNIT COST" << std::setw(24) << "PRICE" << std::setw(25) << "COOK TIME" << "\n";
}
void viewTransactionList()
{
std::cout << "************************************************************************************\n";
std::cout << "*" << std::setw(50) << "TRANSACTION LIST ORDERS" << std::setw(28) << "*\n";
std::cout << "************************************************************************************\n";
std::cout << "NAME" << std::setw(40) << "UNIT COST" << std::setw(24) << "PRICE" << "\n";
}
/********************************************************************PRINT SECTION*******************************************************************************/
void printFinalReceipts() /*print customer receipts on order completion*/
{
std::cout << "******************************************\n";
std::cout << "*" << std::setw(25) << "FINAL RECEIPT" << std::setw(17) << "*\n";
std::cout << "******************************************\n";
std::cout << "\n";
std::cout << "NAME" << std::setw(35) << "SUB TOTAL\n";
}