<%@ Page Language="C#" AutoEventWireup="true" CodeFile="user_list.aspx.cs" Inherits="general_user_user_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户列表</title>
    <link rel="stylesheet" href="../../styles/1/style.css" type="text/css" />
</head>
<body class="bodycolor">
    <form runat="server" id="from1">
        <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
            <tr>
                <td class="Big">
                    <img src="~/images/notify_new.gif" align="absmiddle" id="IMG2" runat="server" ><span
                        class="big3"> 用户列表&nbsp;</span>
                </td>
            </tr>
        </table>
        <div class="userlist">
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
                SelectMethod="User_GetList" TypeName="hqgl.user.userchuli" DeleteMethod="user_delete">
                <SelectParameters>
                    <asp:QueryStringParameter DefaultValue="" Name="pid" QueryStringField="id" Type="String" />
                </SelectParameters>
                <DeleteParameters>
                    <asp:ControlParameter ControlID="GridView1" Name="u_id" PropertyName="SelectedValue" />
                </DeleteParameters>
            </asp:ObjectDataSource>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="ObjectDataSource1" ForeColor="#333333" GridLines="None" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="u_id">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:HyperLinkField DataNavigateUrlFields="u_id" DataNavigateUrlFormatString="user_edit.aspx?uid={0}"
                        DataTextField="u_id" HeaderText="名字" />
                    <asp:BoundField DataField="u_name" HeaderText="真实姓名">
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="性别">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("sex") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemStyle Width="50px" />
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("sex") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="priv_name" HeaderText="角色">
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="duty_type" HeaderText="考勤类型" />
                    <asp:TemplateField HeaderText="管理范围">                      
                        <ItemStyle Width="100px" />
                        <ItemTemplate>                        
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("POST_PRIV") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="dept_name" HeaderText="部门" />
                    <asp:CommandField ShowDeleteButton="True" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </div>
    </form>
</body>
</html>
