Calendar_search.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.calendar.value.*"%>
- <%@ page import="com.vnex.intranet.calendar.proxy.*"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="java.util.*" %>
- <%@ page import="java.sql.*" %>
- <jsp:useBean id="calendarProxy" class="com.vnex.intranet.calendar.proxy.CalendarProxyBean" scope="application" />
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
- <!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="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
- <script language="javascript" src="/vnex/validate.js" ></script>
- <script Language="JavaScript">
- function check()
- {
- if (document.myform.sStartDate.value!="" || document.myform.sEndDate.value!="")
- {
- if(document.myform.sStartDate.value=="")
- {
- alert("未添第一个日期。");
- return false;
- }
- if(document.myform.sEndDate.value=="")
- {
- alert("未添第二个日期。");
- return false;
- }
- }
- if (document.myform.sStartDate.value!="" && document.myform.sEndDate.value!="")
- {
- if(!isVNEXDate(document.myform.sStartDate.value) || !isVNEXDate(document.myform.sEndDate.value))
- {
- alert("日期格式不对");
- return false;
- }
- if(document.myform.sStartDate.value>=document.myform.sEndDate.value)
- {
- alert("第二个日期应大于第一个日期。");
- return false;
- }
- }
- return true;
- }
- function changeIt()
- {
- document.myform.action = "/mainctrl/calendar/searchCalendar";
- document.myform.submit();
- }
- function searchTask()
- {
- if( !check() )
- {
- return false;
- }
- document.myform.action = "/mainctrl/calendar/getCalendarList?search=ok";
- document.myform.submit();
- }
- </script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="myform" method="post" action="">
- <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" class="iframestyle" valign="top"> <br><!--菜单开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td bgcolor="#fafafa" >
- <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
- <tr bgcolor="#666666">
- <td colspan="5">
- <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/calendar/getCalendarList"><font color="#FFFFFF">日程安排</font></a>>>高级查询</font>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td height="30" width="145"><font class="strong"> 选择部门:</font></td>
- <td height="30" width="455">
- <%
- String deptId = "0";
- if(request.getParameter("deptIds") != null)
- {
- deptId = request.getParameter("deptIds");
- }
- int deptId2 = Integer.parseInt(deptId);
- %>
- <org:DivisionList>
- <select name="deptIds" onChange="changeIt()">
- <option value="0">全部部门</option>
- <vnex:items select='<%= deptId %>'>
- <option value="<org:DivisionAttribute attribute="id"/>" <org:DivisionAttribute attribute="isSelected"/>>
- <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/>
- </option>
- </vnex:items>
- </select>
- </org:DivisionList>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td>
- <font class="strong"> 选择员工:</font>
- </td>
- <td>
- <select name="empId" size="1">
- <option value="0">-请选择-</option>
- <hr:EmployeeList divisionId='<%= deptId2%>'>
- <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" width="145"><font class="strong"> 选择时间范围:</font></td>
- <td height="30" width="455">
- <input type="text" name="sStartDate" class=text size="20" readonly> <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(sStartDate);return false">
- 到
- <input type="text" name="sEndDate" class=text size="20" readonly> <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(sEndDate);return false">
- </td>
- </tr>
- <tr bgcolor="#fafafa" align="center">
- <td colspan="2" height="30">
- <input type="button" name="search" value="查询" onClick="return searchTask()" class="text">
- <input type="button" name="search" value="返回" onClick="location='/mainctrl/calendar/getCalendarList'" class="text">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <!--个人信息结束 -->
- <Br><Br>
- <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>