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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="UploadBookLogUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top" runat="server" id="ScreenGroupTableId">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl1" ScreenGroupId="114"
                                                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" id="Div4" runat="server" visible="True">

                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-list-ul"></i>
                                        <asp:Label ID="Label4" Text="My Book List" runat="server" />
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                             <div class="contentHolder">
                                <div class="tableContainer">
                                    <div class="contentHolder">
                                        <cc1:TabContainer Width="100%" ID="BookListTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                            meta:resourcekey="BookListTabContainerResource1" ActiveTabIndex="0">
                                           <%-- <asp:Panel ID="DetailPanel" runat="Server">--%>
                                        <cc1:TabPanel Width="100%" ID="BookListDetails" runat="server" HeaderText="Circular">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-check-circle"></i>&nbsp;My Books</a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="himssuHeader6WireBox col-md-12">
                                                        <div class="himsBoxHeader" id="UploadBookLogListGridViewPagerDiv" runat="server"
                                                            visible="true">
                                                            <div class="leftdiv">
                                                            </div>
                                                        </div>
                                                      
                                                        <div class="himsBoxContent card-body table-responsive">
                                                            <asp:GridView runat="server" ID="UploadBookLogListGridView" AutoGenerateColumns="False" CssClass="table table-striped table-bordered table-hover"
                                                                EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="UploadBookLogListGridView_RowDataBound"
                                                                DataKeyNames="BookLogId" ShowHeader="true" meta:resourcekey="UploadBookLogListGridViewResource1">
                                                                <Columns>
                                                                    <asp:BoundField DataField="BookTitle" HeaderText="Book Name" ItemStyle-Width="40%"
                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="IssueDate" HeaderText="Issue Date" DataFormatString="{0:dd/MM/yyyy}"
                                                                        ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                  
                                                                    <asp:TemplateField ItemStyle-Width="7%" HeaderText="Status" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatusNameLabel" runat="server" Text='<%# Bind("StatusName") %>' Font-Bold="true" SkinID="CustomWidthLabel"></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatusIdLabel" runat="server" Text='<%# Bind("StatusId") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Due Date" ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DueDateLabel" runat="server"></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                          <%--  </asp:Panel>--%>

                                              <cc1:TabPanel Width="100%" ID="TabPanel1" ClientIDMode="Static" runat="server"
                                                HeaderText="Assign To">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-tasks"></i>&nbsp;Reserve Book</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                       <asp:HiddenField runat="server" ID="ResourceSourceIdHiddenField" />
                                                       <asp:HiddenField runat="server" ID="LogDateHiddenField" />
                                                       <asp:HiddenField runat="server" ID="DueDateHiddenField" />
                                                         <div class="outerBox col-md-3 pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="LibraryLabel" runat="server" Text="Library" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft">
                                                                <asp:DropDownList ID="LibraryDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                    cssclass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="TitleLabel" runat="server" Text="Book(Name,Publisher,Author)"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="PublisherTextBox" 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="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,ReaderSourceId" ShowHeader="true" meta:resourcekey="BookListGridViewResource1"
                                                                CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="11%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="31%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Subject" HeaderText="Subject" ItemStyle-Width="11%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Author" HeaderText="Author" ItemStyle-Width="11%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Publisher" HeaderText="Publisher" ItemStyle-Width="11%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Language" HeaderText="Language" ItemStyle-Width="11%"
                                                                        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="10%" 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>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                    </cc1:TabContainer>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                </tr>
                    </table>
            </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>
