Office_Document_Sent_List.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
- <%@ page import="com.vnex.intranet.workflow.document.value.DocQueryBean"%>
- <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType"%>
- <%@ page import="java.util.*" %>
- <%@ page import="com.vnex.intranet.workflow.loader.WorkflowLoader" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="docQueryBean" scope="page" class="com.vnex.intranet.workflow.document.value.DocQueryBean" />
- <%
- //session.setAttribute( "docQueryBean", docQueryBean );
- if( request.getParameter("type") != null && Integer.parseInt( request.getParameter("type") ) == 1 )
- {
- session.removeAttribute( "docQueryBean" );
- %>
- <jsp:setProperty name="docQueryBean" property="*" />
- <%
- session.setAttribute( "docQueryBean", docQueryBean );
- }
- if( request.getParameter("type") != null && Integer.parseInt( request.getParameter("type") ) == 2 )
- {
- docQueryBean = new DocQueryBean();
- session.setAttribute( "docQueryBean", docQueryBean );
- }
- if( request.getParameter("a") != null && Integer.parseInt( request.getParameter("a") ) == 1 )
- docQueryBean = ( DocQueryBean )session.getAttribute( "docQueryBean" );
- docQueryBean.setTypeId( WorkFlowType.DOCUMENT );
- docQueryBean.setCreatorId( BusinessName.getEmpId() );
- %>
- <script language="JavaScript" src="/vnex/validate.js"></script>
- <script language=JavaScript>
- function queryDoc(form)
- {
- form.action="/mainctrl/office/document/sentlist?type=1";
- form.submit();
- }
- function queryDocAll(form)
- {
- form.action="/mainctrl/office/document/sentlist?type=2";
- form.submit();
- }
- </script>
- <!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="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <SCRIPT>
- window.onload=init
- </SCRIPT>
- <DIV align=center>
- <form name="form1" 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"><br>
- <!--个人信息开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr bgcolor="#fafafa">
- <td>
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr bgcolor="#666666">
- <td colspan="5" height="15" ><font class="strongw"> <a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>>>发文管理
- </font></td>
- </tr>
- <tr>
- <td colspan="4" height="30"> <font class="strong" > 标题:</font>
- <input type="text" name="title" class="file" size="24">
- <font class="strong" > 状态: </font>
- <select name="statusId" size="1">
- <option value="-1" selected>全部状态</option>
- <%
- Hashtable hash = WorkflowLoader.getAllWorkflowStatus();
- Enumeration enum = hash.keys();
- if(enum != null)
- {
- while(enum.hasMoreElements())
- {
- String key = (String)enum.nextElement();
- %>
- <option value="<%= key%>"><%= (String)hash.get( key )%>
- <%
- }
- }
- %>
- </select>
- <font class="strong" > 发出时间: </font>
- <select name="preDate" size="1">
- <option value="-1" selected>任何日期</option>
- <option value="1">自从昨天开始</option>
- <option value="5">自从5天以前</option>
- <option value="10">自从10天以前</option>
- <option value="30">自从30天以前</option>
- </select>
- <input type="button" name="Submit" value="查询" class="file" onClick="queryDoc(this.form)">
- </td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr align=left bgcolor="#fafafa">
- <td colspan="4" height="30">
- <input type="button" name="Submit222" value="新建" class="file" onClick="location='/mainctrl/office/document/sentcreateselect'">
- </td>
- </tr>
- <tr align=middle>
- <td width="22%" height="2"><font class="strong">标题 </font></td>
- <td width="9%" height="2"><font class="strong">发文创建时间</font></td>
- <td width="7%" height="2"><font class="strong">文件状态</font></td>
- </tr>
- <vnex_workflow:docSentList queryCond="<%=docQueryBean%>">
- <vnex:pagingItems>
- <tr bgcolor="<vnex:itemsColor />">
- <td align="center"><font face="宋体"><a href="/mainctrl/office/document/sentdetail?id=<vnex_workflow:docSentAttribute attribute="DocumentSent_id"/>">
- <vnex_workflow:docSentAttribute attribute="DocumentSent_title"/>
- </a></font></td>
- <td align="center"><font face="宋体">
- <vnex_workflow:docSentAttribute attribute="DocumentSent_create_date"/>
- </font>
- </td>
- <td align="center"><font size="2" face="宋体">
- <p align="center">
- <vnex_workflow:docSentAttribute attribute="DocumentSent_status"/>
- </font></td>
- </tr>
- </vnex:pagingItems>
- <tr bgcolor="#E0E0E0">
- <td colspan="4" align="left" height="19">
- <vnex:pagingTag pageName="/mainctrl/office/document/sentlist?a=1" />
- </td>
- </tr>
- </vnex_workflow:docSentList>
- </table>
- </td>
- </tr>
- </table>
- <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>