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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  3. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  4. <%@ page import="com.vnex.intranet.organization.value.*"%>
  5. <%@ page import="com.vnex.intranet.organization.proxy.*"%>
  6. <jsp:useBean id="positionProxyBean" scope="Application" class="com.vnex.intranet.organization.proxy.PositionProxyBean" />
  7. <%
  8. int did = Integer.parseInt(request.getParameter("id"));
  9. int pid = Integer.parseInt(request.getParameter("pid"));
  10. String dname = request.getParameter("name");
  11. DutyValueBean  duinfo = (DutyValueBean)positionProxyBean.getDuty(did);
  12. ArrayList array =(ArrayList) positionProxyBean.getEmpsByDuty(did);
  13. ArrayList dparray = (ArrayList)positionProxyBean.getPrivilegesByDuty(did);
  14. %>
  15. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  16. <HTML>
  17. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  18. <script language="JavaScript">
  19. function dosubmit()
  20. {
  21. if(myform.dutyTitle.value == "")
  22. {
  23. alert("职位名称不能为空!");
  24. myform.dutyTitle.focus();
  25. return false;
  26. }
  27. if(myform.dutyTitle.value.length > 30)
  28. {
  29. alert("职位名称长度不能大于30!");
  30. myform.dutyTitle.focus();
  31. return false;
  32. }
  33. if(myform.description.value.length > 50)
  34. {
  35. alert("描述长度不能大于50!");
  36. myform.description.focus();
  37. return false;
  38. }
  39. if(myform.demandSkill.value.length > 50)
  40. {
  41. alert("要求技能长度不能大于50!");
  42. myform.demandSkill.focus();
  43. return false;
  44. }
  45. if(myform.checkStandard.value.length > 50)
  46. {
  47. alert("考核标准长度不能大于50!");
  48. myform.checkStandard.focus();
  49. return false;
  50. }
  51. myform.action="/mainctrl/organization/updatePosition";
  52. myform.submit();
  53. }
  54. function CheckAll(form)
  55. {
  56.   for (var i=0;i<form.elements.length;i++)
  57.   {
  58.     var e = form.elements[i];
  59.     if (e.name != 'chkall')
  60.        e.checked = form.chkall.checked;
  61.   }
  62. }
  63. </script>
  64. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  65. <script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
  66. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  67. <DIV align=center>
  68. <form method=POST name="myform">
  69. <input type=hidden name="dutyId" value=<%=did%>>
  70. <input type=hidden name="divisionId" value=<%=duinfo.getDivisionId()%>>
  71. <input type=hidden name="divisionName" value='<%=dname%>' >
  72.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  73.     <tbody>
  74.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  75.     <TR> 
  76.         <TD colSpan=3 align="center"> 
  77.           <br>
  78.           <!--个人信息开始 -->
  79.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  80.             <tr>
  81.               <td bgcolor="#fafafa"> 
  82.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  83.                   <tr bgcolor="#666666"> 
  84.                     <td colspan="2"><font class="strongw">
  85. <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;
  86. <a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt;
  87. <a href="/mainctrl/organization/getAllDivision"><font color="#FFFFFF">组织结构与职位管理</font></a>&gt;&gt; 
  88. <a href="/mainctrl/organization/getAllPosition?id=<%=pid%>&name=<%=dname%>"><font color="#FFFFFF">职位管理</font></a>&gt;&gt; 
  89. 职位详细信息</font></td>
  90.                   </tr>
  91.                   <tr bgcolor="#e0e0e0"> 
  92.                     <td width="19%"><font class=strong>&nbsp;职位名称:</font></td>
  93.                     <td width="81%"><input type=text name="dutyTitle" value="<%=duinfo.getDutyTitle()%>" class="text">
  94.                       &nbsp;* &nbsp(注:带*为必填内容)</td>
  95.                   </tr>
  96.                   <tr> 
  97.                     <td bgcolor="#fafafa" width="19%"><font class=strong>&nbsp;任职职员:</font></td>
  98.                     <td bgcolor="#fafafa" width="81%">
  99.                       <% if (array != null)
  100. {
  101. for (int i=0;i<array.size();i++)
  102. String empname = (String)array.get(i);
  103. %>
  104.                       <%=empname%> 
  105.                       <%}}%>
  106.                     </td>
  107.                   </tr>
  108.                   <tr> 
  109.                     <td bgcolor="#e0e0e0" width="19%"><font class=strong>&nbsp;职位描述:</font></td>
  110.                     <td bgcolor="#e0e0e0" width="81%">
  111.                    <textarea name="description" cols="59" rows="5" class="text"><%=duinfo.getDescription()%></textarea>                  </td>
  112.                   </tr>
  113.                   <tr> 
  114.                     <td bgcolor="#fafafa" width="19%"><font class=strong>&nbsp;要求技能:</font></td>
  115.                     <td bgcolor="#fafafa" width="81%"> 
  116.                       <textarea name="demandSkill" cols="59" rows="5" class="text"><%=duinfo.getDemandSkill()%></textarea>
  117.                     </td>
  118.                   </tr>
  119.                   <tr> 
  120.                     <td bgcolor="#e0e0e0" width="19%"><font class=strong>&nbsp;考核标准:</font></td>
  121.                     <td bgcolor="#e0e0e0" width="81%"> 
  122.                       <textarea name="checkStandard" cols="59" rows="5" class="text"><%=duinfo.getCheckStandard()%></textarea>
  123.                     </td>
  124.                   </tr>
  125.           </table>
  126.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  127.                   <tr bgcolor="#fafafa"> 
  128.                     <td colspan="3"><font class=strong>&nbsp;职位权限:</font></td>
  129.                   </tr>
  130.                   <tr align=center> 
  131.                     <td width="42"><font class=strong>选择</font></td>
  132.                     <td width="154"><font class=strong>权限分组</font></td>
  133.                     <td width="295"><font class=strong>权限名称</font></td>
  134.                   </tr>
  135.                   <%  if (dparray!= null)
  136. {
  137.   System.out.println("size--"+dparray.size());
  138. Integer[] privs = new Integer[dparray.size()];
  139. for(int i=0;i<dparray.size();i++)
  140. {
  141. privs[i] = new Integer(((PrivilegeValueBean)dparray.get(i)).getPrivilegeId());
  142. }
  143. pageContext.setAttribute("privs",privs);
  144. }
  145. %>
  146.                   <org:PrivilegeList> <vnex:items> 
  147.   <org:PrivilegeAttribute attribute="throwRow"/>
  148.                   <tr align="center" bgcolor="<vnex:itemsColor />"> 
  149.                     <td width="42"> 
  150.                       <input type="checkbox" name="ids"  Value=<org:PrivilegeAttribute attribute="id"/>
  151.                        <org:PrivilegeAttribute attribute="isChecked"/> ></td>
  152.                     <td colspan=2> 
  153.                       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  154.                         <tr> 
  155.                           <td width="200" align="center">&nbsp;<font class=strong><org:PrivilegeAttribute attribute="groupNoRepeat"/></font></td>
  156.                           <td aling="left">&nbsp;<org:PrivilegeAttribute attribute="name"/></td>
  157.                         </tr>
  158.                       </table>
  159.                   </tr>
  160.                   </vnex:items> </org:PrivilegeList> 
  161.                   <% pageContext.removeAttribute("privs");%>
  162.                   <% String name = request.getParameter("name");%>
  163.                   <tr align=center bgcolor="#fafafa"> 
  164.                     <td width="42">
  165.                       <input onClick=CheckAll(this.form) type=checkbox value=on name="chkall">
  166.                     </td>
  167.                     <td colspan="2" align="left">&nbsp;&nbsp;全选</td>
  168.                   </tr>
  169.                   <tr bgcolor="#fafafa" height="30" align="center"> 
  170.                     <td colspan="3"> 
  171.                       <input type="button" value="保存" onclick="dosubmit()" name="B3" class=text>
  172.                       &nbsp;&nbsp; 
  173.                       <input type="button" value="放弃" name="B1" onclick="location='/mainctrl/organization/getAllPosition?id=<%=duinfo.getDivisionId()%>&name=<%=name%>'" class=text>
  174.                     </td>
  175.                   </tr>
  176.                 </table>
  177.            </td>
  178.            </tr>
  179.            </table>
  180.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  181.        </TD>
  182.      </TR>
  183.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  184.     </TBODY> 
  185.   </TABLE>
  186.     <BR>
  187.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  188. </form>
  189. </DIV>
  190. </BODY>
  191. </HTML>