<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="Login_EmailMapping.aspx.vb" Inherits="FinIQWebApp.Login_EmailMapping" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <table style="border:1px solid #dddddd !important">
                <tr>
                    <td colspan="7">
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblUser" runat="server" Text="User ID" CssClass="lbl"></asp:Label>
                                    <%--<asp:Label ID="lblUserID" runat="server" CssClass="lbl"></asp:Label>--%>
                                    <asp:DropDownList ID="ddlUserIDList" runat="server" AutoPostBack="True" CssClass="ddl" Width="150px"></asp:DropDownList>
                                </td>
                                <%--<td>
                                    <asp:Label ID="lblUsergrPopup" runat="server" Visible="false">User Group</asp:Label>
                                    <asp:DropDownList ID="ddlUserList" runat="server" AutoPostBack="True" CssClass="ddl" Visible="false" Width="120px"></asp:DropDownList>
                                </td>--%>
                                <td></td>
                                <td>
                                    <asp:Button ID="btnLoad" runat="server" Text="Load" OnClick="btnLoad_Click" CssClass="btn" Width="60px" Height="28px" />
                                </td>
                                <td></td>
                                <td>
                                    <asp:Button ID="btnMap" runat="server" Text="Map" OnClick="btnMap_Click" CssClass="btn" Width="60px" Height="28px" />
                                </td>
                                <td>
                                    <asp:Button ID="btnUnmap" runat="server" Text="Unmap" OnClick="btnUnmap_Click" CssClass="btn" Width="60px" Height="28px" Visible="false" />
                                </td>
                                <td>
                                    <asp:Button ID="btnShowMapped" runat="server" Text="Show Mapped Users" OnClick="btnShowMapped_Click" CssClass="btn" Width="130px" Height="28px" />
                                </td>
                                <td>
                                    <asp:Label ID="lblTotall" runat="server" Text="Total Record(s) : " CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblTotalRecords" runat="server" Text="" CssClass="lbl"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="7" style="height: 25px !important;">
                        <asp:Label ID="lblError" runat="server" Text="" CssClass="lblerror"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="7">
                        <asp:GridView ID="gridview_Users" runat="server" Width="800px" AllowPaging="True"
                            CssClass="Grid" CaptionAlign="Top" AutoGenerateColumns="False" ShowHeaderWhenEmpty="true"
                            PageSize="20">
                            <HeaderStyle Font-Bold="false" CssClass="GridHeader" />
                            <RowStyle CssClass="GridItem" />
                            <PagerStyle CssClass="GridPager" />
                            <FooterStyle CssClass="GridFooter" />
                            <SelectedRowStyle CssClass="GridItemSelect" />
                            <AlternatingRowStyle CssClass="AlternatItemStyle" />
                            <Columns>
                                <asp:TemplateField HeaderText="">
                                    <HeaderTemplate>
                                        <%--<asp:CheckBox ID="chkALLRM" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkALLRM_CheckedChanged" />--%>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkRMList" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkGrid_CheckedChanged"
                                            Checked='<%# Eval("isChecked").ToString().Equals("Y")%>' />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" Width="20px" Wrap="False" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        SR No.
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Container.DataItemIndex + 1 %>
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" Font-Bold="False" />
                                    <ItemStyle HorizontalAlign="Center" Width="20px" Wrap="False" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="UserID" HeaderText="User Id">
                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" Font-Bold="False" />
                                    <ItemStyle HorizontalAlign="Left" Width="20px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="UserName" HeaderText="User Name">
                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" Font-Bold="False" />
                                    <ItemStyle HorizontalAlign="Left" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="UserGroup" HeaderText="User Group">
                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" Font-Bold="False" />
                                    <ItemStyle HorizontalAlign="Left" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="UserEmailID" HeaderText="User Email ID">
                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" Font-Bold="False" />
                                    <ItemStyle HorizontalAlign="Left" Wrap="False" />
                                </asp:BoundField>
                            </Columns>
                            <EmptyDataTemplate>No Record Available</EmptyDataTemplate>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
