publishLog.jsp
8.07 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
<%--
Created by IntelliJ IDEA.
User: SJZ
Date: 2018/1/2
--%>
<%@ page import="com.api.integration.esb.constant.EsbConstant" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea" %>
<HTML>
<HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<link rel="stylesheet" href="/css/ecology8/request/requestTopMenu_wev8.css" type="text/css"/>
<link rel="stylesheet" href="/wui/theme/ecology8/jquery/js/zDialog_e8_wev8.css" type="text/css"/>
<script type="text/javascript" src="/js/dragBox/parentShowcol_wev8.js"></script>
<link rel="stylesheet" href="/css/ecology8/request/requestView_wev8.css" type="text/css"/>
</head>
<%
if (!HrmUserVarify.checkUserRight(EsbConstant.ESB_RIGHT_KEY, user)) {
response.sendRedirect("/notice/noright.jsp");
return;
}
String titlename = SystemEnv.getHtmlLabelName(381998, user.getLanguage());
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
String searchValue = Util.null2String(request.getParameter("searchValue"));
String sqlwhere = " WHERE 1=1 ";
if (!searchValue.isEmpty()) {
sqlwhere += " AND (L.PUBLISHID LIKE '%" + searchValue + "%' OR P.PUBLISHNAME LIKE '%" + searchValue + "%')";
}
sqlwhere += " GROUP BY L.PUBLISHID ";
//列表控件数据准备
String backfields = " L.PUBLISHID PUBLISHID, MAX(P.PUBLISHNAME) PUBLISHNAME, COUNT(1) RUNNUM, " +
" SUM(CASE L.RUNSTATE WHEN '1' THEN 1 ELSE 0 END) AS SNUM, " +
" SUM(CASE L.RUNSTATE WHEN '1' THEN 0 ELSE 1 END) AS ENUM, " +
" AVG(L.RUNTIME) RUNTIME ";
String PageConstId = "ESB_LOG_LIST_TABLE";
String fromSql = " ESB_LOG L LEFT JOIN ESB_PUBLISH P ON L.PUBLISHID = P.PUBLISHID ";
String sqlorderby = " ";
String tableString = " <table instanceid=\"ListTable\" tabletype=\"none\" pagesize=\"" + PageIdConst.getPageSize(PageConstId, user.getUID(), PageIdConst.Browser) + "\" >";
tableString += " <checkboxpopedom popedompara=\"column:PUBLISHID\" showmethod=\"weaver.general.SplitPageTransmethod.getCheckBox\" />" +
" <sql backfields=\"" + backfields + "\" sqlform=\"" + fromSql + "\" sqlwhere=\"" + Util.toHtmlForSplitPage(sqlwhere) + "\" sqlorderby=\"" + sqlorderby + "\" sqlprimarykey=\"L.PUBLISHID\" sqlsortway=\"Aesc\" sqlisdistinct=\"true\" />" +
" <head>" +
//标识
" <col column=\"PUBLISHID\" width=\"20%\" pkey=\"PUBLISHID+com.api.integration.util.TableShowFormart.formartToEditParams\" text=\"" + SystemEnv.getHtmlLabelName(84, user.getLanguage()) + "\" transmethod=\"com.api.integration.util.TableShowFormart.formartToEditParams\" target=\"_self\" otherpara=\"column:PUBLISHNAME\"/>" +
//名称
" <col column=\"publishname\" width=\"20%\" pkey=\"publishname\" text=\"" + SystemEnv.getHtmlLabelName(195, user.getLanguage()) + "\" />" +
//执行情况
" <col column=\"RUNNUM\" width=\"20%\" pkey=\"RUNNUM+com.api.integration.util.TableShowFormart.formartToRunNum\" text=\"" + SystemEnv.getHtmlLabelName(382080, user.getLanguage()) + "\" transmethod=\"com.api.integration.util.TableShowFormart.formartToRunNum\" otherpara=\"column:RUNNUM+column:sNum+column:eNum\"/>" +
//平均时长
" <col column=\"RUNTIME\" width=\"20%\" pkey=\"RUNTIME+com.api.integration.util.TableShowFormart.formartRound\" text=\"" + SystemEnv.getHtmlLabelName(382081, user.getLanguage()) + "(ms)\" transmethod=\"com.api.integration.util.TableShowFormart.formartRound\" />" +
" </head>" +
"<operates width=\"20%\">" +
" <popedom transmethod=\"weaver.general.SplitPageTransmethod.getOpratePopedom\" otherpara=\"1\" ></popedom> " +
" <operate href=\"javascript:doEditById()\" text=\"" + SystemEnv.getHtmlLabelNames("1338,126218", user.getLanguage()) + "\" target=\"_fullwindow\" otherpara=\"column:PUBLISHNAME\" index=\"0\"/>" +
"</operates>" +
" </table>";
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<table id="topTitle" cellpadding="0" cellspacing="0">
<tr>
<td></td>
<td class="rightSearchSpan" style="text-align:right; width:500px!important">
<%--快速搜索--%>
<input type="text" class="searchInput" name="searchValue" value="<%=searchValue%>"/>
<%--菜单--%>
<span title="<%=SystemEnv.getHtmlLabelName(23036,user.getLanguage()) %>" class="cornerMenu"></span>
</td>
</tr>
</table>
<div id="tabDiv">
<span style="font-size:14px;font-weight:bold;"><%=titlename%></span>
</div>
<div class="cornerMenuDiv"></div>
<div class="advancedSearchDiv" id="advancedSearchDiv">
<form action="#" method="post" name="datalist" id="datalist">
<wea:layout type="4col">
<wea:group context='<%= SystemEnv.getHtmlLabelName(20331,user.getLanguage())%>'>
<wea:item><%=SystemEnv.getHtmlLabelName(84, user.getLanguage())%>
<input type="text" id="name" name="name" value="<%=searchValue%>" class="InputStyle">
</wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(195, user.getLanguage())%>
</wea:item>
</wea:group>
<wea:group context="" attributes="{'groupDisplay':'none'}">
<wea:item type="toolbar">
<input type="submit" value="<%=SystemEnv.getHtmlLabelName(197 ,user.getLanguage()) %>"
class="e8_btn_submit" id="e8_btn_submit"/>
<input type="button" value="<%=SystemEnv.getHtmlLabelName(2022 ,user.getLanguage()) %>"
class="e8_btn_cancel" onclick="resetCondtion();"/>
<input type="button" value="<%=SystemEnv.getHtmlLabelName(201 ,user.getLanguage()) %>"
class="e8_btn_cancel" id="cancel"/>
</wea:item>
</wea:group>
</wea:layout>
</form>
</div>
<TABLE width="100%">
<tr>
<td valign="top">
<input type="hidden" name="pageId" id="pageId" value="<%=PageConstId %>"/>
<wea:SplitPageTag tableString='<%=tableString%>' isShowTopInfo="true" mode="run"/>
</td>
</tr>
</TABLE>
</BODY>
</HTML>
<script>
var dialog = null; //弹框
function closeDialog() {
if (dialog)
dialog.close();
}
function openDialog(url, title) {
dialog = new window.top.Dialog();
dialog.currentWindow = window;
var url = url;
dialog.Title = title;
dialog.Width = 800;
dialog.Height = 680;
dialog.Drag = true;
dialog.URL = url;
dialog.maxiumnable = true;//允许最大化
dialog.show();
}
//右侧操作区及查询区初始化
jQuery(document).ready(function () {
$("#topTitle").topMenuTitle({searchFn: doRefresh});
$(".topMenuTitle td:eq(0)").html($("#tabDiv").html());
$("#tabDiv").remove();
$("#advancedSearch").bind("click", function () {
$(".searchInput").val('');
});
});
//查询
function doRefresh() {
var searchValue = $("input[name='searchValue']", parent.document).val();
window.location = "/integration/esb/log/publishLog.jsp?searchValue=" + searchValue;
}
/**
* 编辑
* @param publishId
*/
function doEditById(publishId, publishName) {
if (publishId == "") {
return;
}
var url = "/integration/esb/tab.jsp?&urlType=5-2&publishId=" + encodeURIComponent(publishId) + "&publishName=" + encodeURIComponent(publishName);
var title = "<%=SystemEnv.getHtmlLabelName(381998,user.getLanguage())%>";
openDialog(url, title);
}
function closeDlgARfsh() {
if (dialog) {
dialog.close();
}
_table.reLoad();
}
</script>