⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 office_document_received_list.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
字号:
<%@ 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.DocumentReceivedType" %>
<%@ page import="com.vnex.intranet.workflow.document.value.DocQueryBean" %>
<%@ 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.setCreatorId( BusinessName.getEmpId() );
%>

<script language="JavaScript" src="/vnex/validate.js"></script>
<script language=JavaScript>

function deleteDocs(form)
{
   if ( !isChecked( form.docReceivedId )  ) 
   {
       alert('请选择要删除的收文!');
       return false;
   }     
   if( confirm( "确定要删除选择的收文?" ) )
   { 
       form.action="/mainctrl/office/document/receiveddeletebatch";
       form.submit();  
   } 
}

function queryDoc(form)
{
   form.action="/mainctrl/office/document/receivedlist?type=1";
   form.submit();     
}

function queryDocAll(form)
{
   form.action="/mainctrl/office/document/receivedlist?type=2";
   form.submit();     
}

function SelectAll(form)
{
  for (var i=0;i<form.elements.length;i++)
  {
    var e = form.elements[i];
    if (e.name != 'C1')
       e.checked = form.C1.checked;
  }
}
</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 language="JavaScript">
window.onload=init
</script>

<DIV align=center>
<form name="receivedform" method="post" action="/mainctrl/office/document/receivedlist" >
    <table class=outter cellspacing=0 cellpadding=0 width=600 border=0>
      <tbody> 
      <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> 
              <td align="center" colspan="2" bgcolor="#FFFFFF"> 
                <table width="600" border="0" cellspacing="0" cellpadding="0">
                 <tr bgcolor="#666666"> 
                    <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>
                      </font></td>
                  </tr>
                  <tr bgcolor="#fafafa" >
                      <td align="left" height="30">                        
                         <font class="strong" >&nbsp;标题:</font>&nbsp;
                         <input type="text" name="title" class="file">&nbsp;
                         <font class="strong">类别: </font>&nbsp;
                         <select name="statusId" size="1">
                            <option value="-1" >全部类型</option>
                        <%
                              Iterator dtypes = DocumentReceivedType.getAvailableDocumentReceivedTypes().iterator();
                              while ( dtypes.hasNext() )
                              {
                                  DocumentReceivedType dtype = ( DocumentReceivedType )dtypes.next();
                         %>
                         <option value="<%= dtype.getId() %>" ><%= dtype.getName() %></option>
                         <%
                              }                              
                         %>                           
                           </select>&nbsp;
                           <font class="strong" >接收时间: </font>&nbsp;
                           <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>
                       &nbsp;<input type="button" name="Submit" value="查询" class="text" onClick="queryDoc(this.form)">
                    </td>
                  </tr>     
                </table>
                <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
                   <tr bgcolor="#fafafa">
                      <td colspan="4">
                        &nbsp;<input type="button" name="Button"value="新建" onClick="location='/mainctrl/office/document/receivedcreate'" class="text">
                        &nbsp;&nbsp;
                        <input type="button" name="Button"  value="删除" class="text" onClick="deleteDocs(this.form)">
                      </td>
                   </tr>  
                   <tr> 
                      <td align="center"><font class="strong">选择</font></td>
                      <td align="center"><font class="strong">文件标题</font></td>
                      <td align="center"><font class="strong">文件分类</font></td>
                      <td align="center"><font class="strong">接受日期</font></td>
                   </tr>
                   <vnex_workflow:docReceivedList  rowPerPage="8" queryCond="<%=docQueryBean%>">          
                   <vnex:pagingItems>    
                   <tr bgcolor="<vnex:itemsColor />"> 
                                <td align="center"> 
                                  <input type="checkbox" name="docReceivedId" value="<vnex_workflow:docReceivedAttribute attribute="DocumentReceived_id"/>">
                                </td>
                                <td align="center"><font face="宋体"><a href="/mainctrl/office/document/receivedupdate?id=<vnex_workflow:docReceivedAttribute attribute="DocumentReceived_id"/>">
                                <vnex_workflow:docReceivedAttribute attribute="DocumentReceived_title"/>
                                </a></font></td>
                                <td align="center"><font face="宋体">
                                <vnex_workflow:docReceivedAttribute attribute="DocumentReceived_type"/>
                                </font> &nbsp; 
                                </td>
                                <td align="center"><font size="2" face="宋体"> 
                                <p align="center">
                                <vnex_workflow:docReceivedAttribute attribute="DocumentReceived_date"/>
                                </font></td>
                    </tr>
                    </vnex:pagingItems>
                    <tr bgcolor="#e0e0e0">
                        <td align="center">
                           <input type="checkbox" name="C1" value="ON" onclick="SelectAll(this.form)">
                        </td>
                        <td colspan="3"> 
                            &nbsp;&nbsp;全选<br>
                        </td>
                    </tr>   
                    <tr bgcolor="#fafafa">
                        <td colspan="4">
                           &nbsp;<vnex:pagingTag pageName="/mainctrl/office/document/receivedlist?a=1" />
                        </td>
                    </tr>
                    </vnex_workflow:docReceivedList>          
                    
               </table>
             </td>
          </tr>   
          </table>          
         <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
        </td>
      </tr>
      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
      </tbody> 
    </table>
    <br>
   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  </form></DIV>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -