学士后第一单元超市管理完整项目

学士后第一单元超市管理完整项目

ID:33103658

大小:106.00 KB

页数:30页

时间:2019-02-20

学士后第一单元超市管理完整项目_第1页
学士后第一单元超市管理完整项目_第2页
学士后第一单元超市管理完整项目_第3页
学士后第一单元超市管理完整项目_第4页
学士后第一单元超市管理完整项目_第5页
资源描述:

《学士后第一单元超市管理完整项目》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、个人收集整理勿做商业用途packagecom.pb.client;importjava.text.SimpleDateFormat;importjava.util.ArrayList;importjava.util.Date;importjava.util.Scanner;importcom.pb.server.Goods;importcom.pb.util.Datas;importcom.pb.util.SysConstants;/**客户端*/publicclassClient{publicstaticScannerinput=newScanner(System.in);文档来

2、自于网络搜索publicstaticClientBIZclientBIZ=newClientBIZ();publicstaticvoidmain(String[]args){System.out.println("************************欢迎使用青鸟超市管理系统**************************************");文档来自于网络搜索System.out.println("1.登录2.退出");System.out.println("************************请选择1/2******************

3、************");文档来自于网络搜索System.out.print("请选择:");intchoose=input.nextInt();while(true){if(choose==1){login();break;}elseif(choose==2){System.out.println("成功退出,谢谢使用");}else{System.out.println("您输入地有误请重新输入");}}}/**登录视图*/publicstaticvoidlogin(){while(true){System.out.print("请输入用户名:");Stringuserna

4、me=input.next();System.out.print("请输入密码:");Stringpassword=input.next();30/30个人收集整理勿做商业用途Datasdatas=clientBIZ.doLogin(username,password);if(SysConstants.SYS_USER.equals(datas.getFlag())){loginClitroller();break;}elseif(SysConstants.SYS_ADMIN.equals(datas.getFlag())){文档来自于网络搜索loginCashier();brea

5、k;}else{System.out.println("用户或密码错误,请重新登录");}}}/**库管员登录界面*/publicstaticvoidloginClitroller(){while(true){System.out.println("**********************欢迎登录青鸟超市库存管理系统**********************************");文档来自于网络搜索System.out.println("请选择要进行地操作:1.商品入库t2.商品出库t3.新增商品t4.查询全部商品t5.按编号查询商品t6.退出");文档来自于

6、网络搜索System.out.print("请选择:");intchoose=input.nextInt();if(choose==1){System.out.println("请输入商品编号:");intgoodsid=input.nextInt();System.out.println("请输入商品数量:");intnum=input.nextInt();if(clientBIZ.inGoods(goodsid,num).getFlag().equals(SysConstants.SYS_SUCCESS)){文档来自于网络搜索clientBIZ.inGoods(goodsid,

7、num);System.out.println("入库成功");show(clientBIZ.inGoods(goodsid,num));}else{System.out.println("入库失败.没有此编号地商品请选择3新增商品");}}elseif(choose==2){System.out.println("请输入商品编号:");intgoodsid=input.nextInt();System.out.println("请输入商品数量:");intnum=i

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。