wfMonitorFrame.jsp
8.61 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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="java.util.*" %>
<jsp:useBean id="pack" class="weaver.general.ParameterPackage" scope="page"/>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<script src="/js/tabs/jquery.tabs.extend_wev8.js"></script>
<link type="text/css" href="/js/tabs/css/e8tabs1_wev8.css" rel="stylesheet" />
<%
String navName = SystemEnv.getHtmlLabelName(16758, user.getLanguage());
String offical = Util.null2String(request.getParameter("offical"));
int officalType = Util.getIntValue(request.getParameter("officalType"),-1);
if(offical.equals("1")){
if(officalType==1){
navName = SystemEnv.getHtmlLabelName(33785, user.getLanguage());
}else if(officalType==2){
navName = SystemEnv.getHtmlLabelName(33792, user.getLanguage());
}
}
String typeName="";
String workFlowName="";
String typeid=Util.null2String(request.getParameter("wftype"));
String workflowid=Util.null2String(request.getParameter("workflowid"));
//查询流程名
if(typeid!=null && typeid!=""){
StringBuffer typeSql= new StringBuffer();
typeSql.append("select typename from workflow_type where");
typeSql.append(" id= ").append(typeid);
RecordSet.execute(typeSql.toString());
if(RecordSet.next()){
typeName=Util.null2String(RecordSet.getString("typename"));
}
}
//查询工作流类型
if(workflowid!=null && workflowid!="" ){
StringBuffer workflowSql= new StringBuffer();
workflowSql.append("select workflowname from workflow_base where");
workflowSql.append(" id= ").append(workflowid);
RecordSet.execute(workflowSql.toString());
if(RecordSet.next()){
workFlowName=Util.null2String(RecordSet.getString("workflowname"));
}
}
if(workFlowName!="" ){
navName=workFlowName;
}else if(typeName!=""){
navName=typeName;
}
%>
<%int fromLeftMenu = Util.getIntValue(request.getParameter("fromleftmenu"),0);
String frmurl = "";
if(fromLeftMenu == 1)
frmurl = "/system/systemmonitor/workflow/WorkflowMonitorPageFrame.jsp?offical="+offical+"&officalType="+officalType;
else
frmurl = "/system/systemmonitor/workflow/WorkflowMonitorList.jsp?offical="+offical+"&officalType="+officalType+"&workflowid="+workflowid+"&typeid="+typeid;
%>
<script type="text/javascript">
var fromleftmenu = "<%=fromLeftMenu%>";
window.notExecute = true;
$(function(){
$('.e8_box').Tabs({
getLine:1,
mouldID:"<%= MouldIDConst.getID(offical.equals("1")?"offical":"workflow")%>",
iframe:"tabcontentframe",
staticOnLoad:true,
objName:"<%=navName%>"
});
//attachUrl();
jQuery("#e8TreeSwitch").css("display","none");
$("#e8_tablogo,#e8TreeSwitch").bind("click",syloadTree);
//$("#e8_tablogo,#e8TreeSwitch").bind("click",showloading);
});
//异步加载树调用方法
function syloadTree()
{
window.parent.resetLeftMenuTree();
$("#e8_tablogo,#e8TreeSwitch").unbind("click",syloadTree);
}
function resettab_menu()
{
$(".tab_menu").css("display","block");
}
function settab0(){
var _contentDocument = getIframeDocument2();
jQuery("#createdateselect",_contentDocument).val("0");
jQuery("input[name=createdatefrom]",_contentDocument).val("");
jQuery("input[name=createdateto]",_contentDocument).val("");
jQuery("#offical",_contentDocument).val("<%=offical%>");
jQuery("#officalType",_contentDocument).val("<%=officalType%>");
jQuery("#weaver",_contentDocument).submit();
//$("#tabcontentframe").attr("src","/system/systemmonitor/workflow/WorkflowMonitorList.jsp?createdateselect=0&timecondition=0&offical=<%=offical%>&officalType=<%=officalType%>&<%=request.getQueryString()%>");
}
function settab1(){
var _contentDocument = getIframeDocument2();
jQuery("#createdateselect",_contentDocument).val("1");
jQuery("#offical",_contentDocument).val("<%=offical%>");
jQuery("#officalType",_contentDocument).val("<%=officalType%>");
jQuery("#weaver",_contentDocument).submit();
//$("#tabcontentframe").attr("src","/system/systemmonitor/workflow/WorkflowMonitorList.jsp?createdateselect=1&timecondition=1&offical=<%=offical%>&officalType=<%=officalType%>&<%=request.getQueryString()%>");
}
function settab2(){
var _contentDocument = getIframeDocument2();
jQuery("#createdateselect",_contentDocument).val("2");
jQuery("#offical",_contentDocument).val("<%=offical%>");
jQuery("#officalType",_contentDocument).val("<%=officalType%>");
jQuery("#weaver",_contentDocument).submit();
//$("#tabcontentframe").attr("src","/system/systemmonitor/workflow/WorkflowMonitorList.jsp?createdateselect=2&timecondition=2&offical=<%=offical%>&officalType=<%=officalType%>&<%=request.getQueryString()%>");
}
function settab3(){
var _contentDocument = getIframeDocument2();
jQuery("#createdateselect",_contentDocument).val("3");
jQuery("#offical",_contentDocument).val("<%=offical%>");
jQuery("#officalType",_contentDocument).val("<%=officalType%>");
jQuery("#weaver",_contentDocument).submit();
//$("#tabcontentframe").attr("src","/system/systemmonitor/workflow/WorkflowMonitorList.jsp?createdateselect=3&timecondition=3&offical=<%=offical%>&officalType=<%=officalType%>&<%=request.getQueryString()%>");
}
function settab4(){
var _contentDocument = getIframeDocument2();
jQuery("#createdateselect",_contentDocument).val("4");
jQuery("#offical",_contentDocument).val("<%=offical%>");
jQuery("#officalType",_contentDocument).val("<%=officalType%>");
jQuery("#weaver",_contentDocument).submit();
//$("#tabcontentframe").attr("src","/system/systemmonitor/workflow/WorkflowMonitorList.jsp?createdateselect=4&timecondition=4&offical=<%=offical%>&officalType=<%=officalType%>&<%=request.getQueryString()%>");
}
function settab5(){
var _contentDocument = getIframeDocument2();
jQuery("#createdateselect",_contentDocument).val("5");
jQuery("#offical",_contentDocument).val("<%=offical%>");
jQuery("#officalType",_contentDocument).val("<%=officalType%>");
jQuery("#weaver",_contentDocument).submit();
//$("#tabcontentframe").attr("src","/system/systemmonitor/workflow/WorkflowMonitorList.jsp?createdateselect=5&timecondition=5&offical=<%=offical%>&officalType=<%=officalType%>&<%=request.getQueryString()%>");
}
function refreshTab() {
jQuery('.flowMenusTd', parent.document).toggle();
jQuery('.leftTypeSearch', parent.document).toggle();
}
function attachUrl(){
var requestParameters=$(".requestParameterForm").serialize();
$("a[target='tabcontentframe']").each(function(){
var url = "<%=frmurl%>&"+requestParameters;
if($(this).attr("timecondition"))
url += "&timecondition="+$(this).attr("timecondition");
$(this).attr("href",url);
});
$("[name='tabcontentframe']").attr("src",$("a[target='tabcontentframe']:eq(0)").attr("href"));
}
</script>
</head>
<body scroll="no">
<div class="e8_box demo2">
<div class="e8_boxhead">
<div class="div_e8_xtree" id="div_e8_xtree"></div>
<div class="e8_tablogo" id="e8_tablogo"></div>
<div class="e8_ultab">
<div class="e8_navtab" id="e8_navtab">
<span id="objName"></span>
</div>
<div>
<ul class="tab_menu" style="display:none">
<li class="e8_tree">
<a onclick="javascript:refreshTab();"><%=SystemEnv.getHtmlLabelName(32452,user.getLanguage()) %></a>
</li>
<li class="current">
<a onclick="settab0()" target="tabcontentframe"><%=SystemEnv.getHtmlLabelName(332, user.getLanguage()) %></a>
</li>
<li >
<a onclick="settab1()" target="tabcontentframe"><%=SystemEnv.getHtmlLabelName(15537, user.getLanguage()) %></a>
</li>
<li >
<a onclick="settab2()" target="tabcontentframe"><%=SystemEnv.getHtmlLabelName(15539, user.getLanguage()) %></a>
</li>
<li >
<a onclick="settab3()" target="tabcontentframe"><%=SystemEnv.getHtmlLabelName(15541, user.getLanguage()) %></a>
</li>
<li >
<a onclick="settab4()" target="tabcontentframe"><%=SystemEnv.getHtmlLabelName(21904, user.getLanguage()) %></a>
</li>
<li >
<a onclick="settab5()" target="tabcontentframe"><%=SystemEnv.getHtmlLabelName(15384, user.getLanguage()) %></a>
</li>
</ul>
<div id="rightBox" class="e8_rightBox">
</div>
</div>
</div>
</div>
<div class="tab_box">
<iframe src="<%=frmurl %>" id="tabcontentframe" name="tabcontentframe" onload="update()" class="flowFrame" frameborder="0" height="100%" width="100%;"></iframe>
<form class="requestParameterForm">
<%
Enumeration<String> e=request.getParameterNames();
while(e.hasMoreElements()){
String paramenterName=e.nextElement();
String value=request.getParameter(paramenterName);
//System.out.println(paramenterName + ":" + value);
%>
<input type="hidden" name="<%=paramenterName %>" value="<%=value %>" class="requestParameters">
<%
}
%>
</form>
</div></div>
</body>
</html>