authority_list.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:3k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="authority_list.aspx.cs" Inherits="web_system_authority_list" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>无标题页</title>
  6.     <link href="../../css/style.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <body>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.     <center>
  12.         &nbsp;</center>    
  13.         <center>
  14.         <asp:Label ID="LblTitle" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative"
  15.             Text="權限群組列表"></asp:Label>&nbsp;</center>
  16.         <br />
  17.         <center>
  18.         <asp:GridView ID="GroupList" runat="server" BackColor="White" BorderColor="#999999"
  19.             BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Style="position: relative" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" PageSize="18" Width="547px" OnRowCreated="GroupList_RowCreated" OnRowDataBound="GroupList_RowDataBound" OnRowCommand="GroupList_RowCommand">
  20.             <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  21.             <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  22.             <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  23.             <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  24.             <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  25.             <AlternatingRowStyle BackColor="Gainsboro" />
  26.             <Columns>
  27.                 <asp:TemplateField HeaderText="權限群組名稱">
  28.                     <ItemTemplate>
  29.                         <asp:LinkButton ID="BtnName" runat="server" Style="position: relative"></asp:LinkButton>&nbsp;
  30.                     </ItemTemplate>
  31.                 </asp:TemplateField>
  32.                 <asp:TemplateField HeaderText="員工數">
  33.                     <ItemTemplate>
  34.                         <asp:LinkButton ID="BtnEmpCount" runat="server" Style="position: relative"></asp:LinkButton>
  35.                     </ItemTemplate>
  36.                 </asp:TemplateField>
  37.                 <asp:BoundField DataField="cre_date" HeaderText="創建日期" SortExpression="cre_date" />
  38.                 <asp:TemplateField>
  39.                     <ItemTemplate>
  40.                         <asp:LinkButton ID="BtnDelete" CommandName="DeleteData" runat="server" Style="position: relative" OnClientClick='return confirm("確定要刪除嗎?")'>刪除</asp:LinkButton>
  41.                     </ItemTemplate>
  42.                 </asp:TemplateField>
  43.             </Columns>
  44.         </asp:GridView>
  45.         <br />
  46.             <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  47.                 SelectCommand="select id, name, cre_date from OA_USER_GROUP_MAIN order by name">
  48.             </asp:SqlDataSource>
  49.         </center>
  50.     </div>
  51.     </form>
  52. </body>
  53. </html>