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

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

<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl"
    TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch"
    TagPrefix="Std" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <asp:HiddenField ID="SourceIdHiddenField" runat="server" />

            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />


            <Std:StudentSearch ID="SourceStudentSearch" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="SourceEmployeeSearch" Visible="false" runat="server" />

            <asp:HiddenField ID="ModeHiddenField" runat="server" />
            <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
            <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
            <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" />

            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top" runat="server" id="ScreenGroupTableId" visible="true">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="114"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">

                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <%-- <asp:Image ID="Image1" runat="server" class="fLeft" meta:resourcekey="Image1Resource1" />--%>
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label1" runat="server" Text="Search"></asp:Label>
                                        </header>
                                        <%-- <cc1:CollapsiblePanelExtender ID="cpe" runat="server" TargetControlID="DetailPanel"
                                                        ExpandControlID="Image1" CollapseControlID="Image1" TextLabelID="Label3" Collapsed="True"
                                                        CollapsedText="  Search" ExpandedText="  Search" ImageControlID="Image1" ExpandedImage="~/images/buttonCollapse.gif"
                                                        CollapsedImage="~/images/buttonExpand.gif" Enabled="True" />--%>
                                    </div>
                                    <div class="fRight mt-27">

                                        <asp:Button ID="AddBackButtonID" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="AddBackButtonID_Click" />
                                        <asp:Button ID="AddNewButtonID" OnClick="AddNewButton_Click" runat="server" SkinID="0" CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <asp:Panel ID="DetailPanel" runat="Server">
                            <div class="contentHolder card-body">
                                <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="QueryCategoryLabel" runat="server" Text="Query Category"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="QueryCategoryDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                AutoPostBack="false">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="TitleTextLabel" runat="server" Text="Title"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="TitleTextTextbox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"
                                                onblur="return fnonTextChangeNameField(this)"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="NumberLabel" runat="server" Text="Number"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="NumberTextbox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"
                                                onblur="return fnonTextChangeNameField(this)" TextMode="Number"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SourceTypeLabel" runat="server" Text="Source Type"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SourceTypeDropDown" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                AutoPostBack="false">
                                                <asp:ListItem Text="- ALL -" Value="0"></asp:ListItem>
                                                <asp:ListItem Text="Student" Value="2003"></asp:ListItem>
                                                <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="CodeLabel" runat="server" Text="Code"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="CodeTextbox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"
                                                onblur="return fnonTextChangeNameField(this)"></asp:TextBox>
                                        </div>
                                    </div>


                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="LabelCreatedFromDate" runat="server" Text="Created From Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="CreatedFromDatePickerControl" Visible="True"
                                                runat="server" onkeyup="FormatIt(this);" onchange="isValidDatepicker(this);" placeholder="dd/mm/yyyy" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="LabelCreatedToDate" runat="server" Text="Created To Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="CreatedToDatePickerControl" Visible="True"
                                                runat="server" onkeyup="FormatIt(this);" onchange="isValidDatepicker(this);" placeholder="dd/mm/yyyy" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="TargetResolutionFromDate" runat="server" Text="Target Resolution From Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="TargetResolutionFromDatePickerControl" Visible="True"
                                                runat="server" onkeyup="FormatIt(this);" onchange="isValidDatepicker(this);" placeholder="dd/mm/yyyy" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="TargetResolutionToDate" runat="server" Text="Target Resolution To Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="TargetResolutionToDatePickerControl" Visible="True"
                                                runat="server" onkeyup="FormatIt(this);" onchange="isValidDatepicker(this);" placeholder="dd/mm/yyyy" />
                                        </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; Clear" OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas" />

                                    </div>

                                </asp:Panel>
                                <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                    <div id="ReasonMasterDetailDiv" visible="false" runat="server">

                                        <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" visible="false" runat="server">

                                            <div class="himsBoxTitle" style="width: 99%;" runat="server" id="himsBoxTitleDiv">
                                                <div align="right" class="fRight" style="margin-top: 0px;">
                                                    <uc1:GridViewPager ID="QueryListGridView_GridViewPager" runat="server" OnFirstRecordClick="QueryListGridView_GridViewPager_FirstRecordClick"
                                                        OnLastRecordClick="QueryListGridView_GridViewPager_LastRecordClick" OnNextRecordClick="QueryListGridView_GridViewPager_NextRecordClick"
                                                        OnPrevRecordClick="QueryListGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="QueryListGridView_GridViewPager_TextBoxValueChange"
                                                        ParentGridView="QueryListGridView" />
                                                </div>
                                            </div>
                                            <%--<div class="gridHeaderText">
                                                            <header>
                                                            <asp:Label ID="AssignRouteLabel" runat="server" Text="Query List"></asp:Label>
                                                            </header>
                                                            </div>--%>
                                        </div>
                                        <div class="himsBoxContent">
                                            <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                <ContentTemplate>
                                                    <div id="Div5" runat="server" visible="false">
                                                        <asp:GridView ID="QueryListGridView" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                            OnRowDataBound="QueryListGridView_RowDataBound" OnPageIndexChanging="QueryListGridView_PageIndexChanging"
                                                            AllowPaging="true" PageSize="10" SkinID="" ShowHeader="true" PagerSettings-Visible="false"
                                                            DataKeyNames="QueryId" CssClass="table table-striped table-bordered" EmptyDataText="No Records Found !!">
                                                            <Columns>
                                                                <asp:TemplateField ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select"
                                                                            Text="Select" CausesValidation="false" OnClick="EditLinkButton_Click"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="No." ItemStyle-Width="3%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NumberLabel" runat="server" Text='<%# Bind("Number") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Created Date" ItemStyle-Width="8%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">

                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CreatedDate" runat="server" Text='<%# Bind("CreatedDateTime","{0:d}") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Query Category" ItemStyle-Width="12%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="QueryCategoryLabel" runat="server" Text='<%# Bind("QueryCategoryMaster") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Source Type" ItemStyle-Width="8%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="SourceTypeLabel" runat="server" Text='<%# Bind("FromSourceTypeId") %>'></asp:Label>

                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Code" HeaderStyle-Width="5%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CodeLabel" runat="server" Text='<%# Bind("FromSourceId") %>'></asp:Label>

                                                                    </ItemTemplate>
                                                                </asp:TemplateField>


                                                                <asp:TemplateField HeaderText="Name" HeaderStyle-Width="10%" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Remark" HeaderStyle-Width="12%" ItemStyle-Width="12%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RemarkLabel" runat="server" Text='<%# Bind("Remark") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Department / Division" HeaderStyle-Width="4%" ItemStyle-Width="4%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="DepartmentDivisionLabel" runat="server" Text='<%# Bind("Code") %>'></asp:Label>

                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Name" HeaderStyle-Width="12%" ItemStyle-Width="12%" SortExpression="View"
                                                                    HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="FullNameLabel" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Target Resolution Date" ItemStyle-Width="3%" SortExpression="View"
                                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TargetResolutionDateLabel" runat="server" Text='<%# Convert.ToString(Eval("TargetResolutionDate")).Equals("01/01/1900 00:00:00")?"":Eval("TargetResolutionDate", "{0:d}") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="View" ItemStyle-Width="3%" SortExpression="View"
                                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="ViewLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                            Text="View" CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-users"></i>
                                        <asp:Label ID="Label5" runat="server" Text="Query Master "></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex ">
                                <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                    <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordButton" OnClick="FirstRecordButton_Click"
                                        runat="server" CommandName="Page" CommandArgument="First"
                                        CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-fast-backward"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                        runat="server" CommandName="Page" CommandArgument="Prev" OnClick="PreviousImageButton_Click"
                                        CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-play fa-rotate-180"></i>
                                    </asp:LinkButton>
                                    <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" />
                                    <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButton" OnClick="NextImageButton_Click"
                                        runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next">
                                                     <i class="fa fa-play"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton" OnClick="LastRecordImageButton_Click"
                                        runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last">
                                                      <i class="fa fa-fast-forward" ></i>
                                    </asp:LinkButton>
                                    &nbsp;  &nbsp; &nbsp;
                                     <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" />
                                </div>

                                <%--   <table>
                                    <tr>


                                        <td class="formLabel">
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                <asp:ImageButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                    runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                    OnClick="FirstRecordImageButton_Click" />
                                                <asp:ImageButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                    runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                    OnClick="PreviousImageButton_Click" />
                                                <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" />
                                                <asp:ImageButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                    runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                    OnClick="NextImageButton_Click" />
                                                <asp:ImageButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                    runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                    OnClick="LastRecordImageButton_Click" />
                                            </div>
                                        </td>

                                        <td>
                                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="BackButton" Text="Back" />
                                        </td>



                                    </tr>
                                </table>--%>
                                <%-- <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" CommandName="Page" CommandArgument="First"
                                                    CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-fast-backward"></i>
                                                </asp:LinkButton>
                                                <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="Prev"
                                                    CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-play fa-rotate-180"></i>

                                                </asp:LinkButton>
                                                &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;
                                                <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                                <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last">
                                                      <i class="fa fa-fast-forward"></i>
                                                </asp:LinkButton>
                                                &nbsp;  &nbsp; &nbsp;
                                            </div>
                                        </td>
                                        <td>
                                            <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" />
                                        </td>
                                    </tr>
                                </table>--%>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="controlLabelWidth col-md-12 bg-lghtgrey radiobtn ">
                                    <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                        OnSelectedIndexChanged="SourceTypeRadioButtonList_OnSelectedIndexChanged" AutoPostBack="true">
                                        <asp:ListItem Text="Student" Value="2003" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                                <asp:Panel ID="SourceStudentSearchPanel" runat="server">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="LabelStudent" runat="server" Text="Student Code" CssClass="mandatory"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SourceStudentTextbox" SkinID="CustomWidthTextBox" runat="server" OnTextChanged="SourceStudentTextbox_TextChanged"
                                                MaxLength="500" AutoPostBack="true">
                                            </asp:TextBox>
                                            <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="SourceStudentIdNoImageButton"
                                                runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentNameLabel" runat="server" Text="Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="StudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200" Enabled="false"> </asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="ClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200" Enabled="false"> </asp:TextBox>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="SourceEmployeeSearchPanel" runat="server" Visible="false" Style="margin-bottom: 15px">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SourceEmployeeLabel" runat="server" Text="Employee Code" CssClass="mandatory"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5 display-flex">
                                            <asp:TextBox ID="SourceEmployeeTextBox" SkinID="CustomWidthTextBox" runat="server" OnTextChanged="SourceEmployeeTextBox_TextChanged"
                                                MaxLength="200" AutoPostBack="true">
                                            </asp:TextBox>
                                            <asp:ImageButton SkinID="FindImage" ToolTip="Employee Search" ID="SourceEmployeeIdNoImageButton"
                                                runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SourceEmployeeNameLabel" runat="server" Text="Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SourceEmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200" Enabled="false"> </asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="DepartmentTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200" Enabled="false"> </asp:TextBox>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <div class="cBoth">
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label3" runat="server" Text="Query Category" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="NewQueryDropDownList" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                            AutoPostBack="false" OnSelectedIndexChanged="NewQueryDropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                        <asp:HiddenField ID="IdHiddenField" runat="server" />
                                        <asp:HiddenField ID="GUIDHiddenField" runat="server" />
                                        <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                                        <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                                        <asp:HiddenField ID="DocumentNameHiddenField" runat="server" />
                                        <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                                    </div>
                                </div>

                                <div id="SubjectDiv" runat="server" visible="false">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SubjectLabel" runat="server" Text="Subject" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SubjectDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>

                                <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" AutoPostBack="false" SkinID="CustomWidthTextbox"
                                            onblur="return fnonTextChangeNameField(this)"></asp:TextBox>
                                    </div>
                                </div>



                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="StatusIDLabel" runat="server" Text="Status" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="StatusDropDownListAdd" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                            AutoPostBack="false">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox11 pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RemarkLabel" runat="server" Text="Remark" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5" style="width: 200px">
                                        <asp:TextBox ID="RemarkTextBox" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox"
                                            TextMode="MultiLine" runat="server" Width="100" MaxLength="1000"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label4" runat="server" Text="Assigned To Employee"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="EmployeeIdNoTextBox" SkinID="CustomWidthTextBox" runat="server" OnTextChanged="EmployeeCodeTextBox_TextChanged"
                                            MaxLength="500" AutoPostBack="true">
                                        </asp:TextBox>
                                        <asp:ImageButton SkinID="FindImage" ToolTip="Employee Search" ID="EmployeeIdNoImageButton"
                                            runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmployeeNameLabel" runat="server" Text="Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="EmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200" Enabled="false"> </asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DepartmentEmpLabel" runat="server" Text="Department"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="DepartmentEmpTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200" Enabled="false"> </asp:TextBox>
                                    </div>
                                </div>




                                <div class="outerBox11 pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmployeeRemarkLabel" runat="server" Text="Assigned To Remark"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5" style="width: 200px">
                                        <asp:TextBox ID="EmployeeRemarkTextBox" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox"
                                            TextMode="MultiLine" runat="server" Width="100" MaxLength="300"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="outerBox11 pTop5 col-md-3" id="NumberDiv" runat="server" style="display: none">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LabelNumberText" runat="server" Text="Number"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5" style="width: 200px">
                                        <%-- <asp:Label ID="LabelNumber" runat="server" Enabled="false" ></asp:Label>--%>
                                        <asp:TextBox ID="TextboxNumber" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox"
                                            runat="server" Width="100" Enabled="false"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="TargetResolutionDateLabel" runat="server" Text="Target Resolution Date" Visible="True"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="TargetResolutionDatePickerControl" Visible="True"
                                            runat="server" onkeyup="FormatIt(this);" onchange="isValidDatepicker(this);" placeholder="dd/mm/yyyy" />
                                    </div>
                                </div>
                                <div class="outerBox11 pTop15 col-md-3">
                                    <div class="fLeft">
                                        <asp:CheckBox ID="FileAttachmentCheckBox" runat="server" Text="File Attachment" AutoPostBack="True" OnCheckedChanged="FileAttachmentCheckBox_CheckedChanged" />

                                    </div>
                                </div>
                                <div id="FileUploaddiv" visible="False" runat="server">

                                    <div class="alignCenter pTop5 col-md-12">
                                        <div class="controlLabelWidth">
                                            <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                <i class="fa fa-arrow-down"></i>Browse</a>
                                            <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="True" />
                                            <asp:Button runat="server" ID="RefreshButton" Text=" Refresh" OnClick="RefreshButton_OnClick"
                                                SkinID="0" class="btn btn-refresh fas" />

                                        </div>

                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label2" runat="server" Style="padding-left: 10px; font-size: medium;" />
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="alert alert-info ">
                                            <i class="material-icons">info</i>
                                            <asp:Label ID="Label6" Text=" | Click on refresh button to view current uploaded Files"
                                                runat="server" />
                                        </div>
                                    </div>
                                    <div id="Div11" class="himssuHeader6WireBox col-md-12" runat="server">
                                        <div id="UploadDiv" visible="False" runat="server">

                                            <div class="himsBoxHeader card-head inner" id="HeaderDiv" visible="False" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                            </div>
                                            <div class="himsBoxContent width-100">
                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                    <ContentTemplate>
                                                        <div id="GridViewDiv" runat="server" visible="false" class="table-responsive">
                                                            <asp:GridView ID="FileGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                                                AutoGenerateColumns="False" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                                NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                                ImageUrl="~/Images/delete.png" ToolTip="Delete" />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <%-- <div class="alignCenter pTop15 col-md-12 center">
                                    <asp:Button ID="SaveButton" runat="server" Text="&#xf0c7; Save" SkinID="0" class="btn btn-save fas" />
                                </div>--%>
                            </div>
                        </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 data-main='<%=ResolveUrl("~/JavaScript/rjs/query")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
