RoadFlow2.1 临时演示

Default.aspx 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebForm.Platform.WorkFlowButtons.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="mytext" style="width:190px;" id="Name" name="Name" runat="server" />
  15. <input type="submit" name="Search" value="&nbsp;&nbsp;查&nbsp;询&nbsp;&nbsp;" class="mybutton" />
  16. <input type="button" onclick="add(); return false;" value="添加按钮" class="mybutton" />
  17. <input type="submit" onclick="return del();" name="DeleteBut" value="删除所选" class="mybutton" />
  18. </td>
  19. </tr>
  20. </table>
  21. </div>
  22. <table class="listtable">
  23. <thead>
  24. <tr>
  25. <th sort="0" width="30"><input type="checkbox" onclick="checkAll(this.checked);" style="vertical-align:middle;" /></th>
  26. <th>按钮名称</th>
  27. <th>按钮图标</th>
  28. <th>按钮说明</th>
  29. <th sort="0">操作</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <%
  34. foreach (var button in workFlowButtonsList.OrderBy(p => p.Title))
  35. {%>
  36. <tr>
  37. <td><input type="checkbox" value="<%=button.ID %>" name="checkbox_app" style="vertical-align:middle;" /></td>
  38. <td><%=button.Title %></td>
  39. <td align="center"><%=!button.Ico.IsNullOrEmpty()?"<img src='"+WebForm.Common.Tools.BaseUrl+ button.Ico+"' alt='' />":""%></td>
  40. <td><%=button.Note %></td>
  41. <td>
  42. <a class="editlink" href="javascript:edit('<%=button.ID %>');">编辑</a>
  43. </td>
  44. </tr>
  45. <% }%>
  46. </tbody>
  47. </table>
  48. <script type="text/javascript">
  49. var appid = '<%=Request.QueryString["appid"]%>';
  50. var iframeid = '<%=Request.QueryString["tabid"]%>';
  51. var dialog = top.mainDialog;
  52. function add()
  53. {
  54. dialog.open({ id: "window_" + appid.replaceAll('-', ''), title: "添加按钮", width: 700, height: 420, url: top.rootdir + '/Platform/WorkFlowButtons/Edit.aspx?1=1' + '<%=Query1%>', openerid: iframeid });
  55. }
  56. function edit(id)
  57. {
  58. dialog.open({ id: "window_" + appid.replaceAll('-', ''), title: "编辑按钮", width: 700, height: 420, url: top.rootdir + '/Platform/WorkFlowButtons/Edit.aspx?id=' + id + '<%=Query1%>', openerid: iframeid });
  59. }
  60. function checkAll(checked)
  61. {
  62. $("input[name='checkbox_app']").prop("checked", checked);
  63. }
  64. function del()
  65. {
  66. if ($(":checked[name='checkbox_app']").size() == 0)
  67. {
  68. alert("您没有选择要删除的项!");
  69. return false;
  70. }
  71. return confirm('您真的要删除所选按钮吗?');
  72. }
  73. </script>
  74. </form>
  75. </body>
  76. </html>