<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="ManagePinePaymentStatus.aspx.cs" Inherits="Admin_ManagePinePaymentStatus" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ccp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
    function HideContent(d) {
        d = d.replace('messag', 'message');
        if (d.length < 1) { return; }
        document.getElementById(d).style.display = "none";
    }

    function ShowContent(d) {
        d = d.replace('messag', 'message');
        if (d.length < 1) { return; }
        var dd = document.getElementById(d);
        //AssignPosition(dd);
        dd.style.display = "block";
    }
</script>
<style type="text/css">
.message{width:230px; height:220px; border:darkgray 2px solid; position:absolute; display:none; margin:0; padding-top:5px; text-align:center; background-color:White; color:black;font-size::13px}

.tabs{font-size:13px;font-weight:bold;background:rgb(235,235,235); padding:5px 10px 5px 10px;box-shadow:0 0 3px #bbb inset,0 0 3px #333;
border-radius:5px;text-align:center; margin:0 25px 0 25px; border:none;}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <ccp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ccp:ToolkitScriptManager>
  
    <div id="request">
 <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
            <td style="text-align:left; padding-left:20px;">
                 <h5>Manage Pending Payment For Topup</h5> 
            </td>
        </tr>
        <tr>
            <td align="right">
            </td>
        </tr>
        <tr style="text-align:center">
            <td>
                <table width="99%" style="text-align:center;" align="center">
             
                    
                    <tr>
                        <td>From Date<br /><asp:TextBox ID="txtFrom" runat="server" ></asp:TextBox>
                            <ccp:CalendarExtender ID="CalendarExtender1" runat="server" Format="yyyy-MM-dd" TargetControlID="txtFrom" PopupButtonID="cal3"></ccp:CalendarExtender>
                        </td>
                        <td>To Date<br /><asp:TextBox ID="txtTo" runat="server"></asp:TextBox>
                            <ccp:CalendarExtender ID="CalendarExtender2" runat="server" Format="yyyy-MM-dd" TargetControlID="txtTo" PopupButtonID="cal3"></ccp:CalendarExtender>
                        </td>
                        
                    </tr>
           <tr><td colspan="2"><asp:Button ID="btnFind"  runat="server" Text="Search" onclick="btnFind_Click" /></td></tr>
                    <tr><td colspan="2"><asp:Label ID="lblMsg" runat="server"></asp:Label></td></tr>
                     <tr>
                     <td style="text-align:left;"><asp:Button ID="btnReProcess"  runat="server" Text="Re-Process" style="background-color:#ce3431" OnClick="btnReProcess_Click" OnClientClick="return confirm('Are you sure you want re-process these transaction');"/></td>
                     <td style="text-align:right;">
                         
                         <asp:Button ID="btnReject"  runat="server" Text="Reject Txn" style="background-color:#ce3431" Visible="false" OnClick="btnReject_Click" OnClientClick="return confirm('Are you sure you want reject these transaction');"/>

                     </td></tr>
                    <tr>
                        <td align="center" colspan="3">
                         <asp:Timer ID="Timer1" runat="server" Interval="180000" OnTick="Timer1_Tick"></asp:Timer>
                            <asp:UpdatePanel runat="server" id="udpGvPndTxn">
                                <ContentTemplate>
                            <asp:GridView ID="gvPndTxn" runat="server" AutoGenerateColumns="false" 
                                Width="100%" DataKeyNames="TxnId,Amount,LoginId,ConsumerMobileNo,PaymentStatus,PineRefId,RequestFor" ShowHeaderWhenEmpty="true" CellPadding="4" ForeColor="#333333" GridLines="None" RowStyle-Height="20px" >
                                <AlternatingRowStyle BackColor="White" />
                                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#7C6F57" />
                                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#E3EAEB" />
                                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                                <Columns>
                                    <asp:TemplateField HeaderText="S.No." ItemStyle-HorizontalAlign="Center" >
                                        <HeaderTemplate>
                                          
                                        </HeaderTemplate>
                                        <ItemTemplate >
                                            <asp:CheckBox ID="chkbox" runat="server" />
                                            <asp:Label ID="lblOrderId" runat="server" Visible="false" Text='<%#DataBinder.Eval(Container,"DataItem.TxnId") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                <asp:BoundField ReadOnly="True" HeaderText="TxnId"  DataField="TxnId" >
  <ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundField>
                                     <asp:BoundField ReadOnly="True" HeaderText="Agent Id"  DataField="LoginId" >
                              <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField> 
                                <asp:BoundField ReadOnly="True" HeaderText="Txn Amt"  DataField="Amount" >
                              <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                           
                            <asp:BoundField ReadOnly="True" HeaderText="Payment Status"  DataField="PaymentStatus" >
                              <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            
                                     <asp:BoundField ReadOnly="True" HeaderText="Payment Status"  DataField="PaymentStatus" >
                              <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                                    <asp:BoundField ReadOnly="True" HeaderText="Service"  DataField="RequestFor" >
                              <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField ReadOnly="True" HeaderText="Payment Date"  DataField="CreatedOn" >
                              <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                              <asp:BoundField ReadOnly="True" HeaderText="Payment For"  DataField="RequestFor" >
  <ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundField> 
                                </Columns>
                            </asp:GridView>
                                 </ContentTemplate>
<Triggers>
              <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
 
          </Triggers>

                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                        </td>
                        <td align="center">
                        </td>
                       
                    </tr>
                </table>
                </td>
            </tr>
     </table>
        </div>
</asp:Content>

