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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.hr.util.*" %>
  3. <%@ page import="com.vnex.intranet.hr.value.*" %> 
  4. <%@ page import="com.vnex.intranet.util.*" %>
  5. <%@ page import="java.util.*"%>
  6. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  7. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  8. <%@ page import="com.vnex.intranet.organization.value.*"%>
  9. <%@ page import="com.vnex.intranet.organization.proxy.*"%>
  10. <jsp:useBean id="organizationProxy" scope="Application" class="com.vnex.intranet.organization.proxy.OrganizationProxyBean" />
  11. <jsp:useBean id="trainingProxy" class="com.vnex.intranet.hr.process.HRTrainingProcessBean" scope="page" />
  12. <jsp:useBean id="BusinessName" class="com.vnex.intranet.pub.BusinessSession" scope="session" />
  13. <%
  14.      HRTrainingValueBean tmpHRTrainingValueBean = new HRTrainingValueBean();
  15.      int trainId = Integer.parseInt(request.getParameter("trainId"));
  16.      String pageFlow = HRPayAndTrainingConstant.TRAINMODIFYPAGEFLOW;
  17.      String startDate = "";
  18.      String endDate = "";
  19.      tmpHRTrainingValueBean = trainingProxy.getTraining( trainId ); 
  20.      tmpHRTrainingValueBean.setPersonsName();
  21.          
  22.      startDate = tmpHRTrainingValueBean.getTrain_startdate().toString();
  23.      endDate = tmpHRTrainingValueBean.getTrain_enddate().toString();
  24.      startDate = startDate.substring(0, startDate.indexOf(" "));
  25.      endDate = endDate.substring(0, endDate.indexOf(" "));
  26.      String backPage = "/mainctrl/training/main";
  27.      if(request.getParameter("fromEmployeePage") != null)
  28.         backPage = "/mainctrl/training/statistic?emp_id="+request.getParameter("emp_id")+"&fromEmployeePage";
  29.      if(request.getParameter("statistic") != null)
  30.         backPage = "/mainctrl/training/statistic?department_id="+request.getParameter("department_id")+"&person_id="+request.getParameter("person_id")+"&pageFlow&statistic";   
  31. %>
  32. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  33. <HTML>
  34. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  35. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  36. <script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
  37. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  38. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
  39. <script language="Javascript">
  40.     
  41.     function modifyTraining(form)
  42.     {
  43.    form.action="/mainctrl/training/maintain?trainId=<%=trainId%>&pageFlow=<%=pageFlow%>";
  44.        form.submit();
  45.     }  
  46.     
  47.     function deleteThis(form)
  48.     {
  49.        if(confirm("是否删除本记录?"))
  50.        {
  51.           form.action="/mainctrl/training/deleteIt?trainId=<%=trainId%>";
  52.           form.submit();
  53.        }
  54.     }   
  55. </script>
  56. <DIV align=center>
  57. <form name="maintain" method=POST>
  58.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  59.     <tbody>
  60.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  61.     <TR> 
  62.         <TD colSpan=3 align="center"> 
  63.           <br>
  64.           <!--休假事件表开始 -->
  65.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  66.             <tr>
  67.               <td> 
  68.                 <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
  69.                   <tr> 
  70.                     <td bgcolor="#666666"><font class="strongw">
  71.                     <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;
  72.                     <a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt;
  73. <%   
  74.         if(request.getParameter("fromEmployeePage") != null)
  75.         {
  76. %>
  77.                        <a href="/mainctrl/intranet/hr/search_result"><font color="#ffffff">员工信息</font></a>&gt;&gt;
  78.                        <a href="/mainctrl/training/statistic?fromEmployeePage&emp_id=<%=request.getParameter("emp_id")%>"><font color="#ffffff">培训记录</font></a>&gt;&gt;
  79.                        培训详细信息
  80. <%      }
  81.         else
  82.         {%>                       
  83.                     <a href="/mainctrl/training/main"><font color="#ffffff">员工培训</font></a>&gt;&gt;
  84.                     培训详细信息
  85. <%      }%>
  86.                                                       
  87.                     </font></td>
  88.                   </tr>
  89.                 </table>  
  90.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  91.       <tr bgcolor="#fafafa"> 
  92.         <td width="26%"><strong>&nbsp;部门名称:</strong></td>
  93.         <td width="74%"><%=BusinessName.getDeptName()%>
  94.         </td>
  95.       </tr>
  96.       <tr bgcolor="#e0e0e0"> 
  97.         <td width="26%"><strong>&nbsp;培训主题:</strong></td>
  98.         <td width="74%"><%=FieldUtil.filterScriptTag(tmpHRTrainingValueBean.getTrain_name())%>
  99.         </td>
  100.       </tr>
  101.       <tr bgcolor="#fafafa"> 
  102.         <td width="26%"><strong>&nbsp;主讲:</strong></td>
  103.         <td width="74%"><%=tmpHRTrainingValueBean.getTrain_teacher()%>
  104.         </td>
  105.       </tr>
  106.       <tr bgcolor="#e0e0e0"> 
  107.         <td width="26%"><strong>&nbsp;地点:</strong></td>
  108.         <td width="74%"> 
  109.                 <%=tmpHRTrainingValueBean.getTrain_address()%>
  110.         </td>
  111.       </tr>
  112.       <tr bgcolor="#fafafa"> 
  113.         <td width="26%"><strong>&nbsp;培训方式:</strong></td>
  114.         <td width="74%"><%=tmpHRTrainingValueBean.getTrain_type()%>
  115.         </td>
  116.       </tr>
  117.       <tr bgcolor="#e0e0e0"> 
  118.         <td width="26%"><strong>&nbsp;状态:</strong></td>
  119.         <td width="74%"> 
  120.       <%
  121.                             TrainType aTrainType = new TrainType();
  122.                             ArrayList typeList1 = aTrainType.getAllEType();
  123.                             
  124.                             for (int i = 0;i<typeList1.size() ;i++) {
  125.                                   aTrainType = ( TrainType )typeList1.get(i);
  126.                                   if( aTrainType.getTypeId() == tmpHRTrainingValueBean.getDd_train_id() )
  127.                                   {
  128.                                        out.println(aTrainType.getTypeName());     
  129.                                        break;
  130.                                   }
  131.                             }     
  132.                                
  133.         %> 
  134.          </td>
  135.        </tr>
  136.       <tr bgcolor="#fafafa"> 
  137.         <td width="26%"><strong>&nbsp;培训时间:</strong></td>
  138.         <td width="74%">从&nbsp;<%=startDate%>&nbsp;至&nbsp;<%=endDate%>
  139.         </td>
  140.       </tr>
  141.       <tr bgcolor="#e0e0e0">
  142.          <td width="26%"><strong>&nbsp;参加人员:</strong></td>
  143.          <td><%=tmpHRTrainingValueBean.getTrain_persons()%>
  144.          </td>
  145.        </tr>
  146.       <tr bgcolor="#fafafa" align="center" height="30">
  147.         <td colspan="2">
  148. <%   
  149.      if(request.getParameter("statistic") == null)
  150.      {
  151.      if(tmpHRTrainingValueBean.getDd_train_id() != 16 && request.getParameter("fromEmployeePage") == null)
  152.      { 
  153. %>      
  154.         <input type="button" value="修改" name="B2" class="text" onclick="modifyTraining(this.form)">
  155. <%    }
  156.       if(request.getParameter("fromEmployeePage") == null)
  157.       {
  158. %>        
  159.   &nbsp;&nbsp;<input type="button" value="删除" name="B4" class="text" onclick="deleteThis(this.form)">
  160. <%    }}%>   
  161.   &nbsp;&nbsp;<input type="button" value="返回" name="B3" class="text" onclick="location='<%=backPage%>'"> 
  162.  </td>
  163.       </tr> 
  164.     </table>
  165.     </td>
  166.     </tr>
  167.     </table>
  168.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  169.         </TD>
  170.     </TR>
  171.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  172.     </TBODY> 
  173.     </TABLE>
  174.   <BR>
  175.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  176.   </form></DIV>
  177. </BODY></HTML>