employee_edit_personal_info.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:12k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_edit_personal_info.jsp,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/edit_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="proxyBean" 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="page" />
- <jsp:setProperty name="personalInfoBean" property="*" />
- <%
- int emp_id = -1;
- String str = request.getParameter("emp_id");
- if ( str != null )
- {
- emp_id = Integer.parseInt( str );
- personalInfoBean.setId( emp_id );
- session.setAttribute( "personalInfoBean", personalInfoBean );
- }
- String start = request.getParameter("start");
- //MemberPrivateInfoDAO mi = new MemberPrivateInfoDAO();
- if ( request.getParameter("doSave") != null && personalInfoBean.getId() > 0 )
- {
- proxyBean.privateInfoStore( personalInfoBean );
- }
- else
- {
- personalInfoBean = hrProxyBean.privateInfoFind( personalInfoBean.getId() );
- }
- //Collection collAllP = mi.findAll();
- %>
- <!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="/mainctrl/intranet/hr/edit_personal_info?emp_id=<%= emp_id %>">
- <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 bgcolor="#666666">
- <td colspan="3"><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 bgcolor="#fafafa">
- <td colspan="3" height="30">
- <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>
- <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>
- <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>
- <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>
- <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>
- <input type="button" style="width:60px" value="合同管理" onClick="location='/mainctrl/intranet/hr/manage_contract?emp_id=<%= memberInfoBean.getId() %>&start=<%= start %>'" name="B322" class=text>
- </td>
- </tr>
- <tr>
- <td bgcolor="#e0e0e0" width="21%"><font class=strong>住址-国家:</font></td>
- <td bgcolor="#e0e0e0" colspan="2" width="79%">
- <input type="text" name="country" maxlength="10" class=text size="24" 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" maxlength="10" class=text size="24" 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" maxlength="10" class=text size="24" 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" maxlength="30" class=text size="24" 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" maxlength="6" class=text size="24" 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="birthDateS" class=text readonly size="24" value="<%= MyDateFormat.myDate(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:100px" name="partyId" size="1">
- <%
- 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" maxlength="18" class=text size="24" 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" maxlength="10" class=text size="6" 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" maxlength="20" class=text size="24" 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" maxlength="20" class=text size="24" value="<%= personalInfoBean.getHomePhone2() %>">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="21%"><font class=strong> 籍贯:</font></td>
- <td colspan="2" width="79%">
- <input type="text" name="orignal" maxlength="10" class=text size="24" value="<%= personalInfoBean.getOrignal() %>">
- </td>
- </tr>
- <tr>
- <td bgcolor="#e0e0e0" width="21%"><font class=strong> 备注:</font></td>
- <td bgcolor="#e0e0e0" colspan="2" width="79%">
- <textarea name="note" rows="6" cols="59"><%= personalInfoBean.getNote() %></textarea>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="3" height="30" align="center">
- <input type="submit" value="保存" name="B32" class=text onclick="return checkdata()">
- <input type="reset" value="重置" name="B222" class=text>
- <input type="button" value="放弃" name="B22" onClick="location='/mainctrl/intranet/hr/search_result?start=<%= start %>'" class=text>
- </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=doSave value=<%= emp_id %>>
- <input type=hidden name=emp_id value=<%= emp_id %>>
- <input type=hidden name=start value=<%= start %> >
- </form></DIV>
- </BODY></HTML>