<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="DCDTrafficMonitor.aspx.vb" Inherits="FinIQWebApp.DCDTrafficMonitor" MasterPageFile="~/FiniqAppMasterPage.Master" Title=" Master" EnableEventValidation="false" MaintainScrollPositionOnPostback="True" %>

<%@ Import Namespace="System.IO" %>

<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl" TagPrefix="uc1" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>
         <script src="../FinIQJS/SortFilter_Grid.js"></script>
    <script type="text/javascript">
        //Column Filter Not Applicable 1.....3...nth columns, numric value(0-9) ;

        window.iColumnFilter_NA = 2;
    </script>
<!--Megha Added on 29-Sep-2020 as suggested by ganesh k-->
    <%--RH-346 UAT 99 : DCI & FX Hedging Traffic Monitor - Multiple Resend is clickable--%>    
    <script   type="text/javascript">
        function disablethis(lnk) {
            lnk.disabled = true;
        }
        $(document).ready(function(){
            $('.buttonResend').on('click', function () {
            $(this).prop('disabled','disabled').css({"pointer-events": "none"});

        });
      });

    </script>

    <script type="text/javascript">
        function onlyNumbers(evt) {
            var e = event || evt; // for trans-browser compatibility
            var charCode = e.which || e.keyCode;

            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;

            return true;

        }
        function blockSpecialChar(e) {
            var k = e.keyCode;
            return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || (k >= 48 && k <= 57));
        }
        function TxRowsPerPage_TextChanged(e) {
            if (e.keyCode == 13) {
                document.getElementById('<%=btnSetPageSize.ClientID%>').click();
            }
        }
        function txtDealNo_TextChanged(e) {
            if (e.keyCode == 13) {
                document.getElementById('<%=btnDealNo.ClientID%>').click();
            }
        }


        $(function () {

            function AllowNumericOnly(e) {
                var keycode;
                if (window.event)
                    keycode = window.event.keyCode;
                else if (event)
                    keycode = event.keyCode;
                else if (e)
                    keycode = e.which;
                else return true;
                if ((keycode > 47 && keycode <= 57)) { return true; }
                else { return false; } return true;
            }
            $("#<%=TxRowsPerPage.ClientID%>").keypress(function () {
                if (Object.keys = 13) {

                }


            });
            function EndRequest1(sender, args) {
                $("#<%=TxRowsPerPage.ClientID%>").keydown(function (e) {
                    var code = e.keyCode || e.which;

                    if (code == 13 || code == 9) {
                        document.getElementById('<%=btnSetPageSize.ClientID%>').click();
                    }
                });
            }

            $("#<%=TxRowsPerPage.ClientID%>").keydown(function (e) {
                var code = e.keyCode || e.which;

                if (code == 13 || code == 9) {
                    document.getElementById('<%=btnSetPageSize.ClientID%>').click();
                }
            });
        });

        function texboxchange() {

            var txtBox = document.getElementById('<%= TxRowsPerPage.ClientID%>');
            var count = txtBox.value.length;
            if (count == 2) {
                document.getElementById('<%= TxRowsPerPage.ClientID%>').focus();
                return true;
            }
        }

        var SearchedID;
        function ShowMenu(control, searchedID, e) {
            // debugger;

            var posx = e.clientX + window.pageXOffset + 'px'; //Left Position of Mouse Pointer
            var posy = e.clientY + window.pageYOffset + 'px'; //Top Position of Mouse Pointer
            document.getElementById(control).style.position = 'absolute';
            document.getElementById(control).style.display = 'inline';
            document.getElementById(control).style.left = posx;
            document.getElementById(control).style.top = posy;

            SearchedID = searchedID;

            document.getElementById("<%=hdnrowindexID.ClientID%>").value = searchedID

        }

        var SearchedIDinst;
        function ShowMenuInst(control, searchedID, e) {


            var posx = e.clientX + window.pageXOffset + 'px'; //Left Position of Mouse Pointer
            var posy = e.clientY + window.pageYOffset + 'px'; //Top Position of Mouse Pointer
            document.getElementById(control).style.position = 'absolute';
            document.getElementById(control).style.display = 'inline';
            document.getElementById(control).style.left = posx;
            document.getElementById(control).style.top = posy;

            SearchedIDinst = searchedID;

            document.getElementById("<%=hdnrowindexInst.ClientID%>").value = searchedID
            document.getElementById("<%=hdnrowindexInstFIMID.ClientID%>").value = searchedID

        }

        //checkbox
        function CheckSingleCheckbox(ob) {
            
            var grid = ob.parentNode.parentNode.parentNode;
            var inputs = grid.getElementsByTagName("input");
            for (var i = 0; i < inputs.length; i++) {
                if (inputs[i].type == "checkbox") {
                    if (ob.checked && inputs[i] != ob && inputs[i].checked) {
                        document.getElementById('btnResend').style.visibility = 'hidden';
                        inputs[i].checked = false;
                        ShowMenu();
                    }
                }
            }
        }

        function CheckSingleCheckboxInst(ob) {
            
            var grid = ob.parentNode.parentNode.parentNode;
            var inputs = grid.getElementsByTagName("input");

            for (var i = 0; i < inputs.length; i++) {
                if (inputs[i].type == "checkbox1") {
                    if (ob.checked && inputs[i] != ob && inputs[i].checked) {
                        inputs[i].checked = false;
                        ShowMenuInst();
                    }
                }
            }
        }

        //Right click

        function click(e) {
            //  debugger;
            if (document.all) {
                if (event.button == 2 || event.button == 3) {

                    return false;
                }
            }
            else {
                if (e.button == 2 || e.button == 3) {
                    e.preventDefault();
                    e.stopPropagation();

                    return false;
                }
            }
        }

        if (document.all) {
            document.onmousedown = click;
        }
        else {
            document.onclick = click;
        }

        document.oncontextmenu = function () {
            return false;
        };

    </script>

    <style>
         .Man_Processed a:link, .Man_Processed {
            color: #FF8C00 ;
        }

        .Ack_Success a:link, .Ack_Success {
            color: #228C22;
        }
         .Ack_Success_BG {
            background-color: #228C22 !important;
        }
         .Man_Processed_BG {
            background-color: #FF8C00 !important;
        }
        .PENDING_EXPORT a:link, .PENDING_EXPORT span {
            color: #808080 !important;
        }
        .Regenerated a:link, .Regenerated {
            color: #9A3A98 ;
        }
        .Exported_Successfully a:link, .Exported_Successfully span {
            color: #369b42 !important;
        }

        .Resend_Pending a:link, .Resend_Pending span {
            color: #db7201 !important;
        }

        .Resend_Successful a:link, .Resend_Successful span {
            color: #8e4ed7 !important;
        }

        .Processing_File a:link, .Processing_File span {
            color: #91af5e !important;
        }

        .Manually_File a:link, .Manually_File span {
            color: #4dd0dc !important;
        }
         .Processing_Pending a:link, .Processing_Pending {
            color: #b8860b ;
        }

        .PENDING_EXPORT_BG {
            background-color: #808080 !important;
        }
         .Ack_Pending_BG {
            background-color: #8B4513 !important;
        }
         .Processing_Pending_BG {
            background-color: #b8860b !important;
        }
          .Regenerated_BG {
            background-color: #9A3A98 !important;
        }
          .Rejected_BG {
            background-color: #FF3030 !important;
        }
        .Exported_Successfully_BG {
            background-color: #369b42 !important;
        }

        .Resend_Pending_BG {
            background-color: #db7201 !important;
        }

        .Resend_Successful_BG {
            background-color: #8e4ed7 !important;
        }

        .Processing_File_BG {
            background-color: #91af5e !important;
        }

        .Manually_File_BG {
            background-color: #4dd0dc !important;
        }

        .btnDisplayNone {
            display: none;
        }
    <!--Megha T : GUI design Changes on 24-Feb-2021 as suggested by Sarang J/Ganesh k-->
    
        .btn {
            /*margin-bottom: 5px;*/
        }

        .lnk {
            background: none!important;
            border: none;
            padding: 0!important;
            color: #2F60CA;
            text-decoration: underline;
            cursor: pointer;
            height: 22px !important;
            padding: 5px !important;
            text-align: left;
        }

        .Updatelnk {
            background: none!important;
            border: none;
            padding: 0!important;
            color: #2F60CA;
            text-decoration: underline;
            cursor: pointer;
            height: 22px !important;
            padding: 5px !important;
        }

        .HighlightRow {
            background-color: #F1F1F1;
        }

        .UploadControls {
            width: 100%;
            text-align: center;
        }

            .UploadControls input {
                margin: 6px;
            }

        .imgbtn {
            margin: 6px;
            border: none;
            background-image: url("img/Close.png");
            cursor: pointer;
        }

        .Errormsg {
            margin-left: 6px;
        }


        .txtbox {
            overflow: auto;
        }

        .textdeal {
            width: 120px;
        }

        .Filters {
            margin: 10px;
        }

        .lblFilter {
            margin-left: 20px;
        }

        .header {
            background: #edeaea;
        }

        .lblEntity {
            width: 80px;
        }

        .tdlblEntity {
            width: 100px;
        }

        .ddlEntity {
            width: 245px;
        }

        .ddlEntity1 {
            width: 260px;
        }

        .ddlEntity2 {
            width: 150px;
        }

        .tdddlEntity {
            width: 190px;
        }

        .lblProducts {
            width: 80px;
        }

        .tdlblProduct {
            width: 80px;
        }

        .ddlProduct {
            width: 160px;
        }

        .tdddlProduct {
            width: 196px;
        }

        .tdddlDeal {
            width: 155px;
        }

        .lblFrom {
        }

        .tdlblFrom {
            width: 60px;
        }

        .dtpFrom {
            width: 130px;
        }

        .tddtpFrom {
            width: 133px;
        }

        .lblType {
            width: 40px;
        }

        .tdlblType {
            width: 44px;
        }

        .ddlType {
            width: 150px;
        }

        .tdddlType {
            width: 155px;
        }

        .lblRowPrePage {
            width: 95px;
        }

        .tdlblRowPrePage {
            width: 95px;
        }

        .lblDateType {
            width: 50px;
        }

        .tdlblDateType {
            width: 60px;
        }

        .tdlblDealNo {
            width: 50px;
        }

        .lblDealNo {
            width: 40px;
        }

        .ddlDateType {
            width: 120px;
        }

        .tdddlDateType {
            width: 133px;
        }

        .txtTotalRecords {
            width: 32px;
            text-align: right;
        }

        .tdtxtTotalRecords {
            width: 70px;
        }
 
        .auto-style1 {
            width: 35px;
        }

        .checkbox {
            width: 20px;
        }

        /* DCI Status CssClass  ----Start---- */
        .Successfull {
            /*background-color: #e6ffe6 !important;*/
            /*background-color: #80ff80 !important;*/
            background-color: #99ff99 !important;
        }

        .Rejected {
            color :#FF3030  !important;
        }

        .Processing  {
            background-color:#f1f7d4 !important;
        }

        .PendingExport {
            background-color:#deedde !important;
        }

        .ResendTrade {
            background-color:#ccccff !important;
        }

        .RegenerateTrade {
            background-color:#ffccff !important;
        }
