<%@ Page Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true"
    CodeFile="MerchantsECOM.aspx.cs" Inherits="MerchantsECOM"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td valign="top">
                <!------------------------------------body St  ---------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                    <tr>
                        <td>
                            E-Commerce Merchants SuperVisor Approval
                        </td>
                    </tr>
                </table>
                <br />
                <!------------------------------------body End1 ----------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                    <tr>
                        <td align="center">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal">
                                        Client Number
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtMAppNumber" runat="server" class="fieldNormal" Width="250" MaxLength="20"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Modified
                                    </td>
                                    <td class="tdNormal">
                                        <asp:DropDownList ID="ddlModified" runat="server" Width="250px" class="fieldNormal" AutoPostBack="False">
                                            <asp:ListItem Text="All" Value="100"></asp:ListItem>
                                            <asp:ListItem Text="Modified" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="Not Modified" Value="0"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Merchant status
                                    </td>
                                    <td class="tdNormal">
                                        <asp:DropDownList ID="ddlMerStatus" runat="server" DataTextField="merchant_reg_status_desc"
                                            Width="250px" DataValueField="merchant_reg_status" class="fieldNormal" AutoPostBack="False">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Account Number
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtFltrAccNo" runat="server" class="fieldNormal" Width="250" MaxLength="20"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Retailer Name
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtRetailerName" runat="server" class="fieldNormal" Width="250" MaxLength="100"
                                            ></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Terminal ID
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtTerminalID" MaxLength=8 runat="server" class="fieldNormal" Width="250"></asp:TextBox>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td colspan="5" style="text-align: center">
                                        <asp:Button ID="btnSearchMerchants" runat="server" Text="Search" CssClass="Btn_L_Normal"
                                            OnClientClick="" OnClick="btnSearchMerchants_Click" />
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal" colspan="5">
                                        <asp:GridView ID="GridView1" CssClass="gridMaster" runat="server" AutoGenerateColumns="False"
                                            DataKeyNames="mt_code" AllowPaging="True" AllowSorting="True" CellPadding="4"
                                            ForeColor="#333333" GridLines="None" EmptyDataText="There are no Results" 
                                            OnRowCommand="GridView1_RowCommand" onrowdatabound="GridView1_RowDataBound">
                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                            <Columns>
                                                <asp:BoundField DataField="merchant_no" HeaderText="Merchant No" />
                                                <asp:BoundField DataField="client_number" HeaderText="Client No" />
                                                <asp:BoundField DataField="retailer_name" HeaderText="Retailer Name" />
                                                <asp:BoundField DataField="MERCHANT_TYPE" HeaderText="Business Type" />
                                                <asp:BoundField DataField="acct_number" HeaderText="Account No" />
                                                <asp:BoundField DataField="merchant_reg_status" HeaderText="Status" />
                                                <asp:BoundField DataField="registration_date" HeaderText="Reg Date" />
                                                <%-- <asp:BoundField DataField="Term_Id" HeaderText="Term ID" />--%>
                                                <%--<asp:BoundField DataField="sama_flag" HeaderText="Sama" />
                                                <asp:BoundField DataField="b24_flag" HeaderText="B24" />
                                                <asp:BoundField DataField="vplus_flag" HeaderText="V+" />
                                                <asp:BoundField DataField="support_flag" HeaderText="Support" />
                                                <asp:BoundField DataField="client_level" HeaderText="Level" />--%>
                                                <asp:BoundField DataField="user_id" HeaderText="DE User" />
                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="u" Text="Edit"
                                                    ImageUrl="~/Images/edit.jpg"></asp:ButtonField>
                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="a" Text="Approve"
                                                    ImageUrl="~/Images/approve.jpg"></asp:ButtonField>
                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="d" Text="Decline"
                                                    ImageUrl="~/Images/reject.jpg"></asp:ButtonField>
                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="r" Text="Reset"
                                                    ImageUrl="~/Images/AR/update.jpg"></asp:ButtonField>
                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="v" Text="View Settlement"
                                                        ImageUrl="~/Images/document_view.jpg"></asp:ButtonField>
                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="c" Text="Cancel" 
                                                ImageUrl="~/Images/delete.jpg" ></asp:ButtonField>
                                                <%--<asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="p" Text="Print"
                                                    ImageUrl="~/Images/print.jpg"></asp:ButtonField>--%>
                                                
                                            </Columns>
                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                            <EditRowStyle BackColor="#999999" />
                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal" style="width: 20%">
                                        Go To Page:
                                        <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" AutoPostBack="True"
                                            Width="50px" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                </tr>
                            </table>
                            <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAdd" runat="server" Text="     Add     " class="Btn_M_Normal"
                                            OnClick="btnAdd_Click" />
                                            </td>
                                </tr>
                            </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br />
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
    
    
</asp:Content>
