<%@ page language="C#" autoeventwireup="true" inherits="Pages_Administration_CustomeQuery, App_Web_nwm5p3oq" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

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

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <%--<div class="himsBoxHeader">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>
                                        </div>
                                    </div>
                                </div>--%>
                        <table width=" 0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="167"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-question-circle"></i>
                                        <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Custome Query"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="cBoth">
                                </div>
                                <div id="CustomeQueryDetailDiv" runat="server" visible="false">
                                    <div class="spacer">
                                        <asp:Image ID="Image14" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image14Resource1" />
                                    </div>
                                    <div class="himssuHeader6WireBox col-md-12">
                                        <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="false">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="gridHeaderText">
                                                    <header>
                                                        <asp:Label ID="GridViewLabel" Text="Custome Query List" runat="server" />
                                                    </header>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div id="CustomeQueryDiv" runat="server" visible="true">
                                                <div id="Div4" runat="server" class="table-responsive">
                                                    <asp:GridView ID="CustomeQueryGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                        EmptyDataText="No Records Found !!" AllowPaging="False" CssClass="table table-striped table-bordered table-hover"
                                                        OnRowDataBound="CustomeQueryGridView_RowDataBound"
                                                        DataKeyNames="CustomQueryId,CustomQueryName,SqlQuery" ShowHeader="True" ShowFooter="false">
                                                        <Columns>
                                                            <asp:BoundField DataField="CustomQueryName" HeaderText="Custom Query Name" ItemStyle-Width="45%"
                                                                HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:TemplateField HeaderText="" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="45%"
                                                                ItemStyle-Wrap="true">
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                <ItemTemplate>
                                                                    <asp:Button ID="CustomeQueryButton" runat="server" SkinID="0" Text="&#xf06e; View Data" CssClass="btn-edit btn fas" OnClick="CustomeQueryButton_Click" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <asp:CheckBox ID="EXeCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="EXeCheckBox_CheckedChanged" Text="Query Execute" />
                                        <div class="cBoth">
                                        </div>
                                        <div id="CheckBoxExe" runat="server" visible="false">
                                            <div class="fLeft" style="margin-top: -4px;">
                                                <asp:TextBox ID="ApplyTextBox" Width="500px" runat="server" TextMode="MultiLine" Height="150px"></asp:TextBox>


                                            </div>
                                            <div class="spacer">
                                                <img src="../../../Images/spacer.gif" />
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <asp:Button ID="ApplyButton" runat="server" OnClick="ApplyButton_Click" SkinID="0" Text="&#xf02e; Execute" CssClass="btn-examcommon btn fas" />
                                        </div>

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