RoadFlow2.1 临时演示

ShowComment.aspx 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowComment.aspx.cs" Inherits="WebForm.Platform.WorkFlowRun.ShowComment" %>
  2. <%
  3. string groupid=Request.QueryString["groupid"];
  4. string stepid = Request.QueryString["stepid"];
  5. string flowid = Request.QueryString["flowid"];
  6. RoadFlow.Platform.WorkFlowTask bwfTask = new RoadFlow.Platform.WorkFlowTask();
  7. RoadFlow.Platform.WorkFlow bwf = new RoadFlow.Platform.WorkFlow();
  8. var taskList = bwfTask.GetTaskList(flowid.ToGuid(), groupid.ToGuid()).Where(p => !p.Comment.IsNullOrEmpty() && p.CompletedTime1.HasValue).OrderBy(p => p.Sort);
  9. %>
  10. <style type="text/css">
  11. .commenttable { margin:12px auto 0 auto; width:96%; background:#ededee; }
  12. .commenttable tr th { text-align:left; height:25px; background:#ffffff; font-weight:normal;}
  13. .commenttable tr td { height:28px; background:#ffffff;}
  14. </style>
  15. <%
  16. foreach (var task in taskList)
  17. {
  18. string signSrc=string.Empty;
  19. if (task.IsSign.HasValue && task.IsSign == 1)
  20. {
  21. signSrc = string.Concat("../../Files/UserSigns/", task.ReceiveID, ".gif");
  22. }
  23. %>
  24. <table cellpadding="0" cellspacing="1" border="0" class="commenttable">
  25. <tr>
  26. <th style="width:30%;">&nbsp;步骤:<%=bwf.GetStepName(task.StepID, task.FlowID) %></th>
  27. <th style="width:20%;">&nbsp;处理人:<%=task.ReceiveName %></th>
  28. <th style="width:25%;">&nbsp;收件时间:<%=task.ReceiveTime.ToDateTimeStringS() %></th>
  29. <th style="width:25%;">&nbsp;完成时间:<%=task.CompletedTime1.HasValue?task.CompletedTime1.Value.ToDateTimeStringS():"" %></th>
  30. </tr>
  31. <tr>
  32. <td colspan="4" style="">
  33. <div style="float:left; height:26px; padding:9px 0 0 6px; ">
  34. 处理意见:<%=task.Comment %>
  35. </div>
  36. <div style="float:left; height:26px; width:77px; margin:5px 20px 0 20px; background:url(<%=signSrc%>) no-repeat left center;">&nbsp;</div>
  37. </td>
  38. </tr>
  39. </table>
  40. <%} %>