employee_create_personal_info.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:16k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_create_personal_info.jsp,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/add_personal_info
- */
- %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.hr.employer_info.value.*"%>
- <%@ page import="com.vnex.intranet.hr.employer_info.process.*"%>
- <%@ page import="com.vnex.intranet.hr.util.*"%>
- <%@ page import="java.util.*" %>
- <%@ page import="java.sql.Timestamp" %>
- <jsp:useBean id="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
- <jsp:useBean id="memberInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberInfo" scope="session" />
- <jsp:useBean id="personalInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberPrivateInfo" scope="session" />
- <jsp:setProperty name="personalInfoBean" property="*" />
- <%
- /* int emp_id = -1;
- String str = request.getParameter("emp_id");
- if ( str != null )
- {
- emp_id = Integer.parseInt( str );
- }
- */
- //MemberPrivateInfoDAO mi = new MemberPrivateInfoDAO();
- if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
- {
- //System.out.println("-------------create member personal info:"+memberInfoBean.getId() );
- personalInfoBean.setId( memberInfoBean.getId() );
- hrProxyBean.privateInfoCreate( personalInfoBean );
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
- <script language="JavaScript" src="/vnex/validate.js"></script>
- <script language="javascript" src="/vnex/util/strUtil.js"></script>
- <script language="javascript">
- function myIsDigit(s)
- {
- for (i = 0; i < s.length; i++)
- {
- var c = s.charAt(i);
- if (!isDigit(c))
- return false
- }
- return true;
- }
- function checkdata()
- {
- if ( form1.postcode.value.length > 0 && form1.postcode.value.length == 6 )
- {
- if (!myIsDigit(form1.postcode.value))
- {
- alert("你必须输入正确的邮编号码!");
- form1.postcode.focus();
- return false;
- }
- }
- if ( form1.postcode.value.length > 0 && form1.postcode.value.length != 6 )
- {
- alert("你必须输入正确的邮编号码!");
- form1.postcode.focus();
- return false;
- }
- if ( (form1.idCard.value.length >0 && form1.idCard.value.length != 15) && (form1.idCard.value.length >0 && form1.idCard.value.length != 18) )
- {
- alert("你必须输入正确的身份证号!");
- form1.idCard.focus();
- return false;
- }
- if ( form1.idCard.value.length >0 && ( form1.idCard.value.length == 15 || form1.idCard.value.length == 18) )
- {
- if (!myIsDigit(form1.idCard.value))
- {
- alert("你必须输入正确的身份证号!");
- form1.idCard.focus();
- return false;
- }
- }
- if ( form1.note.value.length > 100 )
- {
- alert("你输入备注信息过多!(<100)");
- form1.note.focus();
- return false;
- }
- return true;
- }
- </script>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff
- topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_hr.js"></script>
- <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="form1" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center">
- <br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td bgcolor="#fafafa">
- <table class=title cellspacing=1 width="600" border=0>
- <tr>
- <td colspan="3" bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>>><a href="/mainctrl/intranet/hr/search_result"><font color="#FFFFFF">员工信息库</font></a>>>新增员工个人信息</font></td>
- </tr>
- <tr>
- <td colspan="3" bgcolor="#fafafa">
- <input type="button" value="基本信息" onClick="location='/mainctrl/intranet/hr/add_basic_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
- <input type="button" value="个人信息" onClick="location='/mainctrl/intranet/hr/add_personal_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
- <input type="button" value="学历信息" onClick="location='/mainctrl/intranet/hr/add_degree_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
- <input type="button" value="履历信息" onClick="location='/mainctrl/intranet/hr/add_resume_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
- </td>
- </tr>
- <%
- if ( personalInfoBean.getId() <= 1 )
- {
- %>
- <tr>
- <td bgcolor="#e0e0e0" width="21%"><font class=strong> 住址-国家:</font></td>
- <td bgcolor="#e0e0e0" colspan="2" width="79%">
- <input type="text" name="country" class=text size="20" maxlength="10">
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> -省市:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="province" class=text size="20" maxlength="10">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> -区县:</font></td>
- <td colspan="2" width="79%"><b>
- <input type="text" name="county" class=text size="20" maxlength="10">
- </b></td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> -街道:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="street" class=text size="20" maxlength="30">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> -邮编:</font></td>
- <td colspan="2" width="79%" bgcolor="#e0e0e0"> <b>
- <input type="text" name="postcode" class=text size="20" maxlength="6">
- </b></td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> 出生年月日:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="birthDateS" readonly class=text size="20" value="<%= personalInfoBean.getBirthDate() %>"> <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(birthDateS);return false">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> 政治面貌:</font></td>
- <td colspan="2" width="79%">
- <select style="WIDTH: 120px" name="partyId" size="1">
- <option value = "0">--请选择--</option>
- <%
- Iterator iterDD = MemberParty.getAllParty().iterator();
- while ( iterDD.hasNext() )
- {
- MemberParty mp = (MemberParty)iterDD.next();
- %>
- <option value="<%= mp.getPartyId() %>" ><%= mp.getPartyName() %></option>
- <%
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> 身份证号:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="idCard" class=text size="20" maxlength="18">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> 民族:</font></td>
- <td colspan="2" width="79%">
- <input type="text" name="nation" class=text size="20" maxlength="10">
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> 家庭电话1:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="homePhone1" class=text size="20" maxlength="20">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> 家庭电话2:</font></td>
- <td colspan="2" width="79%">
- <input type="text" name="homePhone2" class=text size="20" maxlength="20">
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> 备注:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <textarea name="note" rows="6" cols="35"></textarea>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> 籍贯:</font></td>
- <td colspan="2" width="79%">
- <input type="text" name="orignal" class=text size="20" maxlength="10">
- </td>
- </tr>
- <tr>
- <td colspan="3" align="center" height="30" bgcolor="#fafafa">
- <input type="submit" value="保存" name="B3" class=text onclick="return checkdata()">
- <input type="button" value="重置" name="B22" class=text>
- <input type="reset" value="返回" name="B2" class=text onclick="location='/mainctrl/intranet/hr/search_result'">
- </td>
- </tr>
- <%
- }
- else
- {
- %>
- <tr>
- <td bgcolor="#e0e0e0" width="21%"><font class=strong> 住址-国家:</font></td>
- <td bgcolor="#e0e0e0" colspan="2" width="79%">
- <input type="text" name="country" class=text size="20" readonly value=<%= personalInfoBean.getCountry() %> >
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> -省市:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="province" class=text size="20" readonly value=<%= personalInfoBean.getProvince() %> >
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> -区县:</font></td>
- <td colspan="2" width="79%"><b>
- <input type="text" name="county" class=text size="20" readonly value=<%= personalInfoBean.getCounty() %> >
- </b></td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> -街道:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="street" class=text size="20" readonly value=<%= personalInfoBean.getStreet() %> >
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> -邮编:</font></td>
- <td colspan="2" width="79%" bgcolor="#e0e0e0"> <b>
- <input type="text" name="postcode" class=text size="20" readonly value=<%= personalInfoBean.getPostcode() %> >
- </b></td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> 出生年月日:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="birthDate" class=text size="20" readonly value=<%= personalInfoBean.getBirthDate() %> >
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> 政治面貌:</font></td>
- <td colspan="2" width="79%">
- <select style="WIDTH: 120px" name="partyId" disabled size="1">
- <option value = "-1">--请选择--</option>
- <%
- Iterator iterDD = MemberParty.getAllParty().iterator();
- while ( iterDD.hasNext() )
- {
- MemberParty mp = (MemberParty)iterDD.next();
- %>
- <option value="<%= mp.getPartyId() %>" <% if (personalInfoBean.getPartyId() == mp.getPartyId()) out.print("selected"); %>><%= mp.getPartyName() %></option>
- <%
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> 身份证号:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="idCard" class=text size="20" readonly value=<%= personalInfoBean.getIdCard() %> >
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> 民族:</font></td>
- <td colspan="2" width="79%">
- <input type="text" name="nation" class=text size="20" readonly value=<%= personalInfoBean.getNation() %> >
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> 家庭电话1:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="homePhone1" class=text size="20" readonly value=<%= personalInfoBean.getHomePhone1() %> >
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> 家庭电话2:</font></td>
- <td colspan="2" width="79%">
- <input type="text" name="homePhone2" class=text size="20" readonly value=<%= personalInfoBean.getHomePhone2() %> >
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> 备注:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <textarea name="note" rows="6" readonly cols="35"><%= personalInfoBean.getNote() %> </textarea>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> 籍贯:</font></td>
- <td colspan="2" width="79%">
- <input type="text" name="orignal" class=text size="20" readonly value=<%= personalInfoBean.getOrignal() %> >
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="3" align="center" height="30">
- <input type="reset" value="返回" name="B2" class=text onclick="location='/mainctrl/intranet/hr/search_result'">
- </td>
- </tr>
- <%
- }
- %>
- </table>
- </td>
- </tr>
- </table>
- <br><br>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- <input type=hidden name=doAdd value=1 >
- </form></DIV>
- </BODY></HTML>