personGroupDlg.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:3k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ taglib uri="/vnex_employee_group.tld" prefix="employeeGroup" %>
  3. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  4. <%
  5.     String groupId = "0";
  6.     if(request.getParameter("groupId") != null)
  7.        groupId = request.getParameter("groupId");
  8.     String empId = ""+BusinessName.getEmpId();   
  9. %>
  10. <script language=javascript >
  11. function groupChange(form)
  12. {
  13.    form.action="/vnex/util/personGroupDlg.jsp"
  14.    form.submit();
  15. }
  16. function rtnValue( myform, tObj )
  17. {
  18.     var superList= tObj;
  19.     var j;
  20.     var mySel = myform.selectableIDList;
  21.     var delim = "";
  22.     var selV = "";
  23.     for ( i = 0; i < mySel.options.length; i++ )    
  24.     {    
  25.         if ( mySel.options[i].selected == true )
  26.         {
  27.         var vlu = mySel.options[i].value;                    
  28.         var txt = mySel.options[i].text;
  29.         selV += delim + txt + "^^" + vlu;  
  30.             delim = "!!";
  31.                 
  32.         newOpt = new Option( txt, vlu );          
  33.     }
  34.     }
  35.     top.opener.document.all("tempHidden").value = selV;   
  36.     top.opener.document.all("updated").value = "true";
  37.     
  38.     top.opener.document.forms[0].Submit1.click();
  39.     window.close();
  40.     return true;
  41. }    
  42. </SCRIPT>
  43. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  44. <HTML><HEAD><TITLE>职员选择</TITLE>
  45. <META http-equiv=Content-Type content="text/html; charset=gb_2312-80">
  46. <META content="MSHTML 5.50.4134.600" name=GENERATOR>
  47. <link rel="stylesheet" href="/vnex/hr_macos.css" type="text/css">
  48. <BODY bgColor="#e0e0e0" >
  49. <form name="myformcf"  method = post >
  50.   <TABLE WIDTH="100%" BORDER=0 CELLSPACING=1 CELLPADDING=2 class=title>
  51.     <tr bgcolor="#e0e0e0"> 
  52.       <td width="30%"><font class=strong>&nbsp;请选择组别:</font></td>
  53.       <td width="70%"> 
  54.         <select name="groupId" size="1" style="width:144px" onchange="groupChange(this.form)">
  55.           <employeeGroup:groupName groupId="<%=groupId%>" empId="<%=empId%>" />
  56.       </select>
  57.   <br>
  58.       </td>
  59.     </tr>
  60.     <tr bgcolor="#fafafa" > 
  61.       <td colspan="2"> <font class="strong">&nbsp;职员一览</font>: </td>
  62.     </tr>
  63.     <tr> 
  64.       <td align=middle valign="top" bgcolor="#e0e0e0" colspan="2"> 
  65.         <table width="100%" border="0" cellspacing="0">
  66.           <tr bgcolor="#e0e0e0"> 
  67.             <td width="20%" nowrap>&nbsp;员工</td>
  68.             <td width="30%" nowrap>职位</td>
  69.           </tr>
  70.           <tr bgcolor="#e0e0e0"> 
  71.             <td colspan= 2 nowrap> 
  72.             <select name="selectableIDList" multiple size="15" style="width:100%" class="file">
  73. <% if(!groupId.equals("0"))
  74.    {
  75. %>    
  76.        <employeeGroup:groupMember groupId="<%=groupId%>" />     
  77. <% }%> 
  78. </select>    
  79.             </td>
  80.           </tr>
  81.         </table>
  82.       </td>
  83.     </tr>
  84.     <tr align="center"> 
  85.       <td height="30" bgcolor="#fafafa" colspan="2" > 
  86.         <input type="button" value="选择" name="button" class="file" onclick="javascript:rtnValue( this.form )" >
  87.       </td>
  88.     </tr>
  89.   </table>
  90. </form>
  91. </BODY></HTML>