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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.strCSPTenantsImportWizard%></h3>
            </div>
            <div class="body">
                <asp:Panel ID="Pnl_Step1" runat="server">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="body">
                                    <asp:Label ID="Label15" runat="server" Text="<%$ Resources:Content,strCSPTenantImportTitle %>" />
                                    <br />
                                    <br />
                                    <strong>
                                        <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content, PreRequisites %>" />:</strong>
                                    <ol>
                                        <li style="list-style: decimal;">
                                            <asp:Label ID="Lbl_PackageReq" runat="server"
                                                Text="<%$ Resources:Content, strCSPTenantImportPackageReq %>" /></li>
                                        <li style="list-style: decimal;">
                                            <asp:Label ID="Lbl_ResellerOfferReq" runat="server"
                                                Text="<%$ Resources:Content, strCSPTenantImportResellerOfferReq %>" /></li>
                                        <li style="list-style: decimal;">
                                            <asp:Label ID="Lbl_PackageOfferReq" runat="server"
                                                Text="<%$ Resources:Content, strCSPTenantImportPackageOfferReq %>" /></li>
                                        <li style="list-style: decimal;">
                                            <asp:Label ID="Lbl_BatchItemConstraint" runat="server" Text="<%$ Resources:Content,strCSPTenantImportBatchItemsConstraint %>">

                                            </asp:Label>
                                        </li>
                                    </ol>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3><%= Resources.Content.USM0127%></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Label ID="Lbl_SelectOwner" runat="server" Text="<%$ Resources:Content, SMI051 %>" EnableViewState="false"></asp:Label>:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_Owner" AutoPostBack="true" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Label ID="Lbl_SelectCSPProfile" runat="server" Text="<%$ Resources:Content,strSelectCSPProfile %>"
                                                EnableViewState="false"></asp:Label>:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_CSPProfile" runat="server" AutoPostBack="true">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Label ID="Lbl_SelectCSPPackage" runat="server" Text="<%$ Resources:Content,FAM00238 %>"
                                                EnableViewState="false"></asp:Label>:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_CSPPackage" runat="server" AutoPostBack="true">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row" id="div_pgroup" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Label ID="Lbl_SelectPaymentGroup" runat="server" Text="<%$ Resources:Content,FAM0022 %>"
                                                EnableViewState="false"></asp:Label>:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_PaymentGroup" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row" id="div_bcycle" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Label ID="Lbl_BillingCycle" runat="server" Text="<%$ Resources:Content,strSelectBillingCycle %>"
                                                EnableViewState="false"></asp:Label>:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDl_BillingCycle" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,StrCSPImportTenantLimit %>"
                                                EnableViewState="false"></asp:Label>:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_ImportBatchLimit" runat="server" Text="10" MaxLength="2">
                                                    </asp:TextBox>
                                                    <EM:FilteredTextBoxExtender ID="FTE_ImportBatchLimit" runat="server" FilterType="Numbers" TargetControlID="TxBx_ImportBatchLimit"></EM:FilteredTextBoxExtender>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="clearfix"></div>
                                        <div class="col-sm-offset-3 col-sm-4 col-xs-12 row-label">
                                            <asp:Label ID="Lbl_ImportBatchLimitNote" runat="server" Text="<%$ Resources:Content,StrCSPImportTenantLimitNote %>"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-1 col-md-offset-11 col-sm-2 col-sm-offset-10">
                                            <asp:Button ID="Btn_Next" runat="server" CssClass="btn btn-primary btnAction" Text="<%$Resources:Content,GN00001242 %>" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
                <asp:Panel ID="Pnl_Step2" runat="server" Visible="false">
                    <%--Section specific help--%>
                    <div class="row col-xs-12">
                        <asp:Label ID="Lbl_SelectImportTenants" runat="server" Text="<%$ Resources:Content, strSelectImportTenants %>" />
                    </div>
                    <%--Search--%>

                    <asp:Panel ID="Pnl_Search" runat="server" CssClass="row" DefaultButton="Btn_Search">
                        <div class="panel-group search-panel" id="AS_O365Tenants" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_O365Tenants">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_O365Tenants" href="#<%= CSB_O365Accounts.ClientID%>" aria-expanded="true" aria-controls="SH_O365Tenants">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_O365Accounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_O365Tenants" 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_SrchCompanyName" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Ltrl_SrchCompanyName" class="form-label" runat="server" Text="<%$ Resources:Content,GN00001077 %>"></asp:Label>
                                                    </div>

                                                </div>
                                            </div>


                                            <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_SrchDomainName" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label3" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000653%>"></asp:Label>
                                                    </div>

                                                </div>
                                            </div>

                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:Button ID="Btn_Search" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_Clear" 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">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <asp:Label ID="Lbl_SelectTenants" runat="server" Text="<%$ Resources:Content, strSelectTenants %>" />
                                    </h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <%--<ajax:UpdatePanel ID="UP_Resellers" runat="server">
                                                <ContentTemplate>--%>
                                                    <asp:GridView ID="GV_CSPCustomers" CssClass="table table-bordered table-striped table-hover table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                        runat="server" AutoGenerateColumns="False" AllowPaging="false">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,strTenant %>" HeaderStyle-CssClass="col-xs-4">
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="ChBx_SelectTenant" runat="server" Checked="false" Text=" " />
                                                                    &nbsp;
                                                            <asp:Label ID="Lbl_Tenant" runat="server" />
                                                                    <asp:HiddenField ID="HF_TenantDomain" runat="server" Value='<%# Eval("CompanyProfile.Domain")%>' />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,String12%>" HeaderStyle-CssClass="col-xs-4">
                                                                <ItemTemplate>
                                                                    <table class="table small">
                                                                        <tbody>

                                                                            <tr>
                                                                                <td class="col-xs-12 row-label">
                                                                                    <asp:Label ID="Label4" class="form-label" runat="server"
                                                                                        Text="<%$ Resources:Content,GN0000889 %>"></asp:Label>:
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="form-group">
                                                                                    <asp:DropDownList ID="DDL_Customer" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DDL_Customer_SelectedIndexChanged">
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <div id="Div_OUName" runat="server">
                                                                                <tr>
                                                                                    <td class="col-xs-12 row-label">
                                                                                        <asp:Label ID="Label5" class="form-label" runat="server"
                                                                                            Text="<%$ Resources:Content,SelectOU %>"></asp:Label>:
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td class="form-group">
                                                                                        <asp:DropDownList ID="DDL_LocalOrgName" runat="server">
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                            </div>

                                                                            <tr id="Div_TenantAdmin" runat="server">
                                                                                <td class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_TenantAdmin" runat="server" CssClass="form-control"></asp:TextBox>
                                                                                        <asp:Label ID="Lbl_TenantAdmin" class="form-label" runat="server"
                                                                                            Text="<%$ Resources:Content,strTenantAdminUPN %>"></asp:Label>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                            <tr id="Div_TenantAdminPass" runat="server">
                                                                                <td class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_TenantAdminPass" runat="server" CssClass="form-control" TextMode="Password">
                                                                                        </asp:TextBox>
                                                                                        <asp:Label ID="Lbl_TenantAdminPass" class="form-label" runat="server"
                                                                                            Text="<%$ Resources:Content,strTenantAdminPassword %>"></asp:Label>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0234%>" HeaderStyle-CssClass="col-xs-2">
                                                                <ItemTemplate>
                                                                    <div class="col-xs-12">
                                                                        <div class="form-group display-date-input">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_SignupDate" runat="server"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                        <i runat="server" id="A_SignupDate" class="material-icons icon-calendar col-calendar"></i>

                                                                        <EM:CalendarExtender ID="CE_SignupDate" runat="server" TargetControlID="TxBx_SignupDate"
                                                                            PopupButtonID="A_SignupDate" CssClass="date__calendar">
                                                                        </EM:CalendarExtender>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content, strImportCSPTenantInactiveSubs %>"
                                                                HeaderStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="CB_ImportInActiveSubs" runat="server" Text=" " Checked="true" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="LB_Import" Text="<%$ Resources:Content, L00100 %>" runat="server"
                                                                        CommandName="ImportOne" CssClass="btn btn-primary btnAction" />
                                                                    <asp:HiddenField ID="HF_TenantId" runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                <%--</ContentTemplate>
                                            </ajax:UpdatePanel>--%>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="pull-right m-r-10">
                                            <asp:Button ID="Btn_ImportSelected" runat="server" CssClass="btn btn-primary btnAction" Text="<%$Resources:Content,L00100  %>" />
                                            &nbsp;
                                            <asp:Button ID="Btn_Previous" runat="server" CssClass="btn btn-primary" Text="<%$Resources:Content,DGN1110612  %>" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
                <div id="Div_Result" runat="server" visible="false">
                    <div class="row">
                        <div class="col-xs-12">
                            <div id="div_result_message" runat="server">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-1 col-md-offset-11 col-sm-2 col-sm-offset-10">
                            <asp:Button ID="Btn_CloseResult" runat="server" CssClass="btn btn-primary" Text="<%$Resources:Content,GN000150  %>" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>

