300cbb53c2f5c0189d4dda72648491ca804201d4.svn-base 3.69 KB
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>微信预约管理</title>
	<meta name="decorator" content="default"/>
	<link href="${ctxStatic}/gis/lib/layer.css" type="text/css" rel="stylesheet" />
	<script src="${ctxStatic}/gis/lib/layer.js" type="text/javascript"></script>

	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		function sign(id){
			window.location.href="${ctx}/wechat/wxOrder/sign?id="+id;
			window.close();
		}
		
		
		function call(yyid){
			$.ajax({
					type : "POST",
					url : "${ctx}/wechat/wxOrder/call",
					cache : false,
					data : "yyid="+yyid,
					async : false,
					success : function(modelmap) {
						if(!modelmap.success){
							alert(modelmap.resultMsg);
					}
			}
			})
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/wechat/wxOrder/">微信预约列表</a></li>
		<shiro:hasPermission name="wechat:wxOrder:edit"><li><a href="${ctx}/wechat/wxOrder/form">微信预约添加</a></li></shiro:hasPermission>
	</ul>
	
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
			    <th>预约人名称</th>
				<th>预约单号</th>
				<th>预约大类</th>
				<th>预约小类</th>
				<th>预约日期</th>
				<th>预约时间段</th>
				
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${list}" var="wxOrder">
		    <c:if test="${wxOrder.sign eq '4'}">
			<tr>
			<td style="background:red">${wxOrder.yyrmc}</td>
			<td style="background:red">${wxOrder.yydh}</td>
			<td style="background:red">${fns:getDictLabel(wxOrder.ywdl, 'wx_ywdl', '')}</td>
			<td style="background:red">${fns:getDictLabel(wxOrder.ywxl, 'wx_ywxl', '')}</td>
			<td style="background:red">${wxOrder.yydate}</td>
			<td style="background:red">${wxOrder.yysjd}</td>
				<td style="background:red">
					 已取消
				</td>
			</tr>
			</c:if>
		   <c:if test="${wxOrder.sign eq '3'}">
			<tr>
			<td style="background:red">${wxOrder.yyrmc}</td>
			<td style="background:red">${wxOrder.yydh}</td>
			<td style="background:red">${fns:getDictLabel(wxOrder.ywdl, 'wx_ywdl', '')}</td>
			<td style="background:red">${fns:getDictLabel(wxOrder.ywxl, 'wx_ywxl', '')}</td>
			<td style="background:red">${wxOrder.yydate}</td>
			<td style="background:red">${wxOrder.yysjd}</td>
				<td style="background:red">
					 已失效
				</td>
			</tr>
			</c:if>
			<c:if test="${wxOrder.sign eq '1'}">
			<tr>
			<td style="background:green">${wxOrder.yyrmc}</td>
			<td style="background:green">${wxOrder.yydh}</td>
			<td style="background:green">${fns:getDictLabel(wxOrder.ywdl, 'wx_ywdl', '')}</td>
			<td style="background:green">${fns:getDictLabel(wxOrder.ywxl, 'wx_ywxl', '')}</td>
			<td style="background:green">${wxOrder.yydate}</td>
			<td style="background:green">${wxOrder.yysjd}</td>
				<td style="background:green">
					 已办理
				</td>
			</tr>
			</c:if>
			
			<c:if test="${wxOrder.sign ne '1' && wxOrder.sign ne '3' && wxOrder.sign ne '4'}">
			<tr>
			<td>${wxOrder.yyrmc}</td>
			<td>${wxOrder.yydh}</td>
			<td>${fns:getDictLabel(wxOrder.ywdl, 'wx_ywdl', '')}</td>
			<td>${fns:getDictLabel(wxOrder.ywxl, 'wx_ywxl', '')}</td>
			<td>${wxOrder.yydate}</td>
			<td>${wxOrder.yysjd}</td>
				<td>
					<a href="#" onclick="call('${wxOrder.yyid}')">叫号</a>
					
					<a href="#" onclick="sign('${wxOrder.id}')">签到</a>
				</td>
			</tr>
			</c:if>
			
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>