XXXXflow_history.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import="java.util.*"%>
  3. <%@ page import="cn.js.fan.util.*"%>
  4. <%@ page import="cn.js.fan.db.*"%>
  5. <%@ page import="com.redmoon.oa.flow.*"%>
  6. <%@ page import="com.redmoon.oa.person.*"%>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  8. <html>
  9. <head>
  10. <title>流程处理记录</title>
  11. <link href="../admin/default.css" rel="stylesheet" type="text/css">
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  13. <style type="text/css">
  14. <!--
  15. .style4 {
  16. color: #FFFFFF;
  17. font-weight: bold;
  18. }
  19. -->
  20. </style>
  21. </head>
  22. <body bgcolor="#FFFFFF" text="#000000">
  23. <jsp:useBean id="docmanager" scope="page" class="cn.js.fan.module.cms.DocumentMgr"/>
  24. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  25. <%
  26. String priv="read";
  27. if (!privilege.isUserPrivValid(request,priv))
  28. {
  29. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  30. return;
  31. }
  32. String myname = privilege.getUser(request);
  33. long flowId = ParamUtil.getLong(request, "flowId");
  34. String sql = "select id from flow_my_action where flow_id=" + flowId + " order by receive_date asc";
  35. %>
  36. <table cellSpacing="0" cellPadding="0" width="100%">
  37.   <tbody>
  38.     <tr>
  39.       <td class="head">流程处理记录&nbsp;</td>
  40.     </tr>
  41.   </tbody>
  42. </table>
  43. <%
  44. MyActionDb mad = new MyActionDb();
  45. Vector v = mad.list(sql);
  46. %>
  47. <br>
  48. <br>
  49. <table style="BORDER-RIGHT: #a6a398 1px solid; BORDER-TOP: #a6a398 1px solid; BORDER-LEFT: #a6a398 1px solid; BORDER-BOTTOM: #a6a398 1px solid" cellSpacing="0" cellPadding="3" width="99%" align="center">
  50.   <tbody>
  51.     <tr>
  52.       <td class="thead" style="PADDING-LEFT: 10px" noWrap width="8%">编号</td>
  53.       <td class="thead" style="PADDING-LEFT: 10px" noWrap>标题</td>
  54.       <td class="thead" noWrap width="11%"><img src="../admin/images/tl.gif" align="absMiddle" width="10" height="15">类型</td>
  55.       <td class="thead" noWrap width="14%"><img src="../admin/images/tl.gif" align="absMiddle" width="10" height="15">到达时间</td>
  56.       <td class="thead" noWrap width="15%"><img src="../admin/images/tl.gif" align="absMiddle" width="10" height="15">处理时间</td>
  57.       <td class="thead" noWrap width="9%"><img src="../admin/images/tl.gif" align="absMiddle" width="10" height="15">发起人</td>
  58.       <td class="thead" noWrap width="9%"><img src="../admin/images/tl.gif" align="absMiddle" width="10" height="15">状态</td>
  59.       <td class="thead" noWrap width="8%"><img src="../admin/images/tl.gif" align="absMiddle" width="10" height="15">操作</td>
  60.     </tr>
  61.     <%
  62. java.util.Iterator ir = v.iterator();
  63. com.redmoon.oa.person.UserMgr um = new com.redmoon.oa.person.UserMgr();
  64. Directory dir = new Directory();
  65. while (ir.hasNext()) {
  66.   mad = (MyActionDb)ir.next();
  67. WorkflowDb wfd = new WorkflowDb();
  68. wfd = wfd.getWorkflowDb((int)mad.getFlowId());
  69. String userName = wfd.getUserName();
  70. String userRealName = "";
  71. if (userName!=null) {
  72. UserDb user = um.getUserDb(wfd.getUserName());
  73. userRealName = user.getRealName();
  74. }
  75. %>
  76.     <tr class="row" style="BACKGROUND-COLOR: #ffffff">
  77.       <td style="PADDING-LEFT: 10px">
  78.       <img src="../admin/images/arrow.gif" align="absmiddle">&nbsp;<%=wfd.getId()%></td>
  79.       <td style="PADDING-LEFT: 10px">&nbsp;&nbsp;<%=StrUtil.getLeft(wfd.getTitle(), 28)%></td>
  80.       <td>
  81.   <%
  82.   Leaf ft = dir.getLeaf(wfd.getTypeCode());
  83.   if (ft!=null)
  84.    out.print(ft.getName());
  85.   %>   </td>
  86.       <td><%=DateUtil.format(mad.getReceiveDate(), "yy-MM-dd HH:mm:ss")%> </td>
  87.       <td><%=DateUtil.format(mad.getCheckDate(), "yy-MM-dd HH:mm:ss")%> </td>
  88.       <td><%=userRealName%></td>
  89.       <td><%=mad.isChecked()?"已处理":"未处理"%>   </td>
  90.       <td><a href="../flow_modify.jsp?flowId=<%=wfd.getId()%>&actionId=<%=mad.getActionId()%>">查看</a></td>
  91.     </tr>
  92.     <%}%>
  93.   </tbody>
  94. </table>
  95. <table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
  96.   <tr>
  97.     <td align="right">&nbsp;</td>
  98.   </tr>
  99.   <tr>
  100.     <td align="right">&nbsp;</td>
  101.   </tr>
  102. </table>
  103. </body>
  104. </html>