📄 statiallprint.jsp
字号:
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.attendance.statistic.value.*"%>
<%@ page import="com.vnex.intranet.attendance.statistic.proxy.*"%>
<%@ page import="com.vnex.intranet.util.*"%>
<%@ page import="java.util.*" %>
<%@ page import ="java.sql.*" %>
<%@ page import ="com.vnex.intranet.hr.employer_info.proxy.*"%>
<%@ page import ="com.vnex.intranet.hr.employer_info.value.*"%>
<%@ page import ="com.vnex.intranet.organization.proxy.*"%>
<%@ page import ="com.vnex.intranet.organization.value.*"%>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%@ taglib uri="/vnex_organization.tld" prefix="org" %>
<%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
<%
String starDate = request.getParameter("starDate");
String endDate = request.getParameter("endDate");
%>
<HTML>
<head>
<style type="text/css">
<!--
.whitePG { font-size: 24pt; font-family:"宋体";color: "#ffffff"; text-align: center}
.bluePG { font-size: 24pt; font-family:"宋体";color: "blue"; text-align: center style="cursor:hand" }
-->
</style>
</head>
<body onload = "do_print()">
<div align = "center">
<%
if(request.getParameter("stati")!=null)
{
%>
<%
int empId = 0;
String divName = "";
if(Integer.parseInt(request.getParameter("Dep")) != 0)
{
OrganizationProxyBean orgProxy = new OrganizationProxyBean();
DivisionValueBean divValue = orgProxy.getDivision(Integer.parseInt(request.getParameter("Dep")));
divName = divValue.getDivisionName();
}
else
{
divName = "全部部门";
}
%>
<font class=strong size = "5"><%=divName%>考勤统计表<br></font>
<%=request.getParameter("starDate").substring(0,4)%>年<%=request.getParameter("starDate").substring(5,7)%>月<%=request.getParameter("starDate").substring(8,10)%>日--<%=request.getParameter("endDate").substring(0,4)%>年<%=request.getParameter("endDate").substring(5,7)%>月<%=request.getParameter("endDate").substring(8,10)%>日
<table border="1" cellpadding="0" cellspacing="0" width="732" bordercolor="#000000">
<tr>
<td width="95" align = "center">
<font class=strong>姓名</font>
</td>
<td align = "center" width="94">
<font class=strong>正常<br>(天数)</font>
</td>
<td align = "center" width="97">
<font class=strong>迟到<br>(次数)</font>
</td>
<td align = "center" width="104">
<font class=strong>早退<br>(次数)</font>
</td>
<td align = "center" width="170">
<font class=strong>未登记上、下班<br>(次数)</font>
</td>
<td align = "center" width="172">
<font class=strong>只登记了上班<br>(次数)</font>
</td>
<td align = "center" width="172">
<font class=strong>只登记了下班<br>(次数)</font>
</td>
</tr>
<%
try{
AttQueryProxy attProxy = new AttQueryProxy();
MemberInfoProxyBean mProxy = new MemberInfoProxyBean();
ArrayList empArray = (ArrayList) mProxy.infoFind(Integer.parseInt(request.getParameter("Dep")),"");
Iterator iter = empArray.iterator();
while( iter.hasNext())
{
MemberSearchBean mBean = (MemberSearchBean) iter.next();
empId = mBean.getId();
%>
<tr >
<td align = "center" width="95">
<%=mBean.getName()%>
</td>
<td align = "center" width="94">
<%
try
{
%>
<%=attProxy.getAttStatiResultProxy(starDate,endDate,empId,"NoramlStatiByPersonModel")%>
<%
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到正常上班记录时出错.");
}
%>
</td>
<td align = "center" width="97">
<%
try
{
%>
<%
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"LateStatiByPersonModel"));
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到迟到次数时出错.");
}
%>
</td>
<td align = "center" width="104">
<%
try
{
%>
<%
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"EarlyStatiByPersonModel"));
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到早退次数时出错.");
}
%>
</td>
<td align = "center" width="92">
<%
try
{
%>
<%=attProxy.getAttStatiResultProxy(starDate,endDate,empId,"NoneOnNoneOffStatiByPersonModel")%>
<%
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到既没有登记上班,又没有登记下班次数时出错.");
}
%>
</td>
<td align = "center" width="124">
<%
try
{
%>
<%=attProxy.getAttStatiResultProxy(starDate,endDate,empId,"ExistOnNoneOffStaticByPersonModel")%>
<%
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到登记了上班,但没有登记下班次数时出错.");
}
%>
</td>
<td align = "center" width="110">
<%
try
{
%>
<%=attProxy.getAttStatiResultProxy(starDate,endDate,empId,"NoneOnExistOffStatiByPersonModel")%>
<%
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到没有登记上班,但登记下班次数时出错.");
}
%>
</td>
</tr>
<%
}//end while
}
catch(Exception e)
{
System.out.println("JSP Exception :"+e);
e.printStackTrace();
throw new RuntimeException("列表时出错.");
}
}//end if
%>
</table>
</div>
</BODY></HTML>
<script language="javascript">
function do_print()
{
window.print();
window.history.back();
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -