testDataList.jsp
4.18 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
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>单表管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
$(document).ready(function() {
});
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/xuygtest/testData/">单表列表</a></li>
<shiro:hasPermission name="xuygtest:testData:edit"><li><a href="${ctx}/xuygtest/testData/form">单表添加</a></li></shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="testData" action="${ctx}/xuygtest/testData/" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<ul class="ul-form">
<li><label>归属用户:</label>
<sys:treeselect id="user" name="user.id" value="${testData.user.id}" labelName="user.name" labelValue="${testData.user.name}"
title="用户" url="/sys/office/treeData?type=3" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
</li>
<li><label>归属部门:</label>
<sys:treeselect id="office" name="office.id" value="${testData.office.id}" labelName="office.name" labelValue="${testData.office.name}"
title="部门" url="/sys/office/treeData?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
</li>
<li><label>归属区域:</label>
<sys:treeselect id="area" name="area.id" value="${testData.area.id}" labelName="area.name" labelValue="${testData.area.name}"
title="区域" url="/sys/area/treeData" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
</li>
<li><label>名称:</label>
<form:input path="name" htmlEscape="false" maxlength="100" class="input-medium"/>
</li>
<li><label>性别:</label>
<form:radiobuttons path="sex" items="${fns:getDictList('sex')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
</li>
<li><label>加入日期:</label>
<input name="beginInDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
value="<fmt:formatDate value="${testData.beginInDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss' });"/> -
<input name="endInDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
value="<fmt:formatDate value="${testData.endInDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss' });"/>
</li>
<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
<li class="clearfix"></li>
</ul>
</form:form>
<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>
<shiro:hasPermission name="xuygtest:testData:edit"><th>操作</th></shiro:hasPermission>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="testData">
<tr>
<td><a href="${ctx}/xuygtest/testData/form?id=${testData.id}">
${testData.user.name}
</a></td>
<td>
${testData.office.name}
</td>
<td>
${testData.area.name}
</td>
<td>
${testData.name}
</td>
<td>
${fns:getDictLabel(testData.sex, 'sex', '')}
</td>
<td>
<fmt:formatDate value="${testData.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<td>
${testData.remarks}
</td>
<shiro:hasPermission name="xuygtest:testData:edit"><td>
<a href="${ctx}/xuygtest/testData/form?id=${testData.id}">修改</a>
<a href="${ctx}/xuygtest/testData/delete?id=${testData.id}" onclick="return confirmx('确认要删除该单表吗?', this.href)">删除</a>
</td></shiro:hasPermission>
</tr>
</c:forEach>
</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>