RoadFlow2.1 临时演示

Open_List.aspx 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Open_List.aspx.cs" Inherits="WebForm.Platform.WorkFlowDesigner.Open_List" %>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title></title>
  7. </head>
  8. <body>
  9. <form id="form1" runat="server">
  10. <table cellpadding="0" cellspacing="1" border="0" width="99%" align="center">
  11. <tr>
  12. <td align="left" height="35">
  13. 名称:<input type="text" class="mytext" style="width:160px;" id="flow_name" runat="server" name="flow_name" />
  14. <input type="submit" class="mybutton" value=" 查询 "/>
  15. </td>
  16. </tr>
  17. </table>
  18. <table class="listtable">
  19. <thead>
  20. <tr>
  21. <th width="40%">流程名称</th>
  22. <th width="22%">创建时间</th>
  23. <th width="12%">创建人</th>
  24. <th width="11%">状态</th>
  25. <th width="10%" sort="0"></th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <%
  30. foreach (var flow in flows.OrderBy(p => p.Name))
  31. {
  32. if (!borg.GetAllUsers(flow.Manager).Exists(p => p.ID == RoadFlow.Platform.Users.CurrentUserID))
  33. {
  34. continue;
  35. }
  36. if (type.IsGuid() && !bwf.GetAllChildsIDString(type.ToGuid()).Contains(flow.Type.ToString(), StringComparison.CurrentCultureIgnoreCase))
  37. {
  38. continue;
  39. }
  40. %>
  41. <tr>
  42. <td><%=flow.Name %></td>
  43. <td><%=flow.CreateDate.ToDateTimeStringS() %></td>
  44. <td><%=busers.GetName(flow.CreateUserID) %></td>
  45. <td><%=bwf.GetStatusTitle(flow.Status) %></td>
  46. <td>
  47. <a href="javascript:void(0);" onclick="openflow('<%=flow.ID %>');return false;">
  48. <img src="../../Images/ico/folder_classic_opened.png" alt="" style="vertical-align:middle; border:0;" />
  49. <span style="vertical-align:middle;">打开</span>
  50. </a>
  51. </td>
  52. </tr>
  53. <%}%>
  54. </tbody>
  55. </table>
  56. </form>
  57. <script type="text/javascript">
  58. var frame = null;
  59. var openerid = '<%=Request.QueryString["openerid"]%>';
  60. $(window).load(function ()
  61. {
  62. //var dataGrid = new RoadUI.Grid({ table: $(".mygrid"), showpager: false, height: 350 });
  63. var iframes = top.frames;
  64. for (var i = 0; i < iframes.length; i++)
  65. {
  66. if (iframes[i].name == openerid + "_iframe")
  67. {
  68. frame = iframes[i]; break;
  69. }
  70. }
  71. if (frame == null) return;
  72. });
  73. function typechange(type)
  74. {
  75. }
  76. function openflow(id)
  77. {
  78. frame.openFlow1(id);
  79. new RoadUI.Window().close();
  80. }
  81. </script>
  82. </body>
  83. </html>