⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 queryorderdetail.jsp

📁 有关医院方向的开发
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ 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="hotelInfo.hotelsize" value="" maxlength="7"/>
				</td>	
			</tr>
			<tr class="listContent">
				<td align=right>
					客房价格(元/天):
				</td>
				<td>
					<html:text name="HotelForm" property="hotelInfo.hotelprice" value="" maxlength="7"/>
				</td>
				<td align=right>
					客房级别:
				</td>
				<td align=left>
					<html:select name="HotelForm" property="hotelInfo.hotellevel"   onkeydown="catch_keydown(this)" onkeypress="catch_press(this)" onfocus="catch_focus(this)" >
							<html:option value=''>   </html:option>
							<html:option value="单人间">单人间</html:option>
							<html:option value="标准双人房">标准双人房</html:option>
							<html:option value="豪华双人房">豪华双人房</html:option>
							<html:option value="家庭套房">家庭套房</html:option>
							<html:option value="公寓套房">公寓套房</html:option>
					</html:select>
				</td>
			</tr>
			
			<tr class="listContent" id="tr1" style="display:none">
				<td align=right>
					客户名称:
				</td>
				<td>
					<html:text name="HotelForm" property="hotelDetailInfo.custname" value="" maxlength="30"/>
				</td>
				<td align=right>
					身份证号码:
				</td>
				<td align=left>
					<html:text name="HotelForm" property="hotelDetailInfo.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="hotel" name="hotelList" indexId="index">
			<tr class="listContent">
				<td align=center><input type="checkbox" name="CHECKBOXVAL" value="<bean:write name="hotel" property="hotelsId" />" class="noborder"/></td>
				<td align=center><bean:write name="hotel" property="hotelname" />&nbsp; </td>
				<td align=center><bean:write name="hotel" property="hotelsize" />&nbsp;</td>
				<td align="center"><bean:write name="hotel" property="hotelprice" /></td>
				<td align="center"><bean:write name="hotel" property="hotellevel" /></td>
				<td align=center><bean:write name="hotel" property="hotelfloor" />&nbsp;</td>
				<td align=center><bean:write name="hotel" property="remark" />&nbsp;</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="hotelInfo.hotelsId" />:<bean:write name="hotel" property="hotelsDetailId" />" class="noborder"/></td>
				<td align=center><bean:write name="hotel" property="hotelInfo.hotelname" />&nbsp; </td>
				<td align=center><bean:write name="hotel" property="hotelInfo.hotelsize" />&nbsp;</td>
				<td align="center"><bean:write name="hotel" property="hotelInfo.hotelprice" /></td>
				<td align="center"><bean:write name="hotel" property="hotelInfo.hotellevel" /></td>
				<td align=center><bean:write name="hotel" property="hotelInfo.hotelfloor" />&nbsp;</td>
				<td align=center><bean:write name="hotel" property="custname" />&nbsp;</td>
                <td align=center><bean:write name="hotel" property="clubInfo.clubLevelName" />&nbsp;</td>
				<td align=center><bean:write name="hotel" property="custcertid" />&nbsp;</td>
				<td align=center><bean:write name="hotel" property="custphone" />&nbsp;</td>
				<td align=center><bean:write name="hotel" property="begintime" />&nbsp;</td>
				<td align=center><bean:write name="hotel" property="endtime" />&nbsp;</td>
				<td align=center><bean:write name="hotel" property="remark" />&nbsp;</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">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -