RightListView.aspx
上传用户:cha0314
上传日期:2014-03-02
资源大小:12522k
文件大小:5k
源码类别:

C#编程

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="RightListView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.AssginRule.RightListView" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>RightListView</title>
  6. <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
  7. <meta name="CODE_LANGUAGE" Content="C#">
  8. <meta name="vs_defaultClientScript" content="JavaScript">
  9. <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  10. <link rel="stylesheet" href="../../Css/BasicLayout.css" type="text/css">
  11. <script language="javascript">
  12. function SelectItem()
  13. {
  14. var i = 0;
  15. var e;
  16. for( i = 0 ; i < RightListView.elements.length ; i ++ )
  17. {
  18. e = RightListView.elements[ i ];
  19. if( e.type == "checkbox" ) e.checked = !e.checked;
  20. }
  21. }
  22. // 高亮背景
  23. function high( which )
  24. which.style.background = "#C0D9E6";
  25. which.style.font.color = "red";
  26. // 取消背景高亮
  27. function low( which )
  28. which.style.background = "#FFFFFF";
  29. which.style.font.color = "black";
  30. }
  31. function ReturnBack(DisplayType)
  32. {
  33. var a=DisplayType;
  34. if(a==0)
  35. location.href = "../Position/ListView.aspx?PositionID=<%=strObjID%>";
  36. if(a==1)
  37. location.href = "../UnitiveDocument/Switch.aspx?Action=1&ClassID=<%=strObjID%>";
  38. if(a==2)
  39. location.href = "../Role/ListView.aspx?Role_ID=<%=strObjID%>";
  40. }
  41. </script>
  42. </HEAD>
  43. <body leftMargin="0" topMargin="0" MS_POSITIONING="GridLayout">
  44. <form id="RightListView" method="post" runat="server">
  45. <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  46. <TR>
  47. <TD>
  48. <TABLE class="gbtext" id="Table3" cellSpacing="0" cellPadding="0" width="100%" border="0">
  49. <TR>
  50. <TD align="center" width="90" background="../../images/maillistbutton2.gif" height="24"><FONT face="宋体" class="Newbutton">权限列表</FONT></TD>
  51. <TD align="right">
  52. <INPUT class="redButtonCss" id="btn_DelRight" type="button" value="删除权限" runat="server">
  53. <input type="button" value="加入权限" class="redButtonCss" runat="server" id="btn_AddRight">
  54. <input type="button" value="返回" name="cmdReturn" class="redButtonCss" OnClick="ReturnBack(<%=DisplayType%>);"></TD>
  55. </TR>
  56. </TABLE>
  57. </TD>
  58. </TR>
  59. <TR>
  60. <TD>
  61. <asp:DataGrid id="RightsGrid" runat="server" AutoGenerateColumns="False" PageSize="15" AllowPaging="True"
  62. Font-Names="宋体" BorderWidth="1px" BorderColor="#93BEE2" BorderStyle="None" BackColor="White"
  63. CellPadding="3" DataKeyField="rule_id" Width="100%" OnPageIndexChanged="DataGrid_PageChanged">
  64. <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
  65. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  66. <ItemStyle Font-Size="Smaller" Font-Names="宋体" ForeColor="#003399" BackColor="White"></ItemStyle>
  67. <HeaderStyle Font-Names="宋体" Font-Bold="True" HorizontalAlign="Center" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
  68. <FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
  69. <Columns>
  70. <asp:TemplateColumn HeaderText="◎">
  71. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Width="2%"></HeaderStyle>
  72. <ItemTemplate>
  73. <asp:CheckBox id="cb_RightID" Runat="server" Checked="False"></asp:CheckBox>
  74. </ItemTemplate>
  75. </asp:TemplateColumn>
  76. <asp:BoundColumn DataField="proc_name" HeaderText="权限名">
  77. <HeaderStyle Font-Size="X-Small" Font-Names="宋体" Font-Bold="True" HorizontalAlign="Left" Width="19%"></HeaderStyle>
  78. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  79. </asp:BoundColumn>
  80. <asp:BoundColumn DataField="proc_desc" HeaderText="权限描述">
  81. <HeaderStyle Font-Size="Smaller" Font-Names="宋体" Font-Bold="True" HorizontalAlign="Left" Width="58%"></HeaderStyle>
  82. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  83. </asp:BoundColumn>
  84. <asp:TemplateColumn HeaderText="权限对象">
  85. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Right"></HeaderStyle>
  86. <ItemStyle Font-Size="X-Small" HorizontalAlign="Right"></ItemStyle>
  87. <ItemTemplate>
  88. <asp:Label id=Label1 runat="server" Text='<%# (DataBinder.Eval(Container, "DataItem.classname")=="")?"全局":DataBinder.Eval(Container, "DataItem.classname") %>'>
  89. </asp:Label>
  90. </ItemTemplate>
  91. </asp:TemplateColumn>
  92. </Columns>
  93. <PagerStyle HorizontalAlign="Right" ForeColor="#003399" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  94. </asp:DataGrid></TD>
  95. </TR>
  96. </TABLE>
  97. </form>
  98. </body>
  99. </HTML>