<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="BankCardList.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Member.BankCardList" %>
<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>
                            </ruson:Select>
                            <input type="text" size="35" placeholder="输入搜索条件" 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="新建"><input type="button" class="oper-clear btn-larger c-priority iconfont" value="&#xe67a; 新建银行账号" onclick="$.jPopupEdit('新建银行账号', 'BankCardDetail.aspx?op=edit');" /></ruson:PermissionSpace>
                    <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="xe60e; 审核" 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="15%">会员账号</th>
                        <th width="15%">所属银行</th>
                        <th width="15%">开户人名称</th>
                        <th width="20%">银行卡号</th>
                        <th width="17%">状态</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.Account.BankCard">
        <ItemTemplate>
            <tr id="tr<%# Item.Id %>">
                <td><input type="checkbox" class="del" data-id="<%# Item.Id %>" /></td>
                <td><%# GetUserDisplay(Item.UserId, WAP2P.Member.User.LoadOrNew(Item.UserId).Name) %></td>
                <td><%# Item.BankName %></td>
                <td><%# Item.AccountName %></td>
                <td><%# Item.CardNo %></td>
                <td><%# Item.Status.GetDescription() %></td>
                <td>
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="会员银行列表" Operate="审核"><%# Item.Status == WAP2P.Account.BankCard.AuditingStatus.Waiting ? string.Format("<a class=\"iconfont oper fcjade-2\" href=\"javascript:void(0);\" onclick=\"$.jPopupEdit('银行账号审核', 'BankCardDetail.aspx?ID={0}&op=valid');\" >&#xe60e; 审核</a>",Item.Id) : string.Empty %></ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="会员银行列表" Operate="查看详情"><%# Item.Status != WAP2P.Account.BankCard.AuditingStatus.Waiting ? string.Format("<a class=\"iconfont oper\" href=\"javascript:void(0);\" onclick=\"$.jPopupEdit('查看银行账号信息', 'BankCardDetail.aspx?ID={0}&op=view');\" >&#xe655; 查看详情</a>",Item.Id) : string.Empty %></ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="会员银行列表" Operate="删除"><a class="iconfont del" href="BankCardDetail.aspx?ID=<%# Item.Id %>&action=del">&#xe611; 删除</a></ruson:PermissionSpace>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="7" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="7"><ruson:Pager runat="server" ID="pages" CssClass="pages" /><a href="<% =Request.RawUrl %>" class="g-hide"></a></td>
    </tr>
</asp:Content>
