RoleResourceSelect.jsp
6.48 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
<%@ page import="weaver.general.Util" %>
<%@ page import="java.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 roleid = Util.null2String(request.getParameter("roleid"));
String selectids = Util.null2String(request.getParameter("selectids"));
String lastname = Util.null2String(request.getParameter("lastname"));
String _param = "&lastname="+lastname+"&roleid="+roleid;
String imagefilename = "/images/hdMaintenance_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(20570,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<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(413,user.getLanguage())%>"];
config.container =$("#colShow");
config.searchLabel="";
config.hiddenfield="id";
config.saveLazy = true;//取消实时保存
config.srcurl = encodeURI(encodeURI("/hrm/resource/RoleResourceData.jsp?src=src"));
config.desturl = "/hrm/resource/RoleResourceData.jsp?src=dest";
config.pagesize = 10;
config.parentWin = window.parent.parent;
config.formId = "SearchForm";
config.searchAreaId = "e8QuerySearchArea";
config.selectids = selectids;
try{
config.dialog = dialog;
}catch(e){
window.top.Dialog.alert(e)
}
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 reset_onclick(){
document.all("lastname").value="";
}
</script>
</head>
<body scroll="no">
<div class="zDialog_div_content">
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ 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){}
RCMenu += "{"+SystemEnv.getHtmlLabelName(197,user.getLanguage())+",javascript:document.SearchForm.btnsearch.click(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(826,user.getLanguage())+",javascript:btnok.click(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(199,user.getLanguage())+",javascript:document.SearchForm.reset.click(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<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>
<div style="max-height:155px;overflow:hidden;" id="e8QuerySearchArea">
<FORM id="SearchForm" NAME="SearchForm" STYLE="margin-bottom:0" action="" onsubmit="return false;" method=post>
<BUTTON class=btnSearch accessKey=S style="display:none" type="button" onclick="btnsearch_onclick()" id="btnsearch" ><U>S</U>-<%=SystemEnv.getHtmlLabelName(197,user.getLanguage())%></BUTTON>
<BUTTON class=btnReset accessKey=T style="display:none" id=reset type="reset"><U>T</U>-<%=SystemEnv.getHtmlLabelName(199,user.getLanguage())%></BUTTON>
<input type="hidden" name="sqlwhere" value='<%=xssUtil.put(Util.null2String(request.getParameter("sqlwhere")))%>'>
<input type="hidden" name="roleid" id="roleid" value='<%=roleid%>'>
<input type="hidden" name="selectids" id="selectids" value='<%=selectids%>'>
<input class=inputstyle type="hidden" name="resourceids" >
<input type="hidden" name="isinit" value="1"/>
<wea:layout type="4col">
<wea:group context='<%=SystemEnv.getHtmlLabelName(20331,user.getLanguage())%>'>
<wea:item><%=SystemEnv.getHtmlLabelName(413,user.getLanguage())%></wea:item>
<wea:item>
<input class=inputstyle id=lastname name=lastname value="">
</wea:item>
</wea:group>
</wea:layout>
</form>
</div>
<div id="dialog">
<div id='colShow'></div>
</div>
</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 dialog = null;
try{
dialog = parent.parent.parent.getDialog(parent.parent);
}catch(ex1){}
jQuery(document).ready(function(){
showMultiDocDialog("<%=roleid%>");
});
</script>
</html>