<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Voice_Manage, MachSol.MachPanel.Web" %>

<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>
<%@ Register Src="CC/Company.ascx" TagName="Company" TagPrefix="UC" %>
<%@ Register Src="CC/Accounts.ascx" TagName="Accounts" TagPrefix="UC" %>
<%@ Register Src="CC/Subscriber.ascx" TagName="Subscriber" TagPrefix="UC" %>
<%@ Register Src="CC/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="UC" %>
<%@ Register Src="CC/NumbersPorting.ascx" TagName="NumbersPorting" TagPrefix="UC" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="../CC/Notes.ascx" TagName="Notes" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GetComments.ascx" TagName="GetComments" TagPrefix="EM" %>
<%@ Register Src="CC/Domains.ascx" TagName="Domains" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Clients/AccountStatment.ascx" TagName="AccountStatment" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/AccountAddons.ascx" TagName="AccountAddons" TagPrefix="EM" %>
<%@ Register Src="CC/ForwardingRule.ascx" TagName="Forwarding" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Clients/CC/CancelSubscription.ascx" TagName="CancelSubscription" TagPrefix="EM" %>
<%@ Register Src="CC/FilterLists.ascx" TagName="FilterLists" TagPrefix="UC" %>
<%@ Register Src="CC/Filters.ascx" TagName="Filters" TagPrefix="UC" %>
<%@ Register Src="CC/DirectRouting.ascx" TagName="DirectRouting" TagPrefix="UC" %>
<%@ Register Src="CC/Calls.ascx" TagName="Calls" TagPrefix="UC" %>
<%@ Register Src="CC/Destination.ascx" TagName="Destination" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Exchange/CC/GroupActions.ascx" TagName="GroupActions" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/PackageSwitch.ascx" TagName="PackageSwitch" TagPrefix="EM" %>
<%@ Register Src="../CC/Label.ascx" TagName="Label" TagPrefix="EM" %>
<%@ Register Src="~/RCC/O365/CC/TenantMissingServicePrincipalControl.ascx" TagName="TenantServicePrincipalError" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Voice/CC/DirectRoutingWizard.ascx" TagName="DirectRoutingW" TagPrefix="UC" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <%--<asp:UpdatePanel ID="UPTest01" runat="server">
        <ContentTemplate>--%>
    <style type="text/css">
        .ajax__tab_default .ajax__tab_header /* this makes the tabs wrap*/ {
            white-space: normal !important;
        }
    </style>

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" Text='<%$ Resources:Content,Manage %>' /></h2>
            </div>
            <div class="body">
                <asp:Button ID="Btn_RefreshTab" CssClass="RefreshTab" runat="server" Style="display: none;" />
                <EM:TabContainer ID="TC_Manage" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_GeneralSettings" runat="server" HeaderText='<%$ Resources:Content,SM400028%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>      <%--Operations--%>                                                                                                                             
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <%--                                                <asp:Button ID="Btn_PutOnHold" runat="server" Text="<%$ Resources:Content,GN0000756%>" class="btn btn-primary waves-effect" />--%>
                                                <asp:Button ID="Btn_UpGrade" runat="server" Text="<%$ Resources:Content,ChangePackage%>" class="btn btn-primary waves-effect btnAction" />
                                                <asp:Button ID="Btn_CancelSub" runat="server" Text="<%$ Resources:Content,SPT002010%>" class="btn btn-primary waves-effect btnAction" />
                                                <asp:Button ID="Btn_GenerateRenewalInvoice" Visible="false" runat="server" Text="<%$ Resources:Content,GN00001482%>" class="btn btn-primary waves-effect btnAction" />
                                                <asp:Button ID="Btn_Sync" runat="server" Text="<%$ Resources:Content,strSynchronize%>" class="btn btn-primary waves-effect btnAction" />

                                                <%--  <asp:Button ID="Btn_DownGrade" runat="server" Text="<%$ Resources:Content,String303%>" class="btn btn-primary waves-effect" />--%>
                                                &nbsp;
                                                <asp:Button ID="Btn_ConvertToPaid" runat="server" Text="<%$ Resources:Content,StrConvertToPaid %>" CssClass="btn btn-primary waves-effect btnAction" Visible="false" />
                                                &nbsp;
                                                <asp:Button ID="Btn_ConvertToPaidAndCustomerSvcs" runat="server" Text="<%$ Resources:Content,StrConvertToPaidResellerAndAllCustomerServices %>" Visible="false" CssClass="btn btn-primary waves-effect btnAction" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <ajax:UpdatePanel ID="UP_GeneralInfo" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>


                                        <div class="row">
                                            <div class="col-sm-8">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN00001466%>" EnableViewState="false"></asp:Literal></h3>
                                                    </div>
                                                    <div class="body">

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,String61%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12">
                                                                <asp:Label ID="LB_SubscriptionID" runat="server"></asp:Label>
                                                            </div>
                                                        </div>

                                                        <div class="row" id="Div_Account" runat="server">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000850%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12">
                                                                <asp:HyperLink ID="LB_Account" runat="server"></asp:HyperLink>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_SubResellerInfo" runat="server" visible="false">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,strSubReseller%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-8 col-xs-12">
                                                                <asp:LinkButton ID="LB_SubResellerInfo" runat="server"></asp:LinkButton>
                                                                <EM:ConfirmButtonExtender ID="CBE_LB_SubResellerInfo" ConfirmText="<%$ Resources:Content,LoginAsSubReseller%>" TargetControlID="LB_SubResellerInfo" runat="server">
                                                                </EM:ConfirmButtonExtender>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN000135%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Lbl_ServiceType" runat="server">
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,GN000141%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Lbl_Package" runat="server">
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal181" runat="server" Text='<%$ Resources:Content,Dev336%>' />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12">
                                                                <asp:Literal runat="server" ID="Lbl_PackageComments"></asp:Literal>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,strCallRatePlan%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12">
                                                                <asp:Literal ID="Ltrl_CallRatePlan" runat="server"></asp:Literal>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,NodeId%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12">
                                                                <asp:Literal ID="Ltrl_NodeId" runat="server"></asp:Literal>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,StrIsTrial%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <asp:Label class="col-sm-9 col-xs-12" ID="Lbl_IsTrial" runat="server">
                                                            </asp:Label>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN00001474%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Lbl_SignUpDate" runat="server">
                                                            </div>
                                                        </div>

                                                        <div class="row" id="Div_LastRenewal" runat="server">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,GN000136%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Lbl_LastRenewal" runat="server">
                                                            </div>
                                                        </div>

                                                        <div class="row" id="Div_NextRenewal" runat="server">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,GN000137%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Lbl_NextRenewal" runat="server">
                                                            </div>
                                                        </div>

                                                        <div class="row" id="Div_Contract" runat="server">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,strContractEndDate%>"
                                                                    EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Lbl_ContractEndDate" runat="server">
                                                            </div>
                                                        </div>

                                                        <div class="row" id="Div_Label" runat="server">
                                                            <EM:Label ID="Label" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-4">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,SPT002098%>" EnableViewState="false"></asp:Label></h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,String385%>" EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12">
                                                                <asp:Label ID="lbl_Status" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" />
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,DGN1110096%>" EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12">
                                                                <asp:Label ID="Lbl_Provider" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <EM:Notes ID="Notes_SIPAccount" runat="server" />
                                    </ContentTemplate>
                                </ajax:UpdatePanel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Billing" runat="server" HeaderText="<%$ Resources:Content,GN00001490%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <EM:AccountStatment ID="AS_Hosting" runat="server"></EM:AccountStatment>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Addons" runat="server" HeaderText="<%$ Resources:Content,GN00001489%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">

                                <EM:AccountAddons ID="AA_Hosting" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Tab_Company" Enabled="false" runat="server" HeaderText='<%$ Resources:Content,GN00001134%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab3" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                                <UC:Company ID="UC_Company" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Tab_Domains" runat="server" HeaderText='<%$ Resources:Content,String288%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab4" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent4" runat="server" Visible="false">
                                <UC:Domains ID="UC_Domains" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Tab_Accounts" runat="server" HeaderText='<%$ Resources:Content,accounts%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab5" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent5" runat="server" Visible="false">
                                <UC:Accounts ID="UC_Accounts" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Tab_Subscribers" runat="server" HeaderText='<%$ Resources:Content,Subscribers%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab6" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent6" runat="server" Visible="false">
                                <UC:Subscriber ID="UC_Subscriber" runat="server" />
                            </asp:Panel>

                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Tab_PhoneNumbers" runat="server" HeaderText='<%$ Resources:Content,DEV1089%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab7" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent7" runat="server" Visible="false">

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="products-step">
                                            <span id="div_PhoneNumbers" runat="server" nowrap="true" class="label label-success">
                                                <asp:LinkButton ID="lb_PhoneNumbers" runat="server" Text='<%$ Resources:Content, DEV1089 %>' />
                                            </span>
                                            <span id="div_NumbersPorting" runat="server" nowrap="true" class="label label-default">
                                                <asp:LinkButton ID="lb_NumbersPorting" runat="server" Text='<%$ Resources:Content, NumbersPorting %>' />
                                            </span>
                                        </div>
                                    </div>
                                </div>

                                <asp:Panel ID="Pnl_PhoneNumbers" runat="server">
                                    <UC:PhoneNumber ID="UC_PhoneNumber" runat="server" />
                                </asp:Panel>

                                <asp:Panel ID="Pnl_NumbersPorting" runat="server" Visible="false">
                                    <UC:NumbersPorting ID="UC_NumbersPorting" runat="server" />
                                </asp:Panel>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>


                    <EM:TabPanel ID="Tab_Forwarding" runat="server" HeaderText='<%$ Resources:Content,Forwarding%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab8" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent8" runat="server" Visible="false">
                                <UC:Forwarding ID="UC_Forwarding" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_FilterLists" runat="server" HeaderText='<%$ Resources:Content,strFilterLists%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab9" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent9" runat="server" Visible="false">
                                <UC:FilterLists ID="UC_FilterLists" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Tab_Filters" runat="server" HeaderText='<%$ Resources:Content,GN0001188%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab10" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent10" runat="server" Visible="false">
                                <UC:Filters ID="UC_Filters" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>


                    <EM:TabPanel ID="Tab_DirectRouting" runat="server" HeaderText='<%$ Resources:Content,strDirectRoutingTeams%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab11" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent11" runat="server" Visible="false">
                                <UC:DirectRouting ID="UC_DirectRoute" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Tab_Calls" runat="server" HeaderText='<%$ Resources:Content,strCallRecords%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab12" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent12" runat="server" Visible="false">
                                <UC:Calls ID="UC_Calls" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Tab_Destinations" runat="server" HeaderText='<%$ Resources:Content,strDestinations%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab13" runat="server" Style="display: none" />
                            <asp:Panel ID="Pnl_TabContent13" runat="server" Visible="false">
                                <UC:Destination ID="UC_Destination" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Pnl_GroupActions" runat="server" HeaderText="<%$ Resources:Content,strGroupActionsLog%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab14" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent14" runat="server" Visible="false">

                                <EM:GroupActions ID="UC_GroupActions" runat="server" />

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                </EM:TabContainer>

            </div>
        </div>
    </div>
    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy123" runat="server" Text="<%$ Resources:Content,SMI0007%>"
        Style="display: none;" />
    <asp:Panel ID="Panel1" runat="server" Style="display: none;" CssClass="width-modal-popup-auto">
        <EM:CancelSubscription ID="UCCancelSubscription" runat="server" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Panel1" TargetControlID="Btn_Dummy123">
    </EM:ModalPopupExtender>
    <ajax:UpdatePanel ID="UP_Inter" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Button CssClass="btn btn-primary waves-effect" ID="Button1" Style="display: none" runat="server" />
            <asp:Panel ID="Panel3" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                <EM:GetComments ID="GetComments" runat="server" />
            </asp:Panel>
            <EM:ModalPopupExtender runat="server" ID="MPE_GetReason" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="Panel3" TargetControlID="Button1">
            </EM:ModalPopupExtender>

            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy3" Style="display: none" runat="server" />
            <asp:Panel ID="Pnl_PackageSwitch" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                <EM:PackageSwitch runat="server" ID="PackageSwitch" OnPackageChange="PackageSwitchPopUpShow" />
            </asp:Panel>
            <EM:ModalPopupExtender runat="server" ID="MPE_PackageSwitch" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="Pnl_PackageSwitch" TargetControlID="Btn_Dummy3">
            </EM:ModalPopupExtender>
        </ContentTemplate>
    </ajax:UpdatePanel>





    <asp:Panel ID="Pnl_ConvertToPaidDetails" runat="server" Style="display: none;" CssClass="width-modal-popup-auto">
        <div class="col-lg-12 col-md-12 col-xs-12">
            <div class="card">
                <div class="header">
                    <h2>
                        <asp:Literal ID="Ltrl_ConversionDetails" runat="server" Text="<%$ Resources:Content,StrConversionDate %>"></asp:Literal>
                    </h2>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *
                            <asp:Literal ID='Ltrl_ConversionDate' runat='server' Text="<%$ Resources:Content,StrConversionDate %>"></asp:Literal>:
                            </label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <div class="form-group display-date-input">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ConversionDate" runat="server" onkeypress='event.preventDefault();'>
                                    </asp:TextBox>
                                </div>
                            </div>
                            <i runat="server" id="A_ConversionDate" class="material-icons icon-calendar col-calendar"></i>
                            <EM:CalendarExtender ID="CE_ConversionDate" runat="server" TargetControlID="TxBx_ConversionDate"
                                Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                PopupButtonID="A_ConversionDate" CssClass="date__calendar">
                            </EM:CalendarExtender>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                * <%= Resources.Content.GN000148 %>
                            </label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <div class="form-group">
                                <div>
                                    <asp:TextBox ID="TxBx_Comments" runat="server" Height="80px" TextMode="MultiLine" Width="100%"></asp:TextBox>
                                    <asp:RequiredFieldValidator Display="None" ID="RFV_Notes" ControlToValidate="TxBx_Comments"
                                        runat="server" ErrorMessage="" ValidationGroup="ConvertToPaid"
                                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal60" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000116%>" />:</label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <asp:CheckBox ID="CB_SendInvoice" runat="server" Checked="true" Text=" " />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="form-group">
                                <asp:ValidationSummary ShowMessageBox="true" ShowSummary="false" ID="VS" HeaderText='<%$ Resources:Content,EM000001 %>'
                                    runat="server" ValidationGroup="ConvertToPaid" />
                                <asp:Button ID="Btn_ConvertToPaidOk" runat="server" CausesValidation="true" ValidationGroup="ConvertToPaid" class="btn btn-primary waves-effect"
                                    Text="<%$ Resources:Content,GN0000858%>" />
                                <asp:Button ID="Btn_ConvertToPaidCancel" CausesValidation="false" class="btn btn-primary waves-effect"
                                    runat="server" Text='<%$ Resources:Content, GN0000572 %>' />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MPE_ConvertToPaidDetails" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_ConvertToPaidDetails" TargetControlID="Btn_Dummy123"
        OkControlID="Btn_ConvertToPaidCancel" CancelControlID="Btn_ConvertToPaidCancel">
    </EM:ModalPopupExtender>

    <style>
        .modalBackground {
            opacity:1.0;
        }
        .width-modal-popup-auto .card {
            margin-bottom:15px;
        }
        .width-modal-popup-auto button.close {
            font-size:30px;
        }
    </style>

    <ajax:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy124" runat="server" Style="display: none;" />
            <asp:Panel ID="Pnl_DirectRoutingWizard" runat="server" Style="display: none;" CssClass="width-modal-popup-auto">
                <div class="header container-fluid">
                    <asp:Image ID="Img_Logo" runat="server" CssClass="pull-left Logo_Image width-500px" ImageUrl="~/App_Themes/Default/Images/icons/logo.png" style="margin:15px 0px;" />
                    <span style="margin:10px 0px;display:inline-block; float:right;">
                        <button type="button" class="close" onclick="$find('<%=MPE_DirectRoutingWizard.ClientID%>').hide();window.location = window.location.href.toString().replace('&callbackok=1','').replace('&callbackerror=1','').replace('&loaduser=1','')">&times;</button>
                    </span>
                    <UC:DirectRoutingW ID="DirectRoutingW" runat="server" />
                </div>
            </asp:Panel>


            <EM:ModalPopupExtender runat="server" ID="MPE_DirectRoutingWizard" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="Pnl_DirectRoutingWizard" TargetControlID="Btn_Dummy124"
                OkControlID="" CancelControlID="" >
            </EM:ModalPopupExtender>
        </ContentTemplate>
    </ajax:UpdatePanel>


    <EM:TenantServicePrincipalError ID="TenantServicePrincipalError1" runat="server" />

    <script src="/JS/MSTokenHandler.js" type="text/javascript"></script>
    <script type="text/javascript">
        function handleAdminChangeWizard(source) {
            $get(source).click();

        }

        //function show() {
        //    var data = encodeURIComponent($(this).text());
        //    $.ajax({
        //        type: "POST",
        //        contentType: "application/json; charset=utf-8",
        //        url: "Manage.aspx.vb/ShowDirectRWizard",
        //        data: JSON.stringify({ "data": data }),
        //        datatype: "json",
        //        async: false,
        //        success: function (response) {
        //            alert("ShowDirectRWizard calling : " + response.d);
        //        },
        //        error: function (err) {
        //            alert(err.responseText);
        //        }
        //    });
        //}
    </script>
</asp:Content>
