-
Notifications
You must be signed in to change notification settings - Fork 0
/
Admin_model.java
50 lines (39 loc) · 1.02 KB
/
Admin_model.java
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
package DemoMain;
import java.sql.SQLException;
import java.util.Scanner;
import report.Report;
import update.UpdateMobile;
import vender.sign_up;
public class Admin_model {
public static void admin_model() throws SQLException {
Scanner sc= new Scanner (System.in);
System.out.println("Admin Moduled 1.Vender signUp 2.Reports 3.Update ");
System.out.println("Enter your choice");
int num=sc.nextInt();
switch(num) {
case 1 :
sign_up.vendor_signUp();
break;
case 2:
System.out.println("1.list_of_venders");
System.out.println("2.tolat_item_cost");
System.out.println("3.item_desc");
System.out.println("Enter your choice");
int num2=sc.nextInt();
switch(num2) {
case 1:
Report.list_of_venders();
break;
case 2:
Report.tolat_item_cost();
break;
case 3:
Report.item_desc();
}
break;
case 3:
UpdateMobile.update_mobile();
}
System.exit(num);
}
}