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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteTextBoxForGridView.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>

<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>
    <%-- <link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap" >
         <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl1" ScreenGroupId="103" Visible="true" runat="server" />
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box">
                        <div class="contentHolder">
                            <div class="himssuHeader1WireBox">
                                <div class="himsBoxHeader card-head">

                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-database"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Bulk Data Update "></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchCategoryLabel" Text="Category" SkinID="MandatoryLabel" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchCategoryDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="SearchCategoryDropDownList_SelectedIndexChanged"
                                                        onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchSubCategoryLabel" Text="Sub Category" SkinID="MandatoryLabel" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchSubCategoryDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                        OnSelectedIndexChanged="SearchSubCategoryDropDownList_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchClassLabel" Text="Class" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="SearchClassDropDownList_OnSelectedIndexChanged"
                                                        onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchDivisionLabel" Text="Division" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchDivisionDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                        AutoPostBack="true" OnSelectedIndexChanged="SearchDivisionDropDownList_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrderByLabel" runat="server" Text="Order By"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="OrderByDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        <asp:ListItem Text="Roll No" Value="1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="ID No" Value="2"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop15 p-l-10 col-md-3">
                                                <asp:CheckBox ID="IsBlankCheckBox" runat="server" Text="Empty Data" class="pLeft5" />
                                                <%-- <asp:Label ID="IsEmptyLabel" runat="server" Text="Empty Data"></asp:Label>--%>
                                            </div>
                                            <div class="outerBox pTop15 p-l-10 col-md-3">
                                                <asp:CheckBox ID="SendAlertCheckbox" runat="server" Text="Send Alert" AutoPostBack="true" class="pLeft5" OnCheckedChanged="SendAlertCheckbox_CheckedChanged" />
                                                <%-- <asp:Label ID="IsEmptyLabel" runat="server" Text="Empty Data"></asp:Label>--%>
                                            </div>
                                            <div class="cBoth">
                                            </div>


                                            <div class="outerBox11 pTop5 col-md-12 fLeft" id="SendAlertDiv" runat="server">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="MessageLabel" runat="server" Text="Message"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="MessageTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        Height="50px" SkinID="MultilineTextBox" runat="server" MaxLength="1000" OnTextChanged="MessageTextBox_TextChanged"
                                                        TextMode="MultiLine" AutoPostBack="true"></asp:TextBox>
                                                    <div id="CharCountDiv" runat="server" class="col-md-12 padd-0">
                                                        <asp:Label ID="ForCharLabel" runat="server" Text="Number Of Character :"></asp:Label>
                                                        <asp:Label ID="NumberOfCharLabel" runat="server" Font-Bold="true" CssClass="ml-1"></asp:Label>
                                                        <asp:Label ID="ForMessageLabel" runat="server" Text="Number Of Message :"></asp:Label>
                                                        <asp:Label ID="NumberOfMessageLabel" runat="server" Font-Bold="true"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="outerBox col-md-6 pTop5" id="AlertOptionDiv" runat="server">
                                                <div class="fLeft pRight5">
                                                    <asp:CheckBoxList ID="SourceTypeCheckBoxList" runat="server" RepeatDirection="Horizontal"
                                                        OnSelectedIndexChanged="SourceTypeCheckBoxList_OnSelectedIndexChanged" AutoPostBack="true">
                                                        <asp:ListItem Text="SMS" Value="1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="Email" Value="2"></asp:ListItem>
                                                        <asp:ListItem Text="Mobile App" Value="3"></asp:ListItem>
                                                    </asp:CheckBoxList>
                                                </div>
                                            </div>

                                            <div class="text-center col-md-12 pTop5">
                                                <asp:Button ID="SearchButton" Text="&#xf002;  Search" runat="Server" OnClick="SearchButton_Click"
                                                    SkinID="0" CssClass="btn btn-search fas" />

                                                <asp:Button ID="ResetButton" Text="&#xf0e2; Reset" runat="Server" OnClick="ResetButton_Click" SkinID="0" CssClass="fas btn btn-reset" />

                                                <asp:Button ID="SendAlertButton" Text="&#xf1d8; Send Alert" runat="Server" OnClick="SendAlertButton_Click"
                                                    SkinID="0" CssClass="btn-send btn fas" />

                                                <asp:Button ID="GetBirthDateInWordButton" Text="Get Birth Date In Word" SkinID="0" runat="Server" OnClick="GetBirthDateInWordButton_Click" Visible="false" />

                                                <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-arrow-down"></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" />
                                            </div>
                                            <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>



                                            <div id="Div1" class="himssuHeader6WireBox col-md-12 pTop15" runat="server">
                                                <div id="GridViewPagerDiv" 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>
                                                <div class="col-md-12 pTop15">
                                                    <div class="himsBoxContent table-responsive ">
                                                        <asp:GridView runat="server" ID="StudentDataUpdateGridView" AutoGenerateColumns="False"
                                                            EmptyDataText="No records Found!!!" DataKeyNames="Id,Code,StudentId,SubCategory" AllowPaging="False"
                                                            ShowHeader="True" OnRowDataBound="StudentDataUpdateGridView_RowDataBound" CssClass="table table-striped table-bordered">
                                                            <PagerSettings Visible="False" />
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="4%" Visible="false"
                                                                    ItemStyle-Wrap="true">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true" OnCheckedChanged="HeaderSelectCheckBox_CheckedChanged"
                                                                                Visible="true" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="ID No" meta:resourcekey="TemplateFieldResource1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CodeLabel" runat="server" Text='<%#((Sapphire.Vidyalaya.BusinessEntity.Business.StudentManagementBE.Academic)Container.DataItem).Code %>' CssClass="boxEllips"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Name" meta:resourcekey="TemplateFieldResource2">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NameLabel" runat="server" Text='<%# ((Sapphire.Vidyalaya.BusinessEntity.Business.StudentManagementBE.Academic)Container.DataItem).Name %>' CssClass="boxEllips"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="ClassDivision" HeaderText="Class" ItemStyle-Width="10%"></asp:BoundField>
                                                                <asp:BoundField DataField="RollNo" HeaderText="Roll No." ItemStyle-Width="10%"></asp:BoundField>
                                                                <asp:TemplateField HeaderText="Student Data" ItemStyle-Width="40%" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="SubCategoryDropDownList" runat="server" Visible="false" SkinID="CustomWidthDropDownList"
                                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Width="160px">
                                                                        </asp:DropDownList>
                                                                        <asp:TextBox ID="GenderTextBox" runat="server" SkinID="CustomWidthTextBox" Visible="false" Enabled="false" Width="160px"></asp:TextBox>
                                                                        <asp:TextBox ID="SubCategoryTextBox" runat="server" SkinID="CustomWidthTextBox" Visible="false">
                                                                        </asp:TextBox>
                                                                        <asp:Panel ID="CheckBoxPanel" runat="server" Visible="false">
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SubCategoryCheckBox" runat="server" Visible="false" />
                                                                                <span></span>
                                                                            </label>
                                                                        </asp:Panel>
                                                                        <DPC:DatePickerControl ID="SubCategoryDatePicker" runat="server" DisplayDatePicker="true"
                                                                            Visible="false" />
                                                                        <acc:AutoCompleteControl ID="SubCategoryAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                                                            MaxLength="200" DisplayLoadingStatus="true" SkinID="CustomWidthTextBox"
                                                                            Width="154px" ValidateOnTextChanged="false" Visible="false" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="40%" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
            </div>
          
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/student-data-update" 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">
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
    </script>
</asp:Content>
