<%@ Page Language="c#" CodeBehind="User.aspx.cs" AutoEventWireup="True" Inherits="SWTraining.Personnel.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 id="sw_content">
        <div class="divpanel">
            ＩＤ卡号：<asp:TextBox ID="tbxSignInID" runat="server" Width="114px"></asp:TextBox>
            工号：<asp:TextBox ID="tbxUserID" runat="server" Width="82px"></asp:TextBox>
            姓名：<asp:TextBox ID="tbxTrueName" runat="server" Width="82px"></asp:TextBox>
            组：<asp:DropDownList ID="ddlUserGroup" runat="server" DataValueField="UserGroupID"
                DataTextField="UserGroupName">
            </asp:DropDownList>
            &nbsp;<asp:Button ID="btnSearch" runat="server" Text="查找" OnClick="btnSearch_Click">
            </asp:Button>
        </div>
        <div class="divpanel">
            <asp:GridView ID="GridView1" runat="server" CssClass="gridview" DataKeyNames="UserID"
                AutoGenerateColumns="False" OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="UserID" ReadOnly="True" HeaderText="工号"></asp:BoundField>
                    <asp:TemplateField HeaderText="姓名">
                        <ItemTemplate>
                            <asp:Image runat="server" ID="img" ImageUrl='<%# "../" + swq.UserFacePath + Eval("UserFace")%>'
                                ImageAlign="AbsMiddle"></asp:Image>
                            <%#Eval("TrueName")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="基本工资">
                        <ItemTemplate>
                            <%#Eval("BasePay","{0:f2}")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="课时费">
                        <ItemTemplate>
                            <%#Eval("HourFee","{0:f2}")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="兼职">
                        <ItemTemplate>
                            <%# Rs.Items.GetYN(Eval("Pluralist"))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%# Rs.Items.GetLockState(Eval("LockState"))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="浏览">
                        <ItemTemplate>
                            <asp:HyperLink ID="hlkShow" runat="server" Text="浏览" NavigateUrl='<%# string.Format("UserShow.aspx?UserID={0}",Eval("UserID")) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="编辑">
                        <ItemTemplate>
                            <asp:HyperLink runat="server" ID="hlkEdit" 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: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>
    </div>
    </form>
</body>
</html>
