<%@ Page Language="vb" AutoEventWireup="true" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="EQDTrafficMonitor.aspx.vb" Inherits="FinIQWebApp.EQDTrafficMonitor" MaintainScrollPositionOnPostback="False" %>

<%--<%@ Import Namespace="System.IO" %> --%>
<%@ Register Src="~/FinIQ_User_Controls/FinIQ_Paging/FinIQ_Paging.ascx" TagPrefix="uc1" TagName="FinIQ_Paging" %>
<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl" TagPrefix="uc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>
    <script type="text/javascript">


        function DealClick(SelectedRowIndex, e) {


            //var cntrlPrefix = Dealid.id.replace('dgtxtvalue', '');
            //var checkboxID = '#' + cntrlPrefix + 'lblDealNo';

            // $(linkID).prop('checked', 'true');
            document.getElementById("<%=hdnSelectedRowindex.ClientID%>").value = SelectedRowIndex

            __doPostBack('<%= btnExportFailed.UniqueID%>', "");



        }


        function blockSpecialChar(e) {
            var k = e.keyCode;
            return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || (k >= 48 && k <= 57));
        }

        function txtDealNo_TextChanged(e) {
            if (e.keyCode == 13) {
                document.getElementById('<%=Button1.ClientID%>').click();
            }
        }

        function f2() {
            //  
            __doPostBack('<%= btnPreocessed .UniqueID%>', "");

        }
        $(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;
            }





            var SearchedID;
            function ShowMenu(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;

                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("<%=Button1.ClientID%>").value = searchedID
                //var v = document.getElementById('hdnrowindexInstFIMID').value;

                //if (document.getElementById(searchedID).checked)
                //    document.getElementById(searchedID).disabled = false;
                //else
                //    document.getElementById(searchedID).disabled = true;
            }

            function f1() {
                //
                //    $("#<--%=btnviewreport.ClientID %>").click();
                //hdnrowindex=r
                __doPostBack('<%= btnResend.UniqueID%>', "");



            }

            //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) {
                //  
                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;


            };
        });
        /*Added By RizwanS For Responsive scrolling as told by TejasB on : 21-Feb-2019*/

        $(window).resize(function () {
            SetGridWidth();
        });

        $(document).ready(function () {
            SetGridWidth();
        })

        function SetGridWidth() {
            $(document).ready(function () {
                
                try {

                    //var offsetHT =(window.innerHeight - Math.round($("#Queuestd").offset().top));
                    var offsetHT = window.innerHeight;
                    if (offsetHT > 300) {
                        $("#dvGridWidth").css("height", offsetHT - 350);
                    }
                    else {
                        $("#dvGridWidth").css("height", 350);
                    }
                    if ($("#Queuestd").find("#ctl00_MainContent_dgvMonitor").length != null) {
                        //var offsetWT = ($('body').width() - $("#ctl00_MainContent_dgvMonitor").outerWidth());
                        var offsetWT = window.outerWidth;
                        var offsetinnerWT = window.innerWidth;
                        if (offsetinnerWT > 350) {
                            $("#dvGridWidth").css("width", (offsetinnerWT - 35));
                        } else {
                            $("#dvGridWidth").css("width", 350);
                        }
                    }
                    else {
                        $("#dvGridWidth").css("width", $('body').outerWidth() - 50);
                    }

                } catch (err) { console.log(err.message); }
                //SetFixedGrid();
            });

        }

        function GetSelectedRow(lnk) {
            //Reference the GridView Row.
            var row = lnk.parentNode.parentNode;

            //Determine the Row Index.
            return row.rowIndex - 1;
        }

        //<START :: Added By: Tejas V. Bodas on 22-Jul-2019 as discussed with Sagar D.>
        //JIRA Reference : BOSFXCL-1410 - BOS_UAT phase 1B:Traffic monitor screen auto refresh on selection of a record
        //Traffic monitor screen auto-refreshes once we try to select one record. So, if you have to select multiple records then you have to wait for the refresh to finish and then scroll down to find your actual record which you were about to select(before the screen refresh).
        //Change ::
        //Autopostback property set to false which was called on checkbox checked or unchecked event. Now, page will not auto-refresh on checkbox checked or unchecked and on Regenerate and Resend Trade button click checked rows will get consider.

        $(function () {
            $('.allCheckbox').click(function () {
                
                if ($(this).closest('tr').find('[id*=chk]')[0].checked) {
                    for (var i = 0; i < $('.dynamicCheckbox').closest('tr').find('[id*=chk]').length; i++) {
                        $('.dynamicCheckbox').closest('tr').find('[id*=chk]')[i].checked = true;
                    }
                }
                else {
                    for (var i = 0; i < $('.dynamicCheckbox').closest('tr').find('[id*=chk]').length; i++) {
                        $('.dynamicCheckbox').closest('tr').find('[id*=chk]')[i].checked = false;
                    }
                }
            });
        });
        //<END :: Added By: Tejas V. Bodas on 22-Jul-2019 as discussed with Sagar D.>
        //End
    </script>


    <style>
        .PENDING_EXPORT a:link, .PENDING_EXPORT span {
            color: #989898;
        }

        .Exported_Successfully a:link, .Exported_Successfully span {
            /*color: #7cfc00;*/
            color: orange;
        }

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

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

        .Processing_File a:link, .Processing_File span {
            color: blue !important;
        }

        .Manually_File a:link, .Manually_File span {
            color: #4dd0dc;
        }

        .High_Ack a:link, .High_Ack span {
            color: #FF0000;
        }

        .Bookin_Succ a:link, .Bookin_Succ span {
            color: mediumseagreen;
        }

        .Bookin_Ack_Pending a:link, .Bookin_Ack_Pending span {
            color: #dc4d4d;
        }

        /*SCTRSC*/
        .SCTRSC_Ack_Pending a:link, .SCTRSC_Ack_Pending span {
            color: darkgoldenrod !important;
        }

        .SCTRSC_Ack_Successful a:link, .SCTRSC_Ack_Successful span {
            color: darkgreen !important;
        }

        .SCTRSC_Retry a:link, .SCTRSC_Retry span {
            color: darkturquoise !important;
        }

        .PENDING_EXPORT_BG {
            background-color: #989898 !important;
        }

        .Exported_Successfully_BG {
            /*background-color: #7cfc00 !important;*/
            background-color: orange !important;
        }

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

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

        /*
            <START :: Changed by Tejas V. Bodas on 17-Oct-2019; To change Low ACK pending colour to "BLUE">
            <JIRA Ref: BOSFXCL-1534 - BOS SG/HK UI Changes :: Enhancement>
            <The low ack pending should be in Blue color. The Night mode column should be added after actions and before deal no. >
        */
        .Processing_File_BG {
            background-color: blue !important;
            /*background-color: #91af5e !important;*/
        }
        /*<END :: Changed by Tejas V. Bodas on 17-Oct-2019; To change Low ACK pending colour to "BLUE">*/
        .Manually_File_BG {
            background-color: #4dd0dc !important;
        }

        .High_Ack_BG {
            background-color: #FF0000 !important;
        }

        .Bookin_Succ_BG {
            background-color: mediumseagreen !important;
        }

        .Bookin_Ack_Pending_BG {
            background-color: #dc4d4d !important;
        }

        /* SCTRSC */
        .SCTRSC_Ack_Pending_BG {
            background-color: darkgoldenrod !important;
        }

        .SCTRSC_Ack_Successful_BG {
            background-color: darkgreen !important;
        }

        .SCTRSC_Retry_BG {
            background-color: darkturquoise !important;
        }

        .btnDisplayNone {
            display: none;
        }

        .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 !important;
            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;
        }



        /*.GridHeader {
            color: black !important;
            border: solid 1px #dddddd;
            background-color: #ededed !important;
            padding-left: 6px;
        }*/
        .header {
            background: #edeaea;
        }

        /*.GridHeader td, .GridHeader th
        {
            font: normal 11px verdana !important;
            color: #000000 !important;
            background-color: rgba(204, 204, 204, 1) !important;*/
        /* padding: 5px 8px 5px 8px !important;
            border: solid 1px #DDDDDD !important;
            height: 15px;
            border-collapse: collapse !important;
        }*/

        .lblEntity {
            width: 80px;
        }

        .tdlblEntity {
            width: 90px;
        }

        .ddlEntity {
            width: 245px;
        }

        .ddlEntity1 {
            width: 150px;
        }

        .ddlEntity2 {
            width: 170px;
        }

        .tdddlEntity {
            width: 190px;
        }

        .lblProducts {
            width: 80px;
        }

        .tdlblProduct {
            width: 90px;
        }

        .ddlProduct {
            width: 160px;
        }

        .tdddlProduct {
            width: 190px;
        }



        .lblInterfaceStatus {
            width: 80px;
        }

        .tdlblInterfaceStatus {
            width: 90px;
        }

        .ddlInterfaceStatus {
            width: 150px;
        }

        .tdddlInterfaceStatus {
            width: 190px;
        }



        .tdddlDeal {
            width: 160px;
        }

        .lblFrom {
        }

        .tdlblFrom {
            width: 60px;
        }

        .dtpFrom {
            width: 130px;
        }

        .tddtpFrom {
            width: 160px;
        }

        .lblDealStatus {
            width: 80px;
        }

        .tdlblDealStatus {
            width: 90px;
        }

        .ddlDealStatus {
            width: 150px;
        }

        .tdddlDealStatus {
            width: 190px;
        }

        .lblRowPrePage {
            width: 95px;
            margin-left: 5px;
        }

        .tdlblRowPrePage {
            width: 105px;
        }

        .lblDateType {
            width: 50px;
        }

        .tdlblDateType {
            width: 60px;
        }

        .tdlblDealNo {
            width: 60px;
        }

        .lblDealNo {
            width: 40px;
        }

        .ddlDateType {
            width: 150px;
        }

        .tdddlDateType {
            width: 160px;
        }

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

        .tdtxtTotalRecords {
            width: 70px;
        }

        .auto-style1 {
            width: 70px;
        }

        .checkbox {
            width: 20px;
        }



        .btnDisplayNone {
            display: none;
        }

        /*Added By: Tejas V. Bodas on 19/09/2018 to display usergroupbox at correct position on screen*/
        .dialog-ovelay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.50);
            z-index: 999999;
        }

            .dialog-ovelay .dialog {
                width: 400px;
                margin: 100px auto 0;
                background-color: #fff;
                box-shadow: 0 0 20px rgba(0,0,0,.2);
                border-radius: 3px;
                overflow: hidden;
            }

                .dialog-ovelay .dialog header {
                    padding: 10px 8px;
                    background-color: #f6f7f9;
                    border-bottom: 1px solid #e5e5e5;
                }

                    .dialog-ovelay .dialog header h3 {
                        font-size: 14px;
                        margin: 0;
                        color: #555;
                        display: inline-block;
                    }

                    .dialog-ovelay .dialog header .fa-close {
                        float: right;
                        color: #c4c5c7;
                        cursor: pointer;
                        transition: all .5s ease;
                        padding: 0 2px;
                        border-radius: 1px;
                    }

                        .dialog-ovelay .dialog header .fa-close:hover {
                            color: #b9b9b9;
                        }

                        .dialog-ovelay .dialog header .fa-close:active {
                            box-shadow: 0 0 5px #673AB7;
                            color: #a2a2a2;
                        }

                .dialog-ovelay .dialog .dialog-msg {
                    padding: 12px 10px;
                }

                    .dialog-ovelay .dialog .dialog-msg p {
                        margin: 0;
                        font-size: 15px;
                        color: #333;
                    }

                .dialog-ovelay .dialog footer {
                    border-top: 1px solid #e5e5e5;
                    padding: 8px 10px;
                }

                    .dialog-ovelay .dialog footer .controls {
                        direction: rtl;
                    }

                        .dialog-ovelay .dialog footer .controls .button {
                            padding: 5px 15px;
                            border-radius: 3px;
                        }

        .button {
            cursor: pointer;
        }

        .button-default {
            background-color: rgb(248, 248, 248);
            border: 1px solid rgba(204, 204, 204, 0.5);
            color: #5D5D5D;
        }

        .button-danger {
            background-color: #f44336;
            border: 1px solid #d32f2f;
            color: #f5f5f5;
        }

        .link {
            padding: 5px 10px;
            cursor: pointer;
        }

        .widthauto {
            width: auto !important;
        }

        .widthpnllbl {
            padding-left: 5px !important;
        }
        /*Added By RizwanS For Responsive scrolling as told by TejasB on : 21-Feb-2019*/
        .dvGridWidth {
            position: relative;
            /*max-width: 1900px;
             max-height: 675px;*/
            overflow-x: auto;
            overflow-y: auto;
            /*width:60% !important;*/
        }

        body {
            overflow: hidden !important;
        }

        .regResendBtn {
            height: 35px !important;
            width: 100px;
            white-space: normal;
            /*margin-top: 5px;*/
        }

        fieldset.scheduler-border {
            border: solid 1px #DDD !important;
            padding: 5px 10px 5px 10px;
            border-bottom: none;
        }

        legend.scheduler-border {
            width: auto !important;
            border: none;
            font-size: 11px;
            font-family: Verdana, Helvetica, sans-serif !important;
        }

        .refFreqLbl {
            padding-right: 10px;
        }

        .regResendBtn:hover {
            text-align: center !important;
            font: normal 11px verdana !important;
            height: 35px !important;
            border: 1px solid lightgrey !important;
            border-radius: 4px !important;
            border-collapse: collapse !important;
            /*box-shadow: 0px 2px #e9e9e9;*/
            margin-top: 5px;
        }

        .thridTR {
            /*height: 40px !important;*/
        }

        .btn {
            margin-bottom: 5px;
        }

        .bulletsPaddingRight {
            padding-right: 10px !important;
        }

        .RadioButtonListCssClass > input {
            margin-left: 0px;
        }

            .RadioButtonListCssClass > input:nth-of-type(2) {
                margin-left: 40px;
            }
        /*Css added by Pranav D 20-10-2021 stop adjust error message of blank records on export button click INT1FIN47-84 */
        .notify {
            top: 220px !important;
            color: #0368B6 !important; /*Added by Pranav D on 29-Oct-2021*/
        }
    </style>

    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatepanelMain"
        DisplayAfter="0">
        <ProgressTemplate>
            <div class="divLoading">
                <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp;</span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>

    <asp:UpdatePanel ID="UpdatepanelMain" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
        <ContentTemplate>
            <div>
                <asp:Label ID="lblError" Text="" CssClass="lblError" runat="server" Visible="false"></asp:Label>
                <asp:Label ID="lblInfo" runat="server" Text="" CssClass="lblInfo"></asp:Label>

                <asp:Button ID="btnExportFailed" runat="server" CssClass="btnDisplayNone" />
            </div>
            <div>
                <table>

                    <tr>
                        <td class="lblBlotterPaddingRight">
                            <asp:Label ID="lblEntity_Name" Text="Entity" runat="server" CssClass="lbl lblEntity"></asp:Label>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:DropDownList ID="cboEntityName" runat="server" AutoPostBack="True" CssClass="ddl ddlEntity1"></asp:DropDownList>
                        </td>
                        <td class="lblBlotterPaddingRight">
                            <asp:Label ID="lblInterfacetype" Text="Interface Type" CssClass="lbl lblEntity" runat="server"></asp:Label>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:DropDownList ID="cboInterfacetype" CssClass="ddl ddlEntity1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="cboInterfacetype_SelectedIndexChanged"></asp:DropDownList>

                        </td>
                        <td class="lblBlotterPaddingRight">
                            <asp:Label ID="lbldatetype" Text="Date Type" runat="server" CssClass="lbl lblDateType"></asp:Label>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:DropDownList ID="cboDatetype" runat="server" AutoPostBack="True" CssClass="ddl ddlDateType" />
                        </td>
                        <td class="lblBlotterPaddingRight">
                            <asp:Label ID="lblFrom" CssClass="lbl lblFrom" runat="server" Text="From"></asp:Label>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <uc1:DateControl ID="dtpFrom" runat="server" TextBoxCss="txt" CalenderCss="btn1" />
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:Button ID="BtnLoad" runat="server" CssClass="btn" Text="Load" Width="120px" Height="26px" />
                        </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="bulletsPaddingRight widthpnllbl">
                            <asp:Label ID="lblExportPending" Text="Export Pending" CssClass="lbl widthauto" runat="server" wrap="false"></asp:Label>
                        </td>
                        <td>
                            <asp:Panel ID="pnlResend" runat="server" Height="14" Width="14" CssClass="Resend_Successful_BG" Visible="true"></asp:Panel>
                        </td>
                        <td class="bulletsPaddingRight widthpnllbl">
                            <asp:Label ID="lblResend" Text="Regenerate & Resend" CssClass="lbl widthauto" runat="server" wrap="false" Visible="true"></asp:Label>
                        </td>




                        <td class="VAlign_Middle">
                            <asp:CheckBox ID="CheckBox3" runat="server" AutoPostBack="True" />
                            <asp:Label ID="Label1" runat="server">Refresh Frequency</asp:Label>
                            <asp:TextBox ID="txtRefreshTime" runat="server" CssClass="txt" AutoPostBack="True" Width="30px" Height="23px" Style="text-align: right" Text="0" onkeypress="return blockSpecialChar(event)" onkeydown="isNumberKey(event)"></asp:TextBox>
                            <asp:Label ID="lblsec" runat="server">Sec(0=No)</asp:Label>
                        </td>

                        <td class="lbl" style="display: none" colspan="2">
                            <asp:Panel ID="Panel3" runat="server" Width="290px" GroupingText="Auto Refresh" CssClass="lbl">
                                <asp:Label ID="Label2" runat="server" Text="In sec "></asp:Label>
                                <asp:TextBox ID="TextBox1" runat="server" Width="150px" Text="100" Style="text-align: right"
                                    onkeydown="return AutoRefereshOnEnter(event)"></asp:TextBox>
                                <asp:Timer ID="Timer1" runat="server" Enabled="FALSE" Interval="100" OnTick="Timer1_Tick">
                                </asp:Timer>
                            </asp:Panel>
                        </td>

                        <%-- <td class="tdlblRowPrePage">
                                <asp:Label ID="Label9" runat="server" CssClass="lbl lblRowPrePage" Text="Row(s) Per Page :"></asp:Label>
                            </td>--%>
                        <%-- <td class="auto-style1">
                                <asp:TextBox ID="TxRowsPerPage" Width ="28px" runat="server" CssClass="txt txtTotalRecords" AutoPostBack="true" onkeydown="return TxRowsPerPage_TextChanged(event)" onkeypress="return AllowNumericOnly(event)" MaxLength="2"></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>


                    <tr>

                        <td class="lblBlotterPaddingRight">
                            <asp:Label ID="lblProduct" Text="Product" CssClass="lbl lblProducts" runat="server"></asp:Label>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:DropDownList ID="cboProduct" runat="server" AutoPostBack="True" CssClass="ddl ddlEntity1" Enabled="true"></asp:DropDownList>
                        </td>
                        <td class="lblBlotterPaddingRight">
                            <asp:Label ID="lblStatus" Text="Interface Status" CssClass="lbl lblInterfaceStatus" runat="server"></asp:Label>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:DropDownList ID="cboInterfaceStatus" runat="server" AutoPostBack="True" CssClass="ddl ddlInterfaceStatus"></asp:DropDownList>
                        </td>
                        <td class="lblBlotterPaddingRight">
                            <asp:Label ID="Label8" Text="Deal No" CssClass="lbl lblProducts" runat="server" Visible="true"></asp:Label>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:TextBox ID="txtDealNo" runat="server" CssClass="txt ddlEntity1" onkeydown="return txtDealNo_TextChanged(event)" Visible="true" onkeypress="return blockSpecialChar(event)"></asp:TextBox>
                            <asp:Button ID="Button1" CssClass="btn" runat="server" Style="display: none"></asp:Button>

                        </td>
                        <td class="lblBlotterPaddingRight">
                            <asp:Label ID="lblTo" CssClass="lbl lblFrom" runat="server" Text="To" Height="16px"></asp:Label>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <uc1:DateControl ID="dtpTo" runat="server" TextBoxCss="txt" CalenderCss="btn1" />
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:Button ID="BtnExport" runat="server" CssClass="btn" Text="Export To Excel" Width="120px" Height="26px" />
                        </td>

                        <%--bullets row 2--%>
                        <div id="divLowAckPending" runat="server">
                            <td>
                                <asp:Panel ID="pnlLowAckPending" runat="server" Height="14" Width="14" CssClass="Processing_File_BG" Wrap="false"></asp:Panel>
                            </td>
                            <td class="bulletsPaddingRight widthpnllbl">
                                <asp:Label ID="lblLowAckPending" Text="Low Ack Pending" CssClass="lbl widthauto" runat="server" wrap="false"></asp:Label>
                            </td>
                        </div>
                        <td>
                            <asp:Panel ID="pnlRejected" runat="server" Height="14" Width="14" CssClass="High_Ack_BG"></asp:Panel>
                        </td>
                        <td class="bulletsPaddingRight widthpnllbl">
                            <asp:Label ID="lblRejected" Text="High Ack Rejected" CssClass="lbl widthauto" runat="server" wrap="false"></asp:Label>
                        </td>

                        <td>
                            <table>
                                <tr>
                                    <td class="lblBlotterPaddingRight">
                                        <asp:Label ID="Label4" Text="Total Record(s) :" CssClass="lbl lblRowPrePage" runat="server" Visible="true" />
                                    </td>
                                    <td class="lblBlotterPaddingRight">
                                        <asp:Label ID="lblRows" runat="server" autopostback="true" CssClass="lbl"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>

                        <%--<td class="lblBlotterPaddingRight">
                            <asp:Label ID="Label4" Text="Total Record(s) :" CssClass="lbl lblRowPrePage" runat="server" Visible="true" Width="150px" />
                        </td>
                        <td class="lblBlotterPaddingRight">
                            <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>


                    <tr class="thridTR">
                        <%-- <td class="tdlblType">
                                <asp:Label ID="Label7" Text="Type" runat="server" CssClass="lbl lblType"></asp:Label>
                            </td>
                            <td class="tdddlType">
                                <asp:DropDownList ID="cboType" runat="server" AutoPostBack="True" CssClass="ddl ddlType" />
                            </td>--%>
                        <td class="lblBlotterPaddingRight">
                            <asp:Label ID="Label3" Text="Deal Status" CssClass="lbl lblDealStatus" runat="server"></asp:Label>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:DropDownList ID="ddlDealStatus" runat="server" AutoPostBack="True" CssClass="ddl ddlDealStatus"></asp:DropDownList>
                        </td>
                        <td class="tdddlDeal" colspan="6">

                            <asp:RadioButtonList ID="radio1" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal" AutoPostBack="True" CssClass="RadioButtonListCssClass">
                                <asp:ListItem Selected="True">Summary</asp:ListItem>
                                <asp:ListItem>Details</asp:ListItem>

                            </asp:RadioButtonList>
                        </td>
                        <td class="ctlBlotterPaddingRight">
                            <asp:Button ID="BtnRegenerateResend" runat="server" CssClass="btn regResendBtn" Text="Regenerate and Resend" Height="26px" Width="120px" />
                        </td>

                        <%--bullets row 3--%>
                        <td>
                            <asp:Panel ID="pnlHighAckPending" runat="server" Height="14" Width="14" CssClass="Exported_Successfully_BG"></asp:Panel>
                        </td>
                        <td class="bulletsPaddingRight widthpnllbl">
                            <asp:Label ID="lblHighAckPending" Text="High Ack Pending" CssClass="lbl widthauto" runat="server" wrap="false"></asp:Label>
                        </td>
                        <td>
                            <asp:Panel ID="pnlBookingSucc" runat="server" Height="14" Width="14" CssClass="Bookin_Succ_BG" Visible="true"></asp:Panel>
                        </td>
                        <td class="bulletsPaddingRight widthpnllbl">
                            <asp:Label ID="lblBookingSucc" Text="Downstream Booking Successful" CssClass="lbl widthauto" runat="server" wrap="false" Visible="true"></asp:Label>
                        </td>



                        <%--regResendBtn regresend--%>
                        <%--  <td style="width: 130px">
                                <asp:Button ID="btnResendReg" runat="server" CssClass="btn" Text="Resend" Width="100px" Height="26px" />
                            </td>--%>
                    </tr>
                    <tr>
                        <td class="lblBlotterPaddingRight"></td>
                        <td class="ctlBlotterPaddingRight"></td>
                        <td class="tdddlDeal" colspan="6"></td>
                        <td class="ctlBlotterPaddingRight"></td>

                        <td>
                            <asp:Panel ID="pnlSCTRSCPending" runat="server" Height="14" Width="14" CssClass="SCTRSC_Ack_Pending_BG" Visible="true"></asp:Panel>
                        </td>
                        <td class="bulletsPaddingRight widthpnllbl">
                            <asp:Label ID="lblSCTRSCPending" Text="SCTRSC Ack Pending" CssClass="lbl widthauto" runat="server" wrap="false" Visible="true"></asp:Label>
                        </td>
                        <td>
                            <asp:Panel ID="pnlSCTRSCSucc" runat="server" Height="14" Width="14" CssClass="SCTRSC_Ack_Successful_BG" Visible="true"></asp:Panel>
                        </td>
                        <td class="bulletsPaddingRight widthpnllbl">
                            <asp:Label ID="lblSCTRSCSucc" Text="SCTRSC Ack Successful" CssClass="lbl widthauto" runat="server" wrap="false" Visible="true"></asp:Label>
                        </td>

                    </tr>


                </table>
                <div id="div1" class="dialog" runat="server">
                    &nbsp;
                </div>

                <%--  Below table tag added to remove duplicate gridview issue  --%>

                <table>
                    <tr>
                        <td>
                            <table>
                                <tr>


                                    <%--SCTRSC--%>



                                    <%--START : Commented by Vaishnav M on 30-Oct-2020 to remove SCTRSC retried Functionality as discussed with Sagar P --%>
                                    <%-- <td>
                                        <asp:Panel ID="pnlSCTRSCRetry" runat="server" Height="14" Width="14" CssClass="SCTRSC_Retry_BG" Visible="true"></asp:Panel>
                                    </td>
                                    <td% Class="ctlBlotterPaddingRight widthpnllbl">
                                        <ASP:Label ID = "lblSCTRSCRetry" Text="SCTRSC Retried" CssClass="lbl widthauto" runat="server" wrap="false" Visible="true"></asp:Label>
                                    </td> --%>
                                    <%--END : Commented by Vaishnav M on 30-Oct-2020 to remove SCTRSC retried Functionality as discussed with Sagar P --%>
                                    <%--<td>
                                <asp:Panel ID="Panel3" runat="server" Height="14" Width="14" CssClass="Bookin_Ack_Pending_BG" Visible="true"></asp:Panel>
                            </td>
                            <td style="width: 150px">
                                <asp:Label ID="Label5" Text="T24 Booking Ack Pending" CssClass="lbl" runat="server" Wrap="false" Visible="true"></asp:Label>
                            </td>--%>
                                </tr>

                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td>

                            <table style="overflow: auto">
                                <tr>
                                    <td>
                                        <div class="dvGridWidth" id="dvGridWidth">

                                            <asp:GridView ID="dgvMonitor" runat="server" Visible="true" CssClass="Grid"
                                                CellPadding="3" AutoGenerateColumns="False" AllowSorting="True" ShowHeaderWhenEmpty="true" PageSize="10"
                                                AllowPaging="False" EmptyDataText="No Records Found" ShowHeader="true">

                                                <SelectedRowStyle CssClass="GridItemSelect" />
                                                <RowStyle CssClass="GridItem" />
                                                <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>
                                                    <%-- <asp:TemplateField HeaderText="Resend" ControlStyle-Width="90" ItemStyle-HorizontalAlign="Center"  Visible="false">
                                            <ItemTemplate>

                                                <asp:ImageButton ID="buttonResend" runat="server" Style="width: 20px; height: 20px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;"
                                                    ImageUrl="../App_Resources/resend.png" OnClick="lblFIMLegDealNo_Click" ToolTip="Resend" Visible="false"
                                                    CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Id").ToString)%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>--%>
                                                    <%-- <asp:TemplateField HeaderText="Process Trade" ControlStyle-Width="30" ItemStyle-HorizontalAlign="Center">--%>

                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" Visible="True" HeaderStyle-Width="100px">
                                                        <HeaderStyle Wrap="true" HorizontalAlign="Center" />
                                                        <ItemStyle Wrap="false" HorizontalAlign="Center" />
                                                        <HeaderTemplate>
                                                            <asp:CheckBox ID="chkRegResendAll" Checked="false" class="allCheckbox" AutoPostBack="false" Enabled="true" Width="30px" Visible="true" runat="server" OnCheckedChanged="chkRegResendAll_CheckedChanged" />
                                                            <%--<asp:CheckBox ID="chkRegResendAll" Checked="false" OnCheckedChanged="chkRegResendAll_CheckedChanged" AutoPostBack="true" Enabled="true" Width="30px" Visible="true" runat="server" />--%>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkRegenerate" Checked="false" class="dynamicCheckbox" OnCheckedChanged="chkRegenerate_CheckedChanged" AutoPostBack="false" Enabled="false" Width="30px" Visible="true" runat="server" CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Exported_At").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Exported_By").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_ID").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Product_Code").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Template_Code").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Event_Code").ToString)+ "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Deal_No").ToString)%>' />
                                                            <%-- + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, Container.DataItemIndex).ToString) --%>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--0--%>
                                                    <asp:TemplateField HeaderText="Actions" ItemStyle-HorizontalAlign="Center" Visible="False">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <%--<asp:ImageButton ID="btprocesstrade" runat="server" Style="white-space: nowrap; width: 20px; height: 20px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;" OnClick="ProcessTrade_Click" ToolTip="Process Trade" Visible="True"
                                                    ImageUrl="../App_Resources/plus_1.png" CommandArgument = <%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_ID").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Deal_Book_ID").ToString)%> ></asp:ImageButton>
                                                            --%><div style="height: 20px;">
                                                                <asp:LinkButton ID="btprocesstrade" CssClass="lbl" runat="server" Text="Process Trade" Width="100px" OnClick="ProcessTrade_Click" ToolTip="Process Trade" 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.FIM_Deal_Book_ID").ToString)%>'>

                                                                </asp:LinkButton>
                                                            </div>
                                                            <div style="height: 20px;">
                                                                <asp:LinkButton ID="btnregresend" runat="server" CssClass="lbl" OnClick="ExportFailed_Click" Text="Regenerate and Resend" ToolTip="Regenerate and Resend" CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Exported_At").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Exported_By").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_ID").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_UCP_Template_ID").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Template_Code").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Event_Code").ToString) + "," + Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Deal_No").ToString) %>'>

                                                                </asp:LinkButton>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--1--%>
                                                    <asp:TemplateField HeaderText="Deal No" ItemStyle-HorizontalAlign="Center" Visible="true">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDealNo"
                                                                Width="100px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container.DataItem,"FIM_Deal_No").ToString())  %>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Wrap="true" Width="60px" />
                                                        <ItemStyle Wrap="false" />
                                                    </asp:TemplateField>

                                                    <%--2--%>
                                                    <asp:TemplateField HeaderText="Leg Deal No" Visible="true" ItemStyle-HorizontalAlign="Left">
                                                        <HeaderStyle Wrap="true" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblLegDealNo" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Leg_Deal_No").ToString)%>'>
                                                            </asp:Label>
                                                            <asp:LinkButton ID="lblFIMLegDealNo" CommandName="ContextMenuSettlement" ForeColor="BlueViolet"
                                                                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_Code").ToString)%>'>
                                                            </asp:LinkButton>

                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--3--%>
                                                    <asp:TemplateField HeaderText="Deal Type" ItemStyle-HorizontalAlign="Center" Visible="true">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDealType"
                                                                Width="80px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container.DataItem, "Deal_Type").ToString())%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Wrap="true" Width="80px" />
                                                        <ItemStyle Wrap="false" />
                                                    </asp:TemplateField>

                                                    <%--4--%>
                                                    <asp:TemplateField HeaderText="Deal Type" ItemStyle-HorizontalAlign="Center" Visible="false">
                                                        <HeaderStyle Wrap="true" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFIMid" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_ID").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--5--%>
                                                    <asp:TemplateField HeaderText="Deal Direction" ItemStyle-HorizontalAlign="Center" Visible="true">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDealDirection"
                                                                Width="80px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container.DataItem, "Deal_Dir").ToString())%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Wrap="true" Width="80px" />
                                                        <ItemStyle Wrap="false" />
                                                    </asp:TemplateField>

                                                    <%--6--%>
                                                    <asp:TemplateField HeaderText="Reason Code" Visible="false" ItemStyle-HorizontalAlign="Right">
                                                        <HeaderStyle Wrap="true" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblReasonCode" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Reason_Code").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--7--%>
                                                    <asp:TemplateField HeaderText="Deal Status" Visible="false" ItemStyle-HorizontalAlign="Right">
                                                        <HeaderStyle Wrap="true" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDealStatus" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Deal_Status").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--8--%>
                                                    <asp:TemplateField HeaderText="Downstream Ref No" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMurexRefNo"
                                                                runat="server" Width="100px" CssClass="lbl widthauto" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Deal_Book_ID").ToString)%>'>
                                                            </asp:Label>
                                                            <%-- <asp:Label ID="Label5" CommandName="ContextMenuSettlement"
                                                    CssClass="lbl rightClickEnable" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Leg_Deal_No").ToString)%>' OnClick="lblFIMLegDealNo_Click">
                                                </asp:Label>--%>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="SCTRSC Ref No" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label5"
                                                                runat="server" Width="100px" CssClass="lbl widthauto" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_SCTRSC_Ref_No").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="SCTRSC Retry Count" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="150px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label6"
                                                                runat="server" Width="150px" CssClass="lbl widthauto" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_SCTRSC_Retry").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="SCTRSC Retry Exceeded" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="150px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label13"
                                                                runat="server" Width="150px" CssClass="lbl widthauto" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_SCTRSC_Retry_Exceeded").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="SCTRSC Manual Retry" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="150px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label14"
                                                                runat="server" Width="150px" CssClass="lbl widthauto" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_SCTRSC_Manual_Retry").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Product" ItemStyle-HorizontalAlign="Left">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblProductName" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Product_Name").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--9--%>
                                                    <asp:TemplateField HeaderText="Deal Leg Description" ItemStyle-HorizontalAlign="Left" Visible="true">
                                                        <HeaderStyle Wrap="true" Width="150px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDealLegDescription" Width="150px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FTDP_Event_Description").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--10--%>
                                                    <asp:TemplateField HeaderText="Template Name" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFJI_Template_Name" Width="100px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Template_Code").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--11--%>
                                                    <asp:TemplateField HeaderText="Booking Code" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblBookingCode" Width="100px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Booking_Code").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--12--%>
                                                    <asp:TemplateField HeaderText="Trade Status Description" ItemStyle-HorizontalAlign="Left" Visible="true">
                                                        <HeaderStyle Wrap="true" Width="170px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblTradeStatusDescription" Width="150px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Trade_Status_Description").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--13--%>
                                                    <asp:TemplateField HeaderText="Booking Status" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblBookingStaus" Width="100px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Booking_Status").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--14--%>
                                                    <asp:TemplateField HeaderText="Message Generated File Path" ItemStyle-HorizontalAlign="Left">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="true" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblGeneratedFilePath" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_OutputFile_Path").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--15--%>
                                                    <asp:TemplateField HeaderText="Message Generated File At" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblGeneratedFileAt" Width="150px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Created_At").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--16--%>
                                                    <asp:TemplateField HeaderText="Message Generated File By" ItemStyle-HorizontalAlign="Left">
                                                        <HeaderStyle Wrap="true" Width="100px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblGeneratedFileBy" Width="150px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Created_By").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

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

                                                    <%--18--%>
                                                    <asp:TemplateField HeaderText="Exported By" ItemStyle-HorizontalAlign="Left">
                                                        <HeaderStyle Wrap="true" Width="150px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFIF_Exported_By" Width="150px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Exported_By").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--19--%>
                                                    <asp:TemplateField HeaderText="Source System" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="150px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFIF_Exported_SentTo" Width="150px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Sent_By").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--20--%>
                                                    <asp:TemplateField HeaderText="Downstream System" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="150px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFIF_Exported_SentBy" Width="150px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Sent_To").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

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

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

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

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

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


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

                                                    <asp:TemplateField HeaderText="SCTRSC Requested By" ItemStyle-HorizontalAlign="Left">
                                                        <HeaderStyle Wrap="true" Width="120px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label11" Width="120px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_SCTRSC_Reuqested_By").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

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

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

                                                    <%--26--%>
                                                    <asp:TemplateField HeaderText="Acknowledge Imported By" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                        <HeaderStyle Wrap="true" Width="120px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblAcknowledgeImportedBy" Width="120px" CssClass="lbl widthauto" runat="server" Text=""> <%--Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_IMPORT_ACK_BY").ToString)%>'--%> 
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--27--%>
                                                    <asp:TemplateField HeaderText="Acknowledge Remark" ItemStyle-HorizontalAlign="Left" Visible="false">
                                                        <HeaderStyle Wrap="true" Width="120px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="AcknowledgeRemark" Width="120px" CssClass="lbl widthauto" runat="server" Text=""> <%--Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Acknowledge_Remark").ToString)%>'--%> 
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--28--%>
                                                    <asp:TemplateField HeaderText="Entity" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="90px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblEntity" Width="90px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.entity_name").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--29--%>
                                                    <asp:TemplateField HeaderText="Rejection Status" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="85px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRejectionStatus" Width="85px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Rejection_Status").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--30--%>
                                                    <asp:TemplateField HeaderText="Rejection Message" ItemStyle-HorizontalAlign="Center" Visible="false">
                                                        <HeaderStyle Wrap="true" Width="85px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRejectionMessage" Width="85px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Rejection_Message").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

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

                                                    <%--32--%>
                                                    <asp:TemplateField HeaderText="Rejected By" ItemStyle-HorizontalAlign="Left">
                                                        <HeaderStyle Wrap="true" Width="85px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRejectedBy" Width="85px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Rejected_By").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

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

                                                    <%--34--%>
                                                    <asp:TemplateField HeaderText="Rejection Code" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="85px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRejectionCode" Width="85px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Rejection_Code").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--35--%>
                                                    <asp:TemplateField HeaderText="Rejection Reason" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderStyle Wrap="true" Width="85px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRejectionReason" Width="85px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Rejection_Message").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--36--%>
                                                    <asp:TemplateField HeaderText="Active Y/N" ItemStyle-HorizontalAlign="Center" Visible="true">
                                                        <HeaderStyle Wrap="true" Width="150px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFIM_Active_YN" Width="150px" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Active_YN").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--37--%>
                                                    <asp:TemplateField HeaderText="Processing Remark" ItemStyle-HorizontalAlign="Left">
                                                        <HeaderStyle Wrap="true" Width="120px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblProcessingRemark" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Manual_Remark").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <HeaderStyle Wrap="true" Width="120px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblProductcode" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Product_Code").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField Visible="false">
                                                        <HeaderStyle Wrap="true" Width="120px" />
                                                        <ItemStyle Wrap="false" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblEventcode" CssClass="lbl widthauto" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Event_Code").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--38--%>
                                                    <%--<asp:TemplateField HeaderText="Status" ItemStyle-HorizontalAlign="Left" Visible="false">
                                            <HeaderStyle Wrap="true" Width="100px" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIMSTATUS" CssClass="lbl" style="width: auto !important" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_STATUS").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>--%>
                                                </Columns>
                                            </asp:GridView>

                                        </div>
                                    </td>
                                </tr>

                                <tr>
                                    <td>
                                        <uc1:FinIQ_Paging runat="server" ID="FinIQ_Paging" OnPaging_Control="FIniq_Paging_Control" />
                                    </td>
                                </tr>

                            </table>

                        </td>
                    </tr>

                    <%--<tr>
                <td>
                    <table style="overflow: auto">
                        <tr>
                            <td>
                                <asp:GridView ID="dgvInstrumentMonitor" runat="server" Visible="true" CellPadding="3" CssClass="Grid"
                                    AutoGenerateColumns="False" AllowSorting="True" ShowHeaderWhenEmpty="true" PageSize="10" AllowPaging="true" EmptyDataText="No Records Found">
                                    <SelectedRowStyle CssClass="GridItemSelect" />
                                    <RowStyle CssClass="GridItem" />
                                    <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>
                                        <asp:TemplateField HeaderText="Resend" ControlStyle-Width="90" ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>


                                                <asp:ImageButton ID="buttonResend1" runat="server" Style="width: 20px; height: 20px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;"
                                                    ImageUrl="../App_Resources/resend.png" OnClick="lblFIMLegDealNo_Click" ToolTip="Resend" Visible="true"
                                                    CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Id").ToString)%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Deal Leg No." ItemStyle-HorizontalAlign="Left">
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIMLegDealNo" Style="text-decoration: none;"
                                                    CssClass="lbl rightClickEnable" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container.DataItem, "FIM_Leg_Deal_No").ToString())%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle Wrap="true" Width="70px" />
                                            <ItemStyle Wrap="false" />
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Deal id" Visible="false">
                                            <HeaderStyle Wrap="true" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIMidInst" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_id").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="File Type" ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle Wrap="true" Width="70px" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIMFileType" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Type").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Interface Type" ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle Wrap="true" Width="70px" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFJITemplateCode" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FJI_Template_Code").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Entity" ItemStyle-HorizontalAlign="Left" Visible="false">
                                            <HeaderStyle Wrap="true" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblentityname" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.entity_name").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Product" ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle Wrap="true" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblProductName" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Product_Name").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Kondor Ticket No." ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle Wrap="true" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIM_Deal_Book_ID" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Deal_Book_ID").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

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


                                        <asp:TemplateField HeaderText="File Sent By">
                                            <HeaderStyle Wrap="true" Width="50px" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIMFileSentBy" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Sent_By").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="File Sent To" ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle Wrap="true" Width="50px" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIMFileSentTo" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Sent_To").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

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


                                        <asp:TemplateField HeaderText="Status" ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle Wrap="true" Width="100px" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIMSTATUS" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_STATUS").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Active Y/N" ItemStyle-HorizontalAlign="Center">
                                            <HeaderStyle Wrap="true" Width="20px" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIMActiveYN" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_Active_YN").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Exported At" ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle Wrap="true" Width="80px" />
                                            <ItemStyle Wrap="false" Width="45px" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIMFileExportedAt" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_File_Exported_At").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>


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

                                        <asp:TemplateField HeaderText="Output File Path" ItemStyle-HorizontalAlign="Left">
                                            <HeaderStyle Wrap="true" Width="300px" />
                                            <ItemStyle Wrap="false" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblFIM_OutputFile_Path" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FIM_OutputFile_Path").ToString)%>'>
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>


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

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

                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>--%>
                </table>
            </div>


            <%--<div style="overflow: auto">

      


    </div>--%>

            <%--<div style="overflow: auto">--%>



            <%-- <asp:GridView ID="dgvInstrumentMonitor" runat="server" Visible="false" CssClass="Grid" DataKeyNames ="FIM_id"
            AutoGenerateColumns="False" AllowSorting="True" ShowHeaderWhenEmpty="true" PageSize="10"
            AllowPaging="true" EmptyDataText="No Records Found">HeaderStyle-CssClass="GridHeaderTitle"  RowHeadersWidthSizeMode="DisableResizing;" --%>



            <%-- </div>--%>
            <%-- <div style="display: none;" id="ContextMenuSettlement" runat="server">
        <table border="0" cellpadding="2" cellspacing="1"
            style="border: thin solid #808080; cursor: default;" width="200px"
            bgcolor="#84a6df">
            <tr>
                <td>
                    <div class="ContextItem" onclick="f1();">Regenerate and Resend Trade</div>


                </td>
            </tr>
           
        </table>
        <table border="0" cellpadding="2" cellspacing="1" runat="server" id="tblprocess" visible="true"
            style="border: thin solid #808080; cursor: default;" width="170px"
            bgcolor="#84a6df">
            <tr>
                <td>
                    <div id="Div1" class="ContextItem" onclick="f2();" runat="server">Process Trade</div>

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


            <%-- <div class="Filters">
        Total Record(s): <asp:Label ID="lblRowCount" Text="0" CssClass="" runat="server"></asp:Label>
    </div>--%>
            <asp:HiddenField ID="hdnSelectedRowindex" runat="server" />
            <asp:HiddenField ID="HiddenField1" runat="server" />
            <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:Button ID="btnPreocessed" runat="server" CssClass="btn" BackColor="#FFFFFF" ForeColor="#FFFFFF" Visible="false"></asp:Button>
            <asp:Button ID="btnResend" runat="server" CssClass="btn" BackColor="#FFFFFF" ForeColor="#FFFFFF" Visible="false"></asp:Button>

        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="BtnLoad" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="BtnRegenerateResend" EventName="Click" />
            <asp:PostBackTrigger ControlID="BtnExport" />
            <asp:AsyncPostBackTrigger ControlID="cboEntityName" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="cboDatetype" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="cbointerfaceStatus" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="cboInterfacetype" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="cboProduct" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="ddlDealStatus" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="dtpFrom" EventName="TextChanged" />
            <asp:AsyncPostBackTrigger ControlID="dtpTo" EventName="TextChanged" />
        </Triggers>
    </asp:UpdatePanel>
    <script>

        function ChangeCalendarView(sender, args) {
            sender._switchMode("years", true);
        }



        function ClearSelection() {

            //$(".HighlightRow").attr("class", "HighlightRowOld");

            $(".HighlightRowNew").attr("class", "HighlightRow");

        }

        //Added By: Tejas V. Bodas on 28/09/2017 to get location of dynamic element
        /*function Confirm(title, msg, $true, $false, $link) { /*change
            //
            var $content = "<div class='dialog-ovelay'>" +
                            "<div class='dialog'><header>" +
                             " <h3> " + title + " </h3> " +
                             "<i class='fa fa-close'></i>" +
                         "</header>" +
                         "<div class='dialog-msg'>" +
                             " <p> " + msg + " </p> " +
                         "</div>" +
                         "<footer>" +
                             "<div class='controls'>" +
                                 " <button class='button button-danger doAction'>" + $true + "</button> " +
                                 " <button class='button button-default cancelAction'>" + $false + "</button> " +
                             "</div>" +
                         "</footer>" +
                      "</div>" +
                    "</div>";
            $('body').prepend($content);
            event.preventDefault();
            $('.doAction').click(function () {*/
        <%--__doPostBack('<%= btnExportFailed.UniqueID%>', "");--%>
        /*$(this).parents('.dialog-ovelay').fadeOut(500, function () {
            $(this).remove();
        });
    });
    $('.cancelAction, .fa-close').click(function () {
        $(this).parents('.dialog-ovelay').fadeOut(500, function () {
            $(this).remove();
        });
    });
    //$('btnregresend').click(function(){
    //    Confirm('Resend and Regenerate Trade','Do you want to continue?','Yes','Cancel','ExportFailed_Click()');
    //});
}*/
    </script>
</asp:Content>
