FlowTacheInfoManage.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:14k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>流程环节信息管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <%
- Request m_request = new Request(request);
- String strCurrentPageURL = request.getRequestURI();
- int iMoveFlowID = m_request.GetInt("ID");
- int iPageSize = 18;
- int iPage = m_request.GetInt("Page");
- String startmark = "F";
- String strID = m_request.GetString("TacheID");
- String strTacheName = m_request.GetString("TacheName");
- String strFromTacheID = m_request.GetString("FromTacheID");
- String strTacheStatus = m_request.GetString("TacheStatus");
- String strTacheDescription = m_request.GetString("TacheDescription");
- String strApproveUserIDs = m_request.GetString("ApproveUserIDs");
- String strTacheType = m_request.GetString("TacheType");
- String strFlowID = m_request.GetString("FlowID");
- String strFlowName = m_request.GetString("FlowName");
- String strUpdateUserID = m_request.GetString("UpdateUserID");
- String strUpdateFromIP = m_request.GetString("UpdateFromIP");
- String strIsRecordRead = m_request.GetString("IsRecordRead");
- String strRemindInterval = m_request.GetString("RemindInterval");
- String strMaxWaitTime = m_request.GetString("MaxWaitTime");
- String strIsFromDefault = m_request.GetString("IsFromDefault");
- String strIsFinishedByRead = m_request.GetString("IsFinishedByRead");
- String strOrderBy = m_request.GetString("OrderBy");
- String strIsDesc = m_request.GetString("IsDesc");
- Vector vtt = MoveFlowTempletManager.getRecordByID(iMoveFlowID);
- %>
- <script language="JavaScript">
- function changeorder(orderBy)
- {
- with(document.FlowTacheInfoManage)
- {
- if(OrderBy.value==orderBy)
- {
- if(IsDesc.value=="")
- IsDesc.value="True";
- else
- IsDesc.value="";
- }
- else
- {
- IsDesc.value="";
- OrderBy.value=orderBy;
- Page.value="1";
- }
- }
- document.FlowTacheInfoManage.submit();
- }
- function changepage(pageNum)
- {
- with(document.FlowTacheInfoManage)
- {
- Page.value=pageNum;
- }
- document.FlowTacheInfoManage.submit();
- }
- </script>
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form name="FlowTacheInfoManage" action="<%=strCurrentPageURL + "?ID=" + iMoveFlowID%>" method="post">
- <input name="TacheID" type="hidden" value="<%=strID%>">
- <input name="TacheName" type="hidden" value="<%=strTacheName%>">
- <input name="FromTacheID" type="hidden" value="<%=strFromTacheID%>">
- <input name="TacheStatus" type="hidden" value="<%=strTacheStatus%>">
- <input name="TacheDescription" type="hidden" value="<%=strTacheDescription%>">
- <input name="ApproveUserIDs" type="hidden" value="<%=strApproveUserIDs%>">
- <input name="TacheType" type="hidden" value="<%=strTacheType%>">
- <input name="FlowID" type="hidden" value="<%=strFlowID%>">
- <input name="FlowName" type="hidden" value="<%=strFlowName%>">
- <input name="UpdateUserID" type="hidden" value="<%=strUpdateUserID%>">
- <input name="UpdateFromIP" type="hidden" value="<%=strUpdateFromIP%>">
- <input name="IsRecordRead" type="hidden" value="<%=strIsRecordRead%>">
- <input name="RemindInterval" type="hidden" value="<%=strRemindInterval%>">
- <input name="MaxWaitTime" type="hidden" value="<%=strMaxWaitTime%>">
- <input name="IsFromDefault" type="hidden" value="<%=strIsFromDefault%>">
- <input name="IsFinishedByRead" type="hidden" value="<%=strIsFinishedByRead%>">
- <input name="OrderBy" type="hidden" value="<%=strOrderBy%>">
- <input name="IsDesc" type="hidden" value="<%=strIsDesc%>">
- <input name="Page" type="hidden" value="<%=iPage%>">
- <table width="90%" border="0" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a">
- <tr align="center" valign="middle" >
- <th width="100%" nowrap align="center" valign="middle"><font color="#000000">《<%=((Vector)vtt.get(0)).get(1).toString()%>》环节管理</font></th>
- </tr>
- <tr align="right" valign="bottom">
- <th width="100%" nowrap align="right" valign="middle"><font color="#000000" > </font> </th>
- </tr>
- </table>
- <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
- <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
- <th width="2%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
- <th width="4%" nowrap><font color="#000000">序号</font></th>
- <th width="12%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.TacheName');return false;">环节名称</a><%
- if(strOrderBy.equalsIgnoreCase("a.TacheName"))
- {
- if(strIsDesc.equalsIgnoreCase("True"))
- out.print("↓");
- else
- out.print("↑");
- }
- %></font></th>
- <th width="12%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.FromTacheID');return false;">上级环节名称</a><%
- if(strOrderBy.equalsIgnoreCase("a.FromTacheID"))
- {
- if(strIsDesc.equalsIgnoreCase("True"))
- out.print("↓");
- else
- out.print("↑");
- }
- %></font></th>
- <th width="6%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.TacheStatus');return false;">环节状态</a><%
- if(strOrderBy.equalsIgnoreCase("a.TacheStatus"))
- {
- if(strIsDesc.equalsIgnoreCase("True"))
- out.print("↓");
- else
- out.print("↑");
- }
- %></font></th>
- <th width="8%" nowrap><font color="#000000"><a href="" onclick="changeorder('d.Name');return false;">更新用户</a><%
- if(strOrderBy.equalsIgnoreCase("d.Name"))
- {
- if(strIsDesc.equalsIgnoreCase("True"))
- out.print("↓");
- else
- out.print("↑");
- }
- %></font></th>
- <th width="8%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.UpdateTime');return false;">更新时间</a><%
- if(strOrderBy.equalsIgnoreCase("a.UpdateTime"))
- {
- if(strIsDesc.equalsIgnoreCase("True"))
- out.print("↓");
- else
- out.print("↑");
- }
- %></font></th>
- <th width="7%" nowrap><font color="#000000">修改</font></th>
- <th width="7%" nowrap><font color="#000000">删除</font></th>
- </tr>
- <%
- strFlowID = iMoveFlowID+"";
- Vector vt = FlowTacheInfoManager.getRecordBySearch(strID,strTacheName,strFromTacheID,strTacheStatus,strTacheDescription,strApproveUserIDs,strTacheType,strFlowID,strFlowName,strUpdateUserID,strUpdateFromIP,strIsRecordRead,strRemindInterval,strMaxWaitTime,strIsFromDefault,strIsFinishedByRead,strOrderBy,strIsDesc);
- if(iPage<1)iPage=1;
- int iPageCount = StringNew.getPageCount(vt.size(),iPageSize);
- if(iPage>iPageCount) iPage=1;
- for(int i=(iPage-1)*iPageSize;i<vt.size()&&i<iPage*iPageSize;i++)
- {
- strID = ((Vector)vt.get(i)).get(0).toString();
- String strUName;
- if(((Vector)vt.get(i)).get(2).toString().trim().length()>0)
- {
- Vector vvt = FlowTacheInfoManager.getRecordBySearch(((Vector)vt.get(i)).get(2).toString());
- if (vvt.size() == 1)
- {
- strUName= ((Vector)vvt.get(0)).get(1).toString();
- }
- else
- {
- strUName = "<font color='red'>上级环节设置有问题</font>";
- }
- }
- else
- {
- strUName = "无";
- }
- String strstatus;
- if (((Vector)vt.get(i)).get(3).toString().equalsIgnoreCase("S")){strstatus="起始环节";startmark="T";}
- else if (((Vector)vt.get(i)).get(3).toString().equalsIgnoreCase("E"))strstatus="结束环节";
- else strstatus="中间环节";
- String struptime,struptimeE;
- if ((((Vector)vt.get(i)).get(9).toString()).length()>0){struptime=((Vector)vt.get(i)).get(9).toString();struptimeE=StringNew.GetDateString(struptime,"yyyy年MM月dd日 HH时mm分");}
- else {struptime="YYYY年MM月DD日 HH时mm分";struptimeE = struptime;}
- if(i % 2 == 0)
- out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
- else
- out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
- out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
- out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
- out.println("<td align="left" valign="middle" nowrap title="" + ((Vector)vt.get(i)).get(4).toString() + "" >" + ((Vector)vt.get(i)).get(1).toString() + " </td>");
- out.println("<td align="left" valign="middle" nowrap >" + strUName + " </td>");
- out.println("<td align="left" valign="middle" nowrap >" + strstatus + " </td>");
- out.println("<td align="center" valign="middle" nowrap >" + ((Vector)vt.get(i)).get(17).toString() + " </td>");
- out.println("<td align="center" valign="middle" nowrap>" + struptimeE + " </td>");
- out.println("<td align="center" valign="middle" nowrap><a href="EditFlowTacheInfo.jsp?MoveFlowID=" + iMoveFlowID + "&ID=" + strID + "&mark=" + startmark +"">修改</a></td>");
- out.println("<td align="center" valign="middle" nowrap><a href="DelFlowTacheInfo.jsp?MoveFlowID=" + iMoveFlowID + "&ID=" + strID + "" onclick="return confirm('您确实要删除该环节吗?');">删除</a></td>");
- out.println("</tr>");
- }
- %>
- <tr>
- <th align="center" valign="top" colspan="7">
- <%
- if(iPage<2)
- out.print("首页 上页");
- else
- out.print("<a href="" onclick="changepage(" + 1 + ");return false;">首页</a> <a href="" onclick="changepage(" + (iPage-1) + ");return false;">上页</a>");
- out.print(" 当前是第" + iPage + "页,共" + vt.size() + "条记录" + iPageCount + "页 ");
- if(iPage>=iPageCount)
- out.print("下页 末页");
- else
- out.print("<a href="" onclick="changepage(" + (iPage+1) + ");return false;">下页</a> <a href="" onclick="changepage(" + iPageCount + ");return false;">末页</a>");
- %>
- </th>
- <th colspan="3">
- <a href="AddFlowTacheInfo.jsp?MoveFlowID=<%=iMoveFlowID%>&mark=<%=startmark%>">新增环节</a>
- </th>
- </tr>
- </table>
- <table width="90%" border="0">
- <tr>
- <td>
- </td>
- </tr>
- <tr>
- <td width="90%">
- </td>
- <td nowrap="nowrap" align="right" valign="middle" style=""><a href="MoveFlowTempletManage.jsp"><font color="<%=m_session.GetString("TitleColor")%>"><strong>返回流转模版管理 </strong></font></a>
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>