<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_LeaveBalanceLog, App_Web_0uq4yejd" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl"
    TagPrefix="hims" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <div id="CPDiv">
        <asp:UpdatePanel ID="updPnlSearchGridView" runat="server">
            <ContentTemplate>
                <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
                <div id="divContentPage" class="divcontentpagemargin">

                    <div class="dashBoardLeftCont" valign="top">
                        <div class="himssuHeader3WireBox">
                            <%--<div class="himsBoxHeader">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>
                                                </div>
                                            </div>
                                        </div>--%>
                            <table width="0px" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <div class="himsBoxContent">
                                            <div class="leftUlMenu">
                                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="163"
                                                    Visible="true" runat="server" />
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="row whiteboxpaddingleft">
                        <div class="himssuHeader5WireBox card card-box" runat="server" id="SearchDiv">
                            <div class="himsBoxHeader card-head">
                                <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-search"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Search" meta:resourcekey="Label1Resource1"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                            <div class="himsBoxContent card-body">
                                <asp:Panel ID="DetailPanel" runat="Server">
                                    <div class="contentHolder">
                                        <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchEmployeeCodeLabel" runat="server" Text="Employee Code"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5 display-flex">
                                                    <asp:TextBox ID="SearchEmployeeCodeTextBox" SkinID="CustomWidthTextBox"
                                                        runat="server" MaxLength="20" AutoPostBack="true" OnTextChanged="SearchEmployeeCodeTextBox_TextChanged"> </asp:TextBox>
                                                    <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="SearchEmployeeCodeImageButton" runat="server"
                                                        ImageUrl="../../../../Images/icons/icon_find.gif" OnClick="SearchEmployeeCodeImageButton_Click" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchEmployeeNameLabel" runat="server" Text="Employee Name"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SearchEmployeeNameTextBox" SkinID="CustomWidthTextBox"
                                                        runat="server" MaxLength="20"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchEmployeeTypeLabel" Text="Leave Type" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchEmployeeLeaveTypeDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchLeaveTransactionLabel" Text="Transaction Screen" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchLeaveTransactionDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchFromReportDateLabel" runat="server" Text="From Date"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromReportDatePickerControl"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchToReportDateLabel" runat="server" Text="To Date"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToReportDatePickerControl"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="alignCenter pTop5">
                                                <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click"
                                                    SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                                <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                             <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" SkinID="0" CssClass="btn-examcommon btn fas" OnClick="ExportButton_Click"  />
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                        </asp:Panel>
                                        <div id="Div1" class="himssuHeader7WireBoxcol pTop15 col-md-12" runat="server">
                                            <div id="LeaveBalanceAddDiv" visible="false" runat="server">
                                                <div class="himsBoxContent">
                                                    <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>
                                                            <div id="Div5" runat="server" visible="false">
                                                                <div id="Div4" runat="server" class="table-responsive">
                                                                    <asp:GridView ID="LeaveBalanceLogGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        CssClass="table table-striped table-bordered table-hover" OnRowDataBound="LeaveBalanceLogGridView_RowDataBound" ShowHeader="true" PagerSettings-Visible="false">
                                                                        <Columns>
                                                                         <%--   <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />

                                                                            <asp:BoundField DataField="EmployeeName" HeaderText="Name" ItemStyle-Width="10%"
                                                                                HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:BoundField DataField="DepartmentName" HeaderText="Department" ItemStyle-Width="10%"
                                                                                HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:BoundField DataField="LeaveTypeName" HeaderText="Leave Type" ItemStyle-Width="10%"
                                                                                HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:BoundField DataField="LogDate" HeaderText="Date" DataFormatString="{0:dd/MM/yyyy hh:mm tt}"
                                                                                ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                            <%-- <asp:BoundField DataField="BalanceLeave"  HeaderText="Current Leave" ItemStyle-Width="5%"
                                                                                HeaderStyle-HorizontalAlign="Left" />--%>

                                                                            <%-- <asp:TemplateField HeaderText="Current Leave" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="CurrentLeaveLabel" Text='<%#Eval("BalanceLeave")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>--%>
                                                                              <%--<asp:BoundField DataField="TransactionLeave" HeaderText="Transaction Leave" ItemStyle-Width="5%"
                                                                                HeaderStyle-HorizontalAlign="Left" />--%>
                                                                            <%--                                                                            <asp:BoundField DataField="TransactionCount" HeaderText="Transaction Count" ItemStyle-Width="5%"
                                                                                HeaderStyle-HorizontalAlign="Left" />--%>
                                                                            
                                                                          <%--  <asp:BoundField DataField="UpdatedBalance" HeaderText="Updated Balance" ItemStyle-Width="5%"
                                                                                HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:BoundField DataField="Remark" HeaderText="Remark" ItemStyle-Width="20%"
                                                                                HeaderStyle-HorizontalAlign="Left" />--%>
                                                                              <%--  <asp:BoundField DataField="LeaveTransactionType" HeaderText="Transaction Screen" ItemStyle-Width="10%"
                                                                                HeaderStyle-HorizontalAlign="Left" />
                                                                          --%>
 
                                                                             <asp:TemplateField HeaderText="Code" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="CodeLabel" Text='<%#Eval("Code")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>

                                                                             <asp:TemplateField HeaderText="Name" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="NameLabel" Text='<%#Eval("EmployeeName")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>

                                                                              <asp:TemplateField HeaderText="DepartmentName" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="DepartmentLabel" Text='<%#Eval("DepartmentName")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>

                                                                             <asp:TemplateField HeaderText="Leave Type" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="LeaveTypeLabel" Text='<%#Eval("LeaveTypeName")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>

                                                                              <asp:TemplateField HeaderText="Transaction Screen" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="TransactionScreenLabel" Text='<%#Eval("LeaveTransactionType")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>

                                                                               <asp:TemplateField HeaderText="Date" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="DateLabel" Text='<%#Eval("LogDate")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>

                                                                             <asp:TemplateField HeaderText="Current Leave" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="CurrentLeaveLabel" Text='<%#Eval("BalanceLeave")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>

                                                                           
                                                                             <asp:TemplateField HeaderText="Transaction Count" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="TransactionCountLabel" Text='<%#Eval("TransactionCount")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>

                                                                          

                                                                            <asp:TemplateField HeaderText="Transaction Leave" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="TransactionLeaveLabel" Text='<%#Eval("TransactionLeave")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>


                                                                          

                                                                            <asp:TemplateField HeaderText="Available Balance" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="UpdatedBalanceLabel" Text='<%#Eval("UpdatedBalance")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderText="Remark" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="RemarkLabel" Text='<%#Eval("Remark")%>' ClientIDMode="Static" runat="server"></asp:Label>
                                                                                </ItemTemplate>

                                                                            </asp:TemplateField>


                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>

                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
