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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: employee_edit_personal_info.jsp,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/hr/edit_personal_info
  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="proxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
  17. <jsp:useBean id="memberInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberInfo" scope="session" />
  18. <jsp:useBean id="personalInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberPrivateInfo" scope="page" />
  19. <jsp:setProperty name="personalInfoBean" property="*" />
  20. <%
  21.     int emp_id = -1;
  22.     String str = request.getParameter("emp_id");
  23.     if ( str != null )
  24.     {
  25.         emp_id = Integer.parseInt( str );
  26.         personalInfoBean.setId( emp_id );
  27.         session.setAttribute( "personalInfoBean", personalInfoBean );
  28.     }
  29.     String start = request.getParameter("start");
  30.     //MemberPrivateInfoDAO mi = new MemberPrivateInfoDAO();
  31.     if ( request.getParameter("doSave") != null && personalInfoBean.getId() > 0 )
  32.     {
  33.         proxyBean.privateInfoStore( personalInfoBean );
  34.     }
  35.     else
  36.     {
  37.         personalInfoBean = hrProxyBean.privateInfoFind( personalInfoBean.getId() );
  38.     }
  39.     //Collection collAllP = mi.findAll();
  40. %>
  41. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  42. <HTML>
  43. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  44. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  45. <script language="JavaScript" src="/vnex/validate.js"></script>
  46. <script language="javascript" src="/vnex/util/strUtil.js"></script>
  47. <script language="javascript">
  48. function myIsDigit(s)
  49. {
  50.     for (i = 0; i < s.length; i++)
  51.     {
  52.         var c = s.charAt(i);
  53.         if (!isDigit(c))
  54.             return false
  55.     }
  56.     return true;
  57. }
  58. function checkdata() 
  59. {
  60.     if ( form1.postcode.value.length > 0 && form1.postcode.value.length == 6 )
  61.     {
  62.         if (!myIsDigit(form1.postcode.value)) 
  63.         {
  64.             alert("你必须输入正确的邮编号码!");
  65.             form1.postcode.focus();
  66.             return false;
  67.         }
  68.     }
  69.     if ( form1.postcode.value.length > 0 && form1.postcode.value.length != 6 )
  70.     {
  71.         alert("你必须输入正确的邮编号码!");
  72.         form1.postcode.focus();
  73.         return false;
  74.     }
  75.     if ( (form1.idCard.value.length >0 && form1.idCard.value.length != 15) && (form1.idCard.value.length >0 && form1.idCard.value.length != 18) )
  76.     {
  77.         alert("你必须输入正确的身份证号!");
  78.         form1.idCard.focus();
  79.         return false;
  80.     }
  81.     if ( form1.idCard.value.length >0 && ( form1.idCard.value.length == 15 || form1.idCard.value.length == 18) )
  82.     {
  83.         if (!myIsDigit(form1.idCard.value)) 
  84.         {
  85.             alert("你必须输入正确的身份证号!");
  86.             form1.idCard.focus();
  87.             return false;
  88.         }
  89.     }
  90.     if ( form1.note.value.length > 100 )
  91.     {
  92.         alert("你输入备注信息过多!(<100)");
  93.         form1.note.focus();
  94.         return false;
  95.     }
  96.     return true;
  97. }
  98. </script>
  99. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  100. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_hr.js"></script>
  101. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  102. <DIV align=center>
  103. <form name="form1" method="post" action="/mainctrl/intranet/hr/edit_personal_info?emp_id=<%= emp_id %>">
  104.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  105.     <TBODY>
  106.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  107.     <TR> 
  108.         <TD colSpan=3 align="center"> 
  109.           <br>
  110.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  111.             <tr>
  112.               <td bgcolor="#fafafa"> 
  113.                 <table class=title cellspacing=1 width="600" border=0>
  114.                   <tr bgcolor="#666666"> 
  115.                     <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;个人信息</font></td>
  116.                   </tr>
  117.                   <tr bgcolor="#fafafa"> 
  118.                     <td colspan="3" height="30">&nbsp; 
  119.                       <input type="button" style="width:60px" value="基本信息" onClick="location='/mainctrl/intranet/hr/edit_basic_info?emp_id=<%= memberInfoBean.getId() %>&start=<%= start %>'" name="B322" class=text>&nbsp;&nbsp;
  120.                       <input type="button" style="width:60px" value="个人信息" onClick="location='/mainctrl/intranet/hr/edit_personal_info?emp_id=<%= memberInfoBean.getId() %>&start=<%= start %>'" name="B322" class=text>&nbsp;&nbsp;
  121.                       <input type="button" style="width:60px" value="学历信息" onClick="location='/mainctrl/intranet/hr/edit_degree_info?emp_id=<%= memberInfoBean.getId() %>&start=<%= start %>'" name="B322" class=text>&nbsp;&nbsp;
  122.                       <input type="button" style="width:60px" value="履历信息" onClick="location='/mainctrl/intranet/hr/edit_resume_info?emp_id=<%= memberInfoBean.getId() %>&start=<%= start %>'" name="B322" class=text>&nbsp;&nbsp;
  123.                       <input type="button" style="width:95px" value="本公司工作履历" onClick="location='/mainctrl/intranet/hr/edit_inner_resume?emp_id=<%= memberInfoBean.getId() %>&start=<%= start %>'" name="B322" class=text>&nbsp;&nbsp;
  124.                       <input type="button" style="width:60px" value="合同管理" onClick="location='/mainctrl/intranet/hr/manage_contract?emp_id=<%= memberInfoBean.getId() %>&start=<%= start %>'" name="B322" class=text>
  125.                     </td>
  126.                   </tr>
  127.             <tr> 
  128.               <td bgcolor="#e0e0e0" width="21%"><font class=strong>住址-国家:</font></td>
  129.               <td bgcolor="#e0e0e0" colspan="2" width="79%"> 
  130.                 <input type="text" name="country" maxlength="10" class=text size="24" value="<%= personalInfoBean.getCountry() %>">
  131.               </td>
  132.             </tr>
  133.             <tr> 
  134.               <td bgcolor="#fafafa" width="21%"><font class=strong>-省市:</font></td>
  135.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  136.                 <input type="text" name="province" maxlength="10" class=text size="24" value="<%= personalInfoBean.getProvince() %>">
  137.               </td>
  138.             </tr>
  139.             <tr bgcolor="#e0e0e0"> 
  140.               <td width="21%"><font class=strong>-区县:</font></td>
  141.               <td colspan="2" width="79%"><b> 
  142.                 <input type="text" name="county" maxlength="10" class=text size="24" value="<%= personalInfoBean.getCounty() %>">
  143.                 </b></td>
  144.             </tr>
  145.             <tr> 
  146.               <td bgcolor="#fafafa" width="21%"><font class=strong>-街道:</font></td>
  147.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  148.                 <input type="text" name="street" maxlength="30" class=text size="24" value="<%= personalInfoBean.getStreet() %>">
  149.               </td>
  150.             </tr>
  151.                   <tr bgcolor="#e0e0e0"> 
  152.                     <td width="21%"><font class=strong>&nbsp;邮编:</font></td>
  153.                     <td colspan="2" width="79%" bgcolor="#e0e0e0"> <b> 
  154.                       <input type="text" name="postcode" maxlength="6" class=text size="24" value="<%= personalInfoBean.getPostcode() %>">
  155.                       </b></td>
  156.                   </tr>
  157.                   <tr> 
  158.                     <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;出生年月日:</font></td>
  159.                     <td bgcolor="#fafafa" colspan="2" width="79%"> 
  160.                       <input type="text" name="birthDateS" class=text readonly size="24" value="<%= MyDateFormat.myDate(personalInfoBean.getBirthDate()) %>">
  161.                       &nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(birthDateS);return false"></td>
  162.                   </tr>
  163.                   <tr bgcolor="#e0e0e0"> 
  164.                     <td width="21%"><font class=strong>&nbsp;政治面貌:</font></td>
  165.                     <td colspan="2" width="79%"> 
  166.                       <select style="WIDTH:100px" name="partyId" size="1">
  167.          <%
  168.             Iterator iterDD  = MemberParty.getAllParty().iterator();
  169.             while ( iterDD.hasNext() )
  170.             {
  171.                 MemberParty mp = (MemberParty)iterDD.next();
  172.          %>
  173.                   <option value="<%= mp.getPartyId() %>" <% if (personalInfoBean.getPartyId() == mp.getPartyId()) out.print("selected"); %>><%= mp.getPartyName() %></option>
  174.          <%
  175.             }
  176.          %>
  177.                       </select>
  178.                     </td>
  179.                   </tr>
  180.                   <tr> 
  181.                     <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;身份证号:</font></td>
  182.                     <td bgcolor="#fafafa" colspan="2" width="79%"> 
  183.                       <input type="text" name="idCard" maxlength="18" class=text size="24" value="<%= personalInfoBean.getIdCard() %>">
  184.                     </td>
  185.                   </tr>
  186.                   <tr bgcolor="#e0e0e0"> 
  187.                     <td width="21%"><font class=strong>&nbsp;民族:</font></td>
  188.                     <td colspan="2" width="79%"> 
  189.                       <input type="text" name="nation" maxlength="10" class=text size="6" value="<%= personalInfoBean.getNation() %>">
  190.                     </td>
  191.                   </tr>
  192.                   <tr> 
  193.                     <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;家庭电话1:</font></td>
  194.                     <td bgcolor="#fafafa" colspan="2" width="79%"> 
  195.                       <input type="text" name="homePhone1" maxlength="20" class=text size="24" value="<%= personalInfoBean.getHomePhone1() %>">
  196.                     </td>
  197.                   </tr>
  198.                   <tr bgcolor="#e0e0e0"> 
  199.                     <td width="21%"><font class=strong>&nbsp;家庭电话2:</font></td>
  200.                     <td colspan="2" width="79%"> 
  201.                       <input type="text" name="homePhone2" maxlength="20" class=text size="24" value="<%= personalInfoBean.getHomePhone2() %>">
  202.                     </td>
  203.                   </tr>
  204.                   <tr bgcolor="#fafafa"> 
  205.                     <td width="21%"><font class=strong>&nbsp;籍贯:</font></td>
  206.                     <td colspan="2" width="79%"> 
  207.                       <input type="text" name="orignal" maxlength="10" class=text size="24" value="<%= personalInfoBean.getOrignal() %>">
  208.                     </td>
  209.                   </tr>
  210.                   <tr> 
  211.                     <td bgcolor="#e0e0e0" width="21%"><font class=strong>&nbsp;备注:</font></td>
  212.                     <td bgcolor="#e0e0e0" colspan="2" width="79%"> 
  213.                       <textarea name="note" rows="6" cols="59"><%= personalInfoBean.getNote() %></textarea>
  214.                     </td>
  215.                   </tr>
  216.                   <tr bgcolor="#fafafa"> 
  217.                     <td colspan="3" height="30" align="center"> 
  218.                       <input type="submit" value="保存" name="B32" class=text onclick="return checkdata()">&nbsp;&nbsp; 
  219.                       <input type="reset" value="重置" name="B222" class=text>&nbsp;&nbsp;
  220.                       <input type="button" value="放弃" name="B22" onClick="location='/mainctrl/intranet/hr/search_result?start=<%= start %>'"  class=text>
  221.                     </td>
  222.                   </tr>
  223.                 </table>
  224.            </td>
  225.             </tr>
  226.           </table> 
  227.           <br><br>
  228.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  229.         </TD>
  230.     </TR>
  231.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  232.     </TBODY> 
  233.     </TABLE>
  234.   <BR>
  235.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  236.     <input type=hidden name=doSave value=<%= emp_id %>>
  237.     <input type=hidden name=emp_id value=<%= emp_id %>>
  238.     <input type=hidden name=start value=<%= start %> >
  239.   </form></DIV>
  240. </BODY></HTML>