<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_ViewQuery, App_Web_nljof4qm" title="View 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" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <style>
        .outerBox {
            height: 35px;
        }
    </style>
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <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="114"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head ">

                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-list-ul"></i>
                                        <asp:Label ID="ViewQueryLabel" runat="server" Text="View Query"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27">
                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" class="btn btn-back fas" Text="&#xf30a; Back" />
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox col-md-3 display-flex">

                                    <asp:Label ID="NumberLabel" runat="server" Text="Number : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                           
                                                                <asp:Label runat="server" ID="NumberListLabel" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                                </asp:Label>



                                </div>

                                <div class="outerBox col-md-3 display-flex">

                                    <asp:Label ID="QueryCategoryLabel" runat="server" Text="Query Category : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                         
                                                                <asp:Label runat="server" ID="QueryCategoryTextBoxLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthLabel">
                                                                </asp:Label>
                                    <asp:HiddenField ID="IdHiddenField" runat="server" />

                                </div>
                                <div id="SubjectTR" runat="server" class="outerBox col-md-12 display-flex" visible="false">

                                    <asp:Label ID="SubjectLabel" runat="server" Text="Subject : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                            
                                                                <asp:Label runat="server" ID="SubjectPrintLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthLabel">
                                                                </asp:Label>

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

                                    <asp:Label ID="TitleLabel" runat="server" Text="Title : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                          
                                                                <asp:Label ID="TitleTextBoxLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    runat="server" MaxLength="100" AutoPostBack="false"
                                                                    SkinID="CustomWidthLabel"></asp:Label></td>
                                                            
                                </div>



                                <%-- <div class="outerBox col-md-12 display-flex" style="display:none">

                                    <asp:Label ID="TitleTextLabel" runat="server" Text="Title : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                           
                                                                <asp:Label runat="server" ID="TitleTextListLabel" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                                </asp:Label>



                                </div>--%>



                                <div class="outerBox col-md-3 display-flex">

                                    <asp:Label ID="FromSourceTypeIdLabel" runat="server" Text="Source Type : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                           
                                                                <asp:Label runat="server" ID="FromSourceTypeIdListLabel" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                                </asp:Label>



                                </div>
                                <div class="cBoth"></div>
                                <div class="outerBox col-md-3 display-flex" runat="server">

                                    <asp:Label ID="FromSourceIdLabel" runat="server" Text="Code : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                           
                                                                <asp:Label runat="server" ID="FromSourceIdListLabel" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                                </asp:Label>



                                </div>

                                <div class="outerBox col-md-6 display-flex">

                                    <asp:Label ID="NameLabel" runat="server" Text="Name : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                           
                                                                <asp:Label runat="server" ID="NameListLabel" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                                </asp:Label>



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

                                    <asp:Label ID="StatusLabel" runat="server" Text="Status : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                           
                                                                <asp:Label runat="server" ID="StatusDropDownListLabel" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                                </asp:Label>

                                </div>

                                <div class="outerBox col-md-3 display-flex">

                                    <asp:Label ID="TargetResolutionDateLabel" runat="server" Text="Target Resolution Date : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                           
                                                                <asp:Label runat="server" ID="TargetResolutionDateListLabel" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                                </asp:Label>



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

                                    <asp:Label ID="CreatedDateTimeLabel" runat="server" Text="Created Date : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                           
                                                                <asp:Label runat="server" ID="CreatedDateTimeListLabel" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                                </asp:Label>



                                </div>
                                <div class="cBoth"></div>
                                <div class="outerBox11 col-md-12 ">

                                    <asp:Label ID="QueryAttachmentLabel" runat="server" Text="Attachment : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td> </br>
                                    <div class="table-bordered" style="padding: 4px;width: 98%;">
                                        <asp:Table ID="QueryAttachmentGridViewTable" runat="server" ></asp:Table> </td>
                                    </div>
                                </div>
                                <div class="cBoth"></div>
                                <div class="outerBox11 col-md-12">
                                    <%--<i class="fa fa-comment-o"></i>--%>

                                    <asp:Label ID="RemarkLabel" runat="server" Text="Remark :" SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>                                    
                                        <asp:TextBox ID="RemarkTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox"
                                            TextMode="MultiLine" MaxLength="1000" Enabled="false"></asp:TextBox><td />

                                    <asp:Label ID="CommentLabel" runat="server" Text="Comments : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                   
                                                    
                                                                <asp:TextBox ID="CommentTextBox" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox"
                                                                    TextMode="MultiLine" runat="server" MaxLength="1000"></asp:TextBox></td>
                                                       
                                                            <div class="col-md-12 alignCenter">
                                                                &nbsp;<asp:Button ID="CommentButton" Text="Comment" runat="Server" OnClick="SaveButton_Click" SkinID="0" CssClass="btn btn-assign" />
                                                                <asp:Button ID="CloseButton" runat="server" Text="Close" OnClick="CloseButton_Click" Visible="false" SkinID="0" CssClass="btn btn-assign" />
                                                                <asp:Button ID="HoldButton" runat="server" Text="Hold" OnClick="HoldButton_Click" Visible="false" SkinID="0" CssClass="btn btn-assign" />
                                                                <asp:HiddenField runat="server" ID="DeleteCommentIdHiddenField" />
                                                            </div>
                                </div>

                            </div>


                            <asp:Repeater ID="QueryRepeater" runat="server" OnItemDataBound="QueryRepeater_OnItemDataBound">
                                <ItemTemplate>
                                    <div class="leftUlMenu" style="padding-left: 20px">
                                        <ul>
                                            <li style="height: auto; color: Black; list-style-type: none; background-color: White; width: 40%">
                                                <asp:HiddenField runat="server" ID="CommentIdHiddenField" Value='<%# Eval("QueryCommentId") %>' />
                                                <asp:Label runat="server" ID="CommentCreatedUserNameLabel" Text='<%# Eval("UserName") %>'
                                                    Font-Size="Small" Font-Bold="true"></asp:Label>
                                                <asp:LinkButton ID="DeleteLinkButton" CssClass="label label-danger" Style="float: right" runat="server" Text="Delete" ForeColor="Blue" Visible="false" OnClick="DeleteLinkButton_Click"></asp:LinkButton>
                                                <asp:Label runat="server" ID="CommentCreatedDateTimeLabel" Text='<%# DataBinder.Eval(Container.DataItem, "CreatedDateTime", "{0:MMMM dd,yyyy}") %>'
                                                    Style="float: right" CssClass="whiteboxpaddingleft row" Font-Bold="true"></asp:Label>
                                                <div class="rollIn">
                                                    <asp:Label CssClass="direct-chat-text rollIn" runat="server" ID="RemarkLabel" Text='<%# DataBinder.Eval(Container.DataItem, "Remark").ToString().Replace(Environment.NewLine, "<br />") %>' Width="390px"></asp:Label>
                                                </div>
                                            </li>

                                        </ul>
                                    </div>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>

                    </div>
                </div>
            </div>
            </div>                       
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/view-query-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/view-query")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
