<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="BorrowListFull.aspx.cs" Inherits="WAP2P.Web.PC.Admin.BorrowLoan.BorrowListFull" %>
<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="status" FillRequestValue="true">
                                <option value="">满标待审核</option>
                                <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">
                <div class="m-oper">                    
                    <ruson:PermissionSpace runat="server" Module="借贷管理" Function="等待满标审核的借款" Operate="审核">
                        <span class="js-autoload">
	                        <span class="ui-checkbox"><label><input type="checkbox" class="js-refresh" data-function="等待满标审核的借款" data-operate="自动刷新" data-freemes="<% =FreeLimit.ActionLimitMes %>" /> 自动刷新</label></span>
                            <span class="ui-checkbox g-hide mr10"><label><input type="checkbox" data-autoload-char="xe642; 审核" data-autoload-alert="有新的待审核项" /> 有新待审核项弹通知</label></span>                        
                        </span>
                    </ruson:PermissionSpace>
                </div>
                <table class="m-list" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th width="3%">编号</th>
                        <th width="5%">业务编号</th>
                        <th width="10%">借款人</th>
                        <th width="7%">借款种类</th>
                        <th width="15%" class="g-fleft">借款名称</th>
                        <th width="10%">借款金额</th>
                        <th width="5%">年利率</th>
                        <th width="5%">借款周期</th>
                        <th width="10%">添加时间</th>
                        <th width="10%">已投金额/人</th>
                        <th width="5%">状态</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(15) %></td>                
                <td><%# Item.LoanAmount.ToMoneyString() %> 元</td>                
                <td><%# (Item.YearRate * 100).ToInterestString() %>%</td>
                <td><%# Item.LoanDate %><%# Item.LoanDateUnit.GetDescription() %></td>
                <td><%# Item.CreateAt.ToDateTimeString() %></td>
                <td><%# Item.BidAmountCount.ToMoneyString() %> 元<span class="fcash-1">(<%# Item.BidUserCount %>人)</span></td>
                <td><%# Item.StatusDisplay.GetDescription() %></td>
                <td>
                    <ruson:PermissionSpace runat="server" Module="借贷管理" Function="等待满标审核的借款" Operate="审核"><%# Item.StatusDisplay != WAP2P.BorrowLoan.Borrow.BorrowStatusDisplay.满标待审核 && !WAP2P.Sys.BorrowType.LoadOrNew(Item.TypeId).SupportNoFullPass ? string.Empty : string.Format("<a class=\"iconfont oper edit fcjade-2\" href=\"javascript:void(0);\" onclick=\"$.jPopupEdit('借款满标审核', 'BorrowDetailFull.aspx?ID={0}');\">&#xe642; 审核</a>", Item.Id) %></ruson:PermissionSpace>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="12" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="12"><ruson:Pager runat="server" ID="pages" CssClass="pages" /><a href="<% =Request.RawUrl %>" class="g-hide"></a></td>
    </tr>
</asp:Content>
