8377b390636ac0cc5b57040cd052dd90e374ab5c.svn-base
6.27 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<%@ 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() {
hideMask();
});
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
function auditXm(id){
if(confirm('审核后数据将正式生效,并且不能删除和修改。确认要审核该信息吗?')){
url = "${ctx}/reg/base/regBaseXm/audit?id="+id;
window.location.href=url;
}
}
function unauditXm(id){
$.ajax({
type:"POST",
url:"${ctx}/reg/base/regBaseZrz/isnounaudit",
cache: false,
data:"id="+id+"&bj=4",
async : false,
success:function(modelmap){
if(modelmap.success == 0){
if(confirm('反审核后数据恢复可删除和修改。确认要反审核该信息吗?')){
url = "${ctx}/reg/base/regBaseXm/unaudit?id="+id;
window.location.href=url;
}
}else{
alert(modelmap.msg);
return;
}
}
});
}
function exportXm(id){
showMask();
$.ajax({
type:"POST",
url:"${ctx}/reg/base/regBaseXm/xmExport",
cache: false,
data:"XMID="+id,
async : false,
success:function(modelmap){
if(modelmap.success == 0){
hideMask();
}else{
hideMask();
}
}
});
}
function showMask(){
$("#mask").css("height",$(document).height());
$("#mask").css("width",$(document).width());
$("#mask").show();
window.setTimeout("hideMask()",5000);//使用字符串执行方法
}
function hideMask(){
$("#mask").hide();
}
function Xmdaoru()
{
$.jBox($("#importXmForm").html(), {title:"导入数据", buttons:{"关闭":true},
bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});
}
//打开导入界面
function importOpen(){
// var iWidth=1100;
// var iHeight=600;
// var iTop = (window.screen.height - 30 - iHeight) / 2;
// var iLeft = (window.screen.width - 10 - iWidth) / 2;
// window.open("/ODM/a/reg/base/regBaseXm/upload","项目导入",
// "height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
var url = "${ctx}/reg/base/regBaseXm/upload";
window.location = url;
}
</script>
</head>
<body>
<div id="mask" class="mask">
<div class="maskloading"></div>
</div>
<div id="importBox" class="hide">
<form id="importXmForm" action="${ctx}/reg/base/regBaseXm/importFile" method="post" enctype="multipart/form-data"
class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading('正在导入,请稍等...');"><br/>
<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>
<input id="btnImportSubmit" class="btn btn-primary" type="submit" value=" 导 入 " />
<a href="#">下载模板</a>
</form>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/reg/base/regBaseXm/">项目(小区)信息列表</a></li>
</ul>
<form:form id="searchForm" modelAttribute="regBaseXm" action="${ctx}/reg/base/regBaseXm/exportXm" 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}"/>
<table>
<tr>
<td>项目编码 </td>
<td>
<form:input path="xmbh" htmlEscape="false" maxlength="30" class="input-medium"/>
</td>
<td> 项目名称 </td>
<td>
<form:input path="xmmc" htmlEscape="false" maxlength="80" class="input-medium"/>
</td>
<td> 建设单位 </td>
<td>
<form:input path="jsdwmc" htmlEscape="false" maxlength="100" class="input-medium"/>
</td>
<td> 说明 </td>
<td>
<form:input path="sm" htmlEscape="false" maxlength="300" class="input-medium"/>
</td>
<td class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></td>
<td class="clearfix"></td>
</tr>
</table>
</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>
<th>创建人</th>
<th>最后修改时间</th>
<th>最后修改人</th>
<shiro:hasPermission name="reg:base:regBaseXm:edit"><th>操作</th></shiro:hasPermission>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="regBaseXm">
<tr>
<shiro:hasPermission name="reg:base:regBaseXm:view">
<td><%--<a href="${ctx}/reg/base/regBaseXm/form?id=${regBaseXm.id}&view=1"></a> --%>
${regBaseXm.xmbh}
</td>
</shiro:hasPermission>
<td>
${regBaseXm.xmmc}
</td>
<td>
${regBaseXm.jsdwmc}
</td>
<td>
${fns:getDictLabel(regBaseXm.zjzl, 'reg_bus_zjlx', '')}
</td>
<td>
${regBaseXm.zjh}
</td>
<td>
${regBaseXm.sm}
</td>
<td>
<fmt:formatDate value="${regBaseXm.sqsj}" pattern="yyyy-MM-dd"/>
</td>
<td>
${regBaseXm.creater}
</td>
<td>
<fmt:formatDate value="${regBaseXm.updateDate}" pattern="yyyy-MM-dd"/>
</td>
<td>
${regBaseXm.updater}
</td>
<shiro:hasPermission name="reg:base:regBaseXm:edit"><td>
<c:if test="${regBaseXm.isaudit ne '2'}">
<c:if test="${zchinfo ne '1'}">
<a href="${ctx}/reg/base/regBaseZrz/zrzExportList?XMID=${regBaseXm.id}">幢[栋]信息</a>
</c:if>
<c:if test="${zchinfo eq '1'}">
<a href="${ctx}/reg/base/regBaseZrz/zrzExportList?XMID=${regBaseXm.id}&zchinfo=${zchinfo}">幢[栋]信息</a>
</c:if>
<%-- <a href="${ctx}/reg/base/regBaseXm/xmExport?XMID=${regBaseXm.id}" onclick="showMask()">项目导出</a>--%>
</c:if>
</td></shiro:hasPermission>
</tr>
</c:forEach>
</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>