

package com.sec.shop;
import java.util.Scanner;
public class SystemMenu {
public void showMainMenu() {
//显示系统主菜单
System.out.println("\n* * * * * * * * * * * * * * * * * * * * * * * * * * * * *");
System.out.println("*\t\t\t\t\t\t\t\t *");
System.out.println("* 欢迎使用迷你青春购物系统\t\t *");
System.out.println("*\t\t\t\t\t\t\t\t *");
System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n");
System.out.println("1.客户信息管理\n");
System.out.println("2.商品信息管理\n");
System.out.println("3.购物信息管理\n");
System.out.println("4.退出系统\n");
boolean flag;
do{
System.out.println("\n请选择功能(1-4):");
Scanner sc = new Scanner(System.in);
int fun = sc.nextInt();
flag = false;
switch(fun){
case 1:
showCustomerMenu();//显示客户管理菜单
break;
case 2:
showProductMenu();//显示商品管理菜单
break;
case 3:
buyProductMenu();//显示购物管理菜单
break;
case 4:
System.out.println("您已安全退出!欢迎下次使用本系统....");
System.exit(0);
break;
default:
System.out.println("请选择相应的功能,在1-4之间选择。");
flag = true;
}
}while(flag);
}
资源文件列表
Shopsystem/.classpath , 356
Shopsystem/.project , 386
Shopsystem/.settings/org.eclipse.jdt.core.prefs , 598
Shopsystem/bin/com/shop/dao/CustomerDAO.class , 7892
Shopsystem/bin/com/shop/dao/ProductDAO.class , 5237
Shopsystem/bin/com/shop/db/ConnDB.class , 1435
Shopsystem/bin/com/shop/Manager/BuyManager.class , 9317
Shopsystem/bin/com/shop/Manager/CustomerManager.class , 8977
Shopsystem/bin/com/shop/Manager/ProductManager.class , 7780
Shopsystem/bin/com/shop/ui/ShopTest.class , 511
Shopsystem/bin/com/shop/ui/SystemMenu.class , 3965
Shopsystem/bin/sqljdbc4.jar , 422699
Shopsystem/src/com/shop/dao/CustomerDAO.java , 8468
Shopsystem/src/com/shop/dao/ProductDAO.java , 4976
Shopsystem/src/com/shop/db/ConnDB.java , 975
Shopsystem/src/com/shop/Manager/BuyManager.java , 12716
Shopsystem/src/com/shop/Manager/CustomerManager.java , 9373
Shopsystem/src/com/shop/Manager/ProductManager.java , 9078
Shopsystem/src/com/shop/ui/ShopTest.java , 160
Shopsystem/src/com/shop/ui/SystemMenu.java , 4482
Shopsystem/src/sqljdbc4.jar , 422699
shopDB.sql , 3046
