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

<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>

<asp:Panel ID="Pnl_BulkStep1" runat="server">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.Str00089%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            *
              <asp:Literal ID="Literal14" runat="server" Text='<%$ Resources:Content,GN00001322%>' />

                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:RadioButtonList ID="RBL_SelectUser" runat="server" AutoPostBack="true">
                                <asp:ListItem Enabled="true" Text="<%$ Resources:Content,STR00898%>" Value="0">
                                </asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,DEV1102%>" Value="1">
                                </asp:ListItem>
                            </asp:RadioButtonList>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <asp:Literal ID="Ltrl_DomainName" runat="server" Text="<%$Resources:Content,DGN1110334 %>"></asp:Literal>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:DropDownList ID="Ddl_Domain" runat="server"></asp:DropDownList>
                        </div>
                    </div>
                    <div class="row" id="Tr_CSV" runat="server">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <asp:Literal ID="Literal77" EnableViewState="false" runat="server" Text="<%$ Resources:Content,String380%>" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="fileupload fileupload-new" data-provides="fileupload">
                                <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                    <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                    <asp:FileUpload ID="FU_BulkUser" runat="server" />
                                    <asp:RequiredFieldValidator ID="RFV_BulkUser" runat="server" ControlToValidate="FU_BulkUser"
                                        Display="None" SetFocusOnError="True" ValidationGroup="AddBulkUser" ErrorMessage='<%$Resources:Content,USM0077 %>'></asp:RequiredFieldValidator>
                                </span>
                                <span class="fileupload-preview"></span>
                                <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                            </div>
                            <asp:Literal ID="Ltl_DownLoadCSV" runat="server"></asp:Literal>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">

                            <asp:ValidationSummary ID="VS_AddBulkUser" runat="server" ShowMessageBox="true"
                                ShowSummary="false" ValidationGroup="AddBulkUser" HeaderText="<%$ Resources:Content,EM000001%>" />
                            <asp:Button ID="Btn_Next" runat="server" ValidationGroup="AddBulkUser" CausesValidation="True"
                                class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN00001242%>" CssClass="btn btn-primary" />
                            <asp:Button ID="Btn_BUserCancel" runat="server" CausesValidation="false" SkinID="cancelButton"
                                Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</asp:Panel>
