import java.awt.Menu;
import java.util.*;
/**
* 登录菜单*/
public class showLoginMenu {
public showLoginMenu() {
System.out
.println("\n\t 欢 迎 使 用 我 行 我 素 购 物 管 理 系 统 \n");
System.out.println("\t\t 1. 登 录 系 统\n");
System.out.println("\t\t 2. 退 出 \n");
System.out.println("* * * * * * * * * * * * * * * * * * * * * ");
System.out.print("请选择,输入数字:");
}
/**
*主菜单 */
public void showMainMenu() {
boolean con;
do {
con = false;
Scanner input = new Scanner(System.in);
int no = input.nextInt();
if (no == 1) {
showMainMenu();
} else if (no == 2) {
showMainMenu();
} else if (no == 0) {
showMainMenu();
} else {
System.out.print("输入错误,请重新输入数字:");
con = true;
}
} while (con);
}
/**
* 客户信息管理菜单
*/
public void showSendGMenu(){
boolean con;
do{
con = false;
Scanner input = new Scanner(System.in);
int no = input.nextInt();
if(no == 1){
System.out.println("查询客户信息");
}else if (no == 2){
System.out.println("修改客户信息");
}else if (no == 3){
System.out.println("添加客户信息");
}else if (no == 4){
System.out.println("显示所有客户信息");
}else if (no == 0){
showMainMenu();
}else{
System.out.println("输入错误,请重新输入数字:");
con = true;
}
}while(con);
}
/**
* 真情回馈菜单
*/
public void showSendGMenu2 (){
boolean con;
do{
con = false;
Scanner input = new Scanner(System.in);
int no = input.nextInt();
if(no == 1){
System.out.println("执行幸运大放送");
}else if (no == 2){
System.out.println("执行幸运抽奖");
}else if (no == 3){
System.out.println("执行生日问候");
}else if (no == 0){
showMainMenu();
}else{
System.out.println("输入错误,请重新输入数字:");
con = true;
}
}while(con);
}
/*boolean con=true;
do{
Menu menu = new Menu();
menu.showMainMenu();
Scanner input = new Scanner(System.in);
int choice = input.nextInt();
switch(choice){
case 1:
menu.showMainMenu();
break;
case 2:
System.out.println("谢谢您的使用!");
con=false;
break;
}
}while(con);*/
}