<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_FeeManagement_FeeInvoiceImport, App_Web_0ukjfug0" 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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%--<link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>
    <asp:UpdatePanel ID="BulkFeeAddUpdatePanel" 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="FeeInvoiceImportLabel" runat="server" Text="Fee Invoice Import"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:HyperLink ID="HyperLink1" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/FeeInvoiceImport_Import_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-4">
                                    <div class="controlLabelWidth">
                                        <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                            <i class="fa fa-arrow-down"></i>Browse</a>
                                        <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                        <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                    </div>
                                </div>
                                <div class="cBoth"></div>
                                <div class="alignCenter col-md-12 pTop15 pb5">
                                    <asp:Button ID="ImportFromExcelButton" runat="server" Text="&#xf019; Import From Excel" OnClick="ImportFromExcelButton_Click" SkinID="0" CssClass="btn-examcommon btn fas" />
                                    <asp:Button ID="GenerateReceiptButton" runat="server" Text="Generate Receipt" meta:resourcekey="GenerateReceiptResource1" SkinID="0" CssClass="btn-generate btn fas" OnClick="GenerateReceiptButton_Click" />
                                </div>
                                <div class="cBoth">
                                </div>
                                <div id="Div5" class="himssuHeader7WireBox box-body box-solid gridviewfont" runat="server">
                                    <div id="InvoiceDetailDiv" visible="false" runat="server">
                                        <div class="spacer">
                                            <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" />
                                        </div>
                                        <div class="himsBoxHeader" id="InvoiceHeadDiv" runat="server" visible="false">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="gridHeaderText">
                                                    <header>
                                                        <asp:Label ID="GridHeaderLabel" Text="Fee Invoice List" runat="server" />
                                                    </header>
                                                    <div id="DepositedBankDiv" runat="server" visible="false" class="pull-right col-md-6 display-flex">
                                                        <asp:DropDownList ID="ApplyAllDepositedBankDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                                        </asp:DropDownList>
                                                        <asp:Button ID="ApplyButton" runat="server" OnClick="ApplyButton_Click" Text="Apply All"
                                                            SkinID="0" CssClass="btn-apply btn fas" />
                                                    </div>
                                                </div>


                                            </div>
                                        </div>
                                        <div class="himsBoxContent card-body">
                                            <div id="Div3" runat="server" visible="true" class="table-responsive">
                                                <div id="Div4" class="himsBoxContentMsg" runat="server" visible="False">
                                                </div>
                                                <asp:GridView ID="FeeInvoiceListGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="FeeInvoiceId,SourceId,ReceiptBookId,OrgId,BatchId,CollectionGroupId,DepositedLedgerId"
                                                    PageSize="10" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="Select">
                                                            <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>
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                            <ItemTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                    <span></span>
                                                                </label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="15%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Batch" HeaderText="Batch" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Class" HeaderText="Class" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Code" HeaderText="ID No" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="InvoiceNumber" HeaderText="Invoice Number" ItemStyle-Width="5%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:TemplateField HeaderText="Invoice Date" ItemStyle-Width="5%" SortExpression="InvoiceDate"
                                                            ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="InvoiceDateLabel" CssClass="boxEllips" ToolTip='<%# Bind("InvoiceDate") %>'
                                                                    runat="server" Text='<%# Bind("InvoiceDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="InvoiceAmount" HeaderText="Invoice Amount" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="ReceiptBook" HeaderText="Receipt Book" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="CollectionGroupName" HeaderText="Collection Group" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:TemplateField HeaderText="Deposited Bank" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList ID="DepositedBankDownList" runat="server" SkinID="CustomWidthDropDownList" class="form-control">
                                                                </asp:DropDownList>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Status" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="ReceiptStatusLabel" runat="server" Text='<%#Eval("ReceiptStatus") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </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/fee-invoice-import")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
