<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsersMangent.aspx.cs" Inherits="ComResProSystem.UsersMangent" %>

<!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>
    <style type="text/css">
        body
        {
            margin: 0px;
            padding: 0px;
            font-size: 12px;
        }
        .table
        {
            border-collapse: collapse;
            height: 24px;
            line-height: 24px;
            text-align: center;
        }
        .table tr
        {
            border-right: solid 1px #FFF;
            border-left: solid 1px #000000;
        }
        .table tr td
        {
            border: solid 1px #000000;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
        <div style="background-image: url(Image/tab/tab_05.gif); height: 25px; background-repeat: repeat-x">
            <img src="Image/tab/311.gif" alt="" /><span style="font-size: 12px; color: #1F4A65;
                font-weight: bold;">员工信息管理</span>
        </div>
        <div>
            <table>
                <tr>
                    <td>
                        请选择查询条件:
                    </td>
                    <td>
                        部门:
                        <asp:DropDownList ID="Dd_Part" runat="server">
                            <asp:ListItem>-请选择-</asp:ListItem>
                            <asp:ListItem>财务部</asp:ListItem>
                            <asp:ListItem>工程部</asp:ListItem>
                            <asp:ListItem>开发部</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        职位:<asp:DropDownList ID="Dd_UserPos" runat="server">
                            <asp:ListItem>-请选择-</asp:ListItem>
                            <asp:ListItem>普通员工</asp:ListItem>
                            <asp:ListItem>部门主管</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:ImageButton ID="Ibt_select" runat="server" 
                            ImageUrl="~/Image/Bt_Select.gif" onclick="Ibt_select_Click"  />
                    </td>
                </tr>
            </table>
        </div>
        <div align="center">
            <asp:GridView ID="Gv_User" runat="server" AutoGenerateColumns="False" Width="90%"
                CellPadding="4" ForeColor="#333333" GridLines="None" DataKeyNames="ID" 
                onrowdeleting="Gv_User_RowDeleting" onrowupdating="Gv_User_RowUpdating" 
                >
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="编号">
                        <ItemTemplate>
                            <%#Container.DataItemIndex+1%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="姓名">
                        <ItemTemplate>
                            <%#Eval("UserName")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="年龄">
                        <ItemTemplate>
                            <%#Eval("UserAge")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="职位">
                        <ItemTemplate>
                            <%#Eval("UserPos")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="部门">
                        <ItemTemplate>
                            <%#Eval("Part")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <img src="Image/tab/114.gif" alt="编辑" />
                            <asp:LinkButton ID="Lb_Edit" runat="server" CommandName="Update">编辑</asp:LinkButton>
                            <img src="Image/tab/010.gif" alt="删除" />
                            <asp:LinkButton ID="Lb_Del" runat="server" CommandName="Delete" OnClientClick="return confirm('您确定要执行删除操作？')">删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                <div>温馨提示：当前没有符合条件的数据！</div>
                </EmptyDataTemplate>
                <EditRowStyle BackColor="#7C6F57" />
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
        </div>
        <div id="preup" runat="server" style=" margin-right:5%;display:none " align="right">
            <table>
                <tr>
                    <td>
                        总共<asp:Label ID="Lb_Total" runat="server" Text=""></asp:Label>页
                    </td>
                    <td>
                        当前第<asp:Label ID="Lb_Now" runat="server" Text=""></asp:Label>页
                    </td>
                    <td>
                        <asp:ImageButton ID="Ibt_Firsr" runat="server" ImageUrl="~/Image/tab/first.gif" 
                            onclick="Ibt_Firsr_Click"/>
                    </td>
                    <td>
                        <asp:ImageButton ID="Ibt_Pre" runat="server" ImageUrl="~/Image/tab/back.gif" 
                            onclick="Ibt_Pre_Click" />
                    </td>
                    <td>
                        <asp:ImageButton ID="Ibt_Next" runat="server" ImageUrl="~/Image/tab/next.gif" 
                            onclick="Ibt_Next_Click" />
                    </td>
                    
                    <td>
                        <asp:ImageButton ID="Ibt_Last" runat="server" ImageUrl="~/Image/tab/last.gif" 
                            onclick="Ibt_Last_Click"/>
                    </td>
                    <td>
                        <asp:TextBox ID="Tb_goto" runat="server" Height="12px" Width="15px"></asp:TextBox>
                         <asp:ImageButton ID="Ibt_goto" runat="server" ImageUrl="~/Image/tab/go.gif" onclick="Ibt_goto_Click" 
                        />
                            </td>
                </tr>
            </table>
        </div>
    </div>
     </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
