<%@ page language="C#" autoeventwireup="true" inherits="Admin_EmplyeeList, App_Web_qxuvifui" %>


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!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 id="Head1" runat="server">
    <title>角色</title>
    <link href="../CSS/All.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/pager.css" rel="stylesheet" type="text/css" />
    <script src="../JS/xzOper.js" type="text/javascript"></script>
    
</head>
<body>
    <form id="Myform" runat="server">
        <div class="title" >
            人员管理</div>
        <div >
            <asp:Literal ID="litNew" runat="server"></asp:Literal>
            <br />
            <fieldset>
            <legend>查询</legend>
            【姓名：】<asp:TextBox ID="txtQuery" runat="server"></asp:TextBox>&nbsp;
            <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="btn" />
                <asp:Button ID="btnShowAll" runat="server" Text="全部显示" OnClick="btnShowAll_Click" CssClass="btn" /></fieldset>
        </div>    
        <fieldset>
        <legend>内容区域</legend>
        <div  id="view" style="overflow-x:auto">
        <asp:GridView
            ID="TableView" runat="server" AutoGenerateColumns="False"
             EmptyDataText="没有可显示的数据记录。" Width="100%" BorderStyle="Solid" DataKeyNames="EID" OnRowDataBound="TableView_RowDataBound">
             <Columns>
                 <asp:TemplateField HeaderText="选择"> 
                     <ItemTemplate>
                         <asp:CheckBox ID="CBSelect" runat="server" />
                     </ItemTemplate>
                     <HeaderStyle Height="30px"  Wrap="False"/>
                     <ItemStyle Height="30px"  Wrap="False" />
                 </asp:TemplateField>
                 <asp:BoundField DataField="Username" HeaderText="用户编号" />
                 <asp:TemplateField HeaderText="操作" SortExpression="EID">
                     <ItemTemplate>
                         <asp:Literal ID="litEdit" runat="server"></asp:Literal>
                     </ItemTemplate>
            
                 </asp:TemplateField>
                    <asp:BoundField DataField="Name" HeaderText="姓名">
                        <HeaderStyle Wrap="False" />
                 
                    </asp:BoundField>
                    <asp:BoundField DataField="Sex" HeaderText="性别">
                        <HeaderStyle Wrap="False" />
                        
                    </asp:BoundField>
                 <asp:TemplateField HeaderText="状态">
                     <ItemTemplate>
                         <asp:Label ID="Label1" runat="server" Text='<%# bingState(Eval("State").ToString()) %>' ></asp:Label>
                     </ItemTemplate>
                     <HeaderStyle Wrap="False" />
           
                 </asp:TemplateField>
                    <asp:BoundField DataField="Dmt" HeaderText="部门">
                        <HeaderStyle Wrap="False" />
                 
                    </asp:BoundField>
                    <asp:BoundField DataField="Ps" HeaderText="权限">
                        <HeaderStyle Wrap="False" />
                
                    </asp:BoundField>
                    <asp:BoundField DataField="job" HeaderText="职务">
                        <HeaderStyle Wrap="False" />
               
                    </asp:BoundField>
                    <asp:BoundField DataField="edu" HeaderText="学历"  >
                        <HeaderStyle Wrap="False" />
                  
                    </asp:BoundField>
                    <asp:BoundField DataField="BDate" HeaderText="出生"  DataFormatString="{0:yyyy-MM-dd}" >
                        <HeaderStyle Wrap="False" />
                     
                    </asp:BoundField>
                    <asp:BoundField DataField="IDNumber" HeaderText="身份证"  >
                        <HeaderStyle Wrap="False" />
                      
                    </asp:BoundField>
                    <asp:BoundField DataField="HomePhone" HeaderText="住宅电话" >
                        <HeaderStyle Wrap="False" />
                 
                    </asp:BoundField>
                    <asp:BoundField DataField="MPhones" HeaderText="手机号">
                        <HeaderStyle Wrap="False" />
               
                    </asp:BoundField>
                    <asp:BoundField DataField="Address" HeaderText="地址">
                        <HeaderStyle Wrap="False" />
                    </asp:BoundField>
                </Columns>
                  <FooterStyle CssClass="GridViewFooterStyle" />
                 <RowStyle CssClass="GridViewRowStyle" />   
                 <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                 <PagerStyle CssClass="GridViewPagerStyle" />
                 <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                 <HeaderStyle CssClass="GridViewHeaderStyle" />
                 
        </asp:GridView>
        </div>
        <div style="border-top:ridge 1px #F6F6F6; margin-top:10px" >
        
            <input id="Button12" class="btn" onclick="Opposite('view')" type="button" value="反选" />
            <asp:Button ID="btnPTestAll" runat="server" CssClass="btn" OnClick="btnPTestAll_Click"
                OnClientClick="if(confirm('确定删除所有选中吗？')){return isSelect('view')}else{return false;}"
                Text="删除选中" />&nbsp;
      
        </div>  
      </fieldset>
    <webdiyer:aspnetpager id="PagerButtom" runat="server" alwaysshow="True" cssclass="paginator"
                currentpagebuttonclass="cpb" custominfohtml="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
                firstpagetext="首页" lastpagetext="尾页" layouttype="Table" nextpagetext="下一页" numericbuttoncount="5"
                onpagechanged="Pager_PageChanged" pagesize="25" prevpagetext="上一页" showcustominfosection="Left"
                showpageindexbox="Always"></webdiyer:aspnetpager>
        
    </form>
</body>
</html>