第一范文网 - 专业文章范例文档资料分享平台

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

来源:用户分享 时间:2025/5/22 14:59:39 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

基于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

基于JAVA的餐饮管理系统设计附程序代码.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c913c31wuie5kaxd91bwp423gj8gje700l4e_14.html(转载请注明文章来源)
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top

align=\

size=\

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