<asp:Panel ID="Pnl_BulkStep2" runat="server">
    <div class="double-scroll-wrapper1">
        <div></div>
    </div>
    <div class="double-scroll-wrapper2">
        <EM:MPGridView ID="GV_BulkUsers" Style="width: 1870px" CurrentSortExpression="DisplayName" CurrentSortDirection="Asc"
            CssClass="table table-hover table-striped table-bordered table-responsive" runat="server" AllowPaging="false" AllowSorting="false"
            EmptyDataText='<%$ Resources:Content, GN00001375 %>' AutoGenerateColumns="false">
            <Columns>
                <asp:TemplateField HeaderText="<%$ Resources:Content, GN00001113 %>" HeaderStyle-Width="250px">
                    <ItemTemplate>
                        <asp:Literal ID="Ltrl_DispName" runat="server" Text='<%#Eval("DisplayName")%>'></asp:Literal>
                        <asp:Literal ID="Ltrl_FirstName" runat="server" Text='<%# Eval("FirstName")%>' Visible="false"></asp:Literal>
                        <asp:Literal ID="Ltrl_LastName" runat="server" Text='<%# Eval("LastName")%>' Visible="false"></asp:Literal>
                        <asp:HiddenField ID="HF_ADUserId" runat="server" Value='<%#Eval("ADUserID")%>' />
                        <asp:HiddenField ID="HF_Password" runat="server" Value='<%#Eval("Password")%>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content, String336 %>" HeaderStyle-Width="250px">
                    <ItemTemplate>
                        <asp:Literal ID="Ltrl_UPN" runat="server" Text='<%#Eval("UPN")%>'></asp:Literal>
                        <asp:Literal ID="Ltrl_SecondaryEmail" runat="server" Text='<%#Eval("SecondaryEmail")%>' Visible="false"></asp:Literal>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content, USM0029 %>" HeaderStyle-Width="250px">
                    <ItemTemplate>
                        <asp:DropDownList ID="Ddl_AccessMode" runat="server" OnSelectedIndexChanged="AccessModeChanged" AutoPostBack="true">
                        </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content, USM0030 %>" HeaderStyle-Width="250px">
                    <ItemTemplate>
                        <asp:DropDownList ID="Ddl_CALType" runat="server">
                        </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText='<%$Resources:Content,USM0078 %>' HeaderStyle-Width="250px">
                    <ItemTemplate>
                        <asp:DropDownList ID="Ddl_BusinessUnit" runat="server">
                        </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText='<%$ Resources:Content,USM0079 %>' HeaderStyle-Width="250px">
                    <ItemTemplate>
                        <asp:ListBox ID="Lbx_Roles" runat="server" SelectionMode="Multiple"></asp:ListBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content, String389 %>" HeaderStyle-Width="250px">
                    <ItemTemplate>
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_SetupEmailTo" runat="server" Text='<%#Eval("SendSetupEmailTo")%>'></asp:TextBox>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-Width="100px">
                    <ItemTemplate>
                        <asp:LinkButton SkinID="linkButtonRemove" CommandArgument='<%#Eval("RowId") %>'
                            ID="LB_Remove" CommandName="RemoveUser" runat="server" Text="<%$ Resources:Content,GN0000278%>" CssClass="btn btn-primary btnAction" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </EM:MPGridView>
    </div>
    <br />
    <div class="row">
        <div class="col-sm-4 col-xs-12 row-label">
            <asp:Literal ID="Literal20" EnableViewState="false" runat="server" Text="<%$ Resources:Content,Lync048%>" />:
        </div>
        <div class="col-sm-8 col-xs-12">
            <div class="form-group">
                <asp:CheckBox ID="CB_SetupEmail" runat="server" Checked="true" Text=" " />
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <asp:Button ID="Btn_BulkSave" runat="server" CausesValidation="false" SkinID="saveButton" Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary btnAction" />
            <asp:Button ID="Btn_BulkCancel" runat="server" CausesValidation="false" SkinID="cancelButton" Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary" />
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="pnl_BulkUserLog" runat="server" Style="display: none">
    <table class="tblNewListing" cellpadding="0" cellspacing="0">
        <tr>
            <td class="Heading">
                <asp:Literal
                ID="Literal88" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI0267%>" />
            </td>
        </tr>
    </table>
    <table class="tblNewListing" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <div id="Div_Result" runat="server">
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="Btn_BUserLogClose" runat="server" CausesValidation="false" SkinID="cancelButton" Text="<%$ Resources:Content,GN000150%>" />
            </td>
        </tr>
    </table>
</asp:Panel>

<div class="ResourceQuota">
    <asp:Panel ID="Pnl_Resources" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
        ScrollBars="Auto" Style="display: none" CssClass="ResourceQuota-panel">
        <table class="col-xs-12">
            <tr class="row">
                <td class="col-xs-12">
                    <asp:Label ID="Lbl_ResourceError" runat="server" ForeColor="red" Font-Bold="true" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr class="row">
                <td class="col-xs-12">
                    <asp:GridView ID="GV_Resources" runat="server" AllowPaging="true" CssClass="table table-bordered table-striped table-hover"
                        AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>"
                        PageSize="500">
                        <AlternatingRowStyle CssClass="altRow" />
                        <Columns>
                            <asp:TemplateField HeaderText="<%$Resources:Content,DEV1008%>" HeaderStyle-CssClass="col-xs-3">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_ResourceID" runat="server" Text='<%# Eval("ResourceID")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$Resources:Content,DEV1002%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_TotalResources" runat="server" Text='<%# Eval("TotalResources")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$Resources:Content,DEV1003%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_UsedResources" runat="server" Text='<%# Eval("UsedResources")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$Resources:Content,DEV1004%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_AvailableResources" runat="server" Text='<%# Eval("AvailableResources")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$Resources:Content,DEV1005%>" HeaderStyle-CssClass="col-xs-3">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_RequestedResources" runat="server" Text='<%# Eval("RequestedResources")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr class="row">
                <td class="col-xs-12">
                    <asp:Button ID="Btn_Done" runat="server" Text="<%$ Resources:Content,GN0000858%>" SkinID="okbutton" CssClass="btn btn-primary waves-effect" />
                    <asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</div>
<EM:ModalPopupExtender runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Pnl_Resources" TargetControlID="Btn_Display"
    OkControlID="Btn_Done">
</EM:ModalPopupExtender>
