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

电子政务应用

开发平台:

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.      System.out.println("*()* now I'm in the statistics.");
  28.      Collection tmpList = new ArrayList();
  29.   
  30.    int start = 1;
  31.    String action = "/mainctrl/training/statisticClient?a";
  32.    if ( request.getParameter("start") !=null )
  33.    {
  34.         start = Integer.parseInt( request.getParameter("start") );
  35.    }
  36.    if ( request.getParameter("emp_id") !=null )
  37.    {
  38.         transferHRTrainingQueryBean.setPerson_id( Integer.parseInt(request.getParameter("emp_id")) );
  39.         tmpList = trainingProxy.statTraining( transferHRTrainingQueryBean );
  40.         action += "&emp_id="+request.getParameter("emp_id");
  41.    }
  42.    if ( request.getParameter("pageFlow") !=null )
  43.    {
  44.         String department_id = request.getParameter("department_id");
  45.         String person_id = request.getParameter("person_id");
  46.         transferHRTrainingQueryBean.setDepartment_id(Integer.parseInt(department_id));
  47.         transferHRTrainingQueryBean.setPerson_id(Integer.parseInt(person_id));
  48.         tmpList = trainingProxy.statTraining( transferHRTrainingQueryBean );
  49.         action += "&pageFlow=statistic&department_id="+department_id+"&person_id="+person_id;
  50.    }
  51.    int rowPerPage = ConfigParaLoader.getParameterByInt("rowNum");
  52.    int size = tmpList.size(); 
  53.    String nav = navBar.makeNavbar(start,  size, rowPerPage, action); 
  54. %>
  55. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  56. <HTML>
  57. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  58. <script language="JavaScript" src="/vnex/validate.js"></script>
  59. <script language=JavaScript>
  60.  function statistic1(){
  61. statistic.action="/mainctrl/training/statistic?pageFlow=statistic";
  62.         statistic.submit();
  63.     }
  64. </script>
  65. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  66. <script language="JavaScript" src="/vnex/menu/dockmenu_person.js"></script>
  67. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  68. <DIV align=center>
  69. <form name="statistic" method=POST>
  70.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  71.      <tbody>
  72.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  73.     <TR> 
  74.         <TD colSpan=3 align="center"> 
  75.           <br>
  76.           <!--休假事件表开始 -->
  77.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  78.             <tr>
  79.               <td> 
  80.                 <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
  81.                   <tr> 
  82.                     <td bgcolor="#666666"><font class="strongw">
  83.                     <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;
  84.                     <a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;
  85.                     <a href="/mainctrl/personal/personal_info/index"><font color="#ffffff">个人信息</font></a>&gt;&gt;
  86.                     培训记录</font></td>
  87.                   </tr>
  88.                  </table>   
  89.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  90.                    <tr align="center"> 
  91.                      <td width="30%"><strong>姓名</strong></td>
  92.                      <td width="30%"> 
  93.                        <strong>培训主题</strong>
  94.                      </td>
  95.                      <td width="40%"> 
  96.                         <strong>时间</strong>
  97.                      </td>
  98.                    </tr>
  99.    <% 
  100.        if( size > 0)
  101.        {
  102.         System.out.println("now in display.");
  103.         Iterator it = tmpList.iterator();
  104.         int i = 0;
  105.         while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
  106.         {    
  107.              i++;
  108.              Object obj = it.next();
  109.              if ( i <  start ) continue;
  110.              HRTrainingQueryBean tmpHRTrainingQueryBean = ( HRTrainingQueryBean )obj; 
  111.              String startDate = tmpHRTrainingQueryBean.getTrain_startDate().toString();
  112.              String endDate = tmpHRTrainingQueryBean.getTrain_endDate().toString();
  113.              startDate = startDate.substring(0, startDate.indexOf(" "));
  114.              endDate = endDate.substring(0, endDate.indexOf(" "));
  115.              String bgcolor="#e0e0e0";
  116.              if(i%2==0)
  117.                bgcolor = "#fafafa";  
  118.     %>
  119.       <tr bgcolor="<%=bgcolor%>" align="center"> 
  120.         <td width="30%"><%=tmpHRTrainingQueryBean.getPerson_name()%></td>
  121.                             
  122.         <td width="30%"><a href="/mainctrl/training/detailClient?trainId=<%=tmpHRTrainingQueryBean.getTrain_id()%>&pageFlow=TRAINMODIFYPAGEFLOW&emp_id=<%=request.getParameter("emp_id")%>"><%=FieldUtil.filterQuotTag(FieldUtil.filterScriptTag(tmpHRTrainingQueryBean.getTrain_title()))%></a></td>
  123.                             
  124.         <td width="40%"> <%=startDate%>----<%=endDate%></td>
  125.                           </tr>
  126.   <%      
  127.           } // end of while.%>
  128.        <tr bgcolor="#e0e0e0">
  129.           <td colspan="3">&nbsp;<%=nav%></td>   
  130.        </tr>
  131.   <%         
  132.      } // end of if    
  133.   %> 
  134.       <tr bgcolor="#fafafa" height="30" align="center">
  135.          <td colspan="3"><input type="button" value="返回" name="B1" onclick="location='/mainctrl/personal/personal_info/index'" class="text"></td>
  136.       </tr>
  137.       </table>
  138.       </td>
  139.       </tr>
  140.       </table>
  141.       <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  142.       </TD>
  143.     </TR>
  144.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  145.     </TBODY> 
  146.     </TABLE>
  147.   <BR>
  148.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  149.   </form></DIV>
  150. </BODY></HTML>