<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="UserAccountLogList.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Account.UserAccountLogList" %>
<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:EnumSelect runat="server" ID="accountActionType" TypeName="WAP2P.Account.AccountActionType,WAP2P.Account" TipsText="全部交易类型"></ruson:EnumSelect>
                            <ruson:Select runat="server" ID="type" FillRequestValue="true">
                                <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>
                    <tr class="g-hide">
                        <th>操作时间筛选：</th>
                        <td>
                            <input type="text" name="startAt" id="startAt" value="<% =Request.QueryString["startAt"].UrlEncode() %>" class="ui-date w150" data-maxdate="#endAt" /> 至 <input type="text" name="endAt" id="endAt" value="<% =Request.QueryString["endAt"].UrlEncode() %>" class="ui-date w150" data-mindate="#startAt" />
                        </td>
                    </tr>
                    <tr class="g-hide">
                        <th>影响金额筛选：</th>
                        <td>
                            <input type="text" name="startMoney" id="startMoney" value="<% =Request.QueryString["startMoney"].UrlEncode() %>" class="w150" /> 至 <input type="text" name="endMoney" id="endMoney" value="<% =Request.QueryString["endMoney"].UrlEncode() %>" class="w150" />
                        </td>
                    </tr>
                    <tr class="g-hide">
                        <th></th>
                        <td><input type="submit" class="btn-base c-priority iconfont" value="&#xe60f; 搜索"  /><input type="reset" class="btn-base c-normal iconfont" value="&#xe670; 清空条件"  /></td>
                    </tr>
                </table>  
                <a href="javascript:void(0);" id="btnSwithMoreFilter" class="iconfont"><span>&#xe661; 显示更多筛选条件</span></a>              
            </form>
            <div class="m-content">
                <div class="m-oper">
                    <ruson:PermissionSpace runat="server" Module="资金管理" Function="会员资金日志" Operate="导出EXCEL">                        
                        <input type="button" class="oper-clear btn-smaller c-obvious excel iconfont" data-function="会员资金日志" data-operate="导出EXCEL" data-freemes="<% =FreeLimit.ActionLimitMes %>" value="&#xe61f; 导出EXCEL" />
                    </ruson:PermissionSpace>   
                </div>
                <table class="m-list" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th width="3%">编号</th>
                        <th width="7%">会员账号</th>
                        <th width="7%">交易方名称</th>
                        <th width="11%">交易类型</th>
                        <th width="7%">影响金额</th>
                        <th width="13%" class="g-fleft">详细说明</th>
                        <th width="7%">可用余额</th>
                        <th width="7%">冻结金额</th>
                        <th width="7%">锁定金额</th>
                        <th width="7%">待收金额</th>
                        <th width="7%">待付金额</th>
                        <th width="7%">资金总额</th>
                        <th width="10%">操作时间</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.UserAccountLog">
        <ItemTemplate>
            <tr id="tr<%# Item.Id %>">
                <td><%# Item.Id %></td>
                <td class="g-fbold"><%# GetUserDisplay(Item.UserId, Item.UserName) %></td>
                <td><%# Item.TargetUserName %></td>
                <td><%# Item.Type %></td>
                <%# Item.Money >= 0 ? string.Format("<td class=\"fcred-2\">{0} 元</td>",Item.Money.ToMoneyString()): string.Format("<td class=\"fcgreen-2\">{0} 元</td>",Item.Money.ToMoneyString())%>
                <td class="g-fleft"><span title="<%# Item.Remark.HtmlEncode() %>"><%# Item.Remark.LeftX(20) %></span></td>
                <td><%# Item.AvaliableSum.ToMoneyString() %> 元</td>
                <td><%# Item.HoldSum.ToMoneyString() %> 元</td>
                <td><%# Item.LockSum.ToMoneyString() %> 元</td>
                <td><%# Item.WaitReceive.ToMoneyString() %> 元</td>
                <td><%# Item.WaitRepayment.ToMoneyString() %> 元</td>
                <td><%# Item.Sum.ToMoneyString() %> 元</td>
                <td><%# Item.CreateAt.ToDateTimeString() %> </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>
