<%@ Page Title="" Language="C#" ValidateRequest="false" MasterPageFile="~/BackCenter/Home/Index.master" AutoEventWireup="true" CodeFile="JobIndex.aspx.cs" Inherits="BackCenter_Job_JobIndex" %>

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

<asp:Content ID="head" ContentPlaceHolderID="HeadContextPlaceHolder" runat="server">

</asp:Content>

<asp:Content ID="main" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div class="r_top_line">
        <cite style="float: right">
            <img src="/App_Themes/BackCenter/images/right_tr.gif" /></cite></div>
    <div class="r_tit">
        <cite class="fr menu01"><a href="/BackCenter/Job/JobEdit.aspx">新增岗位</a></cite>
        <p class="home">
            位置：后台中心 >> 岗位管理
        </p>
    </div>
    <div class="bd">
        <div class="search">
            <h2 class="search_tit">
                <span>查询</span></h2>
            <div class="search_list">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab_style2">
                    <tr>
                        <td class="n1">
                            岗位名：
                        </td>
                        <td class="n2">
                             <asp:TextBox ID="txt_Title" runat="server" MaxLength="50" ></asp:TextBox>
                        </td>

                        <td class="n1">
                        </td>
                        <td class="n2">
                        </td>
                    </tr>
                </table>
                <div class="s_menu">
                <asp:Button ID="btnSearch" CssClass="menu_b" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>     
                 </div>
            </div>
        </div>

        <div class="tit_xs">
            <h2>
                岗位列表</h2>
        </div>
        
        <asp:GridView ID="GridView1" GridLines="None" runat="server" Width="100%"  DataKeyNames="Id" AutoGenerateColumns="false" CssClass="tab_style" >
        <Columns>
                <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" ItemStyle-HorizontalAlign="Center"
                    HeaderStyle-Width="40px">
                    <HeaderStyle Width="40px"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                
                <asp:BoundField DataField="Title" HeaderText="岗位标题" SortExpression="Title" ItemStyle-HorizontalAlign="Center"  /> 
                <asp:BoundField DataField="Number" HeaderText="人数" SortExpression="Number" ItemStyle-HorizontalAlign="Center"   HeaderStyle-Width="80px" /> 
                <asp:BoundField DataField="Wage" HeaderText="工资" SortExpression="Wage" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="80px"  /> 
                <asp:TemplateField HeaderText="修改"  HeaderStyle-Width="40px">
                    <ItemTemplate>    
                    <asp:LinkButton ID="btnUpdate" CommandArgument='<%# Eval("Id") %>'  runat="server" OnCommand="btnUpdate_Command">[修改]</asp:LinkButton>
                           
                     </ItemTemplate>
                </asp:TemplateField>   
               <asp:TemplateField HeaderText="删除" HeaderStyle-Width="40px">
                    <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" CommandArgument='<%# Eval("Id") %>'  runat="server" OnCommand="btnDelete_Command" Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要删除该记录吗？')&quot;>[删除]</div>"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                暂无相关数据!
            </EmptyDataTemplate>
    </asp:GridView>
                
        <div class="sabrosus">
        <webdiyer:AspNetPager ID="AspNetPager1" PageSize="10" HorizontalAlign="Center" Font-Bold="true"
                    CssClass="" runat="server" Width="100%" CenterCurrentPageButton="True"
                    OnPageChanging="AspNetPager1_PageChanging" ShowPageIndexBox="Never" FirstPageText="首页"
                    PrevPageText="上一页" NextPageText="下一页" LastPageText="尾页" PageIndexBoxType="TextBox"
                    CurrentPageButtonTextFormatString="{0:[0]}" AlwaysShow="false" ShowNavigationToolTip="True"
                    CustomInfoHTML="记录总数：%RecordCount%" ShowCustomInfoSection="Left">
                </webdiyer:AspNetPager>
        </div>
    </div>
</asp:Content>


