<%@ page language="C#" autoeventwireup="true" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" inherits="Pages_FeeManagement_FeeExpenseBulk, App_Web_qez54o55" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="DPC" %>
<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="104"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <asp:Label ID="MainScreenLabel" runat="server" Text="Fee Opening"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body padd-0">
                            <asp:Panel ID="Panel3" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="FeeOpeningTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default"
                                            AutoPostBack="true" meta:resourcekey="FeeOpeningTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="FeeOpeningTabPanel" runat="server" HeaderText="Fee Opening">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Fee Opening </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="DetailPanel" runat="Server">
                                                        <div class="contentHolder">

                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="ClassLabel" runat="server" Text="Class" SkinID="MandatoryLabel"></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" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                                        class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                              <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="AdmissionCategoryLabel" runat="server" SkinID="MandatoryLabel" Text="Fees Category"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="AdmissionCategoryDropDownList" SkinID="CustomWidthDropDownList"
                                                                            onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                                            AutoPostBack="true" OnSelectedIndexChanged="AdmissionCategoryDropDownList_SelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="FeeLabel" runat="server" Text="Fee" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList runat="server" ID="FeeSetupDropDownList" SkinID="CustomWidthDropDownList"
                                                                        class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        OnSelectedIndexChanged="FeeSetupDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                               

                                                            <div id="FeeExpenseBulkDetailDiv" runat="server" visible="false" class="">
                                                                <div class="himsBoxHeader card-head inner">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="pull-right col-md-6 display-flex">
                                                                            <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList" CssClass="form-control mt-10">
                                                                                <asp:ListItem Text="- Select -" Value="-1" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="Opening Amount" Value="1"></asp:ListItem>
                                                                            </asp:DropDownList>
                                                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="15"
                                                SkinID="CustomWidthTextBox" CssClass="pTop5" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return fnValidateDecimal(this,10,2)"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Button ID="ApplyAllButton" runat="server" OnClick="ApplyAllButton_Click"
                                                Text="Apply All" SkinID="0" CssClass="btn btn-apply mt-10" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="alignCenter col-md-12 pTop15 pb5">
                                                                    <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn-examcommon btn fas" />
                                                                </div>
                                                                <div class="himssuHeader6WireBox box-body box-solid">
                                                                    <div class="himsBoxContent gridviewfont">
                                                                        <asp:GridView ID="FeeOpeningGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                            EmptyDataText="No Records Found !!" AllowPaging="False" DataKeyNames="FeeOpeningId,AcademicId" ShowHeader="True"
                                                                            ShowFooter="false" CssClass="table table-striped table-bordered">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%"
                                                                                    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" Checked='<%# Bind("IsChecked") %>' OnCheckedChanged="SelectCheckBox_Checked" runat="server" />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="40%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:BoundField DataField="ClassDivision" HeaderText="Class - Division" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:TemplateField ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderText="Opening Amount">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="OpeningAmountTextBox" Text='<%# Bind("OpeningAmount") %>' runat="server" HeaderStyle-HorizontalAlign="Left" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return fnValidateDecimal(this,10,2)" Enabled='<%# Bind("IsChecked") %>'> </asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="ImportFeeOpeningTabPanel" runat="server" HeaderText="Import Fee Opening">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Import Fee Opening</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="DetailPanel2" runat="server">
                                                        <div class="contentHolder">
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="OrganizationLabel2" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="OrganizationDropDownList2" runat="server" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                                        class="form-control" OnSelectedIndexChanged="OrganizationDropDownList2_OnSelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="BatchLable2" Text="Batch" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="BatchDropDownList2" runat="server" onmouseleave="showHideTooltip()" OnSelectedIndexChanged="BatchDropDownList2_SelectedIndexChanged"
                                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control" AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                                  <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="FeeExpenseLabel" Text="Fee" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="FeeExpenseDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="cBoth"></div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:HyperLink ID="HyperLink1" runat="server" Text="Download Template" NavigateUrl="~/ContentTemplates/Import/FeeOpening_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth"><a class="btn btn-browser" href="javascript:;" onclick="OpenFileUpload();"><i class="fa fa-arrow-down"></i>Browse</a><asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" /></div>
                                                                <br />
                                                            </div>
                                                            <div class="alignCenter col-md-12 pTop15 pb5">
                                                                <asp:Button ID="ImportButton" runat="server" OnClick="ImportButton_Click" Text="&#xf019; Import" SkinID="0" CssClass="btn-examcommon btn fas" />
                                                            </div>
                                                            <div class="himsBoxContent box-body box-solid gridviewfont">
                                                                <div id="ImportFeeAllocationDiv" runat="server" visible="False" class="table-responsive">
                                                                    <asp:GridView ID="ImportFeeAllocationGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="Code" HeaderText="Code">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="FeeName" HeaderText="Fee Name">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="Amount" HeaderText="Amount">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="AdditionalAmount" HeaderText="Additional Amount">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="ExemptionAmount" HeaderText="Exemption Amount">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="NotApplicableAmount" HeaderText="Not Applicable Amount">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                         <asp:Label ID="Label2" runat="server" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>



                        <div class="himsBoxContent card-body">
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main="../../JavaScript/rjs/fee-invoice-import" src="../../JavaScript/rjs/require.js"></script>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
