<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_QueryList, App_Web_xo24zi45" title="Query List" 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">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <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="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box">
                        <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>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <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="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" />
                                            <asp:Button ID="NewQueryButton" Text="&#xf059; New Query" runat="Server" OnClick="NewQueryButton_Click" SkinID="0" class="btn btn-new fas" />
                                             <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn-examcommon 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%">
                                                    <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 card-body">
                                                <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">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="CreatedDate" HeaderStyle-Width="15%" ItemStyle-Width="15%" FooterStyle-Width="15%" 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="QueryCategory" HeaderStyle-Width="15%" ItemStyle-Width="15%" FooterStyle-Width="15%" 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="Name" HeaderStyle-Width="15%" ItemStyle-Width="15%" FooterStyle-Width="15%" 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="Number" HeaderStyle-Width="15%" ItemStyle-Width="15%" FooterStyle-Width="15%" 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="Remark" HeaderStyle-Width="15%" ItemStyle-Width="15%" FooterStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="RemarkLabel" runat="server" Text='<%# Bind("Remark") %>' Width="150px" ></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="User Name" HeaderStyle-Width="15%" ItemStyle-Width="15%" FooterStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="UserNameLabel" runat="server" Text='<%# Bind("UserName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="View" HeaderStyle-Width="10%" ItemStyle-Width="10%" FooterStyle-Width="10%" 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>

                </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>
</asp:Content>
