list_work_record.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_vehicle_driver.tld" prefix="vnex_driver" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="java.util.*"%>
- <%@ page import="java.sql.Timestamp"%>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="driverProxy" scope="application" class="com.vnex.intranet.vehicle.driver.proxy.DriverProxyBean" />
- <%
- String timeS = request.getParameter("timeS");
- if( timeS == null || timeS.equals("") )
- {
- timeS = MyDateFormat.myDate( TimeStamp.convertCalendarToTimestamp( Calendar.getInstance() ) );
- }
- Timestamp condition = MyDateFormat.myDate( timeS );
- Calendar cal = TimeStamp.convertTimestampToCalendar( condition );
- int year = cal.get( Calendar.YEAR );
- int month = cal.get( Calendar.MONTH ) + 1;
- cal.set(Calendar.MONTH,month);
- condition = TimeStamp.convertCalendarToTimestamp( cal );
- String link = "/mainctrl/driver/detailWorkRecord?timeS=" + timeS;
- String start = "";
- if( request.getParameter("start") != null )
- {
- start = "&start=" + request.getParameter("start");
- }
- %>
- <!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">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
- <script language="JavaScript">
- function SelectAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'C1')
- e.checked = form.C1.checked;
- }
- }
- function change(select)
- {
- myform.action="/mainctrl/driver/listWorkRecord";
- myform.submit();
- }
- function addWorkRecord(form)
- {
- form.action="/mainctrl/driver/addWorkRecord";
- form.submit();
- }
- function generateOvertimeStatistic(form)
- {
- form.action="/mainctrl/driver/generateOvertimeStatistic";
- form.submit();
- }
- function deleteWorkRecords(form)
- {
- if(confirm("是否要删除所选出勤记录?"))
- {
- form.action="/mainctrl/driver/deleteWorkRecords";
- form.submit();
- }
- }
- </script>
- <DIV align=center>
- <form name="myform" method="post" action="">
- <input type="hidden" name="timeS" value="<%= timeS %>">
- <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 bgcolor="#fafafa">
- <td>
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr bgcolor="#666666">
- <td colspan="2" height="15" bgcolor="#666666"><font class="strongw"> <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>>>车辆出勤登记
- </font></td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
- <tr bgcolor="#e0e0e0">
- <td colspan="8"> <font class="strong"> <%= 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>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="8" height="30">
- <input type="button" name="Button32222" value="新增" onClick="addWorkRecord(this.form)" class="file">
- <input type="button" name="Button3222" value="删除" onClick="deleteWorkRecords(this.form)" class="file">
- <input type="button" name="Button322222" style="width:120px" value="生成加班补助申报表" onClick="generateOvertimeStatistic(this.form)" class="file">
- </td>
- </tr>
- <tr align=middle>
- <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>
- <td><font class="strong">行驶地点</font></td>
- <td><font class="strong">出发时间</font></td>
- <td><font class="strong">收车时间 </font></td>
- </tr>
- <vnex_driver:workRecordList condition="<%= condition %>">
- <vnex:items paging="true">
- <tr align=middle bgcolor="<vnex:itemsColor />">
- <td>
- <input type="checkbox" name="wrId" value="<vnex_driver:workRecordAttribute attribute="id"/>">
- </td>
- <td><vnex_driver:workRecordAttribute attribute="date"/> </td>
- <td><a href="<%= link %>&id=<vnex_driver:workRecordAttribute attribute="id"/><%= start %>"><vnex_driver:workRecordAttribute attribute="auto"/></a></td>
- <td> <vnex_driver:workRecordAttribute attribute="driver"/></td>
- <td><vnex_driver:workRecordAttribute attribute="boater"/></td>
- <td><vnex_driver:workRecordAttribute attribute="site"/></td>
- <td><vnex_driver:workRecordAttribute attribute="begin_time"/></td>
- <td><vnex_driver:workRecordAttribute attribute="end_time"/></td>
- </tr>
- </vnex:items>
- <tr>
- <td align="center" width="7%" bgcolor="#fafafa">
- <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
- </td>
- <td colspan="8" bgcolor="#fafafa">
- 全选
- </td>
- </tr>
- <tr>
- <td colspan="9" align="left" bgcolor="#e0e0e0">
- <vnex:pagingTag pageName="/mainctrl/driver/listWorkRecord?a" />
- </td>
- </tr>
- </vnex_driver:workRecordList>
- </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>