RoadFlow2.1 临时演示

Default.aspx 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebForm.Platform.RoleApp.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="0" border="0" width="100%">
  12. <tr>
  13. <td>
  14. 角色名称:<input type="text" class="mytext" id="Name" name="Name" value="" runat="server" />
  15. <input type="submit" name="Search" value="&nbsp;&nbsp;查&nbsp;询&nbsp;&nbsp;" class="mybutton" />
  16. <input type="button" name="addrole" value="添加角色" onclick="add();" class="mybutton" />
  17. </td>
  18. </tr>
  19. </table>
  20. </div>
  21. <table class="listtable">
  22. <thead>
  23. <tr>
  24. <th width="30%">角色名称</th>
  25. <th width="35%">成员</th>
  26. <th width="15%">备注</th>
  27. <th width="20%" sort="0"></th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <%
  32. RoadFlow.Platform.Organize org = new RoadFlow.Platform.Organize();
  33. foreach (var role in RoleList)
  34. {
  35. %>
  36. <tr>
  37. <td><%=role.Name %></td>
  38. <td><%=org.GetNames(role.UseMember) %></td>
  39. <td><%=role.Note %></td>
  40. <td><a class="editlink" href="javascript:void(0);" onclick="setApp('<%=role.ID %>');">设置应用</a>
  41. <a class="editlink" href="javascript:void(0);" onclick="edit('<%=role.ID %>');">编辑角色</a>
  42. </td>
  43. </tr>
  44. <% }%>
  45. </tbody>
  46. </table>
  47. </form>
  48. <script type="text/javascript">
  49. var appid = '<%=Request.QueryString["appid"]%>';
  50. var tabid = '<%=Request.QueryString["tabid"]%>';
  51. function setApp(id)
  52. {
  53. top.mainDialog.open({
  54. url: top.rootdir + '/Platform/RoleApp/SetApp.aspx?roleid=' + id + '&appid=' + appid,
  55. width: 980, height: 530, title: "设置角色应用"
  56. });
  57. }
  58. function edit(id)
  59. {
  60. top.mainDialog.open({
  61. url: top.rootdir + '/Platform/RoleApp/EditRole.aspx?roleid=' + id + '&appid=' + appid,
  62. width: 800, height: 300, title: "编辑角色", openerid: tabid
  63. });
  64. }
  65. function add()
  66. {
  67. top.mainDialog.open({
  68. url: top.rootdir + '/Platform/RoleApp/AddRole.aspx?appid=' + appid,
  69. width: 800, height: 300, title: "添加角色", openerid: tabid
  70. });
  71. }
  72. </script>
  73. </body>
  74. </html>