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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: employee_change_formal_record.jsp,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/hr/change_formal_record
  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. <jsp:useBean id="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
  15. <jsp:useBean id="memberInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberInfo" scope="session" />
  16. <jsp:useBean id="formalBean" class="com.vnex.intranet.hr.employer_info.value.FormalInfo" scope="page" />
  17. <jsp:setProperty name="formalBean" property="*" />
  18. <%
  19.     boolean isExist = false;
  20.     int emp_id = -1;
  21.     String str = request.getParameter("emp_id");
  22.     if ( str != null )
  23.     {
  24.         emp_id = Integer.parseInt( str );
  25.         formalBean.setEmpId( emp_id );
  26.     }
  27.     //FormalInfoDAO mi = new FormalInfoDAO();
  28.     if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
  29.     {
  30.         hrProxyBean.formalInfoCreate( formalBean );
  31.         isExist = true;
  32.     }
  33.     else if ( request.getParameter("doSave") != null && memberInfoBean.getId() > 0 )
  34.     {
  35.         hrProxyBean.formalInfoStore( formalBean );
  36.         isExist = true;
  37.     }
  38.     else
  39.     {
  40.         formalBean = hrProxyBean.formalFind( memberInfoBean.getId() );
  41.         if ( formalBean != null )
  42.         {
  43.             isExist = true;
  44.             session.setAttribute( "formalBean", formalBean );
  45.         }
  46.     }
  47. %>
  48. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  49. <HTML>
  50. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  51. <script language="JavaScript" src="/vnex/validate.js"></script>
  52. <script language="javascript">
  53. function checkdata() 
  54. {
  55.     if ( form1.ownAdvice.value.length > 200 )
  56.     {
  57.         alert("你输入备注信息过多!(<200)");
  58.         form1.ownAdvice.focus();
  59.         return false;
  60.     }
  61.     if ( form1.managerAdvice.value.length > 200 )
  62.     {
  63.         alert("你输入备注信息过多!(<200)");
  64.         form1.managerAdvice.focus();
  65.         return false;
  66.     }
  67.     if ( form1.ceoAdvice.value.length > 200 )
  68.     {
  69.         alert("你输入备注信息过多!(<200)");
  70.         form1.ceoAdvice.focus();
  71.         return false;
  72.     }
  73.     if ( form1.hrAdvice.value.length > 200 )
  74.     {
  75.         alert("你输入备注信息过多!(<200)");
  76.         form1.hrAdvice.focus();
  77.         return false;
  78.     }
  79.     return true;
  80. }
  81. </script>
  82. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  83. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_hr.js"></script>
  84. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  85. <DIV align=center>
  86. <form name="form1" method="post" action="/mainctrl/intranet/hr/change_formal_record?emp_id=<%= emp_id %>">
  87.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  88.     <TBODY>
  89.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  90.     <TR> 
  91.         <TD colSpan=3 align="center"> 
  92.           <br>
  93.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  94.             <tr>
  95.               <td bgcolor="#fafafa"> 
  96.                 <table class=title cellspacing=1 width="600" border=0>
  97.                   <tr bgcolor="#666666"> 
  98.                     <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>
  99.                   </tr>
  100.     <%
  101.         if ( isExist == false )
  102.         {
  103.     %>
  104.                   <tr> 
  105.                     <td bgcolor="#e0e0e0" width="25%"><font class=strong>&nbsp;姓名:</font></td>
  106.                     <td bgcolor="#e0e0e0" colspan="2" width="75%"><%= memberInfoBean.getName() %></td>
  107.                   </tr>
  108.                   <tr> 
  109.                     <td bgcolor="#fafafa" width="25%"><font class=strong>&nbsp;员工试用期总结:</font></td>
  110.                     <td bgcolor="#fafafa" colspan="2" width="75%"> 
  111.                       <textarea name="ownAdvice" rows="6" cols="59"></textarea>
  112.                     </td>
  113.                   </tr>
  114.                   <tr bgcolor="#e0e0e0"> 
  115.                     <td width="25%"><font class=strong>&nbsp;试用期部门经理意见:</font></td>
  116.                     <td colspan="2" width="75%" bgcolor="#e0e0e0"> <b> 
  117.                       <textarea name="managerAdvice" rows="6" cols="59"></textarea>
  118.                       </b></td>
  119.                   </tr>
  120.                   <tr> 
  121.                     <td bgcolor="#fafafa" width="25%"><font class=strong>&nbsp;试用期总裁意见:</font></td>
  122.                     <td bgcolor="#fafafa" colspan="2" width="75%"> 
  123.                       <textarea name="ceoAdvice" rows="6" cols="59"></textarea>
  124.                     </td>
  125.                   </tr>
  126.                   <tr bgcolor="#e0e0e0"> 
  127.                     <td width="25%"><font class=strong>&nbsp;人力资源部转正意见:</font></td>
  128.                     <td colspan="2" width="75%"> 
  129.                       <textarea name="hrAdvice" rows="6" cols="59"></textarea>
  130.                     </td>
  131.                   </tr>
  132.                   <tr bgcolor="#FAFAFA" align="center"> 
  133.                     <td colspan="3" height="30"> 
  134.                       <input type="submit" value="保存" name="B1" class=text onClick="return checkdata()">&nbsp;&nbsp;
  135.                       <input type="reset" value="重置" name="B2" class=text>&nbsp;&nbsp;
  136.                       <input type="button" value="放弃" name="B22" onClick="location='/mainctrl/intranet/hr/search_result'"  class=text>
  137.                     <input type=hidden name=doAdd value=<%= emp_id %>>
  138.                     </td>
  139.                   </tr>
  140.     <%
  141.         }
  142.         else
  143.         {
  144.     %>
  145.                   <tr> 
  146.                     <td bgcolor="#e0e0e0" width="25%"><font class=strong>&nbsp;姓名:</font></td>
  147.                     <td bgcolor="#e0e0e0" colspan="2" width="75%"><%= memberInfoBean.getName() %></td>
  148.                   </tr>
  149.                   <tr> 
  150.                     <td bgcolor="#fafafa" width="25%"><font class=strong>&nbsp;员工试用期总结:</font></td>
  151.                     <td bgcolor="#fafafa" colspan="2" width="75%"> 
  152.                       <textarea name="ownAdvice" rows="6" cols="59"><%= formalBean.getOwnAdvice() %></textarea>
  153.                     </td>
  154.                   </tr>
  155.                   <tr bgcolor="#e0e0e0"> 
  156.                     <td width="25%"><font class=strong>&nbsp;试用期部门经理意见:</font></td>
  157.                     <td colspan="2" width="75%" bgcolor="#e0e0e0"> <b> 
  158.                       <textarea name="managerAdvice" rows="6" cols="59"><%= formalBean.getManagerAdvice() %></textarea>
  159.                       </b></td>
  160.                   </tr>
  161.                   <tr> 
  162.                     <td bgcolor="#fafafa" width="25%"><font class=strong>&nbsp;试用期总裁意见:</font></td>
  163.                     <td bgcolor="#fafafa" colspan="2" width="75%"> 
  164.                       <textarea name="ceoAdvice" rows="6" cols="59"><%= formalBean.getCeoAdvice() %></textarea>
  165.                     </td>
  166.                   </tr>
  167.                   <tr bgcolor="#e0e0e0"> 
  168.                     <td width="25%"><font class=strong>&nbsp;人力资源部转正意见:</font></td>
  169.                     <td colspan="2" width="75%"> 
  170.                       <textarea name="hrAdvice" rows="6" cols="59"><%= formalBean.getHrAdvice() %></textarea>
  171.                     </td>
  172.                   </tr>
  173.                   <tr bgcolor="#FAFAFA" align="center"> 
  174.                     <td colspan="3" height="30"> 
  175.                       <input type="submit" value="保存" name="B1" class=text onClick="return checkdata()">&nbsp;&nbsp;
  176.                       <input type="reset" value="重置" name="B2" class=text>&nbsp;&nbsp;
  177.                       <input type="button" value="放弃" name="B22" onClick="location='/mainctrl/intranet/hr/search_result'"  class=text>
  178.                     <input type=hidden name=doSave value=<%= emp_id %>>
  179.                     </td>
  180.                   </tr>
  181.     <%
  182.         }
  183.     %>
  184.                 </table>
  185.            </td>
  186.             </tr>
  187.           </table> 
  188.           <br><br>
  189.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  190.             </TD>
  191.     </TR>
  192.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  193.     </TBODY> 
  194.     </TABLE>
  195.   <BR>
  196.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  197.     <input type=hidden name=emp_id value=<%= emp_id %> >
  198.   </form></DIV>
  199. </BODY></HTML>