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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: employee_edit_degree_info.jsp ,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/hr/edit_degree_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. <jsp:useBean id="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
  16. <jsp:useBean id="memberInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberInfo" scope="session" />
  17. <jsp:useBean id="degreeInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberEducationalInfo" scope="page" />
  18. <jsp:setProperty name="degreeInfoBean" property="*" />
  19. <%
  20.     int emp_id = -1;
  21.     String str = request.getParameter("emp_id");
  22.     if ( str != null )
  23.     {
  24.         emp_id = Integer.parseInt( str );
  25.     }
  26.     String start = request.getParameter("start");
  27.     Collection pageColl = new ArrayList();
  28.     //MemberEducationalInfoDAO mi = new MemberEducationalInfoDAO();
  29.     if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
  30.     {
  31.         degreeInfoBean.setEmployerId( memberInfoBean.getId() );
  32.         hrProxyBean.educationalInfoCreate( degreeInfoBean );
  33.     }
  34.     if ( request.getParameter("doDel") != null && memberInfoBean.getId() > 0 )
  35.     {
  36.         String[] delId = request.getParameterValues("delId");
  37.         for ( int i=0; i<delId.length; i++ )
  38.         {
  39.             hrProxyBean.educationalInfoRemoveSchool( Integer.parseInt(delId[i]) );
  40.         }
  41.     }
  42.    pageColl = hrProxyBean.educationalInfoFind( memberInfoBean.getId() );
  43. %>
  44. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  45. <HTML>
  46. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  47. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  48. <script language="JavaScript" src="/vnex/validate.js"></script>
  49. <script language="javascript" src="/vnex/util/strUtil.js"></script>
  50. <script language=JavaScript>
  51. function checkdata() 
  52. {
  53.     if ( form1.schoolName.value.length < 1 || isEmptyStr(form1.schoolName.value) )
  54.     {
  55.         alert("你必须输入学校名称!(不能为空或空格)");
  56.         form1.schoolName.focus();
  57.         return false;
  58.     }
  59.    // if ( form1.subject.value.length < 1 || isEmptyStr(form1.subject.value) )
  60.    // {
  61.    //     alert("你必须输入专业名称!(不能为空或空格)");
  62.    //     form1.subject.focus();
  63.    //     return false;
  64.    // }
  65.     if ( form1.startDateS.value.length < 1 )
  66.     {
  67.         alert("你必须输入开始日期!");
  68.          form1.startDateS.focus();
  69.        return false;
  70.     }
  71.     if ( form1.endDateS.value.length < 1 )
  72.     {
  73.         alert("你必须输入结束日期!");
  74.         form1.endDateS.focus();
  75.         return false;
  76.     }
  77.       if( form1.startDateS.value > form1.endDateS.value )
  78.     {
  79.         alert("开始时间必须小于结束时间!");
  80.         form1.startDateS.focus();
  81.         return false;
  82.     }
  83.      if( form1.eduLevelId.value == "-1" ) 
  84.     {
  85.          alert("你必须选择学历!");
  86.          form1.eduLevelId.focus();
  87.          return false;
  88.     }
  89.    // if ( form1.special.value.length < 1 || isEmptyStr(form1.special.value) )
  90.    // {
  91.    //     alert("你必须输入专业技能!(不能为空或空格)");
  92.    //     form1.special.focus();
  93.    //     return false;
  94.    //  }
  95.     if ( form1.special.value.length > 50 )
  96.     {
  97.         alert("你输入专业技能字数过多!(<50)");
  98.         form1.special.focus();
  99.         return false;
  100.     }
  101.   
  102.     return true;
  103. }
  104. </script>
  105. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
  106. <script language=JavaScript>
  107. function submitAdd()
  108. {
  109.     if ( !checkdata() )
  110.     {
  111.         return false;
  112.     }
  113.     form1.action= "/mainctrl/intranet/hr/edit_degree_info?doAdd=1";
  114.     form1.submit();
  115. }
  116. function submitDel()
  117. {
  118.     if(form1.delId == null)
  119.     {
  120.        alert("目前没有数据可供删除!");
  121.        return false;
  122.     }
  123.     if(!isChecked(form1.delId))
  124.     {
  125.        alert("您没有选择要删除的项!");
  126.        return false;
  127.     }
  128.     if ( confirm("你确认要删除您选中的项吗?") )
  129.     {
  130.         form1.action= "/mainctrl/intranet/hr/edit_degree_info?doDel=1";
  131.         form1.submit();
  132.     }
  133.     else return false;
  134. }
  135. </script>
  136. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff 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/edit_degree_info?emp_id=<%= emp_id %>">
  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> 
  152.                     <td colspan="3" 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>
  153.                   </tr>
  154.                   <tr> 
  155.                     <td bgcolor="#fafafa" colspan="3" height="30">&nbsp; 
  156.                       <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; 
  157.                       <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; 
  158.                       <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; 
  159.                       <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; 
  160.                       <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; 
  161.                       <input type="button" style="width:60px" value="合同管理" onClick="location='/mainctrl/intranet/hr/manage_contract?emp_id=<%= memberInfoBean.getId() %>&start=<%= start %>'" name="B322" class=text>
  162.                     </td>
  163.                   </tr>
  164.                 </table>
  165.                 <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
  166.                   <tr bgcolor="#fafafa"> 
  167.                     <td colspan="6">&nbsp;
  168.                       <input type="button" value="删除" name="B23" onClick="return submitDel()" class=text>
  169.                     </td>
  170.                   </tr>
  171.                   <tr> 
  172.                     <td width="36" align="center"><font class=strong>选择</font></td>
  173.                     <td width="73" align="center"><font class=strong>学校</font></td>
  174.                     <td width="113" align="center"><font class=strong>专业</font></td>
  175.                     <td width="107" align="center"><font class=strong>时间</font></td>
  176.                     <td width="68" align="center"><font class=strong>学历</font></td>
  177.                     <td width="166" align="center"><font class=strong>特殊技能/资格</font></td>
  178.                   </tr>
  179.     <%
  180.         String bgcolor = null;
  181.         int color_i = 0;
  182.         int displayCount = pageColl.size();
  183.         Iterator iterD = pageColl.iterator();
  184.         while ( iterD.hasNext() )
  185.         {
  186.             MemberEducationalInfo mei = (MemberEducationalInfo)iterD.next();
  187.             color_i++;
  188.             if( color_i%2==0 )
  189.             {
  190.                 bgcolor = "#e0e0e0";
  191.             }
  192.             else
  193.             {
  194.                 bgcolor = "#fafafa";
  195.             }
  196.     %>
  197.                   <tr bgcolor="<%= bgcolor %>"> 
  198.                     <td width="36" align="center" > 
  199.                       <input type="checkbox" name="delId" value="<%= mei.getSchoolId() %>">
  200.                     </td>
  201.                     <td width="73" align="center" ><%= mei.getSchoolName() %></td>
  202.                     <td width="113" align="center" ><%= mei.getSubject() %></td>
  203.                     <td width="107" align="center" ><%= MyDateFormat.myDate(mei.getStartDate()) %>至<%= MyDateFormat.myDate(mei.getEndDate()) %></td>
  204.                     <td width="68" align="center" ><%= MemberEducationLevel.getInstance(mei.getEduLevelId()) %></td>
  205.                     <td width="166" align="center" ><%= mei.getSpecial() %></td>
  206.                   </tr>
  207.     <%
  208.         }
  209.     %>
  210.     <%
  211.         if ( displayCount > 0 )
  212.         {
  213.     %>
  214.                   <tr> 
  215.                     <td width="36" align="center" bgcolor="#e0e0e0"> 
  216.                       <input type="checkbox"  name="chkall" value="ON" onclick="CheckAll(this.form)">
  217.                     </td>
  218.                     <td colspan="5" bgcolor="#e0e0e0">&nbsp;&nbsp;全选</td>
  219.                   </tr>
  220.     <%
  221.         }
  222.     %>
  223.                 </table>
  224.                 <table class=title cellspacing=1 width="600" border=0>
  225.                   <tr> 
  226.                     <td width="21%" bgcolor="#fafafa"><font class=strong>&nbsp;姓名:</font></td>
  227.                     <td colspan="2" width="79%" bgcolor="#fafafa"><%= memberInfoBean.getName() %></td>
  228.                   </tr>
  229.                   <tr> 
  230.                     <td bgcolor="#e0e0e0" width="21%"><font class=strong>&nbsp;学校:</font></td>
  231.                     <td bgcolor="#e0e0e0" colspan="2" width="79%"> 
  232.                       <input type="text" name="schoolName" class=text size="24" maxlength="40">&nbsp;*( 注:带 * 的为必填内容)
  233.                     </td>
  234.                   </tr>
  235.                   <tr> 
  236.                     <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;专业:</font></td>
  237.                     <td bgcolor="#fafafa" colspan="2" width="79%"> 
  238.                       <input type="text" name="subject" class=text size="24" maxlength="40">&nbsp;<!--*-->
  239.                     </td>
  240.                   </tr>
  241.                   <tr> 
  242.                     <td width="21%" bgcolor="#e0e0e0"><font class=strong>&nbsp;时间:</font></td>
  243.                     <td colspan="2" width="79%" bgcolor="#e0e0e0"> 
  244.                       从&nbsp;<input type="text" name="startDateS" readonly class=text size="24" >
  245.                       &nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(startDateS);return false">&nbsp;*<br>
  246.                       至&nbsp;<input type="text" name="endDateS" readonly class=text size="24" >
  247.                       &nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(endDateS);return false">&nbsp;*</td>
  248.                   </tr>
  249.                   <tr> 
  250.                     <td bgcolor="#fafafa" width="21%"><font class=strong>&nbsp;学历:</font></td>
  251.                     <td bgcolor="#fafafa" colspan="2" width="79%"> 
  252.                       <select style="WIDTH: 121px" size=1 name=eduLevelId>
  253.                       <option value = "-1" > --请选择-- </option>
  254.          <%
  255.             Iterator iterDD  = MemberEducationLevel.getAllEType().iterator();
  256.             while ( iterDD.hasNext() )
  257.             {
  258.                 MemberEducationLevel mp = (MemberEducationLevel)iterDD.next();
  259.          %>
  260.                   <option value="<%= mp.getTypeId() %>" ><%= mp.getTypeName() %></option>
  261.          <%
  262.             }
  263.          %>
  264.                       </select>&nbsp;*
  265.                     </td>
  266.                   </tr>
  267.                   <tr> 
  268.                     <td width="21%" bgcolor="#e0e0e0"><font class=strong>&nbsp;特殊技能/资格:</font></td>
  269.                     <td colspan="2" width="79%" bgcolor="#e0e0e0"> 
  270.                       <textarea name="special" class="text" cols="59" rows="5"></textarea>&nbsp;<!--*-->
  271.                     </td>
  272.                   </tr>
  273.                   <tr> 
  274.                     <td colspan="3" height="30" align="center" bgcolor="#fafafa"> 
  275.                       <input type="submit" value="增加"  onClick="return submitAdd()" name="B332" class=text>&nbsp;&nbsp; 
  276.                       <input type="reset" value="重置" name="B222" class=text>&nbsp;&nbsp; 
  277.                       <input type="button" value="放弃" name="B24" onClick="location='/mainctrl/intranet/hr/search_result?start=<%= start %>'" class=text>
  278.                     </td>
  279.                   </tr>
  280.                 </table>
  281.               </td>
  282.             </tr>
  283.           </table> 
  284.           <br><br>
  285.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  286.             </TD>
  287.     </TR>
  288.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  289.     </TBODY> 
  290.     </TABLE>
  291.   <BR>
  292.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  293.     <input type=hidden name=emp_id value=<%= emp_id %>>
  294.     <input type=hidden name=start value=<%= start %> >
  295.   </form></DIV>
  296. </BODY></HTML>