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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: employee_training_statistic.jsp $
  4.  * $Revision: 1.0 $
  5.  * Date: 2001/05/17 16:59:46 $
  6.  * /training/statistic
  7.  */
  8. %>
  9. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  10. <%@ page import="com.vnex.intranet.hr.util.*" %>
  11. <%@ page import="com.vnex.intranet.hr.value.*" %> 
  12. <%@ page import="com.vnex.intranet.util.*" %>
  13. <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader" %>
  14. <%@ page import="java.lang.*"%>
  15. <%@ page import="java.util.*"%>
  16. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  17. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  18. <%@ page import="com.vnex.intranet.organization.value.*"%>
  19. <%@ page import="com.vnex.intranet.organization.proxy.*"%>
  20. <jsp:useBean id="organizationProxy" scope="Application" class="com.vnex.intranet.organization.proxy.OrganizationProxyBean" />
  21. <jsp:useBean id="dvalue" scope="Application" class="com.vnex.intranet.organization.value.DivisionValueBean" />
  22. <jsp:useBean id="trainingProxy" class="com.vnex.intranet.hr.process.HRTrainingProcessBean" scope="page" />
  23. <jsp:useBean id="transferHRTrainingQueryBean" class="com.vnex.intranet.hr.value.HRTrainingQueryBean" scope="page" />
  24. <jsp:useBean id="navBar" scope="request" class="com.vnex.intranet.util.NavBar" />
  25. <jsp:setProperty name="transferHRTrainingQueryBean" property="*"/>
  26. <%
  27.      Collection tmpList = new ArrayList();
  28.   
  29.    int start = 1;
  30.    String action = "/mainctrl/training/statistic?a";
  31.    String backPage = "/mainctrl/training/statisticQuery";
  32.    String detailPage = "/mainctrl/training/detail?pageFlow=TRAINMODIFYPAGEFLOW";
  33.    if(request.getParameter("statistic") != null)
  34.    {
  35.        detailPage += "&statistic";   
  36.        action += "&statistic";
  37.    }
  38.    if ( request.getParameter("start") !=null )
  39.    {
  40.         start = Integer.parseInt( request.getParameter("start") );
  41.    }
  42.    if ( request.getParameter("emp_id") !=null )
  43.    {
  44.         transferHRTrainingQueryBean.setPerson_id( Integer.parseInt(request.getParameter("emp_id")) );
  45.         tmpList = trainingProxy.statTraining( transferHRTrainingQueryBean );
  46.         action += "&emp_id="+request.getParameter("emp_id");
  47.         detailPage += "&emp_id="+request.getParameter("emp_id");
  48.    }
  49.    if ( request.getParameter("pageFlow") !=null )
  50.    {
  51.         String department_id = request.getParameter("department_id");
  52.         String person_id = request.getParameter("person_id");
  53.         transferHRTrainingQueryBean.setDepartment_id(Integer.parseInt(department_id));
  54.         transferHRTrainingQueryBean.setPerson_id(Integer.parseInt(person_id));
  55.         tmpList = trainingProxy.statTraining( transferHRTrainingQueryBean );
  56.         action += "&pageFlow=statistic&department_id="+department_id+"&person_id="+person_id;
  57.         detailPage += "&department_id="+department_id+"&person_id="+person_id;
  58.    }
  59.    if(request.getParameter("fromEmployeePage") != null)
  60.    {
  61.      backPage = "/mainctrl/intranet/hr/search_result";
  62.      detailPage += "&fromEmployeePage";
  63.      action += "&fromEmployeePage";
  64.    }
  65.    int rowPerPage = ConfigParaLoader.getParameterByInt("rowNum");
  66.    int size = tmpList.size(); 
  67.    String nav = navBar.makeNavbar(start,  size, rowPerPage, action); 
  68. %>
  69. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  70. <HTML>
  71. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  72. <script language="JavaScript" src="/vnex/validate.js"></script>
  73. <script language=JavaScript>
  74.  function statistic1(){
  75. statistic.action="/mainctrl/training/statistic?pageFlow=statistic";
  76.         statistic.submit();
  77.     }
  78. </script>
  79. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  80. <script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
  81. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  82. <DIV align=center>
  83. <form name="statistic" method=POST>
  84.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  85.      <tbody>
  86.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  87.     <TR> 
  88.         <TD colSpan=3 align="center"> 
  89.           <br>
  90.           <!--休假事件表开始 -->
  91.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  92.             <tr>
  93.               <td> 
  94.                 <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
  95.                   <tr> 
  96.                     <td bgcolor="#666666"><font class="strongw">
  97.                        <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;
  98.                        <a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt;
  99. <%   
  100.         if(request.getParameter("statistic") != null)
  101.         {%>                       
  102.                        <a href="/mainctrl/training/statisticQuery"><font color="#FFFFFF">员工培训统计</font></a>&gt;&gt;
  103.                        员工培训统计结果
  104. <%      }
  105.         if(request.getParameter("fromEmployeePage") != null)
  106.         {
  107. %>
  108.                        <a href="/mainctrl/intranet/hr/search_result"><font color="#ffffff">员工信息</font></a>&gt;&gt;
  109.                        培训记录
  110. <%      }%>                                                      
  111.                     </font>
  112.                     </td>
  113.                   </tr>
  114.                  </table>   
  115.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  116.                    <tr align="center"> 
  117.                      <td width="30%"><strong>姓名</strong></td>
  118.                      <td width="30%"> 
  119.                        <strong>培训主题</strong>
  120.                      </td>
  121.                      <td width="40%"> 
  122.                         <strong>时间</strong>
  123.                      </td>
  124.                    </tr>
  125.    <% 
  126.        if( size > 0)
  127.        {
  128.         System.out.println("now in display.");
  129.         Iterator it = tmpList.iterator();
  130.         int i = 0;
  131.         while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
  132.         {    
  133.              i++;
  134.              Object obj = it.next();
  135.              if ( i <  start ) continue;
  136.              HRTrainingQueryBean tmpHRTrainingQueryBean = ( HRTrainingQueryBean )obj; 
  137.              String startDate = tmpHRTrainingQueryBean.getTrain_startDate().toString();
  138.              String endDate = tmpHRTrainingQueryBean.getTrain_endDate().toString();
  139.              startDate = startDate.substring(0, startDate.indexOf(" "));
  140.              endDate = endDate.substring(0, endDate.indexOf(" "));
  141.              String bgcolor="#e0e0e0";
  142.              if(i%2==0)
  143.                bgcolor = "#fafafa";  
  144.     %>
  145.       <tr bgcolor="<%=bgcolor%>" align="center"> 
  146.         <td width="30%"><%=tmpHRTrainingQueryBean.getPerson_name()%></td>
  147.                             
  148.         <td width="30%"><a href="<%=detailPage+"&trainId="+tmpHRTrainingQueryBean.getTrain_id()%>"><%=FieldUtil.filterQuotTag(FieldUtil.filterScriptTag(tmpHRTrainingQueryBean.getTrain_title()))%></a></td>
  149.                             
  150.         <td width="40%"> <%=startDate%>----<%=endDate%></td>
  151.                           </tr>
  152.   <%      
  153.           } // end of while.%>
  154.        <tr bgcolor="#e0e0e0">
  155.           <td colspan="3">&nbsp;<%=nav%></td>   
  156.        </tr>
  157.   <%         
  158.      } // end of if    
  159.   %> 
  160.       <tr bgcolor="#fafafa" height="30" align="center">
  161.          <td colspan="3"><input type="button" value="返回" name="B1" onclick="location='<%=backPage%>'" class="text"></td>
  162.       </tr>
  163.       </table>
  164.       </td>
  165.       </tr>
  166.       </table>
  167.       <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  168.       </TD>
  169.     </TR>
  170.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  171.     </TBODY> 
  172.     </TABLE>
  173.   <BR>
  174.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  175.   </form></DIV>
  176. </BODY></HTML>