<%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" CodeFile="Employee.aspx.cs" inherits="Maintenance_HR_Employee" title="<%$ Resources: SiteMapLocalizations, Maintenance_EmployeeEdit %>" theme="white" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<center>
<p class="masterpageContentTop" >
    <asp:CheckBox ID="chkContainLeftPersonal" Text="<%$ resources:Universal,HR_ContainLeftPersonal %>" runat="server" />
    <asp:Button ID="btnSumit" Text="<%$ resources:Universal,Data_Submit %>" runat="server" OnClick="btnSumit_Click" />
    <asp:Label ID="lblAmount"  ForeColor="red" runat="server"></asp:Label>
    <asp:HyperLink ID="hyAddNew" Text="<%$ resources:Universal,Data_AddNew %>" runat="server" NavigateUrl="EmployeeDetail.aspx?AddNew=true" Font-Size="large"></asp:HyperLink>
    
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" PageSize="40"
        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" DataKeyNames="EmployeeID" DataSourceID="ObjectDataSource1" OnDataBound="GridView1_DataBound" OnPageIndexChanging="GridView1_PageIndexChanging" OnSorting="GridView1_Sorting">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" BorderStyle="Dashed" />
        <Columns>
            <asp:BoundField DataField="EmployeeID" HeaderText="<%$ resources:Universal,Employee_EmployeeID %>" ReadOnly="True" SortExpression="EmployeeID" />
            <asp:BoundField DataField="Name" HeaderText="<%$ resources:Universal,Employee_Name %>" SortExpression="Name" />
            <asp:BoundField DataField="Sex" HeaderText="<%$ resources:Universal,Employee_Sex %>" SortExpression="Sex" />
            <asp:BoundField DataField="Blood" HeaderText="<%$ resources:Universal,Employee_Blood %>" SortExpression="Blood" />
            <asp:BoundField DataField="CellPhone" HeaderText="<%$ resources:Universal,Employee_CellPhone %>" />
            <asp:BoundField DataField="EMail" HeaderText="<%$ resources:Universal,Employee_EMail %>" />
            <asp:BoundField DataField="DeptID" HeaderText="<%$ resources:Universal,Department_DeptID %>" SortExpression="DeptID" />
            <asp:HyperLinkField DataNavigateUrlFields="EmployeeID" DataNavigateUrlFormatString="EmployeeDetail.aspx?EmployeeID={0}"
                HeaderText="<%$ resources:Universal,Data_Detail %>" Text="<%$ resources:Universal,Data_Detail %>" />
            <asp:BoundField DataField="LeaveDate"  HeaderText="<%$ resources:Universal,Employee_LeaveDate %>" />
        </Columns>
       <RowStyle BackColor="lightgoldenrodyellow" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#6191FF" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
<%--    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=ROY-EC;Initial Catalog=SEST;User ID=sa;Password=!love123"
        ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [HR_Employees]">
    </asp:SqlDataSource>
--%>    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="SelectExcludeLeave"
        TypeName="HR_EmployeesData" >
    </asp:ObjectDataSource>
</p>
</center>
</asp:Content>

