employee_edit_inner_resume.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:13k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_edit_inner_resume.jsp,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/edit_inner_resume
- */
- %>
- <%@ 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="innerResumeBean" class="com.vnex.intranet.hr.employer_info.value.MemberInnerResume" scope="session" />
- <jsp:setProperty name="innerResumeBean" property="*" />
- <%
- int emp_id = -1;
- String str = request.getParameter("emp_id");
- if ( str != null )
- {
- emp_id = Integer.parseInt( str );
- System.out.println("nnEmp_id is:"+emp_id);
- innerResumeBean.setEmployerId( emp_id );
- session.setAttribute( "innerResumeBean", innerResumeBean );
- }
- String start = request.getParameter("start");
- Collection pageColl = new ArrayList();
- //MemberInnerResumeDAO mi = new MemberInnerResumeDAO();
- if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
- {
- innerResumeBean.setEmployerId( memberInfoBean.getId() );
- hrProxyBean.innerResumeCreate( innerResumeBean );
- }
- if ( request.getParameter("doDel") != null && memberInfoBean.getId() > 0 && request.getParameter("delId") != null)
- {
- String[] delId = request.getParameterValues("delId");
- for ( int i=0; i<delId.length; i++ )
- {
- hrProxyBean.innerResumeRemove( Integer.parseInt( delId[i] ) );
- }
- }
- pageColl = hrProxyBean.innerResumeFind( 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.startDateS.value.length < 1 )
- {
- alert("你必须输入开始日期!");
- form1.startDateS.focus();
- return false;
- }
- if ( form1.endDateS.value.length < 1 )
- {
- alert("你必须输入结束日期!");
- form1.endDateS.focus();
- return false;
- }
- if ( form1.duty.value.length < 1 || isEmptyStr(form1.duty.value) )
- {
- alert("你必须输入职务名称!(不能为空或空格)");
- form1.duty.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_inner_resume?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_inner_resume?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_inner_resume?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_inner_resume?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>
- <td colspan="6" 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="6" height="30" bgcolor="#fafafa">
- <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 bgcolor="#fafafa">
- <td colspan="6" height="30">
- <input type="button" value="删除" name="B333" onClick="submitDel()" class=text>
- <input type="button" value="转正" name="B33" onClick="location='/mainctrl/intranet/hr/change_formal_record?emp_id=<%= emp_id %>'" class=text>
- <input type="button" value="离职" name="B33" onClick="location='/mainctrl/intranet/dismission/dismission_confirm?emp_id=<%= emp_id %>'" class=text>
- </td>
- </tr>
- <tr>
- <td width="6%" align="center"><font class=strong>选择</font></td>
- <td width="35%" align="center"><font class=strong>时间</font></td>
- <td width="16%" align="center"><font class=strong>部门</font></td>
- <td width="19%" align="center"><font class=strong>职务</font></td>
- <td colspan="2" width="24%" 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() )
- {
- MemberInnerResume mei = (MemberInnerResume)iterD.next();
- color_i++;
- if( color_i%2==0 )
- {
- bgcolor = "#e0e0e0";
- }
- else
- {
- bgcolor = "#fafafa";
- }
- %>
- <tr bgcolor="<%= bgcolor %>">
- <td width="6%" align="center">
- <input type="checkbox" name="delId" value="<%= mei.getId() %>">
- </td>
- <td width="35%" align="center"><%= MyDateFormat.myDate( mei.getStartDate() ) %> 至 <%= MyDateFormat.myDate( mei.getEndDate() ) %></td>
- <td width="16%" align="center"><%= mei.getDevisionName() %></td>
- <td width="19%" align="center"><%= mei.getDuty() %></td>
- <td colspan="2" width="24%" align="center"><%= mei.getAchievement() %></td>
- </tr>
- <%
- }
- %>
- <%
- if ( displayCount > 0 )
- {
- %>
- <tr bgcolor="#e0e0e0">
- <td width="6%" align="center">
- <input type="checkbox" name="chkall" value="ON" onclick="CheckAll(this.form)">
- </td>
- <td colspan="5" bgcolor="#e0e0e0"> 全选</td>
- </tr>
- <%
- }
- %>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr bgcolor="#e0e0e0">
- <td width="125"><font class=strong> 起止时间:</font></td>
- <td width="462" align="left">
- 从 <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 bgcolor="#fafafa">
- <td width="125"><font class=strong> 部门:</font> </td>
- <td width="462" align="left">
- <!--部门列表开始-->
- <org:DivisionList>
- <select name="devisionName">
- <!--<option value='0'>全部部门</option>-->
- <vnex:items >
- <option value="<org:DivisionAttribute attribute="name"/>" >
- <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/>
- </option>
- </vnex:items>
- </select>
- </org:DivisionList>
- <!--部门列表结束-->
- *</td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="125"><font class=strong> 职务:</font></td>
- <td width="462" align="left">
- <input type="text" name="duty" class=text size="24" maxlength=20> *
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="125"><font class=strong> 工作内容:</font></td>
- <td width="462" align="left">
- <textarea name="achievement" class="text" cols="59" rows="4"></textarea> <!--*-->
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" align="center" height="30">
- <input type="submit" value="新增" name="B32" onClick="return checkdata()" class=text>
- <input type="reset" value="重置" name="B332" class=text>
- <input type="button" value="放弃" name="B3322" 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>