result.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  4. <%@ page language="java" %>
  5. <%@ page import="java.util.*"%>
  6. <%@ page import="com.vnex.intranet.util.*"%>
  7. <%@ page import="com.vnex.intranet.attendance.employee.process.EmployeeProcessBean"%>
  8. <%@ page import="com.vnex.intranet.attendance.employee.process.EmployeeException"%>
  9. <%@ page import="com.vnex.intranet.attendance.employee.value.EmployeeValueBean"%> 
  10. <%@ page import="com.vnex.intranet.attendance.employee.proxy.EmployeeProxyBean"%>
  11. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  12. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  13. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  14. <DIV align=center>
  15. <form name="form1" action="/mainctrl/attendance/result">
  16.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  17.   <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  18.     <TR> 
  19.         <TD colSpan=3 align="center"> 
  20.           <br>
  21. <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  22.             <tr valign="top" bgcolor="#fafafa"> 
  23.               <td > 
  24.           <table class=title width="100%" border="0" cellspacing="1" cellpadding="2">
  25.              <tr> 
  26.                     <td colspan="6" bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;<a href="/mainctrl/attendance/search"><font color="#FFFFFF">今日考勤</font></a>&gt;&gt;查询结果</font> 
  27.                     </td>
  28.             </tr>
  29.                   <tr> 
  30.                     <td colspan="5" bgcolor="#FFFFFF"> 
  31.                       <%
  32.             java.util.Date thisDay = new java.util.Date();
  33.             int thisYear = 1900+thisDay.getYear();
  34.             int thisMonth = 1+thisDay.getMonth();
  35.             out.println("&nbsp;<font class='strong'>"+thisYear+"年"+thisMonth+"月"+thisDay.getDate()+"日出勤情况</font>");
  36.     String para="-1";
  37.     para = request.getParameter("myselect");
  38.     int ipara=-1;
  39.     ipara = java.lang.Integer.parseInt(para);
  40.         %>
  41.                     </td>
  42.             </tr>
  43.                   <tr align="center"> 
  44.                    <%
  45.                     if( ipara > 0  )
  46.                     {
  47.                    %>
  48.                     <td><font class="strong">部门</font></td>
  49.                     <%
  50.                     }
  51.                     %>
  52.                     <td><font class="strong">姓名</font></td>
  53.                     <td><font class="strong">上班时间</font></td>
  54.                     <td><font class="strong">下班时间</font></td>
  55.                     <td><font class="strong">目前状态</font></td>
  56.                  </tr>
  57.             <%
  58. EmployeeProxyBean eProxy = new EmployeeProxyBean();
  59.                 Collection coll = eProxy.searchEmployee(ipara);
  60.                 //the navbar is show start.
  61.                 int start = 1;
  62.                 if(request.getParameter("start") != null )
  63.                 {
  64.                     start = Integer.parseInt( request.getParameter("start"));
  65.                 }
  66.                 int rowPerPage =  com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");
  67.                 int size = coll.size();
  68.                 String action = "/mainctrl/attendance/result?myselect="+para;
  69.                 String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
  70.                 int i = 0;
  71.                 if(coll != null && coll.size() != 0)
  72.                     {
  73.                         Iterator iter = coll.iterator();
  74.                         int flag = 0;
  75.                         String department="";
  76.                         String bgcolor = null;
  77.         while(iter.hasNext() && i<size && i<(start+rowPerPage-1))
  78.                            {
  79.                                i++;
  80.                                EmployeeValueBean employeeValueBean = (EmployeeValueBean) iter.next();
  81.                                if (i<start) continue;
  82.                                if(flag%2==0)
  83.                                {
  84.                                    bgcolor = "#e0e0e0";
  85.                                }
  86.                                else
  87.                                {
  88.                                    bgcolor = "#fafafa";
  89.                                }
  90.                   //out.println(bgcolor);
  91.                 //the nvabar is show end.
  92.                 
  93.                
  94. %>
  95.                   <tr align="center"> 
  96.                <%
  97.                     if( ipara > 0  )
  98.                     {
  99.                    %>
  100.                     <td bgcolor="<%= bgcolor %>"><font class="strong"> 
  101.                 <%
  102.               if(!department.equals(employeeValueBean.getDivision()))
  103.               {
  104.                   department=employeeValueBean.getDivision();
  105.                   out.println(employeeValueBean.getDivision());
  106.               }
  107.               %>
  108.                 </font></td>
  109.                 <%
  110.                 }
  111.                 %>
  112.                     <td bgcolor="<%= bgcolor %>"><%=employeeValueBean.getName()%></td>
  113.               <td bgcolor="<%= bgcolor %>"><% if(employeeValueBean.getCheckInTime()!=null) out.println(employeeValueBean.getCheckInTime().toString().substring(0,16)); else out.println(employeeValueBean.getCheckInTime());%></td>
  114.                     <td bgcolor="<%= bgcolor %>"><% if(employeeValueBean.getCheckOffTime()!=null) out.println(employeeValueBean.getCheckOffTime().toString().substring(0,16)); else out.println(employeeValueBean.getCheckOffTime());%></td>
  115.               <td bgcolor="<%= bgcolor %>"><%=employeeValueBean.getStatus()%></td>
  116.             </tr>
  117.             <%
  118.                         flag++;
  119.      }
  120.            }
  121. %>
  122.                   <tr> 
  123.                     <td colspan="5" bgcolor="#e0e0e0">&nbsp;<%= nav %></td>
  124.             </tr>
  125.             <tr align="center"> 
  126.               <td colspan="5" height="30" bgcolor="#fafafa"> 
  127.                 <input type="button" name="Submit2" value="返回" onClick="history.back()" class="text">
  128.                 </td>
  129.             </tr>
  130.           </table>
  131.   </td>
  132.   </tr>
  133.   </table>
  134.           <!--休假事件表结束 -->
  135.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  136.        </TD>
  137.     </TR>
  138.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  139.     </TABLE>
  140.   <BR>
  141.     <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  142. </form></DIV>
  143. </BODY></HTML>