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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: employee_create_personal_info.jsp,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/hr/add_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="memberInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberInfo" scope="session" />
  17. <jsp:useBean id="personalInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberPrivateInfo" scope="session" />
  18. <jsp:setProperty name="personalInfoBean" property="*" />
  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. */
  27.     //MemberPrivateInfoDAO mi = new MemberPrivateInfoDAO();
  28.     if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
  29.     {
  30.         //System.out.println("-------------create member personal info:"+memberInfoBean.getId() );
  31.         personalInfoBean.setId( memberInfoBean.getId() );
  32.         hrProxyBean.privateInfoCreate( personalInfoBean );
  33.     }
  34. %>
  35. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  36. <HTML>
  37. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  38. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  39. <script language="JavaScript" src="/vnex/validate.js"></script>
  40. <script language="javascript" src="/vnex/util/strUtil.js"></script>
  41. <script language="javascript">
  42. function myIsDigit(s)
  43. {
  44.     for (i = 0; i < s.length; i++)
  45.     {
  46.         var c = s.charAt(i);
  47.         if (!isDigit(c))
  48.             return false
  49.     }
  50.     return true;
  51. }
  52. function checkdata() 
  53. {
  54.     if ( form1.postcode.value.length > 0 && form1.postcode.value.length == 6 )
  55.     {
  56.         if (!myIsDigit(form1.postcode.value)) 
  57.         {
  58.             alert("你必须输入正确的邮编号码!");
  59.             form1.postcode.focus();
  60.             return false;
  61.         }
  62.     }
  63.     if ( form1.postcode.value.length > 0 && form1.postcode.value.length != 6 )
  64.     {
  65.         alert("你必须输入正确的邮编号码!");
  66.         form1.postcode.focus();
  67.         return false;
  68.     }
  69.     if ( (form1.idCard.value.length >0 && form1.idCard.value.length != 15) && (form1.idCard.value.length >0 && form1.idCard.value.length != 18) )
  70.     {
  71.         alert("你必须输入正确的身份证号!");
  72.         form1.idCard.focus();
  73.         return false;
  74.     }
  75.     if ( form1.idCard.value.length >0 && ( form1.idCard.value.length == 15 || form1.idCard.value.length == 18) )
  76.     {
  77.         if (!myIsDigit(form1.idCard.value)) 
  78.         {
  79.             alert("你必须输入正确的身份证号!");
  80.             form1.idCard.focus();
  81.             return false;
  82.         }
  83.     }
  84.     if ( form1.note.value.length > 100 )
  85.     {
  86.         alert("你输入备注信息过多!(<100)");
  87.         form1.note.focus();
  88.         return false;
  89.     }
  90.     return true;
  91. }
  92. </script>
  93. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff 
  94. topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  95. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_hr.js"></script>
  96. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  97. <DIV align=center>
  98. <form name="form1" method="post" action="">
  99.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  100.     <TBODY>
  101.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  102.     <TR> 
  103.         <TD colSpan=3 align="center"> 
  104.           <br>
  105.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  106.             <tr>
  107.               <td bgcolor="#fafafa"> 
  108.                 <table class=title cellspacing=1 width="600" border=0>
  109.                   <tr> 
  110.                     <td colspan="3" bgcolor="#666666"><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>
  111.                   </tr>
  112.             <tr> 
  113.               <td  colspan="3" bgcolor="#fafafa"> 
  114.                 <input type="button" value="基本信息" onClick="location='/mainctrl/intranet/hr/add_basic_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
  115.                   
  116.                 <input type="button" value="个人信息" onClick="location='/mainctrl/intranet/hr/add_personal_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
  117.                   
  118.                 <input type="button" value="学历信息" onClick="location='/mainctrl/intranet/hr/add_degree_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
  119.                   
  120.                 <input type="button" value="履历信息" onClick="location='/mainctrl/intranet/hr/add_resume_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
  121.               </td>
  122.             </tr>
  123.      <%
  124.         if ( personalInfoBean.getId() <= 1 )
  125.         {
  126.      %>
  127.             <tr> 
  128.               <td bgcolor="#e0e0e0" width="21%"><font class=strong>&nbsp;住址-国家:</font></td>
  129.               <td bgcolor="#e0e0e0" colspan="2" width="79%"> 
  130.                 <input type="text" name="country" class=text size="20" maxlength="10">
  131.               </td>
  132.             </tr>
  133.             <tr> 
  134.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;-省市:</font></td>
  135.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  136.                 <input type="text" name="province" class=text size="20" maxlength="10">
  137.               </td>
  138.             </tr>
  139.             <tr bgcolor="#e0e0e0"> 
  140.               <td width="21%"><font class=strong>&nbsp;-区县:</font></td>
  141.               <td colspan="2" width="79%"><b> 
  142.                 <input type="text" name="county" class=text size="20" maxlength="10">
  143.                 </b></td>
  144.             </tr>
  145.             <tr> 
  146.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;-街道:</font></td>
  147.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  148.                 <input type="text" name="street" class=text size="20" maxlength="30">
  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" class=text size="20" maxlength="6">
  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" readonly class=text size="20" value="<%= personalInfoBean.getBirthDate() %>">&nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(birthDateS);return false">
  161.               </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: 120px" name="partyId" size="1">
  167.                 <option value = "0">--请选择--</option>
  168.          <%
  169.             Iterator iterDD  = MemberParty.getAllParty().iterator();
  170.             while ( iterDD.hasNext() )
  171.             {
  172.                 MemberParty mp = (MemberParty)iterDD.next();
  173.          %>
  174.                   <option value="<%= mp.getPartyId() %>" ><%= mp.getPartyName() %></option>
  175.          <%
  176.             }
  177.          %>
  178.                 </select>
  179.               </td>
  180.             </tr>
  181.             <tr> 
  182.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;身份证号:</font></td>
  183.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  184.                 <input type="text" name="idCard" class=text size="20" maxlength="18">
  185.               </td>
  186.             </tr>
  187.             <tr bgcolor="#e0e0e0"> 
  188.               <td width="21%"><font class=strong>&nbsp;民族:</font></td>
  189.               <td colspan="2" width="79%"> 
  190.                 <input type="text" name="nation" class=text size="20" maxlength="10">
  191.               </td>
  192.             </tr>
  193.             <tr> 
  194.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;家庭电话1:</font></td>
  195.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  196.                 <input type="text" name="homePhone1" class=text size="20" maxlength="20">
  197.               </td>
  198.             </tr>
  199.             <tr bgcolor="#e0e0e0"> 
  200.               <td width="21%"><font class=strong>&nbsp;家庭电话2:</font></td>
  201.               <td colspan="2" width="79%"> 
  202.                 <input type="text" name="homePhone2" class=text size="20" maxlength="20">
  203.               </td>
  204.             </tr>
  205.             <tr>
  206.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;备注:</font></td>
  207.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  208.                 <textarea name="note" rows="6" cols="35"></textarea>
  209.               </td>
  210.             </tr>
  211.             <tr bgcolor="#e0e0e0"> 
  212.               <td width="21%"><font class=strong>&nbsp;籍贯:</font></td>
  213.               <td colspan="2" width="79%">
  214.                 <input type="text" name="orignal" class=text size="20" maxlength="10">
  215.               </td>
  216.             </tr>
  217.                   <tr> 
  218.                     <td colspan="3" align="center" height="30" bgcolor="#fafafa"> 
  219.           <input type="submit" value="保存" name="B3" class=text onclick="return checkdata()">
  220.                       <input type="button" value="重置" name="B22" class=text>&nbsp;&nbsp;
  221.           <input type="reset" value="返回" name="B2" class=text onclick="location='/mainctrl/intranet/hr/search_result'">
  222.                     </td>
  223.                   </tr>
  224.     <%
  225.         }
  226.         else 
  227.         {
  228.     %>
  229.             <tr> 
  230.               <td bgcolor="#e0e0e0" width="21%"><font class=strong>&nbsp;住址-国家:</font></td>
  231.               <td bgcolor="#e0e0e0" colspan="2" width="79%"> 
  232.                 <input type="text" name="country" class=text size="20" readonly value=<%= personalInfoBean.getCountry() %> >
  233.               </td>
  234.             </tr>
  235.             <tr> 
  236.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;-省市:</font></td>
  237.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  238.                 <input type="text" name="province" class=text size="20" readonly value=<%= personalInfoBean.getProvince() %> >
  239.               </td>
  240.             </tr>
  241.             <tr bgcolor="#e0e0e0"> 
  242.               <td width="21%"><font class=strong>&nbsp;-区县:</font></td>
  243.               <td colspan="2" width="79%"><b> 
  244.                 <input type="text" name="county" class=text size="20" readonly value=<%= personalInfoBean.getCounty() %> >
  245.                 </b></td>
  246.             </tr>
  247.             <tr> 
  248.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;-街道:</font></td>
  249.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  250.                 <input type="text" name="street" class=text size="20" readonly value=<%= personalInfoBean.getStreet() %> >
  251.               </td>
  252.             </tr>
  253.             <tr bgcolor="#e0e0e0"> 
  254.               <td width="21%"><font class=strong>&nbsp;-邮编:</font></td>
  255.               <td colspan="2" width="79%" bgcolor="#e0e0e0"> <b> 
  256.                 <input type="text" name="postcode" class=text size="20" readonly value=<%= personalInfoBean.getPostcode() %> >
  257.                 </b></td>
  258.             </tr>
  259.             <tr> 
  260.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;出生年月日:</font></td>
  261.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  262.                 <input type="text" name="birthDate" class=text size="20" readonly value=<%= personalInfoBean.getBirthDate() %> >
  263.               </td>
  264.             </tr>
  265.             <tr bgcolor="#e0e0e0"> 
  266.               <td width="21%"><font class=strong>&nbsp;政治面貌:</font></td>
  267.               <td colspan="2" width="79%"> 
  268.                 <select style="WIDTH: 120px" name="partyId" disabled size="1">
  269.                 <option value = "-1">--请选择--</option>
  270.          <% 
  271.             Iterator iterDD  = MemberParty.getAllParty().iterator();
  272.             while ( iterDD.hasNext() )
  273.             {
  274.                 MemberParty mp = (MemberParty)iterDD.next();
  275.          %>
  276.                   <option value="<%= mp.getPartyId() %>" <% if (personalInfoBean.getPartyId() == mp.getPartyId()) out.print("selected"); %>><%= mp.getPartyName() %></option>
  277.          <%
  278.             }
  279.          %>
  280.                 </select>
  281.               </td>
  282.             </tr>
  283.             <tr> 
  284.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;身份证号:</font></td>
  285.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  286.                 <input type="text" name="idCard" class=text size="20" readonly value=<%= personalInfoBean.getIdCard() %> >
  287.               </td>
  288.             </tr>
  289.             <tr bgcolor="#e0e0e0"> 
  290.               <td width="21%"><font class=strong>&nbsp;民族:</font></td>
  291.               <td colspan="2" width="79%"> 
  292.                 <input type="text" name="nation" class=text size="20" readonly value=<%= personalInfoBean.getNation() %> >
  293.               </td>
  294.             </tr>
  295.             <tr> 
  296.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;家庭电话1:</font></td>
  297.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  298.                 <input type="text" name="homePhone1" class=text size="20" readonly value=<%= personalInfoBean.getHomePhone1() %> >
  299.               </td>
  300.             </tr>
  301.             <tr bgcolor="#e0e0e0"> 
  302.               <td width="21%"><font class=strong>&nbsp;家庭电话2:</font></td>
  303.               <td colspan="2" width="79%"> 
  304.                 <input type="text" name="homePhone2" class=text size="20" readonly value=<%= personalInfoBean.getHomePhone2() %> >
  305.               </td>
  306.             </tr>
  307.             <tr>
  308.               <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;备注:</font></td>
  309.               <td bgcolor="#fafafa" colspan="2" width="79%"> 
  310.                 <textarea name="note" rows="6" readonly cols="35"><%= personalInfoBean.getNote() %> </textarea>
  311.               </td>
  312.             </tr>
  313.             <tr bgcolor="#e0e0e0"> 
  314.               <td width="21%"><font class=strong>&nbsp;籍贯:</font></td>
  315.               <td colspan="2" width="79%">
  316.                 <input type="text" name="orignal" class=text size="20" readonly value=<%= personalInfoBean.getOrignal() %> >
  317.               </td>
  318.             </tr>
  319.                   <tr bgcolor="#fafafa"> 
  320.                     <td colspan="3" align="center" height="30"> 
  321.                       <input type="reset" value="返回" name="B2" class=text onclick="location='/mainctrl/intranet/hr/search_result'">
  322.                     </td>
  323.                   </tr>
  324.     <%
  325.         }
  326.     %>
  327.                 </table>
  328.            </td>
  329.             </tr>
  330.           </table> 
  331.           <br><br>
  332.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  333.         </TD>
  334.     </TR>
  335.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  336.     </TBODY> 
  337.     </TABLE>
  338.   <BR>
  339.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  340.         <input type=hidden name=doAdd value=1 >
  341.   </form></DIV>
  342. </BODY></HTML>