MultiSelect.jsp
5.1 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
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<!-- modified by wcd 2014-07-07 [E7 to E8] -->
<jsp:useBean id="DepartmentComInfo" class="weaver.hrm.company.DepartmentComInfo" scope="page" />
<jsp:useBean id="RoleComInfo" class="weaver.hrm.roles.RolesComInfo" scope="page" />
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="xssUtil" class="weaver.filter.XssUtil" scope="page" />
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%
String sqlwhere = Util.null2String(request.getParameter("sqlwhere"));
String selectids = Util.null2String(request.getParameter("selectids"));
String resourceids = Util.null2String(request.getParameter("resourceids"));
if(selectids.length()==0)selectids = resourceids;
String lastname = Util.null2String(request.getParameter("lastname"));
String description = Util.null2String(request.getParameter("description"));
%>
<HTML><HEAD>
<link REL="stylesheet" type="text/css" href="/css/Weaver_wev8.css" />
<link type="text/css" href="/js/dragBox/e8browser_wev8.css" rel=stylesheet>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<script language=javascript src="/workplan/calendar/src/Plugins/jquery.form_wev8.js"></script>
<script type="text/javascript" src="/js/ecology8/base/jquery-ui_wev8.js"></script>
<script type="text/javascript" src="/js/dragBox/ajaxmanager_wev8.js"></script>
<script type="text/javascript" src="/js/dragBox/rightspluingForBrowser_wev8.js"></script>
<script type="text/javascript">
function showMultiDocDialog(selectids){
var config = null;
config= rightsplugingForBrowser.createConfig();
config.srchead=["<%=SystemEnv.getHtmlLabelName(195, user.getLanguage())%>","<%=SystemEnv.getHtmlLabelName(433, user.getLanguage())%>"];
config.container =$("#colShow");
config.searchLabel="";
config.hiddenfield="id";
config.saveLazy = true;//取消实时保存
config.srcurl = "MultiSysadminAjax.jsp?src=src";
config.desturl = "MultiSysadminAjax.jsp?src=dest";
config.pagesize = 10;
config.formId = "SearchForm";
config.target = "frame1";
config.parentWin = window.parent.parent;
config.selectids = selectids;
config.dialog = dialog;
jQuery("#colShow").html("");
rightsplugingForBrowser.createRightsPluing(config);
jQuery("#btnok").bind("click",function(){
rightsplugingForBrowser.system_btnok_onclick(config);
});
jQuery("#btnclear").bind("click",function(){
rightsplugingForBrowser.system_btnclear_onclick(config);
});
jQuery("#btncancel").bind("click",function(){
rightsplugingForBrowser.system_btncancel_onclick(config);
});
jQuery("#btnsearch").bind("click",function(){
rightsplugingForBrowser.system_btnsearch_onclick(config);
});
}
function btnOnSearch(){
jQuery("#btnsearch").trigger("click");
}
</script>
</head>
<body scroll="no">
<div class="zDialog_div_content">
<FORM id="SearchForm" NAME="SearchForm" STYLE="margin-bottom:0" action="" onsubmit="return false;" method=post>
<input type="hidden" name="sqlwhere" value='<%=xssUtil.put(Util.null2String(request.getParameter("sqlwhere")))%>'>
<input type="hidden" name="selectids" id="selectids" value='<%=selectids%>'>
<input type="hidden" name="lastname" id="lastname" value='<%=lastname%>'>
<input type="hidden" name="description" id="description" value='<%=description%>'>
<div id="dialog" style="height: 250px;">
<div id='colShow'></div>
</div>
</form>
</div>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<wea:layout needImportDefaultJsAndCss="false">
<wea:group context="">
<wea:item type="toolbar">
<input type="button" class=zd_btn_submit accessKey=O id=btnok value="O-<%=SystemEnv.getHtmlLabelName(826,user.getLanguage())%>"></input>
<input type="button" class=zd_btn_submit accessKey=2 id=btnclear value="2-<%=SystemEnv.getHtmlLabelName(311,user.getLanguage())%>"></input>
<input type="button" class=zd_btn_cancle accessKey=T id=btncancel value="T-<%=SystemEnv.getHtmlLabelName(201,user.getLanguage())%>"></input>
</wea:item>
</wea:group>
</wea:layout>
<script type="text/javascript">
jQuery(document).ready(function(){
resizeDialog(document);
});
</script>
</div>
</body>
<SCRIPT language="javascript">
var parentWin = null;
var dialog = null;
try{
dialog = parent.parent.parent.getDialog(parent.parent);
}catch(ex1){}
function reBindCornerEvent(){
var corner = jQuery("span.cornerMenu",parent.document);
if(corner.length==0){
window.setTimeout(function(){reBindCornerEvent();},500);
}else{
window.setTimeout(function(){
var e8_head = jQuery(".e8_box",parent.document).find("div.e8_boxhead");
if(e8_head.length==0){
e8_head = jQuery(".e8_box",parent.document).find("div#rightBox");
}
var contentWindow = jQuery("#frame1",parent.document).get(0).contentWindow;
corner.unbind("click",parent.initBindEvent).bind("click",function(){
parent.bindCornerMenuEvent(e8_head,contentWindow,null);
});
},1000);
}
jQuery("#btnsearch").hide();
}
jQuery(document).ready(function(){
showMultiDocDialog("<%=selectids%>");
});
</script>
</html>