<%@ Page Language="C#" MasterPageFile="~/Master/officeMaster.master" AutoEventWireup="true"
    CodeFile="Staffmanagemen.aspx.cs" Inherits="personal_Staffmanagemen" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style2
        {
            font-size: 18pt;
            color: black;
            margin-bottom: 0px;
        }
        .style3
        {
            font-size: medium;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="height: 570px;">
        <%--<div style="background-image: url('../b2c/images/win_top.png'); text-align: center;
            font-weight: bold; height: 35px; line-height: 30px;" class="style2">
            <span class="style3">用户管理</span>
        </div>--%>
        <table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr><th>用户管理</th></tr>
</table>
        <div style="position: relative;">
            <table border="1" width="100%">
                <tr style="background-color: #999999">
                    <th>
                        员工编号
                    </th>
                    <th>
                        员工名
                    </th>
                    <th>
                        登录名
                    </th>
                    <th>
                        职位
                    </th>
                    <th>
                        性别
                    </th>
                    <th>
                        身份证号
                    </th>
                    <th>
                        出生日期
                    </th>
                    <th>
                        手机号
                    </th>
                    <th>
                        详细
                    </th>
                    <th>
                        修改
                    </th>
                    <th>
                        权限
                    </th>
                    <th>
                        停用状态
                    </th>
                    <th>
                        停用/恢复
                    </th>
                </tr>
                <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                    <ItemTemplate>
                        <tr onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'">
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "Number")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "PersonnelName")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "LoginName")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "Workname")%>
                            </td>
                            <td>
                                <%#Eval("sex").ToString() == "0" ? "男" : "女"%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "IdCardNum")%>
                            </td>
                            <td>
                                <%#Eval("Birthday", "{0:yyyy-MM-dd}")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "CallPhone")%>
                            </td>
                            <td>
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="detaileduser" CommandArgument='<%# Eval("Number") %>'>详细</asp:LinkButton>
                            </td>
                            <td>
                                <asp:LinkButton ID="LinkButton3" runat="server" CommandName="updateUser" CommandArgument='<%# Eval("Number") %>'>修改</asp:LinkButton>
                            </td>
                            <td>
                                <asp:HiddenField ID="hdPid" runat="server" Value='<%#Eval("Pid") %>' />
                                <asp:LinkButton ID="lbtnPowerControl" runat="server" CommandName="powerControl" Text="权限"></asp:LinkButton>
                            </td>
                            <td>
                                <%#Eval("state").ToString() == "0" ? "停用" : "未停用"%>
                            </td>
                            <td>
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm( '您确认要执行吗？ ') "
                                    CommandName="Delete" CommandArgument='<%# Eval("state") %>'><%#Eval("state").ToString() == "0" ? "恢复" : "停用"%></asp:LinkButton>
                                <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "pid")%>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <div style="width: 100%">
            <center style="height: 129px">
                <asp:Label ID="Label1" runat="server" Text="当前"></asp:Label>
                <asp:Label ID="lblCurrentPage" runat="server" Text="1"></asp:Label>/<asp:Label ID="lblPageCount" runat="server" Text="X"></asp:Label>
                <asp:Label ID="Label3" runat="server" Text="页"></asp:Label>
                <asp:Button ID="Button4" runat="server" Text="首 页" Height="20px" Width="56px" 
                    OnClick="Button4_Click" BackColor="#CCCCCC" />
                <asp:Button ID="Button1" runat="server" Text="上 页" Height="20px" Width="56px" OnClick="Button1_Click"
                    BackColor="#CCCCCC" />
                <asp:Button ID="Button2" runat="server" Text="下 页" Height="20px" Width="56px" OnClick="Button2_Click"
                    BackColor="#CCCCCC" />
                <asp:Button ID="Button3" runat="server" Text="末 页" Height="20px" Width="56px" 
                    OnClick="Button3_Click" BackColor="#CCCCCC" />
                <%--<asp:Label ID="Label4" runat="server" Text="共"></asp:Label>
                
                <asp:Label ID="Label6" runat="server" Text="页"></asp:Label>--%>
            </center>
        </div>
    </div>
</asp:Content>
