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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.calendar.value.*"%>
  3. <%@ page import="com.vnex.intranet.calendar.proxy.*"%>
  4. <%@ page import="com.vnex.intranet.util.*"%>
  5. <%@ page import="java.util.*" %>
  6. <%@ page import="java.sql.*" %>
  7. <jsp:useBean id="calendarProxy" class="com.vnex.intranet.calendar.proxy.CalendarProxyBean" scope="application" />
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  10. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  11. <%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
  12. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  13. <HTML>
  14. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  15. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  16. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  17. <script language="javascript" src="/vnex/validate.js" ></script>
  18. <script Language="JavaScript">
  19. function check()
  20. {
  21.   if (document.myform.sStartDate.value!="" || document.myform.sEndDate.value!="")
  22. {
  23.   if(document.myform.sStartDate.value=="")
  24.   {
  25.       alert("未添第一个日期。");
  26.     return false;
  27.   }
  28.   if(document.myform.sEndDate.value=="")
  29.   {
  30.       alert("未添第二个日期。");
  31.     return false;
  32.   }
  33. }
  34.   if (document.myform.sStartDate.value!="" && document.myform.sEndDate.value!="")
  35. {
  36.   if(!isVNEXDate(document.myform.sStartDate.value) || !isVNEXDate(document.myform.sEndDate.value))
  37.     {
  38.       alert("日期格式不对");
  39.       return false;
  40.     }
  41.   if(document.myform.sStartDate.value>=document.myform.sEndDate.value)
  42.   {
  43.     alert("第二个日期应大于第一个日期。");
  44.     return false;
  45.   }
  46. }
  47.   return true;
  48. }
  49. function changeIt()
  50. {
  51.   document.myform.action = "/mainctrl/calendar/searchCalendar";
  52.   document.myform.submit();
  53. }
  54. function searchTask()
  55. {
  56.   if( !check() )
  57.   {
  58.     return false;
  59.   }
  60.   document.myform.action = "/mainctrl/calendar/getCalendarList?search=ok";
  61.   document.myform.submit();
  62. }
  63. </script>
  64. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  65. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  66. <DIV align=center>
  67. <form name="myform" method="post" action="">
  68.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  69.      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  70.     <TR> 
  71.         <TD colSpan=3 align="center" class="iframestyle" valign="top"> <br><!--菜单开始 --> 
  72.         <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  73.             <tr valign="top"> 
  74.               <td bgcolor="#fafafa" > 
  75.                 <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
  76.                   <tr bgcolor="#666666"> 
  77.                     <td colspan="5">
  78.                       <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/calendar/getCalendarList"><font color="#FFFFFF">日程安排</font></a>&gt;&gt;高级查询</font>
  79.                     </td>
  80.                   </tr>
  81.                   
  82.                   <tr bgcolor="#e0e0e0"> 
  83.                     <td height="30" width="145"><font class="strong">&nbsp;选择部门:</font></td>
  84.                     <td height="30" width="455">
  85. <%
  86.         String deptId = "0";
  87.         if(request.getParameter("deptIds") != null)
  88.         {
  89.               deptId = request.getParameter("deptIds");
  90.         }
  91.         int deptId2 = Integer.parseInt(deptId);
  92. %>
  93.                     <org:DivisionList>
  94.                       <select name="deptIds" onChange="changeIt()">
  95.                         <option value="0">全部部门</option>
  96.                          <vnex:items select='<%= deptId %>'>
  97.                         <option value="<org:DivisionAttribute attribute="id"/>" <org:DivisionAttribute attribute="isSelected"/>>
  98.                          <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/>
  99.                         </option>
  100.                          </vnex:items>
  101.                       </select>
  102.                     </org:DivisionList>
  103.                     </td>
  104.                   </tr>
  105.                   <tr bgcolor="#fafafa">
  106.                     <td>
  107.                       <font class="strong">&nbsp;选择员工:</font>
  108.                     </td>
  109.                     <td>
  110.                      <select name="empId" size="1">
  111.                        <option value="0">-请选择-</option>
  112.                        <hr:EmployeeList divisionId='<%= deptId2%>'>
  113.                         <vnex:items> 
  114.                         <option value="<hr:EmployeeAttribute attribute="id" />" 
  115.                         <hr:EmployeeAttribute attribute="isSelected"/> > <hr:EmployeeAttribute attribute='<%= null %>' /> 
  116.                         </option>
  117.                         </vnex:items>
  118.                        </hr:EmployeeList>
  119.                      </select>
  120.                     </td>
  121.                    </tr>
  122.                    <tr bgcolor="#e0e0e0"> 
  123.                     <td height="30" width="145"><font class="strong">&nbsp;选择时间范围:</font></td>
  124.                     <td height="30" width="455">
  125.                       <input type="text" name="sStartDate" class=text size="20" readonly>&nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(sStartDate);return false">
  126.                       到 
  127.                       <input type="text" name="sEndDate" class=text size="20" readonly>&nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(sEndDate);return false">
  128.                     </td>
  129.                   </tr>
  130.                   <tr bgcolor="#fafafa" align="center">
  131.                     <td colspan="2" height="30">
  132.                       <input type="button" name="search" value="查询" onClick="return searchTask()" class="text">
  133.                       &nbsp;&nbsp;<input type="button" name="search" value="返回" onClick="location='/mainctrl/calendar/getCalendarList'" class="text">
  134.                     </td>
  135.                   </tr>
  136.                 </table>     
  137.               </td>     
  138.             </tr>     
  139.           </table>     
  140.           <!--个人信息结束 -->      
  141.           <Br><Br>
  142.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  143.        </TD>     
  144.     </TR>     
  145.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  146.    </TABLE>     
  147.   <BR>     
  148.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />    
  149. </form></DIV>     
  150. </BODY></HTML>