91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3.2MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-15
  • 語言: Java
  • 標簽: java??mysql??

資源簡介

使用java編寫,實現了客戶的點菜下單功能,頁面的分頁功能,實現了后臺人員的菜系,菜品,訂單的管理功能,圖片的上傳功能等

資源截圖

代碼片段和文件信息

package?com.hotel.controller;

import?java.io.IOException;
import?java.util.List;

import?javax.servlet.ServletException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;

import?com.hotel.delException.MyException;
import?com.hotel.pojo.BoardTable;
import?com.hotel.service.BoardTableServiceI;
import?com.hotel.service.impl.BoardTableServiceImpl;
/**
?*?

Tilte:BoardTableController.java


?*?

Description:餐桌管理的controller


?*?

author:gy


?*?

Data:2018年6月4日


?*/
public?class?BoardTableController?extends?HttpServlet?{
private?static?final?long?serialVersionUID?=?1L;

private?BoardTableServiceI?boardTableService??=new?BoardTableServiceImpl();

protected?void?doGet(HttpServletRequest?request?HttpServletResponse?response)?throws?ServletException?IOException?{
request.setCharacterEncoding(“utf-8“);
response.setCharacterEncoding(“utf-8“);
String?method=request.getParameter(“method“);
if(“getBoardList“.equals(method))?{
getBoardList(requestresponse);
}else?if(“searchBoard“.equals(method))?{
searchBoard(requestresponse);
}else?if(“update“.equals(method))?{
update(requestresponse);
}else?if(“delete“.equals(method))?{
delete(requestresponse);
}else?if(“saveBoard“.equals(method))?{
saveBoard(requestresponse);
}

}

/**
?*?

Tilte:saveBoard


?*?

Description:添加餐桌信息


?*/
private?void?saveBoard(HttpServletRequest?request?HttpServletResponse?response)?{
try?{
//接收參數
String?tableName=request.getParameter(“bName“);
if(null?!=tableName?&&tableName.length()>0)?{
boardTableService.saveBoard(tableName);
//重定向到列表頁面
response.sendRedirect(request.getContextPath()+“/boardTableController?method=getBoardList“);
}else?{
throw?new?MyException(“添加餐桌的名稱為空“);
}
}?catch?(Exception?e)?{
e.printStackTrace();
}
}

/**
?*?

Tilte:delete


?*?

Description:根據餐桌的id刪除該餐桌的信息包括訂單詳細,訂單中的信息


?*/
private?void?delete(HttpServletRequest?request?HttpServletResponse?response)?{
//接收參數
try?{
String?idString?=request.getParameter(“id“);
if(null?!=idString)?{
boardTableService.delete(Integer.parseInt(idString));
//重定向到列表頁面
response.sendRedirect(request.getContextPath()+“/boardTableController?method=getBoardList“);
}else?{
throw?new?MyException(“刪除餐桌的id為空“);
}
}?catch?(Exception?e)?{
e.printStackTrace();
}
}

/**
?*?

Tilte:update


?*?

Description:退桌功能,將狀態碼改變


?*/
private?void?update(HttpServletRequest?request?HttpServletResponse?response)?{
try?{
//接收參數
String?idString?=request.getParameter(“id“);
String?isBookString?=?request.getParameter(“isBook“);
if(null?!=idString)?{
boardTableService.update(Integer.parseInt(idString)Integer.parseInt(isBookString));
//重定向到列表頁面
response.sendRedirect(request.getContextPath()+“/bo

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????661??2018-07-14?10:17??餐館點餐\hotel\.classpath

?????文件????????905??2018-06-04?20:54??餐館點餐\hotel\.project

?????文件????????567??2018-06-04?17:24??餐館點餐\hotel\.settings\.jsdtscope

?????文件?????????84??2018-06-04?18:33??餐館點餐\hotel\.settings\org.eclipse.core.resources.prefs

?????文件????????364??2018-06-04?17:24??餐館點餐\hotel\.settings\org.eclipse.jdt.core.prefs

?????文件????????467??2018-06-04?20:54??餐館點餐\hotel\.settings\org.eclipse.wst.common.component

?????文件????????345??2018-06-04?17:24??餐館點餐\hotel\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2018-06-04?17:24??餐館點餐\hotel\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2018-06-04?17:24??餐館點餐\hotel\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件????????286??2018-07-14?14:18??餐館點餐\hotel\.tern-project

?????文件???????4263??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\controller\BoardTableController.class

?????文件??????10587??2018-07-15?17:37??餐館點餐\hotel\build\classes\com\hotel\controller\ClientController.class

?????文件???????4386??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\controller\CuisineController.class

?????文件???????8039??2018-07-15?15:32??餐館點餐\hotel\build\classes\com\hotel\controller\FoodController.class

?????文件???????3173??2018-07-15?17:46??餐館點餐\hotel\build\classes\com\hotel\controller\OrderController.class

?????文件????????515??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\dao\BoardTableDaoI.class

?????文件????????520??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\dao\CuisineDaoI.class

?????文件????????973??2018-07-15?17:17??餐館點餐\hotel\build\classes\com\hotel\dao\FoodDaoI.class

?????文件???????3470??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\dao\impl\BoardTableDaoImpl.class

?????文件???????3731??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\dao\impl\CuisineDaoImpl.class

?????文件???????6825??2018-07-15?17:18??餐館點餐\hotel\build\classes\com\hotel\dao\impl\FoodDaoImpl.class

?????文件???????4060??2018-07-15?16:50??餐館點餐\hotel\build\classes\com\hotel\dao\impl\OrderDaoImpl.class

?????文件????????529??2018-07-15?13:10??餐館點餐\hotel\build\classes\com\hotel\dao\OrderDaoI.class

?????文件????????895??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\delException\MyException.class

?????文件???????1239??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\filter\EncodingFilter.class

?????文件???????1877??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\pojo\BoardTable.class

?????文件???????1255??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\pojo\Cuisine.class

?????文件???????5880??2018-07-15?09:02??餐館點餐\hotel\build\classes\com\hotel\pojo\Food.class

?????文件???????3242??2018-07-15?15:08??餐館點餐\hotel\build\classes\com\hotel\pojo\Order.class

?????文件???????2377??2018-07-14?10:17??餐館點餐\hotel\build\classes\com\hotel\pojo\OrderDetial.class

............此處省略215個文件信息

評論

共有 條評論