<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="BorrowListRepay.aspx.cs" Inherits="WAP2P.Web.PC.Admin.BorrowLoan.BorrowListRepay" %>
<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>
                        <td class="g-fcenter">
                            <ruson:Select runat="server" ID="borrowType" TipsText="全部类型" DataValueField="Id" DataTextField="Name">
                            </ruson:Select>
                            <input type="hidden" name="homeFilter" value="<% =Request.QueryString["homeFilter"].HtmlEncode() %>" />
                            <ruson:Select runat="server" ID="status" FillRequestValue="true">
                                <option value="">还款中</option>
                                <option value="还款完成">还款完成</option>            
                            </ruson:Select>
                            <ruson:Select runat="server" ID="type" FillRequestValue="true">
                                <option value="业务编号">业务编号</option>
                                <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="5%">编号</th>
                        <th width="5%">业务编号</th>
                        <th width="10%">借款人</th>
                        <th width="10%">借款种类</th>
                        <th width="20%" class="g-fleft">借款名称</th>
                        <th width="10%">借款金额</th>
                        <th width="5%">年利率</th>
                        <th width="5%">借款周期</th>
                        <th width="5%">还款方式</th>
                        <th width="5%">已还本金</th>
                        <th width="5%">已还利息</th>
                        <th width="10%">状态</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.Borrow">
        <ItemTemplate>
            <tr id="tr<%# Item.Id %>">
                <td><%# Item.Id %></td>
                <td><%# Item.BusId %></td> 
                <td class="g-fbold"><%# GetUserDisplay(Item.UserId, Item.UserName) %></td>          
                <td><%# BorrowType.LoadOrNew(Item.TypeId).Name %></td>
                <td class="g-fleft"><%# Item.Name.LeftX(20) %></td>
                <td><%# Item.LoanAmount.ToMoneyString() %> 元</td>
                <td><%# (Item.YearRate * 100).ToInterestString() %>%</td>
                <td><%# Item.LoanDate %><%# Item.LoanDateUnit.GetDescription() %></td>
                <td><%# GetRepaymentName(Item.Repayment) %></td>
                <td><%# Item.RepayPrincipalCount.ToMoneyString() %> 元</td>
                <td><%# Item.RepayInterestCount.ToMoneyString() %> 元</td>
                <td><%# Item.StatusDisplay.GetDescription() %></td>
                <td>
                    <ruson:PermissionSpace runat="server" Module="借贷管理" Function="还款中的借款" Operate="详情"><a class="iconfont oper edit" href="javascript:void(0);" onclick="$.jPopupEdit('还款详情', 'BorrowDetailRepay.aspx?ID=<%# Item.Id %>');">&#xe642; 详情</a></ruson:PermissionSpace>                    
                </td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="13" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="13"><ruson:Pager runat="server" ID="pages" CssClass="pages" /><a href="<% =Request.RawUrl %>" class="g-hide"></a></td>
    </tr>
</asp:Content>
