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

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.   <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  13.     <tr>
  14.     <td align="center" valign="top">
  15.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  16.         <tr>
  17.           <td height="50" valign="top" background="../images/dy-back.gif">
  18.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  19.               <tr valign="middle">
  20.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  21.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">公文流转模板配置</font></strong></td>
  22.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  23.                    <!-- 群增<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;-->
  24.                  <!--<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;-->
  25.                   <!-- 修改<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;-->
  26.                   <!-- 删除<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;-->
  27.                   <!-- 查看<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;-->
  28.                   <!-- 组合查询<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;-->
  29.                 </td>
  30.               </tr>
  31.             </table>
  32.           </td>
  33.         </tr>
  34.       </table>
  35.   <%
  36.     Request m_request = new Request(request);
  37.     int iPageSize = 18;
  38.     int iPage = m_request.GetInt("Page");
  39.     String strCurrentPageURL = request.getRequestURI();
  40.     int iSysDirID = m_request.GetInt("SysDirID");
  41.   int iconfigID = m_request.GetInt("configID");
  42.   String strconfig = iconfigID + "";
  43.     String strSysDirID = iSysDirID + "";
  44.     String strID = m_request.GetString("ID");
  45.     String strName = m_request.GetString("Name");
  46.     String strDocTempletID = m_request.GetString("DocTempletID");
  47.     String strDocTempletName = m_request.GetString("DocTempletName");
  48.     String strDocTempletTableName = "DocumentTemplet";
  49.     String strMoveFlowID = m_request.GetString("MoveFlowID");
  50.     String strMoveFlowName = m_request.GetString("MoveFlowName");
  51.     String strUpdateUserID = m_request.GetString("UpdateUserID");
  52.     String strUpdateTimeFrom = m_request.GetString("UpdateTimeFrom");
  53.     String strUpdateTimeTo = m_request.GetString("UpdateTimeTo");
  54.     String strUpdateFromIP = m_request.GetString("UpdateFromIP");
  55.     String strApproveUserID = m_request.GetString("ApproveUserID");
  56.     String strIsUseful = m_request.GetString("IsUseful");
  57.     String strWritableUserIDs = m_request.GetString("WritableUserIDs");
  58.     String strWritableDepartIDs = m_request.GetString("WritableDepartIDs");
  59.     String strReadOnlyUserIDs = m_request.GetString("ReadOnlyUserIDs");
  60.     String strReadOnlyDepartIDs = m_request.GetString("ReadOnlyDepartIDs");
  61.     String strOrderBy = m_request.GetString("OrderBy");
  62.     String strIsDesc = m_request.GetString("IsDesc");
  63.     String strIsAutoBuild = m_request.GetString("IsAutoBuild");
  64.   %>
  65. <script language="JavaScript">
  66.    function changeorder(orderBy)
  67.    {
  68.       with(document.DocTempletMoveFlowManage)
  69.       {
  70.         if(OrderBy.value==orderBy)
  71.         {
  72.          if(IsDesc.value=="")
  73.             IsDesc.value="True";
  74.          else
  75.             IsDesc.value="";
  76.         }
  77.         else
  78.         {
  79.           IsDesc.value="";
  80.           OrderBy.value=orderBy;
  81.           Page.value="1";
  82.         }
  83.       }
  84.       document.DocTempletMoveFlowManage.submit();
  85.     }
  86.    function changepage(pageNum)
  87.    {
  88.       with(document.DocTempletMoveFlowManage)
  89.         {
  90.     Page.value=pageNum;
  91.          }
  92.       document.DocTempletMoveFlowManage.submit();
  93.     }
  94. </script>
  95.   <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  96.     <tr>
  97.     <td align="center" valign="top"><p>&nbsp;</p>
  98.       <form name="DocTempletMoveFlowManage" action="<%=strCurrentPageURL + "?SysDirID=" + iSysDirID + "&configID=" +iconfigID%>" method="post">
  99.         <input name="Page" type="hidden" value="<%=iPage%>">
  100.         <input name="SysDirID" type="hidden" value="<%=iSysDirID%>">
  101.         <input name="ID" type="hidden" value="<%=strID%>">
  102.         <input name="Name" type="hidden" value="<%=strName%>">
  103.         <input name="DocTempletID" type="hidden" value="<%=strDocTempletID%>">
  104.         <input name="DocTempletName" type="hidden" value="<%=strDocTempletName%>">
  105.         <input name="DocTempletTableName" type="hidden" value="<%=strDocTempletTableName%>">
  106.         <input name="MoveFlowID" type="hidden" value="<%=strMoveFlowID%>">
  107.         <input name="MoveFlowName" type="hidden" value="<%=strMoveFlowName%>">
  108.         <input name="UpdateUserID" type="hidden" value="<%=strUpdateUserID%>">
  109.         <input name="UpdateTimeFrom" type="hidden" value="<%=strUpdateTimeFrom%>">
  110.         <input name="UpdateTimeTo" type="hidden" value="<%=strUpdateTimeTo%>">
  111.         <input name="UpdateFromIP" type="hidden" value="<%=strUpdateFromIP%>">
  112.         <input name="ApproveUserID" type="hidden" value="<%=strApproveUserID%>">
  113.         <input name="IsUseful" type="hidden" value="<%=strIsUseful%>">
  114.         <input name="WritableUserIDs" type="hidden" value="<%=strWritableUserIDs%>">
  115.         <input name="WritableDepartIDs" type="hidden" value="<%=strWritableDepartIDs%>">
  116.         <input name="ReadOnlyUserIDs" type="hidden" value="<%=strReadOnlyUserIDs%>">
  117.         <input name="ReadOnlyDepartIDs" type="hidden" value="<%=strReadOnlyDepartIDs%>">
  118.         <input name="OrderBy" type="hidden" value="<%=strOrderBy%>">
  119.         <input name="IsDesc" type="hidden" value="<%=strIsDesc%>">
  120.         <input name="IsAutoBuild" type="hidden" value="<%=strIsAutoBuild%>">
  121.         <input name="strconfig" type="hidden" value="<%=strconfig%>">
  122.         <br><br>
  123.            <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  124.             <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  125.             <th width="2%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  126.             <th width="4%" nowrap><font color="#000000">序号</font></th>
  127.             <th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.Name');return false;">公文流转模板名称</a><%
  128.                if(strOrderBy.equalsIgnoreCase("a.Name"))
  129.                {
  130.                 if(strIsDesc.equalsIgnoreCase("True"))
  131.                 out.print("↓");
  132.                 else
  133.                 out.print("↑");
  134.                 }
  135.                %></font></th>
  136.             <th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('b.TempletName');return false;">来自公文模板</a><%
  137.               if(strOrderBy.equalsIgnoreCase("b.TempletName"))
  138.                {
  139.                 if(strIsDesc.equalsIgnoreCase("True"))
  140.                 out.print("↓");
  141.                 else
  142.                 out.print("↑");
  143.                 }
  144.                %></font></th>
  145.             <th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('c.FlowName');return false;">来自流转模板</a><%
  146.                if(strOrderBy.equalsIgnoreCase("c.FlowName"))
  147.                {
  148.                 if(strIsDesc.equalsIgnoreCase("True"))
  149.                 out.print("↓");
  150.                 else
  151.                 out.print("↑");
  152.                }
  153.               %></font></th>
  154.             <th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('e.Name');return false;">更新用户</a><%
  155.               if(strOrderBy.equalsIgnoreCase("e.Name"))
  156.                {
  157.                 if(strIsDesc.equalsIgnoreCase("True"))
  158.                 out.print("↓");
  159.                 else
  160.                 out.print("↑");
  161.                }
  162.               %></font></th>
  163.             <th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.UpdateTime');return false;">更新时间</a><%
  164.              if(strOrderBy.equalsIgnoreCase("a.UpdateTime"))
  165.                {
  166.                 if(strIsDesc.equalsIgnoreCase("True"))
  167.                 out.print("↓");
  168.                 else
  169.                 out.print("↑");
  170.                }
  171.               %></font></th>
  172.         <th width='7%' nowrap><font color='#000000'>审批</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,strconfig);
  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="right" 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" >" + ((Vector)vt.get(i)).get(17).toString() + "&nbsp;</td>");
  200.     out.println("<td align="center" valign="middle" >" + ((Vector)vt.get(i)).get(19).toString() + "&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="left" valign="middle" nowrap >" + StringNew.GetDateString(((Vector)vt.get(i)).get(6).toString(),"yyyy年MM月dd日") + "&nbsp;</td>");
  203.     if(((Vector)vt.get(i)).get(12).toString().equalsIgnoreCase("True"))
  204.     {
  205.       out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  206.       out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  207.       out.println("<td align="center" valign="middle" nowrap><a target="_blank" href="StopAction.jsp?SysDirID=" + iSysDirID + "&configID=" + iconfigID + "&ID=" + strID + "&DocTempletTableName=" + strDocTempletTableName +"">停用</a></td>");
  208.     }
  209.     else if ((((Vector)vt.get(i)).get(8).toString()==null)||((Vector)vt.get(i)).get(8).toString()=="")
  210.     {
  211.       out.println("<td align="center" valign="middle" nowrap><a target="_blank" href="ApproveAction.jsp?SysDirID=" + iSysDirID + "&configID=" + iconfigID + "&ID=" + strID + "&DocTempletTableName=" + strDocTempletTableName +"">审批</a></td>");
  212.       out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  213.       out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  214.     }
  215.     else
  216.     {
  217.       out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  218.       out.println("<td align="center" valign="middle" nowrap><a target="_blank" href="StartAction.jsp?SysDirID=" + iSysDirID + "&configID=" + iconfigID + "&ID=" + strID + "&DocTempletTableName=" + strDocTempletTableName +"">启用</a></td>");
  219.       out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  220.     }
  221.     out.println("</tr>");
  222.     }
  223.   %>
  224.             <tr>
  225.              <th align="center" valign="top" colspan="10">
  226.               <%
  227.               if(iPage<2)
  228.               out.print("首页&nbsp;&nbsp;上页");
  229.               else
  230.               out.print("<a href="" onclick="changepage(" + 1 + ");return false;">首页</a>&nbsp;&nbsp;<a href="" onclick="changepage(" + (iPage-1) + ");return false;">上页</a>");
  231.               out.print("&nbsp;&nbsp;当前是第" + iPage + "页,共" + vt.size() + "条记录" + iPageCount + "页&nbsp;&nbsp;");
  232.               if(iPage>=iPageCount)
  233.               out.print("下页&nbsp;&nbsp;末页");
  234.               else
  235.               out.print("<a href="" onclick="changepage(" + (iPage+1) + ");return false;">下页</a>&nbsp;&nbsp;<a href="" onclick="changepage(" + iPageCount + ");return false;">末页</a>");
  236.               %>
  237.              </th>
  238.             </tr>
  239.            </table>
  240.           </form>
  241.         </td>
  242.       </tr>
  243.     </table>
  244.   </body>
  245. </html>