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

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

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

基于JAVA的餐饮管理系统

}

}

}

catch(InvalidDataException ide) { }

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

public String getRecordName() { }

public void checkData() throws InvalidDataException { }

public void getData(ResultSet rs) throws SQLException { }

id = rs.getInt(\name = rs.getString(\typeID = rs.getInt(\workNum = rs.getString(\sex = rs.getInt(\memo = rs.getString(\password = rs.getString(\

birthday = new Date();

birthday.setTime(rs.getLong(\if (name == null) { }

throw new InvalidDataException(\关键字不对\return \

餐桌添加删除

function changeCategory() {

document.location = \

51

基于JAVA的餐饮管理系统

} <%

for (int i = 0; i < dishes.size(); i++) { %> <% %>

dish_show[<%=i%>][<%=j%>] = '<%=dish.name%>'; dish_value[<%=i%>][<%=j%>] = '<%=dish.id%>'; for (int j = 0; j < cat.items.size(); j++) {

System.out.println(cat.items.elementAt(j).getClass()); Dish dish = (Dish) cat.items.elementAt(j); dish_cat_show[<%=i%>] = '<%=cat.name%>'; dish_cat_value[<%=i%>] = '<%=cat.id%>'; dish_show[<%=i%>] = new Array(); dish_value[<%=i%>] = new Array();

DishCategory cat = (DishCategory) dishes.elementAt(i); var dish_cat_show = new Array(); var dish_cat_value = new Array(); var dish_show = new Array(); var dish_value = new Array();

<% } %>

function changeCategory(){

var n, i, m;

m = catList.selectedIndex; n = dishList.length; }

for(i = n - 1; i >= 0; i--)

dishList.options[i] = null;

52

基于JAVA的餐饮管理系统

if (m >= 0) {

for(i = 0; i < dish_show[m].length; i++){

NewOptionName = new Option(dish_show[m][i], dish_value[m][i]); dishList.options[i] = NewOptionName;

}

dishList.options[0].selected = true; }

function AddDish() {

var i, j, h, Code, Text; }

i = dishList.length;

j = bookForm.bookList.length; for (h = 0; h < i; h++) {

if (dishList.options[h].selected ) {

Code = dishList.options[h].value; Text = dishList.options[h].text; j = bookForm.bookList.length;

bookForm.bookList.options[j] = new Option(Text, Code); dishList.options[h].selected = false;

} } }

function DeleteDish() {

minselected = 0;

for (i = bookForm.bookList.length - 1; i >= 0; i--) {

if (bookForm.bookList.options[i].selected) {

if (minselected == 0 || i < minselected)

minselected = i;

bookForm.bookList.options[i] = null;

53

基于JAVA的餐饮管理系统

}

}

i = bookForm.bookList.length; if (i > 0) {

if (minselected >= i) minselected = i - 1;

bookForm.bookList.options[minselected].selected = true; }

function selectAll() {

for (i = bookForm.bookList.length - 1; i >= 0; i--) { } }

bookForm.bookList.options[i].selected = true; }

54

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