customSearchInfo.jsp
7.49 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
<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="weaver.formmode.service.CustomSearchService"%>
<%@page import="weaver.formmode.service.LogService"%>
<%@page import="weaver.formmode.virtualform.*"%>
<%@page import="weaver.formmode.Module"%>
<%@ include file="/formmode/pub.jsp"%>
<%@ page import="weaver.general.Util"%>
<%
if (!HrmUserVarify.checkUserRight("FORMMODEAPP:ALL", user)) {
response.sendRedirect("/notice/noright.jsp");
return;
}
%>
<%
int customSearchId = Util.getIntValue(request.getParameter("id"), 0);
int appid = Util.getIntValue(request.getParameter("appid"), 0);
int formId = 0;
int modeId = 0;
String norightlist="";
String customname = "";
String customdesc = "";
CustomSearchService customSearchService=new CustomSearchService();
if(customSearchId!=0){
Map<String,Object> map=customSearchService.getCustomSearchById(customSearchId);
if(map.size()>0){
customname = Util.toScreen(Util.null2String(map.get("customname")),user.getLanguage());
customdesc = Util.toScreen(Util.null2String(map.get("customdesc")),user.getLanguage());
formId = Util.getIntValue(Util.null2String(map.get("formid")));
modeId = Util.getIntValue(Util.null2String(map.get("modeid")));
norightlist=Util.toScreen(Util.null2String(map.get("norightlist")),user.getLanguage());
}
}
%>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="/formmode/js/ext/resources/css/ext-all_wev8.css" />
<script type="text/javascript" src="/formmode/js/ext/adapter/ext/ext-base_wev8.js"></script>
<script type="text/javascript" src="/formmode/js/ext/ext-all_wev8.js"></script>
<script type="text/javascript" src="/formmode/js/ext/ux/miframe_wev8.js"></script>
<script type="text/javascript" src="/formmode/js/jquery/simpleTabs/simpleTabs_wev8.js"></script>
<style type="text/css">
* {font:12px Microsoft YaHei}
html,body{
height: 100%;
margin: 0px;
padding: 0px 0 0 2px;
}
.e8_right_top{
padding: 13px 10px 0px 10px;
position: relative;
}
.e8_right_top .e8_baseinfo{
border-bottom: 1px solid #E9E9E9;
padding-bottom: 16px;
}
.e8_right_top .e8_baseinfo_name{
font-size: 18px;
color: #333;
}
.e8_right_top .e8_baseinfo_modify{
font-size: 12px;
color: #AFAFAF;
}
.e8_right_top ul{
list-style: none;
position: absolute;
right: 20px;
bottom: 15px;
}
.e8_right_top ul li{
float: left;
padding: 0px 5px;
}
.e8_right_top ul li a{
display: block;
font-size: 15px;
color: #A3A3A3;
padding: 1px;
text-decoration: none;
cursor: pointer;
border-bottom: 2px solid #fff;
}
.e8_right_top ul li.selected a{
color: #0072C6;
border-bottom: 2px solid #0072C6;
}
.e8_right_center{
overflow: hidden;
padding: 0px 10px;
}
.e8_right_center .e8_right_frameContainer{
display: none;
height: 100%;
}
</style>
<script type="text/javascript">
$(document).ready(function () {
$(window).resize(forPageResize);
forPageResize();
$(".e8_right_tabs").simpleTabs();
});
function forPageResize(){
var $body = $(document.body);
var $e8_right_top = $(".e8_right_top");
var $e8_right_center = $(".e8_right_center");
var centerHeight = $body.height() - $e8_right_top.outerHeight(true);
$e8_right_center.height(centerHeight);
}
function copyCustomSearcSetting(){
var id = <%=customSearchId%>;
if(id>0){
if(confirm("<%=SystemEnv.getHtmlLabelName(82060,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(82061,user.getLanguage())%><%=customname%><%=SystemEnv.getHtmlLabelName(82062,user.getLanguage())%>")){//提示:确认要复制【】吗?
jQuery.ajax({
type: "POST",
dataType:"json",
url: "/weaver/weaver.formmode.servelt.CustomSearchAction",
data: "id="+id+"&action=customcopy",
success: function(data){
if(data){
parent.refreshCustomSearch(data.id);
}
}
});
}
}else{
parent.Dialog.alert("<%=SystemEnv.getHtmlLabelName(82059,user.getLanguage())%>");//请先保存数据,再复制!
}
}
</script>
</head>
<body>
<div class="e8_right_top">
<div style="width:40px;float:left;margin:2px 10px 0 0;"><img src="/formmode/images/searchIconRounded_wev8.png" /></div>
<div class="e8_baseinfo">
<div class="e8_baseinfo_name">
<%=SystemEnv.getHtmlLabelName(82063,user.getLanguage())%> / <%=customname%><!-- 查询列表 -->
</div>
<div class="e8_baseinfo_modify">
<%LogService logService = new LogService(); %>
<%=SystemEnv.getHtmlLabelName(82013,user.getLanguage())%>:<%=logService.getLastOptTime(customSearchId, Module.SEARCH) %><!-- 最后编辑时间 -->
</div>
</div>
<div class="e8_right_tabs">
<ul>
<li href="#tabs-content-1" defaultSelected="true"><a><%=SystemEnv.getHtmlLabelName(81990,user.getLanguage())%></a></li><!-- 基础 -->
<%if(customSearchId>0){ %>
<li href="#tabs-content-2"><a><%=SystemEnv.getHtmlLabelName(16503,user.getLanguage())%></a></li><!-- 字段定义 -->
<li href="#tabs-content-3"><a><%=SystemEnv.getHtmlLabelName(385,user.getLanguage())%></a></li><!-- 权限 -->
<li href="#tabs-content-6"><a><%=SystemEnv.getHtmlLabelName(82064,user.getLanguage())%></a></li><!-- 自定义按钮 -->
<li href="#tabs-content-4"><a><%=SystemEnv.getHtmlLabelName(31914,user.getLanguage())%></a></li><!-- 批量操作 -->
<li href="#tabs-content-7"><a><%=SystemEnv.getHtmlLabelName(124822,user.getLanguage())%></a></li><!--工具栏搜索 -->
<li href="#tabs-content-5"><a><%=SystemEnv.getHtmlLabelName(83,user.getLanguage())%></a></li><!-- 日志 -->
<%}%>
</ul>
</div>
</div>
<div class="e8_right_center">
<div id="tabs-content-1" class="e8_right_frameContainer">
<iframe id="baseIframe" frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/setup/customSearchBase.jsp?appid=<%=appid %>&id=<%=customSearchId %>">
</iframe>
</div>
<%if(customSearchId>0){ %>
<div id="tabs-content-2" class="e8_right_frameContainer">
<iframe frameborder="0" style="width: 100%;height: 100%;" scrolling="no" lazy-src="/formmode/setup/customSearchField.jsp?id=<%=customSearchId %>&norightlist=<%=norightlist%>">
</iframe>
</div>
<div id="tabs-content-3" class="e8_right_frameContainer">
<iframe frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/search/CustomSearchShare.jsp?id=<%=customSearchId %>&formId=<%=formId%>&modeId=<%=modeId%>&norightlist=<%=norightlist%>">
</iframe>
</div>
<div id="tabs-content-4" class="e8_right_frameContainer">
<iframe frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/batchoperate/ModeBatchSet.jsp?id=<%=customSearchId %>">
</iframe>
</div>
<div id="tabs-content-5" class="e8_right_frameContainer">
<iframe id="logFrame" name="logFrame" frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/setup/log.jsp?objid=<%=customSearchId%>&logmodule=<%=Module.SEARCH %>">
</iframe>
</div>
<div id="tabs-content-6" class="e8_right_frameContainer">
<iframe id="logFrame" name="logFrame" frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/search/CustomSearchButton.jsp?id=<%=customSearchId%>">
</iframe>
</div>
<div id="tabs-content-7" class="e8_right_frameContainer">
<iframe id="logFrame" name="logFrame" frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/search/CustomSearchToolbar.jsp?id=<%=customSearchId%>&type=1">
</iframe>
</div>
<%}%>
</div>
</body>
</html>