employee_training_statistic_client.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_training_statistic.jsp $
- * $Revision: 1.0 $
- * Date: 2001/05/17 16:59:46 $
- * /training/statistic
- */
- %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.hr.util.*" %>
- <%@ page import="com.vnex.intranet.hr.value.*" %>
- <%@ page import="com.vnex.intranet.util.*" %>
- <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader" %>
- <%@ page import="java.lang.*"%>
- <%@ page import="java.util.*"%>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <%@ page import="com.vnex.intranet.organization.value.*"%>
- <%@ page import="com.vnex.intranet.organization.proxy.*"%>
- <jsp:useBean id="organizationProxy" scope="Application" class="com.vnex.intranet.organization.proxy.OrganizationProxyBean" />
- <jsp:useBean id="dvalue" scope="Application" class="com.vnex.intranet.organization.value.DivisionValueBean" />
- <jsp:useBean id="trainingProxy" class="com.vnex.intranet.hr.process.HRTrainingProcessBean" scope="page" />
- <jsp:useBean id="transferHRTrainingQueryBean" class="com.vnex.intranet.hr.value.HRTrainingQueryBean" scope="page" />
- <jsp:useBean id="navBar" scope="request" class="com.vnex.intranet.util.NavBar" />
- <jsp:setProperty name="transferHRTrainingQueryBean" property="*"/>
- <%
- System.out.println("*()* now I'm in the statistics.");
- Collection tmpList = new ArrayList();
- int start = 1;
- String action = "/mainctrl/training/statisticClient?a";
- if ( request.getParameter("start") !=null )
- {
- start = Integer.parseInt( request.getParameter("start") );
- }
- if ( request.getParameter("emp_id") !=null )
- {
- transferHRTrainingQueryBean.setPerson_id( Integer.parseInt(request.getParameter("emp_id")) );
- tmpList = trainingProxy.statTraining( transferHRTrainingQueryBean );
- action += "&emp_id="+request.getParameter("emp_id");
- }
- if ( request.getParameter("pageFlow") !=null )
- {
- String department_id = request.getParameter("department_id");
- String person_id = request.getParameter("person_id");
- transferHRTrainingQueryBean.setDepartment_id(Integer.parseInt(department_id));
- transferHRTrainingQueryBean.setPerson_id(Integer.parseInt(person_id));
- tmpList = trainingProxy.statTraining( transferHRTrainingQueryBean );
- action += "&pageFlow=statistic&department_id="+department_id+"&person_id="+person_id;
- }
- int rowPerPage = ConfigParaLoader.getParameterByInt("rowNum");
- int size = tmpList.size();
- String nav = navBar.makeNavbar(start, size, rowPerPage, action);
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript" src="/vnex/validate.js"></script>
- <script language=JavaScript>
- function statistic1(){
- statistic.action="/mainctrl/training/statistic?pageFlow=statistic";
- statistic.submit();
- }
- </script>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="statistic" method=POST>
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <tbody>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center">
- <br>
- <!--休假事件表开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td>
- <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
- <tr>
- <td bgcolor="#666666"><font class="strongw">
- <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>>
- <a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>>
- <a href="/mainctrl/personal/personal_info/index"><font color="#ffffff">个人信息</font></a>>>
- 培训记录</font></td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr align="center">
- <td width="30%"><strong>姓名</strong></td>
- <td width="30%">
- <strong>培训主题</strong>
- </td>
- <td width="40%">
- <strong>时间</strong>
- </td>
- </tr>
- <%
- if( size > 0)
- {
- System.out.println("now in display.");
- Iterator it = tmpList.iterator();
- int i = 0;
- while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
- {
- i++;
- Object obj = it.next();
- if ( i < start ) continue;
- HRTrainingQueryBean tmpHRTrainingQueryBean = ( HRTrainingQueryBean )obj;
- String startDate = tmpHRTrainingQueryBean.getTrain_startDate().toString();
- String endDate = tmpHRTrainingQueryBean.getTrain_endDate().toString();
- startDate = startDate.substring(0, startDate.indexOf(" "));
- endDate = endDate.substring(0, endDate.indexOf(" "));
- String bgcolor="#e0e0e0";
- if(i%2==0)
- bgcolor = "#fafafa";
- %>
- <tr bgcolor="<%=bgcolor%>" align="center">
- <td width="30%"><%=tmpHRTrainingQueryBean.getPerson_name()%></td>
- <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>
- <td width="40%"> <%=startDate%>----<%=endDate%></td>
- </tr>
- <%
- } // end of while.%>
- <tr bgcolor="#e0e0e0">
- <td colspan="3"> <%=nav%></td>
- </tr>
- <%
- } // end of if
- %>
- <tr bgcolor="#fafafa" height="30" align="center">
- <td colspan="3"><input type="button" value="返回" name="B1" onclick="location='/mainctrl/personal/personal_info/index'" class="text"></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>