📄 persongroupdlg.jsp
字号:
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ taglib uri="/vnex_employee_group.tld" prefix="employeeGroup" %>
<jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
<%
String groupId = "0";
if(request.getParameter("groupId") != null)
groupId = request.getParameter("groupId");
String empId = ""+BusinessName.getEmpId();
%>
<script language=javascript >
function groupChange(form)
{
form.action="/vnex/util/personGroupDlg.jsp"
form.submit();
}
function rtnValue( myform, tObj )
{
var superList= tObj;
var j;
var mySel = myform.selectableIDList;
var delim = "";
var selV = "";
for ( i = 0; i < mySel.options.length; i++ )
{
if ( mySel.options[i].selected == true )
{
var vlu = mySel.options[i].value;
var txt = mySel.options[i].text;
selV += delim + txt + "^^" + vlu;
delim = "!!";
newOpt = new Option( txt, vlu );
}
}
top.opener.document.all("tempHidden").value = selV;
top.opener.document.all("updated").value = "true";
top.opener.document.forms[0].Submit1.click();
window.close();
return true;
}
</SCRIPT>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>职员选择</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb_2312-80">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<link rel="stylesheet" href="/vnex/hr_macos.css" type="text/css">
<BODY bgColor="#e0e0e0" >
<form name="myformcf" method = post >
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=1 CELLPADDING=2 class=title>
<tr bgcolor="#e0e0e0">
<td width="30%"><font class=strong> 请选择组别:</font></td>
<td width="70%">
<select name="groupId" size="1" style="width:144px" onchange="groupChange(this.form)">
<employeeGroup:groupName groupId="<%=groupId%>" empId="<%=empId%>" />
</select>
<br>
</td>
</tr>
<tr bgcolor="#fafafa" >
<td colspan="2"> <font class="strong"> 职员一览</font>: </td>
</tr>
<tr>
<td align=middle valign="top" bgcolor="#e0e0e0" colspan="2">
<table width="100%" border="0" cellspacing="0">
<tr bgcolor="#e0e0e0">
<td width="20%" nowrap> 员工</td>
<td width="30%" nowrap>职位</td>
</tr>
<tr bgcolor="#e0e0e0">
<td colspan= 2 nowrap>
<select name="selectableIDList" multiple size="15" style="width:100%" class="file">
<% if(!groupId.equals("0"))
{
%>
<employeeGroup:groupMember groupId="<%=groupId%>" />
<% }%>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td height="30" bgcolor="#fafafa" colspan="2" >
<input type="button" value="选择" name="button" class="file" onclick="javascript:rtnValue( this.form )" >
</td>
</tr>
</table>
</form>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -