<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_BaseFramework_Utilities_ImportStudent, App_Web_eg4cnlci" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/MessageBox/MessageBoxControl.ascx" TagName="MessageBoxControl"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%--  <link href="../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <link type="text/css" href="../../App_Themes/sweetalert.css" rel="stylesheet" />
    <script type="text/javascript" src="../../JavaScript/sweetalert.min.js"></script>
    <script type="text/javascript" src="../../JavaScript/sweetalert-dev.js"></script>
    <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="StudentMasterSearchUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <%--<div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>
                                            </div>
                                        </div>
                                    </div>--%>
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="127"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-download"></i>
                                        <asp:Label ID="Label4" Text="Import Student" runat="server" />
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="Panel3" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="FeeAllocationTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default"
                                            AutoPostBack="true" meta:resourcekey="FeeAllocationTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="ImportStuentTabPanel" runat="server" HeaderText="Divisionwise Fee">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Import Student Full Details </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="DetailPanel" runat="server">
                                                        <div class="contentHolder">
                                                            <div class="col-md-12 bg-lghtgrey radiobtn">
                                                                <div class="col-md-3 controlLabelWidth">
                                                                    <asp:RadioButtonList ID="TypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                                        OnSelectedIndexChanged="TypeRadioButtonList_SelectedIndexChanged" AutoPostBack="True">
                                                                        <asp:ListItem Text="Excel" Value="1" Selected="True"></asp:ListItem>
                                                                    </asp:RadioButtonList>

                                                                </div>
                                                                <div class="col-md-3 controlLabelWidth">
                                                                    <asp:RadioButtonList ID="InsertUpdateRadioButtonList" runat="server" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="Insert" Value="1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="Update" Value="2" Selected="False"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                </div>
                                                            </div>

                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:HyperLink ID="HyperLink1" runat="server" Text=" Download Template" NavigateUrl="~/ContentTemplates/Import/Students_Import_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                                                    <asp:HyperLink ID="HyperLink2" runat="server" Text=" Download Template" NavigateUrl="~/ContentTemplates/Import/Students_Import_Template.csv" Visible="False" CssClass="pointer fas"></asp:HyperLink>
                                                                </div>
                                                            </div>
                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="outerBox col-md-12">
                                                                <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" Text="" runat="server" Style="padding-left: 20px; font-size: medium;" ClientIDMode="Static"></asp:Label>
                                                            </div>

                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="col-md-3 outerBox"></div>

                                                            <div class="col-md-6 outerBox">
                                                                <asp:Button ID="ValidateStudentButton" runat="server" Text="&#xf00c; Validate" SkinID="0"
                                                                    OnClick="ValidateStudentButton_Click" CssClass="btn btn-validate fas" />
                                                                <asp:Button ID="ExportStudentButton" runat="server" Text="&#xf093; Export Student" SkinID="0" Enabled="false"
                                                                    CssClass="btn btn-examcommon fas" OnClick="ExportStudentButton_Click" />
                                                                <asp:Button ID="StudentImportButton" runat="server" Text=" Student Import" SkinID="0"
                                                                    CssClass="btn btn-examcommon fas" OnClick="StudentImportButton_Click" />
                                                            </div>

                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="col-md-3 outerBox"></div>

                                                            <div class="col-md-6 outerBox">
                                                                <asp:Button ID="ValidateFamilyButton" runat="server" Text="&#xf00c; Validate" SkinID="0"
                                                                    CssClass="btn btn-validate fas" OnClick="ValidateFamilyButton_Click" />
                                                                <asp:Button ID="ExportFamilyButton" runat="server" Text="&#xf093; Export Family Detail" SkinID="0" Enabled="false"
                                                                    CssClass="btn btn-examcommon fas" OnClick="ExportFamilyButton_Click" />
                                                                <asp:Button ID="FamilyImportButton" runat="server" Text=" Family Import" SkinID="0"
                                                                    CssClass="btn btn-examcommon fas" OnClick="FamilyImportButton_Click" />
                                                            </div>

                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="col-md-3 outerBox"></div>

                                                            <div class="col-md-9 outerBox">
                                                                <asp:Button ID="ValidateCommunicationButton" runat="server" Text="&#xf00c; Validate" SkinID="0"
                                                                    CssClass="btn btn-validate fas" OnClick="ValidateCommunicationButton_Click" />
                                                                <asp:Button ID="ExportCommunicationButton" runat="server" Text="&#xf093; Export Communication Detail" SkinID="0" Enabled="false"
                                                                    CssClass="btn btn-examcommon fas" OnClick="ExportCommunicationButton_Click" />
                                                                <asp:Button ID="CommunicationImportButton" runat="server" Text=" Communication Import" SkinID="0"
                                                                    CssClass="btn btn-examcommon fas" OnClick="CommunicationImportButton_Click" />
                                                            </div>
                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="col-md-6 outerBox" runat="server" visible="false">
                                                                <asp:Button ID="ImportButton" runat="server" OnClick="ImportButton_OnClick" Text=" Student Import" CssClass="btn btn-examcommon fas"
                                                                    SkinID="0" />
                                                                <asp:Button ID="ImportFamilyButton" runat="server" OnClick="ImportFamilyButton_OnClick" Text=" Family Import" CssClass="btn btn-examcommon fas"
                                                                    SkinID="0" />
                                                                <asp:Button ID="ImportCommunicationButton" runat="server" OnClick="ImportCommunicationButton_OnClick" Text=" Communication Import" CssClass="btn btn-examcommon fas"
                                                                    SkinID="0" />
                                                            </div>

                                                            <div id="StudentMasterGridDiv" runat="server" visible="False">

                                                                <div class="himssuHeader6WireBox col-md-12">
                                                                    <div class="himsBoxHeader" id="StudentMasterGridViewPagerDiv" runat="server">
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle">
                                                                            <div class="gridHeaderText fLeft">
                                                                                <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                                            </div>
                                                                            <div class="fRight">
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent">
                                                                        <div id="Div5" runat="server" class="table-responsive">
                                                                            <asp:GridView runat="server" ID="StudentMasterGridView" AutoGenerateColumns="False"
                                                                                EmptyDataText="No records available for the seacrh criteria!" CssClass="table table-striped table-bordered table-hover" PageSize="5">
                                                                                <Columns>
                                                                                    <asp:BoundField DataField="IDNo" HeaderText="ID No">
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="StudentName" HeaderText="Name">
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="FatherName" HeaderText="FatherName">
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Surname" HeaderText="Surname">
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Standard" HeaderText="Standard">
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Division" HeaderText="Division">
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                    </asp:BoundField>
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div runat="server" id="StudentTable" visible="false">
                                                                <div class="outerBox pTop5 col-md-12">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="Label1" runat="server" Text="Status Detail"></asp:Label>
                                                                        <div>
                                                                            <asp:TextBox ID="StudentAlreadyExistTextBox" runat="server" Width="100%" SkinID="CustomWidthDropDownList" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-12">
                                                                <div class="alert alert-info">
                                                                    <span class="pTop15">
                                                                        <i class="material-icons pos-rel">info</i> |&nbsp;
                                                <b>Note: </b>Only xls format is imported, and also give the sheet name as for <b>student import: Sheet1, family import: Sheet2, communication import: Sheet3</b>.
                                                                    </span>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <span class="pTop15">
                                                                        <i class="material-icons pos-rel">info</i> |&nbsp;
                                                <b>Note: </b>If the column has a first numeric value and then a text value, it considers the text as numeric. To resolve the issue, keep the text value first, like (11 Commerce, 9, 10).
                                                                    </span>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <span class="pTop15">
                                                                        <i class="material-icons pos-rel">info</i> |&nbsp;
                                                <b>Note: </b>First enter data in the class, division, gender, and cast category master and then import student data.
                                                                    </span>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <span class="pTop15">
                                                                        <i class="material-icons pos-rel">info</i> |&nbsp;
                                                <b>Note: </b>Cannot update Class, SUId, LeftDate, LeftStandardId, LCReason, LCProgress, LCConduct, LCNumber, LCDate, LCRemark, Status.
                                                                    </span>
                                                                </div>
                                                            </div>

                                                            <div class="cBoth">
                                                            </div>
                                                            <div id="HtmlDiv" runat="server" visible="false" class="himssuHeader7WireBox table-responsive" style="width: 99%; height: 300px; overflow: scroll;">
                                                                <div class="himsBoxContent box-body box-solid table-hover" style="font-size: smaller !important;">
                                                                    <asp:Label ID="HtmlStringLabel" runat="server" Text=""></asp:Label>
                                                                </div>
                                                            </div>
                                                            <div id="StudentFamilyDiv" runat="server" visible="false" class="himssuHeader7WireBox table-responsive" style="width: 99%; height: 300px; overflow: scroll;">
                                                                <div class="himsBoxContent box-body box-solid table-hover" style="font-size: smaller !important;">
                                                                    <asp:Label ID="StudentFamilyLabel" runat="server" Text=""></asp:Label>
                                                                </div>
                                                            </div>
                                                            <div id="StudentCommunicationDiv" runat="server" visible="false" class="himssuHeader7WireBox table-responsive" style="width: 99%; height: 300px; overflow: scroll;">
                                                                <div class="himsBoxContent box-body box-solid table-hover" style="font-size: smaller !important;">
                                                                    <asp:Label ID="StudentCommunicationLabel" runat="server" Text=""></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>

                                                    <%--</div>--%>
                                                    <asp:Panel ID="ModalPopUpPanel" runat="server" Width="300px" BorderWidth="0px" CssClass="confirmationPanel" Style="border-width: 0px; width: 300px; position: fixed; z-index: 100001; left: 524.5px; top: 157px;">
                                                        <ajaxToolkit:ModalPopupExtender ID="ConfirmationExtender" runat="server" TargetControlID="StudentImportButton" PopupControlID="ModalPopUpPanel" BackgroundCssClass="modalBackground" DynamicServicePath="" Enabled="True"></ajaxToolkit:ModalPopupExtender>
                                                        <div class="himssuHeaderconfirmWireBox note note1 messagebox">
                                                            <div class="himsBoxContent">
                                                                <div class="contentHolder">

                                                                    <div class="tableContainer" align="center">
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="Label24" Text="Do You Want To Import Data :" Font-Bold="True"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="OrgLabel" Font-Bold="True"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="BatchLabel" Font-Bold="True"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="BatchStatusLabel" Font-Bold="True"></asp:Label></td>
                                                                            </tr>
                                                                            <tr align="center">
                                                                                <td align="right">
                                                                                    <asp:Button runat="server" CssClass="btn btn-assign fas" ID="OkButton" SkinID="0" Text="Ok" OnClick="StudentImportButton_Click" />
                                                                                </td>
                                                                                <td align="left" style="padding-left: 5px">
                                                                                    <asp:Button runat="server" ID="CancelManditoryButton" Text="Cancel" OnClick="CancelManditory_Click" SkinID="0" CssClass="btn btn-assign fas" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="ImportStuentManditoryTabPanel" runat="server" HeaderText="Divisionwise Fee">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Import Student Basic Details </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="ManditoryDetailPanel" runat="Server">
                                                        <div class="contentHolder">
                                                            <div class="col-md-12 bg-lghtgrey radiobtn">
                                                                <div class="col-md-3 controlLabelWidth">
                                                                    <asp:RadioButtonList ID="TypeRadioButtonManditoryList" runat="server" RepeatDirection="Horizontal"
                                                                        AutoPostBack="true">
                                                                        <asp:ListItem Text="Excel" Value="1" Selected="True"></asp:ListItem>
                                                                        <%--<asp:ListItem Text="csv" Value="2"></asp:ListItem>--%>
                                                                    </asp:RadioButtonList>
                                                                </div>
                                                                <div class="col-md-3 controlLabelWidth">
                                                                    <asp:RadioButtonList ID="InsertUpdateManditoryRadioButtonList" runat="server" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="Insert" Value="1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="Update" Value="2" Selected="False"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                </div>
                                                            </div>
                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:HyperLink ID="HyperLink3" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/Students_Import_Manditory_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                                                    <%-- <asp:HyperLink ID="HyperLink4" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/Students_Import_Template.csv" Visible="false" CssClass="pointer fas"></asp:HyperLink>--%>
                                                                </div>
                                                            </div>
                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                                        <i class="fa fa-arrow-down"></i>Browse</a>
                                                                    <asp:FileUpload ID="FileUpload1" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                                </div>
                                                                <asp:Label ID="Label3" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                            </div>

                                                            <div class="pTop5 col-md-6 outerBox">
                                                                <asp:Button ID="ImportManditoryButton" runat="server" Text="&#xf019; Student Import" CssClass="btn btn-examcommon fas" OnClick="ImportManditoryButton_OnClick"
                                                                    SkinID="0" />
                                                                <%-- <asp:Button ID="Button2" runat="server"  Text="&#xf019; Family Import" CssClass="btn btn-examcommon fas"
                                                                    SkinID="0" />
                                                                <asp:Button ID="Button3" runat="server"  Text="&#xf019; Communication Import" CssClass="btn btn-examcommon fas"
                                                                    SkinID="0" />--%>
                                                            </div>
                                                            <div class="cBoth">
                                                            </div>
                                                            <div id="StudentMasterGridManditoryDiv" runat="server" visible="false">

                                                                <div class="himssuHeader6WireBox col-md-12">
                                                                    <div class="himsBoxHeader" id="Div2" runat="server">
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle">
                                                                            <div class="gridHeaderText fLeft">
                                                                                <asp:Label ID="Label5" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                                            </div>
                                                                            <div class="fRight">
                                                                                <%--<uc1:GridViewPager ID="StudentMasterGridViewPager" ParentGridView="StudentMasterGridView"
                                                    runat="server" OnFirstRecordClick="StudentMasterGridViewPager_FirstRecordClick"
                                                    OnLastRecordClick="StudentMasterGridViewPager_LastRecordClick" OnNextRecordClick="StudentMasterGridViewPager_NextRecordClick"
                                                    OnPrevRecordClick="StudentMasterGridViewPager_PrevRecordClick" OnTextBoxValueChange="StudentMasterGridViewPager_TextBoxValueChange" />--%>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent">
                                                                        <div id="Div3" runat="server" class="table-responsive">
                                                                            <asp:GridView runat="server" ID="StudentMasterGridManditoryView" AutoGenerateColumns="False"
                                                                                EmptyDataText="No records available for the seacrh criteria!" CssClass="table table-striped table-bordered table-hover" DataKeyNames=""
                                                                                AllowPaging="false" PageSize="5" ShowHeader="True">
                                                                                <Columns>
                                                                                    <asp:BoundField DataField="IDNo" HeaderText="ID No" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="StudentName" HeaderText="Name" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="FatherName" HeaderText="FatherName" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Surname" HeaderText="Surname" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Standard" HeaderText="Standard" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Division" HeaderText="Division"
                                                                                        HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="SchoolAdmissionDate" HeaderText="SchoolAdmissionDate" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="DOB" HeaderText="DOB" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Gender" HeaderText="Gender" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div runat="server" id="StudentManditoryTable" visible="True">
                                                                <div class="outerBox pTop5 col-md-12">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="Label6" runat="server" Text="Status Detail"></asp:Label>
                                                                        <div>
                                                                            <asp:TextBox ID="StudentAlreadyExistManditoryTextBox" runat="server" Width="100%" SkinID="CustomWidthDropDownList" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-12">
                                                                <div class="alert alert-info">
                                                                    <span class="pTop15">
                                                                        <i class="material-icons pos-rel">info</i> |&nbsp;
                                                <b>Note: </b>Only XLS format is imported; also give the sheet name as for <b>Student Import: Sheet1.</b>
                                                                    </span>
                                                                    <%--<div class="cBoth">
                                                                    </div>
                                                                    <span class="pTop15">
                                                                        <i class="material-icons pos-rel">info</i> |&nbsp;
                                                <b>Note  : </b>If colmun having first numeric value and then text value it consider text as numeric. To resolve the issue keep text value first like (11 Commerce, 9, 10).
                                                                    </span>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <span class="pTop15">
                                                                        <i class="material-icons pos-rel">info</i> |&nbsp;
                                                <b>Note  : </b>First enter data in class , division , gender and cast category master and then import student data.
                                                                    </span>--%>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>

                                                    <asp:Panel ID="ModalPopUpManditoryPanel" runat="server" Width="300px" BorderWidth="0" CssClass="confirmationPanel" Style="border-width: 0px; width: 300px; position: fixed; z-index: 100001; left: 524.5px; top: 157px;">
                                                        <ajaxToolkit:ModalPopupExtender ID="ConfirmationExtenderManditory" runat="server" TargetControlID="ImportManditoryButton" PopupControlID="ModalPopUpManditoryPanel" BackgroundCssClass="modalBackground" DropShadow="false"></ajaxToolkit:ModalPopupExtender>
                                                        <div class="himssuHeaderconfirmWireBox note note1 messagebox">
                                                            <div class="himsBoxContent">
                                                                <div class="contentHolder">

                                                                    <div class="tableContainer" align="center">
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="Label7" Text="Do You Want To Import Data :" Font-Bold="true"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="OrgLabelM" Text="" Font-Bold="true"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="BatchLabelM" Text="" Font-Bold="true"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="BatchStatusLabelM" Text="" Font-Bold="true"></asp:Label></td>
                                                                            </tr>
                                                                            <tr align="center">
                                                                                <td align="right">
                                                                                    <asp:Button runat="server" CssClass="btn btn-assign fas" ID="Button1" SkinID="0" Text="Ok" OnClick="ImportManditoryButton_OnClick" />
                                                                                </td>
                                                                                <td align="left" style="padding-left: 5px">
                                                                                    <asp:Button runat="server" ID="Button2" Text="Cancel" OnClick="CancelButton_Click" SkinID="0" CssClass="btn btn-assign fas" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>

                                            <%-- Add for mantis: 33672 start --%>
                                            <cc1:TabPanel Width="100%" ID="ImportStudentCustomFieldsTabPanel" runat="server" HeaderText="Divisionwise Fee">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Import Student Custom Fields </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="ImportStudentCustomFieldsPanel" runat="Server">
                                                        <div class="contentHolder">
                                                            <div class="col-md-12 bg-lghtgrey radiobtn">
                                                                <div class="col-md-3 controlLabelWidth">
                                                                    <asp:RadioButtonList ID="TypeRadioButtonCustomFieldList" runat="server" RepeatDirection="Horizontal"
                                                                        AutoPostBack="true">
                                                                        <asp:ListItem Text="Excel" Value="1" Selected="True"></asp:ListItem>
                                                                        <%--<asp:ListItem Text="csv" Value="2"></asp:ListItem>--%>
                                                                    </asp:RadioButtonList>
                                                                </div>
                                                                <%--<div class="col-md-3 controlLabelWidth">
                                                                    <asp:RadioButtonList ID="InsertUpdateCustomFieldRadioButtonList" runat="server" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="Insert" Value="1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="Update" Value="2" Selected="False"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                </div>--%>
                                                            </div>
                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:HyperLink ID="HyperLink5" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/Students_Import_CustomField_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                                                    <%-- <asp:HyperLink ID="HyperLink6" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/Students_Import_Template.csv" Visible="false" CssClass="pointer fas"></asp:HyperLink>--%>
                                                                </div>
                                                            </div>
                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                                        <i class="fa fa-arrow-down"></i>Browse</a>
                                                                    <asp:FileUpload ID="CustomFieldFileUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                                </div>
                                                                <asp:Label ID="Label8" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                            </div>

                                                            <div class="pTop5 col-md-6 outerBox">
                                                                <asp:Button ID="ImportCustomFieldButton" runat="server" Text="&#xf019; Student Custom Field Import" CssClass="btn btn-examcommon fas" OnClick="ImportCustomFieldButton_Click"
                                                                    SkinID="0" />
                                                            </div>
                                                            <div class="cBoth">
                                                            </div>
                                                            <div id="StudentCustomFieldDiv" runat="server" visible="false">
                                                                <div class="himssuHeader6WireBox col-md-12">
                                                                    <div class="himsBoxHeader" id="Div6" runat="server">
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle">
                                                                            <div class="gridHeaderText fLeft">
                                                                                <asp:Label ID="Label9" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                                            </div>
                                                                            <div class="fRight">
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent">
                                                                        <div id="Div1" runat="server" class="table-responsive">
                                                                            <asp:GridView runat="server" ID="StudentCustomFieldGridView" AutoGenerateColumns="True"
                                                                                EmptyDataText="No records available for the seacrh criteria!" CssClass="table table-striped table-bordered table-hover" DataKeyNames=""
                                                                                AllowPaging="false" PageSize="5" ShowHeader="True">
                                                                                <Columns>
                                                                                    <%--<asp:BoundField DataField="Code" HeaderText="ID No" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                                    <%--<asp:BoundField DataField="StudentName" HeaderText="Name" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="FatherName" HeaderText="FatherName" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Surname" HeaderText="Surname" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Standard" HeaderText="Standard" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Division" HeaderText="Division"
                                                                                        HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="SchoolAdmissionDate" HeaderText="SchoolAdmissionDate" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="DOB" HeaderText="DOB" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Gender" HeaderText="Gender" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <%--<div runat="server" id="StudentCustomFieldTable" visible="True">
                                                                <div class="outerBox pTop5 col-md-12">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="Label10" runat="server" Text="Status Detail"></asp:Label>
                                                                        <div>
                                                                            <asp:TextBox ID="CustomFieldAlreadyExistTextBox" runat="server" Width="100%" SkinID="CustomWidthDropDownList" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>--%>

                                                            <div class="col-md-12">
                                                                <div class="alert alert-info">
                                                                    <span class="pTop15">
                                                                        <i class="material-icons pos-rel">info</i> |&nbsp;
                                                                        <b>Note: </b>Only XLS format is imported; also give the sheet name as for <b>Student Import: Sheet1.</b>
                                                                    </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>

                                                    <asp:Panel ID="ModalPopUpCustomFieldPanel" runat="server" Width="300px" BorderWidth="0" CssClass="confirmationPanel" Style="border-width: 0px; width: 300px; position: fixed; z-index: 100001; left: 524.5px; top: 157px;">
                                                        <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="ImportCustomFieldButton" PopupControlID="ModalPopUpCustomFieldPanel" BackgroundCssClass="modalBackground" DropShadow="false"></ajaxToolkit:ModalPopupExtender>
                                                        <div class="himssuHeaderconfirmWireBox note note1 messagebox">
                                                            <div class="himsBoxContent">
                                                                <div class="contentHolder">

                                                                    <div class="tableContainer" align="center">
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="Label11" Text="Do You Want To Import Data :" Font-Bold="true"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="OrgLabelM1" Text="" Font-Bold="true"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="BatchLabelM1" Text="" Font-Bold="true"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label runat="server" ID="BatchStatusLabelM1" Text="" Font-Bold="true"></asp:Label></td>
                                                                            </tr>
                                                                            <tr align="center">
                                                                                <td align="right">
                                                                                    <asp:Button runat="server" CssClass="btn btn-assign fas" ID="Button4" SkinID="0" Text="Ok" OnClick="ImportCustomFieldButton_Click" />
                                                                                </td>
                                                                                <td align="left" style="padding-left: 5px">
                                                                                    <asp:Button runat="server" ID="Button5" Text="Cancel" OnClick="CancelButton_Click" SkinID="0" CssClass="btn btn-assign fas" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <%-- Add for mantis: 33672 end --%>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <%--</tr>
                    </table>--%>
                </div>
                <div class="swal2-container swal2-fade swal2-shown" style="overflow-y: auto;" id="swalId"></div>
                <div id="Popupdiv" style="display: none;">
                    <div class="sweet-alert showSweetAlert visible" style="display: block; background-color: #ffcccc; margin-top: -100px;">
                        <div class="sa-icon sa-error" style="display: none;">
                            <span class="sa-x-mark">
                                <span class="sa-line sa-left"></span>
                                <span class="sa-line sa-right"></span>
                            </span>
                        </div>
                        <div class="sa-icon sa-warning" style="display: none;">
                            <span class="sa-body"></span>
                            <span class="sa-dot"></span>
                        </div>
                        <div class="sa-icon sa-info" style="display: none;"></div>
                        <div class="sa-icon sa-success" style="display: none;">
                            <span class="sa-line sa-tip"></span>
                            <span class="sa-line sa-long"></span>

                            <div class="sa-placeholder"></div>
                            <div class="sa-fix"></div>
                        </div>
                        <div class="sa-icon sa-custom" style="display: none;"></div>
                        <h3><b>You have exceeded limit of students for your existing plan.</b></h3>
                        <p></p>
                    </div>
                </div>
                <%--HEDP History Ends Here--%>
            </div>
            <%--</div>--%>
            <%-- <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>--%>
        </ContentTemplate>

    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/import-student")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript" language="javascript">
        function showmodalpopup() {
            $(".hls-bg").show();
            $(".container").hide();
            $("#Popupdiv").show();
            setTimeout(function () {
                $("#Popupdiv").hide();
                $(".hls-bg").hide();
                $(".container").show();
            }, 4000);
        }
    </script>
    <%--   <script data-main="../../../JavaScript/rjs/import-employee" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script type="text/javascript">
        //add for mantis : 0040910
        function RedirectToMigration(MigrationUrl) {
            var newTab = window.open(MigrationUrl, '_blank');
            window.location.href = '../../../Pages/BaseFramework/MyDashBoard.aspx';
        }
    </script>
</asp:Content>
