📄 queryorderdetail.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic"%>
<%@ page import="com.dc.common.*"%>
<%
String querytype = (String)request.getAttribute("querytype");
String RenCode = (String) session.getAttribute(SysConstant.RETCODE);
%>
<html:html>
<head>
<title>预定信息查询</title>
<link href="<%=request.getContextPath()%>/css/style.css"
rel="stylesheet" type="text/css">
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/check.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/page.js"></script>
<script language="javaScript" src="/scripts/dialog.js"></script>
<script language="javaScript" src="/scripts/pagination.js"></script>
<script language="javaScript" src="/scripts/selectOption.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<style>
input.button1 {
font-size: 9pt;
color: #195793;
background-color: white;
border: 2px #EEECFA dash;
background: url(<%=request.getContextPath()%>/images/newbutton.gif) no repeat;
width: 40px;
height: 20px;
border: 0px;
cursor: hand;
}
</style>
</head>
<script language="javascript">
</script>
<%
if (RenCode !=null){
if (SysConstant.SUCRETCODE.equals(RenCode)) {
%>
<script language="javascript">
alert("操作成功!");
window.close();
</script>
<%
}else{
%>
<script language="javascript">
alert("操作失败,请联系管理员!");
</script>
<%
}
session.removeAttribute(SysConstant.RETCODE);
}
%>
<body class="navtree">
<html:form action="/HoteOrderDetailAction" method="post">
<table cellpadding="1" cellspacing="0" class="nav01">
<tr>
<td>
<img src="<%=request.getContextPath()%>/images/b1.gif" width="12"
height="12" />
您现在的位置:包间预订管理>>预订信息查询
<br>
</td>
</tr>
</table>
<html:errors />
<table id="info" border="1" bordercolor="#7FB0DE"
bordercolordark="#ffffff" cellpadding="1" cellspacing="0"
class="content01">
<tr class="listHead">
<td align=left colspan=4>
包间信息
</td>
<tr class="listContent">
<td align=right>
查询类型:
</td>
<td align=left>
<select name="querytype" onchange="changeType()">
<option value="0">未订包间</option>
<option value="1">预订包间</option>
<option value="2">正用包间</option>
</select>
</td>
<td align=right>
包间名称:
</td>
<td align=left>
<html:text name="HotelForm" property="roomInfo.roomsName" value="" maxlength="30"/>
</td>
</tr>
<tr class="listContent">
<td align=right>
大厅桌号:
</td>
<td>
<html:text name="HotelForm" property="roomInfo.roomstableid" value="" maxlength="7"/>
</td>
<td align=right>
客座数:
</td>
<td align=left>
<html:text name="HotelForm" property="roomInfo.roomsSize" value="" maxlength="7"/>
</td>
</tr>
<tr class="listContent" id="tr1" style="display:none">
<td align=right>
客户名称:
</td>
<td>
<html:text name="HotelForm" property="roomDetail.custname" value="" maxlength="30"/>
</td>
<td align=right>
身份证号码:
</td>
<td align=left>
<html:text name="HotelForm" property="roomDetail.custcertid" value="" maxlength="19"/>
</td>
</tr>
<tr class="listContent">
<td align=left colspan=4>
<input type="button" class="query" onClick="query();">
</td>
</tr>
</table>
<%if ("0".equals(querytype)){ %>
<logic:present name="hotelList">
<div id="biaoge">
<table class="content01">
<tr class="listHead">
<td align=center>选择</td>
<td align=center>包间名称</td>
<td align=center>大厅桌号</td>
<td align="center">客座数</td>
<td align="center">楼层</td>
<td align=center>所属分店</td>
<td align=center>其他信息</td>
</tr>
<logic:iterate id="room" name="hotelList" indexId="index">
<tr class="listContent">
<td align=center><input type="checkbox" name="CHECKBOXVAL" value="<bean:write name="room" property="roomsId" />" class="noborder"/></td>
<td align=center><bean:write name="room" property="roomsName" /> </td>
<td align=center><bean:write name="room" property="roomstableid" /> </td>
<td align="center"><bean:write name="room" property="roomsSize" /></td>
<td align="center"><bean:write name="room" property="hotelfloor" /></td>
<td align=center><bean:write name="room" property="hoteltype" /> </td>
<td align=center><bean:write name="room" property="remark" /> </td>
</tr>
</logic:iterate>
<tr class="listContent">
<td align=left colspan=10>
<input type="button" class="button1" value ="预订" onClick="doModify();">
</td>
</tr>
</table>
</div>
</logic:present>
<%} %>
<%if ("1".equals(querytype)){ %>
<logic:present name="hotelList">
<div id="biaoge">
<table class="content01">
<tr class="listHead">
<td align=center>选择</td>
<td align=center>包间名称</td>
<td align=center>大厅桌号</td>
<td align="center">客座数</td>
<td align="center">楼层</td>
<td align=center>所属分店</td>
<td align=center>预订客户</td>
<td align=center>客户类型</td>
<td align=center>身份证号码</td>
<td align=center>手机号码</td>
<td align=center>预订类型</td>
<td align=center>预订时间</td>
<td align=center>其他信息</td>
</tr>
<logic:iterate id="hotel" name="hotelList" indexId="index">
<tr class="listContent">
<td align=center><input type="checkbox" name="CHECKBOXVAL" value="<bean:write name="hotel" property="roomInfo.roomsId" />:<bean:write name="hotel" property="roomsDetailId" />" class="noborder"/></td>
<td align=center><bean:write name="hotel" property="roomInfo.roomsName" /> </td>
<td align=center><bean:write name="hotel" property="roomInfo.roomstableid" /> </td>
<td align="center"><bean:write name="hotel" property="roomInfo.roomsSize" /></td>
<td align="center"><bean:write name="hotel" property="roomInfo.hotelfloor" /></td>
<td align=center><bean:write name="hotel" property="roomInfo.hoteltype" /> </td>
<td align=center><bean:write name="hotel" property="custname" /> </td>
<td align=center><bean:write name="hotel" property="clubInfo.clubLevelName" /> </td>
<td align=center><bean:write name="hotel" property="custcertid" /> </td>
<td align=center><bean:write name="hotel" property="custphone" /> </td>
<td align=center><bean:write name="hotel" property="orderType" /> </td>
<td align=center><bean:write name="hotel" property="begintime" /> </td>
<td align=center><bean:write name="hotel" property="remark" /> </td>
</tr>
</logic:iterate>
<tr class="listContent">
<td align=left colspan=13>
<input type="button" class="button1" value ="入席" onClick="checkinfo();">
<input type="button" class="button1" value ="预订" onClick="doModify();">
<input type="button" class="button1" value ="退订" onClick="cancle();">
</td>
</tr>
</table>
</div>
</logic:present>
<%} %>
<%if ("2".equals(querytype)){ %>
<logic:present name="hotelList">
<div id="biaoge">
<table class="content01">
<tr class="listHead">
<td align=center>选择</td>
<td align=center>包间名称</td>
<td align=center>大厅桌号</td>
<td align="center">客座数</td>
<td align="center">楼层</td>
<td align=center>所属分店</td>
<td align=center>预订客户</td>
<td align=center>客户类型</td>
<td align=center>身份证号码</td>
<td align=center>手机号码</td>
<td align=center>就餐类型</td>
<td align=center>预订时间</td>
<td align=center>其他信息</td>
</tr>
<logic:iterate id="hotel" name="hotelList" indexId="index">
<tr class="listContent">
<td align=center><input type="checkbox" name="CHECKBOXVAL" value="<bean:write name="hotel" property="roomInfo.roomsId" />:<bean:write name="hotel" property="roomsDetailId" />" class="noborder"/></td>
<td align=center><bean:write name="hotel" property="roomInfo.roomsName" /> </td>
<td align=center><bean:write name="hotel" property="roomInfo.roomstableid" /> </td>
<td align="center"><bean:write name="hotel" property="roomInfo.roomsSize" /></td>
<td align="center"><bean:write name="hotel" property="roomInfo.hotelfloor" /></td>
<td align=center><bean:write name="hotel" property="roomInfo.hoteltype" /> </td>
<td align=center><bean:write name="hotel" property="custname" /> </td>
<td align=center><bean:write name="hotel" property="clubInfo.clubLevelName" /> </td>
<td align=center><bean:write name="hotel" property="custcertid" /> </td>
<td align=center><bean:write name="hotel" property="custphone" /> </td>
<td align=center><bean:write name="hotel" property="orderType" /> </td>
<td align=center><bean:write name="hotel" property="begintime" /> </td>
<td align=center><bean:write name="hotel" property="remark" /> </td>
</tr>
</logic:iterate>
<tr class="listContent">
<td align=left colspan=13>
<input type="button" class="button1" value ="预订" onClick="doModify();">
<input type="button" class="button1" value ="结帐" onClick="cancle();">
</td>
</tr>
</table>
</div>
</logic:present>
<%} %>
<logic:present name="hotelList">
<%@ include file="../../common/page.jsp"%>
</logic:present>
</html:form>
</body>
</html:html>
<script language="javascript">
function query(){
document.forms[0].action="HoteOrderDetailAction.do?method=queryROrderDetail";
document.forms[0].submit();
}
function cancle(){
var boxes = document.getElementsByName("CHECKBOXVAL");
var cn = 0;
var cn1 =0;
for (var i = 0; i < boxes.length; i++){
if (!boxes[i].checked){
cn++;
}
}
if(cn == boxes.length){
alert('请选择结帐包间,谢谢!');
return false;
}
document.forms[0].action="HoteOrderDetailAction.do?method=cancleRoomInfo&checktype=0";
document.forms[0].submit();
}
function doModify(){
var boxes = document.getElementsByName("CHECKBOXVAL");
var cn = 0;
var i=0;
var value;
for (i = 0; i < boxes.length; i++){
if (boxes[i].checked){
value = boxes[i].value;
cn++;
}
}
if(cn >1){
alert('一次只能预订一个,谢谢!');
return false;
}
if (cn==0){
alert('请选择预订包间,谢谢!');
return false;
}
var sFeatures = "dialogWidth:800px;dialogHeight:600px;status:no;scroll:no;help:no;resizable:yes";
var rtnVal = window.showModalDialog('HoteOrderDetailAction.do?method=initOrdRoom&CHECKBOXVAL='+value, '', sFeatures);
}
function checkinfo(){
var boxes = document.getElementsByName("CHECKBOXVAL");
var cn = 0;
var i=0;
var value;
for (i = 0; i < boxes.length; i++){
if (boxes[i].checked){
value = boxes[i].value;
cn++;
}
}
if(cn >1){
alert('一次只能入住一个,谢谢!');
return false;
}
if (cn==0){
alert('请选择入席包间,谢谢!');
return false;
}
document.forms[0].action="HoteOrderDetailAction.do?method=cancleRoomInfo&checktype=2";
document.forms[0].submit();
}
function changeType(){
if (document.forms[0].elements["querytype"].value == "0"){
window.tr1.style.display='none';
}else{
window.tr1.style.display='';
}
}
function gotoPage(pageNo){
window.location.href="HoteOrderDetailAction.do?method=queryROrderDetail&pageNo="+pageNo;
}
<%
if (null != querytype ){
%>
document.forms[0].elements["querytype"].value =<%=querytype%>;
<%
}
%>
if (document.forms[0].elements["querytype"].value == "0"){
window.tr1.style.display='none';
}else{
window.tr1.style.display='';
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -