資源簡介
基于Socket編程
超市收銀系統主要劃分為兩塊,一是商品管理,二是收銀管理
1、商品庫存管理主要是倉庫管理員對倉庫進行查詢、修改的功能(增刪改查)
2、收銀管理主要是銷售人員掃描商品、結賬的打印票據功能能
代碼片段和文件信息
package?org.wen.client;
import?java.util.Scanner;
import?org.wen.entity.User;
import?org.wen.until.SysConstants;
import?org.wen.until.Data;
/**
?*?客戶端類
?*/
public?class?Client?{
static?Scanner?scanner?=?new?Scanner(System.in);
static?MoneyReceiverViewer?moneyReceiverViewer?=?new?MoneyReceiverViewer();
static?RepertoryView?repertoryView?=?new?RepertoryView();
static?ClientBIZ?clientBIZ=ClientBIZimpl.getInstance();
public?static?void?main(String[]?args)?{
//?調用登陸界面的方法
showMainMenuView();
}
/**
?*?登陸的方法
?*/
private?static?void?showMainMenuView()?{
System.out.println(“***********歡迎使用青鳥超市管理系統**************“);
System.out.println(“1.登陸\n“?+?“2.退出系統“);
System.out.println(“***************請選擇數字1/2*********************“);
//?接受用戶輸入
int?c?
評論
共有 條評論