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


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

    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <script type="text/javascript">
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : evt.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
         <%--ManasiA || 25-Nov-2020 || jira : AM-124 || Start ||--%> 
        function EnterKeyEvent(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;
            if (code == 13 || code == 9) {
                document.getElementById('<%=btnSetPageSize.ClientID%>').click();
             }
        }
         <%--ManasiA || 25-Nov-2020 || jira : AM-124 || End ||--%> 
    </script>
    <asp:UpdatePanel ID="upnlRateFeed" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table cellpadding="0" cellspacing="0" style="width: 100%" class="">
                <tr>
                    <td style="padding-bottom: 10px">
                        <asp:Label ID="lblError" runat="server" CssClass="lblerror"></asp:Label>
                        <asp:Label ID="lblInfo" runat="server" CssClass="lblinfo"></asp:Label>
                    </td>
                </tr>
            </table>
            <div>
                <table cellpadding="0" cellspacing="0" style="width: 100%" class="">
                    <tr>
                        <td>
                            <table>
                                <tr>

                                    <td class="lblBlotterPaddingRight">
                                        <asp:Label ID="lblEntity" runat="server" Width="25px" CssClass="lbl" Text="Entity"></asp:Label>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:DropDownList ID="ddlEntity" runat="server" CssClass="ddl" Width="100px" AutoPostBack="true"></asp:DropDownList>
                                    </td>
                                    <td class="lblBlotterPaddingRight">
                                        <asp:RadioButton ID="rbUnAuthorised" runat="server"  GroupName="grpLogins" AutoPostBack="true" Checked="True" CssClass="RadioBtn" Text="Un-Authorised Logins" />
                                    </td>
                                    <td class="lblBlotterPaddingRight">
                                         <asp:Label ID="lblNewPassword" runat="server"  CssClass="lbl" Text="New Password"></asp:Label>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:TextBox ID="txtNewPwd" runat="server" CssClass="txt" Text="" oncopy="return false" onpaste="return false" oncut="return false" TextMode="Password" autocomplete = "off"></asp:TextBox>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                         <asp:Button ID="btnSave" runat="server" CssClass="btn" Text="Save"  Width="70px" />
                                    </td>
                                    <td class="lblBlotterPaddingRight">
                                        <asp:Label ID="lblTotalRecords" runat="server" CssClass="lbl" Text="Total records: "></asp:Label>
                                        
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:Label ID="lblRecords" runat="server" CssClass="lbl" Text=":0" />
                                        </td>
                                </tr>
                                <tr>

                                    <td class="lblBlotterPaddingRight">
                                        <asp:Label ID="lblGroup" runat="server" Width="25px" CssClass="lbl" Text="Group"></asp:Label>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:DropDownList ID="ddlGroup" runat="server" CssClass="ddl" Width="100px" AutoPostBack="true"></asp:DropDownList>
                                    </td>
                                    <td class="lblBlotterPaddingRight">
                                        <asp:RadioButton ID="rbAuthorised" runat="server" GroupName="grpLogins" AutoPostBack="true" Checked="false" CssClass="RadioBtn" Text="Authorised Logins" />
                                    </td>
                                     <td class="lblBlotterPaddingRight">
                                         <asp:Label ID="lblConfirmPassword" runat="server"  CssClass="lbl" Text="Confirm Password"></asp:Label>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:TextBox ID="txtConfirmPwd" runat="server" CssClass="txt" Text="" oncopy="return false" onpaste="return false" oncut="return false" TextMode="Password" autocomplete = "off"></asp:TextBox>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">

                                    </td>
                                    <%--Added by Varun Patyal on 04-Mar-2021 for UBP--%>
                                    <td class="lblBlotterPaddingRight" style="width: 110px !important">
                                        <asp:Label ID="lblRowsPerPage" runat="server" Width="90px" CssClass="lbl" Text="Record(s) Per Page:"></asp:Label>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:TextBox ID="txtRowsPerPage" runat="server" CssClass="txt" MaxLength="3" Width="40px" AutoPostBack="true" Text="30" onkeypress="return isNumberKey(event)" onkeydown="EnterKeyEvent(event)"></asp:TextBox>
                                     <asp:Button ID="btnSetPageSize" runat="server" Style="display: none" CssClass="rowPerPageMargin"></asp:Button>
                                    </td>
                                </tr>
                            </table>
                        </td>


                    </tr>
                </table>

                <table>
                    <tr>
					<td style="padding-top:15px;">
                        <asp:GridView ID="dgvPassword" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                                PagerStyle-Height="32px" CellPadding="4" EmptyDataText="No records found" EnableViewState="true"
                                AllowSorting="false" PageSize="20" CssClass="Grid" ShowHeaderWhenEmpty="true">
                                <RowStyle CssClass="GridItem" />
                                <HeaderStyle CssClass="GridHeader" />
                                <FooterStyle CssClass="GridFooter" />
                                <PagerStyle CssClass="GridPager" />
                                <Columns>

                                    <asp:TemplateField HeaderText="Select">
                                    <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkAllList" runat="server" AutoPostBack="true" CssClass="" OnCheckedChanged="CheckBox_CheckedChanged" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk" runat="server" OnCheckedChanged="ChkSingle_CheckedChanged" AutoPostBack="true"></asp:CheckBox>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Group" SortExpression="Group" ItemStyle-HorizontalAlign="Left">
                                        <ItemStyle Wrap="False" HorizontalAlign="Left" Width="140px"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:Label ID="lblGroup" runat="server" Text='<%# Eval("Group")%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Login" SortExpression="UserID" ItemStyle-HorizontalAlign="Left">
                                        <ItemStyle Wrap="False" HorizontalAlign="Left" Width="140px"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:Label ID="lblUserID" runat="server" Text='<%# Eval("UserID")%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Login Name" SortExpression="UserName" ItemStyle-HorizontalAlign="Left">
                                        <ItemStyle Wrap="False" HorizontalAlign="Left" Width="140px"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName")%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Change Status" SortExpression="ChangeStatus" ItemStyle-HorizontalAlign="Left">
                                        <ItemStyle Wrap="False" HorizontalAlign="Left" Width="400px"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:Label ID="lblChangeStatus" runat="server" Text='<%# Eval("ChangeStatus")%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>

                            </asp:GridView>
							</td>
                    </tr>
                </table>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
