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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <EM:TabContainer ID="TbCntr_RBAC" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_RoleGroups" runat="server" HeaderText="<%$ Resources:Content,RoleGroups%>">
                        <%--"<%$ Resources:Content,GN0000835%>">--%>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <div id="Div_Listing" runat="server">
                                    <div class="col-xs-12 row-label">
                                        <%= Resources.Content.OperationSupportedInExch2013Above %>
                                    </div>
                                    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                                        <div class="row">
                                            <div class="panel-group search-panel" id="AS_OrgsFilter" role="tablist" aria-multiselectable="true">
                                                <div class="col-xs-12" role="tab" id="SH_OrgsFilter">
                                                    <div class="card">
                                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_OrgsFilter" href="#<%= CSB_OrgsFilter.ClientID%>" aria-expanded="true" aria-controls="SH_OrgsFilter">
                                                            <h3>
                                                                <%= Resources.Content.GN0000395%>
                                                            </h3>
                                                        </div>
                                                        <div id="CSB_OrgsFilter" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_OrgsFilter" aria-expanded="false">
                                                            <div class="row">
                                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Td_OwnerDDL">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_Owner" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_OUFilter" runat="server"></asp:DropDownList>
                                                                    </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_RoleGroupNameFilter" runat="server" MaxLength="64"></asp:TextBox>
                                                                            <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,RoleGroupName%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12" id="Div_CustomerIdFilter" runat="server">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_CustomerId" runat="server" MaxLength="255"></asp:TextBox>
                                                                            <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:Button ID="Btn_Filter" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000395%>" />
                                                                        <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>
                                    <%--end button--%>

                                    <div class="row Div_OpsRow" id="Div_Operations" 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_AddRoleGroup" class="btn btn-primary waves-effect btnAction" runat="server" CausesValidation="false" Text='<%$ Resources:Content,AddRoleGroup %>' />
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="GV_RoleGroups" CssClass="table table-bordered table-striped table-hover" AllowSorting="true"
                                                AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                                <Columns>
                                                    <asp:TemplateField SortExpression="GroupName" HeaderText='<%$ Resources:Content,RoleGroupName%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_RoleGroupName" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField SortExpression="OrganizationName" HeaderText='<%$ Resources:Content, OrganizationName %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_OrganizationName" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField SortExpression="Customer" HeaderText='<%$ Resources:Content,GN0000268%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="LB_Customer" runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_EditRoleGroup" CommandName="EditRoleGroup" runat="server" Text="<%$ Resources:Content,GN0000276%>" class="btn btn-primary waves-effect" />
                                                            <asp:LinkButton ID="LB_RemoveRoleGroup" CommandName="RemoveRoleGroup" runat="server" Text="<%$ Resources:Content,GN0000278%>" class="btn btn-primary waves-effect btnAction" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>" TargetControlID="LB_RemoveRoleGroup" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>

                                <div class="row" id="Pnl_AddEditRoleGroup" runat="server" visible="false">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h2>
                                                    <label>
                                                        <asp:Label ID="Lbl_AddEditRoleGroup" runat="server" Text="<%$ Resources:Content,RoleGroupName%>"></asp:Label>
                                                    </label>
                                                </h2>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            *<asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,RoleGroupName%>" EnableViewState="false" />:<label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_RoleGroupName" runat="server" MaxLength="64" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <label>
                                                            <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,strSelectOrganization%>" EnableViewState="false" />:<label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_OU" runat="server" AutoPostBack="true" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12 row-label">
                                                        <label>
                                                            <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,SelectRoles%>" EnableViewState="false" />:<label>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <ajax:UpdatePanel ID="UP_Roles" runat="server">
                                                            <ContentTemplate>
                                                                <EM:AddSelectableSelected ID="UCRoles" runat="server" ClientSideOptimized="true" data-label="Roles" />
                                                            </ContentTemplate>
                                                        </ajax:UpdatePanel>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12 row-label">
                                                        <label>
                                                            <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,Lync040%>" EnableViewState="false" />:<label>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <ajax:UpdatePanel ID="UP_Members" runat="server">
                                                            <ContentTemplate>
                                                                <EM:AddSelectableSelected ID="UCMembers" runat="server" ClientSideOptimized="true" data-label="Members" />
                                                            </ContentTemplate>
                                                        </ajax:UpdatePanel>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button ID="Btn_Save" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                                                        <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,Cancel%>" class="btn btn-primary waves-effect" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
</asp:Content>
