<%@ control language="VB" autoeventwireup="false" inherits="RCC_Voice_CC_PhoneNumber, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<asp:Panel ID="Pnl_Listing_PhoneNumbers" runat="server" DefaultButton="Btn_ApplyFilter_PhoneNumbers">

    <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.SMI0423%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div class="clearfix">
                        <asp:Button ID="Btn_AddPhoneNumber" class="btn btn-primary waves-effect btnAction" runat="server"
                            Text='<%$ Resources:Content,OCS002 %>' />
                    </div>
                </div>
            </div>
        </div>
    </div>

    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter_PhoneNumbers">
        <div class="panel-group search-panel" id="AS_PhoneNumbers" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_PhoneNumbers">

                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_PhoneNumbers" href="#<%= CSB_PhoneNumbers.ClientID%>" aria-expanded="true" aria-controls="SH_PhoneNumbers">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>

                    <div id="CSB_PhoneNumbers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_PhoneNumbers" aria-expanded="false">
                        <div class="row">

                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_SrchPhoneNumber" runat="server" CssClass="allowonlyintegervalues" MaxLength="19"></asp:TextBox>
                                        <asp:Label ID="Label1" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,PhoneNumber%>"></asp:Label>
                                    </div>

                                </div>
                                <asp:RangeValidator ID="RV_TxBx_SrchPhoneNumber" runat="server" ControlToValidate="TxBx_SrchPhoneNumber"
                                    Display="None" SetFocusOnError="true" ValidationGroup="SearchPhoneNumbers"
                                    ErrorMessage="<%$ Resources:Content,DGN1110070 %>" Type="Double"
                                    MinimumValue="0" MaximumValue="9223372036854775807"></asp:RangeValidator>
                            </div>
                            <div class="col-md-3 col-sm-6 col-xs-12" id="Div_CustomerId" runat="server">
                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_SrchAssignedTo" runat="server" />
                                        <asp:Label ID="Label3" runat="server" class="form-label" EnableViewState="false"
                                            Text="<%$ Resources:Content,DEV1133%>"></asp:Label>
                                    </div>
                                </div>
                            </div>

                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:DropDownList ID="Ddl_SrchStatus" runat="server">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:ValidationSummary ID="VS_SearchPhoneNumbers" runat="server" ShowMessageBox="true"
                                        ShowSummary="false" ValidationGroup="SearchPhoneNumbers" />
                                    <asp:Button ID="Btn_ApplyFilter_PhoneNumbers" ValidationGroup="SearchPhoneNumbers" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                    <asp:Button ID="Btn_ClearFilter_PhoneNumbers" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />

                                </div>
                            </div>

                        </div>
                    </div>
                </div>

            </div>
        </div>
    </asp:Panel>

    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView ID="GV_PhoneNumbersListing" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                <Columns>
                    <%-- Un-assign (Visible only if status is assigned)--%>
                    <asp:TemplateField SortExpression="PhoneNumber" HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, PhoneNumber %>'>
                        <ItemTemplate>
                            <asp:Label ID="LB_PhoneNumber" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField SortExpression="AssignTo" HeaderText="<%$ Resources:Content,DEV1133%>" HeaderStyle-CssClass="col-xs-5">
                        <ItemTemplate>
                            <asp:HyperLink ID="LB_AssignedTo" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText='<%$ Resources:Content, Status %>' HeaderStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Label ID="LB_Status" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Button ID="Btn_UnAssign" runat="server" Text="<%$ Resources:Content,UnAssign %>"
                                CssClass="btn btn-primary waves-effect btnAction" CommandName="UnAssign" />
                            <asp:Button ID="Btn_NumberInfo" runat="server" Text="<%$ Resources:Content,NumberInfo %>"
                                CssClass="btn btn-primary waves-effect" CommandName="NumberInfo" />
                            <asp:Button ID="Btn_ReturnNumber" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="ReturnNumber" />
                            <asp:Button ID="Btn_ClaimBack" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="ClaimBack" />
                            <EM:ConfirmButtonExtender ID="CBE_UnAssign" runat="server" ConfirmText="<%$Resources:Content,UnassignNumberConfirmation%>"
                                TargetControlID="Btn_UnAssign">
                            </EM:ConfirmButtonExtender>
                            <EM:ConfirmButtonExtender ID="CBE_ReturnNumber" runat="server" ConfirmText="<%$Resources:Content,ReturnNumberConfirmation%>"
                                TargetControlID="Btn_ReturnNumber">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>

                    </asp:TemplateField>
                </Columns>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
            </EM:MPGridView>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_AddPhoneNumber" runat="server">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.OCS002%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal44" runat="server" Text='<%$ Resources:Content,NumberType %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="Ddl_PhoneNumber_NumberType" runat="server" AutoPostBack="true">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal47" runat="server" Text='<%$ Resources:Content,GN0000882 %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="Ddl_PhoneNumber_Country" runat="server">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *<asp:Literal ID="Literal56" runat="server" Text='<%$ Resources:Content,PostalCode %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_PhoneNumber_PostalCodeOrZip" runat="server" MaxLength="16"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RFV_PhoneNumber_PostalCodeOrZip" runat="server"
                                ControlToValidate="TxBx_PhoneNumber_PostalCodeOrZip"
                                Display="None" ValidationGroup="AddPhoneNumber" SetFocusOnError="True"></asp:RequiredFieldValidator>

                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal48" runat="server" Text='<%$ Resources:Content,HouseNumber %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_PhoneNumber_HouseNumber" runat="server" MaxLength="7" CssClass="allowonlyintegervalues"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server"
                                ControlToValidate="TxBx_PhoneNumber_HouseNumber" ErrorMessage='<%$ Resources:Content,OnlyIntegerValues %>'
                                ValidationExpression="^[0-9]*$" ValidationGroup="AddPhoneNumber" SetFocusOnError="true"
                                Display="None">
                            </asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal50" runat="server" Text='<%$ Resources:Content,HouseNumberAddition %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_PhoneNumber_HouseNumberAddition" runat="server" MaxLength="4"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *<asp:Literal ID="Literal49" runat="server" Text='<%$ Resources:Content,String35 %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="Ddl_PhoneNumber_Quantity" runat="server">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:HiddenField ID="HF_AddPhoneNumber" Value="0" runat="server" />
                            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="true" ShowSummary="false"
                                ValidationGroup="AddPhoneNumber" HeaderText="<%$ Resources:Content,EM000001%>" />
                            <asp:Button ID="Btn_Save_PhoneNumber" class="btn btn-primary waves-effect btnAction" ValidationGroup="AddPhoneNumber" CausesValidation="true" runat="server" Text='<%$ Resources:Content,GN0000281 %>' />
                            <asp:Button ID="Btn_Cancel_PhoneNumber" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN0000572 %>' class="btn btn-primary waves-effect" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="pnl_PhoneInfo" runat="server" Style="display: none;" CssClass="width-modal-popup-auto CustomZIndex">
    <%-- <div class="row">--%>
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.strPhoneInfoFor %>
                    <asp:Literal ID="ltl_PhoneNumber" runat="server"></asp:Literal>
                  <%--  <button type="button" class="close" data-dismiss="modal">x</button>--%>
                 
                    <asp:Button  ID="Button1" runat="server" Text="&times;" CssClass="close" />
                </h3>
                
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *
                            <asp:Literal ID="Literal25" runat="server" Text='<%$ Resources:Content,GN00001132 %>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FirstName" runat="server" MaxLength="64"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="TxBx_FirstName"
                            Display="None" ValidationGroup="AddNumberInfo" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal32" runat="server" Text='<%$ Resources:Content,DGN1110529 %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_MiddleName" runat="server" MaxLength="24"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal33" runat="server" Text='<%$ Resources:Content,GN00001133 %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_LastName" runat="server" MaxLength="112"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="TxBx_LastName"
                            Display="None" ValidationGroup="AddNumberInfo" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,CompanyName %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="Txbx_CompanyName" runat="server" MaxLength="112"></asp:TextBox>
                            </div>
                        </div>

                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal39" runat="server" Text='<%$ Resources:Content,DGN1110530 %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Street" runat="server" MaxLength="128"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_Street"
                            Display="None" ValidationGroup="AddNumberInfo" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal40" runat="server" Text='<%$ Resources:Content,HouseNumber %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_HouseNumber" runat="server" MaxLength="7" CssClass="allowonlyintegervalues"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server"
                            ControlToValidate="TxBx_HouseNumber" ErrorMessage='<%$ Resources:Content,OnlyIntegerValuesValidForHouseNumber %>'
                            ValidationExpression="^[0-9]*$" ValidationGroup="AddNumberInfo" SetFocusOnError="true"
                            Display="none">
                        </asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxBx_HouseNumber"
                            Display="None" ValidationGroup="AddNumberInfo" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal41" runat="server" Text='<%$ Resources:Content,HouseNumberAddition %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_HouseNumberAddition" runat="server" MaxLength="4"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,PostalCode %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_PostalCode" runat="server" MaxLength="128"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_PostalCode"
                            Display="None" ValidationGroup="AddNumberInfo" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal42" runat="server" Text='<%$ Resources:Content,GN0000880 %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_City" runat="server" MaxLength="128"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TxBx_City"
                            Display="None" ValidationGroup="AddNumberInfo" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal46" runat="server" Text='<%$ Resources:Content,GN0000882 %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="Ddl_CountryPhoneInfo" runat="server"></asp:DropDownList>
                        </div>
                    </div>
                </div>


                <div class="card">
                    <div class="header">

                        <h3>
                            <%= Resources.Content.strListingPereferences %>                                                                                                                                 
                        </h3>
                    </div>

                    <div class="body">
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label bold">
                                <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,strInTelephoneDirectories %>' EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="ChBx_InTelephoneDirectories" runat="server" Text=" " />
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label bold">
                                <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,strSubscriberInformationServices %>' EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="ChBx_SubscriberInformationServices" runat="server" Text=" " />
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label bold">
                                <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,strNumberMaskingatThirdParties %>' EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="ChBx_NumberMasking" runat="server" Text=" " />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="card">
                    <div class="body">
                        <div class="row">

                            <div class="col-sm-5 col-xs-12 row-label bold">
                                <asp:HiddenField ID="HFPhoneNumber" Value="0" runat="server" />
                                <asp:Button ID="Btn_SubmitInfo" class="btn btn-primary waves-effect btnAction" ValidationGroup="AddNumberInfo" CausesValidation="true" runat="server" Text='<%$ Resources:Content,GN0000710 %>' />
                                <asp:Button ID="Btn_Cancel" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN0000572 %>' class="btn btn-primary waves-effect" />
                            </div>
                            
                            <div class="col-sm-7 col-xs-12 align-right" runat="server" id="Div_lastModified" visible="false">
                                <%--<div class="col-sm-3 col-xs-12">
                                    <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,LastUpdated %>' EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">--%>
                                    <asp:Label ID="lbl_LastUpdated" runat="server"></asp:Label>
                               <%-- </div>--%>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <%-- </div>--%>
</asp:Panel>

<asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy123" runat="server" Text="<%$ Resources:Content,SMI0007%>"
    Style="display: none;" />
<EM:ModalPopupExtender runat="server" ID="MPinfo" BackgroundCssClass="modalBackground"
  CancelControlID="Btn_Cancel" OnCancelScript="onCancelGA()"  DropShadow="false" PopupControlID="pnl_PhoneInfo" TargetControlID="Btn_Dummy123">
</EM:ModalPopupExtender>

<%--<EM:ModalPopupExtender runat="server" ID="MPE_GA" OkControlID="Btn_Pop_QRCode_Ok"
            CancelControlID="Btn_Pop_QRCode_Cancel" OnOkScript="onOkGA()" OnCancelScript="onCancelGA()" BackgroundCssClass="modalBackground" DropShadow="false"
            PopupControlID="Pnl_SaveQRCode" TargetControlID="Btn_Dummy3">
        </EM:ModalPopupExtender>--%>


 <script type="text/javascript">
     function onCancelGA() {
         __doPostBack('Btn_Cancel', '');
     }

 </script>