PersonDlg2.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:4k
源码类别:
电子政务应用
开发平台:
Java
- <%@ 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/PersonDlg2.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].Submit2.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="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>