<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DutyFormGrouping.aspx.cs" Inherits="Maintenance_Setting_DutyFormGrouping" Title="<%$ Resources: SiteMapLocalizations, Maintenance_DutyFormGrouping %>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<center>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" PageSize="40"
        AutoGenerateColumns="False" CellPadding="0" DataSourceID="ObjectDataSource1" EmptyDataText="null"
        ForeColor="#333333" GridLines="None" >
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />

        <Columns>
            <asp:CommandField UpdateText="<%$ resources:Universal,Data_Update %>"
            CancelText="<%$ resources:Universal,Data_Cancel %>" EditText="<%$ resources:Universal,Data_Edit %>"
            DeleteText="<%$ resources:Universal,Data_Delete %>" />
        
            <asp:TemplateField HeaderText="<%$ resources:Universal,Employee_Name %>" Visible="False">
                <ItemTemplate>
                    <asp:Label ID="lblEmployeeID" runat="server" Text='<%# Eval("EmployeeID") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ resources:Universal,Employee_Name %>" SortExpression="Name">
                <ItemTemplate>
                    <asp:Label ID="lblName" runat="server" Text='<%# Eval("Name") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ resources:Universal,Employee_Grouping %>" SortExpression="Grouping">
                <ItemTemplate>
                    <asp:TextBox ID="txtGrouping" runat="server" Height="12px" Font-Size="8pt" Width="60px" Text='<%# Eval("Grouping") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ resources:Universal,UI_DutyFormDisplay %>" SortExpression="DutyFormEnabled">
                <ItemTemplate>
                    <asp:CheckBox ID="chkDutyFormEnabled" runat="server" Height="12px" Font-Size="8pt" Width="12px" Checked='<%# Convert.ToBoolean(int.Parse(Eval("DutyFormEnabled").ToString())) %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ resources:Universal,Employee_DutyFormPriority %>">
                <ItemTemplate>
                    <asp:TextBox ID="txtPriority" runat="server" Height="10px" Font-Size="8pt" Width="16px" Text='<%# Eval("DutyFormPriority") %>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
     
        <RowStyle BackColor="#F7D6E3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#AD7BED" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>

    <asp:Button ID="btnUpdate" runat="server" Text="<%$ Resources: Universal, Data_Update %>" OnClick="btnUpdate_Click" />
</center>


    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="HR_EmployeesData"
        SelectMethod="SelectExcludeLeave">
        <InsertParameters>
            <asp:Parameter Name="EmployeeID" Type="String" />
            <asp:Parameter Name="Name" Type="String" />
            <asp:Parameter Name="Grouping" Type="String" />
            <asp:Parameter Name="DutyFormEnabled" Type="String" />
            <asp:Parameter Name="DutyFormPriority" Type="String" />
        </InsertParameters>
    </asp:ObjectDataSource>
</asp:Content>

