forked from loopccoew/Buffer_3.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathE_mess.java
More file actions
131 lines (110 loc) · 2.99 KB
/
E_mess.java
File metadata and controls
131 lines (110 loc) · 2.99 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
package e_mess_management;
import java.util.Scanner;
class Entry{
Admin a = new Admin();
Customer c = new Customer();
E_mess e= new E_mess();
void entry()
{
int ch,op;
do
{
System.out.println("_______________________________________________________");
System.out.println("\tWELCOME TO E-MESS MANAGEMENT SYSTEM");
System.out.println("_______________________________________________________");
System.out.println();
System.out.println("1.Admin\n2.Customer\n3.Exit");
System.out.println("_______________________________________________________");
System.out.println("Select your panel : ");
ch = sc.nextInt();
switch(ch)
{
case 1:
if(a.ex == 1)
{
System.out.println("See you after 12 hours !!!");
}
else
{
a.accept();
}
break;
case 2:
e.cust();
break;
case 3:
System.exit(0);
break;
default:
System.out.println("Invalid choice ...");
break;
}
System.out.println("Do you want to continue Home page ?0/1");
op = sc.nextInt();
}while(op == 1);
System.out.println("Thank You !!!");
}
static Scanner sc = new Scanner(System.in);
}
public class E_mess
{
static orders[] order_insert = new orders[30];
static int front,rear;
static node_menu[] arrayMenus = new node_menu[14];
static table1[] status = new table1[20];
static String final_time;
static int menu_generation_status=0;
static String current_time;
static int cus;
static int stat = -1;
public static void main(String args[])
{
Entry e = new Entry();
e.entry();
}
void cust()
{
Scanner sc=new Scanner(System.in);
Customer c = new Customer();
Entry e = new Entry();
int ch,op;
orders obj = new orders();
do
{
System.out.println("____________________Customer Panel___________________");
System.out.println("1.Register for monthly mess \n2.Login to your profile \n3.Display menu\n4.Display table status\n5.Place order\n6.Exit");
System.out.println("______________________________________________________________");
System.out.println("Enter your choice : ");
ch = sc.nextInt();
switch(ch)
{
case 1:
c.register();
break;
case 2:
System.out.println();
System.out.println("_____________Welcome to your profile___________");
c.login();
break;
case 3:
c.show_menu();
break;
case 4:
c.view_table_status();
break;
case 5:
obj.place_order();
break;
case 6:
System.out.println("_________________Thank you_______________");
e.entry();
break;
default:
break;
}
System.out.println();
System.out.println("Do you want to continue with customer panel ? 1/0");
op = sc.nextInt();
}while(op == 1);
}
}