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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/Library/LibraryDetailBoxControl.ascx" TagName="LibraryControl" TagPrefix="Library" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="BookSearchUpdatePanel" 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="174"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <Library:LibraryControl ID="LibraryUserControl" runat="server" Visible="true" />
                                <div class="himssuHeader1WireBox 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>
                                        </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="CodeLabel" runat="server" Text="Code"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="50" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="TitleLabel" runat="server" Text="Title"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="TitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SupplierLabel" runat="server" Text="Supplier"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="SupplierTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                               
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="PublisherLabel" runat="server" Text="Publisher"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="PublisherTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="AuthorLabel" runat="server" Text="Author"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="AuthorTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Subject" runat="server" Text="Subject"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="SubjectTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                               
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="LanguageLabel" runat="server" Text="Language"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="LanguageTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                           runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="LocationLabel" runat="server" Text="Location"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="LocationTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                           runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="EditionLabel" runat="server" Text="Edition"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="EditionTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="50" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                               
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ISBNNumberLabel" runat="server" Text="ISBN Number"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="ISBNNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="BookTagLabel" runat="server" Text="Book Tag"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="BookTagTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="BookCustomTagLabel" runat="server" Text="Book Custom Tag"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="BookCustomTagTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="AgeGroupLabel" runat="server" Text="Book Age Group"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="AgeGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ResourceTypeLabel" runat="server" Text="Resource Type"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="ResourceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="BookStatusLabel" runat="server" Text="Status"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="BookStatusDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                
                                                <div class="alignCenter pTop5 col-md-12 center">
                                                    <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                        SkinID="0" class="btn-search btn fas" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" 
                                                        SkinID="0" class="btn-reset btn fas" />
                                                </div>
                                                
                                                <div id="BookListGridDiv" runat="server">
                                                   
                                                    <div class="himssuHeader6WireBox col-md-12">
                                                        <div class="himsBoxHeader" id="BookListGridViewPagerDiv" runat="server">
                                                           <%-- <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="gridHeaderText">
                                                                <header>
                                                                <asp:Label ID="AssignRouteLabel" runat="server" Text="Book Search All"></asp:Label>
                                                                </header>
                                                                </div>
                                                            </div>--%>
                                                            <div class="fRight">
                                                                <uc1:GridViewPager ID="BookListGridViewPager" ParentGridView="BookListGridView" runat="server"
                                                                    OnFirstRecordClick="BookListGridViewPager_FirstRecordClick" OnLastRecordClick="BookListGridViewPager_LastRecordClick"
                                                                    OnNextRecordClick="BookListGridViewPager_NextRecordClick" OnPrevRecordClick="BookListGridViewPager_PrevRecordClick"
                                                                    OnTextBoxValueChange="BookListGridViewPager_TextBoxValueChange" />
                                                            </div>
                                                            
                                                        </div>
                                                        <div class="himsBoxContent pTop10 table-responsive">
                                                            <asp:GridView runat="server" ID="BookListGridView"  AutoGenerateColumns="False"
                                                                EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="BookListGridView_RowDataBound"
                                                                AllowPaging="True" PageSize="10" DataKeyNames="BookId" ShowHeader="true" meta:resourcekey="BookListGridViewResource1"
                                                                CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="31%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Author" HeaderText="Author" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Location" HeaderText="Location" ItemStyle-Width="15%"
                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:TemplateField HeaderText="Status">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatusNameLabel" runat="server" Text='<%#((Sapphire.Vidyalaya.BusinessEntity.Business.LibraryBE.Book)Container.DataItem).StatusName %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatusIdLabel" runat="server" Text='<%#((Sapphire.Vidyalaya.BusinessEntity.Business.LibraryBE.Book)Container.DataItem).StatusId %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField ItemStyle-Width="0%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                        Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="ViewLinkButton" runat="server" CommandName="Select" OnClick="ViewLinkButton_Click"
                                                                                Text="View" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField ItemStyle-Width="9%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="ReserveLinkButton" runat="server" CommandName="Select" OnClick="ReserveLinkButton_Click"
                                                                                Text="Reserve" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                   
                                </div>
                            </div>
                   
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>
