<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="BorrowListOverdue.aspx.cs" Inherits="WAP2P.Web.PC.Admin.BorrowLoan.BorrowListOverdue" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <dl class="ui-tabs">
        <dt><a href="javascript:" class="on">逾期的借款</a></dt>        
        <dd>
            <form action="?action=search" method="get" class="m-search">
                <table class="m-criteria" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th>借款筛选:</th>
                        <td>
                            <ruson:Select runat="server" ID="type" FillRequestValue="true">
                                <option value="借款名称">借款名称</option>
                                <option value="借款人">借款人</option>                                
                            </ruson:Select>
                            <input type="text" size="35" name="key" value="<% =Request.QueryString["key"].HtmlEncode() %>" />
                            <span class="ml20 js-inlinesubmit"><input type="submit" class="btn-base c-priority iconfont" value="&#xe60f; 搜索" /><input type="reset" class="btn-base c-normal iconfont" value="&#xe670; 清空条件" /></span>
                        </td>
                    </tr>
                </table>                
            </form>
            <div class="m-content">
                <table class="m-list" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th width="3%">编号</th>
                        <th width="5%">业务编号</th>
                        <th width="15%" class="g-fleft">借款名称</th>
                        <th width="7%">借款用户</th>
                        <th width="5%">借款周期</th>
                        <th width="10%">借款总额</th>
                        <th width="10%">还款方式</th>
                        <th width="5%">本期期数</th>
                        <th width="6%">应还本金</th>
                        <th width="6%">应还利息</th>
                        <th width="6%">应还费用</th>
                        <th width="6%">应还时间</th>
                        <th width="6%">逾期天数</th>
                        <th width="6%">逾期利息</th>
                        <th width="5%">操作</th>
                    </tr>
                </table>
            </div>
        </dd>
    </dl>
</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="rptList" ItemType="WAP2P.BorrowLoan.Repay">
        <ItemTemplate>
            <tr id="tr<%# Item.Id %>">
                <td><%# Item.Id %></td>
                <td><%# borrows.First(item => item.Id == Item.BorrowId).BusId %></td>
                <td class="g-fleft" title="<%# Item.BorrowName%>"><%# Item.BorrowName.LeftX(30) %></td>
                <td class="g-fbold"><%# GetUserDisplay(Item.UserId, Item.UserName) %></td> 
                <td><%# borrows.First(item => item.Id == Item.BorrowId).LoanDate %>(<%# borrows.First(item => item.Id == Item.BorrowId).LoanDateUnit.GetDescription() %>)</td>
                <td><%# borrows.First(item => item.Id == Item.BorrowId).LoanAmount.ToMoneyString() %> 元</td>
                <td><%# GetRepaymentName(borrows.First(item => item.Id == Item.BorrowId).Repayment) %></td>
                <td><%# string.Format("第{0}期",Item.Period) %></td>
                <td><%# Item.ShouldRepayPrincipal.ToMoneyString() %> 元</td>
                <td><%# Item.ShouldRepayInterest.ToMoneyString() %> 元</td>
                <td><%# Item.ShouldRepayFee.ToMoneyString() %> 元</td>
                <td><%# Item.ShouldRepayAt.ToDateTimeString() %></td>
                <td class="fcred-2"><%# Item.OverdueDay %>天</td>
                <td><%# Item.ShouldRepayOverdue.ToMoneyString() %> 元</td>
                <td>
                    <ruson:PermissionSpace runat="server" Module="借贷管理" Function="逾期的借款" Operate="处理"><a class="iconfont oper edit" href="javascript:void(0);" onclick="$.jPopupEdit('处理逾期借款', 'BorrowDetailOverdue.aspx?ID=<%# Item.Id %>');">&#xe642; 处理</a></ruson:PermissionSpace>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="15" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="15"><ruson:Pager runat="server" ID="pages" CssClass="pages" /><a href="<% =Request.RawUrl %>" class="g-hide"></a></td>
    </tr>
</asp:Content>
