DocTempletMoveFlowManage.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"/>
  4. <%
  5. Session m_session = new Session(session);
  6.  Request m_request = new Request(request);
  7.     int iPageSize = 18;
  8.     int iPage = m_request.GetInt("Page");
  9.     String strCurrentPageURL = request.getRequestURI();
  10.     int iSysDirID = m_request.GetInt("SysDirID");
  11.     String strSysDirID = iSysDirID + "";
  12.     String strID = m_request.GetString("ID");
  13.     String strName = m_request.GetString("Name");
  14.     String strDocTempletID = m_request.GetString("DocTempletID");
  15.     String strDocTempletName = m_request.GetString("DocTempletName");
  16.     String strDocTempletTableName = "DocumentTemplet";
  17.     String strMoveFlowID = m_request.GetString("MoveFlowID");
  18.     String strMoveFlowName = m_request.GetString("MoveFlowName");
  19.     String strUpdateUserID = m_request.GetString("UpdateUserID");
  20.     String strUpdateTimeFrom = m_request.GetString("UpdateTimeFrom");
  21.     String strUpdateTimeTo = m_request.GetString("UpdateTimeTo");
  22.     String strUpdateFromIP = m_request.GetString("UpdateFromIP");
  23.     String strApproveUserID = m_request.GetString("ApproveUserID");
  24.     String strIsUseful = "False";
  25.     String strWritableUserIDs = m_request.GetString("WritableUserIDs");
  26.     String strWritableDepartIDs = m_request.GetString("WritableDepartIDs");
  27.     String strReadOnlyUserIDs = m_request.GetString("ReadOnlyUserIDs");
  28.     String strReadOnlyDepartIDs = m_request.GetString("ReadOnlyDepartIDs");
  29.     String strOrderBy = m_request.GetString("OrderBy");
  30.     String strIsDesc = m_request.GetString("IsDesc");
  31.     String strIsAutoBuild = m_request.GetString("IsAutoBuild");
  32. %>
  33. <html>
  34. <head>
  35. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  36. <title>公文流转模板管理-- GForce OA 2.0</title>
  37. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  38. <script language="JavaScript" src="/js/changestyle.js"></script>
  39. </head>
  40. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  41.     <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  42.     <tr>
  43.     <td align="center" valign="top">
  44.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  45.         <tr>
  46.           <td height="50" valign="top" background="../images/dy-back.gif">
  47.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  48.               <tr valign="middle">
  49.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  50.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">公文流转列表</font></strong></td>
  51.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  52.                    <!-- 群增<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;-->
  53.                    <a href="AddDocTempletMoveFlow.jsp?SysDirID=<%=iSysDirID%>"><img src="/images/Single.gif" onMouseOver="this.src='/images/Single_a.gif';" onMouseOut="this.src='/images/Single.gif';" border="0" height="22" width="59"></a>
  54.                   <!--修改<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;-->
  55.                   <!-- 删除<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;-->
  56.                   <!-- 查看<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;-->
  57.                   <!-- 组合查询<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;-->
  58.                 </td>
  59.               </tr>
  60.             </table>
  61.           </td>
  62.         </tr>
  63.       </table><br>
  64. <script language="JavaScript">
  65.    function changeorder(orderBy)
  66.    {
  67.       with(document.DocTempletMoveFlowManage)
  68.       {
  69.         if(OrderBy.value==orderBy)
  70.         {
  71.          if(IsDesc.value=="")
  72.             IsDesc.value="True";
  73.          else
  74.             IsDesc.value="";
  75.         }
  76.         else
  77.         {
  78.           IsDesc.value="";
  79.           OrderBy.value=orderBy;
  80.           Page.value="1";
  81.         }
  82.       }
  83.       document.DocTempletMoveFlowManage.submit();
  84.     }
  85.    function changepage(pageNum)
  86.    {
  87.       with(document.DocTempletMoveFlowManage)
  88.         {
  89.     Page.value=pageNum;
  90.          }
  91.       document.DocTempletMoveFlowManage.submit();
  92.     }
  93. </script>
  94.   <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  95.     <tr>
  96.     <td align="center" valign="top"><p>&nbsp;</p>
  97.       <form name="DocTempletMoveFlowManage" action="<%=strCurrentPageURL + "?SysDirID=" + iSysDirID%>" method="post">
  98.         <input name="Page" type="hidden" value="<%=iPage%>">
  99.         <input name="SysDirID" type="hidden" value="<%=iSysDirID%>">
  100.         <input name="ID" type="hidden" value="<%=strID%>">
  101.         <input name="Name" type="hidden" value="<%=strName%>">
  102.         <input name="DocTempletID" type="hidden" value="<%=strDocTempletID%>">
  103.         <input name="DocTempletName" type="hidden" value="<%=strDocTempletName%>">
  104.         <input name="DocTempletTableName" type="hidden" value="<%=strDocTempletTableName%>">
  105.         <input name="MoveFlowID" type="hidden" value="<%=strMoveFlowID%>">
  106.         <input name="MoveFlowName" type="hidden" value="<%=strMoveFlowName%>">
  107.         <input name="UpdateUserID" type="hidden" value="<%=strUpdateUserID%>">
  108.         <input name="UpdateTimeFrom" type="hidden" value="<%=strUpdateTimeFrom%>">
  109.         <input name="UpdateTimeTo" type="hidden" value="<%=strUpdateTimeTo%>">
  110.         <input name="UpdateFromIP" type="hidden" value="<%=strUpdateFromIP%>">
  111.         <input name="ApproveUserID" type="hidden" value="<%=strApproveUserID%>">
  112.         <input name="IsUseful" type="hidden" value="<%=strIsUseful%>">
  113.         <input name="WritableUserIDs" type="hidden" value="<%=strWritableUserIDs%>">
  114.         <input name="WritableDepartIDs" type="hidden" value="<%=strWritableDepartIDs%>">
  115.         <input name="ReadOnlyUserIDs" type="hidden" value="<%=strReadOnlyUserIDs%>">
  116.         <input name="ReadOnlyDepartIDs" type="hidden" value="<%=strReadOnlyDepartIDs%>">
  117.         <input name="OrderBy" type="hidden" value="<%=strOrderBy%>">
  118.         <input name="IsDesc" type="hidden" value="<%=strIsDesc%>">
  119.           <input name="IsAutoBuild" type="hidden" value="<%=strIsAutoBuild%>">
  120.           <%--
  121.         //<input name="IsAutoBuild" type="hidden" value="<%=strIsAutoBuild%>"><font color="#000000"><b>公文流转模板管理</b></font>
  122.         --%>
  123.           <br><br>
  124.            <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  125.             <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  126.             <th width="2%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  127.             <th width="4%" nowrap><font color="#000000">序号</font></th>
  128.             <th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.Name');return false;">公文流转模板名称</a><%
  129.                if(strOrderBy.equalsIgnoreCase("a.Name"))
  130.                {
  131.                 if(strIsDesc.equalsIgnoreCase("True"))
  132.                 out.print("↓");
  133.                 else
  134.                 out.print("↑");
  135.                 }
  136.                %></font></th>
  137.             <th width="10%" nowrap><font color="#000000"><a href="" onclick="changeorder('b.TempletName');return false;">来自公文模板</a><%
  138.               if(strOrderBy.equalsIgnoreCase("b.TempletName"))
  139.                {
  140.                 if(strIsDesc.equalsIgnoreCase("True"))
  141.                 out.print("↓");
  142.                 else
  143.                 out.print("↑");
  144.                 }
  145.                %></font></th>
  146.             <th width="10%" nowrap><font color="#000000"><a href="" onclick="changeorder('c.FlowName');return false;">来自流转模板</a><%
  147.                if(strOrderBy.equalsIgnoreCase("c.FlowName"))
  148.                {
  149.                 if(strIsDesc.equalsIgnoreCase("True"))
  150.                 out.print("↓");
  151.                 else
  152.                 out.print("↑");
  153.                }
  154.               %></font></th>
  155.             <th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('e.Name');return false;">更新用户</a><%
  156.               if(strOrderBy.equalsIgnoreCase("e.Name"))
  157.                {
  158.                 if(strIsDesc.equalsIgnoreCase("True"))
  159.                 out.print("↓");
  160.                 else
  161.                 out.print("↑");
  162.                }
  163.               %></font></th>
  164.             <th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.UpdateTime');return false;">更新时间</a><%
  165.              if(strOrderBy.equalsIgnoreCase("a.UpdateTime"))
  166.                {
  167.                 if(strIsDesc.equalsIgnoreCase("True"))
  168.                 out.print("↓");
  169.                 else
  170.                 out.print("↑");
  171.                }
  172.               %></font></th>
  173.             <th width="7%" nowrap><font color="#000000">修改</font></th>
  174.             <th width="7%" nowrap><font color="#000000">删除</font></th>
  175.             </tr>
  176.   <%
  177.     Vector vt = DocTempletMoveFlowManager.getRecordBySearch(strID,strName,strDocTempletID,strDocTempletName,strSysDirID,
  178.                                                             strDocTempletTableName,strMoveFlowID,strMoveFlowName,strUpdateUserID,
  179.                                                             strUpdateTimeFrom,strUpdateTimeTo,strUpdateFromIP,strApproveUserID,
  180.                                                             strIsUseful,strWritableUserIDs,strWritableDepartIDs,strReadOnlyUserIDs,
  181.                                                             strReadOnlyDepartIDs,strOrderBy,strIsDesc,strIsAutoBuild,"");
  182.     if(iPage<1)iPage=1;
  183.     int iPageCount = StringNew.getPageCount(vt.size(),iPageSize);
  184.     if(iPage>iPageCount) iPage=1;
  185.     for(int i=(iPage-1)*iPageSize;i<vt.size()&&i<iPage*iPageSize;i++)
  186.     {
  187.       strID = ((Vector)vt.get(i)).get(0).toString();
  188.       if(i % 2 == 0)
  189.       {
  190.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  191.       }
  192.       else
  193.       {
  194.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  195.       }
  196.       out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  197.       out.println("<td align="middle" valign="middle">" + (i+1) + "</td>");
  198.       out.println("<td align="left" valign="middle" nowrap title="" + ((Vector)vt.get(i)).get(1).toString() + "" >" + ((Vector)vt.get(i)).get(1).toString() + "&nbsp;</td>");
  199.       out.println("<td align="center" valign="middle"><a href="ShowDocumentTemplet.jsp?SysDirID=" + iSysDirID + "&ID=" + ((Vector)vt.get(i)).get(2).toString() + "" target="_blank">" + ((Vector)vt.get(i)).get(17).toString() + "</a>&nbsp;</td>");
  200.       out.println("<td align="center" valign="middle"><a href="ShowMoveFlowTemplet.jsp?ID=" + ((Vector)vt.get(i)).get(4).toString() + "" target="_blank">" + ((Vector)vt.get(i)).get(19).toString() + "</a>&nbsp;</td>");
  201.       out.println("<td align="center" valign="middle" nowrap >" + ((Vector)vt.get(i)).get(20).toString() + "&nbsp;</td>");
  202.       out.println("<td align="center" valign="middle" nowrap >" + StringNew.GetDateString(((Vector)vt.get(i)).get(6).toString(),"yyyy年MM月dd日 HH时mm分") + "&nbsp;</td>");
  203.       out.println("<td align="center" valign="middle" nowrap><a href="EditDocTempletMoveFlow.jsp?SysDirID=" + iSysDirID  +"&DocTempletTableName=" + strDocTempletTableName + "&ID=" + strID +"">修改</a></td>");
  204.       out.println("<td align="center" valign="middle" nowrap><a href="DelDocTempletMoveFlow.jsp?SysDirID="+ iSysDirID + "&ID=" + strID +"&DocTempletTableName=" + strDocTempletTableName +"" onclick="return confirm('您确实要删除该公文流转模板吗?');">删除</a></td>");
  205.       out.println("</tr>");
  206.     }
  207.   %>
  208.             <tr>
  209.              <th align="center" valign="top" colspan="9">
  210.               <%
  211.               if(iPage<2)
  212.               out.print("首页&nbsp;&nbsp;上页");
  213.               else
  214.               out.print("<a href="" onclick="changepage(" + 1 + ");return false;">首页</a>&nbsp;&nbsp;<a href="" onclick="changepage(" + (iPage-1) + ");return false;">上页</a>");
  215.               out.print("&nbsp;&nbsp;当前是第" + iPage + "页,共" + vt.size() + "条记录" + iPageCount + "页&nbsp;&nbsp;");
  216.               if(iPage>=iPageCount)
  217.               out.print("下页&nbsp;&nbsp;末页");
  218.               else
  219.               out.print("<a href="" onclick="changepage(" + (iPage+1) + ");return false;">下页</a>&nbsp;&nbsp;<a href="" onclick="changepage(" + iPageCount + ");return false;">末页</a>");
  220.               %>
  221.              </th>
  222.              </th>
  223.             </tr>
  224.            </table>
  225.           </form>
  226.         </td>
  227.       </tr>
  228.     </table>
  229.   </body>
  230. </html>