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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.SMI0194%></h3>
            </div>
            <div class="body">
                <div id="Div_Wizard" runat="server">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="products-step">
                                <span id="div_s1" runat="server" nowrap="true" class="label label-success">
                                    <asp:Literal EnableViewState="false" ID="Literal1" runat="server" Text='<%$ Resources:Content, GN0000895 %>' />
                                </span>
                                <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                                    <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000896 %>' />
                                </span>
                            </div>
                        </div>
                    </div>
                    <asp:Wizard ID="Wizard1" runat="server" Width="100%" ActiveStepIndex="0" DisplaySideBar="False">
                        <CancelButtonStyle CssClass="formButton formButtonCancel btn btn-primary" Width="105px" />
                        <FinishCompleteButtonStyle CssClass="formButton formButtonFinish btn btn-primary btnAction" Width="105px" />
                        <StepPreviousButtonStyle CssClass="formButton formButtonBack btn btn-primary" Width="105px" />
                        <StepNextButtonStyle CssClass="formButton formButtonNext btn btn-primary" Width="105px" />
                        <StartNextButtonStyle CssClass="formButton formButtonNext btn btn-primary" Width="105px" />
                        <FinishPreviousButtonStyle CssClass="formButton formButtonBack btn btn-primary" Width="105px" />
                        <WizardSteps>
                            <asp:WizardStep runat="server" Title="Basic Info." ID="S_ScanLDAP" StepType="Start">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <%--Section specific help--%>
                                                <asp:Panel ID="Pnls" runat="server" CssClass="helpBox">
                                                    <asp:Label ID="Label15" runat="server" Text="<%$ Resources:Content, OrganizationImportWizard %>" />
                                                    <br />
                                                    <br />
                                                    <strong>
                                                        <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content, PreRequisites %>" />:</strong>
                                                    <ol>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Content, CustomerAccountShould %>" /></li>
                                                        <li style="list-style: decimal;">UPN Suffix must be set for the organizations</li>
                                                    </ol>

                                                </asp:Panel>
                                            </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="Label4" 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" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        *&nbsp;<asp:Literal ID="Literal2" runat="server" Text='<%$Resources:Content, M0104 %>' EnableViewState="False">
                                                        </asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDl_Domain" runat="server" AutoPostBack="True">
                                                            </asp:DropDownList>
                                                            <asp:RequiredFieldValidator ID="RFV_Domain" runat="server" InitialValue="0" ControlToValidate="DDl_Domain"
                                                                Display="None" SetFocusOnError="True">
                                                            </asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>
                                                </div>


                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        *
                                    <asp:Literal ID="Literal_DefaultResellerLDAPURL" runat="server" Text="<%$ Resources:Content,DGN1110437%> "></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_LDAPURL" runat="server" Text="<%$ Resources:Content,L0092 %>"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator_DefaultResellerLDAPURL" runat="server"
                                                                    ControlToValidate="TxBx_LDAPURL" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="REV_LDAP" runat="server" Display="None" ControlToValidate="TxBx_LDAPURL"
                                                                    SetFocusOnError="true" Enabled="false" ValidationExpression="<%$Resources:Content,LDAPValidationExpression%>"
                                                                    ErrorMessage="<%$Resources:Content,DEV1054%>"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,StrOrgImportLimit %>"
                                                            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="100" MaxLength="3">
                                                                </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>
                                        </div>
                                    </div>
                                </div>
                            </asp:WizardStep>
                            <asp:WizardStep runat="server" Title="Resources" ID="S_Organizations" StepType="Finish">
                                <%--Section specific help--%>
                                <div class="col-xs-12">
                                    <asp:Panel ID="Panel1" runat="server" CssClass="helpBox">
                                        <asp:Label ID="Label16" runat="server" Text="<%$ Resources:Content, String582 %>" />
                                    </asp:Panel>
                                </div>

                                <%--Search--%>
                                <div class="row">
                                    <div class="col-xs-12">


                                        <asp:Panel ID="pnlAccountSearch" runat="server" DefaultButton="Btn_Srch">
                                            <div class="row">
                                                <div class="panel-group search-panel" id="AS_Accounts" role="tablist" aria-multiselectable="true">
                                                    <div class="col-xs-12" role="tab" id="SH_Accounts" runat="server">
                                                        <div class="card">
                                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ClientList" href="#<%= CSB_VPSAccounts.ClientID %>" aria-expanded="true" aria-controls="SH_ClientList">
                                                                <h3>
                                                                    <%= Resources.Content.GN0000395%>
                                                                </h3>
                                                            </div>
                                                            <div id="CSB_VPSAccounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ClientList" 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_OrgName" runat="server" MaxLength="128"></asp:TextBox>
                                                                                <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110357%>" class="form-label"></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_DomainName" runat="server" MaxLength="128"></asp:TextBox>
                                                                                <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000125%>" class="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:Button ID="Btn_Srch" 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>
                                            </div>
                                        </asp:Panel>

                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Label ID="Label9" runat="server" Text="<%$ Resources:Content, SelectOrganizations %>" />
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row" id="divchbxHeader" runat="server">
                                                    <div class="col-xs-12">
                                                        <asp:LinkButton ID="Chbx_Checkall_header" runat="server" Text="<%$ Resources:Content, L0098 %>" CssClass="btn btn-primary"></asp:LinkButton>
                                                        <asp:LinkButton ID="Chbx_UncheckAll_header" runat="server" Text="<%$ Resources:Content, L0099 %>" CssClass="btn btn-primary"></asp:LinkButton>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:GridView ID="GV_Orgs" 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,L00100 %>" HeaderStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="ChBx_Orgs" runat="server" Text=" " />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110357 %>" HeaderStyle-CssClass="col-xs-5">
                                                                    <ItemTemplate>
                                                                        <div class="col-xs-12 row-label">
                                                                            <asp:Label ID="Lbl_OrgName" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:Label>
                                                                        </div>
                                                                        <div class="col-xs-12">
                                                                            <div class="form-group">
                                                                                <asp:TextBox ID="TxBx_UPNSuffixes" TextMode="MultiLine" Rows="3" CssClass="col-xs-12" runat="server"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                        <asp:HiddenField ID="HF_UPNSuffixes" runat="server" />
                                                                        <asp:HiddenField ID="HF_OULDAP" runat="server" />
                                                                        <div class="col-xs-12">
                                                                            <asp:Label ID="Label9" runat="server" Text="<%$ Resources:Content, String032 %>" />
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN000170 %>" HeaderStyle-CssClass="col-xs-3">
                                                                    <ItemTemplate>
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_OUName" runat="server"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content, L00102%>" HeaderStyle-CssClass="col-xs-3">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="DDL_Client" runat="server">
                                                                        </asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                                <div class="row" id="divchbxBottom" runat="server">
                                                    <div class="col-xs-12">
                                                        <asp:LinkButton ID="Chbx_Checkall" runat="server" Text="<%$ Resources:Content, L0098 %>" CssClass="btn btn-primary"></asp:LinkButton>
                                                        <asp:LinkButton ID="Chbx_UncheckAll" runat="server" Text="<%$ Resources:Content, L0099 %>" CssClass="btn btn-primary"></asp:LinkButton>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:WizardStep>

                        </WizardSteps>
                        <StepNavigationTemplate>
                            <asp:Button ID="StepPreviousButton" runat="server" SkinID="backButton" Text="<%$ Resources:Content,DGN1110612%>"
                                CommandName="MovePrevious" CausesValidation="false" CssClass="btn btn-primary" />
                            <asp:Button ID="StepNextButton" runat="server" SkinID="nextButton" Text="<%$ Resources:Content,GN00001242%>"
                                CausesValidation="true" CommandName="MoveNext" CssClass="btn btn-primary btnAction" />
                        </StepNavigationTemplate>
                    </asp:Wizard>
                    <asp:ValidationSummary HeaderText='<%$ Resources:Content, EM000001%>' ID="ValidationSummary1"
                        ShowMessageBox="true" ShowSummary="false" runat="server" />
                </div>
                <div id="Div_Result" runat="server" style="display: none">
                </div>
                <br />
                <asp:Button ID="Btn_GoBack" Style="display: none" runat="server" SkinID="cancelButton" CausesValidation="false" Text='<%$ Resources:Content,String1018%>' CssClass="btn btn-primary" />
            </div>
        </div>
    </div>
</asp:Content>

