<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Library_IssueSetting, App_Web_imfpzbtq" 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/Common/Library/LibraryDetailBoxControl.ascx" TagName="LibraryControl" TagPrefix="Library" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" 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" id="Div6" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                        <asp:Label ID="Label2" Text="Maintainance" runat="server" />
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="Panel3" runat="Server">
                                <div class="contentHolder">
                                    <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="himsBoxTitle pTop12 col-md-12">

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="NoOfBookIssuableLabel" Text="No Of Book Issuable" runat="server"></asp:Label>
                                            </div>
                                            <asp:TextBox ID="NoOfBookIssuableTextBoxA" runat="server" SkinID="CustomWidthTextBox" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="IssueDaysLabel" Text="Issue Days" runat="server"></asp:Label>
                                            </div>
                                            <asp:TextBox ID="IssueDaysTextBoxA" runat="server" SkinID="CustomWidthTextBox" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="PenaltyPerDayLabel" Text="Penalty Per Day" runat="server"></asp:Label>
                                            </div>
                                            <asp:TextBox ID="PenaltyPerDayTextBoxA" runat="server" SkinID="CustomWidthTextBox" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>

                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ReserveDaysLabel" Text="Reserve Days" runat="server"></asp:Label>
                                            </div>
                                            <asp:TextBox ID="ReserveDaysTextBoxA" runat="server" SkinID="CustomWidthTextBox" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>

                                        </div>


                                        <div class="col-md-12 text-center  pb15 pTop15">
                                            <asp:Button ID="ApplyAllButton" runat="server" SkinID="0" Text="Apply All" CssClass="btn btn-apply" OnClick="ApplyAllButton_Click" />
                                            <%--<asp:Button ID="ApplyAllClassButton" runat="server" SkinID="0" Text="Apply All Class" CssClass="btn btn-apply" OnClick="ApplyAllClassButton_Click" />
                                            <asp:Button ID="ApplyAllDepartmentButton" runat="server" SkinID="0" Text="Apply All Department" CssClass="btn btn-apply" OnClick="ApplyAllDepartmentButton_Click" />--%>
                                        </div>


                                    </div>


                                    <div class="tableContainer col-md-12  padd-0" runat="server" visible="false">
                                        <cc1:TabContainer Width="100%" ID="IssueSettingTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                            meta:resourcekey="IssueSettingTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="ClassTabPanel" runat="server" HeaderText="Class">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-graduation-cap"></i>&nbsp;Class </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder col-md-12">
                                                        <div class="himsBoxContent table-responsive width-100 pTop10">
                                                            <asp:GridView ID="ClassGridView" runat="server" class="himssuHeader7WireBox " AutoGenerateColumns="False"
                                                                EmptyDataText="No Records Found !!" DataKeyNames="SourceTypeId,SourceId"
                                                                CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:BoundField DataField="ClassDept" HeaderText="Class">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="70%" />
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField HeaderText="No Of Book Issuable">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="NoOfBookIssuableTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("NoOfBookIssuable") %>'
                                                                                onkeypress="javascript:return isNumberKey(this)">
                                                                            </asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="10%" Wrap="True" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Issue Days">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="IssueDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("IssueDays") %>'
                                                                                onkeypress="javascript:return isNumberKey(this)">
                                                                            </asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="10%" Wrap="True" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Penalty Per Day">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="PenaltyPerDayTextBox" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"PenaltyPerDay").ToString()=="0"? "0.00":Eval("PenaltyPerDay") %>'
                                                                                MaxLength="13" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="10%" Wrap="True" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Reserve Days">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ReserveDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("ReserveDays") %>'
                                                                                onkeypress="javascript:return isNumberKey(this)">
                                                                            </asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="10%" Wrap="True" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="DepartmentTabPanel" ClientIDMode="Static" runat="server"
                                                HeaderText="Department">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-book"></i>&nbsp;Department </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder col-md-12">
                                                        <div class="himsBoxContent width-100 pTop10 table-responsive">
                                                            <asp:GridView ID="DepartmentGridView" runat="server" class="himssuHeader7WireBox " AutoGenerateColumns="False"
                                                                EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="SourceTypeId,SourceId"
                                                                CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:BoundField DataField="ClassDept" HeaderText="Department" ItemStyle-Width="70%"
                                                                        HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                    <asp:TemplateField HeaderText="No Of Book Issuable" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="NoOfBookIssuableTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("NoOfBookIssuable") %>'
                                                                                onkeypress="javascript:return isNumberKey(this)">
                                                                            </asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Issue Days" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="IssueDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("IssueDays") %>'
                                                                                onkeypress="javascript:return isNumberKey(this)">
                                                                            </asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Penalty Per Day" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="PenaltyPerDayTextBox" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"PenaltyPerDay").ToString()=="0"? "0.00":Eval("PenaltyPerDay") %>'
                                                                                MaxLength="13" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Reserve Days" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ReserveDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("ReserveDays") %>'
                                                                                onkeypress="javascript:return isNumberKey(this)">
                                                                            </asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>

                                    <div id="MultipleDiv" runat="server" visible="true">

                                        <div class="col-md-12 bg-lghtgrey radiobtn">

                                            <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                OnSelectedIndexChanged="SourceTypeRadioButtonList_OnSelectedIndexChanged" AutoPostBack="true">
                                                <asp:ListItem Text="Student" Value="2003" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                            </asp:RadioButtonList>

                                        </div>

                                        <div class="cBoth"></div>


                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DepartmentLabel" Text="Department" runat="server"></asp:Label>
                                            </div>
                                            <div class="">
                                                <asp:DropDownList ID="DepartmentDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                    OnSelectedIndexChanged="DepartmentDropDownList_OnSelectedIndexChanged" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ClassLabel" Text="Class" runat="server"></asp:Label>
                                            </div>
                                            <div class="">
                                                <asp:DropDownList ID="ClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                    OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DivisionLabel" Text="Division" runat="server"></asp:Label>
                                            </div>
                                            <div class="">
                                                <asp:DropDownList ID="DivisionDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                    OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>


                                    <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server"
                                        visible="true">
                                        <div class="himsBoxHeader" id="Div8" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText ">
                                                    <asp:Label ID="SourceInitGridViewLabel" Text="&nbsp;" runat="server" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent table-reponsive">
                                            <div id="Div10" class="himsBoxContentMsg" runat="server" visible="False">
                                            </div>
                                            <asp:GridView ID="SourceInitGridView" runat="server" AutoGenerateColumns="False"
                                                Width="100%" CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!"
                                                DataKeyNames="SourceId,SourceTypeId,SourceType">
                                                <Columns>

                                                    <asp:TemplateField>
                                                        <HeaderTemplate>
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="HeaderIsSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </HeaderTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                        <ItemTemplate>
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="Source">
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <ItemStyle Width="35%" />
                                                    </asp:BoundField>
                                                    <asp:TemplateField HeaderText="No Of Book Issuable" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="NoOfBookIssuableTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("NoOfBookIssuable") %>'
                                                                onkeypress="javascript:return isNumberKey(this)">
                                                            </asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Issue Days" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="IssueDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("IssueDays") %>'
                                                                onkeypress="javascript:return isNumberKey(this)">
                                                            </asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Penalty Per Day" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="PenaltyPerDayTextBox" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"PenaltyPerDay").ToString()=="0"? "0.00":Eval("PenaltyPerDay") %>'
                                                                MaxLength="13" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Reserve Days" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="ReserveDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("ReserveDays") %>'
                                                                onkeypress="javascript:return isNumberKey(this)">
                                                            </asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/issue-setting-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/issue-setting")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
