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

电子政务应用

开发平台:

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. ArrayList array = (ArrayList)positionProxyBean.getAllPrivileges();
  9. int did = Integer.parseInt(request.getParameter("id"));
  10. String dname = request.getParameter("name");
  11. %>
  12. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  13. <HTML>
  14. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  15. <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
  16. <script language="JavaScript1.2" src="/vnex/util/strutil.js"></script>
  17. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  18. <script language=JavaScript>
  19. function dosubmit()
  20. {
  21.     if(isEmpty(myform.dutyTitle.value) || isEmptyStr(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/addPositionProcess";
  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=divisionId value=<%=did%> >
  70. <input type=hidden name=divisionName value='<%=dname%>'>
  71.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  72.      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  73.     <TR> 
  74.         <TD colSpan=3 align="center"> 
  75.           <br>
  76.           <!--个人信息开始 -->
  77.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  78.             <tr>
  79.               <td bgcolor="#fafafa"> 
  80.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  81.                   <tr bgcolor="#666666"> 
  82.                     <td colspan="2"><font class="strongw">
  83. <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;
  84. <a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt;
  85. <a href="/mainctrl/organization/getAllDivision"><font color="#FFFFFF">组织结构与职位管理</font></a>&gt;&gt; 
  86. <a href="/mainctrl/organization/getAllPosition?id=<%=did%>&name=<%=dname%>"><font color="#FFFFFF">职位管理</font></a>&gt;&gt; 
  87. <font color="#ffffff">新增职位</font></font></td>
  88.                   </tr>
  89.                   <tr bgcolor="#fafafa"> 
  90.                     <td width="19%" align="left"><font class=strong>&nbsp;职位名称:</font></td>
  91.                     <td width="81%"> 
  92.                       <input type="text" name="dutyTitle" class=text size="24" value="" >
  93.                       &nbsp;*&nbsp;(注:带*为必填内容) </td>
  94.                   </tr>
  95.                   <tr> 
  96.                     <td bgcolor="#e0e0e0" width="19%" align="left"><font class=strong>&nbsp;职位描述:</font></td>
  97.                     <td bgcolor="#e0e0e0" width="81%"> 
  98.                       <textarea name="description" rows="5" cols="59" class="text"></textarea>
  99.                     </td>
  100.                   </tr>
  101.                   <tr> 
  102.                     <td bgcolor="#fafafa" width="19%" align="left"><font class=strong>&nbsp;要求技能:</font></td>
  103.                     <td bgcolor="#fafafa" width="81%"> 
  104.                       <textarea name="demandSkill" rows="5" cols="59" class="text"></textarea>
  105.                     </td>
  106.                   </tr>
  107.                   <tr> 
  108.                     <td bgcolor="#e0e0e0" width="19%" align="left"><font class=strong>&nbsp;考核标准:</font></td>
  109.                     <td bgcolor="#e0e0e0" width="81%"> 
  110.                       <textarea name="checkStandard" rows="5" cols="59" class="text"></textarea>
  111.                     </td>
  112.                   </tr>           
  113.           </table>
  114.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  115.                   <tr bgcolor="#fafafa"> 
  116.                     <td colspan="3"><font class=strong>&nbsp;权限设置:</font></td>
  117.                   </tr>
  118.                   <tr align=middle> 
  119.                     <td width="42"><font class=strong>选择</font></td>
  120.                     <td width="200"><font class=strong>权限分组</font></td>
  121.                     <td width="358"><font class=strong>权限名称</font></td>
  122.                   </tr>
  123.                   <org:PrivilegeList > <vnex:items> 
  124.                   <tr align=middle bgcolor="<vnex:itemsColor />"> 
  125.                     <td width="42"> 
  126.                       <input type="checkbox" name="ids" 
  127. value='<org:PrivilegeAttribute attribute="id"/>'>
  128.                     </td>
  129.                     <td colspan="2"> 
  130.                       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  131.                         <tr> 
  132.                           <td width="200" align="center">&nbsp;<org:PrivilegeAttribute attribute="groupNoRepeat"/></td>
  133.                           <td aling="left">&nbsp;--><org:PrivilegeAttribute attribute="name"/></td>
  134.                         </tr>
  135.                       </table>
  136.                     </td>
  137.                   </tr>
  138.                   </vnex:items> </org:PrivilegeList> 
  139.                   <tr align=middle bgcolor="#fafafa"> 
  140.                     <td width="42">
  141.                       <INPUT onclick=CheckAll(this.form) type=checkbox value=on name="chkall">
  142.                     </td>
  143.                     <td colspan="2" align="left">&nbsp;&nbsp;全选</td>
  144.                   </tr>
  145.                   <tr bgcolor="#fafafa" align="center" height="30"> 
  146.                     <td colspan="3"> 
  147.                       <input type="button" value="保存" name="B3" onclick="dosubmit()"  class=text>
  148.                       &nbsp;&nbsp; 
  149.                       <% String name = request.getParameter("name");%>
  150.                       <input type="button" value="放弃" name="B1" onclick="location='/mainctrl/organization/getAllPosition?id=<%=did%>&name=<%=name%>'" class=text>
  151.                     </td>
  152.                   </tr>
  153.                 </table>
  154.           </td>
  155.           </tr>
  156.           </table>
  157.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  158.        </TD>
  159.      </TR>
  160.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  161.     </TABLE>
  162.     <BR>
  163.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  164. </form>
  165. </DIV>
  166. </BODY>
  167. </HTML>