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

电子政务应用

开发平台:

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.DocQueryBean"%>
  6. <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType"%>
  7. <%@ page import="java.util.*" %>
  8. <%@ page import="com.vnex.intranet.workflow.loader.WorkflowLoader" %>
  9. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  10. <jsp:useBean id="docQueryBean" scope="page" class="com.vnex.intranet.workflow.document.value.DocQueryBean" />
  11. <%
  12.     //session.setAttribute( "docQueryBean", docQueryBean );
  13.     if( request.getParameter("type") != null && Integer.parseInt( request.getParameter("type") ) == 1 )
  14.     {
  15.         session.removeAttribute( "docQueryBean" );    
  16. %>
  17. <jsp:setProperty name="docQueryBean" property="*" />
  18. <%
  19.         session.setAttribute( "docQueryBean", docQueryBean );   
  20.     }
  21.     if( request.getParameter("type") != null && Integer.parseInt( request.getParameter("type") ) == 2 )
  22.     {
  23.         docQueryBean = new DocQueryBean();
  24.         session.setAttribute( "docQueryBean", docQueryBean );    
  25.     }
  26.     if( request.getParameter("a") != null && Integer.parseInt( request.getParameter("a") ) == 1 )  
  27.         docQueryBean = ( DocQueryBean )session.getAttribute( "docQueryBean" );   
  28.         
  29.     docQueryBean.setTypeId( WorkFlowType.DOCUMENT );
  30.     docQueryBean.setCreatorId( BusinessName.getEmpId() ); 
  31. %>
  32. <script language="JavaScript" src="/vnex/validate.js"></script>
  33. <script language=JavaScript>
  34. function queryDoc(form)
  35. {
  36.    form.action="/mainctrl/office/document/sentlist?type=1";
  37.    form.submit();     
  38. }
  39. function queryDocAll(form)
  40. {
  41.    form.action="/mainctrl/office/document/sentlist?type=2";
  42.    form.submit();     
  43. }
  44. </script>
  45. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  46. <HTML>
  47. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  48. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  49. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  50. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  51. <SCRIPT>
  52. window.onload=init
  53. </SCRIPT>
  54. <DIV align=center>
  55. <form name="form1" method="post" action="">   
  56.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  57.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  58.     <TR> 
  59.         <TD colSpan=3 align="center"><br>
  60.           <!--个人信息开始 -->
  61.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  62.             <tr bgcolor="#fafafa"> 
  63.               <td> 
  64.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  65.                   <tr bgcolor="#666666"> 
  66.                     <td colspan="5" 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;发文管理 
  67.                       </font></td>
  68.                   </tr>
  69.                   <tr> 
  70.                     <td colspan="4" height="30"> <font class="strong" >&nbsp;标题:</font>&nbsp; 
  71.                       <input type="text" name="title" class="file" size="24">&nbsp;
  72.                       <font class="strong" >&nbsp;状态: </font>&nbsp; 
  73.                       <select name="statusId" size="1">
  74.                         <option value="-1" selected>全部状态</option>
  75. <%                    
  76.                         Hashtable hash = WorkflowLoader.getAllWorkflowStatus();
  77.                         Enumeration enum = hash.keys();
  78.                         if(enum != null)
  79.                         {
  80.                             while(enum.hasMoreElements())
  81.                             {       
  82.                                 String key = (String)enum.nextElement();                        
  83. %>                    
  84.                        <option value="<%= key%>"><%= (String)hash.get( key )%>
  85. <%
  86.                             }
  87.                         }
  88. %>                                 
  89.                       </select>
  90.                       <font class="strong" >&nbsp;发出时间: </font>&nbsp; 
  91.                       <select name="preDate" size="1">
  92.                         <option value="-1" selected>任何日期</option>
  93.                         <option value="1">自从昨天开始</option>
  94.                         <option value="5">自从5天以前</option>
  95.                         <option value="10">自从10天以前</option>
  96.                         <option value="30">自从30天以前</option>
  97.                       </select>
  98.                       &nbsp;<input type="button" name="Submit" value="查询" class="file" onClick="queryDoc(this.form)">
  99.                     </td>
  100.                   </tr>
  101.                 </table>
  102.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  103.                   <tr align=left bgcolor="#fafafa"> 
  104.                     <td colspan="4" height="30">&nbsp; 
  105.                       <input type="button" name="Submit222" value="新建" class="file" onClick="location='/mainctrl/office/document/sentcreateselect'">
  106.                     </td>
  107.                   </tr>
  108.                   <tr align=middle> 
  109.                     <td width="22%" height="2"><font class="strong">标题 </font></td>
  110.                     <td width="9%" height="2"><font class="strong">发文创建时间</font></td>                    
  111.                     <td width="7%" height="2"><font class="strong">文件状态</font></td>
  112.                   </tr>
  113.                   <vnex_workflow:docSentList queryCond="<%=docQueryBean%>">          
  114.                   <vnex:pagingItems>         
  115.                   <tr bgcolor="<vnex:itemsColor />">                
  116.                   <td align="center"><font face="宋体"><a href="/mainctrl/office/document/sentdetail?id=<vnex_workflow:docSentAttribute attribute="DocumentSent_id"/>">                 
  117.                       <vnex_workflow:docSentAttribute attribute="DocumentSent_title"/>
  118.                      </a></font></td>
  119.                   <td align="center"><font face="宋体">
  120.                      <vnex_workflow:docSentAttribute attribute="DocumentSent_create_date"/>
  121.                    </font> &nbsp; 
  122.                    </td>
  123.                   
  124.                   <td align="center"><font size="2" face="宋体"> 
  125.                     <p align="center">
  126.                      <vnex_workflow:docSentAttribute attribute="DocumentSent_status"/>
  127.                    </font></td>
  128.                               
  129.                   </tr>
  130.                  </vnex:pagingItems>
  131.                             
  132.                 <tr  bgcolor="#E0E0E0">
  133.                   <td colspan="4" align="left" height="19">                                   
  134.                     &nbsp;<vnex:pagingTag pageName="/mainctrl/office/document/sentlist?a=1" />                  
  135.                    </td>
  136.                  </tr>   
  137.                 
  138.                   </vnex_workflow:docSentList>
  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>