<%@ page language="C#" autoeventwireup="true" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" inherits="Pages_FeeManagement_DepositSetup, App_Web_bt3kc4fp" 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">
    <style type="text/css">
        input:disabled + input[type=image], input:read-only + a {
            pointer-events: visible;
            cursor: pointer !important;
        }
    </style>
    <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="210"
                                                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="ReasonMasterDetailLabel" runat="server" Text="Deposit Setup"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <%--changes for mantis Id:0042887--%>
                        <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <div class="navgraybackground">
                                            <ul class="nav nav-tabs">
                                                <li id="DepositSetupList" runat="server"><a href="#tab_1">
                                                    <asp:Button Text="Deposit Setup" ID="DepositSetupListButton" CssClass="fas transparenttab" SkinID="0"
                                                        runat="server" AutoPostBack="True" OnClick="DepositSetupListButton_Click" />
                                                </a></li>
                                                <li id="DepositDefaultSetupList" runat="server"><a>
                                                    <asp:Button Text="Deposit Default Setup" ID="DepositDefaultSetupListButton" CssClass="fas transparenttab" SkinID="0"
                                                        runat="server" AutoPostBack="True" OnClick="DepositDefaultSetupListButton_Click" />
                                                </a></li>
                                            </ul>
                                        </div>

                                        <div class="contentHolder" id="DepositSetupDiv" runat="server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchOrganizationLabel" Text="Organization" runat="server" CssClass="mandatory"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                        class="form-control" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="BatchLabel" Text="Batch" runat="server" CssClass="mandatory"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" AutoPostBack="true" OnSelectedIndexChanged="BatchDropDownList_SelectedIndexChanged"
                                                        class="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepositHeadLabel" Text="Deposit Head" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="DepositHeadDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                        class="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                                    </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="fLeft pRight5">
                                                    <asp:DropDownList ID="ClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged"
                                                        AutoPostBack="true" class="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label4" Text="Division" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="DivisionDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                        class="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchIdNoLabel" runat="server" Text="Id No"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="IdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <%-- Added by dhananjay for mantis : 39748 --%>
                                            <div class="outerBox pTop10 col-md-3">
                                                <asp:CheckBox ID="IsPendingCheckBox" runat="server" Text="Empty Data" class="pLeft5" AutoPostBack="true" />
                                            </div>
                                            <%-- Added by dhananjay for mantis : 39748 --%>
                                            <div class="alignCenter col-md-12 pTop5 pb5">
                                                <asp:Button ID="SearchButton" runat="Server" Text="&#xf002; Search" SkinID="0" CssClass="btn-search btn fas" OnClick="SearchButton_Click" />

                                                <asp:Button ID="ResetButton" Text="&#xf0e2; Reset" runat="Server" OnClick="ResetButton_Click" SkinID="0" CssClass="fas btn btn-reset" />
                                                <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" CssClass="fas btn btn-examcommon" SkinID="0" />
                                                <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                    <i class="fas fa-upload"></i>Browse</a>
                                                <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />


                                                <asp:Button ID="ImportFromExcelButton" runat="server" Text="&#xf019; Import From Excel"
                                                    SkinID="0" CssClass="fas btn btn-examcommon" OnClick="ImportFromExcelButton_Click" />
                                                <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                            </div>

                                            <div id="Div1" class="himssuHeader6WireBox col-md-12 pTop15" runat="server">
                                                <%--<div id="Div2" runat="server">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText fLeft">
                                                <asp:Label ID="GridViewLabel" Text="" runat="server" />
                                            </div>
                                        </div>

                                        <div class="fRight display-flex">
                                            <%--<asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="100"
                                                            SkinID="CustomWidthTextBox" Width="100px"></asp:TextBox>
                                                        &nbsp;&nbsp;&nbsp;  
                                                        <asp:Button ID="ApplyAllButton" runat="server" OnClick="ApplyAllButton_Click"
                                                            Text="&#xf058; Apply All" SkinID="0" CssClass="btn btn-apply fas" />
                                        </div>
                                    </div>--%>
                                                <%--Changes for Mantis Id:0039499--%>
                                                <div id="ApplyDiv" runat="server" visible="false">
                                                    <div class="spacer">
                                                        <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                    </div>
                                                    <div class="himsBoxHeader">
                                                        <div class="pull-right col-md-3 display-flex">
                                                            <asp:Label ID="ApplyLabel" Text="Amount:" runat="server" Style="padding-top: 12px;"></asp:Label>
                                                            &nbsp;&nbsp;
                                            <asp:TextBox ID="ApplyTextBox" runat="server" Style="padding-top: 13px" HeaderStyle-HorizontalAlign="right" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Button ID="ApplyButton" runat="server" Text="Apply All" SkinID="0" OnClick="ApplyButton_Click" CssClass="btn btn-apply fas" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 pTop15">
                                                    <div class="himsBoxContent table-responsive ">
                                                        <asp:GridView runat="server" ID="DepositSetupGridView" AutoGenerateColumns="False"
                                                            EmptyDataText="No records Found!!!" AllowPaging="False" DataKeyNames="StudentId"
                                                            ShowHeader="True" CssClass="table table-striped table-bordered">
                                                            <PagerSettings Visible="False" />
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%"
                                                                    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>
                                                                <asp:TemplateField HeaderText="Class" meta:resourcekey="TemplateFieldResource1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ClassLabel" runat="server" Text='<%# Bind("ClassDivisionName") %>' CssClass="boxEllips"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="ClassDivisionName" HeaderText="Class" ItemStyle-Width="10%"
                                                                HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <%--  <asp:BoundField DataField="Code" HeaderText="ID No." ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="ID No" meta:resourcekey="TemplateFieldResource1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CodeLabel" runat="server" Text='<%# Bind("Code") %>' CssClass="boxEllips"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="8%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Roll No" meta:resourcekey="TemplateFieldResource1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RollNoLabel" runat="server" Text='<%# Bind("RollNo") %>' CssClass="boxEllips"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="8%" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="RollNo" HeaderText="RollNo" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Student Name" meta:resourcekey="TemplateFieldResource1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StudentNameLabel" runat="server" Text='<%# Bind("StudentName") %>' CssClass="boxEllips"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                                </asp:TemplateField>
                                                                <%-- <asp:BoundField DataField="StudentName" HeaderText="Name" ItemStyle-Width="30%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Admission Batch" meta:resourcekey="TemplateFieldResource1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="AdmissionBatchLabel" runat="server" Text='<%# Bind("AdmissionBatch") %>' CssClass="boxEllips"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="12%" />
                                                                </asp:TemplateField>
                                                                <%-- <asp:BoundField DataField="AdmissionBatch" HeaderText="Admission Batch" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Admission Standard" meta:resourcekey="TemplateFieldResource1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="AdmissionStandardLabel" runat="server" Text='<%# Bind("AdmissionStandard") %>' CssClass="boxEllips"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <%--  <asp:BoundField DataField="AdmissionStandard" HeaderText="Admission Standard" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Setup Amount" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="SetupAmountTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("SetupAmount") %>' onkeypress="return isNumberKey(event)"></asp:TextBox>

                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="contentHolder" id="DepositDefaultSetupDiv" runat="server" visible="false">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepositOrganizationLabel" Text="Organization" runat="server" CssClass="mandatory"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="DepositOrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control" AutoPostBack="true"
                                                        OnSelectedIndexChanged="DepositOrganizationDropDownList_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepositBatchLabel" Text="Batch" runat="server" CssClass="mandatory"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="DepositBatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" AutoPostBack="true"
                                                        class="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepositSetupHeadLabel" Text="Deposit Head" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="DepositSetupHeadDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="help-tableformat  col-md-12 pTop5 pb5">
                                                <div class="help alert mt0 alert-info">
                                                    <i class="material-icons">info</i> | If you set the value in This tab for the default deposit value then it will assign in the first order index of Deposit Head.
                                                </div>
                                            </div>
                                            <div class="alignCenter col-md-12 pTop5 pb5">
                                                <asp:Button ID="DepositSetupSearchButton" runat="Server" Text="&#xf002; Search" SkinID="0"
                                                    CssClass="btn-search btn fas" OnClick="DepositSetupSearchButton_Click" />
                                                <asp:Button ID="DepositSetupResetButton" Text="&#xf0e2; Reset" runat="Server" SkinID="0"
                                                    CssClass="fas btn btn-reset" OnClick="DepositSetupResetButton_Click" />
                                            </div>

                                            <div id="Div2" class="himssuHeader6WireBox col-md-12 pTop15" runat="server">
                                                <div class=" col-md-12 pTop15">
                                                    <div class="himsBoxContent table-responsive">
                                                        <asp:GridView runat="server" ID="DepositDefaultSetupGridView" AutoGenerateColumns="False" AllowPaging="False"
                                                            EmptyDataText="No records Found!!!" DataKeyNames="DepositHeadId" ShowHeader="True" CssClass="table table-striped table-bordered">
                                                            <PagerSettings Visible="False" />
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%"
                                                                    ItemStyle-Wrap="true">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="DepositHeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                Visible="true" OnCheckedChanged="DepositHeaderSelectCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="DepositSelectCheckBox" AutoPostBack="true"
                                                                                runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Deposit Head" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="DepositHeadLabel" runat="server" Text='<%# Bind("DepositHead") %>' CssClass="boxEllips" ClientIDMode="Static"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Setup Amount" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="DepositSetupAmountTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("SetupAmount") %>' onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/account-mapping-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-data-update")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <%-- <script type="text/javascript">
        var reader = new FileReader();
        reader.onload = function (e) {
        }
        function OpenFileUpload() {
            $('#flUpload').click();
     
        }
        function readURL(input) {
            if (input.files && input.files[0]) {
                reader.readAsDataURL(input.files[0]);
                ajaxFileUpload();
            }
        }
        function ajaxFileUpload() {
            if (ValidateImageDetails()) {
                
                $("#loading").ajaxStart(function () {
                    $(this).show();
                }).ajaxComplete(function () {
                    $(this).hide();
                });
                $.ajaxFileUpload({
                    url: '/UserControls/MultiFileUpload/common-file-upload.ashx',
                    secureuri: false,
                    fileElementId: 'flUpload',
                    dataType: 'text',
                    contentType: "application/json; charset=utf-8",
                    data: { name: 'logan', id: 'id', hdn: '1' },
                    success: function (response, status) {
                        //alert(response);
                        $("#ctl00_CP_Label2").text("Uploaded Successfully");
                        /*var str = response;
                        str = str.replace('<pre style="word-wrap: break-word; white-space: pre-wrap;">','');
                        str = str.replace('</pre>','');				
                        $('#hdnFileName').val(str);*/
                        window.setTimeout(function () {
                            CloseLoadingpopup();
                            $("#ctl00_CP_Label2").text("Uploaded Successfully");
                        }, 100);
                    },
                    error: function (response, status, e) {
                        window.setTimeout(function () {
                            CloseLoadingpopup();
                        }, 100);
                    }
                })
                return false;
            }
        }
        function isFile(file) {
            var video = /\.(xls|)$/i;
            var CSV = /\.(csv|)$/i;
            var xlsx = /\.(xlsx|)$/i;
            if (video.test(file.toLowerCase()) || CSV.test(file.toLowerCase()) || xlsx.test(file.toLowerCase()))


                return true;
            else
                return false;
        }

        function ValidateImageDetails() {
            var fields;
            fields = "";
            var file = document.getElementById('flUpload').value;
            if (isFile(document.getElementById('flUpload').value) == false || document.getElementById('flUpload').value == null) {
                fields = fields + "\n-- Invalid file --";
            }
            if (fields != "") {
                fields = "Please fill in the following details:\n------------------------------------" + fields;
                alert(fields);
                return false;
            }
            else {
                return true;
            }
        }
    </script>--%>
</asp:Content>
