<%@ control language="VB" autoeventwireup="false" inherits="RCC_Clients_CC_SellOrg, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellExchange.ascx" TagName="SellExchange" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellCRMHosting.ascx" TagName="SellCRMHosting" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellSP.ascx" TagName="SellSP" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellOCS.ascx" TagName="SellOCS" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellO365Services.ascx" TagName="SellO365Services" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellADProduct.ascx" TagName="SellADProduct" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellWorkfolders.ascx" TagName="SellWorkfolders" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellRDSHosting.ascx" TagName="SellRDSHosting" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellSIP.ascx" TagName="SellSIP" TagPrefix="EM" %>

<script type="text/javascript">
    function CopyToOrgName() {
        try {
            $get('<%= SellCRMHosting1.ParentOrgName.Split(",")(0) %>').value = $get('<%=TxBx_OrgName.ClientID%>').value
            $get('<%= SellCRMHosting1.ParentOrgName.Split(",")(1)%>').value = $get('<%=TxBx_OrgName.ClientID%>').value
            $get('<%= SellCRMHosting1.ParentOrgName.Split(",")(2) %>').value = $get('<%=TxBx_OrgName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellExchange1.ParentOrgName %>').value = $get('<%=TxBx_OrgName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellSP1.ParentOrgName%>').value = $get('<%=TxBx_OrgName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellOCS1.ParentOrgName%>').value = $get('<%=TxBx_OrgName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellO365Services1.ParentOrgName%>').value = $get('<%=TxBx_OrgName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%=SellADProduct1.ParentOrgName%>').value = $get('<%=TxBx_OrgName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellWorkfolders1.ParentOrgName %>').value = $get('<%=TxBx_OrgName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellRDSHosting1.ParentOrgName %>').value = $get('<%=TxBx_OrgName.ClientID%>').value
        }
        catch (e) { }

     
    }

    function CopyToDomainName() {
        try {
            $get('<%= SellCRMHosting1.ParentDomainName.Split(",")(0) %>').value = $get('<%=TxBx_DomainName.ClientID%>').value
            $get('<%= SellCRMHosting1.ParentDomainName.Split(",")(1) %>').innerHTML = ('@' + $get('<%=TxBx_DomainName.ClientID%>').value);
        }
        catch (e) { }

        try {
            $get('<%= SellExchange1.ParentDomainName %>').value = $get('<%=TxBx_DomainName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellSP1.ParentDomainName.Split(",")(0)%>').value = $get('<%=TxBx_DomainName.ClientID%>').value
            $get('<%= SellSP1.ParentDomainName.Split(",")(1) %>').innerHTML = ('@' + $get('<%=TxBx_DomainName.ClientID%>').value);
        }
        catch (e) { }

        try {
            $get('<%= SellOCS1.ParentDomainName%>').value = $get('<%=TxBx_DomainName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellO365Services1.ParentDomainName%>').value = $get('<%=TxBx_DomainName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellADProduct1.ParentDomainName%>').value = $get('<%=TxBx_DomainName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellWorkfolders1.ParentDomainName%>').value = $get('<%=TxBx_DomainName.ClientID%>').value
        }
        catch (e) { }

        try {
            $get('<%= SellRDSHosting1.ParentDomainName%>').value = $get('<%=TxBx_DomainName.ClientID%>').value
        }
        catch (e) { }

       
    }

</script>

