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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: dismission_confirm.jsp,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/dismission/dismission_confirm
  7.  */
  8. %>
  9. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  10. <%@ page import="com.vnex.intranet.hr.employer_info.value.*"%>
  11. <%@ page import="com.vnex.intranet.hr.employer_info.process.*"%>
  12. <%@ page import="com.vnex.intranet.hr.util.*"%>
  13. <%@ page import="java.util.*" %>
  14. <%@ page import="java.sql.Timestamp" %>
  15. <jsp:useBean id="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
  16. <jsp:useBean id="memberInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberInfo" scope="session" />
  17. <jsp:useBean id="taskPendingProxy" class="com.vnex.intranet.workflow.taskpending.proxy.TaskPendingProxyBean" scope="application"/>
  18. <jsp:useBean id="taskPendingCondition" class="com.vnex.intranet.workflow.taskpending.value.TaskPendingConditionBean" scope="page"/>
  19. <%
  20.     int emp_id = -1;
  21.     String str = request.getParameter("emp_id");
  22.     if ( str != null )
  23.     {
  24.         emp_id = Integer.parseInt( str );
  25.     }
  26.     //MemberInfoDAO mi = new MemberInfoDAO();
  27.     String doDismission = request.getParameter("doDismission");
  28.     if ( doDismission != null )
  29.     {
  30.         if ( emp_id == memberInfoBean.getId() )
  31.         {
  32.             hrProxyBean.infoSetDismission( emp_id );
  33.             session.removeValue("memberInfoBean");
  34.             //System.out.println("*******************dismisssion ok");
  35.             response.sendRedirect("/mainctrl/intranet/hr/search_result");
  36.         }
  37.         else
  38.         {
  39.             throw new Exception("操作超时,或者您没有按照步骤进行操作!");
  40.         }
  41.     }
  42. %>
  43. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  44. <HTML>
  45. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  46. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_hr.js"></script>
  47. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  48. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  49. <DIV align=center>
  50. <form name="form1" method="post" action="">
  51.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  52.     <TBODY>
  53.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  54.     <TR> 
  55.         <TD colSpan=3 align="center"> 
  56.           <br>
  57.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  58.             <tr>
  59.               <td bgcolor="#fafafa"> 
  60.                 <table class=title cellspacing=1 width="600" border=0>
  61.                   <tr bgcolor="#666666"> 
  62.                     <td colspan="3"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt;<a href="/mainctrl/intranet/hr/search_result"><font color="#FFFFFF">员工信息</font></a>&gt;&gt;<a href="/mainctrl/intranet/hr/edit_basic_info?emp_id=<%= emp_id %>"><font color="#FFFFFF">本公司工作履历维护</font></a>&gt;&gt;员工离职确认</font></td>
  63.                   </tr>
  64.             <%
  65.                 taskPendingCondition.setEmployeeId(emp_id);
  66.                 taskPendingCondition.setType(0);
  67.                 int newTask = taskPendingProxy.queryPretaskList(taskPendingCondition).size();
  68.             %>
  69.                   <tr> 
  70.             <%
  71.                 if ( newTask != 0 )
  72.                 {
  73.             %>
  74.                     <td bgcolor="#fafafa" colspan="3"><font color="#FF0000">&nbsp;&nbsp;&nbsp;&nbsp;此职员目前还有 <%= newTask %> 个需要交接的工作任务!</font></td>
  75.             <%
  76.                 }
  77.                 else
  78.                 {
  79.             %>
  80.                     <td bgcolor="#fafafa" colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;此职员目前已经完成工作的交接!</td>
  81.             <%
  82.                 }
  83.             %>
  84.                   </tr>
  85.                   <tr> 
  86.                     <td bgcolor="#e0e0e0" colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;此操作,将设置此员工为离职状态,他(她)不在具有使用此系统的权限,我们可以在离职员工的列表中找到此员工的相关信息。<br>
  87.                     &nbsp;&nbsp;&nbsp;&nbsp;您确认要这样做吗?</td>
  88.                   </tr>
  89.                   <tr bgcolor="#fafafa" align="center"> 
  90.                     <td colspan="3" height="30"> 
  91.                     <%
  92.                         if ( newTask == 0 )
  93.                         {
  94.                     %>
  95.                       <input type="submit" value="确认" name="B1" class=text>
  96.                       &nbsp;&nbsp; 
  97.                     <%
  98.                         }
  99.                     %>
  100.                       <input type="button" value="放弃" name="B22" onClick="history.back()"  class=text>
  101.                       <input type=hidden name=doDismission value="<%= emp_id %>" >
  102.                     </td>
  103.                   </tr>
  104.                 </table>
  105.            </td>
  106.             </tr>
  107.           </table> 
  108.           <br><br>
  109.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  110.         </TD>
  111.     </TR>
  112.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  113.     </TBODY> 
  114.     </TABLE>
  115.   <BR>
  116.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  117.   </form></DIV>
  118. </BODY></HTML>