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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_vehicle_driver.tld" prefix="vnex_driver" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
  5. <%@ page import="com.vnex.intranet.util.*"%>
  6. <%@ page import="java.util.*"%>
  7. <%@ page import="java.sql.Timestamp"%>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <jsp:useBean id="driverProxy" scope="application" class="com.vnex.intranet.vehicle.driver.proxy.DriverProxyBean" />
  10. <%      
  11.     String timeS = request.getParameter("timeS");    
  12.     if( timeS == null || timeS.equals("") )
  13.     {
  14.         timeS = MyDateFormat.myDate( TimeStamp.convertCalendarToTimestamp( Calendar.getInstance() ) );
  15.     }   
  16.     Timestamp condition = MyDateFormat.myDate( timeS );  
  17.     Calendar cal = TimeStamp.convertTimestampToCalendar( condition );      
  18.     int year = cal.get( Calendar.YEAR );
  19.     int month = cal.get( Calendar.MONTH ) + 1;
  20.     cal.set(Calendar.MONTH,month);
  21.     condition = TimeStamp.convertCalendarToTimestamp( cal );  
  22.     
  23.     String link = "/mainctrl/driver/detailWorkRecord?timeS=" + timeS;
  24.     
  25.     String start = "";
  26.     if( request.getParameter("start") != null )
  27.     {
  28.         start = "&start=" + request.getParameter("start");
  29.     }   
  30. %>
  31. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  32. <HTML>
  33. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  34. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  35. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  36. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  37. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  38. <script language="JavaScript">
  39. function SelectAll(form)
  40. {
  41.     for (var i=0;i<form.elements.length;i++)
  42.     {
  43.         var e = form.elements[i];
  44.         if (e.name != 'C1')
  45.            e.checked = form.C1.checked;
  46.     }
  47. }
  48. function change(select)
  49. {
  50. myform.action="/mainctrl/driver/listWorkRecord";
  51. myform.submit();
  52. }
  53. function addWorkRecord(form)
  54. {
  55. form.action="/mainctrl/driver/addWorkRecord";
  56. form.submit();
  57. }
  58. function generateOvertimeStatistic(form)
  59. {
  60. form.action="/mainctrl/driver/generateOvertimeStatistic";
  61. form.submit();
  62. }
  63. function deleteWorkRecords(form)
  64. {
  65.     if(confirm("是否要删除所选出勤记录?"))
  66.     {
  67.     form.action="/mainctrl/driver/deleteWorkRecords";
  68.     form.submit();
  69. }
  70. }
  71. </script>
  72. <DIV align=center>
  73. <form name="myform" method="post" action="">
  74. <input type="hidden" name="timeS" value="<%= timeS %>">   
  75.    
  76.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>     
  77.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  78.     <TR> 
  79.         <TD colSpan=3 align="center"> <br> <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  80.             <tr bgcolor="#fafafa"> 
  81.               <td> 
  82.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  83.                   <tr bgcolor="#666666"> 
  84.                     <td colspan="2" height="15" bgcolor="#666666"><font class="strongw">&nbsp;<a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>&gt;&gt;车辆出勤登记                    
  85.                     </font></td>
  86.                   </tr>
  87.                 </table>
  88.                 <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
  89.                   <tr bgcolor="#e0e0e0"> 
  90.                     <td colspan="8"> <font class="strong">&nbsp;&nbsp;<%= year %>年<%= month %>月 <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(timeS);change(this);return false;" width="16" height="16"></font> 
  91.                     </td>
  92.                   </tr>
  93.                   <tr bgcolor="#fafafa"> 
  94.                     <td colspan="8" height="30">&nbsp; 
  95.                       <input type="button" name="Button32222" value="新增" onClick="addWorkRecord(this.form)" class="file">&nbsp;&nbsp;
  96.                       <input type="button" name="Button3222" value="删除" onClick="deleteWorkRecords(this.form)" class="file">&nbsp;&nbsp;
  97.                       <input type="button" name="Button322222" style="width:120px" value="生成加班补助申报表" onClick="generateOvertimeStatistic(this.form)" class="file">
  98.                     </td>
  99.                   </tr>                  
  100.                   <tr align=middle>                    
  101.                     <td><font  class="strong">选择</font></td>
  102.                     <td><font  class="strong">日期</font></td>
  103.                     <td><font  class="strong">车号</font></td>
  104.                     <td><font  class="strong">司机姓名</font></td>
  105.                     <td><font  class="strong">乘车人</font></td>
  106.                     <td><font  class="strong">行驶地点</font></td>
  107.                     <td><font  class="strong">出发时间</font></td>
  108.                     <td><font  class="strong">收车时间 </font></td>
  109.                   </tr>
  110.                   <vnex_driver:workRecordList condition="<%= condition %>">                     
  111.                   <vnex:items paging="true">                               
  112.                   <tr align=middle bgcolor="<vnex:itemsColor />">
  113.                     <td> 
  114.                       <input type="checkbox" name="wrId" value="<vnex_driver:workRecordAttribute attribute="id"/>">
  115.                     </td>
  116.                     <td><vnex_driver:workRecordAttribute attribute="date"/> </td>
  117.                     <td><a href="<%= link %>&id=<vnex_driver:workRecordAttribute attribute="id"/><%= start %>"><vnex_driver:workRecordAttribute attribute="auto"/></a></td>
  118.                     <td> <vnex_driver:workRecordAttribute attribute="driver"/></td>
  119.                     <td><vnex_driver:workRecordAttribute attribute="boater"/></td>
  120.                     <td><vnex_driver:workRecordAttribute attribute="site"/></td>
  121.                     <td><vnex_driver:workRecordAttribute attribute="begin_time"/></td>
  122.                     <td><vnex_driver:workRecordAttribute attribute="end_time"/></td>
  123.                   </tr>
  124.                   </vnex:items> 
  125.                   <tr>
  126.                       <td align="center" width="7%" bgcolor="#fafafa">
  127.                          <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
  128.                       </td>
  129.                       <td colspan="8" bgcolor="#fafafa">   
  130.                          &nbsp;&nbsp;全选
  131.                      </td>
  132.                   </tr>
  133.                   <tr>
  134.                       <td colspan="9" align="left" bgcolor="#e0e0e0">
  135.                          &nbsp;<vnex:pagingTag pageName="/mainctrl/driver/listWorkRecord?a" />
  136.                       </td>
  137.                   </tr>                    
  138.                   </vnex_driver:workRecordList>
  139.                 </table>
  140.               </td>
  141.             </tr>
  142.           </table>
  143.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  144.        </TD>
  145.     </TR>
  146.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  147.     </TABLE>
  148.   <BR>
  149.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  150. </form></DIV>
  151. </BODY></HTML>