<div class="row">
    <div class="col-xs-12 row-label col-red" id="Div_Error" runat="server" visible="false">
    </div>
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,L0065%>" EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row" id="TR_DDL_ADDomain" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,DGN1110433%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_ADDomain" runat="server" AutoPostBack="True">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,DGN1110608%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_OrgName" runat="server" MaxLength="128"
                                    onChange="CopyToOrgName()"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_OrgName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="NewOrg"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN000125%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_DomainName" runat="server" MaxLength="100" onChange="CopyToDomainName()"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxBx_DomainName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="NewOrg"></asp:RequiredFieldValidator>
                                <%--<asp:RegularExpressionValidator ID="RE_DomTra" runat="server" ErrorMessage='<%$Resources:Content,DGN1110154%>'
                                    SetFocusOnError="True" ControlToValidate="TxBx_DomainName" ValidationGroup="NewOrg"
                                    ValidationExpression="<%$ Resources:Content,REV001 %>"
                                    Display="None"></asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal14" runat="server" Text="<%$Resources:Content,DEV1044%>" />
                    </div>
                </div>

                <div id="Pnl_BillingOFFUI" runat="server">
                    <div class="row" id="TR_Cycle" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,GN00001473%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <input id="HTxBx_OPrice" runat="server" type="hidden" />
                                <input id="HTxBx_PGID" runat="server" type="hidden" />
                                <input id="HTxBx_CS" runat="server" type="hidden" />
                                <asp:DropDownList ID="DDL_Cycle" runat="server" AutoPostBack="True">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel-group" id="accordion_1" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-primary" id="AP_Exchange" runat="server">
                        <div class="panel-heading" role="tab" id="headingOne_1">
                            <h2 class="panel-title">
                                <a role="button" id="A_Exchange" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_Exchange.ClientID%>" aria-expanded="false" aria-controls="collapseOne_1" class="collapsed">
                                    <%= Resources.Content.GN0002000%>
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_Exchange" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne_1" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <asp:Panel ID="Pnl_ExchangeHosting" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12 row-label">
                                            <asp:CheckBox ID="CB_EnableExchange" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,SMI062%>" />
                                        </div>
                                    </div>
                                    <div id="TR_SellExchange" runat="server" visible="false">
                                        <EM:SellExchange ID="SellExchange1" runat="server" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>                    
                    <div class="panel panel-primary" id="AP_CRM" runat="server">
                        <div class="panel-heading" role="tab" id="headingTwo_1">
                            <h4 class="panel-title">
                                <a class="collapsed" id="A_CRM" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_CRM.ClientID%>" aria-expanded="false" aria-controls="collapseTwo_1">
                                    <%= Resources.Content.DEV1029%>
                                </a>
                            </h4>
                        </div>
                        <div id="CSB_CRM" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo_1" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <asp:Panel ID="Pnl_CRM" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12 row-label">
                                            <asp:CheckBox ID="CB_EnableCRM" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,SMI064%>" />
                                        </div>
                                    </div>
                                    <div id="TR_SellCRM" runat="server" visible="false">
                                        <EM:SellCRMHosting ID="SellCRMHosting1" runat="server" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-primary" id="AP_SP" runat="server">
                        <div class="panel-heading" role="tab" id="headingThree_1">
                            <h4 class="panel-title">
                                <a class="collapsed" id="A_SP" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_SP.ClientID%>" aria-expanded="false" aria-controls="collapseThree_1">
                                    <%= Resources.Content.String145%>
                                </a>
                            </h4>
                        </div>
                        <div id="CSB_SP" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree_1" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <asp:Panel ID="Pnl_SP" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12 row-label">
                                            <asp:CheckBox ID="CB_EnableSP" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,SMI065%>" />
                                        </div>
                                    </div>
                                    <div id="TR_SellSP" runat="server" visible="false">
                                        <EM:SellSP ID="SellSP1" runat="server" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-primary" id="AP_OCS" runat="server">
                        <div class="panel-heading" role="tab" id="headingFour_1">
                            <h4 class="panel-title">
                                <a class="collapsed" id="A_OCS" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_OCS.ClientID%>" aria-expanded="false" aria-controls="collapseFour_1">
                                    <%= Resources.Content.DB015%>
                                </a>
                            </h4>
                        </div>
                        <div id="CSB_OCS" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour_1" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <asp:Panel ID="Pnl_OCS" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:CheckBox ID="CB_EnableOCS" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,SMI063%>" />
                                        </div>
                                    </div>
                                    <div id="TR_SellOCS" runat="server" visible="false">
                                        <EM:SellOCS ID="SellOCS1" runat="server" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-primary" id="AP_O365" runat="server">
                        <div class="panel-heading" role="tab" id="headingFive_1">
                            <h4 class="panel-title">
                                <a class="collapsed" id="A_O365" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_O365.ClientID%>" aria-expanded="false" aria-controls="collapseFive_1">
                                    <%= Resources.Content.O365Account%>
                                </a>
                            </h4>
                        </div>
                        <div id="CSB_O365" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFive_1" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <asp:Panel ID="Pnl_O365" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:CheckBox ID="CB_EnableO365" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,EnableO365Service%>" />
                                        </div>
                                    </div>
                                    <div id="TR_SellO365" runat="server" visible="false">
                                        <EM:SellO365Services ID="SellO365Services1" runat="server" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-primary" id="AP_ActiveDirectory" runat="server">
                        <div class="panel-heading" role="tab" id="headingSix_1">
                            <h4 class="panel-title">
                                <a class="collapsed" id="A_ActiveDirectory" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_ActiveDirectory.ClientID%>" aria-expanded="false" aria-controls="collapseFive_1">
                                    <%= Resources.Content.M0104%>
                                </a>
                            </h4>
                        </div>
                        <div id="CSB_ActiveDirectory" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix_1" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <asp:Panel ID="Pnl_ActiveDirectory" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:CheckBox ID="CB_EnableAD" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,enableAD%>" />
                                        </div>
                                    </div>
                                    <div id="TR_SellAD" runat="server" visible="false">
                                        <EM:SellADProduct ID="SellADProduct1" runat="server" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-primary" id="AP_Workfolder" runat="server">
                        <div class="panel-heading" role="tab" id="headingOne_WFH">
                            <h2 class="panel-title">
                                <a role="button" id="A_Workfolder" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_Workfolder.ClientID%>" aria-expanded="false" aria-controls="collapseSeven_1" class="collapsed">
                                    <%= Resources.Content.Workfolder%>
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_Workfolder" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne_WFH" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <asp:Panel ID="Pnl_WorkfolderHosting" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12 row-label">
                                            <asp:CheckBox ID="CB_EnableWorkfolder" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,strEnableWFH%>" />
                                        </div>
                                    </div>
                                    <div id="TR_SellWFH" runat="server" visible="false">
                                        <EM:SellWorkfolders ID="SellWorkfolders1" runat="server" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-primary" id="AP_RDS" runat="server">
                        <div class="panel-heading" role="tab" id="headingOne_RDSH">
                            <h2 class="panel-title">
                                <a role="button" id="A_RDS" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_RDS.ClientID%>" aria-expanded="false" aria-controls="collapseEight_1" class="collapsed">
                                    <%= Resources.Content.RDSHosting%>
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_RDS" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne_RDSH" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <asp:Panel ID="Pnl_RDSHosting" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12 row-label">
                                            <asp:CheckBox ID="CB_EnableRDS" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,strEnableRDS%>" />
                                        </div>
                                    </div>
                                    <div id="TR_SellRDS" runat="server" visible="false">
                                        <EM:SellRDSHosting ID="SellRDSHosting1" runat="server" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-primary" id="AP_SIP" runat="server">
                        <div class="panel-heading" role="tab" id="headingOne_SIPH">
                            <h2 class="panel-title">
                                <a role="button" id="A_SIP" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_SIP.ClientID%>" aria-expanded="false" aria-controls="collapseEight_1" class="collapsed">
                                    <%= Resources.Content.MachCloudCommunication%>
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_SIP" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne_SIPH" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <asp:Panel ID="Pnl_SIPHosting" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12 row-label">
                                            <asp:CheckBox ID="CB_EnableSIP" runat="server" AutoPostBack="true" Text="<%$ Resources:Content,strEnableSIP%>" />
                                        </div>
                                    </div>
                                    <div id="TR_SellSIP" runat="server" visible="false">
                                        <EM:SellSIP ID="SellSIP1" runat="server" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-12">
                        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001%>' ID="ValidationSummary1"
                            runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="NewOrg" />
                        <asp:Button ID="Btn_Add" class="btn btn-primary waves-effect btnAction" ValidationGroup="NewOrg" runat="server"
                            Text="<%$ Resources:Content,GN000111%>" />
                        <asp:Button class="btn btn-primary waves-effect" ID="LB_Close" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
