MultiSelect.jsp
5.97 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<%@ page import="weaver.file.Prop,
weaver.general.GCONST" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="DepartmentComInfo" class="weaver.hrm.company.DepartmentComInfo" scope="page" />
<jsp:useBean id="SubCompanyComInfo" class="weaver.hrm.company.SubCompanyComInfo" scope="page" />
<jsp:useBean id="RoleComInfo" class="weaver.hrm.roles.RolesComInfo" scope="page" />
<jsp:useBean id="JobTitlesComInfo" class="weaver.hrm.job.JobTitlesComInfo" scope="page" />
<%
String publicid=Util.null2String(request.getParameter("publicid"));
String selectids=Util.null2String(request.getParameter("selectids"));
%>
<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>
</HEAD>
<BODY>
<%@ include file="/systeminfo/leftMenuCommon.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<div class="zDialog_div_content">
<FORM id="SearchForm" NAME="SearchForm" STYLE="margin-bottom:0" action="" onsubmit="return false;" method=post>
<input type="hidden" name="pagenum" value=''>
<input type="hidden" name="publicid" id="publicid" value='<%=publicid%>'>
<input type="hidden" name="selectids" id="selectids" value='<%=selectids%>'>
<input type="hidden" name="tabId" id="tabId">
<input type="hidden" name="subcompanyid" id="subcompanyid">
<input type="hidden" name="departmentid" id="departmentid">
<input type="hidden" name="lastname" id="lastname">
<input type="hidden" name="jobtitle" id="jobtitle">
<input type="hidden" name="status" id="status">
<input type="hidden" name="roleid" id="roleid">
<input type="hidden" name="groupid" id="groupid">
<div id="dialog" style="height: 250px;">
<div id='colShow'></div>
</div>
</form>
</div>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<input type="button" style="display:none;" class=zd_btn_submit accessKey=S id=btnsearch value="S-<%=SystemEnv.getHtmlLabelName(197,user.getLanguage())%>"></input>
<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>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
resizeDialog(document);
showMultiDocDialog("<%=selectids%>");
});
var parentWin = null;
var dialog = null;
try{
dialog = parent.parent.parent.getDialog(parent.parent);
}catch(ex1){}
var config = null;
function showMultiDocDialog(selectids){
config= rightsplugingForBrowser.createConfig();
config.srchead=["<%=SystemEnv.getHtmlLabelName(1867,user.getLanguage())%>","<%=SystemEnv.getHtmlLabelName(124,user.getLanguage())%>","<%=SystemEnv.getHtmlLabelName(141,user.getLanguage())%>"];
config.container =$("#colShow");
config.searchLabel="";
config.hiddenfield="id";
config.saveLazy = true;//取消实时保存
config.srcurl = "/wechat/bowser/hrm/MutiResourceBrowserAjax.jsp?src=src";
config.desturl = "/wechat/bowser/hrm/MutiResourceBrowserAjax.jsp?src=dest";
config.pagesize = 10;
config.formId = "SearchForm";
config.selectids = selectids;
try{
config.dialog = dialog;
}catch(e){
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 btnOnSearch(){
rightsplugingForBrowser.system_btnsearch_onclick(config);
}
function setSearchCondition1(companyid,subcompanyid,departmentid){
$('#tabId').val(1);
$('#subcompanyid').val(subcompanyid);
$('#departmentid').val(departmentid);
btnOnSearch();
}
function setSearchCondition2(groupid){
$('#tabId').val(2);
$('#groupid').val(groupid);
btnOnSearch();
}
function setSearchCondition3(lastname,jobtitle,status,subcompanyid,departmentid,roleid){
$('#tabId').val(3);
$('#lastname').val(lastname);
$("#jobtitle").val(jobtitle);
$("#status").val(status);
$('#subcompanyid').val(subcompanyid);
$('#departmentid').val(departmentid);
$('#roleid').val(roleid);
btnOnSearch();
}
function resetSearchCondition(tabId,isSearch){
$('#tabId').val(tabId);
$('#subcompanyid').val("");
$('#departmentid').val("");
$('#groupid').val("");
$('#lastname').val("");
$("#jobtitle").val("");
$("#status").val("");
$('#subcompanyid').val("");
$('#departmentid').val("");
$('#roleid').val("");
$('#groupid').val("");
if(isSearch) btnOnSearch();
}
</script>
</BODY>
</HTML>