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


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

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

    <script src="MPG.js" type="text/javascript"></script>
    <link href="MPG_Master.css" type="text/css" rel="stylesheet">
    <%--<link rel="stylesheet" href="../FinIQJS/Jquery/jquery-ui/css/smoothness/jquery-ui.css">--%>
    <%--<Start>Commented  by Saili D/Akanksha P || For setting default value of filters || As suggested by Shekhar Sir/Nikhil Pakhle--%>
    <script src="../FinIQJS/SortFilter_Grid.js"></script>
    <%--<Start>Commented by Saili D/Akanksha P on 9 July 2020 as asked by Shekhar sir || For column header freezing --%>
    <link href="../FinIQJS/FreezeGrid.css" type="text/css" rel="stylesheet">
    <script src="../FinIQJS/FreezeGrid.js" type="text/javascript"></script>
    <%--<End>Commented by Saili D/Akanksha P on 9 July 2020 as asked by Shekhar sir || For column header freezing --%>

    <script type="text/javascript">   
        function checkFiltersnames() {
            var d = document.getElementById("<%=gvMPG.ClientID%>");
            var gvDrv = document.getElementById("<%=grdFilter.ClientID %>");
            for (i = 1; i < gvDrv.rows.length; i++) {
                var filterName = gvDrv.rows[i].cells[1].innerText;
                var n = filterName.search("ID");
                if (n >= 0) {
                    var ddl = gvDrv.rows[i].cells[2].firstElementChild.id;
                    document.getElementById(ddl).value = "=";
                }
                else {
                    var ddl = gvDrv.rows[i].cells[2].firstElementChild.id;
                    document.getElementById(ddl).value = "LIKE";
                }
            }
        }
    </script>

  <%-- <Start> Added by Saili D/ Akanksha P on 9 October 2020 || Multiple check issue on MPG grid's checkbox --%>
    <script type="text/javascript">
        $(document).click(function (event) {
            //this is for checkbox which are not on grid
            if (event.target.parentNode.attributes.customtag == undefined) {
                return;
            }
            var CurrentItemType = event.target.type.toUpperCase();
            if (CurrentItemType != undefined) {
                if (CurrentItemType == "CHECKBOX") {
                    $('input[type=checkbox]').each(function () /*all checkboxes present on page are traversed*/
                    {
                        if (this.parentNode.attributes.customtag != undefined && this.id != event.target.id) /*customtag attribute is for grid checkboxes and the other condition is for no action on currently clicked checkbox*/
                        this.checked = false;
                    });
                }
            }});
    </script>
    <%-- <End> Added by Saili D/ Akanksha P on 9 October 2020 || Multiple check issue on MPG grid's checkbox --%>

    <style>
        .txtrowsperpage {
            vertical-align: bottom;
            /*Modified by Akanksha P/Saili D as asked by Nikhil Sir on 22 June 2020 || For showing 999 records*/
            /* width: 26px !important;*/
            width: 35px !important;
        }

        .RadGrid_Silk .rgFilterRow .riSingle .riTextBox {
            height: 36px;
        }

        .Hiddenbtn {
            display: none;
        }

        .ddlSort {
            /*margin-left:18px !important;*/
            /*width:173px !important;*/
            width: 260px !important;
        }

        /*.Grid th {
            background-color: none !important;
        }*/

        /*changed by Prachi Patil*/
        .button {
            width: 190px;
            /*margin-left: 10px;*/
        }

        .tdLabel {
            width: 94px;
            padding-left: 6px;
        }

        .tdDdl {
            padding-left: 5px;
        }

        .divLoading {
            position: absolute;
            top: -20px;
            left: 1400px;
        }

        .DateFieldset {
            padding: 6px;
            margin-left: 45px;
        }

        .DateDiv {
            float: left;
        }

        .commonlbl {
            margin-right: 4px;
        }

        .toDateDiv {
            margin-left: 15px;
        }

        .RowsPerPageDiv {
            margin-left: 15px; 
        }

        .lblRowsPerPage {
            margin-right: 4px;
        }

        .DAtelbl {
            height: 28px !important;
            margin-left: 16px;
            line-height: 25px !important;
        }

        /* 31-Aug-2021 | Commented by Rajeshree K for MASCLI-1326
        .GridPager a {
            text-decoration: none !important;
            color: #0284e0 !important;
        }*/

        .rowsPerPageTbl {
            margin-top: 10px;
        }

        /*.Grid table {
            border: none !important;
        }

            .GridItem table td, .Grid table td, .AlternatItemStyle table td, .GridItemLcl table td {
                border: none !important;
            }*/

        .tblMainPE {
            position: relative;
            margin: 0px;
            left: 0;
            display: inline-block;
        }

        .leftNav {
            /*width: 30px;*/
            padding: 5px;
            padding-right: 28px !important;
            border-right: solid 1px #ddd;
            border-collapse: collapse;
            /*background-image: url("Img/rightNav.png");*/
            background-image: url("../App_Resources/Img/rightNav.png");
            background-repeat: no-repeat;
            vertical-align: middle;
        }

        /*changed by Prachi Patil*/
        .rightNav {
            /*width: 30px;*/
            padding: 10px;
            padding-left: 28px !important;
            border-left: solid 1px #ddd;
            border-collapse: collapse;
            background-image: url("../App_Resources/Img/leftNav.png");
            /*background-image: url("Img/leftNav.png");*/
            background-repeat: no-repeat;
            vertical-align: middle;
        }

        .bottom td div, .bottom td {
            margin: 0px;
            padding: 0px;
        }

            .bottom td div table tr td {
                margin: 0px;
                padding: 5px !important;
            }

        .Context_Menu {
            color: #000 !important;
        }

        .wid {
            white-space: pre-line !important;
        }

        .QueuesItem .QueuesItem td {
            color: #000000;
            font-size: 11px !important;
            text-decoration: none;
            border-style: none !important;
            font: normal 11px !important;
        }

        .QueuesSelect {
        }



        .Queues .GridItem1 td, .Queues {
            border-style: none !important;
        }


        .FilterPad {
            padding-left: 10px;
            padding-top: 10px;
        }

        .DatelblTD {
            width: 94px;
        }

        #ctl00_MainContent_dtFrom_txtDate, #ctl00_MainContent_dtTo_txtDate {
            /*width: 152px !important;*/
            width: 238px !important; /*25 sept 2020*/
        }

        .extendedView {
            margin-left: 10px;
        }

        /*changed by Prachi Patil*/
        /*.buttonView {
            padding-left: 10px !important;
            padding-right: 10px !important;
            margin-right: 10px;
        }*/
        /*changed by Tejas V. Bodas on 09/08/2017 to set width of blottercode dropdownlist*/
        #ctl00_MainContent_ddlBlotterCode-button {
            width: 260px !important;
        }
        /*Chnaged By: Tejas V. Bodas on 28/08/2017 to increase blottercode width*/
        .ddlBlotterCode {
            width: 260px !important;
        }

        .ToDatePicker {
            margin-top: 4px;
        }

        .toggler_RMWView, .toggler_RMWView.off {
            cursor: pointer;
            padding: 4px;
            border-radius: 10px;
            text-decoration: none;
            transition: all .5s ease;
            border: 2px solid #f2f2f2;
        }

        .toggler_RMWView {
            background: #FFFFFF; /*#1a9953;*/
            border-left-width: 2px;
        }

            .toggler_RMWView.off {
                background: #FFFFFF; /* #e3675b;*/
                border-right-width: 2px;
                border-left-width: 1px;
            }

        .toggler_RMWView {
            border-right-width: 40px;
            border-left-width: 2px;
            padding-left: 10px;
            padding-right: 10px;
        }

            .toggler_RMWView.off {
                background: #FFFFFF;
                border-left-width: 72px;
                border-right-width: 4px;
                padding-left: 26px;
                padding-right: 26px;
                color: #333;
            }

        .toggler_RMWView {
            background: #FFFFFF;
            border-right-width: 70px;
            border-left-width: 4px;
            padding-left: 10px;
            padding-right: 40px;
            color: #333;
        }



        .ddlDateFilter {
            /*width:173px !important;*/
            width: 263px !important; /*25 sept 2020*/
        }

        #ctl00_MainContent_dtFrom_divDate {
            left: 144px !important;
            top: 310px !important;
        }

        #ctl00_MainContent_dtTo_divDate {
            left: 144px !important;
            top: 345px !important;
        }

        #ctl00_MainContent_grdFilter_ctl05_FilterdtFrom_divDate {
            left: 340px !important;
            top: 715px !important;
        }
        /*changed by Prachi Patil*/
        /*.buttonRow {
            width:1300px !important;
        }*/

        .tdLbl {
            width: 74px;
            padding-left: 6px;
        }

        .tdFiller {
            width: 10px;
        }

        .con_buttonView {
            width: 164px;
        }

        /*Commented by Saili D || For Sorting filters || As asked by Nikhil Pakhle*/
        /*added by Prachi Patil*/
        /*.gridHeaderSortASC {
            background: url(../App_Resources/Sort_Up.png) no-repeat 95% 50%;
        }

        .gridHeaderSortDESC {
            background: url(../App_Resources/Sort_Down.png) no-repeat 95% 50%;
        }*/

        .caption1 {
            line-height: 40px !important;
            vertical-align: middle !important;
            _vertical-align: middle !important;
            font: normal 18px Raleway, Helvetica, sans-serif !important;
            color: #4fb2f7;
            float: left;
            text-align: left;
        }

        /*added by Prachi on 25-Apr-2019 for gap issue*/
        .filterBy {
            min-width: 85px;
            max-width: 85px;
            word-wrap: break-word;
        }
        /*<Start> added by Shekhar Sir on 18-Dec-2019 for grid width issue*/
        /*.Grid {
        width:max-content;
        }*/
        /*<End> added by Shekhar Sir on 18-Dec-2019 for grid width issue*/

        /*.GridHeader th:not(:first-child).filter_1, .GridHeader th:not(:first-child).filter_0 {*/ /* changed by Shekhar sir on 18-12-2019 for MPG*/
        /*background-repeat: no-repeat;
    background-position: right top;
    padding: 5px !important;
    padding-right: 23px !important;
    cursor: pointer;
    vertical-align: middle;*/ /*changed by Dinesh on 20-03-2020 */
        /*}*/

        /*Added By saili d/Akanksha p  for Personalised Workflow Settings on 08-07-2020*/
        .pnlSetting {
            display: block;
            height: 200px;
            width: 445px;
            position: absolute;
            /*border: solid 1px #DDDDDD;*/
            background-color: #FFFFFF;
            border-width: 2px;
            padding: 10px;
            /*transform: translate(-50%, -50%);*/
            left: 35%;
            top: 42%;
            border-radius: 12px;
           /*box-shadow: 0 0 10px #000000;*/ /*Modified by Jyoti K on 17 Dec 2021 for dark theme JIRA: HSBCELINT-375*/
            z-index:2;
        }

        .SettingMPGddl {
            width: 220px;
        }

        .distanceBetweenTwoTR_PWS_Pannel {
            height: 35px !important;
        }

        .finiq_Cal {
            top: auto !important;
            left: auto !important;
        }

        /*	//toggle*/
        .hideToggle, .showToggle, .TabView, .LinkView {
            width: 126px;  /*Changed by Rohit T. 12-May-2022*/
            height: 28px;  /*Changed by Rohit T. 12-May-2022*/
            border: none 0px #FFF !important;
            color: #FFF !important;
            outline: 0 !important;
            background-color: #FFFFFF;
            background-repeat: no-repeat;
            /*margin-top: 6px;*/
            opacity: 0.7;
        }

        .Toggle {
            border-radius: 5px;
            border: solid 1px #dddddd;
            word-wrap: break-word;
            white-space: normal;
        }

        .TabView {
            background-image: url("../App_Resources/TabView.png");
        }

        .LinkView {
            background-image: url("../App_Resources/LinkView.png");
        }

        /*//toggle*/


       /*<START> Added by Saili D/ Akanksha P on 11 June 2021 || For poster MPG functionality || As asked by Nikhil Pakhale 
*/

         .CardUI {
            display: block;
            width: 80px;
            height: 90px;
            color: inherit;
            background-color: #c1c1c114;
            border-radius: 10px;
            box-shadow: 0px 0px 5px -2px #1a1a1a91;
            float: left;
            margin: 5px;
            text-align: center;
            padding: 5px;
            
        }


        /*.CardUI {
            display: block;
            width: 80px;
            height: 70px;
            color: inherit;*/
            /*background-color: #c1c1c114;*/
            /*border-radius: 8px;*/
            /* box-shadow: 0px 0px 5px -2px #1a1a1a91; */
            /*float: left;
            margin: 5px;
            text-align: center;
            padding: 10px;
            border: 1px solid #f2f2f3;
        }*/





        .CardLabel {
            font-size: 90%;
            text-align: center;
            display: block;
            height: 45%;
        }


        /*.CardLabel {
            font-size: 90%;
            text-align: center;
            display: block;
            height: 40%;
        }
*/
           .CardValue {
            font-size: 24px;
            text-align: center;
            display: block;
            height: 50%;
            vertical-align: middle;
            line-height: 45px;
        }


        /*.CardValue {
            font-size: 24px;
            text-align: center;
            display: block;
            height: 34%;
            vertical-align: middle;*/
           /* line-height: 45px;*/
        /*}*/

        .CardUIFront {
            display: flex;
            flex-direction: column-reverse;
            text-align: center;
            gap: 5px;
        }

        .hidePartnerMPG {
            display: none;
        }

        .showPartnerMPG {
            display: block;
        }

         /*<END> Added by Saili D/ Akanksha P on 11 June 2021 || For poster MPG functionality || As asked by Nikhil Pakhale 
*/

        /*  grid control*/

        #tblGridview {
            display: block;
            color: inherit;
            background-color: #c1c1c114;
            border-radius: 10px;
            box-shadow: 0px 0px 5px -2px #1a1a1a91;
            float: left;
            margin: 5px;
            padding: 5px;
            text-align: center;
            border-collapse: collapse;
        }

            #tblGridview .tblHeader th {
                font-size: 12px;
                text-align: center;
                padding: 5px 10px;
                background-color: inherit;
                border-style: none;
                border-bottom: solid 1px #dddddd;
                border-collapse: collapse;
            }


            #tblGridview .tblCell td {
                border-style: none;
                padding: 2px 10px;
                font-size: 12px;
                text-align: center;
                border-collapse: collapse;
                min-width: 50px;
            }

            #tblGridview th:first-child, #tblGridview td:first-child {
                text-align: left !important;
                min-width: 50px;
            }
            /*1-Dec-2021 | Modified by Jyoti k for UBPINT-1712*/
            .AlternateRowStyle{
                background-color: #ccc3;
            }
        /*  grid control*/
    </style>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <table>
                <tr>
                    <td class="caption1">
                        <asp:Label runat="server" ID="headerPage" Visible="false"></asp:Label>
                    </td>
                </tr>
            </table>

            <div>
                <asp:Panel ID="PnlPersonalSetting" runat="server">
                    <table id="tblMain" class="tblMainPE">
                        <tr>
                            <td valign="top" style="padding-top: 360px !important;" visible="false">
                                <button id="btnshowfilters" class="myButton btn" onclick="showfilters();" style="height: 70px !important; width: 27px !important; display: none;">&gt;&gt;</button>
                                <button id="btnhidefilters" class="myButton btn" onclick="hidefilters();" style="height: 70px !important; width: 27px !important; display: none;">&lt; &lt;</button>
                            </td>
                            <td id="tdmasterfilters" align="left" style="margin-right: 0px" valign="top">
                                <div id="myDiv" runat="server">									
                                    <table id="ctl00_MainContent_filtertable" runat="server" class="Filter" cellpadding="1"
                                        cellspacing="1" style="margin-left: -17px; margin-right: 15px; width: 500px;">
                                        <tr style="width: 100%">
                                            <td>
                                                <div id="DivSearchByMasterFiltersLoading" style="position: absolute"></div>
                                                <div style="float: right;">
                                                    <input type="button" id="btnHideFilter" runat="server" value="Hide" class="btn" style="width: 70px;" visible="false" />
                                                    <input type="button" id="btnHideFilter1" runat="server" onclick="ShowHideMasterFilter();" value="" class="btnShow" style="width: 70px;" visible="false" />
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>


                                                <table>
                                                    <tr>
                                                        <td class="tdLabel">
                                                            <asp:Label ID="Label1" runat="server" Text="Display as " Style="float: left; margin-left: 16px;" CssClass="lbl"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
                                                                <ContentTemplate>
                                                                    <asp:LinkButton runat="server" ID="lnkbtnRMWView" CssClass="toggler_RMWView" Visible="false" Text="Tabular"></asp:LinkButton>
                                                                    <a runat="server" id="lnkRMWView" href="#" class="toggler_RMWView" onclick="toggleLink(this);">Tabular</a>
                                                                    <asp:HiddenField ID="hdnRMWView" Value="Tabular" runat="server" />

                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                    </tr>

                                                </table>

                                                <legend style="height: 24px; margin-left: 10px;">Sorting</legend>
                                                <table>
                                                    <tr>
                                                        <td class="tdLabel">
                                                            <asp:Label ID="lblSortby1" runat="server" Text="Sort by #1" Style="float: left; margin-left: 16px;" CssClass="lbl"></asp:Label>
                                                        </td>

                                                        <td>
                                                            <asp:DropDownList ID="ddlSortBy1" runat="server" CssClass="ddl ddlSort" AutoPostBack="True" Style="float: left;"></asp:DropDownList>
                                                        </td>
                                                        <td>
                                                            <asp:ImageButton ID="ImgBtnSort1" runat="server" ImageUrl="../App_Resources/Img/Up.png" />
                                                            <%--<asp:ImageButton ID="ImgBtnSort1" runat="server" ImageUrl="Img/Up.png" />--%>
                                                        </td>
                                                        <%--   <td>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:RadioButton ID="rdoAsc1" runat="server" GroupName="1"
                                                                    CssClass="RadioBtn" AutoPostBack="True" />

                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblAsc1" runat="server" Text="Asc" for="rdoAsc1" CssClass="lbl"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>


                                                </td>

                                                <td></td>

                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:RadioButton ID="rdoDesc1" runat="server" GroupName="1"
                                                                    CssClass="RadioBtn" AutoPostBack="True" />
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblDesc1" runat="server" Text="Desc" for="rdoDec1" CssClass="lbl"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>--%>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdLabel">
                                                            <asp:Label ID="lblSortBy2" runat="server" Text="Sort by #2" Style="float: left; margin-left: 16px;" CssClass="lbl"></asp:Label>
                                                        </td>

                                                        <td>
                                                            <asp:DropDownList ID="ddlSortBy2" runat="server" CssClass="ddl ddlSort" AutoPostBack="True" Style="float: left;"></asp:DropDownList>
                                                        </td>
                                                        <td>
                                                            <asp:ImageButton ID="ImgBtnSort2" runat="server" ImageUrl="../App_Resources/Img/Up.png" />
                                                        </td>
                                                        <%--<td>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:RadioButton ID="rdoAsc2" runat="server" GroupName="2"
                                                                    CssClass="RadioBtn" AutoPostBack="True" />
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblAsc2" runat="server" Text="Asc" for="rdoAsc2" CssClass="lbl"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>

                                                <td></td>

                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:RadioButton ID="rdoDesc2" runat="server" GroupName="2"
                                                                    CssClass="RadioBtn" AutoPostBack="True" />
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblDesc2" runat="server" Text="Desc" for="rdoDec2" CssClass="lbl"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>--%>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdLabel">
                                                            <asp:Label ID="lblSortBy3" runat="server" Text="Sort by #3" Style="float: left; margin-left: 16px;" CssClass="lbl"></asp:Label>
                                                        </td>

                                                        <td>
                                                            <asp:DropDownList ID="ddlSortBy3" runat="server" CssClass="ddl ddlSort" AutoPostBack="True" Style="float: left;"></asp:DropDownList>
                                                        </td>
                                                        <td>
                                                            <asp:ImageButton ID="ImgBtnSort3" runat="server" ImageUrl="../App_Resources/Img/Up.png" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdLabel">
                                                            <asp:Label ID="lblSortBy4" runat="server" Text="Sort by #4" Style="float: left; margin-left: 16px;" CssClass="lbl"></asp:Label>
                                                        </td>

                                                        <td>
                                                            <asp:DropDownList ID="ddlSortBy4" runat="server" CssClass="ddl ddlSort" AutoPostBack="True" Style="float: left;"></asp:DropDownList>
                                                        </td>
                                                        <td>
                                                            <asp:ImageButton ID="ImgBtnSort4" runat="server" ImageUrl="../App_Resources/Img/Up.png" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdLabel">
                                                            <asp:Label ID="lblSortBy5" runat="server" Text="Sort by #5" Style="float: left; margin-left: 16px;" CssClass="lbl"></asp:Label>
                                                        </td>

                                                        <td>
                                                            <asp:DropDownList ID="ddlSortBy5" runat="server" CssClass="ddl ddlSort" AutoPostBack="True" Style="float: left;"></asp:DropDownList>
                                                        </td>
                                                        <td>
                                                            <asp:ImageButton ID="ImgBtnSort5" runat="server" ImageUrl="../App_Resources/Img/Up.png" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <br />
                                                <br />

                                                <%--<legend style="height: 24px; margin-left: 10px;">Date Filters</legend>--%>


                                                <table>
                                                    <tr>
                                                        <%--<td style="padding-left:389px;">--%>
                                                        <td>
                                                            <asp:Label ID="lblDateFilters" Style="height: 24px; margin-left: 10px;" runat="server" Text="Date Filters"></asp:Label>

                                                        </td>
                                                        <td style="padding-left: 194px;" >

                                                            <asp:LinkButton ID="lnkDay" runat="server" Text="D" CssClass="mpgLink" AutoPostBack="false" enabled="false"/> <%--Modified by Jyoti K on 17 Dec 2021 for dark theme JIRA: HSBCELINT-375--%>

                                                        </td>
                                                         <td style="padding-left: 6px;" >
                                                                        <asp:LinkButton ID="lnkWeekly" runat="server" Text="W"  CssClass="mpgLink" AutoPostBack="false" enabled="false"/> <%--Modified by Jyoti K on 17 Dec 2021 for dark theme JIRA: HSBCELINT-375--%>
                                                                    </td>
                                                         <td style="padding-left: 6px;">
                                                                        <asp:LinkButton ID="lnkMonthly"  runat="server" Text="M"  CssClass="mpgLink" AutoPostBack="false" enabled="false"/> <%--Modified by Jyoti K on 17 Dec 2021 for dark theme JIRA: HSBCELINT-375--%>
                                                                    </td>
                                                         <td style="padding-left: 6px;" >
                                                                        <asp:LinkButton ID="lnkYearly" runat="server" Text="Y"  CssClass="mpgLink" AutoPostBack="false" enabled="false"/> <%--Modified by Jyoti K on 17 Dec 2021 for dark theme JIRA: HSBCELINT-375--%>
                                                                    </td>

                                                        
                                                       
                                                    </tr>
                                                </table>


                                                <table>

                                                    <tr>
                                                        <td>

                                                            <table>
                                                                <tr>
                                                                    <td class="DatelblTD">
                                                                        <asp:Label ID="lblDateFilterOn" runat="server" Text="Filter by" CssClass="lbl DAtelbl"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlDateFilterOn" runat="server" CssClass="ddl ddlDateFilter" AutoPostBack="true" Style="float: left;"></asp:DropDownList>
                                                                    </td>



                                                                </tr>


                                                            </table>

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

                                                            <table>
                                                                <tr>
                                                                    <td class="DatelblTD">
                                                                        <asp:Label ID="lblDateFrom" runat="server" Text="From" CssClass="lbl DAtelbl"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <uc1:DateControl ID="dtFrom" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                                                                    </td>
                                                                </tr>


                                                            </table>

                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <table>
                                                                <tr>
                                                                    <td class="DatelblTD">
                                                                        <asp:Label ID="lblDateTo" runat="server" Text="To" CssClass="lbl DAtelbl"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <uc1:DateControl ID="dtTo" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                                                                    </td>

                                                                </tr>

                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:UpdatePanel runat="server" ID="updatepanel2">
                                                    <ContentTemplate>
                                                        <div class="FilterPad" id="FilterPad">
                                                            <table>
                                                                <tr>

                                                                    <td style="height: 10px;"></td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <legend style="height: 24px;">Column Filters</legend>
                                                                        <table>
                                                                            <tr>
                                                                                <td style="width: 350px;">
                                                                                    <asp:Label runat="server" CssClass="lbl" ID="lblAsterick2" Text="*" ForeColor="Red" />
                                                                                    <asp:Label runat="server" CssClass="lbl" ID="lblMessage2" Text="When Blank, Comparator is always 'LIKE'" />
                                                                                    <br />
                                                                                    <br />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>

                                                                                    <%--<asp:Button runat="server" ID="btnRefresh" Text="Refresh" CssClass="btn" Width="100px" />--%>
                                                                                    <%--<asp:Button runat="server" ID="btnRefresh" Text="Display Results" CssClass="btn" Width="100px" />--%>
                                                                                    <%-- Added by Saili D ON 7-Jun-2020 as asked Nikhil Sir || To change filter button header text--%>
                                                                                    <asp:Button runat="server" ID="btnApply" Text="Apply Filter" CssClass="btn" Width="100px" />
                                                                                    <asp:LinkButton runat="server" ID="btnRefresh" CommandName="ResetFilter" CommandArgument='' Text="Reset All Filters" Style="margin-left: 10px;" CssClass="mpgLink"> <%--Modified by Jyoti K on 17 Dec 2021 for dark theme JIRA: HSBCELINT-375--%>
                                                                                    </asp:LinkButton>
                                                                                    <%--<asp:LinkButton runat="server" ID="lblClearFilter" CommandName="ClearFilter" CommandArgument='' Text="Clear Filter" Visible="False" Style="margin-left: 10px;">
                                                                            </asp:LinkButton>--%>
                                                                                    <br />
                                                                                    <br />

                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                        <%-- Added Grid noFreeze CssClass by Saili D/Akanksha P on 9 July 2020 as asked by Shekhar sir|| For column header freezing misalignment issue--%>
                                                                        <asp:GridView ID="grdFilter" ShowHeaderWhenEmpty="false" EmptyDataText="No Records Found" BorderWidth="1" rules="all"
                                                                            ShowHeader="true" runat="server" PagerStyle-Height="32px" HeaderStyle-CssClass="GridHeaderTitle"
                                                                            Width="100%" AutoGenerateColumns="false" CssClass="Grid noFreeze" CellPadding="0" RowHeadersWidthSizeMode="DisableResizing;"
                                                                            SelectedRowStyle-Wrap="true" CellSpacing="0">

                                                                            <SelectedRowStyle CssClass="wid" Wrap="false" BackColor="#F0F0F0" />

                                                                            <RowStyle BorderStyle="None" CssClass="GridItem" />
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <PagerStyle CssClass="GridPager" />
                                                                            <Columns>

                                                                                <asp:TemplateField HeaderText="" HeaderStyle-Width="30px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center">
                                                                                    <ItemTemplate>
                                                                                        <asp:CheckBox runat="server" Enabled="true" ID="Chkall" BorderStyle="None" CssClass="chk" OnCheckedChanged="ClearFilterValue" AutoPostBack="False"></asp:CheckBox>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>

                                                                                <asp:TemplateField HeaderText="Column ID" HeaderStyle-Width="30px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label runat="server" Enabled="true" CssClass="lbl" ID="lblColumnID" Text='<%# DataBinder.Eval(Container, "DataItem.Column_id")%>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>

                                                                                <%--changed by Prachi on 25-Apr-2019 for gap issue--%>
                                                                                <asp:TemplateField HeaderText="Filter By" HeaderStyle-CssClass="filterBy" ItemStyle-CssClass="filterBy" ControlStyle-CssClass="filterBy" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center">
                                                                                    <%--<asp:TemplateField HeaderText="Filter By" HeaderStyle-Width="200px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center">--%>
                                                                                    <ItemTemplate>
                                                                                        <asp:Label runat="server" Enabled="true" CssClass="lbl" ID="lblFilterName" Text='<%# DataBinder.Eval(Container, "DataItem.Header")%>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>

                                                                                <asp:TemplateField HeaderText="Type" HeaderStyle-Width="104px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center" ControlStyle-BorderStyle="None">
                                                                                    <ItemTemplate>
                                                                                        <%--Modified by  Saili D/Akanksha P on 5-June-2020 to handle postback issue of BETWEEN filter's value text boxes || As asked by Nikhil Pakhale--%>
                                                                                        <asp:DropDownList runat="server" Enabled="true" ID="ddlFilterComparator" Width="104px" CssClass="ddl" OnSelectedIndexChanged="EnableDisablFiltereControls" AutoPostBack="true">
                                                                                        </asp:DropDownList>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>

                                                                                <asp:TemplateField HeaderText="Value" HeaderStyle-Width="180px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox runat="server" Enabled="true" AutoPostBack="false" ID="txtFilterValue" Width="180px" BorderStyle="None" OnTextChanged="txtFilterValue_TextChanged" Text='<%# DataBinder.Eval(Container, "DataItem.CompareValue")%>' CssClass="txt"></asp:TextBox>
                                                                                        <asp:TextBox runat="server" Enabled="true" Visible="false" AutoPostBack="false" ID="txtFilterValue1" Width="180px" BorderStyle="None" OnTextChanged="txtFilterValue_TextChanged" Text='<%# DataBinder.Eval(Container, "DataItem.CompareValue")%>' CssClass="txt"></asp:TextBox>
                                                                                        <asp:DropDownList runat="server" Enabled="true" ID="ddlFilterValue" Width="167px" CssClass="ddl" Visible="false" OnSelectedIndexChanged="ddlFilterValue_SelectedIndexChanged">
                                                                                        </asp:DropDownList>
                                                                                        <uc1:DateControl ID="FilterdtFrom" runat="server" CalenderCss="btn1" TextBoxCss="txt" Visible="false" />
                                                                                        <uc1:DateControl ID="FilterdtTo" runat="server" CalenderCss="btn1 ToDatePicker" TextBoxCss="txt" Visible="false" />

                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>

                                                                                <asp:TemplateField HeaderText="Data Type" HeaderStyle-Width="100px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label runat="server" Enabled="true" ID="lblColumnDataType" Text='<%# DataBinder.Eval(Container, "DataItem.DataType")%>' CssClass="lbl"></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>

                                                                                <asp:TemplateField HeaderText="Data Type" HeaderStyle-Width="100px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label runat="server" Enabled="true" ID="lblBlotterColumn" Text='<%# DataBinder.Eval(Container, "DataItem.Blotter_Column")%>' CssClass="lbl"></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <input id="Hidden2" type="hidden" runat="server" />
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>


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

                            <td id="PENav" runat="server" class="leftNav" onclick="ToggleNAVClass(this);">
                                <input id="txtSliderPosition" type="hidden" runat="server" value="1" />
                            </td>

                            <td style="width: 6px;"></td>
                            <td id="tdMPG" align="left" valign="top">


                                <%--changed by Prachi Patil--%>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0" style="float: left">
                                                <ProgressTemplate>

                                                    <div class="divLoading">
                                                        <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...</span>
                                                    </div>


                                                </ProgressTemplate>
                                            </asp:UpdateProgress>
                                        </td>

                                    </tr>

                                    <tr>
                                        <td>
                                            <asp:Label ID="lblError" runat="server" CssClass="lblerror" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                </table>

                                <table>
                                    <tr>
                                        <td class="tdLbl">
                                            <asp:Label runat="server" CssClass="lbl" Width="74px" ID="lblBlotterCode" Text="Blotter Code"></asp:Label>
                                        </td>

                                        <%--JiraNumber :- UBPINT-1093 Added by shubham k on 18-June-2021 changed CssClass sequence to handle width of drop down--%>
                                        <td class="tdDdl">
                                            <asp:DropDownList runat="server" CssClass="ddlBlotterCode ddl" ID="ddlBlotterCode" OnSelectedIndexChanged="ddlBlotter_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </td>


                                        <%-- <td>
                                    <asp:LinkButton runat="server" ID="lblMoreFilter" CommandName="MoreFilter" CommandArgument='' Text="More Filter">
                                    </asp:LinkButton>
                                </td>--%>

                                        <%--<td style="width: 20px"></td>--%>

                                        <td style="padding-left: 5px;">
                                            <asp:Button ID="btnLoad" runat="server" CssClass="btn button" Text="Display Results" AutoPostBack="true"></asp:Button>
                                        </td>
                                        <td>
                                             <asp:DropDownList runat="server" CssClass="ddl " ID="ddlExport" AutoPostBack="true" Width="180px">
                                                 <asp:ListItem Value="Export Current Page(Excel)" Selected="True">Export Current Page(Excel)</asp:ListItem>
                                                 <asp:ListItem Value="Export All(Excel)">Export All(Excel)</asp:ListItem>
                                                 <asp:ListItem Value="Export Current Page(CSV)">Export Current Page(CSV) </asp:ListItem>
                                                  <asp:ListItem Value="Export All(CSV)">Export All(CSV) </asp:ListItem>
                                             </asp:DropDownList>
                                        </td>
                                        <td style="padding-left: 5px;">
                                            <%--<asp:UpdatePanel ID="btnExcelUP" runat="server" UpdateMode="Always">
                                        <ContentTemplate>--%>
                                            <asp:Button ID="btnExcelCurrent" runat="server" CssClass="btn button" Text="Export" AutoPostBack="true"></asp:Button>
                                        </td>
                                        <td style="padding-left: 5px;">
                                            <%--<asp:UpdatePanel ID="btnExcelUP" runat="server" UpdateMode="Always">
                                        <ContentTemplate>--%>
                                            <%--<Start>Added by Saili D/Akanksha P on 2-06-2020 || For exporting all records in excel--%>
                                            <asp:Button ID="btnExcel" runat="server" CssClass="btn button" Text="Export Results(All)"  AutoPostBack="true" Visible="false"></asp:Button>
                                            <%--<Start>Added by Saili D/Akanksha P on 2-06-2020 || For exporting all records in excel--%>
                                        </td>
                                        <td style="padding-left: 5px;">
                                            <%--</ContentTemplate>
                                    </asp:UpdatePanel>--%>
                                            <asp:Button ID="WindowCloseBtn" runat="server" Text="Close" CssClass="btn button" OnClientClick="closePopupWin();" Enabled="true" Visible="false" />
                                        </td>
                                        <td>
                                            <asp:LinkButton runat="server" ID="lblClearFilter" CommandName="ClearFilter" CommandArgument='' Text="Clear All Results" Visible="False" Style="margin-left: 10px;" CssClass="lblError" Width="70px"></asp:LinkButton>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="lnkbtnExtView" runat="server" CssClass="extendedView mpgLink" Width="83px">Extended View</asp:LinkButton><%-- Modified by Jyoti K on 12 Jan 2022 for Dark theme--%>
                                        </td>


                                        <%-- <start> Added by Saili D/Akanksha P on 08-07-2020--%>
                                        <td>
                                           
                                            <asp:LinkButton ID="btnSetting" runat="server" Text="Personal Settings" CssClass="mpgLink" Width="55px"></asp:LinkButton> <%--Modified by Jyoti K on 17 Dec 2021 for dark theme JIRA: HSBCELINT-375--%>
                                        </td>
                                        <%--         CssClass="lblError" Width="83px"--%>
                                        <%-- <end> Added by Saili D/Akanksha P on 08-07-2020--%>

                                        <td>
                                            <div class="RowsPerPageDiv">
                                                <table>
                                                    <tr>
                                                        <%--Added on 17-08-2020--%>
                                                        <td id="tdlblView" runat="server">
                                                            <asp:Label ID="lblView" runat="server" Text="View" Visible="True"></asp:Label>
                                                        </td>
                                                        <td id="tdBtnTabLink" style="min-width: 150px; border: none;" runat="server">
                                                            <asp:Button runat="server" ID="BtnTabView" Text="" class="TabView" Visible="false" />

                                                            <asp:Button runat="server" ID="BtnLnkView" Text="" class="LinkView" Visible="false" />
                                                        </td>
                                                        <%--Added on 17-08-2020--%>
                                                        <td>
                                                            <asp:Label ID="Label3" runat="server" Text="Rows Per Page " CssClass="lbl lblRowsPerPage" Width="87px"></asp:Label>
                                                        </td>
                                                        <%--changed by Prachi Patil--%>
                                                        <td style="width: 45px;">
                                                            <%--Modified by Akanksha P/Saili D as asked by Nikhil Sir on 22 June 2020 || Modified by Akanksha P/Saili D as asked by Nikhil Sir on 22 June 2020 || For showing 999 records by default--%>
                                                            <asp:TextBox runat="server" ID="TxRowsPerPage" onkeypress='return event.charCode >= 48 && event.charCode <= 57;' Width="26" Text="999" onkeyup="checkEnter(event);" onkeydown="checkTab(event);" CssClass="txt txtrowsperpage"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                </table>


                                                <asp:Button runat="server" Text="Button" ID="btnSetPageSize" Style="display: none;" CssClass="btn"></asp:Button>
                                            </div>
                                        </td>

                                        <td>
                                            <%--changed by Prachi Patil--%>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblTotalRecords" runat="server" Text="Total record(s) :  " CssClass="lbl" Width="97px"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblNumberOfRecords" runat="server" Text="0" CssClass="lbl" Width="200px"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>



                                        <%-- <td>--%>

                                        <asp:Button ID="Button1" runat="server" Text="Button" CssClass="btn Hiddenbtn" />
                                        <input id="Hidden1" type="hidden" runat="server" />
                                        <%--</td>--%>
                                        <%--<td>
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0" style="float: left">
                                        <ProgressTemplate>
                                            <div class="divLoading">
                                                <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...</span>
                                            </div>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>--%>
                                        <%-- <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="btnExcelUP" DisplayAfter="0">
                                        <ProgressTemplate>
                                            <div class="divLoading">
                                                <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...</span>
                                            </div>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>--%>
                                        <%--</td>--%>
                                    </tr>


                                    <%-- <tr>
                                <td>
                                    <asp:Label runat="server" CssClass="lbl" ID="Label4" Text="Customer/Counterparty "></asp:Label>
                                </td>

                                <td>
                                    <asp:DropDownList runat="server" CssClass="ddl ddlSort" ID="ddlDealFacing" OnSelectedIndexChanged="ddlDealFacing_SelectedIndexChanged" AutoPostBack="true">
                                        <asp:ListItem Text="ALL" Value="ALL" Selected></asp:ListItem>
                                        <asp:ListItem Text="Customer" Value="Customer"></asp:ListItem>
                                        <asp:ListItem Text="Counterparty" Value="Counterparty"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>--%>
                                </table>

                                <%--  <br />--%>   <%--ak--%>

                                <table id="tbPartnerMPG" runat="server" style="margin-bottom: 5px;">
                                    <tr>
                                        <td>
                                            <asp:Panel ID="pnlPartnerMPG" runat="server">
                                               
                                                <asp:DataList runat="server" ID="dTLSTCardUI1" CellPadding="5" CellSpacing="5" CssClass="pnlCard" RepeatColumns="5"
                                                    RepeatDirection="Horizontal" RepeatLayout="flow">
                                                    <ItemTemplate>
                                                        <li class="CardUI" >

                                                            <div class="CardUIFront" onclick="LoadPosterMPG(event)" >
                                                                <span id="CardLabel" class="CardLabel" ><%# Eval("MPG_Name")%></span>
                                                                <div class="CardValue"><%# Eval("Row_Count")%></div>

                                                            </div>
                                                        </li>
                                                    </ItemTemplate>
                                                </asp:DataList>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>



                                <%-- <br />--%> <%--ak--%>

                                <div runat="server" id="ButtonViewSection" style="margin-bottom:  10px;">
                                </div>
                                <%--<br />--%>

                                <asp:UpdatePanel ID="updatePnlPlaceHolder" runat="server">
                                    <ContentTemplate>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:GridView ID="gvMPG" runat="server"
                                                        AutoGenerateColumns="False" CssClass="Grid" BorderStyle="None" BorderWidth="0px"
                                                        ShowFooter="False" PageSize="15" AllowPaging="true" AllowSorting="true" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found">
                                                        <EditRowStyle CssClass="GridItemSelect" />
                                                        <RowStyle CssClass="GridItem" />
                                                        <%-- 1-Dec-2021 | Added by Jyoti K for UBPINT-1712--%>
                                                        <alternatingrowstyle  CssClass="AlternateRowStyle"/>
                                                        <%-- <PagerSettings Mode="NumericFirstLast"
                                        FirstPageText="First"
                                        LastPageText="Last"
                                        Position="Bottom" PageButtonCount="3" />--%>
                                                        <HeaderStyle CssClass="GridHeader" />
                                                        <FooterStyle CssClass="GridFooter" />
                                                        <%--<PagerStyle CssClass="GridPager" />--%>
                                                        <Columns>
                                                        </Columns>
                                                    </asp:GridView>
                                                    <br />
                                                    <input id="hdnpageIndex" type="hidden" value="1" runat="server" />
                                                    <input id="hdnPageView" type="hidden" value="ButtonView" runat="server" enableviewstate="true" />

                                                    <asp:HiddenField ID="hdnInitialTabLoad" runat="server" Value="1" EnableViewState="true" />
                                                    <asp:HiddenField ID="hdnTabFlag" runat="server" Value="0" EnableViewState="true" />
                                                     <asp:HiddenField ID="hdnSessionID" runat="server" Value="0" EnableViewState="true" />
                                                      <asp:HiddenField ID="hdnpageName" runat="server" />
                                                </td>
                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:GridView ID="Queues" CssClass="Queues" runat="server" BorderStyle="None" BorderWidth="0px" ShowHeaderWhenEmpty="true" AllowSorting="true" EnableViewState="true"
                                                                    AutoGenerateColumns="false">
                                                                    <%-- HeaderStyle-Height="35px"--%>
                                                                    <RowStyle CssClass="GridItem1" BorderStyle="None" />
                                                                    <%--<SelectedRowStyle BackColor="#f7f7f7"></SelectedRowStyle>--%>
                                                                    <%-- <SelectedRowStyle BackColor="#f7f7f7" />--%>
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="GridHeader" HeaderStyle-ForeColor="White">

                                                                            <ItemTemplate>
                                                                                <asp:Panel ID="pnlImages" runat="server"></asp:Panel>
                                                                                <%--  <asp:Image ID="Image1"  runat="server" Height="24" Width="24" />--%>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="Buttons " HeaderStyle-CssClass="GridHeader" HeaderStyle-ForeColor="White">
                                                                            <HeaderStyle Height="38PX" />
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="Queue_Name" runat="server"
                                                                                    Text='<%# DataBinder.Eval(Container, "DataItem.Button_Caption")%>'
                                                                                    CommandArgument='<%# Bind("Zoom_Button_Id") %>' CommandName="Select"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <ItemStyle CssClass="GridItems" VerticalAlign="Middle" HorizontalAlign="Left" />
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="Button ID" Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="QueueID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Zoom_Button_Id")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </td>
                                                        </tr>

                                                    </table>


                                                </td>
                                                
                                                
                                            </tr>

                                            <tr>
                                                <td>
                                                     <%--Added by Saili D/ Akanksha P on 26 November 2020 || For aggregation functionality--%>
                               
                                <table>
                                    <tr>
                                        <td>

                                            <asp:GridView ID="Aggr_gvmpg" runat="server"
                                                AutoGenerateColumns="False" CssClass="Grid" BorderStyle="None" BorderWidth="0px"
                                                ShowFooter="False" PageSize="15" AllowPaging="true" AllowSorting="true" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found" ShowHeader="false">
                                                <EditRowStyle CssClass="GridItemSelect" />
                                                <RowStyle CssClass="GridItem" />
                                                <%-- <PagerSettings Mode="NumericFirstLast"
                                        FirstPageText="First"
                                        LastPageText="Last"
                                        Position="Bottom" PageButtonCount="3" />--%>
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <%--<PagerStyle CssClass="GridPager" />--%>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>

                                        </td>

                                    </tr>
                                </table>


                                                </td>
                                            </tr>
                                            <%-- 31-Aug-2021 | Changes made by Rajeshree K for MASCLI-1326--%>                                            
                                            <tr class="GridPager">
                                                <td>
                                                    <asp:Repeater ID="rptPager" runat="server">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>' Enabled='<%# Eval("Enabled") %>' OnClick="gvMPG_PageIndexChanging"  CssClass="rptPageNumbers"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Chart ID="Chart4" runat="server" Width="1000px" Height="500px" BackGradientStyle="None" ImageStorageMode="UseHttpHandler"
                                                        EnableViewState="true" Style="margin-left: -20px;" Visible="false">
                                                    </asp:Chart>

                                                    <%--<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>--%>
                                                    <asp:Panel ID="pnlChart1" runat="server" Visible="false"></asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>

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

                </asp:Panel>
            </div>


            <%--<start>added by Saili D/Akanksha P on 08-07-2020--%>
            <asp:Panel ID="pnlSetting" runat="server" Visible="false" CssClass="pnlSetting">
                <table style="width: 100%">
                    <tr>
                        <td>
                            <asp:Label ID="lblhead" runat="server" Visible="false"></asp:Label>
                        </td>
                    </tr>

                    <tr>
                        <td colspan="4">
                            <asp:Label ID="lblSettHeader" runat="server" Style="font-size: 14PX; font-weight: 600;" Text="Personalised MPG Settings - "></asp:Label>
                            <asp:Label ID="lblsettuser" runat="server" CssClass="lbl" Style="font-size: 14PX; font-weight: 600;" Text=""></asp:Label> <%--modified by Jyoti K on 12 Jan 2022 for dark theme--%>
                            <asp:ImageButton ID="btnCloseSetting" runat="server" AlternateText="No Image available" Height="30px" ImageAlign="Right" ImageUrl="../App_Resources/close.png" Visible="FALSE" Width="30px" />
                        </td>
                    </tr>


                    <tr style="height: 20px">

                        <td style="padding-top: 10px">

                            <asp:Label ID="lblMsgSetting" runat="server"  Text=""></asp:Label> <%--modified by Jyoti K on 12 Jan 2022 for JIRA: HSBCELINT-410--%>

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



                <table>
                    <tr class="distanceBetweenTwoTR_PWS_Pannel">
                        <td style="padding-top: 10px">
                            <asp:Label ID="lblLaunchingMPG" runat="server" Text="Launching MPG" Width="95px"></asp:Label>
                        </td>
                        <td style="padding-top: 10px">
                            <asp:DropDownList ID="ddlSettingMPG" runat="server" AutoPostBack="false" CssClass="ddl SettingMPGddl">
                            </asp:DropDownList>
                        </td>
                    </tr>

                    <tr class="distanceBetweenTwoTR_PWS_Pannel">
                        <td>
                            <asp:Label ID="lblSettingPgsize" runat="server" Text="Rows per page"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSettpgSize" runat="server" MaxLength="6" Style="text-align: center;" Width="50px" onkeypress="return isNumberKey(event)"></asp:TextBox>
                        </td>
                    </tr>
                    <table style="display: none">
                        <tr class="distanceBetweenTwoTR_PWS_Pannel" style="display: none">

                            <td class="lblBlotterPaddingRight" style="display: none">
                                <asp:CheckBox ID="chkWSSDate" runat="server" AutoPostBack="false" Checked="false" Visible="false" />
                                <asp:Label ID="lblSetFrom" runat="server" CssClass="lbl" Text="From" Visible="false"></asp:Label>
                            </td>
                            <td class="ctlBlotterPaddingRight" style="padding: 5px;">

                                <uc1:DateControl ID="txtFromSetting" runat="server" CalenderCss="btn1" TextBoxCss="txt" Visible="false" />
                            </td>

                            <td class="lblBlotterPaddingRight" style="display: none">


                                <asp:Label ID="lblTodateSett" runat="server" CssClass="lbl" Text="To" Visible="false"></asp:Label>
                            </td>

                            <td class="ctlBlotterPaddingRight">
                                <uc1:DateControl ID="txtToSetting" runat="server" CalenderCss="btn1" TextBoxCss="txt" Visible="false" />


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



                    <table>
                        <tr>
                            <td style="padding-left: 150px; padding-top: 25px;">
                                <asp:Button ID="btnSettingSave" runat="server" CssClass="btn button" Text="Save" Width="60px" />
                            </td>
                            <td style="padding-left: 15px; padding-top: 25px;">
                                <asp:Button ID="btnSettingClose" runat="server" CssClass="btn button" Text="Close" Width="60px" />
                            </td>
                        </tr>
                    </table>

                </table>


            </asp:Panel>
            <%--<end>added by Saili D/Akanksha P on 08-07-2020--%>



            <%--<asp:HiddenField ID="HdnEntityID" runat="server" Value="" />
           <asp:HiddenField ID="HdnUserID" runat="server" Value="" />--%>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExcel" />
            <asp:PostBackTrigger ControlID="btnExcelCurrent" />
        </Triggers>
    </asp:UpdatePanel>


    <script type="text/javascript">

        $(document).ready(function () {
            //<Start>Added by Saili D on 7/6/2020 || Filter tab opening issue on page load
            //if (typeof PageLoad_RMW == 'function') {
            //    PageLoad_RMW();
            //}
            //<End>Added by Saili d on 7/6/2020 || Filter tab opening issue on page load

            ShowHideMasterFilter();
           // SetSorting_Filter1();      //Added by Saili D || For Sorting filters || As asked by Nikhil P
            //checkFiltersnames();        //Added by Saili D || For setting default value of filters || As asked by Nikhil P

        });

        //Added New Function By: Tejas V. Bodas on 03/09/2017 to call lost focus event
        function do_lost_focus(ctrl) {
            //alert(ctrl);
           
            var control = document.getElementById(ctrl);
            //control.blur(function () {
            //    $('#btnLoad').focus();
            //    $('#btnLoad').click();
            //});
            //control.onfocusout = $('#btnLoad').click();
            document.getElementById(ctrl).addEventListener('blur', function () {
                //alert("Input Focused Out");
                document.getElementById('btnLoad').addEventListener('click', function () {
                    //alert("Button Clicked");
                });
            });
        }
        //End || Added New Function By: Tejas V. Bodas
        function OpenChildView(str, blotterCode, SessionVarID, LevelSpec, ViewMode, Width, Height) {
            try {
                //var strW, strH;
                //debugger;
                //if (Width != "")
                //    strW = Width;
                //else
                //    strW = "1920";

                //if (Height != "")
                //    strH = Height;
                //else
                //    strH = "800";
                //window.open('MPG_Master.aspx?WhereClause=' + str + '&blotterCode=' + blotterCode + '&SessionVarID=' + SessionVarID + '&LevelSpec=' + LevelSpec + '&Master_Popup=POPUP', 'OpenPopup' + SessionVarID, 'scrollbars=yes,resizable=yes,menubar=0,status=0,fullscreen=yes,toolbar=0,location=0,modal=yes,alwaysRaised=yes');
                //  debugger;
                window.open('MPG_Master.aspx?WhereClause=' + str + '&blotterCode=' + blotterCode + '&SessionVarID=' + SessionVarID + '&LevelSpec=' + LevelSpec + '&Master_Popup=POPUP' + '&ViewMode=' + ViewMode, 'OpenPopup' + SessionVarID, 'scrollbars=yes,resizable=yes,menubar=0,status=0,height=' + (0.91 * screen.availHeight).toString() + ',width=' + (0.99 * screen.availWidth).toString() + ',toolbar=0,location=0,modal=yes,alwaysRaised=yes,left=0,top=0');
                //width=' + screen.width.toString() + ',height=' + (screen.height - 0.075 * screen.availHeight).toString() + ',
                //width=' + strW + ',height=' + strH + ',
            }
            catch (ex) {
                throw ex
            }
        }

        function OpenChildView1(ChildQuerystr1, strSessionVarID1) {
            try {

                window.open(ChildQuerystr1, 'OpenPopup' + strSessionVarID1, 'scrollbars=yes,resizable=yes,menubar=yes,status=0,height=' + (0.91 * screen.availHeight).toString() + ',width=' + (0.99 * screen.availWidth).toString() + ',toolbar=yes,location=0,modal=yes,alwaysRaised=yes,left=0,top=0')

                //window.open('" & ChildQuerystr & "', 'OpenPopup" & strSessionVarID.ToString() & "', 'scrollbars=yes,resizable=yes,menubar=yes,status=0,height=" + (0.91 * System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Height).ToString() + ",width=" + System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Width.ToString() + ",toolbar=yes,location=0,modal=yes,alwaysRaised=yes,left=0,right=0')
            }
            catch (ex) {
                throw ex
            }
        }

        function OpenChildView2(RowIndex1, strSessionVarID1) {
            try {

                window.open('MPG_Summary.aspx?RowData=' + RowIndex1 + '&SessionVarID=' + strSessionVarID1 + '&Master_Popup=POPUP', 'OpenPopup', 'scrollbars=yes,resizable=yes,menubar=0,status=0,height=' + (0.91 * screen.availHeight).toString() + ',width=' + (0.99 * screen.availWidth).toString() + ',toolbar=0,location=0,modal=yes,alwaysRaised=yes,left=0,top=0')

                //window.open('MPG_Summary.aspx?RowData=" & RowIndex & "&SessionVarID=" & strSessionVarID & "&Master_Popup=POPUP', 'OpenPopup', 'scrollbars=yes,resizable=yes,menubar=0,status=0,height=" + (0.91 * System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Height).ToString() + ",width=" + System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Width.ToString() + ",toolbar=yes,location=0,modal=yes,alwaysRaised=yes,left=0,right=0')

            }
            catch (ex) {
                throw ex
            }
        }

        function closePopupWin() {
            self.close();
        }

        function myFunction(str) {
            document.getElementById('<%= Hidden1.ClientID%>').value = str;
            // document.getElementById('<%= Button1.ClientID %>').click();

        }


        function checkTab(e) {
            var code = e.keyCode || e.which;
            if (code == '9') {
                document.getElementById('<%=btnSetPageSize.ClientID%>').click();
            }
        };

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

        }

        function LoadPosterMPG(event) {
            var mpgname;
            mpgname = document.getElementById("CardLabel").innerText;

            $("#<%=ddlBlotterCode.ClientID%> option").each(function () {
                if ($(this).text() == event.currentTarget.childNodes[1].innerText) {
                    $(this).attr('selected', 'selected');
                }
            });

            $('#<%=ddlBlotterCode.ClientID%>').change(function () { });
            
            document.getElementById('<%=btnLoad.ClientID%>').click();
            
        }


        $(document).on("click", function () {
            $("#ctl00_MainContent_pnlSetting").find(".finiq_Cal").each(function () {
                $(this).prop('style').removeProperty('left');
                $(this).prop('style').removeProperty('top');
            });
        });

        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
            $(document).ready(function () {
                $('[id$="ctl00_MainContent_pnlSetting"], .groupBoxGrids').draggable();
            });
        })


    </script>
</asp:Content>
