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

电子政务应用

开发平台:

Java

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