employee_edit_resume_info.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:13k
源码类别:

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: employee_edit_resume_info.jsp,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/hr/edit_resume_info
  7.  */
  8. %>
  9. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  10. <%@ page import="com.vnex.intranet.hr.employer_info.value.*"%>
  11. <%@ page import="com.vnex.intranet.hr.employer_info.process.*"%>
  12. <%@ page import="com.vnex.intranet.hr.util.*"%>
  13. <%@ page import="java.util.*" %>
  14. <%@ page import="java.sql.Timestamp" %>
  15. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  16. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  17. <jsp:useBean id="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
  18. <jsp:useBean id="memberInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberInfo" scope="session" />
  19. <jsp:useBean id="resumeInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberResumeInfo" scope="page" />
  20. <jsp:setProperty name="resumeInfoBean" property="*" />
  21. <%
  22.     int emp_id = -1;
  23.     String str = request.getParameter("emp_id");
  24.     if ( str != null )
  25.     {
  26.         emp_id = Integer.parseInt( str );
  27.     }
  28.     String start = request.getParameter("start");
  29.     Collection pageColl = new ArrayList();
  30.     //MemberResumeInfoDAO mi = new MemberResumeInfoDAO();
  31.     if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
  32.     {
  33.         resumeInfoBean.setEmployerId( memberInfoBean.getId() );
  34.         hrProxyBean.resumeInfoCreate( resumeInfoBean );
  35.     }
  36.     if ( request.getParameter("doDel") != null && memberInfoBean.getId() > 0 )
  37.     {
  38.         String[] delId = request.getParameterValues("delId");
  39.         for ( int i=0; i<delId.length; i++ )
  40.         {
  41.             hrProxyBean.resumeInfoRemove( Integer.parseInt(delId[i]) );
  42.         }
  43.     }
  44.    pageColl = hrProxyBean.resumeInfoFind( memberInfoBean.getId() );
  45. %>
  46. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  47. <HTML>
  48. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  49. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  50. <script language="JavaScript" src="/vnex/validate.js"></script>
  51. <script language="javascript" src="/vnex/util/strUtil.js"></script>
  52. <script language=JavaScript>
  53. function checkdata() 
  54. {
  55.     if ( form1.conName.value.length < 1 || isEmptyStr(form1.conName.value) )
  56.     {
  57.         alert("你必须输入单位名称!(不能为空或空格)");
  58.         form1.conName.focus();
  59.         return false;
  60.     }
  61.     //if ( form1.depName.value.length < 1 || isEmptyStr(form1.depName.value) )
  62.     //{
  63.     //    alert("你必须输入部门名称!(不能为空或空格)");
  64.     //    form1.depName.focus();
  65.     //    return false;
  66.     // }
  67.     if ( form1.startDateS.value.length < 1 )
  68.     {
  69.         alert("你必须输入开始日期!");
  70.         form1.startDateS.focus();
  71.         return false;
  72.     }
  73.     if ( form1.endDateS.value.length < 1 )
  74.     {
  75.         alert("你必须输入结束日期!");
  76.         form1.endDateS.focus();
  77.         return false;
  78.     }
  79.     //if ( form1.dutyName.value.length < 1 || isEmptyStr(form1.dutyName.value) )
  80.     //{
  81.     //    alert("你必须输入职务名称!(不能为空或空格)");
  82.     //    form1.dutyName.focus();
  83.     //    return false;
  84.     //}
  85.     //if ( form1.achievement.value.length < 1 || isEmptyStr(form1.achievement.value) )
  86.     //{
  87.     //    alert("你必须输入工作内容!(不能为空或空格)");
  88.     //    form1.achievement.focus();
  89.     //    return false;
  90.     //}
  91.     if ( form1.achievement.value.length > 100 )
  92.     {
  93.         alert("你输入工作内容过多!(<100)");
  94.         form1.achievement.focus();
  95.         return false;
  96.     }
  97.     if( form1.startDateS.value > form1.endDateS.value )
  98.     {
  99.         alert("开始时间必须小于结束时间!");
  100.         form1.startDateS.focus();
  101.         return false;
  102.     }
  103.     form1.action= "/mainctrl/intranet/hr/edit_resume_info?doAdd=1";
  104.     form1.submit();
  105.     return true;
  106. }
  107. </script>
  108. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
  109. <script language=JavaScript>
  110. function submitAdd()
  111. {
  112.     if ( !checkdata() )
  113.     {
  114.         return false;
  115.     }
  116.     form1.action= "/mainctrl/intranet/hr/edit_resume_info?doAdd=1";
  117.     form1.submit();
  118. }
  119. function submitDel()
  120. {
  121.     if(form1.delId == null)
  122.     {
  123.        alert("目前没有数据可供删除!");
  124.        return false;
  125.     }
  126.     if(!isChecked(form1.delId))
  127.     {
  128.        alert("您没有选择要删除的项!");
  129.        return false;
  130.     }
  131.     if ( confirm("你确认要删除您选中的项吗?") )
  132.     {
  133.         form1.action= "/mainctrl/intranet/hr/edit_resume_info?doDel=1";
  134.         form1.submit();
  135.     }
  136.     else return false;
  137. }
  138. </script>
  139. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  140. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_hr.js"></script>
  141. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  142. <DIV align=center>
  143. <form name="form1" method="post" action="/mainctrl/intranet/hr/edit_resume_info?emp_id=<%= emp_id %>">
  144.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  145.     <TBODY>
  146.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  147.     <TR> 
  148.         <TD colSpan=3 align="center"> 
  149.           <br>
  150.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  151.             <tr>
  152.               <td bgcolor="#fafafa"> 
  153.                 <table class=title cellspacing=1 width="600" border=0>
  154.                   <tr bgcolor="#666666"> 
  155.                     <td colspan="3"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt;<a href="/mainctrl/intranet/hr/search_result"><font color="#FFFFFF">员工信息库</font></a>&gt;&gt;履历信息</font></td>
  156.                   </tr>
  157.                   <tr> 
  158.                     <td bgcolor="#fafafa" colspan="3" height="30">&nbsp; 
  159.                       <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>&nbsp;&nbsp; 
  160.                       <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>&nbsp;&nbsp; 
  161.                       <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>&nbsp;&nbsp; 
  162.                       <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>&nbsp;&nbsp; 
  163.                       <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>&nbsp;&nbsp; 
  164.                       <input type="button" style="width:60px" value="合同管理" onClick="location='/mainctrl/intranet/hr/manage_contract?emp_id=<%= memberInfoBean.getId() %>&start=<%= start %>'" name="B322" class=text>
  165.                     </td>
  166.                   </tr>
  167.                 </table>
  168.                 <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
  169.                   <tr bgcolor="#fafafa"> 
  170.                     <td colspan="4" height="30">&nbsp; 
  171.                       <input type="button" value="删除" name="B23" onClick="return submitDel()" class=text>
  172.                     </td>
  173.                   </tr>
  174.                   <tr> 
  175.                     <td width="36" align="center"><font class=strong>选择</font></td>
  176.                     <td width="137" align="center"><font class=strong>时间</font></td>
  177.                     <td width="223" align="center"><font class=strong>何处单位</font></td>
  178.                     <td width="179" align="center"><font class=strong>工作内容</font></td>
  179.                   </tr>
  180.     <%
  181.         String bgcolor = null;
  182.         int color_i = 0;
  183.         int displayCount = pageColl.size();
  184.         Iterator iterD = pageColl.iterator();
  185.         while ( iterD.hasNext() )
  186.         {
  187.             MemberResumeInfo mei = (MemberResumeInfo)iterD.next();
  188.             color_i++;
  189.             if( color_i%2==0 )
  190.             {
  191.                 bgcolor = "#e0e0e0";
  192.             }
  193.             else
  194.             {
  195.                 bgcolor = "#fafafa";
  196.             }
  197.     %>
  198.                   <tr bgcolor="<%= bgcolor %>"> 
  199.                     <td width="36" align="center"> 
  200.                       <input type="checkbox" name="delId" value="<%= mei.getCorId() %>">
  201.                     </td>
  202.                     <td width="137" align="center"><%= MyDateFormat.myDate(mei.getStartDate()) %>&nbsp;至&nbsp;<%= MyDateFormat.myDate(mei.getEndDate()) %></td>
  203.                     <td width="223">单位:<%= mei.getConName() %><br>
  204.                       部门:<%= mei.getDepName() %><br>
  205.                       职务:<%= mei.getDutyName() %></td>
  206.                     <td width="179" align="center"><%= mei.getAchievement() %></td>
  207.                   </tr>
  208.     <%
  209.         }
  210.     %>
  211.     <%
  212.         if ( displayCount > 0 )
  213.         {
  214.     %>
  215.                   <tr bgcolor="#e0e0e0"> 
  216.                     <td width="36" align="center"> 
  217.                       <input type="checkbox"  name="chkall" value="ON" onclick="CheckAll(this.form)">
  218.                     </td>
  219.                     <td colspan="3" bgcolor="#e0e0e0">&nbsp;&nbsp;全选</td>
  220.                   </tr>
  221.     <%
  222.         }
  223.     %>
  224.                 </table>
  225.                 <table class=title cellspacing=1 width="600" border=0>
  226.                   <tr bgcolor="#fafafa"> 
  227.                     <td width="21%"><font class=strong>&nbsp;姓名:</font></td>
  228.                     <td colspan="2" width="79%"><%= memberInfoBean.getName() %></td>
  229.                   </tr>
  230.                   <tr bgcolor="#e0e0e0"> 
  231.                     <td width="21%"><font class=strong>&nbsp;期间:</font></td>
  232.                     <td colspan="2" width="79%"> 
  233.                       从&nbsp;<input type="text" name="startDateS" readonly class=text size="24" >
  234.                       &nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(startDateS);return false">&nbsp;*( 注:带 * 的为必填内容)<br>
  235.                       至&nbsp;<input type="text" name="endDateS" readonly class=text size="24" >
  236.                       &nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(endDateS);return false">&nbsp;* 
  237.                     </td>
  238.                   </tr>
  239.                   <tr> 
  240.                     <td bgcolor="#fafafa" width="21%" rowspan="3"><font class=strong>&nbsp;何处单位:</font></td>
  241.                     <td bgcolor="#fafafa" colspan="2" width="79%"> 单位 
  242.                       <input type="text" name="conName" class=text size="24" maxlength="40">&nbsp;*
  243.                     </td>
  244.                   </tr>
  245.                   <tr> 
  246.                     <td bgcolor="#fafafa" colspan="2" width="79%">部门 
  247.                       <input type="text" name="depName" class=text size="24" maxlength="40">&nbsp;<!--*-->
  248.                     </td>
  249.                   </tr>
  250.                   <tr> 
  251.                     <td bgcolor="#fafafa" colspan="2" width="79%">职务 
  252.                       <input type="text" name="dutyName" class=text size="24" maxlength="20">&nbsp;<!--*-->
  253.                     </td>
  254.                   </tr>
  255.                   <tr> 
  256.                     <td width="21%" bgcolor="#e0e0e0"><font class=strong>&nbsp;工作内容:</font></td>
  257.                     <td colspan="2" width="79%" bgcolor="#e0e0e0"> 
  258.                       <textarea name="achievement" class="text" cols="30" rows="5"></textarea>&nbsp;<!--*-->
  259.                     </td>
  260.                   </tr>
  261.                   <tr> 
  262.                     <td colspan="3" height="30" align="center" bgcolor="#fafafa"> 
  263.                       <input type="submit" value="保存" name="B332" onclick="return checkdata()" class=text>&nbsp;&nbsp;
  264.                       <input type="reset" value="重置" name="B222" class=text>&nbsp;&nbsp;
  265.                       <input type="button" value="放弃" name="B22" onClick="location='/mainctrl/intranet/hr/search_result?start=<%= start %>'"  class=text>
  266.                     </td>
  267.                   </tr>
  268.                 </table>
  269.               </td>
  270.             </tr>
  271.           </table> 
  272.           <br><br>
  273.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  274.         </TD>
  275.     </TR>
  276.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  277.     </TBODY> 
  278.     </TABLE>
  279.   <BR>
  280.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  281.     <input type=hidden name=emp_id value=<%= emp_id %>>
  282.     <input type=hidden name=start value=<%= start %> >
  283.   </form></DIV>
  284. </BODY></HTML>