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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.organization.value.*"%>
  3. <%@ page import="com.vnex.intranet.organization.proxy.*"%>
  4. <jsp:useBean id="positionProxyBean" scope="Application" class="com.vnex.intranet.organization.proxy.PositionProxyBean" />
  5. <%
  6. int did = Integer.parseInt(request.getParameter("id"));
  7. ArrayList array = (ArrayList)positionProxyBean.getDutyByDivision(did);
  8. String dutyName = request.getParameter("name");
  9. %>
  10. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  11. <HTML>
  12. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  13. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  14. <script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
  15. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  16. <DIV align=center>
  17. <form name="form1" method="post" action="">
  18.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  19.     <tbody>
  20.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  21.     <TR> 
  22.         <TD colSpan=3 align="center"> 
  23.           <br>
  24.           <!--休假事件表开始 -->
  25.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  26.             <tr>
  27.               <td bgcolor="#fafafa">   
  28.                 <table class=title cellspacing=1 width="600" border=0 cellpadding="2">
  29.                   <tr bgcolor="#666666"> 
  30.                     <td colspan="3"><font class="strongw">
  31. <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;
  32. <a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt;
  33. <a href="/mainctrl/organization/getAllDivision"><font color="#FFFFFF">组织结构与职位管理</font></a>&gt;&gt; 
  34. 职位管理</font></td>
  35.                   </tr>
  36.             <tr bgcolor="#ffffff"> 
  37.               <td colspan="3"><font class=strong>&nbsp;部门: <%=dutyName%></font></td>
  38.             </tr>
  39.             <tr bgcolor="#fafafa" height="30">
  40.                <td colspan="3">&nbsp;
  41.                   <input type="button" value="新建" name="B3" onclick="location='/mainctrl/organization/addPosition?id=<%=did%>&name=<%=dutyName%>'" class=text>
  42.                   &nbsp;&nbsp;
  43.       <input type="button" value="返回" name="B3" onclick="location='/mainctrl/organization/getAllDivision'" class=text>            
  44.    </td>
  45. </tr>   
  46. <tr> 
  47.               <td width="194" align="center"><font class=strong>职位</font></td>
  48.               <td width="194" align="center"><font class=strong>数量</font></td>
  49.               <td width="195" align="center"><font class=strong>操作</font> </td>
  50.             </tr>
  51. <% if(array != null){
  52. for (int i=0;i<array.size();i++)
  53. {
  54. DutyValueBean dinfo = (DutyValueBean)array.get(i);
  55. String bgcolor = "#e0e0e0";
  56. if(i%2==0)
  57.   bgcolor = "#fafafa";
  58.    %>     
  59.             <tr bgcolor="<%=bgcolor%>" align="center"> 
  60.               <td width="194"> <%=dinfo.getDutyTitle()%></td>
  61.               <td width="194"><%=dinfo.getCurrentNumber()%></td>
  62.               <td width="195"> 
  63.                 <input type="button" value="修改" name="B22" onClick="location='/mainctrl/organization/positionDetail?id=<%=dinfo.getDutyId()%>&name=<%=dutyName%>&pid=<%=did%>'" class=text>
  64.                 <input type="button" value="删除" name="B23" onClick="if (confirm('确定要删除吗?')) location='/mainctrl/organization/deletePosition?id=<%=dinfo.getDutyId()%>&divid=<%=did%>&dname=<%=dutyName%>';" class=text>
  65.               </td>
  66.             </tr>
  67. <%}}%>
  68.           </table>
  69.           </td>
  70.           </tr>
  71.           </table>
  72.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  73.        </TD>
  74.      </TR>
  75.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  76.     </TBODY> 
  77.   </TABLE>
  78.     <BR>
  79.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  80. </form>
  81. </DIV>
  82. </BODY>
  83. </HTML>