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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerAutoPostBackControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/Library/LibraryDetailBoxControl.ascx" TagName="LibraryControl" TagPrefix="Library" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <uc1:CommonSearchUserControl ID="CommonSearchControl" Visible="false" runat="server" />
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="EmployeeSearch" 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="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="contentHolder" style="padding-left: 0px; padding-right: 0px; padding-top: 0px">
                        <div class="himssuHeader1WireBox card-box card">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-book"></i>
                                            <asp:Label ID="Label1" runat="server" Text="Book Issue Return"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                                <div class="fRight mt-27">
                                    <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="fal btn btn-back" Text="&#xf30a; Back" />
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <asp:Panel ID="DetailPanel" runat="Server">
                                    <div class="contentHolder">
                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:CheckBox ID="IsMultipleBookBox" runat="server" Text="Multiple Book Issue " />
                                                <%--     <asp:Label ID="IsMultipleBookLabel" runat="server" ></asp:Label>--%>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:CheckBox ID="IsMultipleStudentCheckBox" runat="server" Text="Same Book Issue Other Student " />
                                                <%--     <asp:Label ID="IsMultipleBookLabel" runat="server" ></asp:Label>--%>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="BookCodeLabel" runat="server" Text="Book Code" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5 display-flex">
                                                <asp:TextBox ID="BookCodeTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    MaxLength="25" AutoPostBack="true" OnTextChanged="BookCodeTextBox_TextChanged"> 
                                                </asp:TextBox>
                                                <asp:ImageButton ID="BookCodeSearchButton" runat="server" SkinID="FindImage" ToolTip="Book Code Search"
                                                    TabIndex="2" OnClick="BookCodeSearchButton_OnClick" meta:resourcekey="BookCodeSearchButtonResource1" />
                                                <asp:HiddenField ID="ResourceSourceIdHiddenField" runat="server" />
                                                <asp:HiddenField ID="IsIssueHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="BookNameLabel" Text="Book Name" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="BookNameTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" MaxLength="200" SkinID="CustomWidthTextBox"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="BookStatusLabel" Text="Book Status" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="BookStatusDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div id="SUIdDiv" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SUIdLabel" runat="server" Text="SU Id"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SUIdTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                    AutoPostBack="true" MaxLength="50" OnTextChanged="SUIdTextBox_TextChanged"></asp:TextBox>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="OrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" OnSelectedIndexChanged="OrganizationDropDownList_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="BatchLable" Text="Batch" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                    AutoPostBack="true" OnSelectedIndexChanged="BatchDropDownList_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="BookAuthorLabel" Text="BookAuthor" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:Label ID="DisplayBookAuthorLabel" Text="" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="PublisherLabel" Text="Publisher" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:Label ID="DisPlayPublisherLabel" Text="" runat="server"></asp:Label>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="AssignClassLabel" Text="AssignClass" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:Label ID="DisplayAssignClassLabel" Text="" runat="server"></asp:Label>
                                            </div>
                                        </div>


                                        <div class="pTop5  col-md-12 bg-lghtgrey text-center">

                                            <asp:RadioButtonList class="col-md-4" ID="ReaderSourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                OnSelectedIndexChanged="ReaderSourceTypeRadioButtonList_OnSelectedIndexChanged"
                                                AutoPostBack="true">
                                                <asp:ListItem Text="Student" Value="2003" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                            </asp:RadioButtonList>

                                        </div>

                                        <asp:Panel ID="StudentSearchPanel" runat="server">
                                            <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" />
                                                    <asp:HiddenField ID="ReaderSourceIdHiddenField" runat="server" />
                                                    <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="StudentNameLabel" runat="server" Text="Name"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="StudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="ClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel ID="EmployeeSearchPanel" runat="server" Visible="false">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EmployeeIdNoLabel" runat="server" Text="Code" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5 display-flex">
                                                    <asp:TextBox ID="EmployeeIdNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                        MaxLength="200" AutoPostBack="true" OnTextChanged="EmployeeIdNoTextBox_TextChanged">
                                                    </asp:TextBox>
                                                    <asp:ImageButton SkinID="FindImage" ToolTip="Employee Search" ID="EmployeeIdNoImageButton"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EmployeeNameLabel" runat="server" Text="Name"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="EmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="DepartmentTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <div class="">
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="LogDateLabel" runat="server" Text="Log Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="LogDatePickerControl" runat="server" OnTextChanged="LogDatePickerControl_TextChanged" />
                                                <asp:HiddenField ID="BookLogIdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DueDateLabel" runat="server" Text="Due Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="DueDatePickerControl" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3" id="ReturnDateDiv" runat="server" visible="false">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ReturnDateLabel" runat="server" Text="Return Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ReturnDatePickerControl" runat="server" />
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="PenaltyDaysLabel" Text="Penalty Days" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="PenaltyDaysTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                                <asp:HiddenField ID="IdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="PenaltyRateLabel" Text="Penalty Rate" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="PenaltyRateTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" MaxLength="13"
                                                    onblur="javascript:return fnValidateDecimal(this,10,2)" AutoPostBack="true" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                    OnTextChanged="PenaltyRateTextBox_OnTextChanged"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="PenaltyAmountLabel" Text="Penalty Amount" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="PenaltyAmountTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" MaxLength="13"
                                                    onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="outerBox11 pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="RemarkLabel" Text="Remark" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="RemarkTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="MultiLineTextBox"
                                                    onmouseenter="showHideTooltip()" MaxLength="150" TextMode="MultiLine"
                                                    Height="40PX"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="">
                                        </div>
                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:CheckBox ID="IsLostBook" runat="server" Text="Lost Book" />
                                                <%--<asp:Label ID="IsLostBookLabel" runat="server" Text="Lost Book"></asp:Label>--%>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="LostBookAmountLabel" Text="Lost Book Amount" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="LostBookAmountTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" MaxLength="13"
                                                    onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>
                                            </div>
                                        </div>

                                        <div class="alignCenter col-md-12 pTop15">
                                            <asp:Button ID="IssueButton" SkinID="0" CssClass=" fas btn btn-library m-b-10" runat="Server" Text="&#xf02d; Issue"
                                                OnClick="IssueButton_Click" />
                                            <asp:Button ID="ReturnButton" runat="server" SkinID="0" CssClass="fas btn btn-library m-b-10"
                                                Text="&#xf3e5;  Return" OnClick="ReturnButton_Click" />
                                            <asp:Button ID="RenewButton" runat="server" SkinID="0" Text="&#xf249; Renew" CssClass="btn fas btn-library m-b-10"
                                                OnClick="RenewButton_Click" />
                                            <asp:Button ID="ReserveButton" runat="server" Text="&#xf0e2; Reserve" OnClick="ReserveButton_Click"
                                                SkinID="0" CssClass="fas btn btn-library m-b-10" />
                                            <asp:Button ID="ReleaseButton" runat="server" Text="&#xf02e; Release" OnClick="ReleaseButton_Click"
                                                SkinID="0" CssClass="btn fas btn-library m-b-10" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2;  Clear" SkinID="0" CssClass="btn fas btn-clear m-b-10" OnClick="ResetButton_Click" />
                                            <asp:Button ID="BookListButton" runat="Server" Text="&#xf0ca;  Book List" SkinID="0" CssClass="btn fas btn-library m-b-10" OnClick="BookListButton_Click" />
                                            <asp:Button ID="LostButton" runat="Server" Text="&#xf00d; Lost" SkinID="0" CssClass="btn fas btn-library m-b-10" OnClick="LostButton_Click" />
                                            <asp:Button ID="ReceiptButton" runat="Server" Text="Penalty Receipt" SkinID="0" CssClass="btn btn-info fas" OnClick="ReceiptButton_Click" />
                                        </div>

                                        <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                            <div id="BookListDetailDiv" visible="false" runat="server">

                                                <div id="BookListDiv" visible="false" runat="server">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div align="right" class="fRight" style="margin-top: 0px;">
                                                            <uc1:GridViewPager ID="BookListGridView_GridViewPager" runat="server" OnFirstRecordClick="BookListGridView_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="BookListGridView_GridViewPager_LastRecordClick" OnNextRecordClick="BookListGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="BookListGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="BookListGridView_GridViewPager_TextBoxValueChange"
                                                                ParentGridView="BookListGridView" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">
                                                    <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>
                                                            <div id="Div5" runat="server" visible="false">
                                                                <asp:GridView ID="BookListGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    EmptyDataText="No records found" OnRowDataBound="BookListGridView_RowDataBound"
                                                                    OnPageIndexChanging="BookListGridView_PageIndexChanging" AllowPaging="true" PageSize="5"
                                                                    SkinID="" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="BookLogId,ResourceCode"
                                                                    CssClass="table table-striped table-bordered">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="ViewLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField ItemStyle-Width="30%" ItemStyle-Wrap="true" HeaderText="Book Code"
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" ID="ResourceCodeLabel" SkinID="CustomWidthLabel"
                                                                                    Text='<%# Eval("ResourceCode") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="ResourceName" HeaderText="Book Name" ItemStyle-Width="45%"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="LogDate" HeaderText="Log Date" ItemStyle-Width="10%" DataFormatString="{0:dd/MM/yyyy}"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="DueDate" HeaderText="Due Date" ItemStyle-Width="10%" DataFormatString="{0:dd/MM/yyyy}"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>
                </div>
                </tr>
                    </table>
            </div>
            </div>
            <div class="spacer">
                <img src="../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/book-issuereturn-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/book-issuereturn")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">        //start : mantis : 0048042

        localStorage.bookissuereturntab = Date.now();
        var onLocalStorageEvent = function (e) {
            if (e.key == "bookissuereturntab") {
                // Listen if anybody else opening the same page!
                localStorage.bookissuereturntab_available = Date.now();
            }
            if (e.key == "bookissuereturntab_available") {
                alert("One more page already open");
                window.location = '/Pages/Baseframework/MyDashBoard.aspx';
            }
        };
        window.addEventListener('storage', onLocalStorageEvent, false);

    </script> <%--end : mantis : 0048042--%>
</asp:Content>
