基于JSP的餐厅点餐系统设计与实现 毕业论文 联系客服

发布时间 : 星期六 文章基于JSP的餐厅点餐系统设计与实现 毕业论文更新完毕开始阅读7cd6ba68b5daa58da0116c175f0e7cd18525186c

int cou = cb.getMessageCount(\

String page1=request.getParameter(\if(page1==null){

page1=\}

session.setAttribute(\session.setAttribute(\

List pagelist1 = cb.getMessage(Integer.parseInt(page1),\session.setAttribute(\int pageCount = cb.getPageCount(); //得到页数 session.setAttribute(\List pagelist3=(ArrayList)session.getAttribute(\for(int alln1=0;alln1

* from sale order by id desc\

if(!pagelist3.isEmpty()){

餐品名称:<%=allnew.get(1).toString()%>
销售价格:<%=allnew.get(3).toString()%>
餐品类型:<%=allnew.get(4).toString()%>
餐品简介:<%=allnew.get(5).toString()%>

height=80

src=\

width=120 onload=makesmallpic(this,120,80); border=0>

5.3订单信息功能的设计与实现

此功能的作用就是显示出所点餐品的名字,数量,和总价格。让顾客可以清楚的看到自己的账单,直到顾客满意为止。

13

订单信息设计如5.3图所示:

图5.3订单信息

部分实现代码如下:

<%String dnum=(String)session.getAttribute(\

我的点餐

ComServlet?method=tjDC&dnum=<%=dnum%>\

method=\

<%

float f=0;

Listlist=cb.getCom(\prep where dnum='\ if(!list.isEmpty()){for(inti=0;i

list2=(List)list.get(i);

id='\

14

));%>

5.4 餐品查询功能的查询与实现

此功能主要实现餐品的查询,按餐品类别可以达到关键字查询餐品详细信息,方便顾客浏览以及订餐。

餐品查询设计如5.4图所示:

图5.4餐品查询

部分实现代码如下:

餐品名称 餐品价格 数量 本餐品总价
<%=cb.getString(\mc from sale where id='\

<%=cb.getString(\jg from sale where id='\

<%=list2.get(3).toString() %> <%=Float.parseFloat(cb.getString(\jg fromsalewhere

id='\)) %>

餐品查询

name=\

餐品类别:

16