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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
  
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="leftUlMenu">
                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="102"
                                            Visible="true" runat="server" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-tasks"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Online Registration Setup"></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="SearchClassLabel" Text="Class" runat="server" meta:resourcekey="StateNameLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchClassDropDownList" SkinID="CustomWidthDropDownList"
                                                 OnSelectedIndexChanged="SearchClassDropDownList_SelectedIndexChanged" AutoPostBack="true"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="fLeft pTop5">
                                            <asp:CheckBox ID="ApplyToOtherClassCheckBox" runat="server"  Text="Apply To Other Class"
                                               OnCheckedChanged="ApplyToOtherClassCheckBox_CheckedChanged" AutoPostBack="true" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                        </div>
                                        <div class="fLeft pRight5" style="width:max-content;margin-left:-50px">
                                            <asp:Button ID="OnlineEntryLinkButton" runat="server" SkinID="0" CssClass="btn btn-assign fas" Text=" Online Entry Link" OnClick="OnlineEntryLinkButton_Click" />
                                            <asp:Button ID="OnlineEntryLinkNewButton" runat="server" SkinID="0" CssClass="btn btn-assign fas" Text=" Online Entry Link New" OnClick="OnlineEntryLinkNewButton_Click" />
                                        </div>
                                    </div>
                                    <div id="DivClassCheckBoxList" class="outerBox11 pTop5  col-md-6" runat="server" visible="false">
                                        <div class="col-md-6 ">
                                            <div class="select">
                                                <asp:CheckBox ID="ClassCheckBox" runat="server" AutoPostBack="True"  Text="Select All" />
                                            </div>
                                            <div id="ClassDivisionDiv" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                <asp:CheckBoxList ID="ClassDivisionCheckBoxList" runat="server">
                                                </asp:CheckBoxList>
                                            </div>
                                        </div>
                                        <div class="col-md-6 ">
                                            <asp:Button ID="ApplyForSelectClassButton" runat="server" SkinID="0" OnClick="ApplyForSelectClassButton_Click"
                                                Text="Apply For Select Class" CssClass="btn btn-apply" />
                                        </div>
                                        <div class="col-md-6 "></div>
                                        <div class="col-md-6 "></div>
                                        <div class="col-md-6 "></div>
                                        <div class="col-md-6 ">
                                            <asp:Button ID="AdmissionFieldApply" runat="server" SkinID="0" 
                                                Text="Apply Admission Field" CssClass="btn btn-apply" Visible="false" />
                                            
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5">
                                        <div class="fLeft pRight5">
                                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <cc1:TabContainer Width="100%" ID="PermissionTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default pTop5"
                                        AutoPostBack="true" meta:resourcekey="StudentCustomSearchTabContainerResource1"
                                        ActiveTabIndex="0" OnActiveTabChanged="PermissionTabContainer_ActiveTabChanged">
                                         <cc1:TabPanel Width="100%" ID="OnlineRegistrationCriteria" runat="server" HeaderText="Online Registration Criteria">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs" style="width: 200px !important">
                                                    <li class="fancyTab">
                                                        <a><i class="fas  fa-bars" style="margin: 0px 1px !important"></i>&nbsp;Online Registration Criteria </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="tableContainer">
                                                        <div>
                                                            <div id="Div3" class="himssuHeader6WireBox pTop5  col-md-12"
                                                                runat="server">
                                                                <div class="himsBoxContent table-responsive">
                                                                     <div class="col-md-4">
                                                                        <div class="bg-white">
                                                                            <label class="material-checkbox">
                                                                                 <asp:CheckBox ID="IsOptionalSubjectCheckBox" runat="server" Text ="Optional Subject Show" onclick="ShowOptionalSubject()"></asp:CheckBox>
                                                                            </label>
                                                                        </div>
                                                                    </div>
                                                                    <div id="OptionalSubjectDiv" class="outerBox11 pTop5  col-md-6" runat="server" >
                                                                        <div class="col-md-6 ">
                                                                            <div class="select">
                                                                                <asp:CheckBox ID="OptionalSubjectCheckBox" runat="server" AutoPostBack="True"  Text="Select All" onclick="check_uncheck_checkbox(this)"/>
                                                                            </div>
                                                                            <div id="Div6" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                                                <asp:CheckBoxList ID="OptionalSubjectCheckBoxList" runat="server" AutoPostBack="True">
                                                                                </asp:CheckBoxList>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                   
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel Width="100%" ID="DisplayField" runat="server" HeaderText="Display Field">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs" style="width: 115px !important">
                                                    <li class="fancyTab">
                                                        <a><i class="fas  fa-bars" style="margin: 0px 1px !important"></i>&nbsp;Display Field </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="tableContainer">
                                                        <div>
                                                            <div id="Div1" class="himssuHeader6WireBox pTop5  col-md-12"
                                                                runat="server">
                                                                <div class="himsBoxContent table-responsive">
                                                               <%-- <div id="Div4" runat="server" class="table-responsive">--%>
                                                                  <input id="SourceDropDownValHiddenField" type="hidden" name="hid" runat="server"/>
                                                                    <asp:GridView ID="OnlineRegistrationDisplayFiedGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover"
                                                                        AllowPaging="false" OnRowDataBound="OnlineRegistrationDisplayFiedGridView_RowDataBound"
                                                                        ShowHeader="true"
                                                                        DataKeyNames="DisplayFieldId,Selected,IsMandatory">

                                                                        <Columns>
                                                                
                                                                            <asp:BoundField DataField="DisplayFieldId" HeaderText="DisplayFieldId" Visible="false"></asp:BoundField>
                                                                            <%--<asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="70%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                            <asp:TemplateField HeaderText="Name">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="FieldNameLabel" SkinID="CustomWidthTextBox" runat="server" 
                                                                                        MaxLength="100" Text='<%# Bind("Name") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="70%" Wrap="True" />
                                                                            </asp:TemplateField>

                                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center"  ItemStyle-Width="5%">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <bdo>Display</bdo>
                                                                                        <asp:CheckBox ID="HeaderCheckBox" OnCheckedChanged="HeaderSelectCheckBox_OnCheckedChanged"  runat="server" AutoPostBack="True" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" OnCheckedChanged="SelectCheckBox_CheckedChanged"
                                                                                            Checked='<%# Eval("Selected") %>' AutoPostBack="false" onclick="Check(this);"  disabled='<%# Eval("Selected") %>' />
                                                                                        <span></span>
                                                                                    </label>
                                                                                     
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <bdo>Mandatory</bdo>
                                                                                        <asp:CheckBox ID="HeaderIsMandatoryCheckBox"  runat="server" OnCheckedChanged="HeaderIsMandatoryCheckBox_OnCheckedChanged"  AutoPostBack="True" Enabled="false"/>
                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsMandatoryCheckBox" runat="server" Checked='<%# Eval("IsMandatory") %>'/>
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>


                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                 <%-- </div>--%>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                         <cc1:TabPanel Width="100%" ID="TabPanel1" runat="server" HeaderText="Online Registration Field">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs" style="width: 185px !important">
                                                    <li class="fancyTab">
                                                        <a><i class="fas  fa-bars" style="margin: 0px 2px !important"></i>&nbsp;Online Registration Field </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="tableContainer">
                                                        <div>
                                                            <div id="Div2" class="himssuHeader6WireBox pTop5  col-md-12" runat="server">
                                                                <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv1" runat="server" visible="false">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="pull-right col-md-3 display-flex">
                                                                            <asp:DropDownList ID="AddGridDropDownList1" runat="server" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control">
                                                                                <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                                <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                                <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            </asp:DropDownList>&nbsp;&nbsp;
					                                                        <asp:Button ID="AddButton1" runat="server" SkinID="0" CssClass="btn btn-add fas" OnClick="AddButton1_Click" Text=" Add" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent table-responsive">
                                                                    <asp:GridView ID="OnlineRegistrationCriteriaFormGridView" runat="server" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover"
                                                                        DataKeyNames="Id,FieldTypeId" OnRowDataBound="OnlineRegistrationCriteriaFormGridView_RowDataBound">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderText="Display">
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsFieldDisplayCheckBox" runat="server" Checked='<%# Bind("IsFieldDisplay") %>' />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Field Group">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="FieldGroupTextBox" MaxLength="200" runat="server" Enabled="false" SkinID="CustomWidthTextBox" Text='<%# Bind("FieldGroup") %>' />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Field Remark">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="FieldRemarkTextBox" MaxLength="500" runat="server" Enabled="false" TextMode="MultiLine" SkinID="CustomWidthTextBox" Text='<%# Bind("FieldRemark") %>' />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="30%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Type List">
                                                                                <ItemTemplate>
                                                                                    <asp:DropDownList ID="TypeListGridviewDropDownList" runat="server" Enabled="false" OnSelectedIndexChanged="TypeListGridviewDropDownList_SelectedIndexChanged" AutoPostBack="True" class="form-control" />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Field List">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="FieldListTextBox" MaxLength="500" runat="server" Enabled="false" SkinID="CustomWidthTextBox" Text='<%# Bind("FieldList") %>' />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="20%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Field Order">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="FieldOrderTextBox" TextMode="Number" MaxLength="4" Enabled="false" runat="server" Text='<%# Bind("FieldOrder") %>' SkinID="CustomWidthTextBox" />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Is Field Mandatory">
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsFieldMandatoryCheckBox" runat="server" Enabled="false" Checked='<%# Bind("IsFieldMandatory") %>' />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <%--<asp:TemplateField HeaderText="Delete">
                                                                                <ItemTemplate>
                                                                                    <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton1" runat="server" OnClick="DeleteImageButton1_Click"
                                                                                        ToolTip="Delete" ImageUrl="../../../Images/icons/icon_delete.gif" />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                            </asp:TemplateField>--%>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel Width="100%" ID="TabPanel2" runat="server" HeaderText="Online Registration Document">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs" style="width: 215px !important;">
                                                    <li class="fancyTab">
                                                        <a style="border: 0px !important"><i class="fas  fa-bars" style="margin: 0px 2px !important;"></i>&nbsp;Online Registration Document </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="tableContainer">
                                                        <div>
                                                            <div id="Div5" class="himssuHeader6WireBox pTop5  col-md-12"
                                                                runat="server">

                                                                <div class="himsBoxContent table-responsive">
                                                                   <asp:GridView ID="OnlineRegistrationDocumentGridView" runat="server" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" DataKeyNames="DocumentId" CssClass="table table-striped table-bordered table-hover" Visible="false">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsSelectDocCheckBoxAll" onclick="CheckAll(this);" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsSelectDocCheckBox" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Document Name">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="DocumentNameLabel" MaxLength="30" runat="server" SkinID="CustomWidthTextBox" Text='<%# Bind("DocumentName") %>' />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Remark">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="RemarkTextBox" runat="server" SkinID="CustomWidthTextBox" Width="350px" Text='<%# Bind("Remark") %>'></asp:TextBox>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="20%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Is Mandatory Document">
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="IsMandatoryDocCheckBox" runat="server" Checked='<%# Bind("IsMandatory") %>' />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                     </cc1:TabContainer>
                                </div>
                            </asp:Panel>
                        </div>

                    </div>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>

        </ContentTemplate>

    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/admission-setup")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
     <script type="text/javascript">

        function Check(obj) {
            var table = document.getElementById('<%=OnlineRegistrationDisplayFiedGridView.ClientID %>');
            var chk = false;
            if ($(obj).is(':checked'))
                chk = true;
            else
                chk = false;
            var row = obj.parentNode.parentNode.parentNode.rowIndex + 1;

            if (row < 10)
                row = "0" + row;
            var Field = document.getElementById('ctl00_CP_PermissionTabContainer_DisplayField_OnlineRegistrationDisplayFiedGridView_ctl' + row + '_FieldNameLabel')
            var FieldName = Field.textContent;

            //if (chk == true && RowIndex != 35 && RowIndex != 37 && RowIndex != 39 && RowIndex != 41 && RowIndex != 139 && RowIndex != 142 && RowIndex != 143 ) {
            //    $('#ctl00_CP_PermissionTabContainer_DisplayField_OnlineRegistrationDisplayFiedGridView_ctl' + row + '_IsMandatoryCheckBox').removeAttr('disabled');
            //}
            //else {
            //    $('#ctl00_CP_PermissionTabContainer_DisplayField_OnlineRegistrationDisplayFiedGridView_ctl' + row + '_IsMandatoryCheckBox').prop('checked', false);
            //    $('#ctl00_CP_PermissionTabContainer_DisplayField_OnlineRegistrationDisplayFiedGridView_ctl' + row + '_IsMandatoryCheckBox').attr('disabled', true);
            //}
            if (chk == true && FieldName != 'StudentFamily_IsFatherExStudent' && FieldName != 'StudentFamily_IsMotherExStudent' && FieldName != 'StudentFamily_IsRelativeExStudent'
                    && FieldName != 'StudentFamily_IsSingleChild' && FieldName != 'StudentAdmission_IsTransfer' && FieldName != 'StudentAdmission_IsTFWS' && FieldName != 'StudentAdmission_IsCertificateHolder')
            {
                $('#ctl00_CP_PermissionTabContainer_DisplayField_OnlineRegistrationDisplayFiedGridView_ctl' + row + '_IsMandatoryCheckBox').removeAttr('disabled');
            }
            else
            {
                $('#ctl00_CP_PermissionTabContainer_DisplayField_OnlineRegistrationDisplayFiedGridView_ctl' + row + '_IsMandatoryCheckBox').prop('checked', false);
                $('#ctl00_CP_PermissionTabContainer_DisplayField_OnlineRegistrationDisplayFiedGridView_ctl' + row + '_IsMandatoryCheckBox').attr('disabled', true);
            }
            
        }
     </script>
     
        <script type="text/javascript">
         
            //if ($('#ctl00_CP_PermissionTabContainer_OnlineRegistrationCriteria_IsOptionalSubjectCheckBox').is(':checked')) {
            //    $("#ctl00_CP_PermissionTabContainer_OnlineRegistrationCriteria_OptionalSubjectDiv").show();
            //}
            //else {

            //    $("#ctl00_CP_PermissionTabContainer_OnlineRegistrationCriteria_OptionalSubjectDiv").hide();
            //    $('[id *= OptionalSubjectCheckBoxList]').find('input[type="checkbox"]').each(function () {
            //        $(this).prop("checked", false);
            //    });
            //}
            function ShowOptionalSubject() {
                    if ($('#ctl00_CP_PermissionTabContainer_OnlineRegistrationCriteria_IsOptionalSubjectCheckBox').is(':checked')) {
                        //alert('Hi');
                        $("#ctl00_CP_PermissionTabContainer_OnlineRegistrationCriteria_OptionalSubjectDiv").show();
                    }
                    else {

                        $("#ctl00_CP_PermissionTabContainer_OnlineRegistrationCriteria_OptionalSubjectDiv").hide();
                        $('[id *= OptionalSubjectCheckBoxList]').find('input[type="checkbox"]').each(function () {
                            $(this).prop("checked", false);
                        });
                    }
            }
            function check_uncheck_checkbox(isChecked) {
                if (isChecked.checked == true) {
                    $('[id *= OptionalSubjectCheckBoxList]').find('input[type="checkbox"]').each(function () {
                        $(this).prop("checked", true);
                    });
                } else {
                    $('[id *= OptionalSubjectCheckBoxList]').find('input[type="checkbox"]').each(function () {
                        $(this).prop("checked", false);
                    });
                }
            }
        </script>
   
</asp:Content>
