RoadFlow2.1 临时演示

InstanceManage.aspx 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InstanceManage.aspx.cs" Inherits="WebForm.Platform.WorkFlowTasks.InstanceManage" %>
  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. <%
  10. RoadFlow.Platform.WorkFlowTask bworkFlowTask = new RoadFlow.Platform.WorkFlowTask();
  11. RoadFlow.Platform.WorkFlow bworkFlow = new RoadFlow.Platform.WorkFlow();
  12. string flowid = Request.QueryString["flowid1"];
  13. string groupid = Request.QueryString["groupid"];
  14. var wfInstall = bworkFlow.GetWorkFlowRunModel(flowid);
  15. var tasks = bworkFlowTask.GetTaskList(flowid.ToGuid(), groupid.ToGuid()).OrderBy(p => p.Sort);
  16. %>
  17. <table cellpadding="0" cellspacing="1" border="0" class="listtable" style="width:99%; margin-top:8px;">
  18. <thead>
  19. <tr>
  20. <th>步骤名称</th>
  21. <th>发送人</th>
  22. <th>接收时间</th>
  23. <th>处理人</th>
  24. <th>完成时间</th>
  25. <th>状态</th>
  26. <th>意见</th>
  27. <th></th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <%foreach (var task in tasks){ %>
  32. <tr>
  33. <td><%=bworkFlow.GetStepName(task.StepID, wfInstall) %></td>
  34. <td><%=task.SenderName %></td>
  35. <td><%=task.ReceiveTime.ToDateTimeStringS() %></td>
  36. <td><%=task.ReceiveName %></td>
  37. <td><%=task.CompletedTime1.HasValue?task.CompletedTime1.Value.ToDateTimeStringS():"" %></td>
  38. <td><%=bworkFlowTask.GetStatusTitle(task.Status) %></td>
  39. <td><%=task.Comment %></td>
  40. <td>
  41. <%if (task.Status.In(0,1)){ %>
  42. <a style="background:url(<%=WebForm.Common.Tools.BaseUrl%>/Images/ico/arrow_medium_lower_left.png) no-repeat left center; padding-left:16px;" href="javascript:void(0);" onclick="designate('<%=task.ID %>');">指派</a>
  43. <%}%>
  44. </td>
  45. </tr>
  46. <%}%>
  47. </tbody>
  48. </table>
  49. <script type="text/javascript">
  50. var iframeid = '<%=Request.QueryString["iframeid"]%>';
  51. function back(taskid)
  52. {
  53. if (confirm("您真的要将该任务退回吗?"))
  54. {
  55. $.ajax({
  56. url: top.rootdir + "/Platform/WorkFlowTasks/Back.ashx?taskid=" + taskid, async: false, cache: false, success: function (txt)
  57. {
  58. alert(txt);
  59. window.location = window.location;
  60. }
  61. });
  62. }
  63. }
  64. function designate(taskid)
  65. {
  66. new RoadUI.Window().open({
  67. url: top.rootdir + '/Platform/WorkFlowTasks/Designate.aspx?taskid=' + taskid,
  68. width: 500, height: 200, title: "任务指派", openerid: iframeid
  69. });
  70. }
  71. </script>
  72. </body>
  73. </html>