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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" EnableViewState="true" runat="server"></asp:ScriptManagerProxy>
    <script type="text/javascript" lang="javascript">
        function loadOnDemand() {
            try {

                document.getElementById('<%=BtnCancel.ClientID()%>').click();
            }
            catch (Error) {

            }
        }
        //''Added by TejaswiniB On 15-Feb-2021(UBPINT-220)
        document.onkeyup = function (e) {
            if (e.ctrlKey && e.shiftKey && e.key == "E") {
                document.getElementById('<%= btnExport.ClientID %>').click();
               } else if (e.ctrlKey && e.shiftKey && e.key == "A") {
                   document.getElementById('<%= btnAdd.ClientID %>').click();
            }
        }
        function confirmdelete() {
            if (confirmationDialog(this, 'Confirmation', "\n Are you sure you want to delete this record?")) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>

    <link href="../App_Themes/workflowCSS.css" rel="stylesheet" type="text/css" />

    <style type="text/css">
        .lblgrpWFtypeCss {
            width: 90px;
        }

        .defaultWidthbtn {
            Width: 100px !important;
        }

        .Visible {
            display: block;
        }

        .invisible {
            display: none;
        }

        .cboWFTypeddl {
            width: 210px;
        }

        .tdcboWFTypeddl {
            width: 200px;
        }

        .btnGroupbox {
            width: 70px;
        }

        .DDLYN {
            width: 80px;
        }

        .btnpadding5 {
            padding: 5px 5px 5px 5px;
        }

        .groupBoxGridsButtons, .groupBoxUserAccess, .groupBoxGridsAllowedQ, .groupBoxGridsRightClickAction {
            position: absolute;
            left: 580px;
            top: 250px;
            height: auto;
            border: solid 1px #ccc;
        }

        .groupBoxGridsButtons {
            width: 1000px;
            height: auto;
        }

        .groupBoxUserAccess {
            width: 340px !important;
            /*max-height: 400px !important;*/
        }

        .groupBoxGridsAllowedQ {
            width: 330px;
            max-height: 403px !important;
        }

        .groupBoxGridsRightClickAction {
            width: 350px;
            /*max-height: 403px !important;*/
        }

        .btnDetailsDiv {
            background-color: #FFF;
            height: auto;
        }

        .CloseButton {
            float: right;
        }

        #divButtonDetailsControls, #divUserAccessControls, #divAllowedQControls, #divRightClickActionControls, #divRightClickAction {
            padding: 6px;
        }

        #divButtonDetailsGrid, #divUserAccessGrid, #divAllowedQGrid, #divAllowedQ, #divRightClickActionGrid {
            width: auto;
            height: auto;
            overflow: auto;
            padding: 5px;
            background-color: #f9f9f9;
        }

        #divButtonDetailsGrid {
            max-width: 1000px !important;
            max-height: 450px !important;
            overflow-y: hidden;
        }

        #divUserAccessGrid {
            max-width: 325px !important;
            max-height: 357px !important;
            margin-bottom: 5px;
        }

        #divAllowedQGrid {
            max-width: 325px !important;
            max-height: 400px !important;
            height: 357px;
            overflow-y: hidden;
        }

        #divRightClickActionGrid {
            max-width: 350px !important;
            max-height: 360px !important;
            width: 335px;
        }

        .divLoading {
            position: absolute;
            top: 40px;
            left: 360px;
        }

        .tblGrid {
            margin-top: 6px;
        }
    </style>

    <asp:UpdatePanel ID="UpdatePanelCP" runat="server">
        <ContentTemplate>
            <asp:HiddenField runat="server" ID="rowIndexBtn" Value="" />
            <asp:HiddenField runat="server" ID="rowIndexUsr" Value="" />
            <asp:HiddenField runat="server" ID="rowIndexAllQ" Value="" />
            <asp:HiddenField runat="server" ID="rowIndexRightClick" Value="" />
            <table id="upperTable" runat="server" class="">
                <tr>
                    <td>
                        <table>
                            <%-- <tr>
                                <td colspan="4">
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanelCP"
                                        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>
                                </td>
                            </tr>--%>
                            <tr>
                                <td colspan="4">
                                    <asp:Label ID="lblError" runat="server" Text="" CssClass="lblError"></asp:Label>
                                    <asp:Label ID="lblMsgInfo" runat="server" CssClass="lblInfo"></asp:Label>
                                    <asp:Label ID="lblSuccess" runat="server" CssClass="lblSuccess"></asp:Label>
                                </td>
                            </tr>
                            <tr>

                                <td class="lblgrpWFtypeCss btnpadding5">
                                    <asp:Label ID="lblEntity" runat="server" CssClass="lbl" Text="Entity"></asp:Label>
                                </td>
                                <td class="tdcboWFTypeddl btnpadding5" colspan="2">
                                    <asp:DropDownList ID="ddlEntity" runat="server" CssClass="ddl cboWFTypeddl" AutoPostBack="true"></asp:DropDownList>
                                </td>

                                <td class="btnpadding5">
                                    <asp:Label ID="lblPriceProvider" runat="server" CssClass="lbl" AllowSorting="True" Text="Price Provider"></asp:Label>
                                </td>
                                <td colspan="2">
                                    <asp:DropDownList ID="ddlPriceProvider" runat="server" CssClass="txt cboWFTypeddl" AllowSorting="True" AutoPostBack="true" OnSelectedIndexChanged="PriceSelectedFieldChanged"></asp:DropDownList>
                                </td>
                                <td style="padding-left: 20px;">
                                    <asp:Label ID="lblRecordsperpage" runat="server" Text="Record(s) Per Page" CssClass="lbl"></asp:Label>
                                </td>
                                <td style="padding-left: 10px">
                                    <asp:TextBox ID="txtRowperpage" runat="server" CssClass="txt" AutoPostBack="true" MaxLength="3" oncopy="return false" onpaste="return false" oncut="return false" Width="32px" OnTextChanged="txtRowperpage_TextChanged" onkeypress='return event.charCode >= 48 && event.charCode <= 57'></asp:TextBox>
                                </td>
                            </tr>
                            <tr>

                                <td class="btnpadding5">
                                    <asp:Button ID="btnLoad" runat="server" Text="Load" CssClass="btn defaultWidthbtn" /></td>
                                <td class="btnpadding5">
                                    <asp:Button ID="btnAdd" runat="server" Text="Add New" CssClass="btn defaultWidthbtn" ToolTip="Add New (Ctrl+Shift+a)" /></td>
                                <td class="btnpadding5">
                                    <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn defaultWidthbtn" /></td>

                                <td class="btnpadding5">
                                    <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="btn defaultWidthbtn" OnClientClick="return confirmationDialog(this, 'Confirmation', '\n Are you sure you want to delete this record?');" /></td>
                                <td class="btnpadding5">
                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="btn defaultWidthbtn" />

                                    <%--''Added by TejaswiniB On 15-Feb-2021(UBPINT-220)--%>
                                    <td>
                                        <asp:Button runat="server" ID="btnExport" CssClass="Export2Excel" Width="100" ToolTip="Export Excel (Ctrl+Shift+e)" />
                                    </td>
                                </td>
                                <td style="width: 120px; padding-left: 20px;">
                                    <asp:Label ID="lblRecords" runat="server" Text="Total Record(s) :" CssClass="lbl"></asp:Label></td>
                                <td style="padding-left: 10px">
                                    <asp:Label ID="lblTotalRecords" runat="server" Text="" CssClass="lbl"></asp:Label>
                                </td>


                            </tr>
                        </table>
                        <div style="height: 20px;">
                        </div>
                        <table>
                            <tr>
                                <td>

                                    <table id="lowerTable" runat="server" class="tblGrid">
                                        <tr>
                                            <td>
                                                <asp:GridView ID="dgvPriceProvider" runat="server" AllowSorting="True" AutoGenerateColumns="False" PageSize="15" PagerStyle-Height="32px"
                                                    AllowPaging="true" CssClass="Grid" ShowHeaderWhenEmpty="true" RowHeadersWidthSizeMode="DisableResizing;" SelectedRowStyle-Wrap="true"
                                                    HeaderStyle-CssClass="GridHeaderTitle">
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <SelectedRowStyle CssClass="GridItemSelect" />
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <PagerStyle CssClass="GridPager" />

                                                    <PagerSettings Mode="NumericFirstLast" FirstPageText="First" LastPageText="Last" Position="Bottom" />

                                                    <EmptyDataTemplate>
                                                        <asp:Label ID="lblqueuedatagrid" runat="server" Text="No data found."></asp:Label>
                                                    </EmptyDataTemplate>

                                                    <Columns>

                                                        <asp:TemplateField>
                                                            <HeaderStyle Wrap="true"></HeaderStyle>
                                                            <HeaderTemplate>
                                                                <asp:CheckBox ID="chkAllList" runat="server" OnCheckedChanged="CheckBox_CheckedChanged" AutoPostBack="true" />
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:CheckBox ID="chk" runat="server" OnCheckedChanged="ChkSingle_CheckedChanged" AutoPostBack="true" Style="margin-left: 4px"></asp:CheckBox>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Sr. No." ControlStyle-Width="40" Visible="false">
                                                            <HeaderStyle Width="40" />
                                                            <ItemStyle Wrap="true" Width="40" HorizontalAlign="center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblId" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.EPP_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                            <%--    <EditItemTemplate>
                                                        <asp:TextBox ID="txtId" runat="server" CssClass="txt"></asp:TextBox>
                                                    </EditItemTemplate>--%>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Product Type" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="180px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle" Width="180px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblProduct" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "Product_Name")%>'></asp:Label>

                                                                <asp:DropDownList ID="ddlProduct" runat="server" CssClass="ddl" Width="180px" AutoPostBack="true" OnSelectedIndexChanged="ddlPriceProvider_SelectedIndexChanged" Visible="false">
                                                                </asp:DropDownList>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Book ID" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblbookid" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Book_ID")%>'></asp:Label>

                                                            </ItemTemplate>

                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Entity  ID" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblppid" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Entity_ID")%>'></asp:Label>

                                                            </ItemTemplate>

                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Quote Response Time (sec)" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="100px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblQuoteResTime" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Quote_Response_Time").ToString().TrimStart("0")%>'></asp:Label>
                                                                <asp:TextBox ID="txtQuotesTime" onkeypress="return AllowOnlyNumeric_NEW(event);" onpaste="return false" oncut="return false" oncopy="return false" CssClass="txt" runat="server" Width="110PX" MaxLength="3" BorderStyle="None" AutoPostBack="false" Text='<%# DataBinder.Eval(Container.DataItem,
                                                                      "EPP_Quote_Response_Time")%>'
                                                                    Visible="false" Style="text-align: right" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Trade Quote Time (sec)" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="100px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbltradeQuoteTime" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Trade_Quote_Time").ToString().TrimStart("0")%>'></asp:Label>
                                                                <asp:TextBox ID="txttradeQuoteTime" onkeypress="return AllowOnlyNumeric_NEW(event);" onpaste="return false" oncut="return false" oncopy="return false" CssClass="txt" runat="server" Width="110PX" MaxLength="3" BorderStyle="None" AutoPostBack="false" Text='<%# DataBinder.Eval(Container.DataItem,
                                                                                              "EPP_Trade_Quote_Time")%>'
                                                                    Visible="false" Style="text-align: right" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Order Response Time (sec)" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="100px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblOrderResTime" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Order_Response_Time").ToString().TrimStart("0")%>'></asp:Label>
                                                                <asp:TextBox ID="txtOrderResTime" onkeypress="return AllowOnlyNumeric_NEW(event);" onpaste="return false" oncut="return false" oncopy="return false" CssClass="txt" runat="server" Width="110PX" MaxLength="3" BorderStyle="None" AutoPostBack="false" Text='<%# DataBinder.Eval(Container.DataItem,
                                                                                  "EPP_Order_Response_Time")%>'
                                                                    Visible="false" Style="text-align: right" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="PICOP Flag" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblpicopflag" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_PICOP_Flag")%>'></asp:Label>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Rate Edit Flag" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="80px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" Width="80px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblRateEditFlag" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Deal_Rate_Edit_Flag")%>'></asp:Label>
                                                                <asp:DropDownList ID="ddlRateEditFlag" runat="server" CssClass="ddl DDLYN" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem,
                                                                                  "EPP_Deal_Rate_Edit_Flag")%>'>
                                                                    <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                    <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                    <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                                </asp:DropDownList>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Bulk Auth Flag" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="80px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" Width="80px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblAuthFlag" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_BO_Bulk_Auth_Flag")%>'></asp:Label>
                                                                <asp:DropDownList ID="ddlAuthFlag" runat="server" CssClass="ddl DDLYN" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem,
                                                                                              "EPP_BO_Bulk_Auth_Flag")%>'>
                                                                    <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                    <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                    <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                                </asp:DropDownList>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Remark1" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="remark2" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Remark1")%>'></asp:Label>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Remark2" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblremark2" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Remark2")%>'></asp:Label>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Misc1" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField1" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc1")%>'></asp:Label>
                                                                <asp:TextBox ID="txtMiscField1" onpaste="return false" oncut="return false" oncopy="return false" CssClass="txt" runat="server" Width="110PX" MaxLength="3" BorderStyle="None" AutoPostBack="false" Text='<%# DataBinder.Eval(Container.DataItem,
                                                                                                          "EPP_Misc3")%>'
                                                                    Visible="false" Style="text-align: right" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Misc2" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField2" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc2")%>'></asp:Label>
                                                                <asp:TextBox ID="txtMiscField2" onpaste="return false" oncut="return false" oncopy="return false" CssClass="txt" runat="server" Width="110PX" MaxLength="3" BorderStyle="None" AutoPostBack="false" Text='<%# DataBinder.Eval(Container.DataItem,
                                                                                                          "EPP_Misc3")%>'
                                                                    Visible="false" Style="text-align: right" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>


                                                        <asp:TemplateField HeaderText="Misc3" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField3" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc3")%>'></asp:Label>
                                                                <asp:TextBox ID="txtMiscField3" onpaste="return false" oncut="return false" oncopy="return false" CssClass="txt" runat="server" Width="110PX" MaxLength="3" BorderStyle="None" AutoPostBack="false" Text='<%# DataBinder.Eval(Container.DataItem,
                                                                                                          "EPP_Misc3")%>'
                                                                    Visible="false" Style="text-align: right" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>


                                                        <asp:TemplateField HeaderText="MiscField4" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField4" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc4")%>'></asp:Label>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="MiscField5" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField5" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc5")%>'></asp:Label>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="MiscField6" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField6" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc6")%>'></asp:Label>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="MiscField7" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField7" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc7")%>'></asp:Label>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="MiscField8" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField8" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc8")%>'></asp:Label>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="MiscField9" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField9" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc9")%>'></asp:Label>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="MiscField10" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="110px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle" Width="110px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMiscField10" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Misc10")%>'></asp:Label>

                                                            </ItemTemplate>

                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Created By" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="center" Width="60px" />
                                                            <ItemStyle Wrap="true" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblCreatedBy" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Created_By")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Created At" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true" Width="150px" />
                                                            <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" Width="150px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblCreatedAt" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Created_At")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Updated By" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="center" Wrap="true" Width="60px" />
                                                            <ItemStyle Wrap="True" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblLastModifiedBy" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Updated_By")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Updated At" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderStyle HorizontalAlign="center" Wrap="true" Width="150px" />
                                                            <ItemStyle Wrap="True" HorizontalAlign="center" VerticalAlign="Middle" Width="150px"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblLastModifiedAt" CssClass="lbl" runat="server" Visible="TRUE" Text='<%# DataBinder.Eval(Container.DataItem, "EPP_Updated_At")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

            </table>

        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExport" />
        </Triggers>
    </asp:UpdatePanel>

</asp:Content>
