<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="OfflineApplyList.aspx.cs" Inherits="WAP2P.Web.PC.Admin.BorrowLoan.OfflineApplyList" %>
<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>
                            <input type="hidden" name="from" value="<% =Request.QueryString["from"].HtmlEncode() %>" />
                            <ruson:Select runat="server" ID="type" FillRequestValue="true">
                                <option value="申请人姓名">申请人姓名</option>
                                <option value="联系电话">联系电话</option>
                                <option value="跟踪状态">跟踪状态</option>
                                <option value="跟单员名称">跟单员名称</option>
                            </ruson:Select>
                            <input type="text" size="35" name="key" value="<% =Request.QueryString["key"] %>" />
                            <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="删除">
                        <input type="button" class="oper-clear btn-smaller c-normal selall iconfont" value="&#xe612; 全选" />
                        <input type="button" class="oper-clear btn-smaller c-normal selreverse iconfont" value="&#xe644; 反选" />
                        <input type="button" class="oper-clear btn-smaller c-important delsel iconfont" data-function="借款申请处理" data-operate="批量删除" data-freemes="<% =FreeLimit.ActionLimitMes %>" value="&#xe611; 删除选中" />
                    </ruson:PermissionSpace>
                    <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="7%">编号</th>
                        <th width="15%" class="g-fleft">申请人姓名</th>
                        <th width="15%" class="g-fleft">联系电话</th>
                        <th width="15%">申请时间</th>
                        <th width="15%">跟踪状态</th>
                        <th width="15%" class="g-fleft">跟单人</th>
                        <th width="15%">操作</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.OfflineApply">
        <ItemTemplate>
            <tr id="tr<%# Item.Id %>">
                <td><input type="checkbox" class="del" data-id="<%# Item.Id %>" /></td>
                <td><%# Item.Id %></td>
                <td class="g-fleft"><%# Item.Name %></td>
                <td class="g-fleft"><%# Item.Phone %></td>
                <td><%# Item.CreateAt.ToDateTimeString() %></td>
                <td><%# Item.Status %></td>
                <td class="g-fleft"><%# Item.AdminById.HasValue ? WAP2P.Sys.Admin.LoadOrNew(Item.AdminById.Value).Name : "<span class=\"fcred-2\">未分配</span>" %></td>
                <td>
                    <ruson:PermissionSpace runat="server" Module="借贷管理" Function="借款申请处理" Operate="分配"><a class="iconfont oper edit" href="javascript:void(0);" onclick="$.jPopupEdit('借款申请分配跟单人', 'OfflineApplyDetail.aspx?ID=<%# Item.Id %>&action=allocation');">&#xe642; 分配跟单人</a></ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="借贷管理" Function="借款申请处理" Operate="跟单"><%# Item.AdminById.HasValue ? string.Format("<a class=\"iconfont oper edit\" href=\"javascript:void(0);\" onclick=\"$.jPopupEdit('借款申请跟踪', 'OfflineApplyDetail.aspx?ID={0}&action=track');\">&#xe642; 跟单详情</a>", Item.Id) : string.Empty %></ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="借贷管理" Function="借款申请处理" Operate="删除"><a class="iconfont del" href="OfflineApplyDetail.aspx?ID=<%# Item.Id %>&action=del">&#xe611; 删除</a></ruson:PermissionSpace>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="8" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="8"><ruson:Pager runat="server" ID="pages" CssClass="pages" /><a href="<% =Request.RawUrl %>" class="g-hide"></a></td>
    </tr>
</asp:Content>
