<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserMaster.master" CodeBehind="RepayRecordList.aspx.cs" Inherits="WAP2P.Web.PC.User.Borrow.RepayRecordList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-userbox">
        <dl class="ui-tab">
            <dt><a href="RepayList<% =PageBase.PageExt %>">还款操作</a></dt>
            <dt><a href="javascript:void(0);" class="on">还款记录</a></dt>
            <dd>
                <form action="?action=search" method="get" class="search">
                    <table class="m-filter mt20 js-filter">
                        <tr class="filter-date">
                            <th style="width: 12%;">日期范围</th>
                            <td>
                                <input type="text" class="text w130 ui-date" name="startAt" id="startAt" value="<% =Request.QueryString["startAt"].UrlEncode() %>" data-maxdate="#endAt" />
                                <span>-</span>
                                <input type="text" class="text w130 ui-date" name="endAt" id="endAt" value="<% =Request.QueryString["endAt"].UrlEncode() %>" data-mindate="#startAt" data-maxdate="<%= DateTime.Now.AddDays(1).ToDateString() %>" />
                                <a href="javascript:void(0);" data-filter-to="#startAt|#endAt" data-filter-value="<%= DateTime.Now.AddDays(-7).ToDateString() %>|<%= DateTime.Now.AddDays(1).ToDateString() %>">近一周</a>
                                <a href="javascript:void(0);" data-filter-to="#startAt|#endAt" data-filter-value="<%= DateTime.Now.AddMonths(-1).ToDateString() %>|<%= DateTime.Now.AddDays(1).ToDateString() %>">近一月</a>
                                <a href="javascript:void(0);" data-filter-to="#startAt|#endAt" data-filter-value="<%= DateTime.Now.AddMonths(-3).ToDateString() %>|<%= DateTime.Now.AddDays(1).ToDateString() %>">近三月</a>
                                <a href="javascript:void(0);" data-filter-to="#startAt|#endAt" data-filter-value="<%= DateTime.Now.AddYears(-1).ToDateString() %>|<%= DateTime.Now.AddDays(1).ToDateString() %>">近一年</a>
                            </td>
                        </tr>
                    </table>
                </form>
                <table class="table-normal mt20  js-ajaxlist">
                    <tr>
                        <th style="width: 20%;">借款名称</th>
                        <th style="width: 8%;">期数</th>
                        <th style="width: 15%;">已还本金</th>                        
                        <th style="width: 10%;">已还利息</th>
                        <th style="width: 10%;">已还费用</th>
                        <th style="width: 10%;">已还罚息</th>
                        <th style="width: 15%;">还款时间</th>
                        <th style="width: 10%;">状态</th>
                    </tr>
                </table>
            </dd>
        </dl>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
    <ruson:Repater runat="server" ID="rptRepayList" ItemType="WAP2P.BorrowLoan.Repay">
        <ItemTemplate>
            <tr>
                <td class="g-fleft"><a href="<%# WAP2P.Web.Extensions.GetBorrowUrl(Item.BorrowId) %>"><%# Item.BorrowName.LeftX(20) %></a></td>
                <td>第<%# Item.Period %>期</td>
                <td class="fcred-3"><%# Item.ActuaRepayPrincipal.ToMoneyString() %> 元</td>
                <td class="fcred-3"><%# Item.ActuaRepayInterest.ToMoneyString() %> 元</td>
                <td class="fcred-3"><%# Item.ActuaRepayFee.ToMoneyString() %> 元</td>
                <td class="fcred-3"><%# Item.ActuaRepayOverdue.ToMoneyString() %></td>
                <td><%# Item.ActualRepayAt.ToDateTimeString() %></td>
                <td><%# Item.Status.GetDescription() %></td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="8" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="8">
            <div class="ui-pages g-fright">
                <ruson:Pager runat="server" ID="pages" CssClass="pages" />
                <a href="<% =Request.RawUrl.UrlEncodeParam() %>" class="g-hide"></a>
            </div>
        </td>
    </tr>
</asp:Content>
