📄 employee_training_statistic.jsp
字号:
<%
/**
* $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="*"/>
<%
Collection tmpList = new ArrayList();
int start = 1;
String action = "/mainctrl/training/statistic?a";
String backPage = "/mainctrl/training/statisticQuery";
String detailPage = "/mainctrl/training/detail?pageFlow=TRAINMODIFYPAGEFLOW";
if(request.getParameter("statistic") != null)
{
detailPage += "&statistic";
action += "&statistic";
}
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");
detailPage += "&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;
detailPage += "&department_id="+department_id+"&person_id="+person_id;
}
if(request.getParameter("fromEmployeePage") != null)
{
backPage = "/mainctrl/intranet/hr/search_result";
detailPage += "&fromEmployeePage";
action += "&fromEmployeePage";
}
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_hr.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/hr/main"><font color="#FFFFFF">人力资源</font></a>>>
<%
if(request.getParameter("statistic") != null)
{%>
<a href="/mainctrl/training/statisticQuery"><font color="#FFFFFF">员工培训统计</font></a>>>
员工培训统计结果
<% }
if(request.getParameter("fromEmployeePage") != null)
{
%>
<a href="/mainctrl/intranet/hr/search_result"><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="<%=detailPage+"&trainId="+tmpHRTrainingQueryBean.getTrain_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='<%=backPage%>'" 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -