<%@ Page Language="c#" CodeBehind="User.aspx.cs" AutoEventWireup="True" Inherits="SWTraining.Admin.User"
    Title="系统设置-用户设置" %>

<%@ Import Namespace="SWTraining" %>
<!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">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="tool_Search">
        登录名：<asp:TextBox ID="tbxUserName" runat="server" Width="83px"></asp:TextBox>
        姓名：<asp:TextBox ID="tbxTrueName" runat="server" Width="82px"></asp:TextBox>
        校区：<asp:DropDownList ID="ddlSchool" runat="server" DataValueField="SchoolID" DataTextField="SchoolName">
        </asp:DropDownList>
        <label class="lab_buttom">
<asp:Button ID="btnFound" runat="server" Text="查找" OnClick="btnFound_Click"></asp:Button>
</label>
        &nbsp;<label class="lab_buttom">
<asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click"></asp:Button>
</label>
    </div>
    <div class="both"></div>
    <div class="divpanel">
        <asp:GridView ID="GridView1" runat="server" CssClass="gridview" DataKeyNames="UserID"
            AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting">
            <Columns>
                <asp:BoundField DataField="UserID" ReadOnly="True" HeaderText="工号"></asp:BoundField>
                <asp:TemplateField HeaderText="姓名">
                    <ItemTemplate>
                        <%# ShowUser(Eval("TrueName"), Eval("UserFace"), Eval("SignInID"), Eval("MobileTel"), Eval("FingerState"), Eval("FingerCode"), string.Format("PostUser.aspx?UserID={0}&GetURL={1}", Eval("UserID"), swq.Web.PathAndQuery()), Eval("LastAppLoginTime"))%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="登录名">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlkEdit" runat="server" Text='<%# Eval("UserName") %>' NavigateUrl='<%# string.Format("PostUser.aspx?UserID={0}&GetURL={1}",Eval("UserID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="状态">
                    <ItemTemplate>
                        <%# Rs.Items.GetLockState(Eval("LockState"))%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="校区名称">
                    <ItemTemplate>
                        <%#Eval("SchoolName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编辑/权限">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlkEdit3" runat="server" Text="编辑" NavigateUrl='<%# string.Format("PostUser.aspx?UserID={0}&GetURL={1}",Eval("UserID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="档案">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlkEdit4" runat="server" Text="档案" NavigateUrl='<%# string.Format("../Personnel/PostUser.aspx?UserID={0}&GetURL={1}",Eval("UserID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="divpanel">
        <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
    </div>
    </form>
</body>
</html>
