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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: employee_create_resume_info.jsp,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/hr/add_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. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  15. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  16. <jsp:useBean id="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
  17. <jsp:useBean id="memberInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberInfo" scope="session" />
  18. <jsp:useBean id="resumeInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberResumeInfo" scope="page" />
  19. <jsp:setProperty name="resumeInfoBean" property="*" />
  20. <%
  21.     //memberInfoBean.setId(22);
  22.     //session.setAttribute( "memberInfoBean", memberInfoBean );
  23. %>
  24. <%
  25.     Collection pageColl = new ArrayList();
  26.     //MemberResumeInfoDAO mi = new MemberResumeInfoDAO();
  27.     if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
  28.     {
  29.         resumeInfoBean.setEmployerId( memberInfoBean.getId() );
  30.         hrProxyBean.resumeInfoCreate( resumeInfoBean );
  31.     }
  32.     if ( request.getParameter("doDel") != null && memberInfoBean.getId() > 0 )
  33.     {
  34.         String[] delId = request.getParameterValues("delId");
  35.         for ( int i=0; i<delId.length; i++ )
  36.         {
  37.             hrProxyBean.resumeInfoRemove( Integer.parseInt(delId[i]) );
  38.         }
  39.     }
  40.    pageColl = hrProxyBean.resumeInfoFind( memberInfoBean.getId() );
  41. %>
  42. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  43. <HTML>
  44. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  45. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  46. <script language="JavaScript" src="/vnex/validate.js"></script>
  47. <script language="javascript" src="/vnex/util/strUtil.js"></script>
  48. <script language=JavaScript>
  49. function checkdata() 
  50. {
  51.     if ( form1.conName.value.length < 1 || isEmptyStr(form1.conName.value) )
  52.     {
  53.         alert("你必须输入单位名称!(不能为空或空格)");
  54.         form1.conName.focus();
  55.         return false;
  56.     }
  57.     //if ( form1.depName.value.length < 1 || isEmptyStr(form1.depName.value) )
  58.     //{
  59.     //    alert("你必须输入部门名称!(不能为空或空格)");
  60.     //    form1.depName.focus();
  61.     //    return false;
  62.     //}
  63.     if ( form1.startDateS.value.length < 1 )
  64.     {
  65.         alert("你必须输入开始日期!");
  66.         form1.startDateS.focus();
  67.         return false;
  68.     }
  69.     if ( form1.endDateS.value.length < 1 )
  70.     {
  71.         alert("你必须输入结束日期!");
  72.         form1.endDateS.focus();
  73.         return false;
  74.     }
  75.     //if ( form1.dutyName.value.length < 1 || isEmptyStr(form1.dutyName.value) )
  76.     //{
  77.     //    alert("你必须输入职务名称!(不能为空或空格)");
  78.     //    form1.dutyName.focus();
  79.     //    return false;
  80.     //}
  81.     //if ( form1.achievement.value.length < 1 || isEmptyStr(form1.achievement.value) )
  82.     //{
  83.     //    alert("你必须输入工作内容!(不能为空或空格)");
  84.     //    form1.achievement.focus();
  85.     //    return false;
  86.     //}
  87.     if ( form1.achievement.value.length > 100 )
  88.     {
  89.         alert("你输入工作内容过多!(<100)");
  90.         form1.achievement.focus();
  91.         return false;
  92.     }
  93.     if( form1.startDateS.value > form1.endDateS.value )
  94.     {
  95.         alert("开始时间必须小于结束时间!");
  96.         form1.startDateS.focus();
  97.         return false;
  98.     }
  99.     form1.action= "/mainctrl/intranet/hr/add_resume_info?doAdd=1";
  100.     form1.submit();
  101.     return true;
  102. }
  103. </script>
  104. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
  105. <script language=JavaScript>
  106. function submitAdd()
  107. {
  108.     if ( !checkdata() )
  109.     {
  110.         return false;
  111.     }
  112.     form1.action= "/mainctrl/intranet/hr/add_resume_info?doAdd=1";
  113.     form1.submit();
  114. }
  115. function submitDel()
  116. {
  117.     if(form1.delId == null)
  118.     {
  119.        alert("目前没有数据可供删除!");
  120.        return false;
  121.     }
  122.     if(!isChecked(form1.delId))
  123.     {
  124.        alert("您没有选择要删除的项!");
  125.        return false;
  126.     }
  127.     if ( confirm("你确认要删除您选中的项吗?") )
  128.     {
  129.         form1.action= "/mainctrl/intranet/hr/add_resume_info?doDel=1";
  130.         form1.submit();
  131.     }
  132.     else return false;
  133. }
  134. </script>
  135. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff 
  136. topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  137. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_hr.js"></script>
  138. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  139. <DIV align=center>
  140. <form name="form1" method="post" action="/mainctrl/intranet/hr/add_resume_info">
  141.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  142.     <TBODY>
  143.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  144.     <TR> 
  145.         <TD colSpan=3 align="center"> 
  146.           <br>
  147.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  148.             <tr>
  149.               <td bgcolor="#fafafa"> 
  150.                 <table class=title cellspacing=1 width="600" border=0>
  151.                   <tr bgcolor="#666666"> 
  152.                     <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>
  153.                   </tr>
  154.             <tr bgcolor="#fafafa"> 
  155.               <td colspan="3"> 
  156.                 <input type="button" value="基本信息" onClick="location='/mainctrl/intranet/hr/add_basic_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
  157.                   
  158.                 <input type="button" value="个人信息" onClick="location='/mainctrl/intranet/hr/add_personal_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
  159.                   
  160.                 <input type="button" value="学历信息" onClick="location='/mainctrl/intranet/hr/add_degree_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
  161.                   
  162.                 <input type="button" value="履历信息" onClick="location='/mainctrl/intranet/hr/add_resume_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
  163.               </td>
  164.             </tr>
  165.                 </table>
  166.     <%
  167.         String bgcolor = null;
  168.         int color_i = 0;
  169.         int displayCount = pageColl.size();
  170.     %>
  171.                 <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
  172.                   <tr bgcolor="#fafafa"> 
  173.                     <td colspan="4" height="30">&nbsp; 
  174.                       <input type="button" value="删除" name="B23" onClick="return submitDel()" class=text>
  175.                     </td>
  176.                   </tr>
  177.                   <tr> 
  178.                     <td width="36" align="center"><font class=strong>选择</font></td>
  179.                     <td width="137" align="center"><font class=strong>时间</font></td>
  180.                     <td width="223" align="center"><font class=strong>何处单位</font></td>
  181.                     <td width="179" align="center"><font class=strong>工作内容</font></td>
  182.                   </tr>
  183.     <%
  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'"  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=<%= memberInfoBean.getId() %>>
  282.   </form></DIV>
  283. </BODY></HTML>