<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="UserRole, App_Web_d1aqseku" enableeventvalidation="false" uiculture="auto" meta:resourcekey="PageResource1" viewStateEncryptionMode="Never" %>

<%@ Register Src="../../../UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"  TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div id="divContentPage">
                <!-- ContentPlaceHolder Box Starts -->
                <div style="width: 100%;padding:2px;margin:2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px;border-collapse:collapse;background-color:White" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td class="dashBoardLeftCont" valign="top">
                                <div class="himssuHeader3WireBox">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>
                                    <table width="200px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="122"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top;padding-left:10px" width="99%">
                            <div class="himssuHeader1WireBox">
                              <div class="himsBoxHeader" id="Div4" runat="server" visible="True">
                                        <div class="leftdiv">
                                        </div>
                      
                                        <div class="himsBoxTitle">
                                            <div class="headerText fLeft">
                              
                                                <asp:Label ID="Label4" Text="User List" 
                                                    runat="server" />
                                            </div>
                                        </div>
                                    </div>
                                   
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                         <div class="contentHolder">

                                <div class="himssuHeader6WireBox" id="UserSearchDiv" runat="server" >
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle" style="width: 99%">
                                            <div class="headerText">
                                                <div class="fLeft">
                                                    <asp:Label ID="GridViewLabel" Text="List" runat="server" />
                                                </div>
                                            </div>
                                            <div align="right" class="fRight" style="margin-top: 0px;">
                                                <uc1:GridViewPager ID="UserSearchGridViewPager" runat="server" OnFirstRecordClick="UserSearchGridViewPager_FirstRecordClick"
                                                    OnLastRecordClick="UserSearchGridViewPager_LastRecordClick" OnNextRecordClick="UserSearchGridViewPager_NextRecordClick"
                                                    OnPrevRecordClick="UserSearchGridViewPager_PrevRecordClick" OnTextBoxValueChange="UserSearchGridViewPager_TextBoxValueChange" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:GridView ID="UserSearchGridView" runat="server" EmptyDataText="No Users found with unassigned Roles"
                                            AutoGenerateColumns="False" OnPageIndexChanging="UserSearchGridView_PageIndexChanging"
                                            DataKeyNames="Id" AllowPaging="True" PageSize="5" Width="100%" meta:resourcekey="UserSearchGridViewResource1">
                                            <Columns>
                                                <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource1" >
                                                    <ItemTemplate>
                                                        <asp:Label ID="UserIDLabel" runat="server" Text='<%# Eval("Id") %>' meta:resourcekey="UserIDLabelResource1"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField meta:resourcekey="TemplateFieldResource2">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" meta:resourcekey="SelectCheckBoxResource1" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="Employee Code" DataField="EmployeeCode" meta:resourcekey="BoundFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Employee Name" DataField="EmployeeFullName" meta:resourcekey="BoundFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Display Name" DataField="DisplayTitle" meta:resourcekey="BoundFieldResource3" HeaderStyle-HorizontalAlign="Left">
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Login Name" DataField="LoginTitle" meta:resourcekey="BoundFieldResource4" HeaderStyle-HorizontalAlign="Left">
                                                </asp:BoundField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                                </asp:Panel>
                                </div>
                                </div>

                                <div class="spacer">
                                    <asp:Image ID="spacerImage" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="spacerImageResource1" />
                                </div>
                                <!-- Sub Container1 Box Start -->
                                <div class="himssuHeader1WireBox">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <table>
                                                    <tr>
                                                        <td class="formLabel">
                                                            <asp:Label ID="Label2" runat="server" Text="Role assigned to User: " meta:resourcekey="Label2Resource1"></asp:Label>
                                                            <label class="normalText">
                                                                <asp:Label ID="AssignedRoleLabel" runat="server" meta:resourcekey="AssignedRoleLabelResource1" /></label>
                                                            <asp:HiddenField ID="SelectedIDHiddenField" runat="server" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div class="contentHolder">
                                            <table>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="AvailableLabel" runat="server" Text="Available roles" meta:resourcekey="AvailableLabelResource1"></asp:Label>
                                                    </td>
                                                    <td>
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="SelectedLabel" runat="server" Text="Selected role(s)" meta:resourcekey="SelectedLabelResource1"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td rowspan="2">
                                                    </td>
                                                    <td rowspan="2">
                                                        <asp:ListBox ID="AvailableListBox" DataTextField="Title" DataValueField="ID" runat="server"
                                                            SelectionMode="Multiple" Height="180px" Width="150px" TabIndex="1" meta:resourcekey="AvailableListBoxResource1">
                                                        </asp:ListBox>
                                                    </td>
                                                    <td>
                                                        &nbsp;<asp:Button ID="AddButton" runat="server" Text="&gt;" meta:resourcekey="AddButtonResource1" />
                                                    </td>
                                                    <td rowspan="2">
                                                        <asp:ListBox ID="SelectedListBox" runat="server" SelectionMode="Multiple" Height="180px"
                                                            Width="150px" TabIndex="2" meta:resourcekey="SelectedListBoxResource1"></asp:ListBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;<asp:Button ID="RemoveButton" runat="server" Text="&lt;" meta:resourcekey="RemoveButtonResource1" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                                <!-- Sub Container1 Box Ends -->
                            </td>
                        </tr>
                    </table>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
   <%-- <script data-main="../../../JavaScript/rjs/encrypt/user-role-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/user-role")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