<!--Megha T : GUI design Changes on 24-Feb-2021 as suggested by Sarang J/Ganesh k-->
        .textMarginLeft {
            margin-left: 10px;
        }

        #ctl00_MainContent_dtpFrom_txtDate {
            margin-left: 10px;
        }

        #ctl00_MainContent_dtpTo_txtDate {
            margin-left: 10px;
        }

        .rowHeight {
            height: 40px;
        }
        /* ----End---- */

    </style>

    <asp:UpdatePanel runat="server" ID="upTM" ChildrenAsTriggers="true">
        <ContentTemplate>
            </ContentTemplate>
       <%-- <Triggers>
            <asp:PostBackTrigger ControlID="btnExport" />
        </Triggers>--%>
    </asp:UpdatePanel>

            <div class="ctlBlotterPaddingRight">
                <asp:Label ID="lblsuccess" Text="" CssClass="lblsuccess" runat="server" ></asp:Label>
                <asp:Label ID="lblError" Text="" CssClass="lblError" runat="server" ></asp:Label>
                <asp:Label ID="lblInfo" runat="server" Text="" CssClass="lblInfo"></asp:Label>
            </div>
            <div>
                <table>
                    <tr>
                        <td>
                            <table>
                                <tr class="rowHeight">
                                    <td class="tdlblEntity">
                                        <asp:Label ID="lblEntity_Name" Text="Entity" runat="server" CssClass="lbl lblEntity"></asp:Label>
                                    </td>
                                    <td class="tdddlEntity">
                                        <asp:DropDownList ID="cboEntityName" runat="server" AutoPostBack="True" CssClass="ddl ddlEntity1"></asp:DropDownList>
                                    </td>

                                    <td class="tdlblDealNo">
                                        <asp:Label ID="lblDealNo" Text="Deal No" CssClass="lbl lblProducts " runat="server" Visible="true" Style="margin-left: 10px"></asp:Label>
                                    </td>
                                    <td class="tdddlDeal">
                                        <asp:TextBox ID="txtDealNo" runat="server" CssClass="txt ddlEntity2" onkeydown="return txtDealNo_TextChanged(event)"
                                             Visible="true" onkeypress="return onlyNumbers(event)" ></asp:TextBox>
                                        <asp:Button ID="btnDealNo" CssClass="btn" runat="server" Style="display: none"></asp:Button>

                                    </td>

                                    <td class="tdlblDateType">
                                        <asp:Label ID="lbldatetype" Text="Date Type" runat="server" CssClass="lbl lblDateType" Style="margin-left: 10px"></asp:Label>
                                    </td>
                                    <td class="tdddlDateType">
                                        <asp:DropDownList ID="cboDatetype" runat="server" AutoPostBack="True" CssClass="ddl ddlDateType" Style="margin-left: 10px"/>
                                    </td>

                                    <%--<td></td>--%>
                                    <td style="width: 110px">
                                        <asp:Button ID="BtnLoad" runat="server" CssClass="btn" Text="Load" Width="120px" Style="margin-left: 20px"/>
                                    </td>
                                    <td style="width:25px"></td>

                                    <%--bullets row 1--%>

                                    <td>
                                        <asp:Panel ID="pnlExportPending" runat="server" Height="14" Width="14" CssClass="PENDING_EXPORT_BG" Wrap="false"></asp:Panel>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:Label ID="lblExportPending" Text="Export Pending" CssClass="lbl" runat="server" ></asp:Label>
                                    </td>
                                     <td>
                                        <asp:Panel ID="pnlResend" runat="server" Height="14" Width="14" CssClass="Regenerated_BG" Visible="true"></asp:Panel>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:Label ID="lblResend" Text="Regenerated Trade" CssClass="lbl" runat="server"  Visible="true"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Panel ID="pnlManProcessed" runat="server" Height="14" Width="14" CssClass="Man_Processed_BG" Visible="true"></asp:Panel>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:Label ID="lblManProcessed" Text="Manually Processed" CssClass="lbl" runat="server"  Visible="true"></asp:Label>
                                    </td>



                                    <td class="tdlblRowPrePage">
                                        <asp:Label ID="lblRowsPerPage" runat="server" CssClass="lbl lblRowPrePage" Text="Row(s) Per Page:"></asp:Label>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                       <%-- <asp:TextBox ID="TxRowsPerPage" runat="server" CssClass="txt" AutoPostBack="true" 
                                            onkeydown="return TxRowsPerPage_TextChanged(event)"
                                             onkeypress="return AllowNumericOnly(event)" MaxLength="2"
                                            Style="text-align: center;" Width="30px"></asp:TextBox>--%>
                                        <asp:TextBox ID="TxRowsPerPage" runat="server" CssClass="txt" AutoPostBack="true" MaxLength="3" Text="20" 
                                            Style="text-align: center;" Width="40px"></asp:TextBox>
                                        <asp:Button ID="btnSetPageSize" CssClass="btn" runat="server" Style="display: none"></asp:Button>
                                        <%--<asp:TextBox ID="txtrecords" runat ="server"  AutoPostBack ="true" Text ="10"></asp:TextBox> --%>
                                    </td>

                                    
                                    
                                </tr>
                            <%--</table>
                        </td>

                    </tr>--%>
                    <%--<tr style="height: 43px;">
                        <td>
                            <table>--%>
                                <tr class="rowHeight">
                                    <td class="tdlblEntity">
                                        <asp:Label ID="lblInterfacetype" Text="Interface Type" CssClass="lbl lblEntity" runat="server"></asp:Label>
                                    </td>
                                    <td class="tdddlEntity">
                                        <asp:DropDownList ID="cboInterfacetype" CssClass="ddl ddlEntity1" 
                                            runat="server" AutoPostBack="True" OnSelectedIndexChanged="cboInterfacetype_SelectedIndexChanged"></asp:DropDownList>
                                    </td>
                                    <td class="tdlblDealNo">
                                        <asp:Label ID="lblStatus" Text="Status" CssClass="lbl lblProducts" runat="server" Style="margin-left: 10px"></asp:Label>
                                    </td>
                                    <td class="tdddlType">
                                        <asp:DropDownList ID="cboStatus" runat="server" AutoPostBack="True" CssClass="ddl ddlType"></asp:DropDownList>
                                    </td>
                                   
                                    <td class="tdlblFrom">
                                        <asp:Label ID="lblFrom" CssClass="lbl lblDateType" runat="server" Text="From" Style="margin-left: 10px"></asp:Label>
                                    </td>
                                    <td class="tddtpFrom">
                                        <uc1:DateControl ID="dtpFrom" runat="server" TextBoxCss="txt" CalenderCss="btn1"/>
                                    </td>
                                    <td style="width: 110px">
                                        <asp:Button ID="BtnExport" runat="server" CssClass="btn" Text="Export To Excel" Width="120px" Style="margin-left: 20px"/>
                                    </td>
                                    <td style="width: 25px"></td>

                                    <%--bullets row 2--%>
                                    <td>
                                        <asp:Panel ID="Panel1" runat="server" Height="14" Width="14" CssClass="Ack_Pending_BG" Wrap="false"></asp:Panel>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:Label ID="Label1" Text="Acknowledge Pending" CssClass="lbl" runat="server" ></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Panel ID="pnlRejected" runat="server" Height="14" Width="14" CssClass="Rejected_BG"></asp:Panel>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:Label ID="lblRejected" Text="Rejected" CssClass="lbl" runat="server" ></asp:Label>
                                    </td>
                                     <td>
                                        <asp:Panel ID="pnlHighAckPending" runat="server" Height="14" Width="14" CssClass="Processing_Pending_BG"></asp:Panel>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:Label ID="lblHighAckPending" Text="Processing Pending" CssClass="lbl" runat="server" ></asp:Label>
                                    </td>



                                    <td class="tdlblRowPrePage">
                                        <asp:Label ID="Label4" Text="Total Record(s): " CssClass="lbl lblRowPrePage" runat="server" Visible="true" />
                                    </td>
                                    <td class="auto-style1">
                                        <asp:Label ID="lblRows" runat="server" AutoPostBack="true" CssClass="lbl"></asp:Label>
                                        <%--<asp:TextBox ID="txtPageSize" runat="server" MaxLength="2" Width="30px" OnKeyPress=" return AllowNumericOnly(this);"></asp:TextBox></td>--%>
                                    </td>
                                    
                                </tr>
                           <%-- </table>
                        </td>

                    </tr>--%>
                   <%-- <tr style="height: 43px;">
                        <td>
                            <table>--%>
                                <tr class="rowHeight">
                                    <td class="tdlblEntity">
                                        <asp:Label ID="lblProduct" Text="Product" CssClass="lbl lblProducts" runat="server"></asp:Label>
                                    </td>
                                    <td class="tdddlEntity">
                                        <asp:DropDownList ID="cboProduct" runat="server" AutoPostBack="True" CssClass="ddl ddlEntity1" Enabled="true"></asp:DropDownList>
                                    </td>
                                    <td colspan ="2" style ="width :205px;">
                                    <table style="display:none;">
                                        <tr>
                                        <td class="tdlblType">
                                        <asp:Label ID="lblType" Text="Type" runat="server" CssClass="lbl lblProducts"></asp:Label>
                                    </td>
                                    <td style="width:150px">
                                        <asp:DropDownList ID="cboType" runat="server" AutoPostBack="True" CssClass="ddl ddlType" />
                                    </td>
                                       </tr> 

                                    </table>
                                    </td>
                                    <td style="width:60px">
                                        <asp:Label ID="lblTo" CssClass="lbl lblDateType" runat="server" Text="To" Height="16px" Style="margin-left: 10px"></asp:Label>
                                    </td>
                                    <td class="tddtpFrom">
                                        <uc1:DateControl ID="dtpTo" runat="server" TextBoxCss="txt" CalenderCss="btn1" />
                                    </td>
                                    <td style="width: 130px">
                                        <asp:Button ID="btnTrade" runat="server" CssClass="btn" Text="Trade" Width="100px" Visible="false" />
                                    </td>
                                    <td style="width: 25px"></td>

                                    <%--bullets row 3--%>
                                    <td>
                                        <asp:Panel ID="pnlBookingSucc" runat="server" Height="14" Width="14" CssClass="Ack_Success_BG" Visible="true"></asp:Panel>
                                    </td>
                                    <td class="ctlBlotterPaddingRight">
                                        <asp:Label ID="lblBookingSucc" Text="Ack Successful" CssClass="lbl" runat="server"  Visible="true"></asp:Label>
                                    </td>



                                </tr>
                             <table>
                        <tr>
                            
                            <%--<td>
                                <asp:Panel ID="pnlExportPending" runat="server" Height="14" Width="14" CssClass="PENDING_EXPORT_BG" Wrap="false"></asp:Panel>
                            </td>
                            <td class="ctlBlotterPaddingRight">
                                <asp:Label ID="lblExportPending" Text="Export Pending" CssClass="lbl widthauto" runat="server" ></asp:Label>
                            </td>--%>

                            <%--<div id="divLowAckPending" runat="server">--%>
                            <%--<td>
                                <asp:Panel ID="pnlAckPending" runat="server" Height="14" Width="14" CssClass="Ack_Pending_BG" Wrap="false"></asp:Panel>
                            </td>
                            <td class="ctlBlotterPaddingRight">
                                <asp:Label ID="lblLowAckPending" Text="Acknowledge Pending" CssClass="lbl widthauto" runat="server" ></asp:Label>
                            </td>--%>
                            <%--</div>--%>
                           <%-- <td>
                                <asp:Panel ID="pnlHighAckPending" runat="server" Height="14" Width="14" CssClass="Processing_Pending_BG"></asp:Panel>
                            </td>
                            <td class="ctlBlotterPaddingRight">
                                <asp:Label ID="lblHighAckPending" Text="Processing Pending" CssClass="lbl widthauto" runat="server" ></asp:Label>
                            </td>--%>
                           <%-- <td>
                                <asp:Panel ID="pnlResend" runat="server" Height="14" Width="14" CssClass="Regenerated_BG" Visible="true"></asp:Panel>
                            </td>
                            <td class="ctlBlotterPaddingRight">
                                <asp:Label ID="lblResend" Text="Regenerated Trade" CssClass="lbl widthauto" runat="server"  Visible="true"></asp:Label>
                            </td>--%>
