<%@ Page Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true" CodeFile="VATRejected.aspx.cs" Inherits="VATRejected"  %>
<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>
<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>
                                        VAT Rejected Transactions</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 />
                                        <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">
                                                        Post Date (From)
                                                    </td>
                                                    <td>
                                                         <uc1:DatePicker ID="dtPostDateFrom" runat="server" width=250/>
                                                 </td>
                                                 <td>
                                                 <asp:Button ID="btnGetFiles" runat="server" Text="Get Files" CssClass="Btn_L_Normal" 
                                                            onclick="btnGetFiles_Click" />
                                                 </td>
                                                 <td class="tdNormal">
                                                        Post Date (To)
                                                    </td>
                                                    <td>
                                                         <uc1:DatePicker ID="dtPostDateTo" runat="server" width=250/>
                                                 </td>
                                                </tr>
                                                <tr>
                                                <td class="tdNormal">
                                                        Response File Number
                                                    </td>
                                                    <td class="tdNormal">
                                                        <asp:TextBox ID="txtRespFileNumber" runat="server" class="fieldNormal" Width=250 ></asp:TextBox>
                                                    </td>
                                                    <td class="tdNormal">
                                                        
                                                    </td>
                                                    <td class="tdNormal">
                                                        File Name
                                                    </td>
                                                    <td>
                                                    <asp:DropDownList ID="ddlFiles" runat="server" DataTextField="Resp_Filename" 
                                                            Width=250px DataValueField="Resp_Filenumber" class="fieldNormal">
                                                    </asp:DropDownList>
                                                 </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" style="text-align:center">
                                                        <asp:Button ID="Button1" runat="server" Text="Search" CssClass="Btn_L_Normal" 
                                                            onclick="Button1_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <br />
                                             
                                        <asp:Panel ID="pnlResult" runat="server" Width="100%" Visible="false">
                                            <fieldset id="addItem">
                                             <legend id="addItem">Rejected Transactions</legend>
                                            </fieldset>
                                            <table border="0" width=100% cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal" colspan=5>
                                                        <asp:GridView ID="GridView1" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                                             DataKeyNames="Txn_Code" AllowPaging="False" AllowSorting="True" 
                                                            CellPadding="4" ForeColor="#333333" GridLines="None" 
                                                            onrowcommand="GridView1_RowCommand" EmptyDataText="There are no Results" 
                                                            onrowdatabound="GridView1_RowDataBound" 
                                                            onrowcreated="GridView1_RowCreated" 
                                                            onpageindexchanging="GridView1_PageIndexChanging">
                                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                            <Columns>
                                                                
                                                                <asp:BoundField DataField="Txn_Code" HeaderText="Txn_Code" />
                                                                <asp:BoundField DataField="Merch_Account" HeaderText="Merch Account" />
                                                                <asp:BoundField DataField="GL_Type" HeaderText="Type" />
                                                                <asp:BoundField DataField="Narrative" HeaderText="Narrative" />
                                                                <asp:BoundField DataField="MerchFees" HeaderText="Merch Fees" />
                                                                <asp:BoundField DataField="BankFees" HeaderText="Bank Fees" />
                                                                <asp:BoundField DataField="Vat_Fee" HeaderText="Vat Fees" />
                                                                <asp:BoundField DataField="RespFileDt" HeaderText="Resp File Date" />
                                                                <asp:BoundField DataField="Vat_Inv_Status" HeaderText="Vat Status" />
                                                                <asp:BoundField DataField="RespSubCode" HeaderText="Resp Code" />
                                                                <asp:BoundField DataField="RespSubDesc" HeaderText="Resp Desc" />
                                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="r" Text="Approve" ImageUrl="~/Images/approve.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>
                                            
                                        </asp:Panel> 
                                            
                                            <asp:Panel ID="pnlBR" runat="server" Width="80%" Visible="false">
                                                
                                            </asp:Panel>
                                        <!------------------------------------body End2 ----------------------------------------------->
                                        <br>
                                    </td>
                                </tr>
                            </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                        </td>
                    </tr>
                </table>
               
</asp:Content>

