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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
  5. <%@ page import="com.vnex.intranet.workflow.document.value.DocumentReceivedType" %>
  6. <%@ page import="com.vnex.intranet.workflow.document.value.DocQueryBean" %>
  7. <%@ page import="com.vnex.intranet.workflow.loader.WorkflowLoader" %>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <jsp:useBean id="docQueryBean" scope="page" class="com.vnex.intranet.workflow.document.value.DocQueryBean" />
  10. <%
  11.     //session.setAttribute( "docQueryBean", docQueryBean );
  12.     if( request.getParameter("type") != null && Integer.parseInt( request.getParameter("type") ) == 1 )
  13.     {
  14.         session.removeAttribute( "docQueryBean" );    
  15. %>
  16. <jsp:setProperty name="docQueryBean" property="*" />
  17. <%
  18.         session.setAttribute( "docQueryBean", docQueryBean );   
  19.     }   
  20.     if( request.getParameter("type") != null && Integer.parseInt( request.getParameter("type") ) == 2 )
  21.     {
  22.         docQueryBean = new DocQueryBean();
  23.         session.setAttribute( "docQueryBean", docQueryBean ); 
  24.     }
  25.     if( request.getParameter("a") != null && Integer.parseInt( request.getParameter("a") ) == 1 )  
  26.         docQueryBean = ( DocQueryBean )session.getAttribute( "docQueryBean" );  
  27.     docQueryBean.setCreatorId( BusinessName.getEmpId() );
  28. %>
  29. <script language="JavaScript" src="/vnex/validate.js"></script>
  30. <script language=JavaScript>
  31. function deleteDocs(form)
  32. {
  33.    if ( !isChecked( form.docReceivedId )  ) 
  34.    {
  35.        alert('请选择要删除的收文!');
  36.        return false;
  37.    }     
  38.    if( confirm( "确定要删除选择的收文?" ) )
  39.    { 
  40.        form.action="/mainctrl/office/document/receiveddeletebatch";
  41.        form.submit();  
  42.    } 
  43. }
  44. function queryDoc(form)
  45. {
  46.    form.action="/mainctrl/office/document/receivedlist?type=1";
  47.    form.submit();     
  48. }
  49. function queryDocAll(form)
  50. {
  51.    form.action="/mainctrl/office/document/receivedlist?type=2";
  52.    form.submit();     
  53. }
  54. function SelectAll(form)
  55. {
  56.   for (var i=0;i<form.elements.length;i++)
  57.   {
  58.     var e = form.elements[i];
  59.     if (e.name != 'C1')
  60.        e.checked = form.C1.checked;
  61.   }
  62. }
  63. </script>
  64. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  65. <HTML>
  66. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  67. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  68. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  69. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  70. <script language="JavaScript">
  71. window.onload=init
  72. </script>
  73. <DIV align=center>
  74. <form name="receivedform" method="post" action="/mainctrl/office/document/receivedlist" >
  75.     <table class=outter cellspacing=0 cellpadding=0 width=600 border=0>
  76.       <tbody> 
  77.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  78.       <TR> 
  79.         <TD colSpan=3 align="center"><br>
  80.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  81.             <tr> 
  82.               <td align="center" colspan="2" bgcolor="#FFFFFF"> 
  83.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  84.                  <tr bgcolor="#666666"> 
  85.                     <td colspan="2" height="15"><font class="strongw">&nbsp;<a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>&gt;&gt;<font color="#FFFFFF">收文管理</font>
  86.                       </font></td>
  87.                   </tr>
  88.                   <tr bgcolor="#fafafa" >
  89.                       <td align="left" height="30">                        
  90.                          <font class="strong" >&nbsp;标题:</font>&nbsp;
  91.                          <input type="text" name="title" class="file">&nbsp;
  92.                          <font class="strong">类别: </font>&nbsp;
  93.                          <select name="statusId" size="1">
  94.                             <option value="-1" >全部类型</option>
  95.                         <%
  96.                               Iterator dtypes = DocumentReceivedType.getAvailableDocumentReceivedTypes().iterator();
  97.                               while ( dtypes.hasNext() )
  98.                               {
  99.                                   DocumentReceivedType dtype = ( DocumentReceivedType )dtypes.next();
  100.                          %>
  101.                          <option value="<%= dtype.getId() %>" ><%= dtype.getName() %></option>
  102.                          <%
  103.                               }                              
  104.                          %>                           
  105.                            </select>&nbsp;
  106.                            <font class="strong" >接收时间: </font>&nbsp;
  107.                            <select name="preDate" size="1" >
  108.                                 <option value="-1" selected>任何日期</option>
  109.                                 <option value="1">昨天之前</option>
  110.                                 <option value="5">5天以前</option>
  111.                                 <option value="10">10天以前</option>
  112.                                 <option value="30">30天以前</option>
  113.                               </select>
  114.                        &nbsp;<input type="button" name="Submit" value="查询" class="text" onClick="queryDoc(this.form)">
  115.                     </td>
  116.                   </tr>     
  117.                 </table>
  118.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  119.                    <tr bgcolor="#fafafa">
  120.                       <td colspan="4">
  121.                         &nbsp;<input type="button" name="Button"value="新建" onClick="location='/mainctrl/office/document/receivedcreate'" class="text">
  122.                         &nbsp;&nbsp;
  123.                         <input type="button" name="Button"  value="删除" class="text" onClick="deleteDocs(this.form)">
  124.                       </td>
  125.                    </tr>  
  126.                    <tr> 
  127.                       <td align="center"><font class="strong">选择</font></td>
  128.                       <td align="center"><font class="strong">文件标题</font></td>
  129.                       <td align="center"><font class="strong">文件分类</font></td>
  130.                       <td align="center"><font class="strong">接受日期</font></td>
  131.                    </tr>
  132.                    <vnex_workflow:docReceivedList  rowPerPage="8" queryCond="<%=docQueryBean%>">          
  133.                    <vnex:pagingItems>    
  134.                    <tr bgcolor="<vnex:itemsColor />"> 
  135.                                 <td align="center"> 
  136.                                   <input type="checkbox" name="docReceivedId" value="<vnex_workflow:docReceivedAttribute attribute="DocumentReceived_id"/>">
  137.                                 </td>
  138.                                 <td align="center"><font face="宋体"><a href="/mainctrl/office/document/receivedupdate?id=<vnex_workflow:docReceivedAttribute attribute="DocumentReceived_id"/>">
  139.                                 <vnex_workflow:docReceivedAttribute attribute="DocumentReceived_title"/>
  140.                                 </a></font></td>
  141.                                 <td align="center"><font face="宋体">
  142.                                 <vnex_workflow:docReceivedAttribute attribute="DocumentReceived_type"/>
  143.                                 </font> &nbsp; 
  144.                                 </td>
  145.                                 <td align="center"><font size="2" face="宋体"> 
  146.                                 <p align="center">
  147.                                 <vnex_workflow:docReceivedAttribute attribute="DocumentReceived_date"/>
  148.                                 </font></td>
  149.                     </tr>
  150.                     </vnex:pagingItems>
  151.                     <tr bgcolor="#e0e0e0">
  152.                         <td align="center">
  153.                            <input type="checkbox" name="C1" value="ON" onclick="SelectAll(this.form)">
  154.                         </td>
  155.                         <td colspan="3"> 
  156.                             &nbsp;&nbsp;全选<br>
  157.                         </td>
  158.                     </tr>   
  159.                     <tr bgcolor="#fafafa">
  160.                         <td colspan="4">
  161.                            &nbsp;<vnex:pagingTag pageName="/mainctrl/office/document/receivedlist?a=1" />
  162.                         </td>
  163.                     </tr>
  164.                     </vnex_workflow:docReceivedList>          
  165.                     
  166.                </table>
  167.              </td>
  168.           </tr>   
  169.           </table>          
  170.          <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  171.         </td>
  172.       </tr>
  173.       <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  174.       </tbody> 
  175.     </table>
  176.     <br>
  177.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  178.   </form></DIV>