<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="CustomerGroup_Creation.aspx.vb" Inherits="FinIQWebApp.CustomerGroup_Creation"
    Title="Counterparty Group Creation" %>
<%--'Replaced Customer with Counterparty and RM with Sales by Apurva K in all labels and messages || 26 May 2022|| Assigned by DJ--%>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Import Namespace="Microsoft.Security.Application" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <link href="App_Themes/Style1.css" rel="stylesheet" type="text/css" />
    <script src="AjaxServer_FINIQ_frmGroup_Definition.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CheckOne(obj) {
            var grid = obj.parentNode.parentNode.parentNode;
            var inputs = grid.getElementsByTagName("input");
            for (var i = 0; i < inputs.length; i++) {
                if (inputs[i].type == "checkbox") {
                    if (obj.checked && inputs[i] != obj && inputs[i].checked) {
                        inputs[i].checked = false;
                    }
                }
            }
        }

        function EnterKeyOnCustGroup(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

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

        function chkValidation(obj) {

            var ddl = document.getElementById("<%=drpGroup.ClientID%>");
            if (ddl.length <= 0) {
                alert('Please select counterparty group name.')
                return false;
            }
            else
                return confirmationDialog(this, 'Confirmation', '\n Are you sure, you want to delete counterparty group?');
        }
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : evt.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
       <%-- function EnterKeyEvent(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

            if (code == 13 || code == 9) {
                document.getElementById('<%=btnPageCnt.ClientID%>').click();
            }
        }--%>
        function pressTabPageIndex(val, e)       //[FNQG3INT-118] ||KAvyaD Dec2020
        {
            if (event.keyCode === 13) {
                $("#<%= btnExport.ClientID %>").focus();
             }
             else if (!(event.keyCode >= 48 && event.keyCode <= 57))
                 return '30';
             return val;
         }
    </script>
    <script type="text/javascript">
        String.Format = function () {
            var s = arguments[0];
            for (var i = 0; i < arguments.length - 1; i++) {
                var reg = new RegExp("\\{" + i + "\\}", "gm");
                s = s.replace(reg, arguments[i + 1]);
            }
            return s;
        }
        var dialogConfirmed = false;
        function ViewDialogDuplicate(obj, title, dialogText) {
            if ($("#pageName").html() != null) {
                // title = "View - " + $("#pageName").html();
            }
            // alert("hi " + title + "" + obj);

            if (!dialogConfirmed) {
                //   $('html').append(String.Format("<div id='dialog' title='{0}'><p style='float:left;'><span class='ui-icon ui-icon-alert' style='float:left; margin:0 5px 20px 0;'></span>{1}</p></div>", title, dialogText));
                $('html').append(String.Format("<div id='dialog' title='{0}'><div class='infoConfirmationBox' style='float:left; height:22px !important; width:22px !important; margin: 13px 15px 20px 10px;'></div><p> " + dialogText + " </p></div>", title));

                $('#dialog').dialog
                    ({
                        height: 180,
                        width: 350,
                        modal: true,
                        resizable: false,
                        draggable: true,
                        close: function (event, ui) { $('html').find('#dialog').remove(); },
                        buttons:
                        {
                            'Yes': function () {
                                $("#ctl00_MainContent_btnConfirmation").click();
                                $(this).dialog('close');

                            },
                            'No': function () {
                                $(this).dialog('close');
                                $('html').find("#dialog").remove();
                                return false;
                            }
                        }
                    });
            }

            return dialogConfirmed;

            $(".ui-widget-overlay").height($("body").height());

        }
    </script>
    <style>
        .ButtonEnableDisable:disabled
        {
            /*color: #8ca2bb !important;*/
            color: #c9c5c0 !important;
        }

        .ButtonEnableDisable:enabled
        {
            color: #ffffff !important;
        }
        
        input[type="submit"]:focus, .btn:focus, input[type="checkbox"]:focus {   /*FNQG3INT-118	|| KavyaD || 10Dec2020*/

            border: solid 1px #CCCCCC !important;
            color: #000000 !important;
            background-color: #fffdfd !important;
            box-shadow: 0px 0px 5px 2px #ddd !important;
        }
       
    </style>

    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>

            <table>
                <tr>
                    <td>
                        <asp:Label ID="lblError" runat="server" CssClass="lblerror"></asp:Label>
                        <asp:Label ID="lblWarning" runat="server" CssClass="lblinfo"></asp:Label>
                        <%--  Added by Varun Patyal on 22/06/2020 for ANZDCIUPIN-85 --%>
                        <asp:Label ID="lblInfo"  runat="server" CssClass="lblsuccess"></asp:Label>
                </tr>
                <tr>
                    <td>
                          <table>
                            <tr>
                                <td>
                                    <div>
                                        <tr>
                                            <td>
                                                <div style="border: solid 1px #dddddd; width: 1852px; padding: 0.3%;">
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <div style="display: flex;">
                                                                    <div class="col" style="width: 385px; vertical-align: top;">
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblEntity" Text="<%$ Resources:LocalizedText, Entity %>" CssClass="lbl" runat="server" Style="margin-left: 11px;"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="lstEntityName" runat="server" AutoPostBack="True" TabIndex="1" CssClass="ddl" Width="185px"></asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="lblBlotterPaddingRight"><span style="color: #FF0000">*</span>
                                                                                    <asp:Label ID="Label3" runat="server" Text="Counterparty Group Name" CssClass="lbl"></asp:Label></td>
                                                                                <td class="ctlBlotterPaddingRight">
                                                                                    <asp:DropDownList ID="drpGroup" runat="server" AutoPostBack="true" TabIndex="2"
                                                                                        CssClass="ddl" Width="185px">
                                                                                    </asp:DropDownList>
                                                                                    <asp:TextBox ID="txtGroupName" runat="server" CssClass="txt" MaxLength="49" Width="185px"></asp:TextBox>
                                                                                    <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers, LowercaseLetters, UppercaseLetters,Custom" ValidChars=" " TargetControlID="txtGroupName" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <%--Added by ApurvaK on 30 May 2022|| Changed Cust to Counterparty|| Asked by DJ--%>
                                                                                    <asp:Label ID="Label1" runat="server" Text="Misc2/Counterparty Class" Style="margin-left: 11px;" CssClass="lbl"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtMisc2" runat="server" CssClass="txt" MaxLength="49" Width="185px" TabIndex="3"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="Label2" runat="server" Text="Counterparty Group Code" Style="margin-left: 11px;" CssClass="lbl"></asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txt_grp_code" runat="server" CssClass="txt" MaxLength="49" Width="185px" TabIndex="4"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <div class="col" style="width: 205px; vertical-align: top;">
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:CheckBox ID="chkShared" runat="server" TabIndex="5" Text="Shared / Mass Market" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="ctlBlotterPaddingRight">
                                                                                    <asp:CheckBox ID="chkAllCustomerGroups" runat="server" AutoPostBack="True" style="margin-right: 8px;margin-bottom: 8px;" Text="All Group" />
                                                                                    <asp:Button ID="btnFind" runat="server" style="margin: 16px 8px 12px 0;" CssClass="btn" Text="Find" Width="67px" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:CheckBox ID="chkCollateralCalculationYN" style="margin-right: 8px;margin-bottom: 8px;" runat="server" Text="Collateral Calculation Y/N" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td></td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <div class="col" style="width: 245px;">
                                                                        <table>
                                                                            <tr>                                                                                
                                                                                <td>
                                                                                    <input class="btn" id="btnNew" tabindex="6" runat="server" style="margin-right: 8px;margin-bottom: 8px;width: 95px;"
                                                                                        type="button" value="Add" />
                                                                                </td>
                                                                                <td class="ctlBlotterPaddingRight">
                                                                                    <input class="btn" id="btnSave" type="button" style="margin-right: 8px;margin-bottom: 8px;width: 95px;" value="Save" runat="server" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <input class="btn" id="btnUpdate" tabindex="7" runat="server" style="margin-right: 8px;margin-bottom: 8px;width: 95px;" type="button" value="Edit" />
                                                                                </td>
                                                                                <td>
                                                                                    <input class="btn" id="btnCancel" type="button" tabindex="8" style="width: 95px;margin-right: 8px;margin-bottom: 8px;" value="Cancel" runat="server" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btnDelete" CssClass="btn" runat="server" TabIndex="9" Style="margin-right: 8px;margin-bottom: 8px;width: 95px;" Text="Delete"></asp:Button>
                                                                                    <%--OnClientClick="return chkValidation(); "--%>
                                                                                </td>
                                                                                <td>
                                                                                     <asp:ImageButton ID="btnExport" runat="server" ImageUrl="../App_Resources/Export2Excel.png" />
                                                                                  <%--  <input class="btn" id="btnExport" type="button" tabindex="10" style="margin-right: 8px;margin-bottom: 8px;width: 95px;" value="Export To Excel" runat="server" />--%>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td></td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <div class="col" style="align-self: center;">
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="Label4" runat="server" CssClass="lbl">Total Record(s) :</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label ID="lblRecord" runat="server" Text="" Style="text-align: right !important"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="lblBlotterPaddingRight">
                                                                                    <asp:Label ID="Label5" runat="server" CssClass="lbl">Record(s) Per Page</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtRowsPerPage" runat="server" TabIndex="11" MaxLength="2" Style="width: 30px; text-align: center;" CssClass="txt" oncopy="return false" OnTextChanged="txtRowsPerPage_TextChanged" onpaste="return false" oncut="return false" Width="35px" onkeyup="this.value = pressTabPageIndex(this.value,this)"></asp:TextBox>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Button ID="btnPageCnt" runat="server" Text="" OnClick="txtRowsPerPage_TextChanged" Style="display: none;" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td></td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <div>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Panel ID="CustGroupPanel" runat="server" class="Filter"
                                                                                        Style="position: absolute; padding: 5px; top: 180px; left: 414px; height: auto; width: auto;">
                                                                                        <table class="tbl">
                                                                                            <tr>
                                                                                                <td class="lbl" style="height: 28px; font-size: 13px;">Counterparty Group List</td>
                                                                                                <td style="float: right;">
                                                                                                    <asp:Button ID="btnClose" runat="server" CssClass="btn" Text="X"
                                                                                                        Width="18" />
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td style="height: 4px;" colspan="2"></td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td colspan="2">
                                                                                                    <table>
                                                                                                        <tr>
                                                                                                            <td class="lbl lblBlotterPaddingRight">Counterparty Group Name</td>
                                                                                                            <td>
                                                                                                                <asp:TextBox ID="txtCustomerGroupName" runat="server"  onkeydown="EnterKeyOnCustGroup(event)" CssClass="txtBox"></asp:TextBox>
                                                                                                            </td>
                                                                                                            <td>
                                                                                                                <asp:Button ID="btnFindCust" runat="server" CssClass="btn" Text="Find" Width="56px" />
                                                                                                            </td>
                                                                                                            <td>
                                                                                                                <asp:Button ID="btnAdd" runat="server" CssClass="btn" Text="Apply" Width="56px" Style="width: 70px;" />
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td style="height: 4px;" colspan="2"></td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td colspan="2">
                                                                                                    <asp:Label ID="lblerr" runat="server" Style="padding: 0px !important;" CssClass="lblinfo_Panel"></asp:Label>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td colspan="2">
                                                                                                    <asp:DataGrid ID="dgCustomerGrid" runat="server" AllowPaging="True"
                                                                                                        AutoGenerateColumns="False" BorderStyle="None" CellPadding="3"
                                                                                                        CssClass="Grid">
                                                                                                        <SelectedItemStyle CssClass="GridItemSelect" />
                                                                                                        <AlternatingItemStyle CssClass="AlternatItemStyle" />
                                                                                                        <ItemStyle CssClass="GridItem" />
                                                                                                        <HeaderStyle CssClass="GridHeader" />
                                                                                                        <FooterStyle CssClass="GridFooter" />
                                                                                                        <Columns>
                                                                                                            <asp:TemplateColumn>
                                                                                                                <%--<HeaderTemplate>
                                                                                                                        <asp:CheckBox ID="chkSelectAllCustomers" runat="server"
                                                                                                                            onclick="SelectAll(this)" Text="All" />
                                                                                                                    </HeaderTemplate>--%>
                                                                                                                <ItemStyle HorizontalAlign="center" />
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:CheckBox ID="chkSelectedCustomer" runat="server" onclick="CheckOne(this)" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateColumn>
                                                                                                            <asp:BoundColumn HeaderText="SR No">
                                                                                                                <HeaderStyle Wrap="True" HorizontalAlign="Center" />
                                                                                                                <ItemStyle HorizontalAlign="Right" Width="10%" Wrap="False" />
                                                                                                            </asp:BoundColumn>
                                                                                                            <asp:BoundColumn DataField="Group_Id" HeaderText="Counterparty Group ID"
                                                                                                                SortExpression="CustomerId">
                                                                                                                <HeaderStyle Wrap="True" />
                                                                                                                <ItemStyle HorizontalAlign="Right" Width="10px" Wrap="True" />
                                                                                                            </asp:BoundColumn>
                                                                                                            <asp:BoundColumn DataField="Group_Name" HeaderText="Counterparty Group Name"
                                                                                                                SortExpression="CustomerName">
                                                                                                                <ItemStyle HorizontalAlign="Left" />
                                                                                                                <HeaderStyle Wrap="False" />
                                                                                                            </asp:BoundColumn>
                                                                                                            <asp:BoundColumn DataField="Cust_Class" HeaderText="Misc2" Visible="false">
                                                                                                                <HeaderStyle Wrap="False" />
                                                                                                                <%--misc2--%>
                                                                                                            </asp:BoundColumn>
                                                                                                            <asp:BoundColumn DataField="Shared_Misc" HeaderText="Misc3" Visible="false"><%--misc3--%>
                                                                                                                <HeaderStyle Wrap="False" />
                                                                                                            </asp:BoundColumn>
                                                
                                                                                                            <asp:BoundColumn DataField="Group_Code" HeaderText="Counterparty Group Code" Visible="false">
                                                                                                                <ItemStyle HorizontalAlign="Left" />
                                                                                                                <HeaderStyle Wrap="False" />
                                                                                                            </asp:BoundColumn>
                                                                                                        </Columns>
                                                                                                        <PagerStyle CssClass="GridPager" Mode="NumericPages" />
                                                                                                    </asp:DataGrid>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </asp:Panel>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <div style="display: none">
                                                                        <table>
                                                                            <tr>
                                                                                <td nowrap="nowrap" class="lbl" text="Home Entity" visible="false"></td>
                                                                                <td>
                                                                                    <asp:Label ID="lblEntityID" CssClass="lbl" runat="server" Visible="false"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </td>
                                        </tr>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>




                                <td>
                                    <input id="hdnButtonClick" type="hidden" style="WIDTH: 80px"
                                        runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td colspan="4">
                                    <div>
                                        <asp:DataGrid ID="dg_data" runat="server" AllowPaging="True"
                                            AutoGenerateColumns="False" BorderStyle="None" CellPadding="3"
                                            Style="margin-left: 11px;" CssClass="Grid">
                                            <SelectedItemStyle CssClass="GridItemSelect" />
                                       <AlternatingItemStyle CssClass="AlternatItemStyle" />
                                            <ItemStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <Columns>
                                                <%--<asp:TemplateColumn>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkSelectAllCustomers" runat="server"
                                            onclick="SelectAll(this)" Text="All" />
                                    </HeaderTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkSelectedCustomer" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateColumn>--%>

                                                <asp:BoundColumn DataField="Group_Id" HeaderText="Counterparty Group ID">
                                                    <ItemStyle HorizontalAlign="right" />
                                                    <HeaderStyle Wrap="True" HorizontalAlign="Center" Width="60px" />

                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="Group_Name" HeaderText="Counterparty Group Name">
                                                    <ItemStyle HorizontalAlign="Left" Width="260px" />
                                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                </asp:BoundColumn>

                                                <asp:BoundColumn DataField="Group_Code" HeaderText="Counterparty Group Code">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                </asp:BoundColumn>

                                                <asp:BoundColumn DataField="Parent_Group" HeaderText="Parent Group" Visible="false">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                </asp:BoundColumn>

                                                  <%--Added by ApurvaK on 30 May 2022|| Changed Cust to Counterparty|| Asked by DJ--%>
                                                <asp:BoundColumn DataField="Cust_Class" HeaderText="Counterparty Class">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                </asp:BoundColumn>

                                                <asp:BoundColumn DataField="Shared_Misc" HeaderText="Shared Misc">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <HeaderStyle Wrap="True" Width="10px" HorizontalAlign="Center" />
                                                </asp:BoundColumn>

                                                 <asp:BoundColumn DataField="Collateral" HeaderText="Collateral Calculation Flag">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <HeaderStyle Wrap="True" Width="10px" HorizontalAlign="Center" />
                                                </asp:BoundColumn>

                                                <%--   <asp:BoundColumn DataField="Created_At" HeaderText="Created_At"
                                    SortExpression="CustomerName">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle Wrap="False" />
                                </asp:BoundColumn>--%>

                                                <asp:TemplateColumn HeaderText="Created At" ItemStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center">
                                                    <%--  <ItemStyle Width="148px" HorizontalAlign="Left"></ItemStyle>--%>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCreatedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Created_At", "{0:dd-MMM-yyyy hh:mm:ss tt}"))%>' Style="width: 140px !important">
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>

                                                <asp:BoundColumn DataField="Created_By" HeaderText="Created By">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                </asp:BoundColumn>

                                                <%--<asp:BoundColumn DataField="Edited_At" HeaderText="Edited_At"
                                    SortExpression="CustomerName">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle Wrap="False" />
                                </asp:BoundColumn>--%>

                                                <asp:TemplateColumn HeaderText="Edited At " ItemStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center">
                                                    <%--   <ItemStyle Width="148px" HorizontalAlign="Left"></ItemStyle>--%>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCreatedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Edited_At", "{0:dd-MMM-yyyy hh:mm:ss tt}"))%>' Style="width: 140px !important">
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>

                                                <asp:BoundColumn DataField="Edited_By" HeaderText="Edited By">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                </asp:BoundColumn>



                                                <%--  <asp:BoundColumn DataField="Misc2" HeaderText="Misc2" Visible="true">
                                    <HeaderStyle Wrap="False" />
                                </asp:BoundColumn>--%>
                                                <%--<asp:BoundColumn DataField="Misc3" HeaderText="Misc3" Visible="true">
                                    <HeaderStyle Wrap="False" />
                                        <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundColumn>--%>
                                            </Columns>
                                            <PagerStyle CssClass="GridPager" Mode="NumericPages" />
                                        </asp:DataGrid>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>


                <tr>
                    <td colspan="3">
                        <input id="hdnMainEntityID" style="WIDTH: 48px" type="hidden" name="Hidden1"
                            runat="server" />
                        <input id="hdnAppUserName" style="WIDTH: 40px" type="hidden" name="Hidden2"
                            runat="server" />
                        <input id="hdnselectedGroupForInsertOrEdit" style="WIDTH: 48px" type="hidden"
                            size="2" name="Hidden1" runat="server" />
                        <input id="btnDel" type="button" value="Button" runat="server" style="WIDTH: 0px" visible="false" />

                        <asp:Button ID="btnConfirmation" runat="server" Width="0" Style="width: 0px; height: 0px; font-size: 0; border: none; display: none;" />
                    </td>
                </tr>
            </table>
            </td>
		</tr>
	</table>
            
              <asp:HiddenField ID="hdnMode" runat="server" /><%--   Added By Prajakta for ANZ 4.7 upgrade--%>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExport" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>

