WorkflowKeywordBrowserMultiSearchByOrgan.jsp
7.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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<jsp:useBean id="WorkflowKeywordComInfo" class="weaver.docs.senddoc.WorkflowKeywordComInfo" scope="page" />
<jsp:useBean id="xssUtil" class="weaver.filter.XssUtil" scope="page" />
<%@ include file="/systeminfo/init_wev8.jsp" %>
<HTML><HEAD>
<LINK REL=stylesheet type=text/css HREF=/css/Weaver_wev8.css>
<script type="text/javascript" src="/js/xtree_wev8.js"></script>
<script type="text/javascript" src="/js/xmlextras_wev8.js"></script>
<script type="text/javascript" src="/js/cxloadtree_wev8.js"></script>
<link type="text/css" rel="stylesheet" href="/css/xtree2_wev8.css" />
<link href="/css/deepTree_wev8.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
var parentWin = parent.parent.parent.getParentWindow(parent.parent);
var dialog = parent.parent.parent.getDialog(parent.parent);
var btnok_onclick = function(){
jQuery("#btnok",parent.getElementById("frame2").contentWindow.document).click();
}
var btnclear_onclick = function(){
jQuery("#btnclear",parent.getElementById("frame2").contentWindow.document).click();
}
function onClose(){
if(dialog){
dialog.close()
}else{
window.parent.parent.close();
}
}
</script>
</HEAD>
<%
int uid=user.getUID();
int tabid=0;
String nodeid=null;
String rem=null;
Cookie[] cks= request.getCookies();
for(int i=0;i<cks.length;i++){
//System.out.println("ck:"+cks[i].getName()+":"+cks[i].getValue());
if(cks[i].getName().equals("WorkflowKeywordBrowserMulti"+uid)){
rem=cks[i].getValue();
break;
}
}
if(rem!=null){
rem=tabid+rem.substring(1);
Cookie ck = new Cookie("WorkflowKeywordBrowserMulti"+uid,rem);
ck.setMaxAge(30*24*60*60);
response.addCookie(ck);
String[] atts=Util.TokenizerString2(rem,"|");
if(atts.length>1)
nodeid=atts[1];
}
boolean exist=false;
String keywordName="";
if(nodeid!=null){
keywordName=WorkflowKeywordComInfo.getKeywordName(nodeid.substring(nodeid.lastIndexOf("_")+1));
}
if(!keywordName.equals("")){
exist=true;
}
else{
exist=false;
}
if(!exist){
nodeid=null;
}
String sqlwhere = Util.null2String(request.getParameter("sqlwhere"));
String strKeyword = Util.null2String(request.getParameter("strKeyword"));
%>
<BODY>
<FORM NAME=SearchForm STYLE="margin-bottom:0" action="WorkflowKeywordBrowserMultiSelect.jsp" method=post target="frame2">
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
BaseBean baseBean_self = new BaseBean();
int userightmenu_self = 1;
try{
userightmenu_self = Util.getIntValue(baseBean_self.getPropValue("systemmenu", "userightmenu"), 1);
}catch(Exception e){}
if(userightmenu_self == 1){
RCMenu += "{"+SystemEnv.getHtmlLabelName(826,user.getLanguage())+",javascript:btnok_onclick(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(311,user.getLanguage())+",javascript:btnclear_onclick(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
}
%>
<BUTTON type='button' class=btn accessKey=O style="display:none" id=btnok onclick="btnok_onclick();"><U>O</U>-<%=SystemEnv.getHtmlLabelName(826,user.getLanguage())%></BUTTON>
<BUTTON type='button' class=btn accessKey=2 style="display:none" id=btnclear onclick="btnclear_onclick();"><U>2</U>-<%=SystemEnv.getHtmlLabelName(311,user.getLanguage())%></BUTTON>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<%if(userightmenu_self == 1){%>
<script>
rightMenu.style.visibility='hidden'
</script>
<%}%>
<table id="topTitle" cellpadding="0" cellspacing="0">
<tr>
<td>
</td>
<td class="rightSearchSpan" style="text-align:right;">
<span title="<%=SystemEnv.getHtmlLabelName(23036,user.getLanguage())%>" class="cornerMenu"></span>
</td>
</tr>
</table>
<table width=100% class="ViewForm" valign="top">
<!--######## Search Table Start########-->
<TR>
<td height=170>
<div id="deeptree" class="cxtree" CfgXMLSrc="/css/TreeConfig.xml" style="overflow-x:hidden;overflow-y:auto;"/>
<td>
</tr>
</table>
<input class=inputstyle type="hidden" name="sqlwhere" value='<%=xssUtil.put(Util.null2String(request.getParameter("sqlwhere")))%>'>
<input class=inputstyle id="strKeyword" type="hidden" name="strKeyword" value="<%=strKeyword%>">
<input class=inputstyle type="hidden" id="tabid" name="tabid" >
<input class=inputstyle type="hidden" id="nodeid" name="nodeid" >
<input class=inputstyle type="hidden" id="parentId" name="parentId" >
<!--########//Search Table End########-->
</FORM>
<script type="text/javascript" language="javascript">
var strKeyword ="";
function btnclear_onclick(){
window.parent.parent.returnValue = "";
window.parent.parent.close();
}
function btnok_onclick(){
setKeywordStr();
window.parent.parent.returnValue = strKeyword;
window.parent.parent.close();
}
function btnsub_onclick(){
setKeywordStr();
document.all("strKeyword").value = strKeyword;
document.SearchForm.submit();
}
</script>
<!--
<SCRIPT LANGUAGE=VBS>
strKeyword =""
Sub btnclear_onclick()
window.parent.returnvalue = ""
window.parent.close
End Sub
Sub btnok_onclick()
setKeywordStr()
window.parent.returnvalue = strKeyword
window.parent.close
End Sub
Sub btnsub_onclick()
setKeywordStr()
document.all("strKeyword").value = strKeyword
document.SearchForm.submit
End Sub
</SCRIPT>-->
<script language="javascript">
function initTree(){
//deeptree.init("/hrm/tree/ResourceSingleXML.jsp<%if(nodeid!=null){%>?init=true&nodeid=<%=nodeid%><%}%>");
//added by cyril on 2008-07-31 for td:9109
//设置选中的ID
CXLoadTreeItem("", "/docs/sendDoc/WorkflowKeywordBrowserMultiXML.jsp<%if(nodeid!=null){%>?init=true&nodeid=<%=nodeid%><%}%>")
var tree = new WebFXTree();
tree.add(cxtree_obj);
//document.write(tree);
document.getElementById('deeptree').innerHTML = tree;
cxtree_obj.expand();
//end by cyril on 2008-07-31 for td:9109
}
//to use xtree,you must implement top() and showcom(node) functions
function top(){
<%if(nodeid!=null){%>
try{
var deeptree = document.getElementById("deeptree");
deeptree.scrollTop=<%=nodeid%>.offsetTop;
deeptree.HighlightNode(<%=nodeid%>.parentNode);
deeptree.ExpandNode(<%=nodeid%>.parentNode);
}catch(e){
}
<%}%>
}
function showcom(node){
}
function check(node){
}
</script>
</BODY>
</HTML>
<!-- 以下js代码是从body体内移出来的,这样在Google浏览器中 主题词按钮 的组织架构图才出来 2012-08-08 ypc 修改 start -->
<script language="javascript">
jQuery(document).ready(function () {initTree();});
function setKeywordStr(){
var strKeyword1 = ""
try{
for(var i=0;i<parent.frame2.keywordArray.length;i++){
strKeyword1 += " "+parent.frame2.keywordArray[i].split("~")[1] ;
}
if(strKeyword1!=""){
strKeyword1=strKeyword1.substr(1);
}
strKeyword=strKeyword1;
}catch(err){}
}
function doSearch(){
setKeywordStr();
document.getElementById("strKeyword").value = strKeyword;
document.SearchForm.submit();
}
function setParent(nodeid){
parentId=nodeid.substring(nodeid.lastIndexOf("_")+1);
document.getElementById("parentId").value=parentId;
document.getElementById("tabid").value=0;
document.getElementById("nodeid").value=nodeid;
doSearch();
}
</script>
<!-- 以下js代码是从body体内移出来的,这样在Google浏览器中 主题词按钮 的组织架构图才出来 2012-08-08 ypc 修改 end -->