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

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. Session m_session = new Session(session);
  5. String strCurrentPageURL = request.getRequestURI();
  6. Request m_request = new Request(request);
  7. int iPageSize = 18;
  8. int iPage = m_request.GetInt("Page");
  9. String strBuildUserName=m_request.GetString("BuildUserName");
  10. String strFlowName=m_request.GetString("FlowName");
  11. String strWritableUserIDs=m_request.GetString("WritableUserIDs");
  12. String strWritableDepartIDs=m_request.GetString("WritableDepartIDs");
  13. String strBuildTimeFrom=m_request.GetString("BuildTimeFrom");
  14. String strBuildTimeTo=m_request.GetString("BuildTimeTo");
  15. String strFlowContent=m_request.GetString("FlowContent");
  16. String strOrderBy=m_request.GetString("OrderBy");
  17. String strSort=m_request.GetString("Sort");
  18. boolean bIsDesc=false;
  19. if(strSort.equalsIgnoreCase("desc"))
  20.   bIsDesc=true;
  21. %>
  22. <html>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  25. <title>流转模板管理 -- GForce OA 2.0</title>
  26. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  27. <script language="JavaScript" src="/js/changestyle.js"></script>
  28. <script language="JavaScript">
  29. function changeorder(orderBy)
  30. {
  31.   with(document.moveflowtempletmanage)
  32.   {
  33.     if(OrderBy.value==orderBy)
  34.     {
  35.       if(Sort.value=="")
  36.         Sort.value="desc";
  37.       else
  38.         Sort.value="";
  39.     }
  40.     else
  41.     {
  42.       OrderBy.value=orderBy;
  43.       Sort.value="";
  44.       Page.value="1";
  45.     }
  46.   }
  47.   document.moveflowtempletmanage.submit();
  48. }
  49. function changepage(pageNum)
  50. {
  51.   with(document.moveflowtempletmanage)
  52.   {
  53.     Page.value=pageNum;
  54.   }
  55.   document.moveflowtempletmanage.submit();
  56. }
  57. </script>
  58. </head>
  59. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  60. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  61.     <tr>
  62.     <td align="center" valign="top">
  63.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  64.         <tr>
  65.           <td height="50" valign="top" background="../images/dy-back.gif">
  66.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  67.               <tr valign="middle">
  68.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  69.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">流转模板列表</font></strong></td>
  70.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  71.                    <!-- 群增<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;-->
  72.                  <a href="AddMoveFlowTemplet.jsp"><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>&nbsp;
  73.                   <!-- 修改<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;-->
  74.                   <!-- 删除<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;-->
  75.                   <!-- 查看<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;-->
  76.                   <!-- 组合查询<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;-->
  77.                 </td>
  78.               </tr>
  79.             </table>
  80.           </td>
  81.         </tr>
  82.       </table>
  83. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  84.     <tr>
  85.         <td align="center" valign="top"><p>&nbsp;</p>
  86.         <form name="moveflowtempletmanage" action="<%=strCurrentPageURL%>" method="post">
  87.         <input name="BuildUserName" type="hidden" value="<%=strBuildUserName%>">
  88.         <input name="FlowName" type="hidden" value="<%=strFlowName%>">
  89.         <input name="WritableUserIDs" type="hidden" value="<%=strWritableUserIDs%>">
  90.         <input name="WritableDepartIDs" type="hidden" value="<%=strWritableDepartIDs%>">
  91.         <input name="BuildTimeFrom" type="hidden" value="<%=strBuildTimeFrom%>">
  92.         <input name="BuildTimeTo" type="hidden" value="<%=strBuildTimeTo%>">
  93.         <input name="FlowContent" type="hidden" value="<%=strFlowContent%>">
  94.         <input name="OrderBy" type="hidden" value="<%=strOrderBy%>">
  95.         <input name="Sort" type="hidden" value="<%=strSort%>">
  96.         <input name="Page" type="hidden" value="<%=iPage%>">
  97.         <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  98.         <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  99.           <th width="3%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  100.           <th width="6%" nowrap><font color="#000000">序号</font></th>
  101.           <th width="40%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.FlowName');return false;">流转模板名称</a><%
  102.           if(strOrderBy.equalsIgnoreCase("a.FlowName"))
  103.           {
  104.             if(bIsDesc)
  105.               out.print("↓");
  106.             else
  107.               out.print("↑");
  108.           }
  109.           %></font></th>
  110.           <th width="20%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.BuildTime');return false;">建立时间</a><%
  111.           if(strOrderBy.equalsIgnoreCase("a.BuildTime"))
  112.           {
  113.             if(bIsDesc)
  114.               out.print("↓");
  115.             else
  116.               out.print("↑");
  117.           }
  118.           %></font></th>
  119.           <th width="10%" nowrap><font color="#000000"><a href="" onclick="changeorder('c.Name');return false;">建立用户</a><%
  120.           if(strOrderBy.equalsIgnoreCase("c.Name"))
  121.           {
  122.             if(bIsDesc)
  123.               out.print("↓");
  124.             else
  125.               out.print("↑");
  126.           }
  127.           %></font></th>
  128.           <th width="10%" nowrap><font color="#000000">流转环节管理</font></th>
  129.           <th width="6%" nowrap><font color="#000000">修改</font></th>
  130.           <th width="6%" nowrap><font color="#000000">删除</font></th>
  131.         </tr>
  132. <%
  133. Vector vt = MoveFlowTempletManager.getRecordBySearch(strBuildUserName, strFlowName, strWritableUserIDs, strWritableDepartIDs, strBuildTimeFrom, strBuildTimeTo,strFlowContent,strOrderBy, bIsDesc);
  134. if(iPage<1) iPage=1;
  135. int iPageCount = StringNew.getPageCount(vt.size(),iPageSize);
  136. if(iPage>iPageCount) iPage=1;
  137. for(int i=(iPage-1) * iPageSize; i<vt.size()&&i<iPage * iPageSize;i++)
  138. {
  139.     String strID = ((Vector)vt.get(i)).get(0).toString();
  140.     if(i % 2 == 0)
  141.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  142.     else
  143.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  144.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  145.     out.println("<td align="Center" valign="middle">" + (i+1) + "</td>");
  146.     out.println("<td align="left" valign="middle" nowrap title="" + ((Vector)vt.get(i)).get(6).toString() + ""><a href="ShowMoveFlowTemplet.jsp?ID=" + strID + "" target="_blank">" + ((Vector)vt.get(i)).get(1).toString() + "</a>&nbsp;</td>");
  147.     out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt.get(i)).get(4).toString(),"yyyy年MM月dd日 HH时mm分") + "&nbsp;</td>");
  148.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(5).toString() + "&nbsp;</td>");
  149.     out.println("<td align="center" valign="middle" nowrap><a href="FlowTacheInfoManage.jsp?ID=" + strID + ""> 环节管理</a></td>");
  150.     out.println("<td align="center" valign="middle" nowrap><a href="EditMoveFlowTemplet.jsp?ID=" + strID + "">修改</a></td>");
  151.     out.println("<td align="center" valign="middle" nowrap><a href="DelMoveFlowTemplet.jsp?ID=" + strID + "" onclick="return confirm('您确实要删除该流转模板吗?');">删除</a></td>");
  152.     out.println("</tr>");
  153. }
  154. %>
  155.         <tr>
  156.           <th align="center" valign="top" colspan="8">
  157. <%
  158. if(iPage<2)
  159. out.print("首页&nbsp;&nbsp;上页");
  160. else
  161. out.print("<a href="" onclick="changepage(" + 1 + ");return false;">首页</a>&nbsp;&nbsp;<a href="" onclick="changepage(" + (iPage-1) + ");return false;">上页</a>");
  162. out.print("&nbsp;&nbsp;当前是第" + iPage + "页,共" + vt.size() + "条记录" + iPageCount + "页&nbsp;&nbsp;");
  163. if(iPage>=iPageCount)
  164. out.print("下页&nbsp;&nbsp;末页");
  165. else
  166. out.print("<a href="" onclick="changepage(" + (iPage+1) + ");return false;">下页</a>&nbsp;&nbsp;<a href="" onclick="changepage(" + iPageCount + ");return false;">末页</a>");
  167. %>
  168. </th>
  169.         </tr>
  170.       </table>
  171.       </form>
  172.      </td>
  173.     </tr>
  174. </table>
  175. </body>
  176. </html>