<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog/DialogMaster.Master" AutoEventWireup="true"
    CodeBehind="EmploySelectDialog.aspx.cs" Inherits="OAWeb.Dialog.EmploySelectDialog" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="width: 700px; height: 470px; padding: 10px">
        <table class="data_title" cellspacing="3">
            <tr>
                <td class="data_field">
                    职工名称：<asp:TextBox ID="txtRealName" runat="server" CssClass="text_box"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="搜 索" CssClass="btn_77px" />
                </td>
            </tr>
        </table>
        <div class="list">
            <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                GridLines="None" CellPadding="0" CssClass="table_list" EnableModelValidation="True"
                OnRowDataBound="gvData_RowDataBound">
                <RowStyle HorizontalAlign="Left" />
                <Columns>
                    <asp:TemplateField HeaderText="">
                        <ItemTemplate>
                            <input id='<%=SelectType == 0 ? "rdoItem" : "chkItem" %>' name='<%=SelectType == 0 ? "rdoItem" : "chkItem" %>'
                                type='<%=SelectType == 0 ? "radio" : "checkbox" %>' value='<%#Eval("Id") %>'
                                text='<%#Eval("RealName") %>' />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" ForeColor="White"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" Width="10px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:BoundField DataField="RealName" HeaderText="职员名称"></asp:BoundField>
                    <asp:BoundField DataField="Sex" HeaderText="性别" Visible="false"></asp:BoundField>
                    <asp:BoundField DataField="DeptID" HeaderText="部门" />
                    <asp:BoundField DataField="ProbationDate" HeaderText="试用期" Visible="false"></asp:BoundField>
                    <asp:BoundField DataField="SignedDate" HeaderText="签约日期" Visible="false"></asp:BoundField>
                    <asp:BoundField DataField="ExpireDate" HeaderText="合同到期时间" Visible="false" />
                    <asp:TemplateField HeaderText="当前状态" Visible="false">
                        <ItemTemplate>
                            <%#Eval("State").ToString() == "1" ? "<span class=\"green\">在职<span>" : (Eval("State").ToString() == "2" ? "<span class=\"red\">离退<span>":"外协" )%>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div class="pager-bar">
                <webdiyer:AspNetPager ID="pager" runat="server" CssClass="anpager" currentpagebuttonclass="cpb"
                    PageSize="10" NextPageText="下一页" LastPageText="页 尾" FirstPageText="第一页" PrevPageText="上一页"
                    ShowBoxThreshold="10" SubmitButtonText="跳 转" UrlPaging="True">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
</asp:Content>
