📄 orderroom.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.*"%>
<%@ page import="com.util.sendmessage.*"%>
<%@ page import="java.util.List"%>
<%@ page import="com.woyi.dto.ClubInfo"%>
<%@ include file="../../common/common.jsp"%>
<%
String RenCode = (String) session.getAttribute(SysConstant.RETCODE);
String SVCNUM = (String) session.getAttribute(SysConstant.PHONE);
String sendmessage = (String) session.getAttribute(SysConstant.SENDMESSAGE);
%>
<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/calendar/WdatePicker.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/others.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/dialog.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/print.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/ajax.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/pagination.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/calendar.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
</head>
<script language="javascript">
window.name="_window_hotel";
</script>
<%
if (RenCode !=null){
if (SysConstant.SUCRETCODE.equals(RenCode)) {
%>
<script language="javascript">
alert("包间预订成功!");
if(confirm("是否发送短信?")){
<%
int stat= SendMessage.sendMessage(SVCNUM,sendmessage,0);
if (stat == 1){
%>
alert("短信发送成功!");
<%
}else{%>
alert("短信发送失败!");
<%}%>
}
window.close();
</script>
<%
}else{
%>
<script language="javascript">
alert("包间预订失败,请联系管理员!");
</script>
<%
}
session.removeAttribute(SysConstant.RETCODE);
session.removeAttribute(SysConstant.PHONE);
session.removeAttribute(SysConstant.SENDMESSAGE);
}
%>
<body class="navtree">
<html:form action="/HoteOrderDetailAction" method="post" target="_window_hotel">
<html:hidden property="HotelForm" property="roomInfo.roomsId" />
<html:hidden property="HotelForm" property="roomInfo.roomsName" />
<html:hidden property="HotelForm" property="roomInfo.roomstableid" />
<html:hidden property="HotelForm" property="roomInfo.roomsSize" />
<html:hidden property="HotelForm" property="roomDetail.roomStatus" value="1"/>
<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=6>
预订信息
</td>
</tr>
<tr class="listContent">
<td align=right>
<font color="red">*</font>客户名称:
</td>
<td>
<html:text name="HotelForm" property="roomDetail.custname" maxlength="29" />
</td>
<td align=right>
<font color="red">*</font>客户类型:
</td>
<td align=left id="td3">
<select name="querytype" onchange="changeType()">
<option value="0">普通客户</option>
<option value="1">酒店会员</option>
</select>
</td>
<td align=right id="td1" style="display:none">
<font color="red">*</font>会员类型:
</td>
<td align=left id="td2" style="display:none">
<html:select name="HotelForm" property="roomDetail.clubId" >
<html:options collection="club_info_list" property="id" labelProperty="name" />
</html:select>
</td>
</tr>
<tr class="listContent">
<td align=right>
<font color="red">*</font>身份证号码:
</td>
<td>
<html:text name="HotelForm" property="roomDetail.custcertid" maxlength="19" />
</td>
<td align=right>
<font color="red">*</font>手机号码:
</td>
<td align=left>
<html:text name="HotelForm" property="roomDetail.custphone" maxlength="20" />
</td>
<td align=right>
其他信息:
</td>
<td align=left>
<html:text name="HotelForm" property="roomDetail.remark" maxlength="128" />
</td>
</tr>
<tr>
<td align=right >
<font color="red">*</font>预订类型:
</td>
<td align=left >
<html:select name="HotelForm" property="roomDetail.orderType" >
<html:option value="中餐">中餐</html:option>
<html:option value="晚餐">晚餐</html:option>
</html:select>
</td>
<td align=right >
<font color="red">*</font>预订日期:
</td>
<td align=left>
<input type ="text" name="begintime" maxlength="8" />
<font color='red'>
*
</font>
<IMG align="middle" src="<%=request.getContextPath()%>/images/calendar.gif" onclick="calendar(document.all('begintime'))">
</td>
<td align=right >
<font color="red">*</font>预订时刻:
</td>
<td align=left colspan=1>
<input type ="text" name="Hour" maxlength="4" />
<font color="red">如:0630</font>
<input type ="hidden" name="sendtime" />
</td>
</tr>
<tr class="listContent">
<td align=left colspan=6>
<input type=button class=save onClick="doSave();" />
<input type=button class=cancel onClick="window.close();" />
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
<script language="javascript">
function doSave(){
document.forms[0].elements["sendtime"].value = document.forms[0].elements["begintime"].value + document.forms[0].elements["Hour"].value+"00";
var items = new CheckItem();
items.add("0|1|roomDetail.custname|客户名称|-1");
if(document.forms[0].elements["querytype"].value =="1"){
if (document.forms[0].elements["roomDetail.clubId"].value ==""){
alert("请选择会员类型,谢谢!");
return;
}
}
items.add("7|1|roomDetail.custcertid|身份证号码|-1");
items.add("5|1|roomDetail.custphone|手机号码|-1");
items.add("6|1|begintime|预订日期|-1");
items.add("15|1|sendtime|预订时间|-1");
if(!checkForm(document.forms[0],items))
return false;
document.forms[0].action="HoteOrderDetailAction.do?method=OrdRoomInfo";
document.forms[0].submit();
}
function changeType(){
if (document.forms[0].elements["querytype"].value == "0"){
window.td1.style.display='none';
window.td2.style.display='none';
window.td3.style.colspan='3';
}else{
window.td1.style.display='';
window.td2.style.display='';
window.td3.style.colspan='1';
}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -