<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="../../publicjsp/Public.jsp"></jsp:include>
<link href="${rt}/cash/css/PayMoneyNew.css" rel="stylesheet" type="text/css" />
<link href="${rt}/cash/css/PayCounts.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${rt}/cash/js/PayMoney.js"></script>
<title>顾客结账New</title>
</head>
<body onload="timers();">
<div id="py_main">
<!--标题行开始 -->
<div class="titleheader"></div>
<!--搜索开始 -->
<div class="serverbg">
<div class="serverbase">
<div id="serveralte">
<font>订单号:</font>
</div>
<span> <img src="${rt}/cash/images/serveriom.jpg" /> <input
id="ctname" />
</span>
<input type="button" onclick="checkctinfo();" class="btnser1"
value="确定" />
</div>
<!--显示餐台信息开始 -->
<div id="ctinfo">
<li><img src="${rt}/cash/images/news.png" /> 餐台号:
<a href="#">${order.diningTable.dinTabId}</a>
<span>点菜员:${order.waiter.empName}</span>
</li>
<li><img src="${rt}/cash/images/news.png" /> 餐台订单号:<a href="#">${order.orderId}</a></li>
<li><img src="${rt}/cash/images/news.png" /> 餐台描述:<a href="#">${order.diningTable.dinTabDesc}</a>
</li>
<li><img src="${rt}/cash/images/news.png" /> 下单时间:<a href="#"><font size="2">${order.createDate}</font></a>
</li>
<li><img src="${rt}/cash/images/news.png" /> 消费金额:<a href="#"><b>${money}${order.totalMoney}${yuan}</b></a>
</li>
</div>
<!--餐台消费信息开始 -->
<div class="ctconsume">
<div id="ctconsumetitle">
<span>餐台消费信息:</span>
</div>
<!--显示信息开始 -->
<div id="ctconsumeinfo">
<table id="infoTab" width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="tdcolor">菜品名称</td>
<td id="tdcolor">数量</td>
<td id="tdcolor">单价</td>
<td id="tdcolor">折扣率</td>
<td id="tdcolor">金额</td>
</tr>
</tbody>
<s:iterator value="#request.detail" var="dt" status="i">
<tr id="tdtext">
<td id="showleft">${i.count}.${dt.foodInfo.foodName}</td>
<td id="showcenter">${dt.foodCount}</td>
<td id="showcenter">${dt.foodInfo.foodPrice}</td>
<s:if test="#dt.foodInfo.foodDiscount==1">
<td id="showcenter">100%</td>
</s:if>
<s:else>
<td id="showcenter">${dt.foodInfo.foodDiscount}</td>
</s:else>
<td id="showcenter"><fmt:formatNumber value="${dt.foodInfo.foodPrice*dt.foodCount*dt.foodInfo.foodDiscount}" pattern="#0.0" /></td>
</tr>
</s:iterator>
</table>
</div>
</div>
</div>
<!-- 餐台开始 -->
<div id="showct" >
<ul class="showbackcolor">
<s:iterator value="#request.tableList" var="shwimg" status="i">
<s:if test="#shwimg.dinTabStatus==0">
<a href="#">
<li class="showempty" id="${shwimg.dinTabId}" onclick="getctinfo(${shwimg.dinTabId}) ;" ondblclick="dealwict(${shwimg.dinTabId});">
<span><b>${shwimg.dinTabId}</b>餐台</span>
</li>
</a>
</s:if>
<s:elseif test="#shwimg.dinTabStatus==1">
<a href="#">
<li class="markuse" id="${shwimg.dinTabId}" onclick="getctinfo(${shwimg.dinTabId});" ondblclick="dealwict(${shwimg.dinTabId});">
<span><b>${shwimg.dinTabId}</b>餐台</span>
</li>
</a>
</s:elseif>
</s:iterator>
</ul>
</div>
<!--弹出结算页面 -->
<div id="pc_main">
<header>
<h2>${ctnum}号餐桌结算</h2>
<h5>
收银前请核对金额,检查纸币真伪!
</h5>
</header>
<div id="pc_main_ctinfo">
<span >订单号:<font color="#FFFF00">${ordersession.orderId}</font>
</span>
<span id="pc_user">点菜员:${servuser}</span>
</div>
<div id="pc_center">
<!--显示信息开始 -->
<div id="ctconsume">
<table id="ctTab" border="0"width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="tdcolors">菜品名称</td>
<td id="tdcolors">数量</td>
<td id="tdcolors">单价</td>
<td id="tdcolors">折扣率</td>
<td id="tdcolors">金额</td>
</tr>
</tbody>
<s:iterator value="#session.detailsession" var="dts" status="i">
<tr id="cttd">
<td>${i.count}.${dts.foodInfo.foodName}</td>
<td>${dts.foodInfo.foodDiscount}元</td>
<td>${dts.foodInfo.foodPrice}元</td>
<td>${dts.foodInfo.foodDiscount}</td>
<td>${dts.foodInfo.foodPrice}元</td>
</tr>
</s:iterator>
</table>
</div>
</div >
<!--结算信息-->
<div class="cols">
<div class="half">
<span>结算信息:
<dd>品项:项</dd>
</span>
<strong id="pymoney">
<dd>应收金额:<font size="5" color="#2fa8ed" name="OrderInfo.totalMoney">¥${ordersession.totalMoney}元</font>
找零:<font size="5" id="countPrice"></font>
</dd>
</strong>
<input type="hidden" id="rvables" value=${ordersession.totalMoney}>
<form id="accountForm" action="orderInfo_CountPayMoney.action" method="post">
<li>
<label id="assount">会员号:</label>
<input type="text" name="assouid" id="assouid" size="20" maxlength="56" />
<label id="colletmoney">实收金额:</label>
<input type="text" name="getMomery" id="getMomery" size="20" maxlength="56"
onblur="countMoney(this.value);"/>
</li>
<input type="submit" id="btn"value="结 算" onclick="resultMoney();"/>
</form>
</div>
</div>
<div id="bottom">
</div>
</div>
<!--第一DIV显示页结束 -->
<!--第二个DIV找零页开始 -->
<div id="changMoney">
<h2 id="changctId"></h2>
<div id="pc_centers">
<dd>消费订单号:</dd>
<div id="pc_insertonery">
实收金额:<span></span>
</div>
<div id="pc_yinshoumonery">
应收金额:<span></span>
</div>
<div id="pc_cgmoney">
应找零:<span></span>
</div>
</div>
<div id="fishbtn">
<input type="button" id="btn"value="完 成" onclick="finshMoney();"/>
</div>
</div>
<!--积分兑换开始 -->
<div id="pc_Ings">
</div>
</body>
</html>