DocDisPigeonholedManage.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:13k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" %>
  2. <%@ page import="com.gforce.gfoa.*, com.gforce.currency.*, java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/><%Session m_session = new Session(session);%>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>公文反归档页面 -- GForce OA 2.0</title>
  8. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js"></script>
  10. </head>
  11. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  12.   <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  13.   <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  14.     <tr>
  15.     <td align="center" valign="top">
  16.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  17.         <tr>
  18.           <td height="50" valign="top" background="../images/dy-back.gif">
  19.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  20.               <tr valign="middle">
  21.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  22.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">公文反归档管理</font></strong></td>
  23.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  24.                    <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  25.                  <!--<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59">&nbsp;-->
  26.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  27.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  28.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  29.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  30.                 </td>
  31.               </tr>
  32.             </table>
  33.           </td>
  34.         </tr>
  35.       </table>
  36.   <%
  37.     Request m_request = new Request(request);
  38.     int iPageSize = 18;
  39.     int iPage = m_request.GetInt("Page");
  40.     String strCurrentPageURL = request.getRequestURI();
  41.     int iSysDirID = m_request.GetInt("SysDirID");
  42.     int iUserID = m_session.GetInt("UserID");
  43.     String strSysDirID = iSysDirID + "";
  44.     String strID = m_request.GetString("ID");
  45.     String strDocumentName = m_request.GetString("DocumentName");
  46.     int iDocFlowTempletID = m_request.GetInt("DocFlowTempletID");
  47.     String strDocFlowTempletName = m_request.GetString("DocFlowTempletName");
  48.     String strBuildTimeFrom = m_request.GetString("BuildTimeFrom");
  49.     String strBuildTimeTo = m_request.GetString("BuildTimeTo");
  50.     int iBuildUserID = m_request.GetInt("BuildUserID");
  51.     String strBuildUserName = m_request.GetString("BuildUserName");
  52.     int iFillUserID = m_request.GetInt("FillUserID");
  53.     String strFillUserName = m_request.GetString("FillUserName");
  54.     boolean bIsPigeonholed = true;
  55.     int iCurrentFlowTacheID = m_request.GetInt("CurrentFlowTacheID");
  56.     String strCurrentFlowTacheName = m_request.GetString("CurrentFlowTacheName");
  57.     String strIsReminded = m_request.GetString("IsReminded");
  58.     String strRemindTime = m_request.GetString("RemindTime");
  59.     int iTacheStatus = 0;
  60.     String strTacheStatus = m_request.GetString("TacheStatus");
  61.     boolean bIsDesc=false;
  62.     String strOrderBy = m_request.GetString("OrderBy");
  63.     String strIsDesc = m_request.GetString("IsDesc");
  64.     bIsDesc = strIsDesc.equalsIgnoreCase("True");
  65.   %>
  66. <script language="JavaScript">
  67.    function changeorder(orderBy)
  68.    {
  69.       with(document.DocDisPigeonholedManage)
  70.       {
  71.         if(OrderBy.value==orderBy)
  72.         {
  73.          if(IsDesc.value=="")
  74.             IsDesc.value="True";
  75.          else
  76.             IsDesc.value="";
  77.         }
  78.         else
  79.         {
  80.           IsDesc.value="";
  81.           OrderBy.value=orderBy;
  82.           Page.value="1";
  83.         }
  84.       }
  85.       document.DocDisPigeonholedManage.submit();
  86.     }
  87.    function changepage(pageNum)
  88.    {
  89.       with(document.DocDisPigeonholedManage)
  90.         {
  91.     Page.value=pageNum;
  92.          }
  93.       document.DocDisPigeonholedManage.submit();
  94.     }
  95. function checkDocDisPigeonholed()
  96. {
  97.   var isIDCheck = false;
  98.   var isIDCheck = false;
  99.   with(document.DocDisPigeonholed)
  100.   {
  101.     try
  102.     {
  103.       for(i=0;i<elements.length;i++)
  104.       {
  105.         if(elements[i].type=="checkbox"&&elements[i].name=="ID")
  106.         {
  107.           if(elements[i].checked)
  108.           {
  109.             isIDCheck = true;
  110.             break;
  111.           }
  112.         }
  113.       }
  114.     }
  115.     catch(ex)
  116.     {
  117.     }
  118.   }
  119.   if(!isIDCheck)
  120.   {
  121.     alert("请先选择公文,再进行反归档操作!");
  122.     return false;
  123.   }
  124.   return window.confirm('确实要反归档这些记录吗?');
  125. }
  126. function checktall()
  127. {
  128.     var allselect=true;
  129.     with(document.DocDisPigeonholed)
  130.     {
  131.         if(selectall.value=="全部选择")
  132.         {
  133.             allselect = true;
  134.             selectall.value="全部取消";
  135.         }
  136.         else
  137.         {
  138.             allselect = false;
  139.             selectall.value="全部选择";
  140.         }
  141.         for(i=0;i<elements.length;i++)
  142.         {
  143.             if(elements[i].type=="checkbox")
  144.                 elements[i].checked = allselect;
  145.         }
  146.     }
  147. }
  148. </script>
  149.   <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  150.     <tr>
  151.     <td align="center" valign="top"><p>&nbsp;</p>
  152.       <form name="DocDisPigeonholedManage" action="<%=strCurrentPageURL + "?SysDirID=" + iSysDirID%>" method="post">
  153.         <input name="Page" type="hidden" value="<%=iPage%>">
  154.         <input name="SysDirID" type="hidden" value="<%=iSysDirID%>">
  155.       <input name="UserID" type="hidden" value="<%=iUserID%>">
  156.         <input name="ID" type="hidden" value="<%=strID%>">
  157.         <input name="DocumentName" type="hidden" value="<%=strDocumentName%>">
  158.         <input name="DocFlowTempletID" type="hidden" value="<%=iDocFlowTempletID%>">
  159.         <input name="DocFlowTempletName" type="hidden" value="<%=strDocFlowTempletName%>">
  160.         <input name="BuildTimeFrom" type="hidden" value="<%=strBuildTimeFrom%>">
  161.         <input name="BuildTimeTo" type="hidden" value="<%=strBuildTimeTo%>">
  162.         <input name="BuildUserID" type="hidden" value="<%=iBuildUserID%>">
  163.         <input name="BuildUserName" type="hidden" value="<%=strBuildUserName%>">
  164.         <input name="FillUserID" type="hidden" value="<%=iFillUserID%>">
  165.         <input name="FillUserName" type="hidden" value="<%=strFillUserName%>">
  166.         <input name="IsPigeonholed" type="hidden" value="<%=bIsPigeonholed%>">
  167.         <input name="CurrentFlowTacheID" type="hidden" value="<%=iCurrentFlowTacheID%>">
  168.         <input name="IsReminded" type="hidden" value="<%=strIsReminded%>">
  169.         <input name="RemindTime" type="hidden" value="<%=strRemindTime%>">
  170.         <input name="TacheStatus" type="hidden" value="<%=strTacheStatus%>">
  171.         <input name="OrderBy" type="hidden" value="<%=strOrderBy%>">
  172.         <input name="IsDesc" type="hidden" value="<%=strIsDesc%>">
  173.         <br><br>
  174.        </form>
  175.        <form name="DocDisPigeonholed" action="DocDisPigeonholedAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onsubmit="return checkDocDisPigeonholed();">
  176.            <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  177.             <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  178.             <th width="2%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  179.             <th width="4%" nowrap><font color="#000000">序号</font></th>
  180.             <th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.DocumentName');return false;">公文名称</a><%
  181.                if(strOrderBy.equalsIgnoreCase("a.DocumentName"))
  182.                {
  183.                 if(strIsDesc.equalsIgnoreCase("True"))
  184.                 out.print("↓");
  185.                 else
  186.                 out.print("↑");
  187.                 }
  188.                %></font></th>
  189.             <th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('d.Name');return false;">填写用户</a><%
  190.               if(strOrderBy.equalsIgnoreCase("d.Name"))
  191.                {
  192.                 if(strIsDesc.equalsIgnoreCase("True"))
  193.                 out.print("↓");
  194.                 else
  195.                 out.print("↑");
  196.                 }
  197.                %></font></th>
  198.             <th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('c.Name');return false;">生成用户</a><%
  199.                if(strOrderBy.equalsIgnoreCase("c.Name"))
  200.                {
  201.                 if(strIsDesc.equalsIgnoreCase("True"))
  202.                 out.print("↓");
  203.                 else
  204.                 out.print("↑");
  205.                }
  206.               %></font></th>
  207.             <th width="12%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.BuildTime');return false;">创建时间</a><%
  208.              if(strOrderBy.equalsIgnoreCase("a.BuildTime"))
  209.                {
  210.                 if(strIsDesc.equalsIgnoreCase("True"))
  211.                 out.print("↓");
  212.                 else
  213.                 out.print("↑");
  214.                }
  215.               %></font></th>
  216.             </tr>
  217.   <%
  218.     Vector vt = DocumentManagerPlus.getRecordBySearch(strID, strDocumentName, iDocFlowTempletID, strDocFlowTempletName, iBuildUserID,
  219.                             strBuildUserName, iFillUserID, strFillUserName, bIsPigeonholed, iCurrentFlowTacheID,
  220.                             strCurrentFlowTacheName, iTacheStatus, strTacheStatus, strIsReminded, strRemindTime,
  221.                             strBuildTimeFrom, strBuildTimeTo, strOrderBy, bIsDesc);
  222.     if(iPage<1)iPage=1;
  223.     int iPageCount = StringNew.getPageCount(vt.size(),iPageSize);
  224.     if(iPage>iPageCount) iPage=1;
  225.     for(int i=(iPage-1)*iPageSize;i<vt.size()&&i<iPage*iPageSize;i++)
  226.     {
  227.       strID = ((Vector)vt.get(i)).get(0).toString();
  228.       if(i % 2 == 0)
  229.       {
  230.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  231.       }
  232.       else
  233.       {
  234.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  235.       }
  236.       out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  237.       out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  238.       out.println("<td align="left" valign="middle" nowrap title="" + ((Vector)vt.get(i)).get(1).toString() + "" ><input type="checkbox" name="ID" value="" + strID + ""><a href="ShowDocumentAllInfo.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + "" target="_blank">" + ((Vector)vt.get(i)).get(1).toString() + "</a>&nbsp;</td>");
  239.       out.println("<td align="left" valign="middle" nowrap >" + ((Vector)vt.get(i)).get(11).toString() + "&nbsp;</td>");
  240.       out.println("<td align="left" valign="middle" nowrap >" + ((Vector)vt.get(i)).get(10).toString() + "&nbsp;</td>");
  241.       out.println("<td align="left" valign="middle" nowrap >" + StringNew.GetDateString(((Vector)vt.get(i)).get(3).toString(),"yyyy年MM月dd日 HH时mm分") + "&nbsp;</td>");
  242.       out.println("</tr>");
  243.     }
  244.   %>
  245.             <tr>
  246.              <th align="center" valign="top" colspan="5">
  247.               <%
  248.               if(iPage<2)
  249.               out.print("首页&nbsp;&nbsp;上页");
  250.               else
  251.               out.print("<a href="" onclick="changepage(" + 1 + ");return false;">首页</a>&nbsp;&nbsp;<a href="" onclick="changepage(" + (iPage-1) + ");return false;">上页</a>");
  252.               out.print("&nbsp;&nbsp;当前是第" + iPage + "页,共" + vt.size() + "条记录" + iPageCount + "页&nbsp;&nbsp;");
  253.               if(iPage>=iPageCount)
  254.               out.print("下页&nbsp;&nbsp;末页");
  255.               else
  256.               out.print("<a href="" onclick="changepage(" + (iPage+1) + ");return false;">下页</a>&nbsp;&nbsp;<a href="" onclick="changepage(" + iPageCount + ");return false;">末页</a>");
  257.               %>
  258.              </th>
  259.               <th colspan="2">
  260.                 <input name="selectall" type="button" value="全部选择" onclick="checktall()" style="background-color: #FFFFFF; border: 1 solid #000000">
  261.                 <input name="subm" type="submit" value="反归档" style="background-color: #FFFFFF; border: 1 solid #000000">
  262.               </th>
  263.             </tr>
  264.            </table>
  265.           </form>
  266.         </td>
  267.       </tr>
  268.     </table>
  269.   </body>
  270. </html>