<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_Feedback, App_Web_yitrogwh" 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" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="FeedbackAnswerTypeUpdatePanel" runat="server">
        <ContentTemplate>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <Std:StudentSearch ID="StudentSearchAssign" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="EmployeeSearch" runat="server" Visible="false" />
            <hims:EmployeeSearchControl ID="EmployeeSearchAssign" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="157"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">

                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                            class="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchPanel" runat="Server">
                                <div class="contentHolder">

                                    <%-- <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Code" Text="Code" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" Width="150px" runat="Server" MaxLength="100"></asp:TextBox>
                                                    </div>
                                                </div>--%>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchTitleLabel" Text="Title" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="alignCenter pTop5 col-md-12 center">
                                        <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                            SkinID="0" class="btn-search btn fas" />
                                        <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas" />
                                    </div>

                                    <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="FeedbackAnswerTypeListDetailDiv" runat="server" visible="false">

                                            <div class="himsBoxHeader card-head inner" id="FeedbackAnswerTypeListDiv" runat="server" visible="false" style="display: none">

                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <div align="right" class="fRight" style="margin-top: -3px;">
                                                    </div>
                                                </div>

                                                <%-- <div class="gridHeaderText">
                                                                   
                                                                         <header>
                                                                        <asp:Label ID="GridViewLabel" Text="Feedback List" runat="server" Font-Bold="true" />
                                                                             </header>
                                                                   
                                                                </div>--%>
                                            </div>
                                            <div class="himsBoxContent card-body table-responsive">
                                                <div id="Div5" runat="server" visible="false">
                                                    <asp:GridView ID="FeedbackAnswerTypeGridView" runat="server" AutoGenerateColumns="False"
                                                        CssClass="table table-striped table-bordered table-hover" ShowHeader="true" SkinID="" PagerSettings-Visible="false"
                                                        EmptyDataText="No Records Found !!" DataKeyNames="Id" OnRowDataBound="FeedbackAnswerTypeGridView_RowDataBound"
                                                        OnPageIndexChanging="FeedbackAnswerTypeGridView_PageIndexChanging">
                                                        <Columns>
                                                            <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                HeaderStyle-HorizontalAlign="Left" HeaderText="">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="SelectLinkButton" runat="server" CommandArgument="SelectLinkButton" Text="Select"
                                                                        CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                HeaderStyle-HorizontalAlign="Left" HeaderText="">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="CloneButton" runat="server" CommandArgument="CloneLinkButton" Text="Clone"
                                                                        CausesValidation="false" OnClick="CloneButton_Click"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="Title" HeaderText="Title" HeaderStyle-HorizontalAlign="Left" />

                                                            <asp:BoundField DataField="Template" HeaderText="Template" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:BoundField DataField="IsPublish" HeaderText="Publish" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:BoundField DataField="IsClose" HeaderText="Close" HeaderStyle-HorizontalAlign="Left" />

                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">

                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-list-ul"></i>
                                        <asp:Label ID="Label4" Text="Feedback" runat="server" />
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex ">
                                <table>
                                    <tr>
                                        <td class="formLabel">
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                <%-- <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">

                                                            </asp:LinkButton>--%>
                                                <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                                    ID="FirstRecordImageButton" runat="server" OnClick="FirstRecordImageButton_Click">
                                                                <i class="fa fa-fast-backward"></i>
                                                </asp:LinkButton>
                                                <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                                    ID="PreviousImageButton" runat="server" OnClick="PreviousImageButton_Click">
                                                               <i class="fa fa-play fa-rotate-180"></i>
                                                </asp:LinkButton>
                                                <%--   <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">

                                                            </asp:LinkButton>--%>
                                                            &nbsp; &nbsp;
                                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                <asp:Label ID="TotalRecord" runat="server" />
                                                &nbsp; &nbsp;
                                                             <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                                                 ID="NextImageButtom" runat="server" OnClick="NextImageButton_Click">
                                                              <i class="fa fa-play"></i>
                                                             </asp:LinkButton>

                                                <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                                    ID="LastRecordImageButton" runat="server" OnClick="LastRecordImageButton_Click">
                                                             <i class="fa fa-fast-forward"></i>
                                                </asp:LinkButton>

                                                <%--  <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">

                                                            </asp:LinkButton>--%>
                                            </div>
                                        </td>
                                        <td>&nbsp; &nbsp;
                                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                class="btn btn-back fas" Text="&#xf30a; Back" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="tableContainer">
                                    <cc1:TabContainer Width="100%" ID="CircularTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                        meta:resourcekey="CircularTabContainerResource1">
                                        <cc1:TabPanel Width="100%" ID="CircularDetails" runat="server" HeaderText="Circular">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-comment"></i>&nbsp;Feedback</a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="himsBoxContent card-body">
                                                    <asp:Panel ID="DetailPanel" runat="Server">
                                                        <div class="contentHolder">
                                                            <div class="tableContainer">
                                                                <div class="contentHolder">
                                                                    <%--<div class="outerBox pTop5">
                                                                                    <div class="controlLabelWidth">
                                                                                        <asp:Label ID="RemarkLabel" runat="server" Text="Code" SkinID="MandatoryLabel"></asp:Label>
                                                                                    </div>
                                                                                    <div class="fLeft pRight5">
                                                                                        <asp:TextBox ID="RemarkTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextbox"
                                                                                            Width="150px" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                                                    </div>
                                                                                </div>--%>
                                                                    <asp:HiddenField ID="ListValueIdHiddenField" runat="server" />
                                                                    <asp:HiddenField ID="ListValueForSourceIdHiddenField" runat="server" />
                                                                    <asp:HiddenField ID="NameHiddenField" runat="server" />
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="TitleLabel" runat="server" Text="Title" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="TitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                                            <asp:HiddenField ID="ButtonIdHiddenField" runat="server" />
                                                                            <asp:HiddenField ID="IsCloneHiddenField" runat="server" />
                                                                        </div>
                                                                    </div>


                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="Label2" runat="server" Text="Feedback Template" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList ID="FeedBackTemplateDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                                                        </div>
                                                                    </div>

                                                                    <div class="outerBox pTop15 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:CheckBox ID="CheckBox1" runat="server" Text="Publish" />
                                                                        </div>

                                                                    </div>
                                                                    <div class="outerBox pTop15 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:CheckBox ID="CheckBox2" runat="server" Text="Close" />
                                                                        </div>

                                                                    </div>

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </div>

                                                <div class="himssuHeader1WireBox col-md-12" id="ListDiv" runat="server">
                                                    <div class="himsBoxHeader card-head inner">

                                                        <div class="himsBoxTitle" style="width: 99%">
                                                            <div class="gridHeaderText">
                                                                <header>
                                                                    <asp:Label ID="Label1" runat="server" Text="Feedback Type Detail" meta:resourcekey="Label1Resource1"></asp:Label>
                                                                </header>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent card-body">
                                                        <div class="contentHolder">
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="QuestionNumberLabel" runat="server" Text="Question Number" SkinID="MandatoryLabel" Visible="false"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="QuestionNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        onblur="return fnonTextChangeNameField(this)" onkeypress="javascript:uppercase();" Visible="false"
                                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> 
                                                                    </asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="QuestionLabel" runat="server" Text="Question" SkinID="MandatoryLabel" Visible="false"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="QuestionTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        onblur="return fnonTextChangeNameField(this)" onkeypress="javascript:uppercase();" Visible="false"
                                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> 
                                                                    </asp:TextBox>
                                                                </div>
                                                            </div>

                                                            <div class="outerBox pTop25 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="SourcetypeLabel" runat="server" Text="Source Type"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="SourceTypeDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="SourceTypeDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                                </div>

                                                            </div>

                                                            <asp:Panel ID="StudentSearchPanel" runat="server" Visible="false">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="StudentIdNoLabel" runat="server" Text="Id No"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:TextBox ID="StudentIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnTextChanged="StudentIdNoTextBox_TextChanged"
                                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="true">
                                                                        </asp:TextBox>
                                                                        <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentIdNoImageButton"
                                                                            ImageUrl="~/Images/icons/icon_find.gif" runat="server" />
                                                                        <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                                                        <asp:HiddenField ID="StudentNameHiddenField" runat="server" />
                                                                    </div>
                                                                </div>

                                                            </asp:Panel>
                                                            <asp:Panel ID="EmpPanel" runat="server" Visible="false">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Employee Code"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:TextBox ID="EmployeeCodeTextBox" SkinID="CustomWidthTextBox" runat="server" OnTextChanged="EmployeeCodeTextBox_TextChanged"
                                                                            MaxLength="100" AutoPostBack="true"> </asp:TextBox>
                                                                        <asp:ImageButton SkinID="FindImage" ToolTip="Employee Search" ID="EmployeeCodeImageButton"
                                                                            runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                                        <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                                                        <asp:HiddenField ID="EmpNameHiddenField" runat="server" />
                                                                    </div>
                                                                </div>

                                                            </asp:Panel>
                                                            <asp:Panel ID="OtherPanel" runat="server" Visible="false">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="Label7" runat="server" Text="Other"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:TextBox ID="OtherTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            onblur="return fnonTextChangeNameField(this)" onkeypress="javascript:uppercase();"
                                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> 
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>

                                                            </asp:Panel>
                                                            <div class="alignCenter pTop5 col-md-12 center">
                                                                <asp:Button ID="AddButton" runat="server" Text="&#xf067; Add" OnClick="AddButton_Click" SkinID="0" class="btn btn-add fas" />
                                                                <asp:Button ID="ClearDetailButton" runat="server" Text="&#xf0e2; Clear" class="btn-reset btn fas" SkinID="0" meta:resourcekey="TestParameterDetaileCleareButtonResource1"
                                                                    OnClick="ClearDetailButton_Click" />
                                                            </div>


                                                        </div>
                                                    </div>

                                                </div>

                                                <div id="DrugDetailsDiv" runat="server">

                                                    <div class="himssuHeader1WireBox col-md-12" id="PatientRelationDiv" runat="server">
                                                        <div class="himsBoxHeader card-head inner">

                                                            <div class="himsBoxTitle" style="width: 99%">
                                                                <div class="gridHeaderText">
                                                                    <header>
                                                                        <asp:Label ID="Label5" runat="server" Text=" Feedback Type Master Detail"></asp:Label>

                                                                    </header>
                                                                </div>
                                                            </div>
                                                            <%-- <div align="right" class="fRight" style="margin-top: -3px;">--%>
                                                            <%--<uc1:GridViewPager ParentGridView="QuestionAnswerMasterGridView" ID="FeedbacktypeMasterdetailGridView"
                                                                runat="server" OnFirstRecordClick="GridViewPager_FirstRecordClick" OnLastRecordClick="GridViewPager_LastRecordClick"
                                                                OnNextRecordClick="GridViewPager_NextRecordClick" OnPrevRecordClick="GridViewPager_PrevRecordClick"
                                                                OnTextBoxValueChange="GridViewPager_TextBoxValueChange" />--%>
                                                            <%--   </div>--%>
                                                        </div>

                                                        <asp:HiddenField ID="TestParameterId" runat="server" />
                                                        <div class="himsBoxContent table-responsive">
                                                            <%--Added Id into DatakeyNames for mantis : 30777--%>
                                                            <asp:GridView ID="FeedbacktypedetailGridView" runat="server" AutoGenerateColumns="False"
                                                                OnSelectedIndexChanged="FeedbacktypedetailGridView_SelectedIndexChanged"
                                                                AllowPaging="false" meta:resourcekey="QuestionAnswerMasterGridViewResource1"
                                                                DataKeyNames="ForSourceId,Id,Name" CssClass="table table-bordered table-striped table-hover">
                                                                <Columns>
                                                                    <asp:BoundField HeaderStyle-HorizontalAlign="Left" DataField="StudentIdNo" HeaderText="Code" meta:resourcekey="BoundFieldResource7" ItemStyle-Width="200px" />
                                                                    <asp:BoundField HeaderStyle-HorizontalAlign="Left" DataField="Name" HeaderText="Name" meta:resourcekey="BoundFieldResource7" ItemStyle-Width="200px" />
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10px" HeaderText="Delete" meta:resourcekey="TemplateFieldResource7">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                ToolTip="Delete" meta:resourcekey="DeleteImageButtonResource1" />
                                                                            <asp:HiddenField ID="Id" runat="server" Value='<%# Eval("Id") %>' />
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>

                                        <cc1:TabPanel Width="100%" ID="CircularScope" ClientIDMode="Static" runat="server" HeaderText="Assign To">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-comment"></i>&nbsp;Assign To</a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="AssignSourcetypeLabel" runat="server" Text="Source Type" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="AssignSourcetypeDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="AssignSourcetypeDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                    </div>

                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="AssignToLabel" runat="server" Text="Assign To Name" Visible="false"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="AssignToTextBox" runat="server" Visible="false"></asp:TextBox>
                                                    </div>

                                                </div>
                                                <asp:Panel ID="AssignStudentPanel" runat="server" Visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AssignStudentIdLabel" runat="server" Text="Id No"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="AssignStudentTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="true">
                                                            </asp:TextBox>
                                                            <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentIdImageButton"
                                                                ImageUrl="~/Images/icons/icon_find.gif" runat="server" />
                                                            <asp:HiddenField ID="AssignStudentIdHiddenField" runat="server" />
                                                            <asp:HiddenField ID="AssignStudentNameHiddenField" runat="server" />
                                                        </div>
                                                    </div>

                                                </asp:Panel>
                                                <asp:Panel ID="AssignEmpPanel" runat="server" Visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AssignEmployeeLabel" runat="server" Text="Employee Code"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="AssignEmployeeTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                                MaxLength="100" AutoPostBack="false"> </asp:TextBox>
                                                            <asp:ImageButton SkinID="FindImage" ToolTip="Employee Search" ID="EmployeeIdImageButton"
                                                                runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                            <asp:HiddenField ID="AssignEmployeeIdHiddenField" runat="server" />
                                                            <asp:HiddenField ID="AssignEmployeeNameHiddenField" runat="server" />
                                                        </div>
                                                    </div>

                                                </asp:Panel>
                                                <asp:Panel ID="AssignOtherPanel" runat="server" Visible="false">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AssignOTherLabel" runat="server" Text="Other"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="AssignOtherNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                onblur="return fnonTextChangeNameField(this)" onkeypress="javascript:uppercase();"
                                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> 
                                                            </asp:TextBox>
                                                        </div>
                                                    </div>

                                                </asp:Panel>


                                                <div id="studentDiv" runat="server" visible="false">

                                                    <div id="Classdiv" runat="server" visible="true">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ClassDivisionLabel1" Text="Class Division" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="">
                                                                <asp:DropDownList ID="ClassDivisionDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                                    OnSelectedIndexChanged="ClassDivisionDropDownList_OnSelectedIndexChanged" CssClass="form-control">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="himsBoxContent">

                                                        <div id="AcademicDiv" class="himssuHeader6WireBox col-md-12" runat="server" visible="False">
                                                            <div class="himsBoxHeader card-head inner" id="Div3" runat="server">
                                                                <div class="himsBoxTitle">
                                                                    <div class="gridHeaderText">
                                                                        <header>
                                                                            <asp:Label ID="AcademicGridViewLabel" Text="List" runat="server" />
                                                                        </header>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent card-body table-responsive">
                                                                <div class="fRight" style="margin-top: -5px">
                                                                    <asp:Button ID="AddDataButton" class="btn btn-add fas" SkinID="0" runat="server" Text="&#xf067; Add" OnClick="AddDataButton_Click" />
                                                                </div>
                                                                <asp:GridView ID="AcademicSourceGridView" runat="server" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!"
                                                                    DataKeyNames="SourceId,SourceTypeId">
                                                                    <Columns>
                                                                        <asp:TemplateField>
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderIsSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Code" HeaderText="Code">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="20%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="Source" HeaderText="Name">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="90%" />
                                                                        </asp:BoundField>

                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>

                                                        <div id="AcademicDiv1" class="himssuHeader6WireBox col-md-12" runat="server" style="width: 99%; height: 100%">
                                                            <div class="himsBoxHeader card-head inner" id="Div12" runat="server">
                                                                <div class="himsBoxTitle">
                                                                    <div class="gridHeaderText">
                                                                        <header>
                                                                            <asp:Label ID="AcademicGridViewLabel1" Text="Source List" runat="server" />
                                                                        </header>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent table-responsive">
                                                                <div class="fRight">
                                                                    <asp:Button ID="RemoveButton" runat="server" class="fas btn btn-delete" SkinID="0" Text="&#xf2ed; Remove" OnClick="RemoveButton_Click" />
                                                                </div>
                                                                <asp:GridView ID="StudentGridView" runat="server" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!"
                                                                    DataKeyNames="SourceId,AssignToSourceTypeId">
                                                                    <Columns>
                                                                        <asp:TemplateField>
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderIsSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Code" HeaderText="Code">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="20%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="Source" HeaderText="Name">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="90%" />
                                                                        </asp:BoundField>

                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>


                                                    </div>
                                                </div>

                                            </ContentTemplate>
                                        </cc1:TabPanel>

                                    </cc1:TabContainer>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function Color_Changed(sender) {
            sender.get_element().value = "#" + sender.get_selectedColor();
        }
    </script>
</asp:Content>
