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

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanelCP" runat="server">
        <ContentTemplate>
            <script type="text/javascript">
                $(function () {
                    /*
                     * this swallows backspace keys on any non-input element.
                     * stops backspace -> back
                     */
                    var rx = /INPUT|SELECT|TEXTAREA/i;

                    $(document).bind("keydown keypress", function (e) {
                        if (e.which == 8) { // 8 == backspace
                            if (!rx.test(e.target.tagName) || e.target.disabled || e.target.readOnly) {
                                e.preventDefault();
                            }
                        }
                    });
                });

            </script>
            <table width="Microsoft.Security.Application.Encoder.HtmlEncode%">
                <tr>
                    <td>
                        <asp:Label ID="lblError" runat="server" CssClass="lblerror"></asp:Label>
                        <%--JiraNumber:-UBPINT-393 Added by Shubham K on 05-Mar-2021 for UBP project--%>
                        <asp:Label ID="lblSuccess" runat="server" CssClass="lblSuccess"></asp:Label>
                        <asp:Label ID="lblInfo" runat="server" CssClass="lblInfo"></asp:Label>
                    </td>
                </tr>
            </table>
            <table class="Filter" width="Microsoft.Security.Application.Encoder.HtmlEncode%">
                <tr>
                    <td class="lbl">
                        <asp:Label ID="lblUserId" runat="server" CssClass="lbl" Text="User ID"></asp:Label>
                        <span style="color: Red; font-weight: bold;">*</span> <%--Added by haroon --%>
                    </td>
                    <td>
                        <asp:TextBox ID="txtUser" runat="server" CssClass="txt" AutoPostBack="True"
                            Width="190px"></asp:TextBox>
                        <input class="btn" id="btnFind" style="font-weight: bold; font-size: 9pt; width: 60px; color: #ffffff; border-top-style: groove; font-family: Arial; border-right-style: groove; border-left-style: groove; background-color: #838b83; border-bottom-style: groove"
                            onclick="OpenPopUp();" type="button" value="Find" name="Button1" runat="server"
                            visible="false" />
                    </td>
                </tr>
                <tr>
                    <td class="lbl">
                        <asp:Label ID="lblGrpId" runat="server" CssClass="lbl" Text="Group ID"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtGroup" runat="server" CssClass="txt" ReadOnly="True" Width="190px" BackColor="LightGray" Enabled="false"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="lbl">
                        <asp:Label ID="lblCurrentStatus" runat="server" CssClass="lbl" Text="Current Status"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCurrentStatus" runat="server" CssClass="txt" ReadOnly="True"
                            Width="43px" BackColor="LightGray" Enabled="false"></asp:TextBox>
                        <asp:TextBox ID="txtCStatusDesc" runat="server" CssClass="txt" ReadOnly="True"
                            Width="143px" BackColor="LightGray"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="lbl">
                        <asp:Label ID="lblNewStatus" runat="server" CssClass="lbl" Text="New Status"></asp:Label>
                        <span style="color: Red; font-weight: bold;">*</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="lstNewStatus" runat="server" CssClass="ddl" AutoPostBack="True" Width="43px">
                        </asp:DropDownList>
                        <asp:TextBox ID="txtNewStatusDesc" runat="server" CssClass="txt" ReadOnly="True"
                            Width="143px" BackColor="LightGray"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="lbl">
                        <asp:Label ID="lblMakerPStatus" runat="server" CssClass="lbl" Text="Maker Proposed Status"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtMakerProposedChecker" runat="server" CssClass="txt" ReadOnly="True" Width="190px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="lbl">
                        <asp:Label ID="lblReason" runat="server" CssClass="lbl" Text="Reason"></asp:Label>
                        <span style="color: Red; font-weight: bold;">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtReason" runat="server" CssClass="txt" Width="190px" TextMode="MultiLine"></asp:TextBox>
                        <%--<asp:TextBox ID="TextBox1" runat="server" BorderStyle="Groove" Width="190px" TextMode="MultiLine" ReadOnly="True" BackColor="LightGray"></asp:TextBox>--%>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:Button ID="btnUpdate" runat="server" CssClass="btn" Width="90px" EnableViewState="False"
                            Text="Update"></asp:Button>
                        <asp:Button ID="btnCancel" runat="server" CssClass="btn" Width="90px" EnableViewState="False"
                            Text="Cancel"></asp:Button>
                        <%-- <input id="btnDisplayUserID" style="width: 0px; height: 0px" type="button" value="Button"
                              runat="server" />--%>
                    </td>
                </tr>
            </table>

            <asp:HiddenField ID="hdnUseMakerCheckerForOverridingLoginStatus" runat="server" Value="" />
            <asp:HiddenField ID="hdnAllowUserToEditLoginStatusReason" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