<%--                            <td>
                                <asp:Panel ID="pnlRejected" runat="server" Height="14" Width="14" CssClass="Rejected_BG"></asp:Panel>
                            </td>
                            <td class="ctlBlotterPaddingRight">
                                <asp:Label ID="lblRejected" Text="Rejected" CssClass="lbl widthauto" runat="server" ></asp:Label>
                            </td>--%>
                            <%--<td>
                                <asp:Panel ID="pnlBookingSucc" runat="server" Height="14" Width="14" CssClass="Ack_Success_BG" Visible="true"></asp:Panel>
                            </td>
                            <td class="ctlBlotterPaddingRight">
                                <asp:Label ID="lblBookingSucc" Text="Ack Successful" CssClass="lbl widthauto" runat="server"  Visible="true"></asp:Label>
                            </td>--%>
                            <%--<td>
                                <asp:Panel ID="pnlManProcessed" runat="server" Height="14" Width="14" CssClass="Man_Processed_BG" Visible="true"></asp:Panel>
                            </td>
                            <td class="ctlBlotterPaddingRight">
                                <asp:Label ID="lblManProcessed" Text="Manually Processed" CssClass="lbl widthauto" runat="server"  Visible="true"></asp:Label>
                            </td>--%>
                        </tr>

                    </table>
                        </td>

                    </tr>
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:HiddenField ID="hdnSortOrder" runat="server" />
                    <asp:GridView ID="dgvMonitor" runat="server" Visible="true" CssClass="Grid"  
                                        CellPadding="3" AutoGenerateColumns="False" AllowSorting="True" ShowHeaderWhenEmpty="true" PageSize="10"
                                        AllowPaging="true" EmptyDataText="No Records Found" >
                                        <RowStyle CssClass="GridItem" />
                                        <SelectedRowStyle CssClass="GridItemSelect" />
                                        <AlternatingRowStyle CssClass="GridItem" />
                                        <HeaderStyle CssClass="GridHeader" Wrap="true" HorizontalAlign="Center" />
                                        <FooterStyle CssClass="GridFooter" />
                                        <PagerStyle CssClass="GridPager" />

                                        <PagerSettings Mode="NumericFirstLast"
                                            FirstPageText="First"
                                            LastPageText="Last"
                                            Position="Bottom" />
                                            <Columns>
                                                <%-- As per Jira id from Ajith : disable the "Resend" and "Process Trade" options - we don't want users to have these options until we implement this properly --%>
                                                <%--<asp:TemplateField HeaderText="Resend" ControlStyle-Width="90" ItemStyle-HorizontalAlign="Center">
                                                    <ItemTemplate>
                                                        <asp:LinkButton  ID="buttonResend" runat="server"  Text="Resend Trade"
                                                            Style="width: 25px; height: 25px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;"
                                                             OnClick="btnResend_Click" ToolTip="Resend Trade Message" Visible="true" CssClass="lbl"
                                                            CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Id").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>
                                                <asp:TemplateField HeaderText="Resend" ItemStyle-HorizontalAlign="Center" Visible="true"   >
                                             <HeaderStyle Wrap="true" Width="100px"   />
                                            <ItemStyle Wrap="false"   />
                                            <ItemTemplate>
                                                <div style="height: 20px;">
                                                    <asp:LinkButton ID="buttonResend" Visible="true" CssClass="lblInfo buttonResend" 
                                                        runat="server" Text="Resend Trade" 
                                                        onClientClick="javascript:this.disabled = true; document.regMe.submit();"     
                                                           Width="100px" OnClick="btnResend_Click"
                                                         ToolTip="Resend Trade" 
                                                        CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Id").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Leg_Deal_No").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Template_Name").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Maturity_Date").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_EVENT_CODE").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Misc_long4").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Created_At").ToString)%>'>
                                                   
                                                  </asp:LinkButton>
                                              </div>
                                                
                                                  </ItemTemplate>
                                        </asp:TemplateField>
                                                <%--1--%>

                                                <asp:TemplateField  HeaderText="Process Trade" ItemStyle-HorizontalAlign="Center">
                                                    <HeaderStyle Wrap="true" Width="100px" />
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="btprocesstrade" runat="server"  Text="Process Trade"  CssClass="lblInfo"
                                                            OnClick="ProcessTrade_Click" ToolTip="Process Trade" Visible="true" Width="100px" 
                                                        CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Leg_Deal_No").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Id").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_DEAL_NO").ToString)%> '>
                                                        </asp:LinkButton> 
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--2--%>

                                                <%-- <asp:TemplateField   HeaderText="Regenerate File" ItemStyle-HorizontalAlign="Center">
                                                    <HeaderStyle Wrap="true" Width="100px" />
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="btnRegenerateFile" runat="server" text="Regenerate Trade"
                                                            OnClick="btnRegenerate_Click" CssClass="lblInfo"
                                                            Style="white-space: nowrap; width: 20px; height: 20px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;"
                                                             ToolTip="Regenerate FIle" Visible="true"
                                                             CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Leg_Deal_No").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Id").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_DEAL_NO").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Template_Name").ToString)%>'></asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>
                                                <%--3--%>                                               

                                                <asp:TemplateField HeaderText="Deal No." ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDealNo"
                                                           runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container.DataItem, "Parent_Ref_No").ToString())%>'>
                                                        </asp:Label> 
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="true" Width="90px" />
                                                    <ItemStyle Wrap="false" />
                                                </asp:TemplateField>
                                                <%--4--%>
                                            <%--'--<MEGHA T | 01-Feb-2021 |Changes done | As per SUGGESTED BY Sarang J/Ashwin M.>
                                            '--Added config "DCISTPShowMessage" for FinIQ Demo : DCI Traffic MonITOR - to show stp mesaage popup--%>
                                                  <asp:TemplateField HeaderText="Export Trade Id" ItemStyle-HorizontalAlign="Left">
                                                    <HeaderStyle Wrap="true" Width="140px" />
                                                    <ItemTemplate>
                                                        <%--<asp:Label ID="lblFIMLegDealNo" CommandName="ContextMenuSettlement"
                                                            runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Leg_Deal_No").ToString)%>' OnClick="lblFIMLegDealNo_Click">
                                                        </asp:Label>--%>
                                                         <asp:LinkButton ID="lblFIMLegDealNo" CommandName="ContextMenuSettlement" CssClass="lblInfo"
                                                            runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Leg_Deal_No").ToString)%>' OnClick="lblFIMLegDealNo_Click"
															CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Deal_No").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Id").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Event_Code").ToString)  + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Template_Name").ToString)%>'>
                                                        </asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--5--%>

                                                <asp:TemplateField HeaderText="STP No." ItemStyle-HorizontalAlign="Left" Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lblSTPNo" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container.DataItem, "FIM_Deal_No").ToString())%>'>
                                                        </asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="true" Width="90px" />
                                                    <ItemStyle Wrap="false" />
                                                </asp:TemplateField>
                                                <%--6--%>

                                                <asp:TemplateField HeaderText="Deal id" Visible="false" ItemStyle-HorizontalAlign="Right">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIMid" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_id").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--7--%>

                                                 <asp:TemplateField HeaderText="Parent Deal No" ItemStyle-HorizontalAlign="Right" Visible="true">
                                                    <HeaderStyle Wrap="true" Width="120px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblParent_Ref" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Parent_Ref").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--8--%>
                                             

                                                <asp:TemplateField HeaderText="Country Code" ItemStyle-HorizontalAlign="Center">
                                                    <HeaderStyle Wrap="true" Width="110px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblEntity_Code" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Entity_Code").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--9--%>

                                                <asp:TemplateField HeaderText="Murex Trade ID" ItemStyle-HorizontalAlign="Left">
                                                    <HeaderStyle Wrap="true" Width="170px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIM_Deal_Book_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Deal_Book_ID").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--10--%>

                                                <asp:TemplateField HeaderText="Murex Ref No.2" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="170px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIM_Misc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Misc1").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--11--%>
                                                
                                                <asp:TemplateField HeaderText="Murex Ref No 3" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="170px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIM_Misc2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Misc5").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--12--%>

                                                <asp:TemplateField HeaderText="Template Name" ItemStyle-HorizontalAlign="Left">
                                                    <HeaderStyle Wrap="true" Width="140px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFJI_Template_Name" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Template_Name").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>

                                                </asp:TemplateField>
                                                <%--13--%>

                                                  <asp:TemplateField HeaderText="Data Exported At" ItemStyle-HorizontalAlign="Center">
                                                   <HeaderStyle Wrap="true" Width="120px" />
                                                <ItemStyle Wrap="false" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIF_Exported_At" CssClass="widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIF_Exported_At").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--14--%>

                                                 <asp:TemplateField HeaderText="Exported Flag" ItemStyle-HorizontalAlign="Center">
                                                    <HeaderStyle Wrap="true" Width="110px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblExportedFlag" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIF_Exported_Flag").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--15--%>

                                                  <asp:TemplateField HeaderText="Acknowledge At" ItemStyle-HorizontalAlign="Center">
                                                   <HeaderStyle Wrap="true" Width="120px" />
                                                <ItemStyle Wrap="false" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAcknowledgeAt" CssClass="widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIF_Acknowledge_At").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--16--%>

                                                <asp:TemplateField HeaderText="Acknowledge By" ItemStyle-HorizontalAlign="Left">
                                                    <HeaderStyle Wrap="true" Width="120px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIF_Acknowledge_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIF_Acknowledge_By").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--17--%>

                                                  <asp:TemplateField HeaderText="RM Spread (USD)" ItemStyle-HorizontalAlign="Right">
                                                    <HeaderStyle Wrap="true" Width="120px" />
                                                    <ItemStyle Wrap="false" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblMargin_IN_USD" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Margin_IN_USD").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--18--%>

                                                   <asp:TemplateField HeaderText="Customer Premium" ItemStyle-HorizontalAlign="Right">
                                                    <HeaderStyle Wrap="true" Width="150px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPremium_payable" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Premium_payable").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--19--%>

                                                <asp:TemplateField HeaderText="Export Remark">
                                                    <HeaderStyle Wrap="true" Width="120px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIF_Exported_Remark2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIF_Exported_Remark2").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--20--%>


                                                <asp:TemplateField HeaderText="Error Code" ItemStyle-HorizontalAlign="Left">
                                                    <HeaderStyle Wrap="true" Width="120px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIA_Rejection_Code1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIA_Rejection_Code1").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--21--%>



                                                <asp:TemplateField HeaderText="Error Message" ItemStyle-HorizontalAlign="Left">
                                                    <HeaderStyle Wrap="true" Width="800px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIA_Rejection_Reason1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIA_Rejection_Reason1").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--22--%>
                                                
                                                <asp:TemplateField HeaderText="Active Y/N" ItemStyle-HorizontalAlign="Center" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="50px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIM_Active_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Active_YN").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                              <%--23--%>

                                                <asp:TemplateField HeaderText="Event Name" ItemStyle-HorizontalAlign="Center" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="140px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblEventName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Event_Code").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>

                                                </asp:TemplateField>
                                                <%--24--%>

                                                <asp:TemplateField HeaderText="Message Generated At" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="150px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIMCreatedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Created_At").ToString )%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--25--%>

                                                <asp:TemplateField HeaderText="Message Generated By" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="60px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIMCreatedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Created_By").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--26--%>

                                                <asp:TemplateField HeaderText="File Creation Mode" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="100px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIMFileCreationMode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Creation_Mode").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--27--%>

                                              
                                                <asp:TemplateField HeaderText="Message Exported By" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="60px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIMFileExportedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Exported_By").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                               <%--28--%>
                                                                                         
                                                <asp:TemplateField HeaderText="RESEND AT" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="150px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFIM_RESEND_AT" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_RESEND_AT").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--29--%>

                                                <asp:TemplateField HeaderText="MANUAL PROCESS Y/N" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                    <HeaderStyle Wrap="true" Width="150px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="FIM_MANUAL_PROCESS_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_MANUAL_PROCESS_YN").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--30--%>

                                                  <asp:TemplateField HeaderText="Maturity Date" ItemStyle-HorizontalAlign="Left"  Visible="false">
                                                    <HeaderStyle Wrap="true" Width="150px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblMaturityDate" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Maturity_Date").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--31--%>
                                                 <asp:TemplateField HeaderText="DFM_B2B_Leg_Source" ItemStyle-HorizontalAlign="Left"  Visible="false">
                                                    <HeaderStyle Wrap="true" Width="150px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDFM_B2B_Leg_Source" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.DFM_B2B_Leg_Source").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                
                                             <asp:TemplateField HeaderText="Misc_long4" ItemStyle-HorizontalAlign="Left"  Visible="false">
                                                    <HeaderStyle Wrap="true" Width="150px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblMisc_long4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Misc_long4").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                    
                </table>
            </div>

        
    <asp:HiddenField ID="hdnrowindexInst" runat="server" />
    <asp:HiddenField ID="hdnrowindexID" runat="server" />
    <asp:HiddenField ID="hdnrowindex" runat="server" />
    <asp:HiddenField ID="hdnrowindexInstFIMID" runat="server" />
    <asp:HiddenField ID="hdnrowindexFIMID" runat="server" />
    <asp:HiddenField ID="hdnrowindexMifidid" runat="server" />
      <asp:HiddenField ID="hdnFIMId" runat="server" />
     <asp:HiddenField ID="hdnFileSentTo" runat="server" />
    <asp:HiddenField ID="hdnBusinessDate" runat="server" />
    <asp:Button ID="btnPreocessed" runat="server" CssClass="btn" BackColor="#FFFFFF" ForeColor="#FFFFFF"></asp:Button>
    <asp:Button ID="btnResend" runat="server" CssClass="btn" BackColor="#FFFFFF" ForeColor="#FFFFFF"></asp:Button>

    
       <script type="text/javascript">
           function ChangeCalendarView(sender, args) {
               sender._switchMode("years", true);
           }



           function ClearSelection() {
               //$(".HighlightRow").attr("class", "HighlightRowOld");
               $(".HighlightRowNew").attr("class", "HighlightRow");
           }


           // ManasiA || 10-Dec-2019 || Search by deal filter on enter key || Start || 
           if (window.captureEvents) {
               //window.captureEvents(Event.KeyUp);
               //window.onkeyup = executeCode;
           }
           else if (window.attachEvent) {
               //document.attachEvent('onkeyup', executeCode);
           }

           function executeCode(evt) {
               if (evt == null) {
                   evt = window.event;
               }
               var theKey = parseInt(evt.keyCode, 10);

               switch (theKey) {
                   case 13:  // Enter
                       document.getElementById("<%=btnLoad.ClientID%>").click();
                       break;
                   case 9:  // Tab
                       document.getElementById("<%=btnLoad.ClientID%>").click();
                    break;
            }
        }
        // || End ||
    </script>



</asp:Content>
