<%@ page title="Pay Process Preview" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Payroll_PayProcessPreview, App_Web_ivx2pp1p" uiculture="auto" meta:resourcekey="PageResource1" 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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <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="162"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Pay:PayrollControl ID="PayrollUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader5WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="SearchHeaderPanel" runat="server"
                                meta:resourcekey="SearchHeaderPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex">
                                        <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <asp:Panel ID="SearchDetailPanel" runat="server"
                            meta:resourcekey="SearchDetailPanelResource1">
                            <div class="himsBoxContent card-body">
                                <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"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                OnSelectedIndexChanged="ForYearDropDownList_OnSelectedIndexChanged" CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="control LabelWidth">
                                            <asp:Label ID="ForMonthLabel" runat="server" Text="For Month" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ForMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="false" CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <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"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="false" CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="CodeSearchLabel" runat="server"
                                                Text="Code" meta:resourcekey="CodeSearchLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="CodeSearchTextBox" runat="server"
                                                onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                onmouseenter="showHideTooltip()" meta:resourcekey="CodeSearchTextBoxResource1" MaxLength="20"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="NameSearchLabel" runat="server"
                                                Text="Name" meta:resourcekey="NameSearchLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="NameSearchTextBox"
                                                SkinID="CustomWidthTextBox" runat="server"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                meta:resourcekey="NameSearchTextBoxResource1" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentSearchLabel" runat="server"
                                                Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server"
                                                ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" CssClass="form-control">
                                            </asp:DropDownList>
                                            <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <div class="cBoth"></div>
                                    <div class="alignCenter pTop5">
                                        <asp:HiddenField ID="PrintButtonHiddenField" runat="server" />
                                        <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search"
                                            OnClick="SearchButton_Click" SkinID="0" CssClass="btn-search btn fas" />
                                        <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Reset"
                                            OnClick="ClearSearchControls_Click" meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" />
                                        <asp:Button ID="PrintButton" runat="server" Text="&#xf15b; Print"
                                            meta:resourcekey="ClearButtonResource1" OnClick="PrintButton_Click" SkinID="0" CssClass="btn-print btn fas" />
                                        <asp:Button ID="PrintPayslipButton" runat="server" Text="&#xf15b; Print Payslip"
                                            meta:resourcekey="ClearButtonResource1" OnClick="PrintPayslipButton_Click" SkinID="0" CssClass="btn-print btn fas" />
                                        <asp:Button ID="SendMailButton" runat="server" Text="Send Mail"
                                            meta:resourcekey="ClearButtonResource1" OnClick="SendMailButton_Click" SkinID="0" CssClass="btn-assign btn fas" />
                                        <asp:Button ID="UploadPaySlipButton" runat="server" Text="&#xf093; Upload PaySlip"
                                            meta:resourcekey="UploadPaySlipButtonResource1" OnClick="UploadPaySlipButton_Click" SkinID="0" CssClass="btn-upload btn fas" />
                                    </div>
                                    <div class="cBoth"></div>
                                    <br />
                                    <div id="HREmployeeMasterGridDiv" runat="server">
                                        <div class="spacer">
                                            <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif"
                                                meta:resourcekey="Image6Resource1" />
                                        </div>
                                        <div class="himssuHeader7WireBox box-body box-solid gridviewfont">
                                            <div class="himsBoxHeader" id="HREmployeeMasterGridViewPagerDiv" runat="server"
                                                visible="False">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="gridHeaderText fLeft alert alert-info col-md-12">
                                                        <p style="font-size: 15px; text-align: left"><b>Note :</b> Employee Attendance will be considered for active batch.</p>
                                                    </div>
                                                    <div class="col-md-12 pTop10">
                                                        <div class="col-md-5">
                                                            <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                            <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                <asp:ListItem Text="10" Value="10" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                        <div class="fRight pTop10 col-form-label">
                                                            <uc1:GridViewPager ID="HREmployeeMasterGridViewPager" ParentGridView="HREmployeeMasterGridView" runat="server" OnFirstRecordClick="HREmployeeMasterGridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="HREmployeeMasterGridViewPager_LastRecordClick" OnNextRecordClick="HREmployeeMasterGridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="HREmployeeMasterGridViewPager_PrevRecordClick" OnTextBoxValueChange="HREmployeeMasterGridViewPager_TextBoxValueChange" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="himsBoxContent" style="padding-top: 40px !important">
                                                <asp:GridView runat="server" ID="HREmployeeMasterGridView" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="HREmployeeMasterGridView_RowDataBound"
                                                    DataKeyNames="ID,EmployeeId,PayProcessEmployeeId"
                                                    AllowPaging="True" PageSize="10"
                                                    OnSelectedIndexChanged="HREmployeeMasterGridView_SelectedIndexChanged"
                                                    ShowHeader="True" meta:resourcekey="HREmployeeMasterGridViewResource1"
                                                    CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="ID" HeaderText="" Visible="false" />
                                                        <asp:BoundField DataField="MonthTitle" HeaderText="Salary Month" ItemStyle-Width="7%" />
                                                        <asp:BoundField DataField="ForYear" HeaderText="Salary Year" ItemStyle-Width="5%" />
                                                        <asp:BoundField DataField="EmployeeCode" HeaderText="Code" ItemStyle-Width="5%" />
                                                        <asp:BoundField DataField="EmployeeName" HeaderText="Name" ItemStyle-Width="10%" />
                                                        <asp:BoundField DataField="DepartmentName" HeaderText="Department" ItemStyle-Width="5%" />
                                                        <asp:BoundField DataField="WorkingDays" HeaderText="Working Days" ItemStyle-Width="7%" />
                                                        <asp:BoundField DataField="PresentDays" HeaderText="Present Days" ItemStyle-Width="7%" />
                                                        <asp:BoundField DataField="GrossBasic" HeaderText="Gross Basic" ItemStyle-Width="7%" />
                                                        <asp:BoundField DataField="TotalEarning" HeaderText="Total Earning" ItemStyle-Width="7%" />
                                                        <asp:BoundField DataField="TotalDeduction" HeaderText="Total Deduction" ItemStyle-Width="7%" />
                                                        <asp:BoundField DataField="NetAmount" HeaderText="Net Amount" ItemStyle-Width="7%" />
                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1" ItemStyle-Width="10%">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="SelectLinkButton" runat="server" Text="View Pay Element" Enabled="false" OnClick="SelectLinkButtonClick"
                                                                    CausesValidation="False" meta:resourcekey="EditLinkButtonResource1"></asp:LinkButton>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1" ItemStyle-Width="10%">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="ViewPayslipHyperLink" runat="server" Target="_blank" Visible="false">VIew Payslip</asp:HyperLink>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                    <div class="spacer">
                        <img src="../../../Images/spacer.gif" />
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/payprocess-preview-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/payprocess-preview")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
