300cbb53c2f5c0189d4dda72648491ca804201d4.svn-base
3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<%@ 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>