result.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <%@ page language="java" %>
- <%@ page import="java.util.*"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="com.vnex.intranet.attendance.employee.process.EmployeeProcessBean"%>
- <%@ page import="com.vnex.intranet.attendance.employee.process.EmployeeException"%>
- <%@ page import="com.vnex.intranet.attendance.employee.value.EmployeeValueBean"%>
- <%@ page import="com.vnex.intranet.attendance.employee.proxy.EmployeeProxyBean"%>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <DIV align=center>
- <form name="form1" action="/mainctrl/attendance/result">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <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 valign="top" bgcolor="#fafafa">
- <td >
- <table class=title width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td colspan="6" 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/attendance/search"><font color="#FFFFFF">今日考勤</font></a>>>查询结果</font>
- </td>
- </tr>
- <tr>
- <td colspan="5" bgcolor="#FFFFFF">
- <%
- java.util.Date thisDay = new java.util.Date();
- int thisYear = 1900+thisDay.getYear();
- int thisMonth = 1+thisDay.getMonth();
- out.println(" <font class='strong'>"+thisYear+"年"+thisMonth+"月"+thisDay.getDate()+"日出勤情况</font>");
- String para="-1";
- para = request.getParameter("myselect");
- int ipara=-1;
- ipara = java.lang.Integer.parseInt(para);
- %>
- </td>
- </tr>
- <tr align="center">
- <%
- if( ipara > 0 )
- {
- %>
- <td><font class="strong">部门</font></td>
- <%
- }
- %>
- <td><font class="strong">姓名</font></td>
- <td><font class="strong">上班时间</font></td>
- <td><font class="strong">下班时间</font></td>
- <td><font class="strong">目前状态</font></td>
- </tr>
- <%
- EmployeeProxyBean eProxy = new EmployeeProxyBean();
- Collection coll = eProxy.searchEmployee(ipara);
- //the navbar is show start.
- int start = 1;
- if(request.getParameter("start") != null )
- {
- start = Integer.parseInt( request.getParameter("start"));
- }
- int rowPerPage = com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");
- int size = coll.size();
- String action = "/mainctrl/attendance/result?myselect="+para;
- String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
- int i = 0;
- if(coll != null && coll.size() != 0)
- {
- Iterator iter = coll.iterator();
- int flag = 0;
- String department="";
- String bgcolor = null;
- while(iter.hasNext() && i<size && i<(start+rowPerPage-1))
- {
- i++;
- EmployeeValueBean employeeValueBean = (EmployeeValueBean) iter.next();
- if (i<start) continue;
- if(flag%2==0)
- {
- bgcolor = "#e0e0e0";
- }
- else
- {
- bgcolor = "#fafafa";
- }
- //out.println(bgcolor);
- //the nvabar is show end.
- %>
- <tr align="center">
- <%
- if( ipara > 0 )
- {
- %>
- <td bgcolor="<%= bgcolor %>"><font class="strong">
- <%
- if(!department.equals(employeeValueBean.getDivision()))
- {
- department=employeeValueBean.getDivision();
- out.println(employeeValueBean.getDivision());
- }
- %>
- </font></td>
- <%
- }
- %>
- <td bgcolor="<%= bgcolor %>"><%=employeeValueBean.getName()%></td>
- <td bgcolor="<%= bgcolor %>"><% if(employeeValueBean.getCheckInTime()!=null) out.println(employeeValueBean.getCheckInTime().toString().substring(0,16)); else out.println(employeeValueBean.getCheckInTime());%></td>
- <td bgcolor="<%= bgcolor %>"><% if(employeeValueBean.getCheckOffTime()!=null) out.println(employeeValueBean.getCheckOffTime().toString().substring(0,16)); else out.println(employeeValueBean.getCheckOffTime());%></td>
- <td bgcolor="<%= bgcolor %>"><%=employeeValueBean.getStatus()%></td>
- </tr>
- <%
- flag++;
- }
- }
- %>
- <tr>
- <td colspan="5" bgcolor="#e0e0e0"> <%= nav %></td>
- </tr>
- <tr align="center">
- <td colspan="5" height="30" bgcolor="#fafafa">
- <input type="button" name="Submit2" value="返回" onClick="history.back()" 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" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>