📄 persondlg.jsp
字号:
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ taglib uri="/vnex_organization.tld" prefix="org" %>
<%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%
// this part is for the show employee and orgnazation custom tag.
int deptId = 1;
// the general company id equals 1.
if( request.getParameter("deptId") != null )
{
deptId = Integer.parseInt ( request.getParameter("deptId") );
}
%>
<script language=javascript >
function changeIt(form)
{
//checkAll( document.forms[0].selectedIDList );
form.action = "/vnex/util/PersonDlg.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;
}
//format a string to fixed length
function fixStrLen( str, lenLim )
{
var curLen = str.length;
var reqSp = lenLim - curLen;
var resStr = "";
if ( reqSp > 0 )
{
resStr = str;
for( var i = 0; i < reqSp; i++ )
{
resStr += " ";
}
}
else
{
resStr = str.substr(0,lenLim);
}
return resStr;
}
</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="deptId" onChange="changeIt(this.form)" class="file">
<org:DivisionList><vnex:items select='<%= request.getParameter("deptId") %>'>
<option value="<org:DivisionAttribute attribute="id"/>" <org:DivisionAttribute attribute="isSelected"/>
> <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/>
</option>
</vnex:items></org:DivisionList>
</select>
</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="28%" nowrap> 员工</td>
<td width="30%" nowrap>职位</td>
</tr>
<tr bgcolor="#e0e0e0">
<td colspan= 2 nowrap>
<select name="selectableIDList" multiple size="15" style="font-family:Courier New;font-size:9pt;font-space:2pt;width:100%" class="file">
<hr:EmployeeList divisionId='<%=deptId %>'> <vnex:items>
<option value="<hr:EmployeeAttribute attribute="id" />;<hr:EmployeeAttribute attribute="employee_name" />;<hr:EmployeeAttribute attribute="divisionName" />;<hr:EmployeeAttribute attribute="employee_title" />">
<hr:EmployeeAttribute attribute="employee_name_SameLength" />
<hr:EmployeeAttribute attribute="employee_title" /> </option>
</vnex:items> </hr:EmployeeList>
</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 + -