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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl"
    TagPrefix="HIMS" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%--<%@ Register Src="~/UserControls/Emrd/EmrdPatientSearch.ascx" TagName="EmrdPtSearch" TagPrefix="EPS" %>
<%@ Register Src="~/UserControls/Common/PatientSearch/PatientSearch.ascx" TagName="PatientSearchUserControl" TagPrefix="PS" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>

            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <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="125"
                                                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" id="Div4" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>

                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-wrench"></i>
                                        <asp:Label ID="Label4" Text="Prefix Setup Master"
                                            runat="server" />
                                    </header>
                                </div>
                            </div>
                        </div>

                        <div class="himsBoxContent card-body">


                            <asp:Panel ID="DetailPanel" runat="Server">


                                <div class="spacer">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image1Resource1" />
                                </div>

                                <div class="alignCenter col-md-12">
                                    <div class="col-md-3 col-md-offset-1">
                                        <asp:Button ID="ApplyDefaultPrefixButton" runat="server" OnClick="ApplyDefaultPrefixButton_Click" SkinID="0" CssClass="btn btn-assign fas" Text="&#xf044; Apply Default Prefix" />
                                    </div>
                                    <div class="col-md-6 pTop5 display-flex" style="padding-top:0px">
                                        <asp:TextBox ID="ApplyPrefixLengthTextBox" style="margin-top:5px" onkeypress="return isNumberKey(event)" Width="30px" Onchange="return ValidateNumeric(this);" runat="server"></asp:TextBox>
                                        &nbsp;
                                        <asp:Button ID="ApplyPrefixLengthButton" runat="server" Text="&#xf044; Apply Prefix Length to All" SkinID="0" OnClick="ApplyPrefixLengthButton_Click" CssClass="btn btn-assign fas" />
                                    </div>

                                </div>

                                <div class="contentHolder">
                                    <div class="himssuHeader6WireBox col-md-12">
                                        <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                               <%-- <div class="gridHeaderText fLeft">
                                                    <header>
                                                        <asp:Label ID="GridViewLabel" Text="Available Examination Area List To Select" runat="server" />
                                                    </header>
                                                </div>--%>
                                                <div class="fRight">
                                                    <uc1:GridViewPager ID="PrefixSetupGridViewPager" Visible="false" runat="server"
                                                        ParentGridView="PrefixSetupGridView" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                visible="False">
                                            </div>
                                            <div id="Div14" runat="server" class="table-responsive">
                                                <asp:GridView ID="PrefixSetupGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!"
                                                    AllowPaging="False" OnRowDataBound="PrefixSetupGridView_RowDataBound" CssClass="table table-striped table-bordered table-hover"
                                                    DataKeyNames="Id,PrefixFunctionalityId,PrefixFunctionality,Prefix,SpecifiedPrefixLength,EffectiveDate">
                                                    <Columns>

                                                        <asp:BoundField DataField="Id" HeaderText="Id" Visible="false"></asp:BoundField>
                                                        <asp:BoundField DataField="PrefixFunctionalityId" HeaderText="PrefixFunctionalityId" Visible="false"></asp:BoundField>
                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="1%" ItemStyle-Wrap="true">
                                                            <HeaderTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="HeaderSelectCheckBox_OnCheckedChanged" />
                                                                    <span></span>
                                                                </label>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                    <span></span>
                                                                </label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="PrefixFunctionality" HeaderText="PrefixFunctionality" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>

                                                        <asp:TemplateField HeaderText="Prefix" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>

                                                                <asp:TextBox ID="PrefixTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("Prefix") %>'
                                                                    SkinID="MultilineTextBox" Width="100px"></asp:TextBox>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Prefix Length" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>

                                                                <asp:TextBox ID="PrefixLengthTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("SpecifiedPrefixLength") %>'
                                                                    SkinID="MultilineTextBox" Width="100px"></asp:TextBox>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Effective Date" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <HIMS:DataPickerControl ID="EffectiveDateTextBox" AutoCompleteType="Disabled" DisplayDatePicker="true" Text='<%# Bind("EffectiveDate","{0:d}") %>'
                                                                    runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

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

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