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="personDocQueryBean" scope="page" class="com.vnex.intranet.workflow.document.value.DocQueryBean" />
  11. <%
  12.     //session.setAttribute( "personDocQueryBean", personDocQueryBean );
  13.     if( request.getParameter("type") != null && Integer.parseInt( request.getParameter("type") ) == 1 )
  14.     {
  15.         session.removeAttribute( "personDocQueryBean" );    
  16. %>
  17. <jsp:setProperty name="personDocQueryBean" property="*" />
  18. <%
  19.         session.setAttribute( "personDocQueryBean", personDocQueryBean );   
  20.     }
  21.     if( request.getParameter("type") != null && Integer.parseInt( request.getParameter("type") ) == 2 )
  22.     {
  23.         personDocQueryBean = new DocQueryBean();
  24.         session.setAttribute( "personDocQueryBean", personDocQueryBean );
  25.     }  
  26.     if( request.getParameter("a") != null && Integer.parseInt( request.getParameter("a") ) == 1 )  
  27.         personDocQueryBean = ( DocQueryBean )session.getAttribute( "personDocQueryBean" );   
  28.         
  29.     personDocQueryBean.setTypeId( WorkFlowType.PERSONAL );
  30.     personDocQueryBean.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/personal/document/sentlist?type=1";
  37.    form.submit();     
  38. }
  39. function queryDocAll(form)
  40. {
  41.    form.action="/mainctrl/personal/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_person.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" >
  56.    
  57.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  58.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  59.     <TR> 
  60.         <TD colSpan=3 align="center"><br>
  61.           <!--个人信息开始 -->
  62.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  63.             <tr bgcolor="#fafafa"> 
  64.               <td> 
  65.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  66.                   <tr> 
  67.                     <td colspan="5" height="15" bgcolor="#666666"><font class="strongw">&nbsp;<a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;发文管理 
  68.                       </font></td>
  69.                   </tr>
  70.                   <tr> 
  71.                     <td colspan="4" height="30"> <font class="strong" >&nbsp;标题:</font>&nbsp; 
  72.                       <input type="text" name="title" class="file" size="24">&nbsp;
  73.                       <font class="strong" >&nbsp;状态: </font>&nbsp; 
  74.                       <select name="statusId" size="1">
  75.                         <option value="-1" selected>全部状态</option>
  76. <%                    
  77.                         Hashtable hash = WorkflowLoader.getAllWorkflowStatus();
  78.                         Enumeration enum = hash.keys();
  79.                         if(enum != null)
  80.                         {
  81.                             while(enum.hasMoreElements())
  82.                             {       
  83.                                 String key = (String)enum.nextElement();                        
  84. %>                    
  85.                        <option value="<%= key%>"><%= (String)hash.get( key )%>
  86. <%
  87.                             }
  88.                         }
  89. %>                                 
  90.                       </select>
  91.                       <font class="strong" >&nbsp;发出时间: </font>&nbsp; 
  92.                       <select name="preDate" size="1">
  93.                         <option value="-1" selected>任何日期</option>
  94.                         <option value="1">自从昨天开始</option>
  95.                         <option value="5">自从5天以前</option>
  96.                         <option value="10">自从10天以前</option>
  97.                         <option value="30">自从30天以前</option>
  98.                       </select>
  99.                       &nbsp;<input type="button" name="Submit" value="查询" class="file" onClick="queryDoc(this.form)">
  100.                     </td>
  101.                   </tr>
  102.                 </table>
  103.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  104.                   <tr align=left bgcolor="#fafafa"> 
  105.                     <td colspan="4" height="30">&nbsp; 
  106.                       <input type="button" name="Submit222" value="新建" class="file" onClick="location='/mainctrl/personal/document/sentcreateselect'">
  107.                     </td>
  108.                   </tr>
  109.                   <tr align=middle> 
  110.                     <td width="22%" height="2"><font class="strong">标题 </font></td>
  111.                     <td width="9%" height="2"><font class="strong">发文创建时间</font></td>                    
  112.                     <td width="7%" height="2"><font class="strong">文件状态</font></td>
  113.                   </tr>
  114.                   <vnex_workflow:docSentList queryCond="<%=personDocQueryBean%>">          
  115.                   <vnex:pagingItems>         
  116.                   <tr bgcolor="<vnex:itemsColor />">                
  117.                   <td align="center"><font face="宋体"><a href="/mainctrl/personal/document/sentdetail?id=<vnex_workflow:docSentAttribute attribute="DocumentSent_id"/>">                 
  118.                       <vnex_workflow:docSentAttribute attribute="DocumentSent_title"/>
  119.                      </a></font></td>
  120.                   <td align="center"><font face="宋体">
  121.                       <vnex_workflow:docSentAttribute attribute="DocumentSent_create_date"/>
  122.                    </font> &nbsp; 
  123.                   </td>
  124.                   
  125.                   <td align="center"><font size="2" face="宋体"> 
  126.                     <p align="center">
  127.                      <vnex_workflow:docSentAttribute attribute="DocumentSent_status"/>
  128.                    </font></td>                              
  129.                   </tr>
  130.                  </vnex:pagingItems>                            
  131.                 <tr bgcolor="#e0e0e0">
  132.                   <td colspan="4" align="left" height="19">                                   
  133.                     &nbsp;<vnex:pagingTag pageName="/mainctrl/personal/document/sentlist?a=1" />                  
  134.                    </td>
  135.                  </tr>   
  136.                  </vnex_workflow:docSentList>
  137.                 </table>
  138.                 </td>
  139.             </tr>
  140.           </table>
  141. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  142. </TD>
  143.     </TR>
  144.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  145.     </TABLE>
  146.   <BR>
  147.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  148. </form></DIV>
  149. </BODY></HTML>