<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Administration_HistoryLog, App_Web_nwm5p3oq" 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/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>


<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <div id="CPDiv">
        <asp:UpdatePanel ID="updPnlHistoryLogGridView" runat="server">
            <ContentTemplate>
                <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server"  />
                <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
                <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="167"
                                                    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>
                            <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                <div class="himsBoxContent card-body">
                                    <div class="contentHolder">
                                        <asp:Panel ID="SearchCriteriaPanel" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchScreenLabel" runat="server" Text="Screen" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="SearchScreenDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        <asp:ListItem Text="- Select -" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="StudentMaster" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="StudentAdmission" Value="2"></asp:ListItem>
                                                        <asp:ListItem Text="StudentCommunication" Value="3"></asp:ListItem>
                                                        <asp:ListItem Text="StudentOther" Value="4"></asp:ListItem>
                                                        <asp:ListItem Text="StudentFamily" Value="5"></asp:ListItem>
                                                        <asp:ListItem Text="StudentHealth" Value="6"></asp:ListItem>
                                                        <asp:ListItem Text="StudentSibling" Value="7"></asp:ListItem>
                                                        <asp:ListItem Text="StudentAdditional" Value="8"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="StudentIdNoLabel" runat="server" Text="Id No" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5 display-flex">
                                                    <asp:TextBox ID="StudentIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="true" OnTextChanged="StudentIdNoTextBox_TextChanged">
                                                    </asp:TextBox>
                                                    <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentIdNoImageButton"
                                                        runat="server" ImageUrl="../../Images/icons/icon_find.gif" />
                                                    <asp:LinkButton ID="StudentAddGetImageButton" runat="server" ToolTip="Get Student Code"
                                                        Visible="false">
                                                                <i class="fa fa-refresh" style="font-size:1.5em;padding-left:3px;color:black"></i>
                                                    </asp:LinkButton>
                                                    <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                                    <asp:HiddenField ID="ClassIdHiddenField" runat="server" />
                                                    <asp:HiddenField ID="ReceiptIdHiddenField" runat="server" />
                                                    <asp:HiddenField ID="DeleteHiddenField" runat="server" />
                                                    <asp:HiddenField ID="RedirectHiddenField" runat="server" />
                                                </div>
                                            </div>
                                            <%--<div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchFilterByLabel" runat="server" Text="Filter By"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="SearchFilterByDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="SearchFilterByDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                        <asp:ListItem Text="--Select--" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="Student" Value="2003"></asp:ListItem>
                                                        <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>--%>
                                            <%-- <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchCodeLabel" runat="server" Text="Code"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" SkinID="CustomWidthTextbox" onkeypress="OnlyNumericEntry()"></asp:TextBox>
                                                </div>
                                            </div>--%>
                                            <div class="cBoth">
                                            </div>
                                            <div class="alignCenter pTop5">
                                                <asp:Button ID="SearchButton" runat="server"
                                                    CausesValidation="False" TabIndex="3" SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" OnClick="SearchButton_Click" />
                                                <asp:Button ID="ClearSearchButton" runat="server"
                                                    Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" CausesValidation="False" TabIndex="4" meta:resourcekey="ClearSearchButtonResource1" OnClick="ClearSearchButton_Click" />
                                            </div>
                                            <br />
                                        </asp:Panel>
                                        <div id="Div1" class="himssuHeader1WireBox col-md-12 pTop5" runat="server">
                                            <div id="HistoryLogDetailDiv" visible="true" runat="server">
                                                <div id="PatientRelationDiv" visible="false" runat="server">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent table-responsive">
                                                    <asp:UpdatePanel ID="HistoryLogUpdatePanel" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>

                                                            <div id="Div5" runat="server" visible="true">
                                                                <div id="HistortHeaderDiv" runat="server"></div>
                                                                <asp:GridView ID="HistoryLogGridView" runat="server" AutoGenerateColumns="False"
                                                                    OnRowDataBound="HistoryLogGridView_RowDatabound" CellPadding="0" CellSpacing="0"
                                                                    AllowPaging="false" SkinID="" ShowHeader="false" EmptyDataText="No Records Found !!" PagerSettings-Visible="false" CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <%--<asp:TemplateField HeaderText="Name" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="NameLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Name")%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>--%>
                                                                        <%--<asp:TemplateField HeaderText="First Name" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="FirstNameLabel" runat="server">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Middle Name" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="MiddleNameLabel" runat="server">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Last Name" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LastNameLabel" runat="server">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Status" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="StatusLabel" runat="server">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>--%>

                                                                        <asp:TemplateField HeaderText="Audit Entry" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <div id="HistortDetailsDiv" runat="server"><%# DataBinder.Eval(Container.DataItem,"AuditEntry")%></div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/history-log")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>

