RoadFlow2.1 临时演示

WaitList.aspx 3.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WaitList.aspx.cs" Inherits="WebForm.Platform.WorkFlowTasks.WaitList" %>
  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. <div class="querybar">
  11. <table cellpadding="0" cellspacing="1" border="0" width="100%">
  12. <tr>
  13. <td>
  14. 名称:<input type="text" class="mytext" id="Title1" name="Title1" runat="server" />
  15. 所属流程:<select class="mycombox" style="width:150px;" width1="166" more="1" id="FlowID" name="FlowID"><asp:Literal ID="flowOptions" runat="server"></asp:Literal></select>
  16. 发送人:<input type="text" class="mymember" id="SenderID" unit="0" dept="0" station="0" user="1" group="0" more="0" name="SenderID" runat="server"/>
  17. 接收时间:<input type="text" class="mycalendar" style="width:90px;" runat="server" id="Date1" name="Date1" /> 至 <input type="text" runat="server" style="width:90px;" class="mycalendar" id="Date2" name="Date2" />
  18. <input type="submit" name="Search" value="&nbsp;&nbsp;查&nbsp;询&nbsp;&nbsp;" class="mybutton" />
  19. </td>
  20. </tr>
  21. </table>
  22. </div>
  23. <table class="listtable">
  24. <thead>
  25. <tr>
  26. <th width="33%">任务标题</th>
  27. <th width="10%">流程</th>
  28. <th width="10%">步骤</th>
  29. <th width="8%">发送人</th>
  30. <th width="13%">接收时间</th>
  31. <th width="8%"">状态</th>
  32. <th width="10%">备注</th>
  33. <th width="8%" sort="0"></th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. <%foreach (var task in taskList)
  38. {
  39. string flowName;
  40. string stepName = bworkFlow.GetStepName(task.StepID, task.FlowID, out flowName);
  41. string query1 = string.Format("flowid={0}&stepid={1}&instanceid={2}&taskid={3}&groupid={4}&appid={5}",
  42. task.FlowID, task.StepID, task.InstanceID, task.ID, task.GroupID, Request.QueryString["appid"]
  43. );
  44. %>
  45. <tr>
  46. <td><a href="javascript:void(0);" onclick="openTask('<%=WebForm.Common.Tools.BaseUrl %>/Platform/WorkFlowRun/Default.aspx?<%=query1 %>','<%=task.Title %>','<%=task.ID %>');return false;" class="blue"><%=task.Title %></a></td>
  47. <td><%=flowName %></td>
  48. <td><%=stepName %></td>
  49. <td><%=task.SenderName %></td>
  50. <td><%=task.ReceiveTime.ToString().ToDateTimeStringS() %></td>
  51. <td><%=bworkFlowTask.GetStatusTitle(task.Status) %></td>
  52. <td><%=task.Note %></td>
  53. <td><a class="viewlink" href="javascript:void(0);" onclick="detail('<%=task.FlowID %>','<%=task.GroupID %>','<%=task.ID %>');">查看</a></td>
  54. </tr>
  55. <%}%>
  56. </tbody>
  57. </table>
  58. <div class="buttondiv"><asp:Literal ID="Pager" runat="server"></asp:Literal></div>
  59. </form>
  60. <script type="text/javascript">
  61. function openTask(url, title, id)
  62. {
  63. top.openApp(url, 0, title, "tab_" + id, 0, 0, false);
  64. }
  65. function detail(flowid, groupid, taskid)
  66. {
  67. top.mainDialog.open({
  68. url: top.rootdir + '/Platform/WorkFlowTasks/Detail.aspx?flowid1=' + flowid + "&groupid=" + groupid + "&taskid=" + taskid + '<%=query%>',
  69. width: 1024, height: 550, title: "查看流程处理过程"
  70. });
  71. }
  72. </script>
  73. </body>
  74. </html>