<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_IncomeTax_Form16, App_Web_cotney1t" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Payroll/PayrollDetailBoxControl.ascx" TagName="PayrollControl" TagPrefix="Pay" %>
<%@ Register Src="~/UserControls/Common/IncomeTax/IncomeTaxLabelControl.ascx" TagName="ITaxControl" TagPrefix="ITax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage">
                <div style="width: 100%; padding: 2px; margin: 2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px; border-collapse: collapse" cellspacing="0">
                        <tr>
                            <td class="dashBoardLeftCont" valign="top">
                                <div class="himssuHeader3WireBox">
                                    <table width="0px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="232"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top" width="100%" class="whiteboxpaddingleft">
                                <ITax:ITaxControl ID="ITaxUserControl" runat="server" Visible="true" />
                                <div class="himssuHeader5WireBox whitebox" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader note note1 box box-danger">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                    <div class="outerBox pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ForYearLabel" runat="server" Text="Payroll" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ForYearDropDownList" SkinID="CustomWidthDropDownList"
                                                                Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                                OnSelectedIndexChanged="ForYearDropDownList_OnSelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5">
                                                        <div class="control LabelWidth">
                                                            <asp:Label ID="PayrollGroupLabel" runat="server" Text="Payroll Group"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="PayrollGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                                Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                                OnSelectedIndexChanged="PayrollGroupDropDownList_OnSelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5">
                                                        <div class="control LabelWidth">
                                                            <asp:Label ID="Label1" runat="server" SkinID="MandatoryLabel" Text="Employee"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="EmployeeDropDownList" SkinID="CustomWidthDropDownList"
                                                                Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                                OnSelectedIndexChanged="EmployeeDropDownList_OnSelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="cBoth">
                                                    </div>
                                                    <div class="alignCenter pTop5">
                                                        <asp:Button ID="SearchButton" runat="server" Text="Search"
                                                            OnClick="SearchButton_Click" SkinID="0" CssClass="btn-primary" />
                                                        <asp:Button ID="ImportDataButton" runat="server" Text="Import Data"
                                                            OnClick="ImportDataButton_Click" SkinID="0" CssClass="btn-primary" />
                                                        <asp:Button ID="ClearButton" runat="server" Text="Clear"
                                                            OnClick="ClearSearchControls_Click" meta:resourcekey="ClearButtonResource1" />
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>
                                                </asp:Panel>
                                                <div id="Div1" class="himssuHeader7WireBox box-body box-solid gridviewfont" runat="server" style="width: 100%; margin-right: 5px;">
                                                    <div id="NewsDetailDiv" visible="false" runat="server">
                                                        <div class="spacer">
                                                            <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                        </div>
                                                        <div class="himsBoxHeader" id="NewsDiv" visible="false" runat="server">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle" style="width: 99%">
                                                                <div align="right" class="fRight" style="margin-top: 0px;">
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                                <ContentTemplate>
                                                                    <div id="Div5" runat="server" visible="false">
                                                                        <asp:GridView runat="server" ID="DetailsGridView" Width="100%" AutoGenerateColumns="False"
                                                                            ShowHeader="True" meta:resourcekey="EmployeePayrollGridViewResource1"
                                                                            CssClass="table table-striped table-bordered">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Group Name" ItemStyle-Width="25%" SortExpression="Group" HeaderStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="GroupLabel" runat="server" Text='<%# Bind("Group") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Sub Group Name" ItemStyle-Width="25%" SortExpression="SubGroupName" HeaderStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="SubGroupNameLabel" runat="server" Text='<%# Bind("SubGroupName") %>'></asp:Label>
                                                                                        <asp:HiddenField ID="GroupIDHiddenField" runat="server" Value='<%# Bind("GroupID") %>' />
                                                                                        <asp:HiddenField ID="SubGroupIDHiddenField" runat="server" Value='<%# Bind("SubGroupID") %>' />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Gross Amount" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="GrossAmountTextBox" Text='<%# Bind("GrossAmount") %>' Style="text-align: right" runat="server"
                                                                                            onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                                            onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                            onPaste="return false;"
                                                                                            onDrag="return false"
                                                                                            onDrop="return false"
                                                                                            autocomplete="off"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Qualifying Amount" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="QualifyingAmountTextBox" Text='<%# Bind("QualifyingAmount") %>' Style="text-align: right" runat="server"
                                                                                            onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                                            onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                            onPaste="return false;"
                                                                                            onDrag="return false"
                                                                                            onDrop="return false"
                                                                                            autocomplete="off"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Deductible Amount" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="DeductibleAmountTextBox" Text='<%# Bind("DeductibleAmount") %>' Style="text-align: right" runat="server"
                                                                                            onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                                            onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                            onPaste="return false;"
                                                                                            onDrag="return false"
                                                                                            onDrop="return false"
                                                                                            autocomplete="off"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/payroll-employee-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/payroll-employee")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
