<%@ Page Title="" Language="C#" MasterPageFile="~/masterpage/MasterPage.master" AutoEventWireup="true" CodeFile="DMTRefundRequest.aspx.cs" Inherits="Agent_DMTRefundRequest" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   <%-- <link href="../css/bootstrap.min.css" rel="stylesheet" />--%>
    <style>
        h3 {
            font-family: 'Bitter', serif;
            font-weight: 400;
            line-height: 1.2em;
            margin: 0 0 1em 0;
            color: #3b363a;
            
        }
        /* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 35%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
 .Background
        {
            background-color: Black;
            filter: alpha(opacity=90);
            opacity: 0.8;
        }
        .Popup
        {
            background-color: #FFFFFF;
            border-width: 3px;
            border-style: solid;
            border-color: black;
            padding-top: 10px;
            padding-left: 10px;
            width: 400px;
            height: 350px;
        }
        .lbl
        {
            font-size:16px;
            font-style:italic;
            font-weight:bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div id="request">

        <%--<script type="text/javascript" src="../Javascript/datetimepicker_css.js"></script>
        <script type="text/javascript" src="../Javascript/datetimepicker.js"></script>
        <script language="JavaScript" type="text/JavaScript" src="../JavaScript/CFunc.js"></script>
        <script src="../javascript/scriptvalidation.js" type="text/javascript"></script>--%>
        
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td colspan="4" class="hdr">
                    <a href="" class="active">DMT Refund Request </a><span style="padding-right: 100px;">
                        &nbsp;</span> <span>&nbsp;</span>
                </td>
            </tr>
           
            <tr>
                <td style="height: 30px; padding-left: 300px" colspan="4" align="center">
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                       
                        <tr>
                            <td></td>
                            <td>Transaction No</td>
                            <td>:</td>
                            <td style="height: 10px">
                            
                               <asp:TextBox ID="txtTxnNo" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvSelService"  runat="server"
                                    ControlToValidate="txtTxnNo" Display="Dynamic" SetFocusOnError="True" ErrorMessage="Transantion Ref No" ValidationGroup="sub"> </asp:RequiredFieldValidator>
                                </td>
                            <td colspan="3" style="float: none; text-align: center; padding: 0 0 0 40px">
                                <asp:Button ID="BtnSubmit" runat="server" Text="Submit" Width="90px" class="button"
                                    OnClick="BtnSubmit_Click" />
                            </td>
                        </tr>
                      
                        <tr>
                            <td>
                            </td>
                            <td colspan="6" style="text-align:center">
                                <asp:Label ID="lblerror" runat="server" Font-Bold="true"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="left" valign="middle" height="370" style="padding-left: 0px; padding-right: 0px" colspan="4">
                    <asp:GridView ID="GvTransactionReport" runat="server" AutoGenerateColumns="False" 
                          GridLines="None" CellPadding="4" ForeColor="#333333" Width="100%"  
                        DataKeyNames="TransactionNo,Benificiary_ID,SenderId,SenderName,RequestAmount"
                        HorizontalAlign="Center" EmptyDataText="No Data Available" OnRowCommand="GvTransactionReport_RowCommand" >
                        <Columns>
                            <asp:TemplateField HeaderText="Sl.">
                                <ItemTemplate>
                                    <%#Container.DataItemIndex+1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="TRANSACTION_DATETIME" HeaderText="Txn Date & Time" />
                            <asp:BoundField DataField="TransactionNo" HeaderText="Txn.ID." />
                            <asp:BoundField DataField="Benificiary_Name" HeaderText="Benificiary Name" />
                            <asp:BoundField DataField="Benificiary_ID" HeaderText="Benificiary ID" />
                            <asp:BoundField DataField="RequestAmount" HeaderText="Req.Amt." />
                            <asp:BoundField DataField="Status" HeaderText="Status" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:HiddenField ID="hdnBeneID" runat="server" Value='<%#Eval("Benificiary_ID") %>' />
                                    <asp:LinkButton ID="lnkbtnStatus" runat="server" Text="Get Status" Visible='<%#Eval("Status").ToString()=="Pending"?true:false %>' CommandArgument='<%#Eval("TransactionNo") %>' CommandName="Status"></asp:LinkButton>
                                    <asp:LinkButton ID="lnkbtnRefundReq" runat="server" Text="Refund" Visible='<%#Eval("Status").ToString()=="Pending"?true:false %>' CommandArgument='<%#Eval("TransactionNo") %>' CommandName="Refund"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                        <PagerStyle BackColor="#dddee0" ForeColor="Black" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    
                </td>
            </tr>
            <tr>
                <td colspan="4" style="height: 30px"><asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                </td>
            </tr>
        </table>
    </div>
    <asp:Button ID="BtnTarget" runat="server" Text="Target" Style="display: none" />
<cc1:ModalPopupExtender ID="mp1" runat="server" PopupControlID="Panl1" TargetControlID="BtnTarget" BackgroundCssClass="Background" CancelControlID="btnOTPClose" >
</cc1:ModalPopupExtender>
<asp:Panel ID="Panl1" runat="server" CssClass="modal-content" style = "display:none;padding-top: 10px!important">

  
      <div align="center">
						<div class="cta-inner">
							<div class="cta-txt">
                                <div class="row" align="center">
                                    <div class="table-responsive">
                            
												<div class="col-md-12 form-group" align="left">
		                                           <h3 class="box-title"><asp:Label ID="lblHeader" runat="server" ></asp:Label></h3>
		                                       </div>
		                                       
		                                       <div class="col-md-12 form-group">
                                                   <asp:TextBox ID="txtOTP" class="form-control" runat="server" ></asp:TextBox><span class="highlight"></span> <span class="bar"></span>
		                                       </div>
		                                       <div class="col-md-12 form-group" align="left">
                                                   <asp:Button id="btnOTPClose" runat="server" class="btn btn-inverse waves-effect waves-light" Text="Close" /> 
                                                   <asp:Button ID="btnAddConfirm" runat="server" class="btn btn-success waves-effect waves-light m-r-10" Text="Submit" OnClick="btnAddConfirm_Click" Visible="false" />
                                                   
			                                       
		                                       </div>
		                                 
		                                   
		                           </div>                                    
                                                                
                                </div>
                        </div>
					</div>
				</div>
    
</asp:Panel>
</asp:Content>

