📄 statibyperson.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.*" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%@ taglib uri="/vnex_organization.tld" prefix="org" %>
<%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
<%
String starDate = "";
String endDate = "";
int empId = 0;
if(request.getParameter("stati") != null)
{
starDate = request.getParameter("starDate");
endDate = request.getParameter("endDate");
empId = new Integer(request.getParameter("empId")).intValue();
}
AttQueryProxy attProxy = new AttQueryProxy();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0" onload = alert("abc")>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%@ taglib uri="/vnex_organization.tld" prefix="org" %>
<script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
<script language="JavaScript" src="/vnex/validate.js"></script>
<script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
<script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
<script language = "JavaScript">
function do_submit()
{
if(form1.starDate.value == "" )
{
alert("请选择统计开始日期.");
return false;
}
if(form1.endDate.value == "" )
{
alert("请选择统计结束日期.");
return false;
}
if(form1.empId.value == 0)
{
alert("请选择员工.");
form1.empId.focus();
return false;
}
form1.action="/mainctrl/hr/attQueryByPersonResult?stati=1";
form1.submit();
}
function viewDetail(model)
{
form1.action = "/mainctrl/hr/detailRecords?model="+model+"&startDate="+form1.starDate.value+"&endDate="+form1.endDate.value+"&empId="+form1.empId.value;
form1.submit();
}
</script>
<DIV align=center>
<form name="form1" 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 bgcolor="#666666">
<td colspan="3"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>>>按员工查看考勤情况</font></td>
</tr>
<tr>
<td>
<table class=title cellspacing=1 cellpadding=2 border=0 width="600">
<tr bgcolor="#fafafa">
<td > <font class=strong> 选择统计起止日期:</font></td><td>
<input type="text" name="starDate" readonly class=text size="20" value="">
<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(starDate);return false">
至 <input type="text" name="endDate" readonly class=text size="20" value="">
<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(endDate);return false">
</td>
</tr>
<tr bgcolor = "#e0e0e0">
<td > <font class=strong>选择员工:</font>
</td>
<td>
<select name="empId" size="1">
<option value="0">-请选择-</option>
<hr:EmployeeList divisionId='0'>
<vnex:items>
<option value="<hr:EmployeeAttribute attribute="id" />"
<hr:EmployeeAttribute attribute="isSelected"/> > <hr:EmployeeAttribute attribute='<%= null %>' />
</option>
</vnex:items>
</hr:EmployeeList>
</select>
</td>
</tr>
<tr bgcolor = "#e0e0e0">
<td height="30" align="center">
<input type="button" value="查看统计结果" name="Submit2" onClick =do_submit() class=text style="width:80px">
</td>
<td height="30" align="center">
<input type="button" value="查看该段时间内该员工的所有记录" name="Submit2" style="width:190px" onClick ="viewDetail('AllByPersonModel')" class=text>
</td>
</tr>
<%
if(request.getParameter("stati") != null)
{
%>
</table>
<table class=title cellspacing=1 cellpadding=2 border=0 width="600">
<tr>
<td >
<font class=strong> 项目</font>
</td>
<td>
<font class=strong> 次数</font>
</td>
<td align = "center">
<font class=strong> 查看详细记录</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td>
<font class=strong>既没有登记上班,又没有登记下班</font>
</td>
<td align = "center">
<%
try
{
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"NoneOnNoneOffStatiByPersonModel"));
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到既没有登记上班,又没有登记下班次数时出错.");
}
%>
</td>
<td align = "center">
<input type="button" value="查找" name="Submit2" onClick =viewDetail("NoneOnNoneOffByPersonModel") class=text>
</td>
</tr>
<tr bgcolor="#fafafa">
<td>
<font class=strong>登记了上班,但没有登记下班</font>
</td>
<td align = "center">
<%
try
{
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"ExistOnNoneOffStaticByPersonModel"));
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到登记了上班,但没有登记下班次数时出错.");
}
%>
</td>
<td align = "center">
<input type="button" value="查找" name="Submit2" onClick =viewDetail("ExistOnNoneOffByPersonModel") class=text>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td>
<font class=strong>没有登记上班,但登记下班</font>
</td>
<td align = "center">
<%
try
{
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"NoneOnExistOffStatiByPersonModel"));
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到没有登记上班,但登记下班次数时出错.");
}
%>
</td>
<td align = "center">
<input type="button" value="查找" name="Submit2" onClick =viewDetail("NoneOnExistOffByPersonModel") class=text>
</td>
</tr>
<tr bgcolor="#fafafa">
<td>
<font class=strong>迟到</font>
</td>
<td align = "center">
<%
try
{
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"LateStatiByPersonModel"));
%>
次 合计
<%
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"LateMinutesStatiByPersonModel"));
%>
分钟
<%
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到迟到次数时出错.");
}
%>
</td>
<td align = "center">
<input type="button" value="查找" name="Submit2" onClick =viewDetail("LateByPersonModel") class=text>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td>
<font class=strong>早退</font>
</td>
<td align = "center">
<%
try
{
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"EarlyStatiByPersonModel"));
%>
次 合计
<%
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"EarlyLeaveMinutesStatiByPersonModel"));
%>
分钟
<%
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到早退次数时出错.");
}
%>
</td>
<td align = "center">
<input type="button" value="查找" name="Submit2" onClick =viewDetail("EarlyLeaveByPersonModel") class=text>
</td>
</tr>
<tr bgcolor="#fafafa">
<td>
<font class=strong>正常上班记录</font>
</td>
<td align = "center">
<%
try
{
out.println(attProxy.getAttStatiResultProxy(starDate,endDate,empId,"NoramlStatiByPersonModel"));
}
catch(Exception e)
{
System.out.println("\nJSP exception :"+e);
e.printStackTrace();
throw new RuntimeException("得到正常上班记录时出错.");
}
%>
</td>
<td align = "center">
<input type="button" value="查找" name="Submit2" onClick =viewDetail("NormalByPersonModel") 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 + -