employee_edit_degree_info.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:14k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_edit_degree_info.jsp ,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/edit_degree_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="degreeInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberEducationalInfo" scope="page" />
- <jsp:setProperty name="degreeInfoBean" 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();
- //MemberEducationalInfoDAO mi = new MemberEducationalInfoDAO();
- if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
- {
- degreeInfoBean.setEmployerId( memberInfoBean.getId() );
- hrProxyBean.educationalInfoCreate( degreeInfoBean );
- }
- if ( request.getParameter("doDel") != null && memberInfoBean.getId() > 0 )
- {
- String[] delId = request.getParameterValues("delId");
- for ( int i=0; i<delId.length; i++ )
- {
- hrProxyBean.educationalInfoRemoveSchool( Integer.parseInt(delId[i]) );
- }
- }
- pageColl = hrProxyBean.educationalInfoFind( 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.schoolName.value.length < 1 || isEmptyStr(form1.schoolName.value) )
- {
- alert("你必须输入学校名称!(不能为空或空格)");
- form1.schoolName.focus();
- return false;
- }
- // if ( form1.subject.value.length < 1 || isEmptyStr(form1.subject.value) )
- // {
- // alert("你必须输入专业名称!(不能为空或空格)");
- // form1.subject.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.startDateS.value > form1.endDateS.value )
- {
- alert("开始时间必须小于结束时间!");
- form1.startDateS.focus();
- return false;
- }
- if( form1.eduLevelId.value == "-1" )
- {
- alert("你必须选择学历!");
- form1.eduLevelId.focus();
- return false;
- }
- // if ( form1.special.value.length < 1 || isEmptyStr(form1.special.value) )
- // {
- // alert("你必须输入专业技能!(不能为空或空格)");
- // form1.special.focus();
- // return false;
- // }
- if ( form1.special.value.length > 50 )
- {
- alert("你输入专业技能字数过多!(<50)");
- form1.special.focus();
- return false;
- }
- 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_degree_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_degree_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_degree_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>
- <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 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="6">
- <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="73" align="center"><font class=strong>学校</font></td>
- <td width="113" align="center"><font class=strong>专业</font></td>
- <td width="107" align="center"><font class=strong>时间</font></td>
- <td width="68" align="center"><font class=strong>学历</font></td>
- <td width="166" 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() )
- {
- MemberEducationalInfo mei = (MemberEducationalInfo)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.getSchoolId() %>">
- </td>
- <td width="73" align="center" ><%= mei.getSchoolName() %></td>
- <td width="113" align="center" ><%= mei.getSubject() %></td>
- <td width="107" align="center" ><%= MyDateFormat.myDate(mei.getStartDate()) %>至<%= MyDateFormat.myDate(mei.getEndDate()) %></td>
- <td width="68" align="center" ><%= MemberEducationLevel.getInstance(mei.getEduLevelId()) %></td>
- <td width="166" align="center" ><%= mei.getSpecial() %></td>
- </tr>
- <%
- }
- %>
- <%
- if ( displayCount > 0 )
- {
- %>
- <tr>
- <td width="36" align="center" bgcolor="#e0e0e0">
- <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 width="600" border=0>
- <tr>
- <td width="21%" bgcolor="#fafafa"><font class=strong> 姓名:</font></td>
- <td colspan="2" width="79%" bgcolor="#fafafa"><%= memberInfoBean.getName() %></td>
- </tr>
- <tr>
- <td bgcolor="#e0e0e0" width="21%"><font class=strong> 学校:</font></td>
- <td bgcolor="#e0e0e0" colspan="2" width="79%">
- <input type="text" name="schoolName" class=text size="24" maxlength="40"> *( 注:带 * 的为必填内容)
- </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="21%"><font class=strong> 专业:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <input type="text" name="subject" class=text size="24" maxlength="40"> <!--*-->
- </td>
- </tr>
- <tr>
- <td width="21%" bgcolor="#e0e0e0"><font class=strong> 时间:</font></td>
- <td colspan="2" width="79%" bgcolor="#e0e0e0">
- 从 <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%"><font class=strong> 学历:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="79%">
- <select style="WIDTH: 121px" size=1 name=eduLevelId>
- <option value = "-1" > --请选择-- </option>
- <%
- Iterator iterDD = MemberEducationLevel.getAllEType().iterator();
- while ( iterDD.hasNext() )
- {
- MemberEducationLevel mp = (MemberEducationLevel)iterDD.next();
- %>
- <option value="<%= mp.getTypeId() %>" ><%= mp.getTypeName() %></option>
- <%
- }
- %>
- </select> *
- </td>
- </tr>
- <tr>
- <td width="21%" bgcolor="#e0e0e0"><font class=strong> 特殊技能/资格:</font></td>
- <td colspan="2" width="79%" bgcolor="#e0e0e0">
- <textarea name="special" class="text" cols="59" rows="5"></textarea> <!--*-->
- </td>
- </tr>
- <tr>
- <td colspan="3" height="30" align="center" bgcolor="#fafafa">
- <input type="submit" value="增加" onClick="return submitAdd()" name="B332" class=text>
- <input type="reset" value="重置" name="B222" class=text>
- <input type="button" value="放弃" name="B24" 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>