云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 基于JAVA的餐饮管理系统设计附程序代码

基于JAVA的餐饮管理系统设计附程序代码

  • 62 次阅读
  • 3 次下载
  • 2025/5/23 3:30:23

基于JAVA的餐饮管理系统

return;

}

response.sendRedirect(\

判断餐桌的状态

if (tables != null) {

for (int i = 0; i < tables.size(); i++) {

%>

table

=

(DinnerTable)

tables.elementAt(i);%>

href=\

if (table.state == DinnerTable.STATE_EMPTY) {

%>

%>

<% }

服务员添加删除

public class Waiter extends DBRecord {

public int id;

47

基于JAVA的餐饮管理系统

public String name; public int sex; public Date birthday; public int typeID; public String workNum; public String memo; public String password;

public void setBirthday(int year, int month, int date) { }

public void updateInfo() throws HotelException {

//TODO update hotel information into database try { }

catch(InvalidDataException ide) { } try {

String sqlStr = \

\\\\

\\\

throw new HotelException(\数据不符合格式,保存失败\checkData();

Calendar c = Calendar.getInstance(); c.set(year, month, date, 0, 0, 0); birthday = c.getTime();

// 服务员类型: 迎宾, 点菜, 传菜

System.out.println(\

48

基于JAVA的餐饮管理系统

}

}

execCommand(sqlStr);

catch(ServiceUnavailableException sue) { }

throw new HotelException(\服务不可用,请联系管理员\

public void insert() throws HotelException {

//TODO update hotel information into database try { }

catch(InvalidDataException ide) { } try {

String sqlStr = \into Waiter(name, password, typeID, workNum, sex, birthday, throw new HotelException(\数据不符合格式,保存失败\checkData();

memo) values('\

}

catch(ServiceUnavailableException sue) { }

throw new HotelException(\服务不可用,请联系管理员\

name + \password + \typeID + \workNum + \sex + \

birthday.getTime() + \memo + \

System.out.println(\execCommand(sqlStr);

49

基于JAVA的餐饮管理系统

}

public void retrieveInfo() throws HotelException { }

public boolean checkPassword(String passwd) throws HotelException {

//TODO retrieve hotel information from database // write event log try { }

catch(ServiceUnavailableException sue) { }

catch(RecordNotFoundException rnfe) {

return false;

throw new HotelException(\服务不可用,请联系管理员\

retrieveData(\return password.equals(passwd);

//TODO retrieve hotel information from database // write event log try { }

catch(ServiceUnavailableException sue) { }

catch(RecordNotFoundException rnfe) { }

catch(InvalidDataException ide) { }

throw new HotelException(\请求的数据不符合格式,请联系管理员\

throw new HotelException(\请求的数据不存在,请联系管理员\

throw new HotelException(\服务不可用,请联系管理员\retrieveData(\

50

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

基于JAVA的餐饮管理系统 return; } response.sendRedirect(\ 判断餐桌的状态 if (tables != null) { for (int i = 0; i < tables.size(); i++) { %>

align=\

size=\

if ((i+1)%5 == 0) { %>

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com