<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserMaster.master" CodeBehind="MyAccount.aspx.cs" Inherits="WAP2P.Web.PC.User.Account.MyAccount" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-userbox m-buserbox">
        <div class="m-prompt pl10 pr10 mt20">
            <div class="prompt-left g-left mt10">
                您当前账户总额：
                <span class="fcred-3 g-fbold fs16 g-fcenter mt10 mb5 g-block"><%= userAccount.Sum.ToMoneyString()  %> 元</span>
            </div>
            <div class="prompt-small g-right">
                <p>账户中展示所有的与借贷资金汇总相关的基本情况，了解相关的名词解释，将更好的协助您对投资收益情况进行评估。</p>
                <p>详细情况具体请查看 <a href="../../Help/Default<%= PageBase.PageExt %>" target="_blank">帮助中心</a>。</p>
            </div>
        </div>
        <div class="table-account mt15">
            <h4>基本情况</h4>
            <table>
                <tr>
                    <th style="width: 15%;">账户可用余额：</th>
                    <td><span><%= userAccount.AvaliableSum.ToMoneyString() %></span> 元</td>
                    <th>账户冻结总额：</th>
                    <td><span><%= userAccount.HoldSum.ToMoneyString() %></span> 元</td>
                    <th>账户待收总额：</th>
                    <td><span><%= userAccount.WaitReceive.ToMoneyString() %></span> 元</td>
                </tr>
                <tr class="account-dashline">
                    <th>线上充值账户：</th>
                    <td><span><%= userAccount.OnlineAccount.ToMoneyString() %></span> 元</td>
                    <th>线下充值账户：</th>
                    <td><span><%= userAccount.OfflineAccount.ToMoneyString() %></span> 元</td>
                    <th>平台奖励账户：</th>
                    <td><span><%= userAccount.RewardAccount.ToMoneyString() %></span> 元</td>
                </tr>
                <tr>
                    <th>收益回款账户：</th>
                    <td><span><%= userAccount.ReceiveAccount.ToMoneyString() %></span> 元</td>
                    <th>借款收款账户：</th>
                    <td><span><%= userAccount.LoanAccount.ToMoneyString() %></span> 元</td>
                </tr>
                <tr class="account-dashline">
                    <th>账户充值总额：</th>
                    <td><span><%= accountLogList.Where(item => item.Type == WAP2P.Account.AccountActionType.线上充值 || item.Type == WAP2P.Account.AccountActionType.线下充值).Sum(item => (decimal?)item.Money).ToMoneyString("0") %></span> 元</td>
                    <th>线上充值总额：</th>
                    <td><span><%= accountLogList.Where(item => item.Type == WAP2P.Account.AccountActionType.线上充值).Sum(item => (decimal?)item.Money).ToMoneyString("0") %></span> 元</td>
                    <th>线下充值总额：</th>
                    <td><span><%= accountLogList.Where(item => item.Type == WAP2P.Account.AccountActionType.线下充值).Sum(item => (decimal?)item.Money).ToMoneyString("0") %></span> 元</td>
                </tr>
                <tr>
                    <th>账户提现总额：</th>
                    <td><span><%= accountLogList.Where(item => item.Type == WAP2P.Account.AccountActionType.提现成功).Sum(item => (decimal?)item.Money).ToMoneyString("0") %></span> 元</td>
                </tr>
            </table>
            <h4>收益情况</h4>
            <table>
                <table>
                    <tr>
                        <asp:Repeater runat="server" ID="rptIn">
                            <ItemTemplate>
                                <th style="width:15%;"><%# Container.DataItem ?? "收入总额" %>：</th>
                                <td><span><%# (Container.DataItem == null ? accountLogList.Where(item => InTypes.Contains(item.Type)) : accountLogList.Where(item => item.Type == (WAP2P.Account.AccountActionType)Container.DataItem)).Sum(item => (decimal?)item.Money).ToMoneyString("0.00") %></span> 元</td>
                                <%# (Container.ItemIndex + 1) % 3 == 0 ? "</tr><tr>" : string.Empty %>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tr>
                </table>
            </table>
            <h4>支出情况</h4>
            <table>
                <tr>
                    <asp:Repeater runat="server" ID="rptOut">
                        <ItemTemplate>
                            <th style="width:15%;"><%# Container.DataItem ?? "支出总额" %>：</th>
                            <td><span><%# (Container.DataItem == null ? accountLogList.Where(item => OutTypes.Contains(item.Type)) : accountLogList.Where(item => item.Type == (WAP2P.Account.AccountActionType)Container.DataItem)).Sum(item => (decimal?)item.Money).ToMoneyString("0.00") %></span> 元</td>
                            <%# (Container.ItemIndex + 1) % 3 == 0 ? "</tr><tr>" : string.Empty %>
                        </ItemTemplate>
                    </asp:Repeater>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server"></asp:Content>
