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

<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/AlphabetSearchCommonControl.ascx" TagName="AlphabetSearchCommonControl" TagPrefix="ACS" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <ACS:AlphabetSearchCommonControl ID="AlphabetCommonSearch" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="213"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="himssuHeader1WireBox card card-box">
                                    <div class="himsBoxHeader card-head">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <i class="fas fa-list-ul"></i>
                                                <asp:Label ID="MyPayrollLabel" runat="server" Text="My Payroll"></asp:Label>
                                                </header>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ForYearLabel" runat="server" Text="For Year" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="ForYearDropDownList" SkinID="CustomWidthDropDownList"
                                                           CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                            OnSelectedIndexChanged="ForYearDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                        <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                    </div>
                                                </div>
                                              
                                                <div id="PayProcessSetupDiv" runat="server" visible="false">
                                                    <div class="himsBoxContent col-md-12 table-responsive">
                                                        <asp:GridView runat="server" ID="PayProcessSetupGridView" AutoGenerateColumns="False"
                                                            EmptyDataText="No records available for the seacrh criteria!" DataKeyNames="PayProcessId,SalaryMonth,SalaryYear"
                                                            meta:resourcekey="PayProcessSetupResource1" OnRowDataBound="PayProcessSetupGridView_RowDataBound"
                                                            CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:BoundField DataField="SalaryYear" HeaderText="Salary Year" ItemStyle-Width="20%" />
                                                                <asp:BoundField DataField="MonthTitle" HeaderText="Salary Month" ItemStyle-Width="20%" />
                                                                <asp:TemplateField meta:resourcekey="TemplateFieldResource1" ItemStyle-Width="60%">
                                                                    <ItemTemplate>
                                                                        <%--<asp:LinkButton ID="ViewReportLinkButton" runat="server" Text="View Report" OnClick="ViewReportLinkButton_Click"></asp:LinkButton>--%>
                                                                        <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='View Report'
                                                                               Target="_blank"></asp:HyperLink>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                                <div id="FileGridViewDiv" runat="server" visible="false">
                                                    <div class="himsBoxContent col-md-12 table-responsive">
                                                        <asp:GridView runat="server" ID="FileGridView" AutoGenerateColumns="False"
                                                            EmptyDataText="No records available for the seacrh criteria!" DataKeyNames="PayProcessId,SalaryMonth,SalaryYear"
                                                            meta:resourcekey="PayProcessSetupResource1" OnRowDataBound="FileGridView_RowDataBound"
                                                            CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:BoundField DataField="SalaryYear" HeaderText="Salary Year" ItemStyle-Width="20%" />
                                                                <asp:BoundField DataField="MonthTitle" HeaderText="Salary Month" ItemStyle-Width="20%" />
                                                        
                                                                <asp:TemplateField ItemStyle-Width="80%" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                            <asp:Label ID="FileNameLabel" runat="server" CssClass="boxEllips"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="DownloadLinkButton" runat="server" CommandName="Download" Text="Download" OnClick="DownloadLinkButton_Click"
                                                                            CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                        </tr>
                    </table>
                </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
     <%--<script data-main="../../../JavaScript/rjs/encrypt/my-payroll-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/my-payroll")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>