<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master"
    AutoEventWireup="true" CodeFile="PendingTransaction.aspx.cs" Inherits="PendingTransaction" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="script/ddlevelsmenu.js" type="text/javascript"></script>

    <script src="script/func.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function showDiv() {
            document.getElementById("view").style.display = 'block';
            document.getElementById("fill").style.display = 'block';
        }
    </script>

    <style type="text/css">
        .HeaderFreeze
        {
            height: 40px;
            top: 80px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="contentmain">
        <div id="content">
            <div id="detailform">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr>
                        <td>
                            <div id="view" style="display: block;">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="24%">
                                        </td>
                                        <td width="10%">
                                            Select Vendor
                                        </td>
                                        <td width="1%">
                                            <strong>:</strong>
                                        </td>
                                        <td width="19%">
                                            <asp:DropDownList ID="ddlVendor" runat="server">
                                                <asp:ListItem>Select</asp:ListItem>
                                                <asp:ListItem>eGenApi</asp:ListItem>                                            
                                                <%--<asp:ListItem>All Pending</asp:ListItem>--%>
                                            </asp:DropDownList>
                                        </td>
                                        <td width="15%">
                                            <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="button active" onclick="btnSubmit_Click" />
                                        </td>
                                        <td width="28%">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="7">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10">
                            <div id="fill" runat="server">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td colspan="11" style="text-align: right; padding: 0 15px 10px 0;">
                                            <asp:Button ID="btnsucess" runat="server" Text="Success" 
                                                CssClass="button active" onclick="btnsucess_Click" />
                                            &nbsp;&nbsp;&nbsp;<asp:Button ID="btnRefund" runat="server" Text="Refund" 
                                                CssClass="button active" onclick="btnRefund_Click" />&nbsp;&nbsp;&nbsp;<asp:Button 
                                                ID="btnGetStatus" runat="server" Text="Get Status" CssClass="button active" Visible="false" 
                                                onclick="btnGetStatus_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderColor="#CCCCCC"
                                                BackColor="White" Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                Font-Strikeout="False" Font-Underline="False" Width="1330px"
                                                BorderStyle="None" BorderWidth="1px" CellPadding="3" ShowHeader="true" CssClass="HeaderFreeze"
                                                AllowPaging="true" PageSize="100" ShowFooter="true" 
                                                DataKeyNames="SERVICE_NAME,RefNumber,REQUEST_AMOUNT,LOWERLEVEL" 
                                                OnPageIndexChanging="GridView1_PageIndexChanging" 
                                                onselectedindexchanged="GridView1_SelectedIndexChanged">
                                                <PagerSettings Mode="NextPreviousFirstLast" NextPageText="Next" PreviousPageText="Previous" />
                                                <RowStyle HorizontalAlign="Center" ForeColor="#000066" />
                                                <Columns>
                                                    <asp:TemplateField HeaderText="S.NO">
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkbox" runat="server" />
                                                            <%#Container.DisplayIndex+1%>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="TRANSACTION_DATETIME" HeaderText="Request Date & Time" />
                                                    <asp:BoundField DataField="USERNAME" HeaderText="User ID" />
                                                    <asp:BoundField DataField="SERVICE_NAME" HeaderText="Service" />
                                                    <asp:BoundField DataField="OperatorName" HeaderText="Operator" />
                                                    <asp:BoundField DataField="ConnectionNo" HeaderText="Mob/Conn. No." />
                                                    <asp:BoundField DataField="REFERENCE_NUMBER" HeaderText="Txn. Id" />
                                                    <asp:BoundField DataField="Cptransactionid" HeaderText="Vendor TxnId" />
                                                    <asp:BoundField DataField="REQUEST_AMOUNT" HeaderText="Amount" />
                                                    <asp:BoundField DataField="STATUS" HeaderText="Status" />
                                                    <asp:BoundField DataField="ServiceVendor" HeaderText="Vendor" />
                                                    <asp:BoundField DataField="PortalName" HeaderText="Portal" />
                                                </Columns>
                                                <FooterStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" VerticalAlign="Middle" />
                                                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                                                <HeaderStyle BackColor="#DBE4E8" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
                                                <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                <AlternatingRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
