<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_FeeManagement_AssignExemptionType, App_Web_0ukjfug0" 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" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="AssignOptionalFeeUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="104"
                                Visible="true" runat="server" />
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <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>
                            <div class="fRight mt-27 pagination display-flex">
                                <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="Panel3" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="AssignExemptionTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default"
                                            AutoPostBack="true" meta:resourcekey="AssignOptionalFeeTabContainerResource1"
                                            ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="AssignExemptionType" runat="server" HeaderText="Assign Exemption Type">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="far fa-check-circle"></i></i>Assign Exemption Type </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="himssuHeader1WireBox">
                                                            <asp:Panel ID="DetailPanel" runat="server">
                                                                <div class="contentHolder">
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <asp:Panel ID="SearchCriteriaPanel" runat="server">
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="OrganizationLabel" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                                                    class="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" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="BatchDropDownList_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="ExemptionTypeLabel" runat="server" Text="Exemption Type"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="ExemptionTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()">
                                                                                </asp:DropDownList>
                                                                            </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:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3 ">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="GenderLabel" runat="server" Text="Gender"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="GenderDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="CastCategoryLabel" runat="server" Text="Caste Category"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="CastCategoryDropDownList" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="AdmissionCategoryLabel" runat="server" Text="Fees Category"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="AdmissionCategoryDropDownList" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>

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

                                                                        <div class="outerBox pTop5 col-md-6">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="SearchCodeLabel" runat="server" Text="ID No <b>[Add ID No with . Dot seperation (Eg. 2. 5. 10)]</b>"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:TextBox ID="SearchCodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                                    SkinID="CustomWidthTextBox" Width="440px" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                            </div>
                                                                        </div>

                                                                        <div class="alignCenter col-md-12 pTop15 pb5">
                                                                            <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click" Text="&#xf002; Search" SkinID="0" CssClass="btn-search btn fas" />
                                                                            <asp:Button ID="ResetButton" runat="server" OnClick="ResetButton_Click" Text="&#xf0e2; Reset" SkinID="0" CssClass="btn-reset btn fas" />
                                                                            <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" SkinID="0" CssClass="btn-examcommon btn fas" OnClick="ExportButton_Click" />
                                                                        </div>
                                                                    </asp:Panel>
                                                                    <div class="spacer">
                                                                        <asp:Image ID="Image11" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                                    </div>
                                                                    <div class="himssuHeader6WireBox">
                                                                        <div id="AssignExemptionTypeDetailDiv" runat="server" visible="False">
                                                                            <div class="spacer">
                                                                                <asp:Image ID="Image14" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image14Resource1" />
                                                                            </div>
                                                                            <div class="himsBoxHeader pTop5" id="GridViewPagerDiv" runat="server" visible="False">
                                                                                <div class="leftdiv">
                                                                                </div>
                                                                                <div class="himsBoxTitle">
                                                                                    <%-- <div class="gridHeaderText pLeft10">
                                                                                        <asp:Label ID="GridViewLabel" Text="Available Student List" runat="server" />
                                                                                    </div>--%>
                                                                                    <div class="pull-right col-md-4 display-flex">
                                                                                        <asp:DropDownList ID="ExemptionTypeDropDownList1" runat="server" onmouseleave="showHideTooltip()"
                                                                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                                                                        </asp:DropDownList>
                                                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                                                        <asp:Button ID="ApplyButton1" runat="server" OnClick="ApplyButton1_Click" Text="Apply"
                                                                                            SkinID="0" CssClass="btn btn-apply fas" />
                                                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                                                        <asp:Button ID="SaveButton" runat="server" class="buttonLBlue" OnClick="SaveButton_Click"
                                                                                            Text="&#xf0c7; Save" SkinID="0" CssClass="btn btn-save fas" />
                                                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                                                        <asp:Button ID="DeleteExemptionTypeButton" runat="server" class="buttonLBlue" OnClick="DeleteExemptionTypeButton_Click"
                                                                                            Text="&#xf2ed; Delete" SkinID="0" CssClass="btn btn-danger fas" OnClientClick="if ( !confirm('Are you sure you want to delete this Assign Exemption Type?')) return false;" />
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="himsBoxContent box-body box-solid gridviewfont">
                                                                                <div id="Div5" runat="server" visible="False" class="table-responsive">
                                                                                    <asp:GridView ID="AssignExemptionTypeGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                        EmptyDataText="No Records Found !!" DataKeyNames="AcademicId,ExemptionTypeId"
                                                                                        CssClass="table table-striped table-bordered table-hover" OnRowDataBound="AssignExemptionTypeGridView_RowDataBound">
                                                                                        <Columns>
                                                                                            <%-- start mantis : 0040856--%>
                                                                                            <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%"
                                                                                                ItemStyle-Wrap="true">
                                                                                                <HeaderTemplate>
                                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                                            Visible="true" OnCheckedChanged="HeaderSelectCheckBox_checked" />
                                                                                                        <span></span>
                                                                                                    </label>
                                                                                                </HeaderTemplate>
                                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                                                <ItemTemplate>
                                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                                        <asp:CheckBox ID="SelectCheckBox" AutoPostBack="true" runat="server" />

                                                                                                        <span></span>
                                                                                                    </label>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                            <%-- end mantis : 0040856--%>
                                                                                            <asp:BoundField DataField="Class" HeaderText="Class">
                                                                                                <ItemStyle Width="15%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:BoundField DataField="RollNo" HeaderText="Roll No.">
                                                                                                <ItemStyle Width="10%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:TemplateField ItemStyle-Width="15%">
                                                                                                <ItemTemplate>
                                                                                                    <asp:Label ID="IdNoLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>

                                                                                            <asp:BoundField DataField="Name" HeaderText="Name">
                                                                                                <ItemStyle Width="45%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:TemplateField HeaderText="Exemption Type">
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle HorizontalAlign="Left" Width="15%" Wrap="True" />
                                                                                                <ItemTemplate>
                                                                                                    <asp:DropDownList ID="GExemptionTypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                                        onmouseenter="showHideTooltip()" class="form-control">
                                                                                                    </asp:DropDownList>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                        </Columns>
                                                                                        <PagerSettings Visible="False" />
                                                                                    </asp:GridView>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="ApplyExemptionTypeTabPanel" runat="server" HeaderText="Apply Exemption Type">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="far fa-check-circle"></i></i>Apply Exemption Type </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="himssuHeader1WireBox">
                                                            <asp:Panel ID="DetailPanel1" runat="server">
                                                                <div class="contentHolder">
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <asp:Panel ID="SearchCriteriaPanel1" runat="server">
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="OrganizationLabel1" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="OrganizationDropDownList1" runat="server" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                                                    class="form-control" OnSelectedIndexChanged="OrganizationDropDownList1_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="BatchLable1" Text="Batch" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="BatchDropDownList1" runat="server" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="BatchDropDownList1_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="Label2" runat="server" Text="Exemption Type"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="ExemptionTypeDropDownList2" SkinID="CustomWidthDropDownList"
                                                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="cBoth">
                                                                        </div>
                                                                        <div class="alignCenter col-md-12 pTop15 pb5">
                                                                            <asp:Button ID="ApplyButton" Text="Apply" runat="Server" OnClick="ApplyButton_Click"
                                                                                SkinID="0" CssClass="btn-apply btn fas" />
                                                                            <asp:Button ID="ClearButton1" runat="server" Text="&#xf0e2; Clear" OnClick="ClearButton1_Click" SkinID="0" CssClass="btn-reset btn fas" />
                                                                        </div>
                                                                        <div class="cBoth">
                                                                        </div>
                                                                    </asp:Panel>
                                                                    <div class="spacer">
                                                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </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>
