RoadFlow2.1 临时演示

Default.aspx 4.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebForm.Platform.WorkFlowDelegation.Default" %>
  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="mymember" style="width:150px;" id="S_UserID" name="S_UserID" runat="server" />
  15. 开始时间:<input type="text" class="mycalendar" style="width:100px;" id="S_StartTime" name="S_StartTime" runat="server" />
  16. 结束时间:<input type="text" class="mycalendar" style="width:100px;" id="S_EndTime" name="S_EndTime" runat="server" />
  17. <input type="submit" name="Search" value="&nbsp;&nbsp;查&nbsp;询&nbsp;&nbsp;" class="mybutton" />
  18. <input type="button" onclick="add(); return false;" value="添加委托" class="mybutton" />
  19. <input type="submit" onclick="return del();" name="DeleteBut" value="删除所选" class="mybutton" />
  20. </td>
  21. </tr>
  22. </table>
  23. </div>
  24. <table class="listtable">
  25. <thead>
  26. <tr>
  27. <th width="30" sort="0"><input type="checkbox" onclick="checkAll(this.checked);" style="vertical-align:middle;" /></th>
  28. <th>委托人</th>
  29. <th>被委托人</th>
  30. <th>委托流程</th>
  31. <th>开始时间</th>
  32. <th>结束时间</th>
  33. <th>备注说明</th>
  34. <th>状态</th>
  35. <th sort="0">编辑</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. <% foreach (var deletation in workFlowDelegationList.OrderByDescending(p => p.WriteTime)){%>
  40. <tr>
  41. <td><input type="checkbox" value="<%=deletation.ID %>" name="checkbox_app" /></td>
  42. <td><%=busers.GetName(deletation.UserID) %></td>
  43. <td><%=busers.GetName(deletation.ToUserID) %></td>
  44. <td><%=deletation.FlowID.HasValue && !deletation.FlowID.Value.IsEmptyGuid()? bworkFlow.GetFlowName(deletation.FlowID.Value):"所有流程" %></td>
  45. <td><%=deletation.StartTime.ToDateTimeStringS() %></td>
  46. <td><%=deletation.EndTime.ToDateTimeStringS() %></td>
  47. <td><%=deletation.Note %></td>
  48. <td><%=deletation.EndTime>=RoadFlow.Utility.DateTimeNew.Now?"委托中":"已失效" %></td>
  49. <td><a class="editlink" href="javascript:edit('<%=deletation.ID %>');">编辑</a></td>
  50. </tr>
  51. <%} %>
  52. </tbody>
  53. </table>
  54. <div class="buttondiv"><asp:Literal ID="Pager" runat="server"></asp:Literal></div>
  55. </form>
  56. <script type="text/javascript">
  57. var appid = '<%=Request.QueryString["appid"]%>';
  58. var iframeid = '<%=Request.QueryString["tabid"]%>';
  59. var dialog = top.mainDialog;
  60. function add()
  61. {
  62. dialog.open({ id: "window_" + appid.replaceAll('-', ''), title: "添加委托", width: 700, height: 360, url: top.rootdir + '/Platform/WorkFlowDelegation/Edit.aspx?1=1' + '<%=Query1%>', openerid: iframeid });
  63. }
  64. function edit(id)
  65. {
  66. dialog.open({ id: "window_" + appid.replaceAll('-', ''), title: "编辑委托", width: 700, height: 360, url: top.rootdir + '/Platform/WorkFlowDelegation/Edit.aspx?id=' + id + '<%=Query1%>', openerid: iframeid });
  67. }
  68. function checkAll(checked)
  69. {
  70. $("input[name='checkbox_app']").prop("checked", checked);
  71. }
  72. function del()
  73. {
  74. if ($(":checked[name='checkbox_app']").size() == 0)
  75. {
  76. alert("您没有选择要删除的项!");
  77. return false;
  78. }
  79. return confirm('您真的要删除所选委托吗?');
  80. }
  81. </script>
  82. </body>
  83. </html>