<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FinIQ_Manual_Token_Status_Change.aspx.vb"  Inherits="FinIQWebApp.FinIQ_Manual_Token_Status_Change" Title=" Manual Token Queue Status Update"  MasterPageFile="~/FiniqAppMasterPage.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
<!DOCTYPE html>


   <%-- <title>Manual</title>--%>
    <script type="text/javascript">

        function setValue() {
            var e = document.getElementById("<% =ddlQueue.ClientID%>")
            var value = 'No';
            if (confirm("Are you sure you want to push Finiq Ref no '" + document.getElementById("<% =HdnDealNo.ClientID%>").value + "' to '"+ e.options[e.selectedIndex].text + "' Queue?" ) == true) {
                      value = 'Yes';
                  } else {
                      value = 'No';
                  }
                  document.getElementById("<% =HdnPush.ClientID%>").value = value;
        }
    </script>
        <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        </asp:ScriptManagerProxy>
        <asp:UpdatePanel ID="updatepanelcp" runat="server">
            <ContentTemplate>
                <div style="font-size: 20px; margin: 2% 2% 2% 2%; width: 78%; height: 25px; text-align: center;">                    
                                 Workflow Manual Token Status Change 
                </div>         
                <div>
                    <table>
                        <tr>
                            <td style="height: 20px; padding-left: 12px;">
                                <asp:Label ID="lblError" CssClass="lbl" runat="server" Visible="True" ForeColor="Red"></asp:Label>
                                <asp:Label ID="lblMsg" CssClass="lbl" runat="server" Visible="True" ForeColor="Green"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="Controls">
                    <table>
                        <tr>
                            <td style="padding:10px;">
                                <asp:Label ID="lblRefID" runat="server" CssClass="lbl" Text="FinIQ Ref No" Width="100px" Visible="True">
                                </asp:Label>
                            </td>
                            <td style="padding:10px;">
                                <asp:Label ID="lblDealNo" runat="server" CssClass="lbl" Width="150px" Visible="True">
                                </asp:Label>
                            </td>
                            <td style="padding: 10px;">
                                <asp:Button ID="btnSearch" runat="server" CssClass="btn" Width="88px" Text="Search" Autopostack="true" Visible="false" />
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 10px;">
                                <asp:Label ID="lblQueue" runat="server" Text="Queue" CssClass="lbl" Width="100px"></asp:Label>
                            </td>
                            <td style="padding: 10px;">
                                <asp:DropDownList ID="ddlQueue" runat="server" CssClass="ddl" AutoPostBack="true" Width="200px"></asp:DropDownList>
                            </td>
                            <td style="padding-left: 10px;">
                                <asp:Button ID="btnPush" runat="server" CssClass="btn" Width="88px" Text="Push" OnClientClick="setValue();" />
                            </td>
                        </tr>
                    </table>
                </div>
                <input id="HdnTokenId" type="hidden" value="" runat="server" />
                <input id="HdnDealNo" type="hidden" value="" runat="server" />
                <input id="HdnPush" type="hidden" value="" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>

   

    </asp:Content>
