employee_edit_resume_info.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:13k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_edit_resume_info.jsp,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/edit_resume_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" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <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="resumeInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberResumeInfo" scope="page" />
- <jsp:setProperty name="resumeInfoBean" property="*" />
- <%
- int emp_id = -1;
- String str = request.getParameter("emp_id");
- if ( str != null )
- {
- emp_id = Integer.parseInt( str );
- }
- String start = request.getParameter("start");
- Collection pageColl = new ArrayList();
- //MemberResumeInfoDAO mi = new MemberResumeInfoDAO();
- if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
- {
- resumeInfoBean.setEmployerId( memberInfoBean.getId() );
- hrProxyBean.resumeInfoCreate( resumeInfoBean );
- }
- if ( request.getParameter("doDel") != null && memberInfoBean.getId() > 0 )
- {
- String[] delId = request.getParameterValues("delId");
- for ( int i=0; i<delId.length; i++ )
- {
- hrProxyBean.resumeInfoRemove( Integer.parseInt(delId[i]) );
- }
- }
- pageColl = hrProxyBean.resumeInfoFind( memberInfoBean.getId() );
- %>
- <!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 checkdata()
- {
- if ( form1.conName.value.length < 1 || isEmptyStr(form1.conName.value) )
- {
- alert("你必须输入单位名称!(不能为空或空格)");
- form1.conName.focus();
- return false;
- }
- //if ( form1.depName.value.length < 1 || isEmptyStr(form1.depName.value) )
- //{
- // alert("你必须输入部门名称!(不能为空或空格)");
- // form1.depName.focus();
- // return false;
- // }
- if ( form1.startDateS.value.length < 1 )
- {
- alert("你必须输入开始日期!");
- form1.startDateS.focus();
- return false;
- }
- if ( form1.endDateS.value.length < 1 )
- {
- alert("你必须输入结束日期!");
- form1.endDateS.focus();
- return false;
- }
- //if ( form1.dutyName.value.length < 1 || isEmptyStr(form1.dutyName.value) )
- //{
- // alert("你必须输入职务名称!(不能为空或空格)");
- // form1.dutyName.focus();
- // return false;
- //}
- //if ( form1.achievement.value.length < 1 || isEmptyStr(form1.achievement.value) )
- //{
- // alert("你必须输入工作内容!(不能为空或空格)");
- // form1.achievement.focus();
- // return false;
- //}
- if ( form1.achievement.value.length > 100 )
- {
- alert("你输入工作内容过多!(<100)");
- form1.achievement.focus();
- return false;
- }
- if( form1.startDateS.value > form1.endDateS.value )
- {
- alert("开始时间必须小于结束时间!");
- form1.startDateS.focus();
- return false;
- }
- form1.action= "/mainctrl/intranet/hr/edit_resume_info?doAdd=1";
- form1.submit();
- return true;
- }
- </script>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <script language=JavaScript>
- function submitAdd()
- {
- if ( !checkdata() )
- {
- return false;
- }
- form1.action= "/mainctrl/intranet/hr/edit_resume_info?doAdd=1";
- form1.submit();
- }
- function submitDel()
- {
- if(form1.delId == null)
- {
- alert("目前没有数据可供删除!");
- return false;
- }
- if(!isChecked(form1.delId))
- {
- alert("您没有选择要删除的项!");
- return false;
- }
- if ( confirm("你确认要删除您选中的项吗?") )
- {
- form1.action= "/mainctrl/intranet/hr/edit_resume_info?doDel=1";
- form1.submit();
- }
- else return false;
- }
- </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_resume_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>
- <td bgcolor="#fafafa" 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>
- </table>
- <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
- <tr bgcolor="#fafafa">
- <td colspan="4" height="30">
- <input type="button" value="删除" name="B23" onClick="return submitDel()" class=text>
- </td>
- </tr>
- <tr>
- <td width="36" align="center"><font class=strong>选择</font></td>
- <td width="137" align="center"><font class=strong>时间</font></td>
- <td width="223" align="center"><font class=strong>何处单位</font></td>
- <td width="179" align="center"><font class=strong>工作内容</font></td>
- </tr>
- <%
- String bgcolor = null;
- int color_i = 0;
- int displayCount = pageColl.size();
- Iterator iterD = pageColl.iterator();
- while ( iterD.hasNext() )
- {
- MemberResumeInfo mei = (MemberResumeInfo)iterD.next();
- color_i++;
- if( color_i%2==0 )
- {
- bgcolor = "#e0e0e0";
- }
- else
- {
- bgcolor = "#fafafa";
- }
- %>
- <tr bgcolor="<%= bgcolor %>">
- <td width="36" align="center">
- <input type="checkbox" name="delId" value="<%= mei.getCorId() %>">
- </td>
- <td width="137" align="center"><%= MyDateFormat.myDate(mei.getStartDate()) %> 至 <%= MyDateFormat.myDate(mei.getEndDate()) %></td>
- <td width="223">单位:<%= mei.getConName() %><br>
- 部门:<%= mei.getDepName() %><br>
- 职务:<%= mei.getDutyName() %></td>
- <td width="179" align="center"><%= mei.getAchievement() %></td>
- </tr>
- <%
- }
- %>
- <%
- if ( displayCount > 0 )
- {
- %>
- <tr bgcolor="#e0e0e0">
- <td width="36" align="center">
- <input type="checkbox" name="chkall" value="ON" onclick="CheckAll(this.form)">
- </td>
- <td colspan="3" bgcolor="#e0e0e0"> 全选</td>
- </tr>
- <%
- }
- %>
- </table>
- <table class=title cellspacing=1 width="600" border=0>
- <tr bgcolor="#fafafa">
- <td width="21%"><font class=strong> 姓名:</font></td>
- <td colspan="2" width="79%"><%= memberInfoBean.getName() %></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="21%"><font class=strong> 期间:</font></td>
- <td colspan="2" width="79%">
- 从 <input type="text" name="startDateS" readonly class=text size="24" >
- <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(startDateS);return false"> *( 注:带 * 的为必填内容)<br>
- 至 <input type="text" name="endDateS" readonly class=text size="24" >
- <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(endDateS);return false"> *
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%" rowspan="3"><font class=strong> 何处单位:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%"> 单位
- <input type="text" name="conName" class=text size="24" maxlength="40"> *
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" colspan="2" width="79%">部门
- <input type="text" name="depName" class=text size="24" maxlength="40"> <!--*-->
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" colspan="2" width="79%">职务
- <input type="text" name="dutyName" class=text size="24" maxlength="20"> <!--*-->
- </td>
- </tr>
- <tr>
- <td width="21%" bgcolor="#e0e0e0"><font class=strong> 工作内容:</font></td>
- <td colspan="2" width="79%" bgcolor="#e0e0e0">
- <textarea name="achievement" class="text" cols="30" rows="5"></textarea> <!--*-->
- </td>
- </tr>
- <tr>
- <td colspan="3" height="30" align="center" bgcolor="#fafafa">
- <input type="submit" value="保存" name="B332" onclick="return checkdata()" class=text>
- <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=emp_id value=<%= emp_id %>>
- <input type=hidden name=start value=<%= start %> >
- </form></DIV>
- </BODY></HTML>